/* Selected A, adapted to the desktop 0.8.11 feature set. */
header {padding:8px 18px 0!important}
.brand-line {margin-bottom:8px!important}.brand {font-size:24px!important}
.header-actions {display:flex;gap:3px}.date-line {font-size:11px;margin-bottom:6px}h1 {font-size:28px}
main,body[data-variant="A"][data-page="today"] main {padding:16px 18px calc(100px + var(--bottom))}
.subtitle {font-size:11px;margin-top:6px}.progress-copy strong span {font-size:13px;color:var(--muted)}
#switcher,.preview-tag,.mini-date {display:none}.journal-card {width:100%;text-align:left}
.card-grid .card-front>.metadata {padding-right:24px;min-height:21px}.card-grid .card-back .back-note {font-size:11px;color:var(--muted);line-height:1.7;margin:0;height:40px;overflow:hidden}
.card-grid .back-buttons {display:flex;gap:5px;margin-top:auto}.card-grid .back-buttons .secondary {margin-top:6px;padding:8px 5px;flex:1;font-size:11px}
.card-grid .card-front h3 {margin-top:8px}.card-grid .back-detail {font-size:10px;white-space:nowrap}
.segments {display:flex;gap:3px;background:#e9e1d4;border:1px solid var(--line);border-radius:12px;padding:4px;margin:12px 0}
.segments button {flex:1;min-height:38px;font-size:12px;padding:6px 3px;color:var(--muted);border-radius:9px}
.segments button.selected {background:var(--surface);color:var(--accent);font-weight:600;box-shadow:0 2px 6px #473d2810}
.field .segments {margin:0}.filters {margin:12px 0 18px;gap:5px}.filter {padding:7px 12px;min-height:38px}
.warehouse-row {gap:3px;padding:12px}.row-copy {text-align:left;flex:1;min-width:0;padding:0}.row-copy p {font-size:11px;line-height:1.6;margin:7px 0 0;color:var(--muted)}
.row-copy .metadata {margin-top:4px}.warehouse-row .icon-button {width:36px}.full {width:100%}
.uniform-date {background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:14px 16px;margin-bottom:12px}
.date-summary {display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:0 0 14px}.date-row-top {display:flex;align-items:flex-start;gap:4px}.date-copy {flex:1;min-width:0;text-align:left;padding:2px 0}
.uniform-date h3 {font-size:17px;line-height:1.5;margin:5px 0 0;font-weight:600}.eyebrow {font-size:10px;color:var(--muted);letter-spacing:.4px}
.date-star {width:44px;height:44px;display:grid;place-items:center;color:#aa9a84;flex-shrink:0}.date-star svg {width:19px;height:19px}.date-star.selected svg {fill:var(--gold);stroke:var(--gold)}
.date-row-bottom {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;color:var(--muted);font-size:11px}.date-row-bottom strong {font:22px Georgia,"Songti SC",serif;color:var(--accent);white-space:nowrap}
.reminder-dot svg {width:11px;height:11px;vertical-align:middle;color:var(--accent)}
#edge-handle {position:fixed;z-index:12;left:max(0px,calc(50% - 240px));top:43%;width:18px;height:70px;padding:0;touch-action:pan-y}
#edge-handle span {display:block;width:3px;height:28px;background:#b5574050;border-radius:3px;margin-left:4px}
.drawer-overlay {position:fixed;inset:0;background:#24313b55;z-index:25;backdrop-filter:blur(3px)}
.date-drawer {position:absolute;left:max(0px,calc(50% - 240px));top:0;width:min(88vw,400px);height:100dvh;background:var(--canvas);padding:calc(var(--top) + 18px) 18px calc(var(--bottom) + 20px);display:flex;flex-direction:column;box-shadow:10px 0 45px #24313b20;animation:drawer-in .25s ease-out}
@keyframes drawer-in {from {transform:translateX(-100%)}to {transform:translateX(0)}}
.drawer-heading {display:flex;justify-content:space-between;align-items:center}.drawer-heading h2 {font-family:"Songti SC",serif;font-size:28px;margin-top:8px}.drawer-list {overflow:auto;margin:22px 0 10px;flex:1}.compact {padding:12px}.compact h3 {font-size:15px}.compact .date-row-bottom {font-size:10px;gap:4px}.compact .date-row-bottom strong {font-size:20px}
.panel {border:1px solid var(--line);border-radius:17px;background:var(--surface);padding:16px;margin-bottom:14px}
.panel .section-heading {margin:0 0 12px!important}.panel h3 {font-size:14px;margin:0 0 16px}.panel .segments {margin:8px 0 16px}
.metric-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:16px 0}.metric {min-width:0;text-align:center}.metric span {display:block;color:var(--muted);font-size:9px;white-space:nowrap}.metric strong {display:flex;align-items:baseline;justify-content:center;gap:2px;font:24px Georgia,serif;margin-top:7px;white-space:nowrap}.metric small {font:9px -apple-system,sans-serif;color:var(--muted)}
.help {font-size:11px;color:var(--muted);line-height:1.7;margin:10px 0 14px}.report-link {border-top:1px solid var(--line);padding:12px 0 0;display:flex;align-items:center;justify-content:space-between;width:100%;font-size:12px;color:var(--accent)}.report-link svg {width:15px;height:15px}
.calendar-heading {display:flex;align-items:center;justify-content:space-between;gap:3px;margin-bottom:9px}.calendar-heading h2 {font-size:15px;flex:1;text-align:center}.calendar-heading .text-button {font-size:11px;margin-left:4px}
.calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.weekday {font-size:10px;color:var(--muted);text-align:center;padding-bottom:8px}
.calendar-day {min-height:42px;font-size:12px;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 0}.calendar-day.has-progress {background:var(--soft)}.calendar-day i {width:4px;height:4px;background:transparent;border-radius:50%}.calendar-day.has-progress i {background:var(--accent)}.calendar-day.selected {background:var(--accent);color:white}.calendar-day.selected i {background:white}
.calendar-legend {font-size:10px;color:var(--muted);text-align:right;margin:10px 0 0}.calendar-legend i {display:inline-block;border-radius:50%;height:5px;width:5px;background:var(--accent);margin-right:5px}
.day-entry {padding:13px 0;border-bottom:1px solid var(--line)}.day-entry h3 {display:flex;justify-content:space-between;font-size:14px;margin-bottom:7px}.gold svg {fill:var(--gold);stroke:var(--gold);height:14px;width:14px}.entry-state {display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:10px}.entry-state .secondary {min-height:34px;padding:6px 12px}.badge {font-size:10px;padding:4px 6px;background:#eee8df;color:var(--muted);border-radius:5px;margin-right:5px}.badge.accented {background:var(--soft);color:var(--accent)}.recorded {font-size:10px;color:var(--green)}
.day-journal {margin:18px 0}.day-journal h3 {margin:0}.day-journal p {font:14px/1.9 "Songti SC",serif;white-space:pre-wrap;color:var(--muted)}.day-panel>.full {margin-top:15px}
.sheet {padding:11px 18px 0;max-height:92dvh;display:flex;flex-direction:column;overflow:hidden;min-height:240px;width:min(100%,480px)}.sheet-heading {flex-shrink:0;margin-bottom:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}.sheet-heading h2 {font-size:21px}.sheet-body {overflow:auto;overscroll-behavior:contain;padding-bottom:20px;min-height:0}.sheet-body>h3 {font-size:15px;margin:12px 0}
.sheet-footer-actions {padding:12px 0 calc(14px + var(--bottom));border-top:1px solid var(--line);flex-shrink:0;background:var(--canvas)}.sheet .primary.full {margin-top:0;min-height:46px}.cancel-button {border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:9px 14px;font-size:12px;color:var(--muted);min-height:40px}
.field {margin:16px 0}.field input,.field textarea {background:var(--surface);min-height:46px;padding:12px;font-size:15px}.field textarea {min-height:80px;line-height:1.7}.field .journal-editor {min-height:270px}.two-fields {display:grid;grid-template-columns:2fr 1fr;gap:10px}.two-fields input {min-width:0}.field input[type=time] {font-size:14px;padding:12px 7px}
.date-input {display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;min-height:46px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 12px;font-size:13px;gap:7px}.date-input svg {width:16px;height:16px;color:var(--accent)}
.toggle-row {display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:15px 0;font-size:13px}.toggle {width:45px;height:27px;border-radius:30px;background:#d1c7b8;padding:3px;flex-shrink:0}.toggle i {display:block;background:white;border-radius:50%;width:21px;height:21px;transition:transform .16s;box-shadow:0 2px 3px #0001}.toggle.on {background:var(--green)}.toggle.on i {transform:translateX(18px)}
.choice-wrap {display:flex;flex-wrap:wrap;gap:7px}.choice-pill {border:1px solid var(--line);padding:9px 12px;border-radius:10px;font-size:12px;background:var(--surface);min-height:40px}.choice-pill.selected {background:var(--soft);border-color:#cba68e;color:var(--accent)}
.choice-row {display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid var(--line);background:var(--surface);border-radius:12px;text-align:left;margin-bottom:8px}.choice-row.selected {background:var(--soft);border-color:#cbac95}.choice-circle {height:25px;width:25px;border:1px solid #c8b89f;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.choice-circle svg {width:15px;height:15px;color:var(--accent)}.choice-row h3 {font-size:13px;margin:0 0 5px}
.calendar-overlay {position:fixed;inset:0;z-index:60;background:#24313b66;display:flex;align-items:center;justify-content:center;padding:20px}.calendar-popover {width:min(100%,380px);padding:17px;border-radius:20px;background:var(--canvas);box-shadow:0 10px 50px #24313b33}
.warehouse-total,.settings-status {display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);padding:16px 0;border-bottom:1px solid var(--line)}.warehouse-total {margin-bottom:20px}.frequency-row {margin:16px 0}.frequency-label {display:flex;justify-content:space-between;gap:10px;font-size:12px;align-items:center;margin-bottom:7px}.frequency-label span {min-width:0;text-align:left}.frequency-label b {font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}.frequency .track {max-width:none;width:100%;height:8px}.breakdown-row {display:flex;align-items:center;font-size:12px;gap:10px;margin:17px 0}.breakdown-row>span {width:65px}.breakdown-row .track {max-width:none;height:7px}.breakdown-row b {font-size:11px;color:var(--muted);min-width:22px;text-align:right}
.reminder-item {display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:17px 0}.reminder-item h3 {font-size:14px;margin:0}.reminder-item small {font-size:10px;color:var(--accent);display:block;margin-top:7px}.spaced {margin-top:25px!important}.two-buttons {display:flex;gap:10px;margin-top:17px}.two-buttons .secondary {flex:1}.import-button input {display:none}.sheet details {margin:20px 0}.sheet summary {font-size:13px;color:var(--muted);cursor:pointer}.menu-row {display:flex;align-items:center;gap:12px;min-height:58px;width:100%;text-align:left;border-bottom:1px solid var(--line);font-size:14px}.menu-row svg {width:18px}.danger-link {font-size:12px;color:var(--accent);min-height:44px}.danger {background:#9c4035}
.voice-surface {text-align:center;padding:20px 0}.voice-orb {background:var(--soft);color:var(--accent);width:75px;height:75px;display:grid;place-items:center;border-radius:50%;margin:0 auto 20px}.voice-wave {height:40px;display:flex;align-items:center;justify-content:center;gap:4px;margin:20px}.voice-wave i {width:3px;height:12px;border-radius:4px;background:var(--accent)}.voice-wave i:nth-child(3n) {height:28px}.voice-wave i:nth-child(4n) {height:18px}
#notification-root {position:fixed;top:calc(var(--top) + 8px);left:50%;transform:translateX(-50%);width:min(calc(100% - 24px),450px);z-index:70}.notification {background:#fffaf1f7;border:1px solid var(--line);box-shadow:0 6px 35px #24313b33;border-radius:20px;padding:15px 36px 15px 14px;display:flex;text-align:left;gap:12px;width:100%;backdrop-filter:blur(20px)}.notice-icon {display:grid;place-items:center;background:var(--soft);color:var(--accent);border-radius:10px;width:35px;height:35px;flex-shrink:0}.notice-icon svg {width:18px}.notification strong {display:block;font-size:10px;color:var(--muted);font-weight:400}.notification b {display:block;font-size:14px;margin:6px 0}.notification small {font-size:11px;color:var(--muted)}.notice-close {position:absolute;right:7px;top:8px;width:28px;height:28px;color:var(--muted)}.notice-close svg {width:14px}
#toast {bottom:calc(var(--bottom) + 80px);max-width:94%;white-space:normal;text-align:center;line-height:1.5}
@media(max-width:350px){.two-fields {grid-template-columns:1fr 1fr}.date-input {font-size:11px}.segments button {font-size:11px}.metric-grid {gap:2px}.metric strong {font-size:21px}}
.time-text {font-variant-numeric:tabular-nums;letter-spacing:1px}

.header-actions [data-action="settings"] svg {width:19px;height:19px}

.tag-choices{gap:8px;flex-wrap:wrap}.tag-choices:empty{display:none}
.tag-choices .choice-pill{max-width:100%;overflow-wrap:anywhere;min-height:44px}
.filters{flex-wrap:wrap;align-items:center}.filters .filter{max-width:100%;overflow-wrap:anywhere}
.manage-tags{min-height:44px;font-size:12px;color:var(--accent);padding:8px}
.tag-editor-list{display:grid;gap:10px;margin-bottom:14px}
.tag-editor-row{display:flex;gap:8px;align-items:center}
.tag-editor-row input{width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:10px 12px;font-size:16px}
.tag-editor-row .icon-button{color:var(--accent)}
.metadata .tag{max-width:100%;overflow-wrap:anywhere}
