/* ---------- spreadsheet import, due days, reminders ---------- */
.bell { all: unset; position: relative; cursor: pointer; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--well); color: var(--ink); transition: background var(--t1) ease-out, color var(--t1) ease-out, transform var(--t1) ease-out; }
.bell:hover { background: var(--surface-3); color: var(--ink-strong); }
.bell:active { transform: scale(.94); }
.bell:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bell svg { width: 16px; height: 16px; display: block; }
/* the round tool next to the bell: the light/dark switch (v35) */
.tbtn { all: unset; position: relative; cursor: pointer; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--well); color: var(--ink); transition: background var(--t1) ease-out, color var(--t1) ease-out, transform var(--t1) ease-out; order: 3; }
.tbtn:hover { background: var(--surface-3); color: var(--ink-strong); } .tbtn:active { transform: scale(.94); } .tbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .tbtn svg { width: 16px; height: 16px; display: block; }
.tbtn::after { content: ""; position: absolute; inset: -5px; }
.bell .count { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 99px; background: var(--brand); color: var(--on-brand); font: 500 10.5px/18px var(--mono); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.btn .count { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--warn); }
.linkbtn.dim { color: var(--link); font-weight: 400; font-family: var(--font); font-size: 12.5px; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; }
.field.inline select, .field.inline input { width: auto; min-height: 34px; }
input.day::-webkit-outer-spin-button, input.day::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.day { -moz-appearance: textfield; appearance: textfield; width: 68px; min-height: 34px; text-align: center; font-family: var(--mono); flex: none; }
.unit { border: 1px solid var(--line); border-radius: var(--r-mid); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.unit.off .unit-h b { color: var(--ink-3); font-weight: 500; }
.unit-h { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.unit-h .grow { flex: 1 1 220px; min-width: 0; }
.unit-h b { font-weight: 500; overflow-wrap: anywhere; }
.unit-groups { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--well); }
.unit-groups .note { flex: 1 1 100%; }
.unit-groups input { min-width: 180px; }
.unit .list .li:last-child { border-bottom: 0; padding-bottom: 0; }
.srow { flex-wrap: wrap; gap: 8px 12px; }
.srow .grow { flex: 1 1 250px; }
.srow.off .grow b { color: var(--ink-3); font-weight: 400; }
.srow-c { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.srow-c select { width: auto; max-width: 100%; min-height: 34px; }
.sheet-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-mid); margin-bottom: 12px; }
.sheet-cta > svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.sheet-cta .grow { flex: 1 1 220px; display: flex; flex-direction: column; min-width: 0; }
.rem-group, .due-group { display: flex; flex-direction: column; gap: 10px; }
.due-group { gap: 0; }
.rem-group h3, .due-group h3 { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.due-group h3 .dot { width: 7px; height: 7px; border-radius: 50%; }
.due-group h3 svg { width: 14px; height: 14px; flex: none; }
.due-group > p.note { margin-top: 10px; }
.setting.cal { border-top: 1px solid var(--line); margin-top: 14px; }
.setting + .setting.cal { border-top: 0; margin-top: 0; }       /* straight after another setting, that one's own line is the divider */
.rem { border: 1px solid var(--line); border-radius: var(--r-mid); background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rem.crit { border-color: color-mix(in srgb, var(--crit) 50%, var(--line)); }
.rem.warn { border-color: color-mix(in srgb, var(--warn) 38%, var(--line)); }
.rem-t { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rem-t b { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.rem-t .num { white-space: nowrap; font-weight: 500; }
.due-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.due-row label { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
.due-row label b { font-weight: 500; overflow-wrap: anywhere; }
.rem-next { margin-top: 18px; }

