body { width: 360px; margin: 0; padding: 12px; font-family: system-ui, sans-serif; font-size: 14px; background: #f6f3ec; color: #2b2b2b; }
h1 { font-size: 17px; margin: 0; display: flex; align-items: center; gap: 8px; }
.logo { width: 22px; height: 22px; border-radius: 5px; }
.head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.toprow { display: flex; gap: 8px; margin-bottom: 12px; }
.toprow button { flex: 0 0 auto; padding: 10px 16px; font-weight: 600; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.toprow .ico { flex: none; }
.toprow button[hidden] { display: none; }
.toprow { justify-content: flex-start; flex-wrap: wrap; }
.card { background: #fff; border-radius: 14px; padding: 12px 14px 12px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(60, 40, 10, .12); }
.card.finished { opacity: .8; }
.card p { margin: 0 0 8px; }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.cardhead .label { font-weight: 700; color: #7a5c2e; }
.ref { font-size: 21px; font-weight: 700; margin: 4px 0 2px; line-height: 1.2; }
.ref.done { color: #3b7a57; font-size: 18px; }
.small { font-size: 12px; color: #666; }
.pace { margin-top: 8px; }
.bar { height: 6px; background: #e5e0d3; border-radius: 3px; margin: 8px 0 4px; overflow: hidden; }
.bar div { height: 100%; width: 0; background: #7a5c2e; border-radius: 3px; }
.sect { margin: 10px 0 2px; }
.sect-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #7a5c2e; }
.sect-hint { font-size: 11.5px; color: #888; margin: 1px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border: 1px solid #d6cdb8; border-radius: 999px; background: #faf8f2; font-size: 13px; cursor: pointer; user-select: none; }
.chip:hover { background: #f1ebda; }
.chip input { margin: 0; accent-color: #7a5c2e; width: 15px; height: 15px; cursor: pointer; }
.chip.read { background: #e8f2ec; border-color: #b8d6c4; color: #2f6a4a; }
.chip.read input { accent-color: #3b7a57; }
.chip.extra { background: #fbf1dc; border-color: #d9b46a; border-style: dashed; }
.chip.cand { background: transparent; border-style: dashed; color: #666; }
.chip.past { background: #f3f0e8; color: #555; }
button { padding: 7px 10px; border: 1px solid #c9c1ae; border-radius: 8px; background: #faf8f2; cursor: pointer; font-size: 13px; }
button:hover:not(:disabled) { background: #efe9d8; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: #7a5c2e; color: #fff; border-color: #7a5c2e; }
button.primary:hover:not(:disabled) { background: #664c25; }
button.wide { display: block; width: auto; margin: 10px auto 0; padding: 9px 22px; font-weight: 600; border-radius: 10px; }
button.icon { padding: 3px 9px; font-size: 17px; }
select { padding: 5px; border: 1px solid #c9c1ae; border-radius: 8px; width: 100%; box-sizing: border-box; margin-top: 3px; }
label.ver { display: block; font-size: 12px; color: #555; }
.done { color: #3b7a57; font-weight: 600; }

.card.isdone { padding-bottom: 10px; }
.daydone { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; }
.chip.small-chip { padding: 3px 10px 3px 7px; font-size: 12px; }
.chip.small-chip input { width: 13px; height: 13px; }

.headbtns { display: flex; gap: 6px; align-items: center; }
.headbtns .icon { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; font-size: 16px; line-height: 1; }
