
/* Brain Dump Timer v23: core data architecture, cloud, archive, history, and platform UI */
#timeFormatBtn{width:38px!important;min-width:38px!important;height:34px!important;padding:0!important;display:inline-grid!important;place-items:center!important}
#timeFormatBtn .v23-clock24{position:relative;display:inline-grid;place-items:center;width:25px;height:25px;border:1.8px solid currentColor;border-radius:50%;font-size:8px;font-weight:900;line-height:1;letter-spacing:-.2px}
#timeFormatBtn .v23-clock24:before{content:"";position:absolute;left:50%;top:3px;width:1.5px;height:6px;background:currentColor;transform-origin:bottom center;transform:translateX(-50%) rotate(25deg);border-radius:2px}
#timeFormatBtn .v23-clock24:after{content:"";position:absolute;left:50%;top:50%;width:6px;height:1.5px;background:currentColor;transform-origin:left center;transform:translateY(-50%) rotate(8deg);border-radius:2px}
#timeFormatBtn .v23-clock24 span{position:relative;z-index:2;padding:1px 2px;background:var(--surface);border-radius:3px;margin-top:8px}

.recur-text-tools{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;grid-template-columns:none!important}
.recur-text-tools>.text-btn,.recur-text-tools>a{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;padding:7px 10px!important;font-size:12px!important;line-height:1.2!important;white-space:normal!important}
.recur-gpt-btn{order:2!important}.recur-gpt-btn span{font-size:12px!important}#simpleRecurrenceBuilderBtn{order:1!important}#recurVisualizeBtn{order:3!important}
.recur-now-btn,[data-recur-now]{font-size:11px!important;font-weight:800!important;min-height:30px!important;padding:5px 9px!important;white-space:normal!important}

#recurLocalUndoBtn svg,#recurLocalRedoBtn svg,#archiveLocalUndoBtn svg,#archiveLocalRedoBtn svg,.archive-local-history svg,.recur-local-history svg{display:block!important;stroke:currentColor!important;fill:none!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important;opacity:1!important;visibility:visible!important}
#recurLocalUndoBtn,#recurLocalRedoBtn,#archiveLocalUndoBtn,#archiveLocalRedoBtn{color:var(--text)!important;border-color:var(--border-strong)!important;background:var(--surface-2)!important}
#recurLocalUndoBtn:disabled,#recurLocalRedoBtn:disabled,#archiveLocalUndoBtn:disabled,#archiveLocalRedoBtn:disabled{color:var(--muted)!important;opacity:.48!important}

.archive-modal{overflow:hidden!important;padding:12px!important}
.archive-modal .modal-card{width:min(1040px,calc(100vw - 24px))!important;height:min(84vh,820px)!important;max-height:calc(100vh - 24px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.archive-filter-grid{display:grid!important;grid-template-columns:minmax(180px,1.5fr) minmax(150px,1.1fr) repeat(3,minmax(115px,.72fr))!important;gap:7px!important;min-width:0!important;overflow:visible!important}
.archive-filter-grid>*{min-width:0!important}.archive-search-wide{grid-column:auto!important}.archive-filter-grid .modal-input{width:100%!important;min-width:0!important}
.archive-toolbar{flex:0 0 auto!important;gap:8px!important;flex-wrap:wrap!important}.archive-list{min-width:0!important;overflow-x:hidden!important;overflow-y:auto!important;align-content:start!important;grid-auto-rows:max-content!important}
.archive-card{min-width:0!important;max-width:100%!important;overflow:hidden!important}.archive-card-head{min-width:0!important}.archive-actions{flex-wrap:wrap!important;justify-content:flex-end!important}
.v23-cache-indicator{font-size:10px;color:var(--muted);white-space:nowrap}.v23-cache-indicator strong{color:var(--text)}
@media(max-width:920px){.archive-filter-grid{grid-template-columns:1fr 1fr!important}.archive-search-wide{grid-column:span 1!important}}
@media(max-width:620px){.archive-filter-grid{grid-template-columns:1fr!important}.archive-modal .modal-card{width:calc(100vw - 16px)!important}}

.history-modal .modal-card{overflow:hidden!important}.history-log-list{overflow:auto!important}.history-type-option input{accent-color:var(--focus)}
.history-type-toggle,.history-button,.archived-tasks-head-btn{color:var(--text)!important}.history-type-toggle svg,.history-button svg,.archived-tasks-head-btn svg,.history-modal .icon-btn svg{stroke:currentColor!important;fill:none!important;opacity:1!important}
.v23-history-category{display:inline-flex;align-items:center;padding:2px 6px;border:1px solid var(--border);border-radius:999px;font-size:9px;color:var(--muted);background:var(--surface-2)}

.cloud-save-status{display:inline-flex;align-items:center;gap:6px;margin-left:6px;padding:4px 8px;border-radius:999px;border:1px solid rgba(58,170,104,.55);background:rgba(58,170,104,.13);color:inherit;font-size:9px;font-weight:800;white-space:nowrap;cursor:pointer}
.cloud-save-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#39a96b;box-shadow:0 0 0 2px rgba(57,169,107,.15)}
.cloud-save-status.syncing{border-color:rgba(211,170,42,.58);background:rgba(211,170,42,.12)}.cloud-save-status.syncing:before{background:#d3aa2a;animation:v23CloudPulse 1s ease-in-out infinite}
.cloud-save-status.error,.cloud-save-status.offline{border-color:rgba(211,68,68,.62);background:rgba(211,68,68,.13)}.cloud-save-status.error:before,.cloud-save-status.offline:before{background:#d34444}
.cloud-save-status.unconfigured{border-color:var(--border);background:var(--surface-2);color:var(--muted)}.cloud-save-status.unconfigured:before{background:var(--muted)}
@keyframes v23CloudPulse{50%{opacity:.35;transform:scale(.8)}}

.v23-recovery-modal{z-index:2600!important}.v23-recovery-modal .modal-card{width:min(680px,calc(100vw - 28px))!important}.v23-recovery-copy{font-size:13px;line-height:1.5;color:var(--text)}
.v23-recovery-key-row{display:grid;grid-template-columns:minmax(0,1fr) 36px 110px;gap:7px;align-items:center}.v23-recovery-key{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.04em;font-size:12px}
.v23-data-recovery-head{margin-left:auto;margin-right:7px}.v23-recovery-import{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:end}.v23-recovery-status{min-height:18px;font-size:10px;color:var(--muted)}
.v23-recovery-choice-modal{z-index:2700!important}.v23-recovery-choice-modal .modal-card{width:min(680px,calc(100vw - 28px))!important}.v23-recovery-choice-summary{font-size:12px;line-height:1.5;color:var(--muted);margin:4px 0 14px}.v23-recovery-choice-actions{display:grid;gap:9px}.v23-recovery-choice-actions .text-btn{width:100%;min-height:44px;justify-content:flex-start;text-align:left;white-space:normal;line-height:1.35}.v23-recovery-choice-actions .text-btn strong{display:block;color:inherit}.v23-recovery-choice-note{display:block;font-size:10px;font-weight:500;opacity:.78;margin-top:2px}

.v23-storage-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:7px 9px;margin:7px 0;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);font-size:10px;color:var(--muted)}
.backup-card .v23-card-bytes{font-size:9px;color:var(--muted);margin-left:6px}.backup-card{min-width:0!important}.backup-card-main{min-width:0!important}

.v23-boot-failure{z-index:4000!important}.v23-boot-failure .modal-card{width:min(720px,calc(100vw - 28px))!important}.v23-raw-error{max-height:180px;overflow:auto;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;white-space:pre-wrap}

/* Exactly one recurrence state icon, with a final specificity reset. */
.refresh-action>span{display:none!important;visibility:hidden!important;opacity:0!important}
body:not(.ctrl-held):not(.alt-held):not(.shift-held) .refresh-action>.refresh-normal-icon{display:inline-flex!important;visibility:visible!important;opacity:1!important}
body.ctrl-held:not(.shift-held):not(.alt-held) .refresh-action>.refresh-catchup-icon,body.ctrl-held:not(.shift-held):not(.alt-held) .refresh-action>.refresh-anchor-green{display:inline-flex!important;visibility:visible!important;opacity:1!important}
body.ctrl-held.shift-held:not(.alt-held) .refresh-action>.refresh-anchor-cyan{display:inline-flex!important;visibility:visible!important;opacity:1!important}
body.ctrl-held.alt-held:not(.shift-held) .refresh-action:not(.unanchored-current)>.refresh-anchor-red{display:inline-flex!important;visibility:visible!important;opacity:1!important}
body.ctrl-held.alt-held:not(.shift-held) .refresh-action.unanchored-current>.refresh-anchor-green{display:inline-flex!important;visibility:visible!important;opacity:1!important}
body.alt-held:not(.ctrl-held):not(.shift-held) .refresh-action>.refresh-edit-icon{display:inline-flex!important;visibility:visible!important;opacity:1!important}
body.shift-held:not(.ctrl-held):not(.alt-held) .refresh-action>.refresh-archive-icon,body.ctrl-held.alt-held.shift-held .refresh-action>.refresh-archive-icon{display:inline-flex!important;visibility:visible!important;opacity:1!important}
body.dark .history-modal input[type="date"],body.dark .history-modal input[type="time"],body.dark .archive-modal input[type="date"]{color-scheme:dark!important}
body.dark .history-modal input[type="date"]::-webkit-calendar-picker-indicator,body.dark .history-modal input[type="time"]::-webkit-calendar-picker-indicator,body.dark .archive-modal input[type="date"]::-webkit-calendar-picker-indicator{filter:invert(1) brightness(1.35)!important;opacity:.9!important}

