@layer interface {
/* Общие стили */
button,input,select,textarea {font:inherit}
button,a,input,select,textarea {-webkit-tap-highlight-color:transparent}
button,a {touch-action:manipulation}
button {color:inherit}
a {color:var(--forest);text-underline-offset:4px}
img,video {max-width:100%;display:block}
button:disabled {opacity:.5;cursor:not-allowed;transform:none}
#main:focus {outline:none}
.ui-icon {display:inline-block;width:22px;height:22px;flex:0 0 auto;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,h4 {font-family:CabinetGrotesk,InterTight,'Segoe UI',sans-serif;line-height:1.08;letter-spacing:-.035em;font-weight:650}
h1 {font-size:clamp(34px,4vw,56px);margin:0}
h2 {font-size:26px;margin:0 0 15px}
h3 {font-size:20px;margin:0 0 10px}
p {margin:0 0 14px}
label {font-weight:600;font-size:13px}
input,select,textarea {background:var(--paper);border:1px solid #afbdad;border-radius:8px;padding:12px 14px;min-height:46px;color:var(--ink);width:100%;max-width:100%;transition:border-color .16s}
input:hover,select:hover,textarea:hover {border-color:#6c8977}
input:focus,select:focus,textarea:focus {border-color:var(--forest-light);box-shadow:none}
input[type=checkbox] {width:22px;height:22px;min-height:22px;accent-color:var(--forest);flex-shrink:0}
input[type=file] {padding:10px;font-size:13px}
textarea {resize:vertical;min-height:112px;line-height:1.65}
.field {display:grid;gap:8px;min-width:0}
.field>span {line-height:1.35}
.wide {grid-column:1/-1}
.hint {font-size:13px;line-height:1.55;color:var(--muted);font-weight:400}
.eyebrow {font-size:10px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.section-title {margin:24px 0 13px}
.actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:1px solid #aabaac;border-radius:8px;padding:11px 17px;background:var(--paper);color:var(--forest);font-weight:650;font-size:13px;text-decoration:none;cursor:pointer;line-height:1.25;transition:transform .18s,background-color .18s;white-space:normal}
.button:hover {background:var(--soft);transform:translateY(-1px);box-shadow:none}
.button:active {transform:translateY(1px);box-shadow:none}
.button.primary {background:var(--forest);color:var(--paper);border-color:var(--forest);box-shadow:none}
.button.primary:hover {background:#285646}
.button.secondary {background:#e6edde;border-color:#bac8b4}
.button.quiet {background:transparent;border-color:transparent;box-shadow:none;color:var(--muted);padding:9px 11px}
.button.quiet:hover {background:#e8ede1}
.button.danger {color:var(--error);border-color:#d8b9ad;background:#fff6ef}
.button .ui-icon {width:19px;height:19px}
.brand {display:inline-flex;align-items:center;gap:1px;font-family:CabinetGrotesk,InterTight,sans-serif;font-size:46px;line-height:1;font-weight:750;letter-spacing:-3px;text-decoration:none;color:inherit}
.brand-dot {color:var(--coral)}
.nav {display:grid;gap:7px;margin-top:34px}
.nav-item {position:relative;display:flex;align-items:center;gap:11px;text-align:left;width:100%;border:0;background:transparent;min-height:48px;padding:11px 13px;border-radius:8px;font-size:14px;font-weight:550;cursor:pointer;transition:background-color .18s,transform .18s;color:#dfe8da}
.nav-item:hover {background:#365e4f;transform:translateX(2px)}
.nav-item.active {background:var(--bg);color:var(--forest);box-shadow:none}
.nav-item.active:before {content:'';position:absolute;left:-6px;top:15px;bottom:15px;width:3px;background:var(--coral);border-radius:4px}
.nav-item>span:first-child {display:flex;align-items:center;justify-content:center;min-width:22px}
.nav-symbol {font-size:17px}
.save-state {font-size:11px;display:inline-flex;align-items:center;gap:7px;color:#315b43;white-space:nowrap}
.save-state:before {content:'';height:6px;width:6px;border-radius:50%;background:#5b8253}
.save-state.dirty {color:#79552b}
.save-state.dirty:before {background:var(--coral)}
.notice {padding:11px 15px;border:1px solid #c6d3b9;background:#e8efdc;border-radius:8px;font-size:12px;line-height:1.5;margin:13px 0}
.notice:empty {display:none}
.notice.error {background:#fff0e9;border-color:#dab5a6;color:#803e31}
.notice.success {background:#e8efdc;color:#335b37}
.heading {padding:23px 0}
.title-row {display:flex;align-items:center;justify-content:space-between;gap:18px}
.title-row .hint {margin:10px 0 0}
.mascot {width:104px;height:104px;object-fit:contain;flex:0 0 auto}
.thread-hero {position:relative;min-height:405px;overflow:hidden;border-radius:8px;margin:22px 0 20px;background:#d5dfcd;isolation:isolate;border:1px solid #c8d3be;display:flex;align-items:center}
.thread-hero-art {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 50%;z-index:-2}
.thread-hero:after {content:'';position:absolute;inset:0;background:linear-gradient(90deg,#f4f0e6fa 0%,#f4f0e6e8 24%,#f4f0e695 42%,#f4f0e600 69%);z-index:-1;pointer-events:none}
.thread-hero-copy {position:relative;width:55%;max-width:600px;padding:35px 36px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.thread-hero-greeting {font-size:12px;font-weight:650;letter-spacing:.035em;margin:0;color:#3e5b48}
.thread-hero-title {font-size:clamp(38px,4.7vw,70px);font-weight:650;line-height:1.015;letter-spacing:-.06em;margin:0;max-width:510px;text-wrap:balance}
.thread-hero-copy>p {font-size:14px;max-width:350px;line-height:1.5;margin:0}
.thread-hero-actions {display:flex;gap:10px;flex-wrap:wrap}
.thread-hero-actions .button {min-height:47px;padding:12px 18px}
.thread-hero-actions .button.primary {border-radius:8px 8px 8px 3px}
.thread-hero-actions .button.secondary {background:#fffdf7c9;border-color:#8fa68e}
.thread-focus {width:100%;max-width:430px;padding-top:1px}
.thread-focus>span {font-size:11px}
.thread-focus input {background:#fffdf7ed;border-color:#aebfa6;min-height:44px;font-size:13px}
.chapter-tile {display:flex;flex-direction:column;position:relative;overflow:hidden;min-width:0;padding:0 12px 13px;border:1px solid #c5d1bf;border-radius:8px;background:#dce7d3;color:var(--ink);text-align:left;cursor:pointer;transition:transform .2s,border-color .2s;isolation:isolate;box-shadow:none}
.chapter-count {font-size:10px;line-height:1.4;color:#4a6050;min-height:14px}
.chapter-tile:hover {transform:translateY(-4px);box-shadow:none;border-color:#6e906d}
.chapter-tile:active {transform:translateY(0);box-shadow:none}
.visual-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0 24px;border-top:1px solid #b9c9b2;border-bottom:1px solid #b9c9b2;padding:17px 0}
.visual-metric {display:flex;align-items:center;gap:13px;min-width:0;padding:0 14px;border-right:1px solid #c3cfba}
.visual-metric:last-child {border-right:0}
.metric-ring {width:57px;height:57px;flex:0 0 auto;overflow:visible;transform:rotate(-90deg)}
.metric-ring circle {fill:none;stroke-width:5}
.metric-ring circle:first-child {stroke:#d1ddc6}
.metric-ring circle:last-child {stroke:var(--forest);stroke-linecap:round;transition:none}
.visual-metric:nth-child(2) .metric-ring circle:last-child {stroke:var(--coral)}
.metric-figure {font-size:28px;font-weight:650;letter-spacing:-.04em;line-height:1.05;display:block;font-variant-numeric:tabular-nums}
.metric-label {display:block;font-size:11px;color:var(--muted);line-height:1.35;margin-top:4px}
.view-art-header {display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:170px;margin:20px 0 24px;padding:16px 28px;border-radius:8px;background:#e1e9d8;border:1px solid #cbd6c2;overflow:hidden;position:relative}
.view-title-copy {min-width:0;max-width:72%}
.view-title-copy h1 {font-size:clamp(35px,4.1vw,57px);margin:0 0 11px}
.view-title-copy p {margin:0;font-size:13px;color:#49614f;max-width:550px}
.view-art {width:180px;height:148px;object-fit:contain;flex:0 0 auto;mix-blend-mode:multiply}
.layout-two {display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-items:start}
.panel {background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:25px;min-width:0;margin-bottom:20px;box-shadow:none}
.panel-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.panel-heading h2,.panel-heading h3 {margin:0}
.panel-heading .button {font-size:12px;min-height:42px;padding:10px 13px}
.empty-state {text-align:center;padding:21px 15px;border:1px dashed #bdcdb2;border-radius:8px;background:#f5f7ed}
.empty-state img {width:105px;height:105px;object-fit:contain;margin:0 auto 8px}
.empty-state p {font-size:13px;color:var(--muted);max-width:360px;margin:0 auto 13px}
.empty-state .button {margin-top:2px}
.hero-compact {display:flex;justify-content:space-between;gap:22px;align-items:center;padding:26px;background:#d9e6cb;border-radius:8px;margin:20px 0}
.welcome-copy {min-width:0;max-width:640px}
.welcome-landscape {width:230px;height:150px;object-fit:cover;border-radius:8px;flex:0 0 auto}
.hero-compact .field {margin-top:16px}
.route-zones {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:16px 0 0}
.route-zone {position:relative;min-width:0;overflow:hidden;padding:20px 18px 23px;border-radius:8px;background:#e4ecda;border:1px solid #c4d3ba;isolation:isolate}
.route-zone:nth-child(4n+2) {background:#ece8dc}
.route-zone:nth-child(4n+3) {background:#d8e4d1}
.route-zone:nth-child(4n+4) {background:#eee8de}
.route-zone-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:1;margin-bottom:19px}
.route-zone-heading h3 {font-size:21px;margin:0}
.route-zone-heading span,.route-zone-heading small {font-size:11px;color:#49624d}
.route-zone-heading img {width:62px;height:62px;object-fit:contain;mix-blend-mode:multiply}
.route-thread {position:absolute;inset:62px 12px 8px;width:calc(100% - 24px);height:calc(100% - 70px);fill:none;stroke:var(--coral);stroke-width:2;stroke-dasharray:5 7;opacity:.65;pointer-events:none;z-index:-1}
.journey-map {display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:13px 9px;padding:17px 9px 23px;position:relative;min-width:0}
.route-zone .journey-map {grid-template-columns:repeat(6,minmax(0,1fr));padding:1px 1px 7px;gap:15px 9px}
.journey-node {position:relative;min-width:0;min-height:39px;aspect-ratio:1;border:1px solid #94b083;border-radius:50%;background:#fffdf7;color:#365740;font-size:12px;font-weight:700;cursor:pointer;box-shadow:none;transition:transform .17s,background-color .17s;z-index:1}
.journey-node:nth-child(4n+1) {border-radius:47% 53% 51% 49%/53% 47% 53% 47%}
.journey-node:hover {background:#f3f8eb;transform:translateY(-3px);box-shadow:none}
.journey-node.selected {background:var(--forest);color:var(--paper);border-color:var(--forest);box-shadow:none}
.journey-node.current {outline:2px dashed var(--coral);outline-offset:4px}
.journey-node.reviewed:not(.selected) {background:#bdd3a9;border-color:#8ba276;color:#264b30}
.journey-node.reviewed:not(.selected):after {content:'✓';position:absolute;top:-5px;right:-5px;width:17px;height:17px;border-radius:50%;background:var(--forest);color:var(--paper);font-size:11px;line-height:17px}
.week-map-wrap {padding:22px;border:1px solid var(--line);border-radius:8px;background:#e7eddf;margin:18px 0}
.journey-landscape {width:100%;height:190px;object-fit:cover;object-position:50% 54%;border-radius:8px;margin:5px 0 20px;background:var(--soft)}
.week-search {max-width:560px;flex:1 1 220px}
.week-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 17px}
@media (max-width:480px) {
  #week-content > .week-toolbar {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    align-items: stretch;
  }
  #week-content > .week-toolbar > .button {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
.week-index {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.week-index select {max-width:300px}
.week-meta {display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted);padding:0 0 16px;border-bottom:1px solid var(--line);margin:0 0 18px}
.week-overview {display:flex;align-items:center;gap:25px;background:#e4ecdb;border:1px solid #c5d2bb;border-radius:8px;padding:22px 27px;margin:18px 0}
.week-overview-art {width:160px;height:145px;object-fit:contain;mix-blend-mode:multiply;flex:0 0 auto}
.week-overview-copy {min-width:0}
.week-overview-copy h2,.week-overview-copy h3 {font-size:32px;margin:0 0 12px}
.week-overview-copy p {font-size:13px;line-height:1.55;margin-bottom:8px}
.week-overview-copy p:last-child {margin:0}
.week-section-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:19px 0}
.week-section-card {display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:20px;border:1px solid #b9cbb0;border-radius:8px;background:#f8f9f1;color:var(--ink);text-align:left;cursor:pointer;transition:transform .2s,background-color .2s}
.week-section-card:nth-child(3n+2) {background:#e5eddf}
.week-section-card:nth-child(3n+3) {background:#ede9dc}
.week-section-card:hover {background:#e1ecd7;transform:translateY(-3px);box-shadow:none}
.week-section-icon {display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:8px;background:#cfdec2;color:var(--forest)}
.week-section-icon .ui-icon {width:22px;height:22px}
.week-section-title {font-size:17px;font-weight:650;line-height:1.2;letter-spacing:-.02em;overflow-wrap:anywhere}
.week-section-excerpt {font-size:12px;line-height:1.55;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.full-week-reader {border:1px solid #b7c8aa;background:var(--paper);border-radius:8px;overflow:hidden;margin:20px 0}
.full-week-reader>summary {display:flex;align-items:center;justify-content:space-between;gap:20px;list-style:none;padding:22px 24px;min-height:72px;font-size:18px;font-weight:650;line-height:1.25;cursor:pointer;color:var(--forest);background:#e0e9d5}
.full-week-reader>summary::-webkit-details-marker {display:none}
.full-week-reader>summary:after {content:'+';font-size:26px;font-weight:400;line-height:1;flex:0 0 auto}
.full-week-reader[open]>summary:after {content:'−'}
.full-week-reader[open]>summary {border-bottom:1px solid #bfceb3}
.reader-content {padding:28px;min-width:0}
.reader-content>.ritm-markdown {max-width:76ch;margin:0 auto}
.week-note {padding-top:22px;margin-top:20px;border-top:1px solid var(--line)}
.week-note textarea {margin-top:8px}
.note-foot {display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:12px}
.note-foot .hint {margin:0}
.notes-accordion,.questions-accordion,.profile-group,.helper-explanation {border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:0;margin:18px 0;overflow:hidden;min-width:0}
.notes-accordion>summary,.questions-accordion>summary,.profile-group>summary,.helper-explanation>summary {list-style:none;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:62px;padding:18px 22px;font-size:17px;font-weight:650;cursor:pointer;background:#e9eee1}
.notes-accordion>summary:after,.questions-accordion>summary:after,.profile-group>summary:after,.helper-explanation>summary:after {content:'+';font-size:24px;font-weight:400;flex:0 0 auto}
.notes-accordion[open]>summary:after,.questions-accordion[open]>summary:after,.profile-group[open]>summary:after,.helper-explanation[open]>summary:after {content:'−'}
.notes-accordion>summary::-webkit-details-marker,.questions-accordion>summary::-webkit-details-marker,.profile-group>summary::-webkit-details-marker,.helper-explanation>summary::-webkit-details-marker {display:none}
.notes-accordion>.panel {box-shadow:none;border:0;padding:0}
.notes-accordion>div,.questions-accordion>div,.profile-group>div,.helper-explanation>div {padding:20px 22px}
.notes-accordion .panel-heading {display:none}
.profile-group .field {margin-bottom:18px}
.profile-group .field:last-child {margin-bottom:0}
.helper-explanation>p {font-size:13px;color:var(--muted)}
.helper-explanation {background:#eff3e7}
.helper-explanation>summary {min-height:48px;padding:13px 17px;font-size:13px;background:transparent}
.question-row {padding:17px 0;border-bottom:1px solid var(--line)}
.question-row:last-child {border-bottom:0}
.question-row textarea {margin-top:8px}
.task-list,.block-list,.archive-list,.snapshot-list {display:grid;gap:0}
.task-row {display:grid;grid-template-columns:23px minmax(0,1fr) auto;gap:12px;align-items:start;padding:16px 0;border-bottom:1px solid #dce3d4}
.task-row:last-child,.block-row:last-child,.archive-row:last-child {border-bottom:0}
.task-row .checkbox {margin-top:3px}
.task-body {min-width:0;overflow-wrap:anywhere}
.task-body>strong {display:block;font-size:14px;line-height:1.4}
.task-body .hint {font-size:11px;margin:5px 0 0}
.task-row.done .task-body>strong {color:var(--muted);text-decoration:line-through}
.task-actions {display:flex;gap:2px;flex-wrap:wrap;justify-content:flex-end}
.task-actions .button {min-height:38px;font-size:11px;padding:8px}
.checkbox {display:inline-flex;align-items:center;gap:9px;font-size:13px;line-height:1.5;font-weight:500}
.check-label {display:flex;align-items:center;gap:11px;font-size:13px;line-height:1.5;padding:16px 0}
.check-label input {margin:0}
.badge {display:inline-flex;font-size:10px;font-weight:600;line-height:1.35;padding:4px 8px;border-radius:6px;background:#e5ecd9;color:#4b6044;margin:5px 5px 1px 0;white-space:normal}
.badge.confirmed {background:#dce9ca;color:#33572e}
.badge.proposed {background:#e5eced;color:#3e5a61}
.badge.unknown {background:#f3e9ce;color:#69551e}
.block-row {display:grid;grid-template-columns:75px minmax(0,1fr) auto;gap:12px;border-bottom:1px solid #dce3d4;padding:16px 0;align-items:start}
.block-time {position:relative;font-size:12px;color:#496a53;font-variant-numeric:tabular-nums;border-left:2px solid #c1d1b4;padding-left:11px;min-height:43px;white-space:pre-line}
.block-time strong,.block-time span {display:block}
.block-time strong {font-weight:700;color:var(--forest)}
.block-time span {margin-top:5px}
.block-row>div:nth-child(2) {min-width:0;overflow-wrap:anywhere}
.day-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:20px}
.day-column {min-width:0;background:#e8eee0;border:1px solid #c4d1ba;border-radius:8px;padding:14px 10px;min-height:200px}
.day-column:nth-child(even) {background:#efeddf}
.day-heading {font-size:12px;font-weight:700;line-height:1.4;margin:0 0 13px;padding-bottom:12px;border-bottom:1px solid #bdcdb2}
.day-column .hint {font-size:11px}
.day-column>.button {font-size:11px;padding:9px 5px;min-height:38px;width:100%;text-align:left;justify-content:flex-start}
.week-block {display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;padding:11px 8px;background:var(--paper);border:1px solid #c2cfb8;border-left:3px solid #9eb78f;border-radius:8px;margin:8px 0;color:var(--ink);cursor:pointer;overflow-wrap:anywhere;min-height:72px;transition:transform .18s,background-color .18s}
.week-block:hover {background:#f0f5e8;transform:translateY(-2px)}
.week-block.confirmed {border-left-color:var(--forest)}
.week-block.proposed {border-left-color:#718b8d}
.week-block.unknown {border-left-color:#a38e53}
.week-block small {font-size:10px;color:var(--muted)}
.week-block strong {font-size:12px;font-weight:650}
.week-block .badge {font-size:9px;margin:0}
.day-picker {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.day-picker input {width:auto;min-width:155px}
.conflict {background:#f8eddb;border:1px solid #d7bc91;border-radius:8px;padding:12px 14px;font-size:12px;color:#735022;margin:12px 0}
.conflict p {margin:6px 0}
.metric-row {display:flex;gap:22px;flex-wrap:wrap;padding:14px 0 18px}
.metric {min-width:110px;border-left:3px solid var(--sage);padding-left:13px}
.metric strong {display:block;font-size:29px;line-height:1.15;letter-spacing:-.04em}
.metric span {display:block;font-size:11px;color:var(--muted);margin-top:4px}
.archive-row {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid var(--line);font-size:13px;min-width:0}
.source-name {font-weight:650;min-width:0;overflow-wrap:anywhere}
.archive-row .hint {margin:4px 0 0}
.archive-row .button {font-size:12px;flex:0 0 auto}
details.archive-row {display:block;padding:0;border:1px solid var(--line);border-radius:8px;margin:10px 0;overflow:hidden}
details.archive-row summary {cursor:pointer;padding:15px 17px;font-size:13px;font-weight:550;background:#edf1e5}
details.archive-row pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;background:#f5f7ed;padding:17px;margin:0;font-size:12px}
.preview-panel {padding:21px;background:#e8f0dc;border:1px solid #b8cda8;border-radius:8px;margin:18px 0}
.preview-panel ul {padding-left:20px;font-size:13px;line-height:1.6}
.preview-panel>.button {margin:8px 8px 0 0}
.helper-window {display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px;background:#e8efdd;border:1px solid #c0d0af;border-radius:8px;margin-bottom:12px;font-size:13px}
.proposal-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;padding:15px 0;border-bottom:1px solid #d1dec5;font-size:13px}
.proposal-row>strong,.proposal-row>span {min-width:0;overflow-wrap:anywhere}
.diff-before,.diff-after {font-size:12px;overflow-wrap:anywhere}
.diff-before {color:#626f5c}
.diff-after {background:#dbeacb;padding:9px 12px;border-radius:8px}
.diff-before small,.diff-after small {display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}
.progress-track {height:8px;background:#d3dfc8;border-radius:8px;overflow:hidden}
.progress-bar {height:100%;background:var(--forest-light);border-radius:8px;transition:none}
.mini-calendar {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.weekday {font-size:10px;text-align:center;color:var(--muted)}
.month-year {font-weight:700;font-size:14px}
.mobile-menu {display:none}
.toast {position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:150;max-width:min(650px,calc(100vw - 28px));padding:14px 18px;background:var(--forest);color:var(--paper);border-radius:8px;box-shadow:none;font-size:13px;display:flex;gap:13px;align-items:center}
.toast button {border:0;background:#e3ecd5;color:var(--forest);font-weight:650;border-radius:8px;padding:8px 11px;min-height:36px;white-space:nowrap;flex-shrink:0;overflow-wrap:normal;word-break:keep-all}
.ritm-markdown {font-size:15px;line-height:1.8;overflow-wrap:anywhere;min-width:0}
.ritm-markdown h1 {font-size:32px;margin:28px 0 16px}
.ritm-markdown h2 {font-size:26px;margin:28px 0 15px}
.ritm-markdown h3 {font-size:21px;margin:25px 0 12px}
.ritm-markdown h4 {font-size:17px;margin:21px 0 10px}
.ritm-markdown p {margin-bottom:14px;white-space:pre-wrap}
.ritm-markdown ul,.ritm-markdown ol {padding-left:25px;margin:12px 0 21px}
.ritm-markdown li {margin:6px 0}
.ritm-markdown table {border-collapse:collapse;font-size:12px;min-width:580px;width:100%}
.ritm-markdown th,.ritm-markdown td {padding:12px 14px;border-bottom:1px solid var(--line);border-right:1px solid #dde5d5;text-align:left;vertical-align:top;min-width:100px}
.ritm-markdown th {font-weight:650;background:#e5eddb}
.ritm-markdown tr:last-child td {border-bottom:0}
.ritm-markdown pre {font:12px/1.75 ui-monospace,monospace;white-space:pre-wrap;background:#eaf0e0;padding:18px;border-radius:8px;overflow-x:auto}
.ritm-markdown code {font-size:.88em;background:#e9efdf;border-radius:4px;padding:2px 5px}
.ritm-markdown pre code {background:transparent;padding:0}
.ritm-markdown blockquote {border-left:3px solid var(--coral);padding:11px 18px;margin:18px 0;background:#eef3e6;color:#49604c}
.ritm-markdown a {overflow-wrap:anywhere}
.week-edit-preview {border-top:1px solid var(--line);margin-top:20px;padding-top:20px}
.intro-overlay {position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;isolation:isolate;overflow:hidden;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:0;background:var(--forest);color:var(--paper)}
.intro-overlay:not([open]) {display:none}
.intro-overlay::backdrop {background:var(--forest)}
.intro-video {position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;z-index:-2}
.intro-overlay:after {content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#153e34e8 0%,#173f36c2 40%,#173f3638 100%)}
.intro-content {width:min(1160px,100%);padding:50px 8vw;color:var(--paper);position:relative;display:flex;flex-direction:column;align-items:flex-start;max-height:100dvh;overflow:auto}
.intro-skip {position:absolute;top:25px;right:28px;min-height:44px;border:1px solid #e7efdc8c;border-radius:8px;padding:11px 18px;background:#173f36cf;color:var(--paper);font-weight:650;cursor:pointer;z-index:2}
.intro-title {white-space:pre-line;font-size:clamp(40px,6.5vw,82px);max-width:760px;line-height:1.02;letter-spacing:-.055em;margin:0 0 23px}
.intro-content>p {font-size:16px;line-height:1.6;max-width:430px;color:#e9f0e1;margin:0 0 16px}
.intro-content .button {background:#e4ecd8;border-color:#e4ecd8;color:var(--forest);font-size:15px;padding:15px 25px;margin-top:8px;box-shadow:none}
.intro-mascot {position:absolute;width:185px;height:185px;right:4%;bottom:20px;object-fit:contain;pointer-events:none}
.intro-overlay:has(.intro-video) .intro-mascot {display:none}
.intro-overlay .brand {color:var(--paper);font-size:43px;margin-bottom:35px}
.intro-overlay .brand-dot {color:var(--coral)}
@media(hover:hover) {
.view-art {transition:transform .4s}
.view-art-header:hover .view-art {transform:rotate(3deg) translateY(-3px)}
}
@media(min-width:1600px) {
.thread-hero {min-height:450px}
.thread-hero-copy {padding:42px 48px}
.chapter-count {font-size:12px}
}
@media(max-width:1200px) {
.brand {font-size:42px}
.nav-item {font-size:13px;padding:11px 10px;gap:9px}
.thread-hero {min-height:380px}
.thread-hero-copy {padding:29px;width:60%;gap:14px}
.thread-hero-title {font-size:52px}
.chapter-tile {padding:0 9px 12px;border-radius:8px}
.chapter-count {font-size:10px}
.visual-metrics {gap:8px}
.visual-metric {padding:0 10px;gap:10px}
.metric-ring {width:49px;height:49px}
.metric-figure {font-size:25px}
.layout-two {gap:16px}
.panel {padding:21px}
.day-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
.task-actions {flex-direction:column}
.journey-map {grid-template-columns:repeat(11,minmax(0,1fr))}
.route-zone {padding:18px 14px 20px}
.route-zone .journey-map {gap:13px 7px}
.week-section-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.view-art-header {min-height:155px;padding:14px 24px}
.view-art {width:150px;height:130px}
.view-title-copy h1 {font-size:45px}
}
@media(max-width:950px) {
.brand {font-size:39px}
.nav-item {font-size:12px;padding:11px 9px;gap:8px}
.nav-item .ui-icon {width:20px;height:20px}
.thread-hero {min-height:370px}
.thread-hero-copy {width:67%;padding:27px;gap:13px}
.thread-hero-title {font-size:47px}
.thread-hero-copy>p {font-size:13px}
.thread-hero-art {object-position:65% 50%}
.thread-hero:after {background:linear-gradient(90deg,#f4f0e6fa 0%,#f4f0e6e6 36%,#f4f0e65c 67%,#f4f0e600 100%)}
.chapter-count {font-size:11px}
.chapter-tile {padding:0 14px 15px}
.layout-two {grid-template-columns:1fr}
.visual-metric {padding:0 7px;gap:9px}
.metric-ring {width:44px;height:44px}
.metric-figure {font-size:22px}
.metric-label {font-size:10px}
.day-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
.route-zones {grid-template-columns:1fr}
.route-zone .journey-map {grid-template-columns:repeat(9,minmax(0,1fr));gap:14px 10px}
.route-zone-heading {margin-bottom:18px}
.journey-map {grid-template-columns:repeat(9,minmax(0,1fr))}
.week-overview {padding:20px;gap:19px}
.week-overview-art {width:125px;height:130px}
.week-overview-copy h2,.week-overview-copy h3 {font-size:27px}
.view-art-header {min-height:150px;padding:15px 21px}
.view-title-copy h1 {font-size:40px}
.view-art {width:125px;height:125px}
.view-title-copy p {font-size:12px}
.welcome-landscape {width:180px;height:135px}
.intro-content {padding-right:25vw}
.intro-title {font-size:58px}
.intro-mascot {width:150px;height:150px}
}
@media(max-width:650px) {
.nav {display:flex;gap:5px;overflow-x:auto;overscroll-behavior-inline:contain;margin:11px -3px 0;padding:1px 1px 6px;scrollbar-width:thin;scrollbar-color:#a6bea64d transparent}
.nav-item {white-space:nowrap;width:auto;min-height:41px;flex:0 0 auto;padding:9px 11px;font-size:11px;gap:7px;border-radius:8px}
.nav-item>span:first-child {min-width:17px}
.nav-item .ui-icon {width:18px;height:18px}
.nav-item:hover {transform:none}
.nav-item.active:before {left:14px;right:14px;bottom:-3px;top:auto;width:auto;height:3px}
.save-state {font-size:10px;margin-right:auto;gap:5px;white-space:normal;line-height:1.35;max-width:105px}
.save-state:before {flex:0 0 auto;width:5px;height:5px}
.notice {font-size:11px;padding:10px 12px;line-height:1.5;margin:11px 0}
.thread-hero {min-height:545px;margin:15px 0 17px;border-radius:8px;align-items:flex-start;background:#d8e2d2}
.thread-hero-art {height:57%;inset:auto 0 0;object-position:67% 50%}
.thread-hero:after {background:linear-gradient(180deg,#f4f0e6 0%,#f4f0e6 38%,#f4f0e6d9 49%,#f4f0e600 72%)}
.thread-hero-copy {padding:24px 23px;width:100%;max-width:none;gap:13px}
.thread-hero-greeting {font-size:11px}
.thread-hero-title {font-size:46px;line-height:1.02;max-width:340px;letter-spacing:-.055em}
.thread-hero-copy>p {font-size:13px;max-width:300px}
.thread-hero-actions {gap:8px}
.thread-hero-actions .button {min-height:44px;padding:11px 15px;font-size:12px}
.thread-focus {max-width:100%;padding-top:0}
.thread-focus>span {font-size:11px}
.thread-focus input {font-size:13px;min-height:43px;padding:11px 12px}
.chapter-tile {border-radius:8px;padding:0 13px 14px}
.chapter-count {font-size:11px;line-height:1.4}
.visual-metrics {gap:0;padding:15px 0;margin:17px 0 22px}
.visual-metric {padding:0 8px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.visual-metric:first-child {padding-left:2px}
.metric-ring {width:43px;height:43px}
.metric-figure {font-size:22px}
.metric-label {font-size:10px;max-width:95px}
.view-art-header {min-height:145px;border-radius:8px;padding:18px 19px;margin:16px 0 19px;gap:12px}
.view-title-copy {max-width:72%}
.view-title-copy h1 {font-size:35px;margin-bottom:10px}
.view-title-copy p {font-size:12px;line-height:1.5}
.view-art {width:92px;height:112px;margin-right:-5px}
.heading {padding:21px 0}
h1 {font-size:34px}
h2 {font-size:23px}
h3 {font-size:18px}
.title-row {gap:12px}
.title-row .mascot {width:72px;height:72px}
.panel {padding:18px;border-radius:8px;margin-bottom:17px}
.panel-heading {align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.panel-heading h2 {font-size:22px}
.panel-heading .button {font-size:11px;min-height:40px;padding:9px 12px}
.button {font-size:12px;padding:11px 14px;min-height:44px;border-radius:8px}
.wide {grid-column:auto}
.field {gap:7px}
label {font-size:12px}
input,select,textarea {font-size:16px;padding:11px 12px;border-radius:8px;min-height:45px}
textarea {line-height:1.6}
.hint {font-size:12px}
.actions {gap:8px}
.route-zones {gap:13px;margin-top:15px}
.route-zone {padding:18px 15px 22px;border-radius:8px}
.route-zone-heading h3 {font-size:21px}
.route-zone-heading span,.route-zone-heading small {font-size:10px}
.route-zone-heading img {width:51px;height:51px}
.route-zone .journey-map {grid-template-columns:repeat(5,minmax(0,1fr));gap:15px 9px}
.journey-map {grid-template-columns:repeat(7,minmax(0,1fr));gap:13px 7px;padding:13px 3px 20px}
.journey-node {font-size:11px;min-height:36px;box-shadow:none}
.journey-node.current {outline-offset:3px}
.journey-node.reviewed:not(.selected):after {top:-4px;right:-4px;width:14px;height:14px;line-height:14px;font-size:10px}
.route-zone .journey-node {min-height:42px}
.route-thread {inset:60px 8px 10px;width:calc(100% - 16px);height:calc(100% - 70px)}
.week-toolbar {gap:9px;margin-bottom:15px}
.week-toolbar>.button {flex:1;padding:10px 9px;font-size:11px}
.week-toolbar .actions {width:100%}
.week-toolbar .field {width:100%;flex-basis:100%}
.week-toolbar>label:not(.week-search) {max-width:none}
.week-search {max-width:none}
.week-overview {padding:18px 17px;gap:11px;border-radius:8px;margin:16px 0}
.week-overview-art {width:90px;height:100px}
.week-overview-copy h2,.week-overview-copy h3 {font-size:24px;margin-bottom:9px}
.week-overview-copy p {font-size:11px;line-height:1.5}
.week-meta {font-size:11px;gap:9px;margin-bottom:16px;padding-bottom:14px}
.week-section-grid {grid-template-columns:1fr;gap:11px;margin:16px 0}
.week-section-card {display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:12px;row-gap:5px;padding:16px;border-radius:8px}
.week-section-icon {grid-row:1/3;width:38px;height:38px;border-radius:8px}
.week-section-title {font-size:16px;align-self:center}
.week-section-excerpt {font-size:12px;-webkit-line-clamp:2;grid-column:2}
.full-week-reader {border-radius:8px;margin:18px 0}
.full-week-reader>summary {min-height:64px;font-size:16px;padding:18px}
.reader-content {padding:20px 16px}
.notes-accordion,.questions-accordion,.profile-group {border-radius:8px}
.notes-accordion>summary,.questions-accordion>summary,.profile-group>summary {font-size:16px;padding:17px 18px;min-height:60px}
.notes-accordion>div,.questions-accordion>div,.profile-group>div {padding:18px}
.helper-explanation {border-radius:8px}
.helper-explanation>summary {font-size:12px}
.helper-explanation>p {font-size:12px;margin:15px 17px}
.task-row {grid-template-columns:23px minmax(0,1fr);gap:11px;padding:16px 0}
.task-actions {grid-column:2;flex-direction:row;justify-content:flex-start;gap:4px;margin-top:3px}
.task-actions .button {font-size:11px;min-height:38px;padding:8px 9px}
.task-body>strong {font-size:14px}
.task-body .hint {font-size:11px}
.block-row {grid-template-columns:62px minmax(0,1fr);gap:11px}
.block-row .task-actions {grid-column:2}
.block-time {font-size:11px;padding-left:8px}
.day-grid {grid-template-columns:1fr;gap:12px}
.day-column {min-height:100px;padding:16px;border-radius:8px}
.day-heading {font-size:13px}
.day-column .week-block {padding:12px;min-height:65px}
.day-column .week-block strong {font-size:13px}
.day-column .week-block small {font-size:11px}
.day-column>.button {min-height:42px}
.day-picker input {min-width:145px;max-width:100%}
.check-label {font-size:12px;padding:15px 0}
.archive-row {align-items:flex-start;flex-direction:column;gap:11px}
.archive-row .button {font-size:12px}
.source-name {font-size:13px}
.archive-row>.actions {align-self:flex-end}
.helper-window {align-items:flex-start;flex-direction:column;font-size:12px;gap:10px}
.proposal-row {grid-template-columns:1fr;gap:8px}
.diff-before,.diff-after {font-size:12px}
.ritm-markdown {font-size:14px;line-height:1.8}
.ritm-markdown h1 {font-size:28px}
.ritm-markdown h2 {font-size:24px}
.ritm-markdown h3 {font-size:20px}
.ritm-markdown pre {padding:14px;font-size:11px}
.toast {bottom:12px;font-size:12px;gap:10px;padding:12px 15px}
.intro-content {padding:95px 27px 170px;max-height:100dvh;overflow:auto}
.intro-title {font-size:46px;line-height:1.03;max-width:350px}
.intro-content>p {font-size:14px;max-width:300px}
.intro-content .button {font-size:14px;min-height:48px}
.intro-overlay .brand {font-size:37px;margin-bottom:30px}
.intro-skip {top:18px;right:17px;font-size:12px;padding:10px 14px}
.intro-mascot {width:135px;height:135px;right:23px;bottom:20px}
.intro-overlay:after {background:linear-gradient(90deg,#173f36eb,#173f367a)}
.hero-compact {padding:20px;margin:17px 0}
.welcome-landscape {display:none}
}
@media(max-width:380px) {
.thread-hero {min-height:530px}
.thread-hero-copy {padding:23px 20px}
.thread-hero-title {font-size:42px}
.chapter-tile {padding:0 11px 13px}
.save-state {font-size:9px;max-width:93px}
.panel {padding:16px}
.view-title-copy h1 {font-size:31px}
.view-art {width:78px;height:98px}
.view-art-header {padding:17px;gap:8px}
.view-title-copy {max-width:72%}
.week-overview {padding:17px 15px}
.week-overview-art {width:75px;height:93px}
.week-overview-copy h2,.week-overview-copy h3 {font-size:22px}
.route-zone {padding:17px 12px 22px}
.route-zone .journey-map {gap:14px 7px}
.route-zone .journey-node {min-height:40px}
.intro-title {font-size:41px}
}
.ritm-markdown pre {white-space:pre;overflow-x:auto;overscroll-behavior-inline:contain}
.thread-hero-title {white-space:pre-line}
.chapter-heading {font-size:22px;margin:0 0 14px}
.visual-metric {border:0;border-right:1px solid #c3cfba;background:transparent;text-align:left;cursor:pointer;color:var(--ink);border-radius:0;transition:background-color .18s}
.visual-metric:last-child {border-right:0}
.visual-metric:hover {background:#e5ebdb;border-radius:8px}
.metric-figure {position:relative;width:72px;height:72px;flex:0 0 72px;display:block}
.metric-ring {display:block;width:72px;height:72px;transform:none}
.metric-figure>strong {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:21px;letter-spacing:-.045em;line-height:1;font-weight:650;font-variant-numeric:tabular-nums}
.metric-copy {min-width:0}
.metric-copy .metric-label {font-size:12px;color:var(--forest);font-weight:600;margin:0 0 4px}
.metric-copy>.hint {display:block;font-size:10px;line-height:1.4;max-width:150px}
.metric-track {stroke:#d1ddc6}
.metric-value {stroke:var(--forest)}
.route-zone-heading {display:grid;grid-template-columns:62px minmax(0,1fr);gap:3px 13px;align-items:center}
.route-zone-heading>.route-zone-art {grid-row:1/3;margin:0}
.route-zone-heading>strong {font-family:CabinetGrotesk,InterTight,sans-serif;letter-spacing:-.025em;font-size:20px;line-height:1.2;align-self:end}
.route-zone-heading>.hint {grid-column:2;font-size:10px;line-height:1.4;margin:0;align-self:start}
.route-thread {color:var(--coral)}
.week-section-card {position:relative;padding-right:30px}
.week-section-card>.week-section-icon {padding:10px;width:42px;height:42px;stroke:var(--forest);box-sizing:border-box}
.full-week-reader>summary {display:grid;grid-template-columns:23px minmax(0,1fr) auto 22px;gap:12px}
.full-week-reader>summary>.ui-icon {width:23px;height:23px}
.full-week-reader>summary>.hint {font-size:11px;margin:0;font-weight:400}
.full-week-reader>summary:after {text-align:right}
.profile-group>summary {display:grid;grid-template-columns:23px minmax(0,1fr) minmax(100px,1fr) 20px;gap:12px}
.profile-group>summary>strong {font-size:16px}
.profile-excerpt {font-size:12px;line-height:1.4;font-weight:400;color:var(--muted);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.helper-mode {display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:650;padding:7px 11px;background:#e2ebd6;color:#33583b;border-radius:8px;margin:0 0 13px}
.helper-mode:before {content:'✓';font-size:12px}
.week-source-info,.week-note {border:1px solid var(--line);border-radius:8px;background:#f4f6eb;margin:17px 0;padding:0;overflow:hidden}
.week-source-info>summary,.week-note>summary {padding:16px 18px;cursor:pointer;font-size:13px;font-weight:600}
.week-source-info>.week-meta {padding:16px 18px;margin:0;border:0}
.week-note>.accordion-body {padding:18px}
.week-version {font-size:11px;font-weight:600;color:#3e5e45;background:#cfdfc1;padding:5px 8px;border-radius:6px;display:inline-block}
.accordion-body>.hint:last-child {margin-bottom:0}
@media(max-width:1200px) {
.metric-figure {width:63px;height:63px;flex-basis:63px}
.metric-ring {width:63px;height:63px}
.metric-figure>strong {font-size:19px}
.metric-copy .metric-label {font-size:11px}
.metric-copy>.hint {font-size:9px;max-width:130px}
}
@media(max-width:950px) {
.visual-metric {gap:10px;align-items:center}
.metric-figure {width:57px;height:57px;flex-basis:57px}
.metric-ring {width:57px;height:57px}
.metric-figure>strong {font-size:17px}
.metric-copy .metric-label {font-size:10px}
.metric-copy>.hint {font-size:9px}
.profile-group>summary {grid-template-columns:23px minmax(0,1fr) 20px}
.profile-excerpt {grid-column:2;grid-row:2}
.profile-group>summary:after {grid-column:3;grid-row:1/3}
}
@media(max-width:650px) {
.chapter-heading {font-size:21px;margin-bottom:13px}
.visual-metric {align-items:flex-start;gap:8px;padding:0 7px}
.metric-figure {width:61px;height:61px;flex-basis:61px}
.metric-ring {width:61px;height:61px}
.metric-figure>strong {font-size:18px}
.metric-copy .metric-label {font-size:10px;line-height:1.35;max-width:90px}
.metric-copy>.hint {font-size:9px;line-height:1.35;max-width:95px}
.route-zone-heading {grid-template-columns:51px minmax(0,1fr);gap:3px 11px}
.route-zone-heading>strong {font-size:20px}
.route-zone-heading>.route-zone-art {width:51px;height:51px}
.route-zone-heading>.hint {font-size:10px}
.week-section-card {padding-right:32px}
.week-section-card>.week-section-icon {width:38px;height:38px;padding:9px}
.full-week-reader>summary {grid-template-columns:21px minmax(0,1fr) 20px;gap:5px 10px;position:relative}
.full-week-reader>summary>.hint {grid-column:2;font-size:10px}
.full-week-reader>summary:after {grid-column:3;grid-row:1/3}
.full-week-reader>summary>.ui-icon {width:21px;height:21px}
.profile-group>summary {grid-template-columns:21px minmax(0,1fr) 20px;gap:7px 10px}
.profile-group>summary>strong {font-size:15px}
.profile-excerpt {font-size:11px}
.week-note>.accordion-body {padding:17px}
.week-source-info>summary,.week-note>summary {padding:15px 16px;font-size:12px}
.week-version {font-size:10px}
.helper-mode {font-size:10px}
}
.brand {font-weight:700;letter-spacing:-2.5px}
.nav-item {border-radius:6px;font-weight:500}
.nav-item.active {background:#eef0e6}
.nav-item:hover {transform:none;background:#2b5145}
.nav-item.active:hover {background:#eef0e6}
.nav-item.active:before {border-radius:0}
.thread-hero {border-radius:8px;border-color:#c7cebf;background:#dce2d4}
.thread-hero-copy {gap:17px}
.thread-hero-greeting {letter-spacing:.035em;font-weight:500}
.thread-hero-title {font-weight:650;letter-spacing:-.06em}
.thread-hero-actions .button.primary,.thread-hero-actions .button.secondary {border-radius:6px;box-shadow:none}
.button {border-radius:6px;box-shadow:none;font-weight:550}
.button.primary {box-shadow:none}
.button:hover {box-shadow:none;transform:translateY(-1px)}
.button:active {transform:translateY(0)}
.chapter-heading {font-size:21px;font-weight:550;letter-spacing:-.025em}
.chapter-tile {border-radius:7px;background:#edf0e5;border-color:#c6cebd;padding-bottom:16px;box-shadow:none}
.chapter-tile:hover {transform:none;box-shadow:none;border-color:#7a9581;background:#e4eadd}
.chapter-tile:active {transform:none;box-shadow:none}
.chapter-count {color:#536858}
.visual-metric:hover {background:#e9ede1;border-radius:6px}
.metric-ring circle {stroke-width:3}
.metric-figure>strong {font-weight:550}
.metric-copy .metric-label {font-weight:500}
.view-art-header {border-radius:8px;background:#e7ebdf;border-color:#cbd2c2}
.view-title-copy h1 {font-weight:600;letter-spacing:-.045em}
.view-art-header:hover .view-art {transform:translateY(-2px)}
.view-art {transition:transform .6s ease}
.panel {border-radius:8px;border-color:#cbd2c4;box-shadow:none}
.panel-heading h2 {font-size:25px;font-weight:550}
.route-zone {border-radius:7px;background:#e8ede0;border-color:#c4cfbb}
.route-zone:nth-child(4n+2),.route-zone:nth-child(4n+4) {background:#efeee4}
.route-zone:nth-child(4n+3) {background:#e2e9dc}
.route-zone-heading>strong {font-size:17px;line-height:1.3;font-weight:550;letter-spacing:-.015em}
.route-zone-heading>.hint {font-size:10px;letter-spacing:.01em}
.route-thread {stroke-dasharray:none;color:var(--coral);opacity:.44;stroke-width:1.5}
.journey-node,.journey-node:nth-child(4n+1) {border-radius:5px;box-shadow:none;background:#fafaf1;border:1px solid #9bb28e;color:#3b5945;font-weight:550;transition:background-color .18s,border-color .18s}
.journey-node:hover {transform:none;box-shadow:none;background:#dfe9d5;border-color:#577a57}
.journey-node.selected {background:var(--forest);border-color:var(--forest);color:var(--paper);box-shadow:none}
.journey-node.current {outline:2px solid var(--coral);outline-offset:3px}
.journey-node.reviewed:not(.selected) {background:#cfdec1;border-color:#90a681}
.journey-node.reviewed:not(.selected):after {border-radius:2px;width:13px;height:13px;line-height:13px;font-size:9px;top:-3px;right:-3px}
.week-overview {border-radius:8px;background:#e7edde;border-color:#c3d0b7}
.week-overview-copy h2,.week-overview-copy h3 {font-weight:550;letter-spacing:-.035em}
.week-version {border-radius:4px;background:#d5dfca;font-weight:500}
.week-section-card {border-radius:7px;background:#f8f9ef;border-color:#c5d1bc;gap:12px}
.week-section-card:nth-child(3n+2) {background:#edf1e6}
.week-section-card:nth-child(3n+3) {background:#f0eee3}
.week-section-card:hover {transform:none;box-shadow:none;background:#e8efdd}
.week-section-card>.week-section-icon {border-radius:5px;background:#e1ead6}
.week-section-title {font-weight:550}
.week-section-excerpt {line-height:1.6}
.full-week-reader,.notes-accordion,.questions-accordion,.profile-group,.helper-explanation,.week-source-info,.week-note {border-radius:7px}
.full-week-reader>summary {font-weight:550;background:#e5ecdb}
.full-week-reader>summary:after {font-size:23px}
.notes-accordion>summary,.questions-accordion>summary,.profile-group>summary {font-weight:550;background:#e9eee1}
.helper-mode {border-radius:4px;font-weight:500;background:#e7eddf}
.helper-mode:before {content:none}
.empty-state {border-style:solid;border-color:#d1d9c7;border-radius:7px;background:#f3f5ea;padding:24px 18px}
.empty-state .empty-art {width:160px;height:120px;object-fit:contain;margin:0 auto 12px;mix-blend-mode:multiply}
.day-column {border-radius:7px;background:#edf1e5}
.day-column:nth-child(even) {background:#f1f0e6}
.week-block {border-radius:5px}
.week-block:hover {transform:none}
.task-body>strong {font-weight:550}
.badge {border-radius:4px;font-weight:500}
.notice {border-radius:5px;background:#e8eee0}
.notice.error {border-radius:5px}
.field input,.field textarea,.field select {border-radius:5px}
.toast {border-radius:6px;box-shadow:none}
.intro-overlay {border-radius:0}
.intro-title {font-weight:600;letter-spacing:-.055em}
.intro-skip,.intro-content .button {border-radius:5px;box-shadow:none}
.intro-overlay .brand {font-weight:600}
.intro-overlay:after {background:linear-gradient(90deg,#173f36d9 0%,#173f36a6 42%,#173f362e 100%)}
@media(max-width:650px) {
.thread-hero {border-radius:7px;min-height:545px}
.thread-hero-copy {gap:14px}
.thread-hero-actions .button {border-radius:5px}
.chapter-tile {border-radius:6px}
.chapter-heading {font-size:20px}
.panel,.view-art-header,.week-overview {border-radius:7px}
.panel-heading h2 {font-size:22px}
.route-zone {border-radius:6px}
.route-zone-heading>strong {font-size:16px}
.journey-node,.journey-node:nth-child(4n+1) {border-radius:4px}
.week-section-card {border-radius:6px}
.week-section-card>.week-section-icon {border-radius:4px}
.week-section-title {font-weight:550}
.full-week-reader>summary,.notes-accordion>summary,.questions-accordion>summary,.profile-group>summary {font-weight:500}
.empty-state .empty-art {width:150px;height:115px}
.intro-overlay:after {background:linear-gradient(90deg,#173f36eb,#173f3673)}
}
@media(max-width:650px) {
.thread-hero {margin-top:14px}
}
.intro-poster {position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;z-index:-3}
.intro-content {height:100%;justify-content:flex-start;padding-top:clamp(76px,11.5vh,110px);padding-bottom:245px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#e3ead43d transparent}
.intro-overlay .brand {font-size:39px;margin:0 0 24px}
.intro-title {font-size:clamp(42px,5.5vw,68px);line-height:1.04;max-width:690px;margin:0 0 18px}
.intro-chapter-heading {font-family:InterTight,'Segoe UI',sans-serif;font-size:clamp(19px,2.05vw,25px);font-weight:450;letter-spacing:-.025em;line-height:1.25;margin:0 0 11px;color:#f4f0e6}
.intro-content>.intro-description {font-size:14px;line-height:1.6;margin:0 0 15px;max-width:410px;color:#e2eada}
.intro-entry-actions {display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.intro-entry-actions .button {margin-top:3px}
.intro-player-ui {position:absolute;left:clamp(24px,7vw,104px);right:clamp(24px,7vw,104px);bottom:26px;z-index:6;display:grid;gap:16px;padding:18px 21px 15px;max-width:1320px;margin-inline:auto;background:#153b32e8;border:1px solid #d7e2ce45;border-radius:6px;backdrop-filter:blur(8px)}
.intro-media-controls {display:grid;grid-template-columns:112px minmax(0,1fr) 88px;gap:16px;align-items:center;min-width:0}
.intro-play {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:100%;padding:10px 12px;border:1px solid #f2f0e3;background:#f4f0e6;color:#173f36;border-radius:4px;font-size:12px;font-weight:550;line-height:1.25;cursor:pointer;transition:background-color .18s}
.intro-play:hover {background:#dfe8d4}
.intro-play .ui-icon {width:18px;height:18px}
.intro-scrubber-label {display:flex;align-items:center;min-width:0;margin:0;height:44px;width:100%}
.intro-scrubber {appearance:none;-webkit-appearance:none;display:block;min-width:0;width:100%;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#f4f0e6;box-shadow:none;cursor:pointer;accent-color:#f4f0e6}
.intro-scrubber:hover,.intro-scrubber:focus {border:0;box-shadow:none;background:transparent}
.intro-scrubber::-webkit-slider-runnable-track {height:2px;border:0;border-radius:0;background:#dfe8d35c}
.intro-scrubber::-moz-range-track {height:2px;border:0;border-radius:0;background:#dfe8d35c}
.intro-scrubber::-moz-range-progress {height:2px;border:0;background:#f4f0e6}
.intro-scrubber::-webkit-slider-thumb {appearance:none;-webkit-appearance:none;width:13px;height:13px;margin-top:-5.5px;border:1px solid #f4f0e6;border-radius:50%;background:#f4f0e6;box-shadow:0 0 0 3px #173f36}
.intro-scrubber::-moz-range-thumb {width:12px;height:12px;border:1px solid #f4f0e6;border-radius:50%;background:#f4f0e6;box-shadow:0 0 0 3px #173f36}
.intro-time {display:block;font-size:11px;line-height:1.3;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;color:#e4ecdc;letter-spacing:.01em;min-width:0}
.intro-chapters {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;min-width:0;border:0;padding:0;margin:0}
.intro-chapter {position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:center;min-width:0;min-height:53px;padding:10px 8px;background:transparent;border:0;border-top:1px solid #dce6d236;border-radius:0;text-align:left;font-size:12px;font-weight:450;line-height:1.4;color:#e5ecdd;transition:background-color .18s;cursor:default}
.intro-chapters>button.intro-chapter {cursor:pointer}
.intro-chapter:hover {background:#edf3e30b}
.intro-chapter.is-active {background:#e4edda12;color:#fffdf7}
.intro-chapter.is-active:after {content:'';position:absolute;left:8px;right:8px;bottom:0;height:2px;background:var(--coral)}
.intro-chapter-index {font-size:10px;line-height:1.2;font-variant-numeric:tabular-nums;color:#bccfb8;letter-spacing:.05em}
.intro-chapter-label {min-width:0;overflow-wrap:normal;hyphens:none}
.intro-chapter.is-active .intro-chapter-index {color:#f4f0e6}
.intro-media-status {position:absolute;left:clamp(24px,7vw,104px);right:clamp(24px,7vw,104px);bottom:202px;z-index:6;max-width:720px;margin:0;padding:7px 10px;font-size:11px;line-height:1.4;color:#edf1e4;background:#173f36c9;border-radius:4px}
.intro-media-status:empty {display:none}
.intro-overlay:not(:has(.intro-media-controls)) .intro-player-ui {padding-top:14px}
.intro-chapters>div.intro-chapter:hover {background:transparent}
.intro-chapters>div.intro-chapter.is-active:after {display:none}
@media(max-width:950px) {
.intro-player-ui {left:28px;right:28px;bottom:22px;padding:17px 16px 14px;gap:14px}
.intro-content {padding-right:22vw;padding-top:86px;padding-bottom:235px}
.intro-title {font-size:55px;max-width:590px}
.intro-chapter-heading {font-size:22px}
.intro-chapter {grid-template-columns:15px minmax(0,1fr);gap:6px;font-size:11px;padding:10px 6px}
.intro-chapter-index {font-size:9px}
.intro-media-status {left:28px;right:28px;bottom:195px}
.intro-media-controls {grid-template-columns:106px minmax(0,1fr) 84px;gap:13px}
}
@media(max-width:650px) {
.intro-content {padding:81px 25px 270px;height:100%;justify-content:flex-start}
.intro-overlay .brand {font-size:32px;margin:0 0 22px}
.intro-title {font-size:43px;line-height:1.035;max-width:330px;margin:0 0 17px}
.intro-chapter-heading {font-size:20px;font-weight:450;line-height:1.3;margin-bottom:10px;max-width:290px}
.intro-content>.intro-description {font-size:13px;line-height:1.55;max-width:285px;margin-bottom:14px}
.intro-entry-actions .button {font-size:13px;min-height:45px;padding:12px 19px;margin-top:1px}
.intro-skip {top:17px;right:17px;font-size:12px;min-height:42px;padding:10px 14px}
.intro-player-ui {left:14px;right:14px;bottom:16px;padding:13px 13px 10px;border-radius:5px;gap:13px;max-width:none;background:#153b32ed}
.intro-media-controls {grid-template-columns:89px minmax(0,1fr) 77px;gap:10px}
.intro-play {font-size:11px;padding:10px 8px;min-height:44px;border-radius:3px}
.intro-play .ui-icon {width:17px;height:17px}
.intro-time {font-size:10px;letter-spacing:0}
.intro-scrubber-label,.intro-scrubber {height:44px;min-height:44px}
.intro-chapters {grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 7px}
.intro-chapter {grid-template-columns:13px minmax(0,1fr);gap:5px;padding:9px 5px;min-height:53px;font-size:11px;line-height:1.35}
.intro-chapter-index {font-size:8px;letter-spacing:.03em}
.intro-chapter.is-active:after {left:5px;right:5px;height:2px}
.intro-media-status {left:17px;right:17px;bottom:236px;font-size:10px;max-width:none;padding:6px 8px}
.intro-overlay:not(:has(.intro-media-controls)) .intro-media-status {bottom:184px}
.intro-overlay:not(:has(.intro-media-controls)) .intro-content {padding-bottom:218px}
}
@media(max-width:380px) {
.intro-content {padding-left:22px;padding-right:22px;padding-top:79px}
.intro-title {font-size:39px}
.intro-chapter-heading {font-size:19px}
.intro-player-ui {left:11px;right:11px;padding-left:11px;padding-right:11px}
.intro-media-controls {grid-template-columns:84px minmax(0,1fr) 74px;gap:8px}
.intro-play {font-size:10px}
.intro-chapter {font-size:10px;min-height:52px}
.intro-chapters {column-gap:5px}
.intro-media-status {left:15px;right:15px;bottom:233px}
}
@media(max-height:650px) and (min-width:651px) {
.intro-content {padding-top:36px;padding-bottom:185px}
.intro-overlay .brand {font-size:28px;margin-bottom:15px}
.intro-title {font-size:43px;line-height:1.02;margin-bottom:13px}
.intro-chapter-heading {font-size:18px;margin-bottom:7px}
.intro-content>.intro-description {font-size:12px;margin-bottom:10px}
.intro-entry-actions .button {min-height:42px;padding:11px 18px;font-size:12px}
.intro-player-ui {bottom:14px;padding-top:10px;padding-bottom:8px;gap:6px}
.intro-chapter {min-height:43px;font-size:10px;padding-top:7px;padding-bottom:7px}
.intro-media-status {bottom:153px}
.intro-skip {top:16px}
}
.boot-main {min-width:0;padding:0 32px 36px}
.boot-loading-copy {display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.5;color:#425e4c;margin:0}
.boot-loading-mark {width:17px;height:17px;display:block;flex:0 0 auto;border:1.5px solid #afc1aa;border-top-color:var(--forest);border-radius:50%;animation:state-turn 1.2s linear infinite}
.no-script-panel {position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;overflow:auto;gap:15px;padding:clamp(25px,8vw,120px);background:var(--bg)}
.no-script-panel>.brand {margin-bottom:25px}
.no-script-panel>.eyebrow {margin:0}
.no-script-panel>h1 {font-size:clamp(36px,5vw,62px);max-width:760px}
.no-script-panel>p:not(.eyebrow) {max-width:570px;line-height:1.75;color:var(--muted)}
.no-script-panel>.button {margin-top:2px}
.state-card {--state-accent:var(--forest-light);position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);gap:17px;align-items:start;min-width:0;padding:25px;border:1px solid var(--line);border-left:3px solid var(--state-accent);border-radius:6px;background:#f1f3e9;color:var(--ink);text-align:left}
.state-icon {display:flex;align-items:center;justify-content:center;min-width:0;width:48px;height:48px;flex:0 0 auto;border:1px solid #becdb7;border-radius:50%;background:#e3eadb;color:var(--state-accent)}
.state-icon .ui-icon {width:23px;height:23px;stroke-width:1.55}
.state-copy {min-width:0}
.state-title {margin:0 0 8px;font-family:InterTight,'Segoe UI',sans-serif;font-size:18px;font-weight:650;line-height:1.3;letter-spacing:-.025em;color:var(--ink)}
.state-description {max-width:640px;margin:0;font-size:14px;line-height:1.65;color:#4c6154;overflow-wrap:anywhere}
.state-actions {display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:16px;min-width:0}
.state-actions:empty {display:none}
.state-actions>.button {min-height:44px;max-width:100%;font-size:12px;padding:10px 14px}
.state-detail {display:block;max-width:680px;margin:13px 0 0;padding-top:12px;border-top:1px solid #cfD8c8;font-size:12px;line-height:1.65;color:#52645a;overflow-wrap:anywhere;white-space:pre-wrap}
.state-detail:empty {display:none}
.state-card[data-state="empty"] {border-left-color:#7c9872;background:#f2f4ea}
.state-card[data-state="filter-empty"] {--state-accent:#6c8573;border-style:dashed;border-left-style:solid;background:#f8f7ef}
.state-card[data-state="filter-empty"] .state-icon {background:#f2f2e8}
.state-card[data-state="error"] {--state-accent:var(--error);border-color:#d8b9ae;border-left-color:var(--coral);background:#fff8f0}
.state-card[data-state="error"] .state-icon {border-color:#dbb7aa;background:#f6e7db;color:var(--error)}
.state-card[data-state="error"] .state-title {color:#6e332d}
.state-card[data-state="error"] .state-detail {border-color:#e0c8bb;color:#795447}
.state-card[data-state="offline"] {--state-accent:#516b5d;border-style:dashed;border-left-style:solid;background:#eeefe7}
.state-card[data-state="offline"] .state-icon {background:#e1e6dc;border-style:dashed}
.state-card[data-state="busy"] {background:#eaf0e1}
.state-card[data-state="busy"] .state-icon {position:relative;border:0;background:transparent}
.state-card[data-state="busy"] .state-icon:before {content:'';position:absolute;inset:3px;border:1.5px solid #bfd0b5;border-top-color:var(--forest);border-radius:50%;animation:state-turn 1.2s linear infinite}
.state-card[data-state="busy"] .state-icon .ui-icon {width:19px;height:19px}
.state-card[data-state="retry"] {--state-accent:#6e7f5d;background:#f4f2e8}
.state-card[data-state="retry"] .state-icon {background:#e9ebdf}
.state-card.empty-state {padding:25px;text-align:left}
.state-card.empty-state p {max-width:none;text-align:left;margin:0}
.state-card.empty-state .state-actions {margin-top:16px}
.state-card.empty-state .button {margin-top:0}
.state-card.empty-state .empty-art {display:none}
.state-card.is-compact {padding:17px 19px;gap:13px;grid-template-columns:40px minmax(0,1fr)}
.state-card.is-compact .state-icon {width:37px;height:37px}
.state-card.is-compact .state-icon .ui-icon {width:19px;height:19px}
.state-card.is-compact .state-title {font-size:15px;margin-bottom:5px}
.state-card.is-compact .state-description {font-size:12px}
.state-card.is-compact .state-actions {margin-top:12px}
.asset-fallback {position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;overflow:hidden;max-width:100%;background:#e7ebdf;mix-blend-mode:normal;color:#7a9475;border:1px solid #cbd6c1}
.asset-fallback:before {content:'';position:absolute;inset:18%;border:1px solid #b0c1a6;border-radius:50%;z-index:-1}
.asset-fallback:after {content:'';position:absolute;left:19%;right:19%;top:50%;height:23%;border-left:1px solid var(--coral);border-bottom:1px solid var(--coral);border-radius:0 0 0 45px;transform:rotate(-15deg);z-index:-1}
.asset-fallback>.ui-icon {width:30px;height:30px;stroke-width:1.2;opacity:.75}
.view-art.asset-fallback,.week-overview-art.asset-fallback {border:0;border-radius:4px;background:transparent}
.route-zone-art.asset-fallback {width:51px;height:51px;flex:0 0 auto;border:0;background:transparent}
.route-zone-art.asset-fallback>.ui-icon {width:22px;height:22px}
.empty-art.asset-fallback {width:160px;height:120px;margin:0 auto 12px;border:0;background:transparent}
.thread-hero-art.asset-fallback {position:absolute;inset:0;width:100%;height:100%;z-index:-2;border:0;background:#e3e9da}
.thread-hero-art.asset-fallback:before {inset:auto 7% 12% auto;width:31%;height:66%;border-radius:0;border-color:#b7c6ac;background:#eff0e2;transform:rotate(9deg)}
.thread-hero-art.asset-fallback:after {left:auto;right:3%;top:34%;width:47%;height:36%;border-width:2px;border-radius:0 0 0 120px;transform:rotate(-11deg)}
.thread-hero-art.asset-fallback>.ui-icon {position:absolute;right:16%;top:35%;width:70px;height:70px;color:#9ab08f;opacity:.6}
.intro-poster.asset-fallback {position:absolute;inset:0;max-width:none;width:100%;height:100%;z-index:-3;border:0;background:#ccd7c4}
.intro-poster.asset-fallback:before {inset:9% 9% 9% 58%;border-color:#9caf93;border-radius:0;transform:rotate(8deg);background:#e7e9db}
.intro-poster.asset-fallback:after {left:45%;right:3%;top:35%;height:30%;border-width:2px;border-radius:0 0 0 150px}
.intro-poster.asset-fallback>.ui-icon {display:none}
@keyframes state-turn {to{transform:rotate(360deg)}}
@media(max-width:650px) {
.boot-main {padding:0 16px 24px}
.boot-loading-copy {font-size:12px;gap:8px}
.boot-loading-mark {width:15px;height:15px}
.state-card,.state-card.empty-state {grid-template-columns:39px minmax(0,1fr);padding:19px 16px;gap:13px}
.state-icon {width:37px;height:37px}
.state-icon .ui-icon {width:20px;height:20px}
.state-title {font-size:17px;line-height:1.3}
.state-description {font-size:13px;line-height:1.6}
.state-detail {font-size:11px;line-height:1.65}
.state-actions {gap:8px;margin-top:14px}
.state-actions>.button {min-height:44px;max-width:100%;font-size:11px;padding:10px 12px}
.state-card.is-compact {padding:15px 13px;gap:11px;grid-template-columns:33px minmax(0,1fr)}
.state-card.is-compact .state-icon {width:31px;height:31px}
.state-card.is-compact .state-title {font-size:14px}
.no-script-panel {justify-content:flex-start;padding:50px 25px}
.no-script-panel>.brand {font-size:35px;margin-bottom:30px}
.no-script-panel>h1 {font-size:36px}
.no-script-panel>p:not(.eyebrow) {font-size:14px}
.thread-hero-art.asset-fallback:before {width:48%;height:36%;bottom:4%;right:15%}
.thread-hero-art.asset-fallback:after {top:65%;right:4%;width:65%;height:22%}
.thread-hero-art.asset-fallback>.ui-icon {top:auto;bottom:17%;right:30%;width:45px;height:45px}
}
@media(max-width:380px) {
.boot-main {padding-left:13px;padding-right:13px}
.state-card,.state-card.empty-state {padding:17px 13px;gap:11px;grid-template-columns:34px minmax(0,1fr)}
.state-icon {width:33px;height:33px}
.state-title {font-size:16px}
.state-actions>.button {font-size:11px;padding-left:11px;padding-right:11px}
}
.bootstrap-panel.state-card {display:grid;grid-template-columns:minmax(150px,230px) minmax(0,1fr);align-items:center;gap:35px;width:min(930px,calc(100% - 48px));max-width:100%;margin:clamp(34px,10vh,100px) auto;padding:38px 40px;background:#f8f7ef;border:1px solid #c8d3bf;border-left:3px solid var(--forest-light);border-radius:7px}
.bootstrap-art {display:block;width:100%;height:220px;object-fit:contain;mix-blend-mode:multiply}
.bootstrap-art.asset-fallback {display:flex;border:0;background:#e6ebde;min-height:190px;border-radius:4px}
.bootstrap-art.asset-fallback>.ui-icon {width:48px;height:48px}
.bootstrap-copy {min-width:0}
.bootstrap-panel .state-title {font-family:CabinetGrotesk,InterTight,'Segoe UI',sans-serif;font-size:clamp(26px,3.2vw,37px);line-height:1.12;letter-spacing:-.035em;margin-bottom:15px}
.bootstrap-panel .state-description {font-size:14px;line-height:1.75}
.bootstrap-panel .state-detail {font-size:12px;line-height:1.7}
.bootstrap-actions.state-actions {margin-top:21px;gap:10px}
.bootstrap-actions .button {font-size:12px;min-height:46px;padding:11px 15px}
.bootstrap-status {display:flex;align-items:center;gap:10px;max-width:630px;margin:17px 0 0;color:#49614f;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.bootstrap-status:empty {display:none}
.bootstrap-panel[data-state="loading"] .bootstrap-status:before {content:'';display:block;flex:0 0 auto;width:17px;height:17px;border:1.5px solid #bccdb2;border-top-color:var(--forest);border-radius:50%;animation:state-turn 1.2s linear infinite}
.bootstrap-panel[data-state="error"] {border-color:#d7b9ab;border-left-color:var(--coral);background:#fff8ef}
.bootstrap-panel[data-state="error"] .state-title {color:#6e332d}
.bootstrap-panel[data-state="preserved"] {border-left-color:#718d6b;background:#f2f4e9}
.bootstrap-panel[data-state="preview"] {border-color:#bbccb0;border-left-color:var(--forest);background:#e9efdf}
.bootstrap-panel[data-state="preview"] .state-detail {border-top-color:#bdcdb2}
.bootstrap-panel[data-state="preview"] .state-title {font-size:clamp(24px,3vw,34px)}
.offline-banner:not([hidden]) {display:flex}
.offline-banner {position:relative;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 18px;margin:17px 0 18px;padding:13px 17px;border:1px dashed var(--control-border);border-left:3px solid var(--forest-light);border-radius:5px;background:var(--soft);color:var(--ink);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.offline-banner:before {content:'';display:block;flex:0 0 auto;width:7px;height:7px;border:1.5px solid var(--forest-light);border-radius:50%}
.offline-banner>span,.offline-banner>p {flex:1 1 230px;margin:0;min-width:0}
.offline-banner .button {min-height:44px;padding:9px 12px;font-size:11px}
.offline-banner>.ui-icon {width:19px;height:19px}
.offline-banner:has(>.ui-icon):before {display:none}
.import-busy {position:relative;display:flex;align-items:center;gap:11px;margin:14px 0;padding:13px 16px;border:1px solid #bfccb3;border-radius:5px;background:#eaf0e0;color:#36573f;font-size:12px;line-height:1.6}
.import-busy:before {content:'';display:block;flex:0 0 auto;width:17px;height:17px;border:1.5px solid #b4c6a7;border-top-color:var(--forest);border-radius:50%;animation:state-turn 1.2s linear infinite}
.state-actions .button:disabled,.bootstrap-actions .button:disabled,[data-import-action]:disabled {opacity:.58;box-shadow:none;transform:none;cursor:wait}
.button[aria-busy="true"] {position:relative;gap:10px}
.button[aria-busy="true"]:before {content:'';display:block;flex:0 0 auto;width:14px;height:14px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:state-turn 1.2s linear infinite}
@media(max-width:650px) {
.bootstrap-panel.state-card {width:calc(100% - 28px);grid-template-columns:minmax(0,1fr);gap:16px;margin:23px auto;padding:22px 21px 26px}
.bootstrap-art {width:140px;height:115px;margin:0 auto}
.bootstrap-art.asset-fallback {width:140px;min-height:115px;height:115px}
.bootstrap-panel .state-title {font-size:28px;margin-bottom:12px}
.bootstrap-panel .state-description {font-size:13px;line-height:1.7}
.bootstrap-panel .state-detail {font-size:11px;line-height:1.7}
.bootstrap-actions.state-actions {margin-top:18px;gap:9px}
.bootstrap-actions .button {font-size:11px;min-height:44px;padding:10px 13px}
.bootstrap-status {font-size:11px;line-height:1.6}
.offline-banner {padding:12px 13px;gap:9px 12px;font-size:11px;margin-top:13px;margin-bottom:14px}
.offline-banner>span,.offline-banner>p {flex-basis:200px}
.offline-banner .button {margin-left:18px;min-height:44px}
.import-busy {padding:12px 13px;font-size:11px;gap:9px}
}
@media(max-width:380px) {
.bootstrap-panel.state-card {width:calc(100% - 22px);padding:21px 18px 24px}
.bootstrap-panel .state-title {font-size:26px}
.bootstrap-actions .button {font-size:11px}
.offline-banner {padding-left:11px;padding-right:11px}
}
.calendar-overview {display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:0 0 20px;border-bottom:1px solid var(--line);margin-bottom:20px}
.calendar-overview h2 {font-size:clamp(23px,2.5vw,34px);margin:0 0 10px}
.calendar-overview p {margin-bottom:0}
.calendar-overview .eyebrow {margin-bottom:10px}
.calendar-zone {font-size:11px;color:var(--muted);max-width:220px;text-align:right;overflow-wrap:anywhere}
.calendar-controls {align-items:end;gap:10px}
.calendar-controls .field {flex:1;max-width:190px}
.calendar-controls>.button {font-size:12px;min-height:46px}
.calendar-caption {margin:0 0 20px}
.day-grid {gap:10px;align-items:stretch}
.day-column {display:flex;flex-direction:column;background:linear-gradient(155deg,#f8f7ef,#e5ebde);padding:16px 11px;min-height:280px}
.day-column.is-today {border-color:var(--forest-light);box-shadow:inset 0 3px var(--forest)}
.day-column .day-heading {display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:46px;margin-bottom:10px;line-height:1.4;letter-spacing:0;font-family:InterTight,'Segoe UI',sans-serif;font-size:13px}
.today-tag {display:inline-block;font-size:9px;line-height:1.3;background:var(--forest);color:var(--paper);padding:3px 6px;border-radius:3px}
.day-total {font-size:11px;font-weight:650;margin:0 0 9px}
.time-footprint {margin:4px 0 14px;min-width:0}
.time-footprint-track {display:block;width:100%;height:16px;overflow:hidden}
.time-footprint-base {fill:#d7e0cf}
.time-footprint-tick {stroke:#9fb199;stroke-width:2}
.time-footprint-block {fill:var(--forest)}
.time-footprint-block.is-addition {fill:var(--coral)}
.time-footprint-scale {display:flex;justify-content:space-between;font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:4px}
.day-intervals {flex:1;min-width:0}
.day-empty {padding:17px 0;line-height:1.6}
.day-column>.button {margin-top:14px;min-height:44px;border:1px dashed #a9bba1;background:#fffdf76b;justify-content:center}
.week-block {padding:12px 9px;min-height:84px;border-radius:4px;background:#fffdf7e6;box-shadow:0 3px 10px #173f3605}
.week-block .interval-clock {font-size:10px;color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}
.week-block .interval-continuation {font-size:9px;line-height:1.5}
.day-conflict {font-size:10px;color:#803e31;border-left:2px solid var(--coral);padding-left:7px;margin:0 0 10px}
.calendar-conflicts .conflict {margin:10px 0}
.schedule-comparison {border-top:3px solid var(--forest);scroll-margin-top:100px}
.comparison-summary {font-size:13px;max-width:760px}
.comparison-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:20px 0;margin:0 0 18px;border-block:1px solid var(--line)}
.comparison-metrics>div {min-width:0;display:grid;gap:6px;padding-right:10px}
.comparison-metrics strong {font-size:32px;line-height:1;letter-spacing:-.035em}
.comparison-metrics span {font-size:11px;line-height:1.45;color:var(--muted)}
.comparison-day {padding:21px 0 10px;border-top:1px solid var(--line);margin-top:22px}
.comparison-day>h3 {font-size:20px;margin-bottom:16px}
.comparison-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.comparison-column {padding:20px;background:#f2f1e8;border:1px solid #ced5c5;border-radius:5px;min-width:0}
.comparison-column.after {background:#e8efe1;border-color:#bacbb0}
.comparison-column h4 {font-family:InterTight,'Segoe UI',sans-serif;letter-spacing:0;font-size:14px;margin:0 0 9px}
.comparison-column .hint {font-size:11px;margin:0 0 14px}
.comparison-block {cursor:default;min-height:0;margin:10px 0;border-left-color:#6b8765;padding:14px 15px;transition:none}
.comparison-block:hover {transform:none;background:var(--paper)}
.comparison-block.is-addition {border:1px dashed #ca9786;border-left:3px solid var(--coral);background:#fff8f0}
.comparison-block strong {font-size:14px;line-height:1.45}
.comparison-tag {font-size:10px;font-weight:650;color:var(--forest-light);margin-top:4px}
.is-addition .comparison-tag {color:#8c4335}
.comparison-empty {font-size:12px;line-height:1.7;color:var(--muted);margin:20px 0}
.comparison-warning {font-size:12px;line-height:1.6;padding:12px 15px;border-left:2px solid #ac8c59;background:#f6efdf;margin:16px 0}
.comparison-unscheduled {padding:22px;margin-top:20px;background:#f5f0e4;border:1px solid #d9ccb6;border-radius:5px}
.comparison-unscheduled h3 {font-size:19px}
.unscheduled-row {padding:12px 0;border-bottom:1px solid #ded5c3;overflow-wrap:anywhere}
.unscheduled-row:last-child {border-bottom:0}
.unscheduled-row strong {font-size:13px}
.unscheduled-row p {margin:5px 0 0}
.comparison-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
@media(min-width:651px) and (max-width:1199px) {
.day-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.day-column .day-heading {flex-direction:row;align-items:center;min-height:30px}
.calendar-controls .field {max-width:none;flex-basis:180px}
.calendar-controls>.button {flex:1 1 140px}
}
@media(max-width:650px) {
.calendar-overview {display:block;padding-bottom:17px;margin-bottom:16px}
.calendar-overview h2 {font-size:25px;line-height:1.2}
.calendar-zone {text-align:left;margin-top:12px;max-width:none;font-size:10px}
.calendar-overview .hint {font-size:12px}
.calendar-controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.calendar-controls>.field {grid-column:1/-1;width:100%;max-width:none;grid-row:1}
.calendar-controls>.button {width:100%;font-size:11px;min-height:44px;padding:10px 8px}
.calendar-controls>.button:last-child {grid-column:1/-1}
.day-grid {grid-template-columns:1fr;gap:14px}
.day-column {min-height:160px;padding:19px}
.day-column .day-heading {flex-direction:row;justify-content:space-between;align-items:center;font-size:16px;min-height:30px}
.day-total {font-size:12px}
.day-column .week-block {padding:14px 13px}
.week-block .interval-clock {font-size:12px}
.week-block .interval-continuation {font-size:11px}
.day-conflict {font-size:12px}
.comparison-metrics {gap:10px;padding:18px 0}
.comparison-metrics strong {font-size:28px}
.comparison-metrics span {font-size:10px}
.comparison-columns {grid-template-columns:1fr;gap:12px}
.comparison-column {padding:17px}
.comparison-day>h3 {font-size:21px;line-height:1.25}
.comparison-column h4 {font-size:15px}
.comparison-column .hint {font-size:12px}
.comparison-block strong {font-size:14px}
.comparison-tag {font-size:11px}
.comparison-actions {display:grid;grid-template-columns:1fr}
.comparison-actions>.button {width:100%;min-height:46px}
.comparison-unscheduled {padding:17px}
.comparison-warning {font-size:12px}
.schedule-comparison {scroll-margin-top:110px}
}
.week-cover {position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr);align-items:center;gap:0;overflow:hidden;margin:24px 0 30px;min-height:390px;border:1px solid #d0d5c7;border-radius:8px;background:linear-gradient(125deg,#faf7ee,#edf0e5)}
.week-cover-copy {position:relative;z-index:2;padding:42px 0 46px 36px;min-width:0}
.week-cover-kicker {font-size:9px;font-weight:650;letter-spacing:.16em;margin:0 0 24px;color:#52645a}
.week-cover-title {font-size:clamp(45px,5.4vw,84px);font-family:InterTight,'Segoe UI',sans-serif;font-weight:600;line-height:.99;letter-spacing:-.065em;white-space:pre-line;margin:0 0 23px;text-wrap:balance}
.week-cover-description {font-size:14px;line-height:1.65;white-space:pre-line;max-width:265px;color:#4a6052;margin:0 0 25px}
.week-cover-actions {display:flex;gap:7px;flex-wrap:wrap}
.week-cover-actions .button {min-height:46px;font-size:12px}
.week-cover-actions .button.primary {gap:15px;padding-inline:18px}
.week-cover-actions .button.primary:after {content:'↗';font-size:20px;line-height:1}
.week-cover-stage {position:relative;z-index:1;align-self:stretch;min-width:0;margin:0;display:flex;flex-direction:column;justify-content:center;padding:21px 24px 0 0}
.week-cover-art {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;mix-blend-mode:multiply;border-radius:4px}
.week-cover-art.asset-fallback {display:flex;align-items:center;justify-content:center;background:#e4ebdc;min-height:230px}
.week-cover-art.asset-fallback .ui-icon {width:70px;height:70px;color:#67806c}
.week-cover-materials {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:20px 0 22px;margin-top:auto;border-top:1px solid #b6c3af}
.week-cover-materials>span {display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:6px;row-gap:5px;min-width:0}
.week-cover-materials small {grid-row:1/3;font-size:9px;font-variant-numeric:tabular-nums;color:#6a7668;padding-top:2px}
.week-cover-materials strong {font-size:12px;font-weight:600;letter-spacing:-.015em;line-height:1.3}
.week-cover-materials span>span {font-size:9px;line-height:1.5;color:#52645a}
.week-cover-thread {position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.week-cover-thread path {fill:none;stroke:#c85b4c;stroke-width:1;vector-effect:non-scaling-stroke;opacity:.58}
.week-calendar {scroll-margin-top:100px}
.week-calendar:focus {outline:none}
.week-cover.is-entering .week-cover-copy {animation:week-cover-rise .55s cubic-bezier(.22,.61,.36,1)}
.week-cover.is-entering .week-cover-art {animation:week-cover-settle .7s cubic-bezier(.22,.61,.36,1)}
.week-cover.is-entering .week-cover-thread path {animation:week-cover-draw .7s ease-out}
@keyframes week-cover-rise {from{opacity:.3;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes week-cover-settle {from{opacity:.3;transform:translateY(13px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes week-cover-draw {from{opacity:0}to{opacity:1}}
@media(min-width:651px) and (max-width:1050px) {
.week-cover {grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);min-height:360px}
.week-cover-copy {padding:32px 0 34px 26px}
.week-cover-title {font-size:clamp(40px,5.5vw,58px)}
.week-cover-stage {padding:20px 19px 0 10px}
.week-cover-kicker {font-size:8px;margin-bottom:20px}
.week-cover-materials {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.week-cover-materials>span {display:flex;flex-direction:column;gap:5px}
.week-cover-materials small {display:none}
.week-cover-materials strong {font-size:11px}
.week-cover-materials span>span {font-size:9px}
.week-cover-description {font-size:13px}
.week-cover-actions .button {font-size:11px;padding:10px 13px}
}
@media(max-width:650px) {
.week-cover {grid-template-columns:1fr;min-height:0;margin:17px 0 24px}
.week-cover-copy {padding:28px 24px 0}
.week-cover-kicker {font-size:9px;margin-bottom:20px}
.week-cover-title {font-size:clamp(46px,13.2vw,65px);letter-spacing:-.06em;margin-bottom:18px}
.week-cover-description {font-size:13px;line-height:1.6;margin-bottom:20px;max-width:none}
.week-cover-actions {gap:8px}
.week-cover-actions .button {font-size:12px;min-height:45px}
.week-cover-stage {padding:0 18px;margin-top:7px}
.week-cover-art {width:100%;aspect-ratio:16/9;object-fit:contain;min-height:0}
.week-cover-materials {padding:16px 0 20px;gap:9px;margin-top:0}
.week-cover-materials>span {display:flex;flex-direction:column;gap:6px}
.week-cover-materials small {font-size:9px}
.week-cover-materials strong {font-size:12px}
.week-cover-materials span>span {font-size:10px;line-height:1.5;max-width:85px}
.week-cover-thread {opacity:.5}
.week-calendar {scroll-margin-top:110px}
}
.week-cover-art {aspect-ratio:1600/905}
@media(max-width:650px) {
.week-cover-art.asset-fallback {min-height:0}
}
.empty-state[data-state] {display:grid;grid-template-columns:120px minmax(0,1fr);column-gap:23px;row-gap:0;align-items:start;min-width:0;padding:25px 24px;background:#f2f4e9;border:1px solid #cbd6c1;border-left:3px solid #77956d;border-radius:6px;text-align:left}
.empty-state[data-state]>.empty-art {display:block;grid-column:1;grid-row:1/span 3;align-self:center;width:120px;height:112px;object-fit:contain;margin:0;mix-blend-mode:multiply}
.empty-state[data-state]>.empty-art.asset-fallback {display:flex;mix-blend-mode:normal}
.empty-state[data-state]>.state-title {grid-column:2;margin:0 0 8px;font-size:18px;line-height:1.3}
.empty-state[data-state]>.state-description {grid-column:2;text-align:left;font-size:13px;line-height:1.65;max-width:630px;margin:0;color:#4b6351}
.empty-state[data-state]>.state-actions {grid-column:2;margin-top:16px}
.empty-state[data-state]>.state-actions:empty {display:none}
.empty-state[data-state] .button {margin-top:0;min-height:44px}
.empty-state[data-state="filter-empty"] {border-style:dashed;border-left-style:solid;border-left-color:#69836d;background:#f8f7ef}
.empty-state[data-state="filter-empty"]>.state-title {color:#3e5a47}
.empty-state.done-empty {border-left-color:#4e7356;background:#eef3e6}
.empty-state.route-empty {background:#f5f3e9}
.empty-state[data-state]>.state-detail {grid-column:2;margin-top:12px}
.bootstrap-panel>.bootstrap-art {grid-column:1;grid-row:1/span 2}
.bootstrap-panel>.bootstrap-copy {grid-column:2;grid-row:1}
.bootstrap-panel>.bootstrap-actions {grid-column:2;grid-row:2;margin-top:0;align-self:start}
.bootstrap-panel>.bootstrap-status {grid-column:2}
@media(max-width:650px) {
.empty-state[data-state] {grid-template-columns:70px minmax(0,1fr);column-gap:14px;padding:20px 17px}
.empty-state[data-state]>.empty-art {width:70px;height:76px;grid-row:1/span 2;align-self:start;margin:4px 0 0}
.empty-state[data-state]>.state-title {font-size:16px;margin-bottom:7px}
.empty-state[data-state]>.state-description {font-size:12px;line-height:1.65}
.empty-state[data-state]>.state-actions {grid-column:1/-1;margin-top:16px}
.empty-state[data-state]>.state-detail {grid-column:1/-1;font-size:11px}
.bootstrap-panel>.bootstrap-art,.bootstrap-panel>.bootstrap-copy,.bootstrap-panel>.bootstrap-actions,.bootstrap-panel>.bootstrap-status {grid-column:1;grid-row:auto}
.bootstrap-panel>.bootstrap-actions {margin-top:1px}
}
@media(max-width:380px) {
.empty-state[data-state] {grid-template-columns:59px minmax(0,1fr);column-gap:12px;padding:18px 14px}
.empty-state[data-state]>.empty-art {width:59px;height:67px}
.empty-state[data-state]>.state-title {font-size:15px}
.empty-state[data-state]>.state-description {font-size:12px}
}
.day-column .day-heading > .calendar-day-button {
  min-height: 34px;
  max-width: 100%;
  padding: 4px 7px;
  white-space: normal;
  text-align: left;
  font: inherit;
}
.calendar-day-controls { justify-content: flex-start; }
.calendar-day-intervals .week-block > .badge { align-self: flex-start; }
@media (min-width: 651px) {
.calendar-day-controls > .button:last-child { margin-inline-start: auto; }
}
@media (max-width: 650px) {
.day-column .day-heading > .calendar-day-button { min-height: 44px; }
.calendar-day-controls > .button:first-child { grid-column: 1 / -1; }
}

/* Цвет и типографика */
html[data-theme] ::selection { color: #050607; background: #bbd7ff; }
html[data-theme] h1,
html[data-theme] h2,
html[data-theme] h3,
html[data-theme] h4 { color: #f3f4f6; font-family: InterTight, 'Segoe UI', sans-serif; }
html[data-theme] a { color: #c7ddff; }
html[data-theme] .hint,
html[data-theme] .eyebrow,
html[data-theme] .profile-excerpt,
html[data-theme] .calendar-zone,
html[data-theme] .chapter-count { color: #a6abb5; }
html[data-theme] .eyebrow { font-size: 10px; letter-spacing: .16em; }
html[data-theme] .brand { color: #f3f4f6; }
html[data-theme] .brand-dot { color: #ff936f; }
html[data-theme] .nav-item { color: #aab5c6; background: transparent; border-radius: 8px; }
html[data-theme] .nav-item:hover { color: #eaf1fc; background: #182131; }
html[data-theme] .nav-item.active,
html[data-theme] .nav-item.active:hover { color: #f3f4f6; background: #263247; }
html[data-theme] .nav-item.active:before { background: #ff936f; }
html[data-theme] .save-state { color: #b5c9e7; }
html[data-theme] .save-state:before { background: #bbd7ff; }
html[data-theme] .save-state.dirty { color: #ffb69c; }
html[data-theme] .save-state.dirty:before { background: #ff936f; }
html[data-theme] input,
html[data-theme] select,
html[data-theme] textarea {
  color: #f3f4f6;
  background: #0b0e14;
  border-color: #454c59;
  border-radius: 8px;
}
html[data-theme] input:hover,
html[data-theme] select:hover,
html[data-theme] textarea:hover { border-color: #778293; }
html[data-theme] input:focus,
html[data-theme] select:focus,
html[data-theme] textarea:focus { border-color: #bbd7ff; }
html[data-theme] input::placeholder,
html[data-theme] textarea::placeholder { color: #8e96a4; opacity: 1; }
html[data-theme] input[type="checkbox"] { accent-color: #bbd7ff; }
html[data-theme] .button {
  color: #f3f4f6;
  background: #171c25;
  border-color: var(--control-border);
  border-radius: 8px;
  font-weight: 550;
}
html[data-theme] .button:hover { background: #252d3a; border-color: #718099; }
html[data-theme] .button.primary {
  color: #080b10;
  background: #f3f4f6;
  border-color: #f3f4f6;
}
html[data-theme] .button.primary:hover { background: #bbd7ff; border-color: #bbd7ff; }
html[data-theme] .button.secondary { color: #e5ebf6; background: #171c25; border-color: var(--control-border-strong); }
html[data-theme] .button.quiet { color: #bfc7d5; background: transparent; border-color: transparent; }
html[data-theme] .button.quiet:hover { color: #fff; background: #ffffff0d; }
html[data-theme] .button.danger { color: #ffb39a; background: #2e1b1b; border-color: #74463f; }
html[data-theme] .motion-toggle { color: #c3cbd8; border-color: var(--control-border); background: #131923; }
html[data-theme] .thread-hero {
  min-height: 540px;
  margin-top: 24px;
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  background: #080b12;
}
html[data-theme] .thread-hero-art { object-position: 66% 50%; opacity: .92; mix-blend-mode: normal; }
html[data-theme] .thread-hero:after {
  background: linear-gradient(90deg,#030508f0 0%,#030508c9 34%,#03050844 72%,#0305082e 100%),linear-gradient(0deg,#030508b8,transparent 45%);
}
html[data-theme] .thread-hero-copy { width: 70%; max-width: 820px; padding: 50px 46px; gap: 21px; }
html[data-theme] .thread-hero-greeting { color: #c2cbd9; font-size: 12px; }
html[data-theme] .thread-hero-title {
  color: #fff;
  font-size: clamp(48px,5.9vw,94px);
  font-weight: 550;
  letter-spacing: -.065em;
  line-height: .99;
  max-width: 700px;
  text-shadow: 0 2px 35px #0009;
}
html[data-theme] .thread-hero-copy > p { color: #c1cad8; font-size: 15px; max-width: 390px; }
html[data-theme] .thread-hero-actions .button.secondary { background: #131a27b8; border-color: #8897ad80; }
html[data-theme] .thread-focus { max-width: 470px; }
html[data-theme] .thread-focus > span { color: #c2cbd9; font-size: 12px; }
html[data-theme] .thread-focus input { background: #070c15b8; color: #f3f4f6; border-color: #6d7b906b; backdrop-filter: blur(12px); }
html[data-theme] .chapter-heading { font-size: 22px; font-weight: 500; color: #dce3ef; }
html[data-theme] .chapter-tile:hover { background: #232d3dd9; border-color: #a1b8d65c; transform: translateY(-3px); }
html[data-theme] .chapter-count { font-size: 11px; margin-top: 3px; }
html[data-theme] .visual-metrics { border-color: #ffffff24; padding-block: 22px; }
html[data-theme] .visual-metric { border-color: #ffffff24; color: #f3f4f6; }
html[data-theme] .visual-metric:hover { background: #ffffff0a; }
html[data-theme] .metric-ring circle:first-child,
html[data-theme] .metric-track { stroke: #ffffff1c; }
html[data-theme] .metric-ring circle:last-child,
html[data-theme] .metric-value { stroke: #bbd7ff; }
html[data-theme] .visual-metric:nth-child(2) .metric-ring circle:last-child { stroke: #ff936f; }
html[data-theme] .metric-copy .metric-label { color: #e1e7f1; }
html[data-theme] .metric-copy > .hint { color: #a6abb5; }
html[data-theme] .panel,
html[data-theme] .notes-accordion,
html[data-theme] .questions-accordion,
html[data-theme] .profile-group,
html[data-theme] .helper-explanation,
html[data-theme] .full-week-reader,
html[data-theme] .week-source-info,
html[data-theme] .week-note {
  background: #0d1119ed;
  color: #e5eaf3;
  border-color: #ffffff20;
  border-radius: 11px;
  backdrop-filter: blur(20px);
}
html[data-theme] .panel-heading h2 { color: #f3f4f6; font-weight: 500; }
html[data-theme] .notes-accordion > summary,
html[data-theme] .questions-accordion > summary,
html[data-theme] .profile-group > summary,
html[data-theme] .helper-explanation > summary,
html[data-theme] .full-week-reader > summary,
html[data-theme] .week-source-info > summary,
html[data-theme] .week-note > summary {
  color: #e8eef7;
  background: #171e29e6;
  border-color: #ffffff20;
}
html[data-theme] .full-week-reader[open] > summary { border-color: #ffffff20; }
html[data-theme] .view-art-header { background: #0a0e16c9; border-color: #ffffff20; border-radius: 12px; min-height: 170px; padding: 28px 30px; }
html[data-theme] .view-title-copy { max-width: 100%; }
html[data-theme] .view-title-copy h1 { color: #f3f4f6; font-size: clamp(42px,4.7vw,68px); font-weight: 550; letter-spacing: -.055em; }
html[data-theme] .view-title-copy p { color: #b3bdcc; font-size: 14px; }
html[data-theme] .view-art,
html[data-theme] .route-zone-art,
html[data-theme] .week-overview-art,
html[data-theme] .empty-art,
html[data-theme] .empty-state[data-state] > .empty-art,
html[data-theme] .bootstrap-art { display: none; }
html[data-theme] .empty-state,
html[data-theme] .empty-state[data-state],
html[data-theme] .empty-state[data-state="filter-empty"],
html[data-theme] .empty-state.done-empty,
html[data-theme] .empty-state.route-empty {
  display: block;
  background: #161c27;
  border-color: #414c60;
  border-left-color: #bbd7ff;
  color: #e3e9f3;
  border-radius: 8px;
  text-align: left;
}
html[data-theme] .empty-state .state-title,
html[data-theme] .empty-state[data-state="filter-empty"] > .state-title { color: #eef2f8; }
html[data-theme] .empty-state p,
html[data-theme] .empty-state .state-description,
html[data-theme] .empty-state[data-state] > .state-description { color: #b5becd; }
html[data-theme] .empty-state .state-actions { margin-top: 16px; }
html[data-theme] .hero-compact { background: #101721ed; border: 1px solid #ffffff20; }
html[data-theme] .helper-mode { color: #d1e4ff; background: #23354c; }
html[data-theme] .helper-window,
html[data-theme] .preview-panel { color: #e3ecf9; background: #182438; border-color: #4d6280; }
html[data-theme] .conflict { color: #ffdbac; background: #35291d; border-color: #806344; }
html[data-theme] .conflict strong { color: #ffe2bd; }
html[data-theme] .diff-before { color: #bac7da; }
html[data-theme] .diff-after { color: #ffd6c6; background: #3e2925; }
html[data-theme] .asset-fallback { background: #1a2535; color: #b8cde9; border-color: #4c607b; }
html[data-theme] .asset-fallback:before { background: transparent; border-color: #5c7291; }
html[data-theme] .asset-fallback:after { border-color: #ff936f; }
html[data-theme] .thread-hero-art.asset-fallback,
html[data-theme] .intro-poster.asset-fallback { background: #0c1524; }
html[data-theme] .thread-hero-art.asset-fallback:before,
html[data-theme] .intro-poster.asset-fallback:before { background: #1f2e45; border-color: #556c8f; }
html[data-theme] .task-row,
html[data-theme] .block-row,
html[data-theme] .archive-row,
html[data-theme] .unscheduled-row { border-color: #ffffff20; }
html[data-theme] .task-body > strong { color: #e9edf5; }
html[data-theme] .task-row.done .task-body > strong { color: #9ca6b5; }
html[data-theme] .block-time { color: #a9b8cf; border-color: #485a75; }
html[data-theme] .block-time strong { color: #dde9fa; }
html[data-theme] .badge { color: #c5d4e9; background: #263245; }
html[data-theme] .badge.confirmed { color: #d7e7fb; background: #26374b; }
html[data-theme] .badge.proposed { color: #ffd1bf; background: #452b25; }
html[data-theme] .badge.unknown { color: #ffe0a3; background: #443725; }
html[data-theme] .week-version { color: #d0e2ff; background: #273a51; }
html[data-theme] .route-zone,
html[data-theme] .route-zone:nth-child(4n+2),
html[data-theme] .route-zone:nth-child(4n+3),
html[data-theme] .route-zone:nth-child(4n+4),
html[data-theme] .week-map-wrap { color: #e5eaf3; background: #10151fe8; border-color: #ffffff24; }
html[data-theme] .route-zone-heading { grid-template-columns: minmax(0,1fr); }
html[data-theme] .route-zone-heading > strong { color: #e4eaf4; }
html[data-theme] .route-zone-heading > .hint { grid-column: 1; color: #a6b1c3; }
html[data-theme] .route-zone-heading span,
html[data-theme] .route-zone-heading small { color: #a6b1c3; }
html[data-theme] .route-thread { stroke: #ff936f; color: #ff936f; opacity: .3; }
html[data-theme] .journey-position { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:5px 18px; margin:14px 0 18px; padding:14px 16px; border:1px solid #8eaccf55; border-left:3px solid #ff936f; border-radius:8px; background:#111925e8; color:#eef4fc; }
html[data-theme] .journey-position > strong { font-family:var(--font-display); font-size:15px; letter-spacing:.01em; }
html[data-theme] .journey-position > span { color:#c8d5e7; font-size:13px; }
html[data-theme] .journey-position > small { grid-column:1 / -1; color:#94a3b8; font-size:11px; line-height:1.45; }
html[data-theme] .journey-keyboard-hint { margin:-6px 0 16px; color:#94a3b8; font-size:11px; letter-spacing:.01em; }
html[data-theme] .journey-node,
html[data-theme] .journey-node:nth-child(4n+1) { background: #171e29; color: #d9e3f2; border-color: #4a586c; border-radius: 6px; }
html[data-theme] .journey-node:hover { background: #2b3b52; color: #fff; border-color: #a5c6f2; }
html[data-theme] .journey-node.selected { background: #e9eff8; color: #080d16; border-color: #e9eff8; }
html[data-theme] .journey-node.current { outline-color: #ff936f; }
html[data-theme] .journey-node.reviewed:not(.selected) { background: #293c53; color: #dbeaff; border-color: #6b8cae; }
html[data-theme] .journey-node.reviewed:not(.selected):after { background: #bbd7ff; color: #080d16; }
@media(max-width:650px) {
html[data-theme] .journey-position {grid-template-columns:1fr;gap:4px;padding:13px 14px}
html[data-theme] .journey-position>small {grid-column:1}
}
html[data-theme] .week-overview { background: #121c2ce8; border-color: #3a4a60; }
html[data-theme] .week-section-card,
html[data-theme] .week-section-card:nth-child(3n+2),
html[data-theme] .week-section-card:nth-child(3n+3) { background: #141c29e8; color: #edf2fa; border-color: #3b475b; }
html[data-theme] .week-section-card:hover { background: #233249; border-color: #8196b4; }
html[data-theme] .week-section-icon { color: #bbd7ff; background: #26364e; }
html[data-theme] .week-section-card > .week-section-icon { stroke: #bbd7ff; }
html[data-theme] .week-section-excerpt,
html[data-theme] .week-meta { color: #b2bdce; }
@media screen {
html[data-theme] .week-edit-history {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border: 1px solid #485870;
    border-radius: 8px;
    background: #101722;
    backdrop-filter: none;
  }
html[data-theme] .week-edit-history > .archive-list {
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    padding: clamp(.375rem, 2vw, .875rem);
  }
html[data-theme] .week-edit-history .week-edit-entry {
    min-width: 0;
    margin: 0;
    border: 1px solid #465771;
    border-radius: 6px;
    background: #0d131d;
  }
html[data-theme] .week-edit-history summary {
    display: list-item;
    padding: .75em 1em;
    color: #edf3fc;
    line-height: 1.5;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
html[data-theme] .week-edit-history summary::marker { color: #bbd7ff; }
html[data-theme] .week-edit-history .week-edit-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22em), 1fr));
    gap: .75rem;
    padding: clamp(.375rem, 2vw, .875rem);
  }
html[data-theme] .week-edit-version { min-width: 0; }
html[data-theme] .week-edit-version > h4 {
    margin: 0 0 .4em;
    color: #c5d3e7;
  }
html[data-theme] .week-edit-version + .week-edit-version > h4 { color: #bbd7ff; }
html[data-theme] .week-edit-history .week-edit-version > pre {
    margin: 0;
    padding: .75em;
    max-height: min(55vh, 26rem);
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #0a1018;
    color: #e2eaf5;
    border: 1px solid #485870;
    border-radius: 4px;
    font: inherit;
    font-size: max(.875rem, calc(14px * var(--ritm-text-factor, 1)));
    line-height: 1.6;
    tab-size: 4;
  }
}
html[data-theme] .calendar-overview { border-color: #ffffff26; }
html[data-theme] .day-column,
html[data-theme] .day-column:nth-child(even) { background: #101722ed; border-color: #343f51; color: #e4ebf6; }
html[data-theme] .day-column.is-today { border-color: #a7c7f2; box-shadow: inset 0 3px #bbd7ff; }
html[data-theme] .day-heading { border-color: #ffffff24; color: #e3eaf5; }
html[data-theme] .today-tag { color: #0b111b; background: #bbd7ff; }
html[data-theme] .day-total { color: #d7e2f3; }
html[data-theme] .day-column > .button { color: #b6c7df; border-color: #4c5a70; background: #172131; }
html[data-theme] .week-block,
html[data-theme] .comparison-block { background: #192230; color: #e3ebf8; border-color: #3f4f66; box-shadow: none; }
html[data-theme] .week-block:hover,
html[data-theme] .comparison-block:hover { background: #26344a; }
html[data-theme] .week-block.confirmed { border-left-color: #bbd7ff; }
html[data-theme] .week-block.proposed { border-left-color: #ff936f; }
html[data-theme] .week-block.unknown { border-left-color: #e8c281; }
html[data-theme] .week-block .interval-clock,
html[data-theme] .week-block strong { color: #eaf1fc; }
html[data-theme] .week-block small,
html[data-theme] .time-footprint-scale { color: #aab8ce; }
html[data-theme] .time-footprint-base { fill: #273245; }
html[data-theme] .time-footprint-tick { stroke: #68778d; }
html[data-theme] .time-footprint-block { fill: #bbd7ff; }
html[data-theme] .time-footprint-block.is-addition { fill: #ff936f; }
html[data-theme] .comparison-column { background: #111822; border-color: #3a4658; }
html[data-theme] .comparison-column.after { background: #142132; border-color: #526a87; }
html[data-theme] .comparison-block.is-addition { background: #2d1d1a; border-color: #855143; border-left-color: #ff936f; }
html[data-theme] .comparison-tag { color: #c2d9fa; }
html[data-theme] .is-addition .comparison-tag { color: #ffbc9f; }
html[data-theme] .comparison-warning,
html[data-theme] .comparison-unscheduled { background: #251e16; color: #e6d2af; border-color: #6c563b; }
html[data-theme] .comparison-unscheduled h3 { color: #f2dfbc; }
html[data-theme] .conflict { background: #2b201c; color: #ffd0b8; border-color: #80594a; }
html[data-theme] .day-conflict { color: #ffbc9f; border-color: #ff936f; }
html[data-theme] .helper-mode { background: #25334a; color: #d8e8ff; }
html[data-theme] .helper-window,
html[data-theme] .preview-panel { background: #172234; color: #d8e5f8; border-color: #50647e; }
html[data-theme] .diff-before { color: #b5c2d5; }
html[data-theme] .diff-after { background: #2d211f; color: #ffd4c3; }
html[data-theme] .progress-track { background: #273244; }
html[data-theme] .progress-bar { background: #bbd7ff; }
html[data-theme] .reader-content { background: #0d1118; }
html[data-theme] .ritm-markdown { color: #dce2ed; }
html[data-theme] .ritm-markdown th { color: #e9eff9; background: #202c3d; }
html[data-theme] .ritm-markdown td,
html[data-theme] .ritm-markdown th { border-color: #364154; }
html[data-theme] .ritm-markdown code,
html[data-theme] .ritm-markdown pre { background: #1a2433; color: #d8e6fc; }
html[data-theme] .ritm-markdown pre code { background: transparent; }
html[data-theme] .ritm-markdown blockquote { background: #1b2534; color: #c7d6ed; border-left-color: #ff936f; }
html[data-theme] details.archive-row summary { background: #18202c; color: #e4ebf6; }
html[data-theme] details.archive-row pre { background: #0b111a; color: #c7d1df; }
html[data-theme] .toast { color: #edf3fd; background: #1c2a3e; border: 1px solid #7895bc; box-shadow: 0 10px 60px #0008; }
html[data-theme] .toast button { background: #d6e5fb; color: #0a111b; }
html[data-theme] .notice,
html[data-theme] .notice.success { color: #c7dcfa; background: #172337; border-color: #435979; }
html[data-theme] .notice.error { color: #ffc6b0; background: #321e1c; border-color: #865649; }
html[data-theme] .import-busy { color: #d2dfef; background: #17202f; border-color: #526781; }
html[data-theme] .bootstrap-panel.state-card,
html[data-theme] .bootstrap-panel[data-state="preview"],
html[data-theme] .bootstrap-panel[data-state="preserved"] { background: #101823f2; color: #e9eff8; border-color: #435672; border-left-color: #bbd7ff; }
html[data-theme] .bootstrap-panel.state-card { grid-template-columns: minmax(0,1fr); }
html[data-theme] .bootstrap-panel > .bootstrap-copy,
html[data-theme] .bootstrap-panel > .bootstrap-actions,
html[data-theme] .bootstrap-panel > .bootstrap-status { grid-column: 1; grid-row: auto; }
html[data-theme] .bootstrap-panel[data-state="error"] { background: #251a1b; border-color: #865749; border-left-color: #ff936f; }
html[data-theme] .bootstrap-panel .state-title,
html[data-theme] .bootstrap-panel[data-state="error"] .state-title { color: #f4e9e5; }
html[data-theme] .bootstrap-panel .state-description,
html[data-theme] .bootstrap-panel .state-detail,
html[data-theme] .bootstrap-status { color: #bfcadb; }
html[data-theme] .bootstrap-panel[data-state="loading"] .bootstrap-status:before,
html[data-theme] .import-busy:before { border-color: #435979; border-top-color: #bbd7ff; }
html[data-theme] .startup-shell { background: #05070d; }
html[data-theme] .startup-card { background: #111a29d9; border-color: #465878; }
html[data-theme] .startup-card > p:not(.eyebrow) { color: #b5c3d8; }
html[data-theme] .startup-lines i { background: #25334a; }
html[data-theme] .startup-lines i:nth-child(3) { background: #4c6485; }
html[data-theme] .boot-hero .eyebrow,
html[data-theme] .boot-loading-copy { color: #b9c8de; }
html[data-theme] .boot-loading-mark { border-color: #3b4f6d; border-top-color: #bbd7ff; }
html[data-theme] .state-card,
html[data-theme] .state-card[data-state="empty"],
html[data-theme] .state-card[data-state="filter-empty"],
html[data-theme] .state-card[data-state="offline"],
html[data-theme] .state-card[data-state="busy"],
html[data-theme] .state-card[data-state="retry"] { --state-accent:#bbd7ff; background: #121c2bed; color: #e5edf9; border-color: #415571; border-left-color: #bbd7ff; }
html[data-theme] .state-card .state-icon,
html[data-theme] .state-card[data-state="filter-empty"] .state-icon,
html[data-theme] .state-card[data-state="offline"] .state-icon,
html[data-theme] .state-card[data-state="retry"] .state-icon { color: #bbd7ff; background: #233955; border-color: #5e789c; }
html[data-theme] .state-description,
html[data-theme] .state-detail { color: #bac8db; border-color: #415571; }
html[data-theme] .state-card[data-state="error"] { background: #2a1b1c; border-color: #795044; border-left-color: #ff936f; }
html[data-theme] .state-card[data-state="error"] .state-title { color: #ffcebd; }
html[data-theme] .state-card[data-state="error"] .state-icon { color: #ffb39a; background: #492b28; border-color: #936052; }
html[data-theme] .state-card[data-state="error"] .state-detail { color: #e3bcae; border-color: #795044; }
html[data-theme] .week-cover { color: #f3f4f6; background: #0b1019e6; border-color: #ffffff26; border-radius: 13px; }
html[data-theme] .week-cover-title { color: #f3f4f6; font-weight: 550; }
html[data-theme] .week-cover-kicker { color: #aebbd0; }
html[data-theme] .week-cover-description { color: #b7c4d7; }
html[data-theme] .week-cover-art { mix-blend-mode: normal; object-fit: cover; border-radius: 8px; }
html[data-theme] .week-cover-art.asset-fallback { background: #1c293b; color: #a9c7ef; }
html[data-theme] .week-cover-materials { border-color: #46536a; }
html[data-theme] .week-cover-materials small,
html[data-theme] .week-cover-materials span > span { color: #a8b7cb; }
html[data-theme] .week-cover-materials strong { color: #dde7f6; }
html[data-theme] .week-cover-thread path { stroke: #bbd7ff; opacity: .22; }
html[data-theme] .intro-overlay { background: #050607; color: #f3f4f6; }
html[data-theme] .intro-overlay:after { background: linear-gradient(90deg,#02040bf0,#02040b94 55%,#02040b44); }
html[data-theme] .intro-content > p,
html[data-theme] .intro-description { color: #d4deed; }
html[data-theme] .intro-overlay .brand { color: #fff; }
html[data-theme] .intro-skip { color: #fff; background: #0c1423d9; border-color: #c2d7f378; }
html[data-theme] .intro-content .button { color: #080d15; background: #eef3fb; border-color: #eef3fb; }
html[data-theme] .intro-player-ui { background: #0a1120e6; border-color: #738aa86b; }
html[data-theme] .intro-play,
html[data-theme] .intro-chapter { color: #d5e1f3; background: #0b1425b8; border-color: #607a9a66; }
html[data-theme] .intro-chapter.active { color: #111827; background: #d3e4fc; border-color: #d3e4fc; }
html[data-theme] .intro-media-status,
html[data-theme] .intro-time { color: #c7d8f0; }
html[data-theme] .intro-media-status { background: #08101ee6; }
html[data-theme] .intro-chapter.is-active { color: #f0f5fe; background: #273b5870; }
html[data-theme] .intro-chapter-index { color: #a8c0df; }
html[data-theme] .intro-chapter.is-active .intro-chapter-index { color: #d7e8ff; }
@media(max-width:1050px) {
html[data-theme] .thread-hero-copy { width: 78%; padding: 40px 32px; }
html[data-theme] .thread-hero-title { font-size: clamp(46px,6vw,72px); }
html[data-theme] .chapter-tile { min-height: 140px; }
}
@media(max-width:650px) {
html[data-theme] .thread-hero { min-height: 590px; margin-top: 18px; border-radius: 11px; }
html[data-theme] .thread-hero-art { inset: 0; height: 100%; object-position: 61% 50%; opacity: .84; }
html[data-theme] .thread-hero:after { background: linear-gradient(180deg,#03050be8 0%,#03050ba8 48%,#03050b44 78%,#03050bb8 100%); }
html[data-theme] .thread-hero-copy { width: 100%; padding: 33px 24px; gap: 20px; }
html[data-theme] .thread-hero-title { font-size: clamp(47px,13.4vw,66px); letter-spacing: -.06em; max-width: 100%; }
html[data-theme] .thread-hero-copy > p { font-size: 14px; max-width: 300px; }
html[data-theme] .thread-focus { max-width: 100%; }
html[data-theme] .thread-focus input { min-height: 47px; font-size: 16px; }
html[data-theme] .chapter-tile { min-height: 145px; padding: 18px 15px; }
html[data-theme] .view-art-header { min-height: 145px; padding: 25px 22px; }
html[data-theme] .view-title-copy h1 { font-size: 41px; }
html[data-theme] .view-title-copy p { font-size: 13px; }
html[data-theme] .empty-state[data-state] { padding: 21px 18px; }
html[data-theme] .visual-metric { padding-inline: 7px; }
html[data-theme] .metric-copy .metric-label { font-size: 11px; }
html[data-theme] .metric-copy > .hint { font-size: 10px; }
html[data-theme] .panel-heading h2 { font-size: 23px; }
html[data-theme] .week-cover-stage { padding-bottom: 0; }
html[data-theme] .week-cover-copy { padding-top: 32px; }
html[data-theme] .bootstrap-panel.state-card { grid-template-columns: 1fr; }
}

/* Фон */
.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background: #020305;
}
.ambient-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 65%;
  opacity: .42;
}
.ambient-photo.second {
  display: none;
  object-position: center 70%;
  opacity: 0;
}
.ambient-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#020304eb,#0203048f 50%,#020304ab),linear-gradient(0deg,#020304 0%,transparent 65%,#02030488);
}
#app { position: relative; z-index: 1; }
@media screen and (min-width: 651px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
.ambient-photo.second {
    display: block;
    animation: ambient-dissolve 64s ease-in-out infinite paused;
  }
html[data-ambient-motion="on"] .ambient-photo.second { animation-play-state: running; }
}
@keyframes ambient-drift {from{transform:scale(1.015) translate3d(-.8%,0,0)}to{transform:scale(1.08) translate3d(.8%,-1%,0)}}
@keyframes ambient-dissolve {0%,12%,100%{opacity:0}35%,65%{opacity:.44}88%{opacity:0}}
html[data-theme] .motion-toggle {white-space:normal;min-height:42px;font-size:11px;border:1px solid #4b505a;background:#11151bc9;color:#d8e1ee;padding:9px 12px}
.motion-toggle:before {content:'Ⅱ';font-size:12px;line-height:1}
.motion-toggle[aria-pressed="true"]:before {content:'▷'}
.motion-toggle:disabled {opacity:.75;cursor:default}
html[data-theme] .thread-hero-art {object-position:50% 75%;transform:scale(1.025);animation:ambient-drift 38s ease-in-out infinite alternate;animation-play-state:paused}
html[data-theme][data-ambient-motion="on"] .thread-hero-art {animation-play-state:running}
html[data-theme] .week-cover-art {object-fit:cover;object-position:50% 75%;mix-blend-mode:normal}
.photo-credit {font-size:11px;color:#bac3d0;letter-spacing:.02em;margin-top:12px}
.photo-credit a {color:inherit}
.oled-chapter-icon {width:24px;height:24px;margin:0 0 16px}
.photo-dialog-links {display:grid;gap:15px}
.photo-dialog-links p {margin:0}
@media(max-width:650px) {
html[data-theme] .motion-toggle {font-size:10px;padding:9px 10px;min-height:42px}
.ambient-photo {opacity:.3}
}
html[data-theme] .oled-intro {padding:0;border:0;max-width:none;max-height:none;width:100vw;height:100dvh;background:#050607;color:#f3f4f6;isolation:isolate}
html[data-theme] .oled-intro:after {content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#030508ef,#03050880 60%,#03050822),linear-gradient(0deg,#030508aa,transparent)}
.oled-intro-photo {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 70%;z-index:-2;animation:ambient-drift 38s ease-in-out infinite alternate;animation-play-state:paused}
.oled-intro-copy {padding:clamp(30px,8vw,120px);position:relative;top:50%;transform:translateY(-50%);max-width:1000px}
.oled-intro-title {white-space:pre-line;font-family:InterTight,sans-serif;font-size:clamp(64px,9vw,140px);font-weight:550;line-height:.95;letter-spacing:-.065em;margin:28px 0}
.oled-intro-copy .hint {font-size:18px;margin-bottom:32px;color:#d2d8e1}
html[data-ambient-motion="on"] .oled-intro-photo {animation-play-state:running}
html[data-theme] .oled-intro .intro-skip {position:absolute;top:24px;right:24px;min-height:44px;color:#fff;border:1px solid #ffffff50;background:#070a10a6;border-radius:6px;cursor:pointer}
@media(max-width:650px) {
.oled-intro-copy {padding:28px}
.oled-intro-title {font-size:70px}
.oled-intro-copy .hint {font-size:15px}
.oled-intro-copy .actions {align-items:flex-start;flex-direction:column}
}
html[data-theme] .oled-intro {overflow:auto}
html[data-theme] .oled-intro-copy {top:auto;transform:none;flex:1;min-width:0;box-sizing:border-box;margin:auto}
@media(max-height:600px) {
html[data-theme] .oled-intro-copy {padding:64px 28px 28px}
.oled-intro-title {font-size:clamp(46px,9vw,90px);margin:16px 0}
.oled-intro-copy .hint {margin-bottom:20px}
}

/* Движение */
html[data-theme] .motion-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(90deg,#ff936f,#d2dff4 72%,#bbd7ff);
  transform-origin: left;
  transform: scaleX(clamp(0,var(--read-progress,0),1));
}
html[data-theme][data-ambient-motion="on"] .motion-progress { transition: transform 80ms linear; }
html[data-theme] .motion-scene { display: flow-root; min-width: 0; }
html[data-theme][data-ambient-motion="on"] :where(.thread-hero-title,.week-cover-title,.view-title-copy h1):not([data-transition-title="linked"]) { view-transition-name: ritm-route-heading; }
html[data-theme]::view-transition-group(ritm-route-heading) {
  animation: none;
}
html[data-theme]::view-transition-old(ritm-route-heading) {
  animation: ritm-heading-out 120ms ease-out both;
  mix-blend-mode: normal;
}
html[data-theme]::view-transition-new(ritm-route-heading) {
  animation: ritm-heading-in 220ms var(--motion-ease) both;
  mix-blend-mode: normal;
}
html[data-theme]::view-transition-group(ritm-sidebar),
html[data-theme]::view-transition-old(ritm-sidebar),
html[data-theme]::view-transition-new(ritm-sidebar) { animation: none; mix-blend-mode: normal; }
html[data-theme]::view-transition { pointer-events: none; }
html[data-theme]::view-transition-group(*),
html[data-theme]::view-transition-image-pair(*),
html[data-theme]::view-transition-old(*),
html[data-theme]::view-transition-new(*) { pointer-events: none; }
@keyframes ritm-heading-out {
  to { opacity: 0; }
}
@keyframes ritm-heading-in {
  from { opacity: .65; transform: translateX(calc(6px * var(--motion-direction))); }
  to { opacity: 1; transform: none; }
}
html[data-theme] :is(.thread-hero,.week-cover,.oled-intro) { --pointer-x: 0px; --pointer-y: 0px; }
html[data-theme] :is(.thread-hero-copy,.week-cover-copy,.oled-intro-copy) { z-index: 3; }
html[data-theme] .motion-aura,
html[data-theme] .motion-orbits {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
html[data-theme] .motion-aura {
  width: 80%;
  height: 140%;
  right: -18%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 45%,#bbd7ff17 0%,#6d9af012 24%,#ff936f08 42%,transparent 65%);
  opacity: .7;
  transform: translate3d(0,0,0) rotate(-15deg);
  animation: ritm-aura-tide 16s ease-in-out infinite alternate paused;
}
html[data-theme] .motion-orbits {
  width: min(62vw,740px);
  height: min(62vw,740px);
  right: -9%;
  top: 50%;
  translate: 0 -50%;
  opacity: .65;
  transform: perspective(1000px) rotateX(52deg) rotateZ(-28deg);
  mask-image: linear-gradient(90deg,transparent 5%,#000 38%,#000 90%,transparent);
  -webkit-mask-image: linear-gradient(90deg,transparent 5%,#000 38%,#000 90%,transparent);
}
html[data-theme] .motion-orbit {
  position: absolute;
  inset: 9%;
  display: block;
  border: 1px solid #b7d4fb27;
  border-left-color: #c6e0ff60;
  border-right-color: #ff936f40;
  border-radius: 50%;
  animation: ritm-orbit 32s linear infinite paused;
}
html[data-theme] .motion-orbit:nth-child(2) {
  inset: 22%;
  border-color: #d8e7ff1c;
  border-top-color: #d8e7ff6b;
  animation-duration: 25s;
  animation-direction: reverse;
}
html[data-theme] .motion-orbit:nth-child(3) {
  inset: 35%;
  border-color: #ff936f21;
  border-bottom-color: #ffac8c6b;
  animation-duration: 19s;
}
html[data-theme] .motion-orbit:after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  left: 50%;
  top: -3px;
  background: #dceaff;
  box-shadow: 0 0 14px #bad6ffb3,0 0 30px #bad6ff38;
}
html[data-theme] .motion-orbit:nth-child(3):after { background: #ffb99c; box-shadow: 0 0 13px #ff936f8c; }
html[data-theme][data-ambient-motion="on"] :is(.motion-aura,.motion-orbit) { animation-play-state: running; }
@keyframes ritm-orbit { to { transform: rotate(360deg); } }
@keyframes ritm-aura-tide {
  to { transform: translate3d(-8%,10%,0) rotate(15deg) scale(1.12); opacity: 1; }
}
@media (hover:hover) and (pointer:fine) {
html[data-theme][data-ambient-motion="on"] :is(.thread-hero-art,.oled-intro-photo) {
    translate: var(--pointer-x,0px) var(--pointer-y,0px);
    transition: none;
  }
html[data-theme] .motion-reactive {
    position: relative;
    isolation: isolate;
    --spot-x: 50%;
    --spot-y: 50%;
    --tilt-x: 0deg;
  }
html[data-theme] .motion-reactive:before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(220px circle at var(--spot-x) var(--spot-y),#c4dcff12,transparent 72%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms var(--motion-ease);
  }
html[data-theme][data-ambient-motion="on"] .motion-reactive {
    transition: border-color 350ms,background-color 350ms;
  }
html[data-theme][data-ambient-motion="on"] .motion-reactive:hover {
    translate: 0 -5px;
    rotate: 0 1 0 var(--tilt-x,0deg);
    border-color: #b9d7ff69;
    box-shadow: 0 12px 35px #0003;
  }
html[data-theme][data-ambient-motion="on"] .motion-reactive:hover:before { opacity: 1; }
html[data-theme][data-ambient-motion="on"] .chapter-tile.motion-reactive:hover { transform: none; }
}
html[data-theme][data-ambient-motion="on"] .button {
  transition: background-color 250ms,border-color 250ms;
}
html[data-theme][data-ambient-motion="on"] .button:active:not(:disabled) { translate: 0 1px; transition-duration:var(--motion-press,120ms); }
html[data-theme][data-ambient-motion="on"] .button.primary:hover { box-shadow: 0 0 28px #bbd7ff1f; }
html[data-theme][data-ambient-motion="on"] .journey-node { transition: background-color 250ms,border-color 250ms; }
html[data-theme][data-ambient-motion="on"] .journey-node:hover { box-shadow: 0 0 20px #bbd7ff26; }
html[data-theme][data-ambient-motion="on"] .profile-group[open] > :not(summary) { animation: ritm-detail-in 180ms var(--motion-ease); }
html[data-theme][data-ambient-motion="on"] .oled-intro[open] .oled-intro-copy > * { animation: ritm-intro-in 1000ms var(--motion-ease) backwards; }
html[data-theme][data-ambient-motion="on"] .oled-intro[open] .oled-intro-title { animation-delay: 100ms; }
html[data-theme][data-ambient-motion="on"] .oled-intro[open] .hint { animation-delay: 200ms; }
html[data-theme][data-ambient-motion="on"] .oled-intro[open] .actions { animation-delay: 280ms; }
@keyframes ritm-intro-in { from { opacity: 0; transform: translate3d(28px,0,0); } to { opacity: 1; transform: none; } }
@keyframes ritm-detail-in { from { opacity: .3; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ritm-dialog-in { from { opacity: 0; transform: translateY(22px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes ritm-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width:650px) {
html[data-theme] .motion-orbits { width: 460px; height: 460px; right: -235px; top: 65%; opacity: .36; }
html[data-theme] .motion-aura { width: 130%; right: -70%; opacity: .5; }
}
html[data-theme][data-ambient-motion="off"] :is(.motion-aura,.motion-orbit) { animation-play-state: paused; }
html[data-theme][data-ambient-motion="off"] :is(.thread-hero-art,.oled-intro-photo,.motion-reactive) { translate: none; rotate: none; }
html[data-theme][data-ambient-motion="off"] .motion-reactive:before { opacity: 0; transition: none; }
html[data-theme][data-ambient-motion="off"] :is(.chapter-tile:hover,.week-section-card:hover,.button:hover,.button:active) { transform: none; }
html[data-theme][data-ambient-motion="off"] .week-cover.is-entering :is(.week-cover-copy,.week-cover-art),
html[data-theme][data-ambient-motion="off"] .week-cover.is-entering .week-cover-thread path { animation: none; }
html[data-theme][data-ambient-motion="off"] :is(.oled-intro-copy > *, .boot-loading-mark, .bootstrap-status:before, .state-card[data-state="busy"] .state-icon:before) { animation: none; }
html[data-theme][data-ambient-motion="off"]::view-transition-group(*),
html[data-theme][data-ambient-motion="off"]::view-transition-old(*),
html[data-theme][data-ambient-motion="off"]::view-transition-new(*) { animation: none; }

/* Читаемость */
html[data-theme] body,
html[data-theme] :is(input,select,textarea,button),
html[data-theme] .ritm-markdown {
  font-family: var(--font-body);
}
html[data-theme] :is(h1,h2,h3,h4,h5,h6) { letter-spacing: -.025em; line-height: 1.2; font-weight: 650; }
html[data-theme] :is(.thread-hero-title,.week-cover-title,.oled-intro-title) {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.07;
  letter-spacing: -.045em;
}
html[data-theme] .thread-hero-title { font-size: clamp(46px,5.3vw,82px); }
html[data-theme] .week-cover-title { font-size: clamp(42px,4.8vw,74px); }
html[data-theme] .oled-intro-title { font-size: clamp(62px,8.5vw,124px); }
html[data-theme] .view-title-copy h1 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.035em; font-size: clamp(38px,4.2vw,62px); }
html[data-theme] :is(.panel-heading h2,.chapter-heading) { font-family: var(--font-display); font-weight: 650; letter-spacing: -.025em; }
html[data-theme] :is(.hint,.state-description,.profile-excerpt,.chapter-count,.week-section-excerpt) { line-height: 1.65; }
html[data-theme] :is(input,select,textarea) { font-size: 15px; line-height: 1.55; }
html[data-theme] textarea { line-height: 1.75; }
html[data-theme] .field > span { color: #d6e1f1; font-weight: 600; }
html[data-theme] :is(.thread-hero-copy > p,.week-cover-description) { font-size: 15px; line-height: 1.75; }
html[data-theme] .nav-item { font-size: 12px; font-weight: 600; letter-spacing: -.015em; min-height: 46px; color: #c1cee0; }
html[data-theme] .nav-item:hover { background: #243d5b; color: #fff; }
html[data-theme] .nav-item.active,
html[data-theme] .nav-item.active:hover { background: #d3e6ff; color: #101b2b; }
html[data-theme] .nav-item.active:before { background: #ff936f; }
html[data-theme] .nav-item.active .ui-icon { color: #17375d; }
html[data-theme] .nav-item .nav-state,
html[data-theme] .nav-item .action-state { margin-left: auto; font-size: 10px; font-weight: 700; color: inherit; }
html[data-theme] .button {
  min-height: 44px;
  color: var(--action-ink);
  background: var(--action-bg);
  border: 1px solid var(--action-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  padding: 12px 16px;
  text-align: center;
}
html[data-theme] .button:active:not(:disabled) { background: #365b82; border-color: #e7f1ff; }
html[data-theme] .button.primary {
  background: #e5efff;
  border-color: #e5efff;
  color: #101b2c;
}
html[data-theme] .button.primary:active:not(:disabled) { background: #99c2f5; border-color: #dceaff; }
html[data-theme] .button.quiet { color: #d0ddf0; background: #121c29; border-color: #536783; }
html[data-theme] .button.danger { color: #ffd3c2; background: #382221; border-color: #bc7663; }
html[data-theme] .button:disabled {
  opacity: 1;
  color: #b5c1d3;
  background: #202b3a;
  border-color: #526177;
  box-shadow: none;
  cursor: not-allowed;
}
html[data-theme] .button.has-action-hint { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; min-height: 62px; }
html[data-theme] .action-label { display: block; color: inherit; font-weight: 650; line-height: 1.3; }
html[data-theme] .action-hint {
  display: block;
  min-height: 1.3em;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: #c6d6ec;
  opacity: 0;
  translate: 0 3px;
  pointer-events: none;
}
html[data-theme] .button.primary .action-hint { color: #2d435f; }
html[data-theme] .button.danger .action-hint { color: #ffd3c2; }
html[data-theme] .button:disabled .action-hint { color: #b5c1d3; }
html[data-theme][data-ambient-motion="on"] :is(.action-label,.action-hint) { transition: opacity 180ms ease; }
html[data-theme] .motion-toggle:before { content:''; display:block; flex:0 0 auto; width:9px; height:12px; background:linear-gradient(90deg,currentColor 0 3px,transparent 3px 6px,currentColor 6px 9px); }
html[data-theme] .motion-toggle[aria-pressed="true"]:before { content:''; width:0; height:0; background:none; border-top:6px solid transparent; border-bottom:6px solid transparent; border-left:9px solid currentColor; }
html[data-theme] .thread-hero-actions { align-items: stretch; }
html[data-theme] .thread-hero-actions .button { min-height: 62px; }
html[data-theme] .thread-hero-actions .button.secondary { color: #edf5ff; background: #172b43; border-color: #829bbd; }
html[data-theme] .week-cover-actions .button.primary.has-action-hint { position: relative; padding-right: 37px; }
html[data-theme] .week-cover-actions .button.primary.has-action-hint:after { position: absolute; right: 13px; top: 50%; translate: 0 -50%; }
html[data-theme] .save-state { font-size: 11px; line-height: 1.45; }
html[data-theme] .save-state.dirty { color: #ffc1a8; }
html[data-theme] .badge { border: 1px solid #6c83a3; font-size: 11px; line-height: 1.4; font-weight: 650; }
html[data-theme] .badge.confirmed { color: #d2efe1; background: #17382f; border-color: #6caa91; }
html[data-theme] .badge.proposed { color: #ffe0d0; background: #432d25; border-color: #bb8568; }
html[data-theme] .badge.unknown { color: #ffe5af; background: #41351e; border-color: #ae9255; }
html[data-theme] .task-list { grid-template-columns:minmax(0,1fr); }
html[data-theme] .task-table-block { min-width:0; max-width:100%; }
html[data-theme] .table-caption {
  display: table-caption;
  caption-side: top;
  margin: 0;
  padding: 16px 18px;
  text-align: left;
  background: #18273c;
  color: #edf4ff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}
html[data-theme] .table-instruction { color: #b9cbe3; font-size: 12px; line-height: 1.6; margin: 6px 0 12px; }
html[data-theme] .task-table-block .task-table-scroll { max-height: none; overflow: visible; }
html[data-theme] .task-table { min-width: 0; table-layout: fixed; }
html[data-theme] .task-table :is(th,td) { min-width: 0; padding: 10px; }
html[data-theme] .task-table th:first-child { width: 4.5rem; }
html[data-theme] .task-table th:nth-child(3) { width: 17%; }
html[data-theme] .task-table th:nth-child(4) { width: 17%; }
html[data-theme] .task-table th:last-child { width: clamp(10rem, 20%, 14rem); }
html[data-theme] .task-table-block .task-title { display: block; min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
html[data-theme] .task-table-block .task-badges-row > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
html[data-theme] .task-meta { display: block; margin-top: 6px; color: #c0cee0; font-size: 12px; line-height: 1.55; }
html[data-theme] .task-table [data-label="Готово"] { text-align: center; }
html[data-theme] .task-table-block .task-table-actions { display: flex; align-items: start; gap: 4px; min-width: 0; }
html[data-theme] .task-table-block .task-table-actions > .button { width: auto; min-width: 0; padding-inline: 8px; }
html[data-theme] .task-action-menu { position: relative; flex: none; }
html[data-theme] .task-action-menu > summary { display: grid; place-items: center; width: 40px; min-height: 40px; padding: 0; list-style: none; font-size: 20px; line-height: 1; }
html[data-theme] .task-action-menu > summary::-webkit-details-marker { display: none; }
html[data-theme] .task-action-options { position: absolute; z-index: 20; top: calc(100% + 3px); right: 0; display: grid; gap: 4px; width: max-content; max-width: min(18rem, 80vw); padding: 6px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--card-surface); }
html[data-theme] .task-action-menu.is-open-up > .task-action-options { top: auto; bottom: calc(100% + 3px); }
html[data-theme] .task-action-options :is(.button,select) { width: 100%; min-height: 40px; }
html[data-theme] .task-table-block .task-meta { color: var(--muted); }
html[data-theme] .task-cards { display: grid; gap: 10px; margin: 12px 0; padding: 0; list-style: none; }
html[data-theme] .task-cards .task-card { display: grid; grid-template-columns: 40px minmax(0,1fr); grid-template-areas: "check title" "time time" "status status" "actions actions"; align-items: start; gap: 6px 8px; min-width: 0; padding: 12px; border: 1px solid var(--work-line); border-radius: 10px; background: var(--card-surface); color: var(--ink); }
html[data-theme] .task-card .task-entry-check { grid-area: check; }
html[data-theme] .task-card .task-entry-title { grid-area: title; min-width: 0; }
html[data-theme] .task-card .task-entry-time { grid-area: time; }
html[data-theme] .task-card .task-entry-status { grid-area: status; }
html[data-theme] .task-card .task-table-actions { grid-area: actions; justify-content: end; }
html[data-theme] .task-card :is(.task-entry-time,.task-entry-status) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
html[data-theme] .task-card :is(.task-entry-time .task-meta,.task-status) { margin: 0; }
html[data-theme] .task-card.task-done .task-title { color: var(--muted); text-decoration: line-through; }
html[data-theme] .task-card .checkbox { width: 40px; height: 40px; margin: 0; }
html[data-theme] .task-card .task-subtask-row { min-width: 0; overflow-wrap: anywhere; }
html[data-theme] .task-card .task-subtask-row input { flex: none; }
html[data-theme] .task-table input[type="checkbox"] { width: 22px; height: 22px; min-height: 22px; margin: 4px; accent-color: #bcd9ff; cursor: pointer; }
html[data-theme] .task-table tr.task-done .task-title,
html[data-theme] .task-table tr[data-done="true"] .task-title { color: #bdcddd; text-decoration: line-through; text-decoration-color: #97b1d2; text-decoration-thickness: 1px; }
html[data-theme] .task-priority { color: #f1f5fc; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
html[data-theme] .task-priority[data-priority="1"] { color: #ffc6b2; }
html[data-theme] .task-status { display:block; margin-bottom:8px; color: #cfe8dc; font-size: 12px; font-weight: 650; }
html[data-theme] .task-table .badge { white-space: normal; }
@media (hover:none) {
html[data-theme] .action-hint { opacity: 1; translate: 0 0; }
}
@media (max-width:1050px) {
html[data-theme] .thread-hero-copy { width: 82%; padding-inline: 34px; }
html[data-theme] .thread-hero-title { font-size: clamp(44px,6vw,66px); }
}
@media (max-width:650px) {
html[data-theme] .nav-item { font-size: 11px; min-height: 44px; padding: 10px 12px; }
html[data-theme] .thread-hero-copy { width: 100%; padding: 28px 23px; }
html[data-theme] .thread-hero-title { font-size: clamp(36px,10.1vw,48px); line-height: 1.12; letter-spacing: -.045em; }
html[data-theme] .week-cover-title { font-size: clamp(35px,10vw,48px); line-height: 1.12; letter-spacing: -.04em; }
html[data-theme] .oled-intro-title { font-size: clamp(46px,12vw,68px); line-height: 1.1; letter-spacing: -.04em; }
html[data-theme] .view-title-copy h1 { font-size: 35px; letter-spacing: -.03em; }
html[data-theme] :is(.panel-heading h2,.chapter-heading) { font-size: 21px; line-height: 1.3; }
html[data-theme] :is(.thread-hero-copy > p,.week-cover-description) { font-size: 14px; line-height: 1.75; }
html[data-theme] :is(input,select,textarea) { font-size: 16px; }
html[data-theme] .button { padding: 11px 13px; font-size: 11px; }
html[data-theme] .button.has-action-hint { min-height: 60px; }
html[data-theme] .save-state { flex-basis: 100%; max-width: none; margin: 0; }
html[data-theme] .thread-hero-actions { flex-wrap: wrap; }
html[data-theme] .thread-hero-actions .button { flex: 1; min-width: 112px; }
html[data-theme] .table-caption { font-size: 15px; margin-top: 20px; }
html[data-theme] .table-instruction { font-size: 11px; }
html[data-theme] .ritm-markdown { font-size: 14px; line-height: 1.85; }
}
@media (max-height:600px) {
html[data-theme] .oled-intro-title { font-size: clamp(42px,7.5vw,82px); }
}
html[data-theme][data-ambient-motion="off"] :is(.action-label,.action-hint) { transition: none; }

/* Трекер */
html[data-theme] .tracker-root,
html[data-theme] .tracker-root :is(.panel,.tracker-summary-card,.tracker-catalog-card,.tracker-log-row,.tracker-category-row,.tracker-history,.tracker-run-latest,.tracker-run-feedback),
html[data-theme] .tracker-root > * { min-width: 0; max-width: 100%; }
html[data-theme] .tracker-root { width: 100%; }
html[data-theme] .tracker-root :is(p,h2,h3,strong,small,span) { overflow-wrap: anywhere; }
html[data-theme] .tracker-intro,
html[data-theme] .tracker-section-hint { color: #becde0; font-size: 13px; line-height: 1.75; max-width: 900px; }
html[data-theme] .tracker-intro { margin: 0 0 22px; }
html[data-theme] .tracker-section-hint { margin: 12px 0 18px; }
html[data-theme] .tracker-week-heading { margin: 12px 0 18px; font-size: clamp(21px,2.5vw,31px); line-height: 1.3; letter-spacing: -.025em; }
html[data-theme] .tracker-toolbar,
html[data-theme] .tracker-actions,
html[data-theme] .tracker-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
html[data-theme] .tracker-toolbar { padding: 16px 0 20px; border-bottom: 1px solid #465873; margin-bottom: 20px; align-items: end; }
html[data-theme] .tracker-toolbar > * { min-width: 0; max-width: 100%; }
html[data-theme] .tracker-toolbar .field { flex: 1 1 180px; max-width: 260px; }
html[data-theme] .tracker-toolbar :is(input,select) { width: 100%; min-width: 0; }
html[data-theme] .tracker-toolbar > .button { flex: 0 1 auto; min-height: 46px; }
html[data-theme] .tracker-actions { margin: 16px 0 22px; }
html[data-theme] .tracker-actions .button { min-height: 46px; }
html[data-theme] .tracker-actions .button[data-tracker-focus="print"] { border-color: #6f88aa; background: #142238; color: #e8f2ff; }
html[data-theme] .tracker-actions .button[data-tracker-focus="print"][data-state="preparing"] { border-color: #ff9b7d; color: #ffd8cc; cursor: wait; }
html[data-theme] .tracker-actions .button[data-tracker-focus="print"][data-state="ready"] { border-color: #a9c9f3; background: #1b304b; color: #fff; }
html[data-theme] .tracker-print-status { max-width: 780px; margin: -10px 0 22px; padding: 11px 14px; border-left: 3px solid #708bad; background: #101c2c; color: #c7d8ee; font-size: 12px; line-height: 1.65; }
html[data-theme] .tracker-print-status[data-state="preparing"] { border-left-color: #ff9373; color: #ffe2d8; }
html[data-theme] .tracker-print-status[data-state="ready"] { border-left-color: #b6d5ff; color: #e6f1ff; }
html[data-theme] .tracker-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 20px 0 24px; }
html[data-theme] .tracker-summary-card { padding: 20px 22px; border: 1px solid #526782; border-radius: 10px; background: #111c2c; }
html[data-theme] .tracker-summary-card > :first-child { margin-top: 0; }
html[data-theme] .tracker-summary-card > :last-child { margin-bottom: 0; }
html[data-theme] .tracker-summary-card :is(p,small) { display: block; margin: 8px 0 0; color: #b9cce5; font-size: 12px; line-height: 1.6; }
html[data-theme] .tracker-summary-card strong { display: block; color: #f4f8ff; font-family: var(--font-display); font-size: clamp(24px,2.7vw,35px); font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.25; letter-spacing: -.025em; }
html[data-theme] .tracker-run-panel { margin: 0 0 22px; }
html[data-theme] .tracker-run-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 14px 0 18px; }
html[data-theme] .tracker-run-status-card[data-state="achieved"] { border-color: #5d997e; background: #10261e; }
html[data-theme] .tracker-run-status-card[data-state="achieved"] strong { color: #cef1de; }
html[data-theme] .tracker-run-status-card[data-state="progress"] { border-color: #7898c4; }
html[data-theme] .tracker-run-latest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid #4a607f; border-left: 3px solid #9cc2f5; border-radius: 8px; background: #121e2f; }
html[data-theme] .tracker-run-latest > p { flex: 1 1 100%; margin: 0; }
html[data-theme] .tracker-run-latest > strong { flex: 1 1 260px; color: #f1f7ff; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.55; }
html[data-theme] .tracker-run-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid #526782; border-left: 3px solid #7caff0; border-radius: 8px; background: #101b2a; color: #dbe8f8; font-size: 13px; line-height: 1.7; }
html[data-theme] .tracker-run-feedback > p { flex: 1 1 260px; margin: 0; }
html[data-theme] .tracker-run-feedback[data-state="achieved"] { border-color: #5d997e; border-left-color: #8fe0b6; background: #10241c; color: #e2f6eb; }
html[data-theme] .tracker-run-feedback .tracker-goal-status { margin: 0; }
html[data-theme] .tracker-run-records { margin: 12px 0 6px; }
html[data-theme] .tracker-run-records > .hint { margin: 0 0 8px; }
html[data-theme] .tracker-run-record-list { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-theme] .tracker-run-record-pill { display: inline-flex; align-items: center; padding: 6px 11px; border: 1px solid #526782; border-radius: 999px; background: #132133; color: #dce8f8; font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.4; }
html[data-theme] .tracker-run-record-pill[data-goal-distance="true"] { border-color: #8ab4e8; background: #1a2f4b; color: #f2f7ff; font-weight: 600; }
html[data-theme] .tracker-log-row > .tracker-run-entry-meta { color: #b7d3f8; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
html[data-theme] .tracker-log-row > .tracker-run-entry-meta.is-unknown { color: #c4cfde; font-weight: 500; font-style: italic; }
html[data-theme] .tracker-pace-preview { color: #b9d7ff; font-weight: 600; font-variant-numeric: tabular-nums; }
html[data-theme] .tracker-empty { margin: 18px 0; padding: 24px; border: 1px dashed #6e87aa; border-radius: 9px; background: #101b2b; color: #dbe8fa; line-height: 1.75; }
html[data-theme] .tracker-empty :is(h3,p) { margin-top: 0; }
html[data-theme] .tracker-empty > :last-child { margin-bottom: 0; }
html[data-theme] .tracker-table-wrap { min-width: 0; max-width: 100%; width: 100%; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #8ba9cf #17263a; transition: none; }
html[data-theme] .tracker-table-wrap::-webkit-scrollbar { height: 10px; }
html[data-theme] .tracker-table-wrap::-webkit-scrollbar-track { background: #17263a; }
html[data-theme] .tracker-table-wrap::-webkit-scrollbar-thumb { border: 2px solid #17263a; border-radius: 999px; background: #8ba9cf; }
html[data-theme] .tracker-table-wrap[data-scroll-state="start"] { box-shadow: inset -18px 0 16px -17px #b8d6ff; }
html[data-theme] .tracker-table-wrap[data-scroll-state="middle"] { box-shadow: inset 18px 0 16px -17px #b8d6ff,inset -18px 0 16px -17px #b8d6ff; }
html[data-theme] .tracker-table-wrap[data-scroll-state="end"] { box-shadow: inset 18px 0 16px -17px #b8d6ff; }
html[data-theme] .tracker-table-wrap .tracker-table { min-width: 820px; font-variant-numeric: tabular-nums; }
html[data-theme] .tracker-table-wrap .tracker-table :is(th,td) { min-width: 110px; }
html[data-theme] .tracker-table-wrap .tracker-table :is(th,td):first-child { min-width: 200px; max-width: 340px; }
html[data-theme] .tracker-table-wrap .tracker-table :is(th,td):last-child { min-width: 160px; }
html[data-theme] .tracker-table-wrap td > strong { display: block; color: #f6f9ff; font-size: 14px; line-height: 1.6; }
html[data-theme] .tracker-table-wrap td .hint { margin: 7px 0 0; color: #c0cee0; font-size: 12px; line-height: 1.6; }
html[data-theme] .tracker-table-wrap .tracker-row-actions { flex-direction: column; align-items: stretch; gap: 8px; }
html[data-theme] .tracker-table-wrap .tracker-row-actions .button { width: 100%; font-size: 11px; padding: 10px 12px; }
html[data-theme] .tracker-root :is(progress,meter) { display: block; width: 100%; max-width: 100%; height: 8px; margin-top: 10px; accent-color: #bbd7ff; }
html[data-theme] .tracker-catalog { margin: 24px 0; border: 1px solid #526782; border-radius: 10px; background: #0d1622; }
html[data-theme] .tracker-catalog > summary { padding: 19px 22px; color: #edf4ff; font-family: var(--font-display); font-weight: 650; line-height: 1.5; cursor: pointer; }
html[data-theme] .tracker-catalog[open] > summary { border-bottom: 1px solid #465873; }
html[data-theme] .tracker-catalog > :not(summary) { margin-left: 22px; margin-right: 22px; }
html[data-theme] .tracker-catalog > :last-child { margin-bottom: 22px; }
html[data-theme] .tracker-catalog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; margin-bottom: 24px; min-width: 0; }
html[data-theme] .tracker-catalog-card { display: flex; flex-direction: column; align-items: stretch; padding: 20px; border: 1px solid #465c79; border-radius: 9px; background: #152235; }
html[data-theme] .tracker-catalog-card h3 { margin: 0 0 9px; color: #f0f6ff; font-size: 17px; line-height: 1.4; }
html[data-theme] .tracker-catalog-card p { margin: 7px 0 13px; color: #c4d3e8; font-size: 12px; line-height: 1.65; }
html[data-theme] .tracker-catalog-card .tracker-row-actions { margin-top: auto; padding-top: 13px; }
html[data-theme] .tracker-catalog-card .button { font-size: 11px; }
html[data-theme] .tracker-catalog-status { display: inline-block; align-self: flex-start; width: fit-content; max-width: 100%; margin: 0 0 12px; padding: 4px 9px; border: 1px solid #6b87aa; border-radius: 5px; color: #cfe1fa; background: #1e334f; font-size: 11px; font-weight: 650; line-height: 1.5; }
html[data-theme] .tracker-root :is(.is-archived,[data-archived="true"]) { border-style: dashed; background: #171e29; }
html[data-theme] .tracker-root :is(.is-archived,[data-archived="true"]) .tracker-catalog-status { background: #26303e; color: #c2ccda; border-color: #7a879a; }
html[data-theme] .tracker-category-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 16px 0 22px; min-width: 0; }
html[data-theme] .tracker-category-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; padding: 14px 16px; border: 1px solid #415571; border-radius: 7px; background: #131f2f; }
html[data-theme] .tracker-category-row > strong { flex: 1 1 150px; color: #e6efff; font-size: 13px; line-height: 1.5; }
html[data-theme] .tracker-category-row .tracker-catalog-status { margin: 0; }
html[data-theme] .tracker-category-row .button { margin-left: auto; font-size: 11px; }
html[data-theme] .tracker-log-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; margin: 16px 0 24px; min-width: 0; }
html[data-theme] .tracker-journal-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 8px 0 12px; }
html[data-theme] .tracker-journal-toolbar .field { flex: 1 1 230px; max-width: 420px; }
html[data-theme] .tracker-journal-toolbar select { width: 100%; min-width: 0; }
html[data-theme] .tracker-journal-count { margin: 0 0 14px; color: #d8e6fa; font-size: 12px; font-variant-numeric: tabular-nums; }
html[data-theme] .tracker-journal-print-summary { display: none; }
html[data-theme] .tracker-journal-more { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
html[data-theme] .tracker-log-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 18px; padding: 18px 20px; border: 1px solid #4a607f; border-left: 3px solid #abc9f2; border-radius: 8px; background: #131f30; }
html[data-theme] .tracker-log-row > * { min-width: 0; max-width: 100%; }
html[data-theme] .tracker-log-row > strong { flex: 1 1 210px; color: #f1f7ff; font-size: 15px; font-weight: 650; line-height: 1.6; }
html[data-theme] .tracker-log-row > time { flex: 0 1 110px; color: #c3d5ee; font-size: 12px; font-variant-numeric: tabular-nums; }
html[data-theme] .tracker-log-row > p { flex: 1 1 100%; margin: 0; color: #c7d5e8; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
html[data-theme] .tracker-log-row .tracker-row-actions { margin-left: auto; }
html[data-theme] .tracker-log-row .button { font-size: 11px; }
html[data-theme] .tracker-history { margin: 14px 0; border: 1px solid #526782; border-radius: 8px; background: #101b2a; }
html[data-theme] .tracker-history > summary { padding: 13px 16px; color: #cfe2ff; font-size: 12px; font-weight: 650; line-height: 1.6; cursor: pointer; }
html[data-theme] .tracker-history[open] > summary { border-bottom: 1px solid #455976; }
html[data-theme] .tracker-history > :not(summary) { margin: 14px 16px; color: #c4d5ec; font-size: 12px; line-height: 1.75; }
html[data-theme] .tracker-history :is(ol,ul) { padding-left: 20px; }
html[data-theme] .tracker-history li + li { margin-top: 10px; }
html[data-theme] .tracker-transfer-form { min-width: 0; }
html[data-theme] .tracker-transfer-choice { display: grid; gap: 9px; min-width: 0; margin: 4px 0; padding: 16px 18px 18px; border: 1px solid #526782; border-radius: 9px; background: #101b2a; }
html[data-theme] .tracker-transfer-choice legend { padding: 0 8px; color: #eef5ff; font-family: var(--font-display); font-size: 14px; font-weight: 650; }
html[data-theme] .tracker-transfer-choice .check-label { margin: 0; padding: 10px 12px; border: 1px solid #425773; border-radius: 7px; background: #152337; color: #e2edfc; }
html[data-theme] .tracker-transfer-choice .check-label:has(input:checked) { border-color: #9fbee8; background: #1c304a; box-shadow: inset 3px 0 #ff846f; }
html[data-theme] .tracker-transfer-preview { min-width: 0; padding-top: 4px; }
html[data-theme] .tracker-transfer-preview:empty { display: none; }
html[data-theme] .tracker-transfer-preview h3 { margin: 8px 0 4px; color: #f4f8ff; font-size: 18px; }
html[data-theme] .tracker-transfer-table { min-width: 920px; }
html[data-theme] .tracker-transfer-table :is(th,td) { min-width: 145px; }
html[data-theme] .tracker-transfer-note { margin: 14px 0 0; padding: 13px 15px; border-left: 3px solid #ff846f; background: #182538; color: #dbe8f8; font-size: 12px; line-height: 1.7; }
html[data-theme] .tracker-pause-summary { margin: 0; padding: 14px 16px; border: 1px solid #6d7f9a; border-left: 3px solid #ff846f; border-radius: 7px; background: #182538; color: #f0f5fc; font-weight: 650; line-height: 1.65; }
html[data-theme] .tracker-trend { margin-top: 22px; }
html[data-theme] .tracker-trend-toolbar { display: flex; align-items: end; margin: 4px 0 18px; }
html[data-theme] .tracker-trend-toolbar .field { width: min(100%,420px); }
html[data-theme] .tracker-trend-table { min-width: 760px; }
html[data-theme] .tracker-trend-table :is(th,td) { min-width: 120px; }
html[data-theme] .tracker-trend-table :is(th,td):first-child { min-width: 190px; }
html[data-theme] .tracker-trend-table tr.is-current-week td { background: #1b2d45; box-shadow: inset 0 1px #6681a5,inset 0 -1px #6681a5; }
html[data-theme] .tracker-trend-table tr.is-current-week td:first-child { box-shadow: inset 3px 0 #ff846f,inset 0 1px #6681a5,inset 0 -1px #6681a5; }
html[data-theme] .tracker-trend-table progress { min-width: 100px; }
@media (min-width:1350px) {
html[data-theme] .tracker-catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:900px) {
html[data-theme] .tracker-summary,
  html[data-theme] .tracker-run-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
html[data-theme] .tracker-summary-card { padding: 16px 19px; }
html[data-theme] .tracker-summary-card strong { font-size: 27px; }
html[data-theme] .tracker-category-list { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:650px) {
html[data-theme] .tracker-intro,
  html[data-theme] .tracker-section-hint { font-size: 12px; line-height: 1.8; }
html[data-theme] .tracker-toolbar { gap: 9px; padding-top: 10px; margin-bottom: 16px; }
html[data-theme] .tracker-toolbar .field { flex: 1 1 100%; max-width: none; }
html[data-theme] .tracker-toolbar > .button { flex: 1 1 125px; }
html[data-theme] .tracker-actions .button { flex: 1 1 185px; }
html[data-theme] .tracker-week-heading { font-size: 22px; }
html[data-theme] .tracker-empty { padding: 20px 17px; font-size: 13px; }
html[data-theme] .tracker-catalog-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
html[data-theme] .tracker-catalog > summary { padding: 17px 16px; font-size: 14px; }
html[data-theme] .tracker-catalog > :not(summary) { margin-left: 15px; margin-right: 15px; }
html[data-theme] .tracker-catalog > :last-child { margin-bottom: 16px; }
html[data-theme] .tracker-catalog-card { padding: 17px 16px; }
html[data-theme] .tracker-catalog-card h3 { font-size: 16px; }
html[data-theme] .tracker-catalog-card .tracker-row-actions .button { flex: 1 1 160px; }
html[data-theme] .tracker-log-row { padding: 16px; gap: 9px; }
html[data-theme] .tracker-log-row > strong { flex-basis: 100%; }
html[data-theme] .tracker-log-row .tracker-row-actions { margin: 4px 0 0; flex: 1 1 100%; }
html[data-theme] .tracker-log-row .tracker-row-actions .button { width: 100%; }
html[data-theme] .tracker-trend-toolbar .field { width: 100%; }
html[data-theme] .tracker-journal-toolbar .field { flex-basis: 100%; max-width: none; }
html[data-theme] .tracker-journal-more .button { flex: 1 1 100%; }
html[data-theme] .tracker-table-wrap::-webkit-scrollbar { height: 12px; }
}

/* Переходы */
html[data-theme] .ambient-shade { background:linear-gradient(180deg,#02030480,#020304ed 62%,#020304 100%); }
html[data-theme] .save-state { color:#c7ced9; }
html[data-theme] .thread-hero {
  isolation:isolate; min-height:clamp(610px,calc(100svh - 154px),920px); margin:12px 0 clamp(84px,10vw,170px);
  border:1px solid #ffffff32; border-radius:var(--kinetic-radius); background:#030509;
  box-shadow:0 36px 110px #0008; overflow:hidden;
}
html[data-theme] .thread-hero-art { inset:0; width:100%; height:100%; object-fit:cover; object-position:60% 48%; opacity:.94; filter:saturate(.82) contrast(1.08); }
html[data-theme] .thread-hero:after {
  background:linear-gradient(90deg,#020304f2 0%,#020304a6 42%,transparent 75%),linear-gradient(0deg,#020304ec 0%,transparent 55%),linear-gradient(180deg,#02030469,transparent 24%);
}
html[data-theme] .thread-hero-copy {
  position:relative; width:100%; max-width:none; min-height:inherit; padding:clamp(34px,4vw,72px);
  justify-content:flex-end; align-items:flex-start; gap:clamp(15px,1.6vw,26px);
}
html[data-theme] .thread-hero-greeting { position:absolute; top:clamp(30px,3vw,50px); left:clamp(34px,4vw,72px); font-size:10px; letter-spacing:.16em; text-transform:uppercase; }
html[data-theme] .thread-hero-title {
  max-width:min(1100px,92%); margin:0; font-size:clamp(64px,9.2vw,166px); line-height:.86; letter-spacing:-.075em; font-weight:580;
  text-wrap:balance; text-shadow:0 12px 55px #0009;
}
html[data-theme] .thread-hero-copy > .thread-hero-description { max-width:480px; margin:0; color:#e1e6ee; font-size:clamp(14px,1.2vw,19px); }
html[data-theme] .thread-hero-actions { display:flex; gap:9px; flex-wrap:wrap; }
html[data-theme] .thread-hero-actions .button { min-height:58px; padding-inline:22px; border-radius:999px; }
html[data-theme] .kinetic-action.has-action-hint { position:relative; overflow:hidden; isolation:isolate; padding-left:34px; }
html[data-theme] .kinetic-action.has-action-hint:before {
  content:''; position:absolute; z-index:-1; left:16px; top:50%; width:8px; height:8px; border-radius:50%;
  translate:0 -50%; background:var(--kinetic-blue); transition:transform 420ms var(--kinetic-ease),background-color 220ms;
}
html[data-theme] .kinetic-action.primary.has-action-hint:before { background:var(--coral); }
html[data-theme] .thread-focus { width:min(520px,100%); margin-top:4px; }
html[data-theme] .thread-focus input { min-height:58px; padding:15px 18px; border-radius:16px; background:#05070bbd; border-color:#ffffff47; }
html[data-theme] .thread-hero-stage-label {
  position:absolute; z-index:4; top:clamp(30px,3vw,50px); right:clamp(34px,4vw,72px); margin:0;
  color:#d4dae4; font:600 10px/1 var(--font-display); letter-spacing:.16em;
}
html[data-theme] .thread-hero-marks { position:absolute; z-index:4; left:clamp(34px,4vw,72px); right:clamp(34px,4vw,72px); bottom:20px; display:flex; justify-content:space-between; pointer-events:none; }
html[data-theme] .thread-hero-marks span { position:relative; width:13px; height:13px; opacity:.72; }
html[data-theme] .thread-hero-marks span:before,
html[data-theme] .thread-hero-marks span:after { content:''; position:absolute; background:#fff; }
html[data-theme] .thread-hero-marks span:before { width:13px; height:1px; top:6px; left:0; }
html[data-theme] .thread-hero-marks span:after { width:1px; height:13px; top:0; left:6px; }
html[data-theme] .chapter-heading { max-width:980px; margin:0 0 clamp(42px,6vw,88px); font-size:clamp(52px,8vw,136px); line-height:.88; letter-spacing:-.07em; font-weight:580; }
html[data-theme] .chapter-tile:nth-child(even) { margin-top:clamp(48px,6vw,96px); }
html[data-theme] .chapter-tile:after { content:''; position:absolute; width:54%; aspect-ratio:1; right:-13%; top:-19%; border:1px solid #8da7ff4a; border-radius:50%; box-shadow:0 0 80px #1f45ff1f inset; transition:border-color 250ms; }
html[data-theme] .chapter-tile:nth-child(3n+2):after { border-radius:0; rotate:35deg; border-color:#ff936f4d; }
html[data-theme] .chapter-tile:nth-child(3n):after { width:44%; border-color:#c7ff3845; box-shadow:0 0 90px #c7ff3814 inset; }
html[data-theme] .chapter-count { grid-column:1; color:#aeb7c5; font-size:12px; }
html[data-theme] .visual-metrics { margin:clamp(76px,9vw,145px) 0; padding:30px 0; border-block:1px solid #ffffff30; gap:0; }
html[data-theme] .visual-metric { min-height:170px; padding:20px clamp(18px,2.5vw,42px); border-right:1px solid #ffffff24; border-radius:0; }
html[data-theme] .visual-metric:last-child { border-right:0; }
html[data-theme] .metric-figure strong { font-size:clamp(38px,4.6vw,78px); letter-spacing:-.06em; }
html[data-theme] .view-art-header { min-height:clamp(340px,52vh,650px); margin:12px 0 clamp(64px,8vw,120px); padding:clamp(34px,5vw,84px); overflow:hidden; align-items:flex-end; border-radius:var(--kinetic-radius); background:#080a0fdb; }
html[data-theme] .view-art-header:before { content:attr(data-chapter); position:absolute; top:clamp(28px,4vw,58px); left:clamp(34px,5vw,84px); color:#aab4c3; font:600 11px/1 var(--font-display); letter-spacing:.2em; }
html[data-theme] .view-title-copy { position:relative; z-index:2; max-width:80%; }
html[data-theme] .view-title-copy h1 { margin:0; font-size:clamp(62px,11vw,184px); line-height:.82; letter-spacing:-.075em; font-weight:580; }
html[data-theme] .view-title-copy > .hint { max-width:520px; margin-top:24px; color:#c2cad6; font-size:clamp(14px,1.4vw,20px); }
html[data-theme] .view-art { position:absolute; right:-5%; bottom:-22%; width:min(48vw,680px); height:min(48vw,680px); opacity:.48; filter:saturate(.55) contrast(1.15); }
html[data-theme] .week-cover { min-height:clamp(620px,calc(100svh - 150px),920px); margin:12px 0 clamp(72px,9vw,140px); border-radius:var(--kinetic-radius); }
html[data-theme] .week-cover-title { font-size:clamp(64px,8.7vw,150px); line-height:.86; letter-spacing:-.07em; font-weight:580; }
html[data-theme] .panel,
html[data-theme] details.notes-accordion,
html[data-theme] details.questions-accordion,
html[data-theme] details.profile-group { border-radius:var(--kinetic-radius); border-color:#ffffff26; background:#080b11e8; box-shadow:0 28px 80px #0003; }
html[data-theme] .panel { padding:clamp(22px,2.5vw,38px); margin-bottom:clamp(22px,3vw,46px); }
@media (max-width:760px) {
html[data-theme] .thread-hero { min-height:720px; margin-top:8px; }
html[data-theme] .thread-hero:after { background:linear-gradient(0deg,#020304fa 0%,#020304d4 52%,#02030454 84%),linear-gradient(90deg,#0203048f,transparent); }
html[data-theme] .thread-hero-copy { padding:27px 22px 48px; }
html[data-theme] .thread-hero-greeting { top:50px; left:22px; right:22px; }
html[data-theme] .thread-hero-stage-label { top:26px; left:22px; right:auto; font-size:8px; }
html[data-theme] .thread-hero-title { max-width:100%; font-size:clamp(52px,16.5vw,82px); line-height:.9; }
html[data-theme] .thread-hero-actions { width:100%; }
html[data-theme] .thread-hero-actions .button { flex:1 1 145px; }
html[data-theme] .thread-hero-marks { left:22px; right:22px; bottom:17px; }
html[data-theme] .chapter-heading { font-size:clamp(48px,15vw,76px); }
html[data-theme] .chapter-tile:nth-child(even) { margin-top:0; }
html[data-theme] .visual-metrics { display:block; }
html[data-theme] .visual-metric { min-height:130px; border-right:0; border-bottom:1px solid #ffffff24; }
html[data-theme] .visual-metric:last-child { border-bottom:0; }
html[data-theme] .view-art-header { min-height:430px; padding:30px 24px; }
html[data-theme] .view-title-copy { max-width:100%; }
html[data-theme] .view-title-copy h1 { font-size:clamp(54px,18vw,88px); line-height:.86; }
html[data-theme] .view-art { width:82vw; height:82vw; right:-26%; bottom:-18%; }
html[data-theme] .week-cover-title { font-size:clamp(54px,15vw,82px); }
}
@media (hover:hover) and (pointer:fine) {
html[data-theme][data-ambient-motion="on"] .thread-hero-art { scale:1.035; transition:none; }
html[data-theme][data-ambient-motion="on"] .thread-hero:hover .thread-hero-art { scale:1.075; filter:saturate(.96) contrast(1.12); }
}

/* Рабочие разделы */
@media screen {
html[data-theme] .view-art-header {
    min-height: 250px; padding: 38px 40px; margin: 12px 0 32px;
    border-color: #3d485b; background: linear-gradient(115deg,#101620,#07090e 75%);
  }
html[data-theme] .view-art-header:before { top: 28px; left: auto; right: 36px; color: #9daabf; }
html[data-theme] .view-title-copy { max-width: 90%; }
html[data-theme] .view-title-copy h1 {
    font-size: clamp(42px,5.8vw,88px); line-height: 1.04; letter-spacing: -.055em;
    overflow-wrap: anywhere;
  }
html[data-theme] .view-kicker { margin-bottom: 16px; color: #b2bdd0; font-size: 10px; }
html[data-theme] .view-title-copy > .hint { font-size: 14px; line-height: 1.7; margin-top: 18px; max-width: 620px; }
html[data-theme] .view-art { width: 320px; height: 320px; right: -45px; bottom: -100px; opacity: .2; }
html[data-theme] .panel { background: var(--work-surface); border-color: #354155; box-shadow: 0 18px 70px #0003; }
html[data-theme] .panel-heading { padding-bottom: 20px; border-bottom: 1px solid #354155; gap: 16px; }
html[data-theme] .panel-heading :is(h2,h3) { font-size: clamp(21px,2.1vw,31px); line-height: 1.25; letter-spacing: -.035em; }
html[data-theme] .panel-heading > .button { flex-shrink: 0; }
html[data-theme] .field { gap: 9px; }
html[data-theme] .field > span { font-size: 12px; line-height: 1.5; color: #c9d3e3; font-weight: 600; }
html[data-theme] .field:focus-within > span { color: #fff; }
html[data-theme] .field :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea) {
    width: 100%; max-width: 100%; min-width: 0; min-height: 52px; padding: 13px 15px;
    color: var(--work-ink); background: #111721; border: 1px solid #5b6a80;
    border-radius: 11px; box-shadow: inset 0 1px #ffffff04;
    font-size: 15px; line-height: 1.65;
  }
html[data-theme] .field textarea { min-height: 126px; resize: vertical; }
html[data-theme] .field :is(input,textarea)::placeholder { color: #a0aec3; }
html[data-theme] .field :is(input,select,textarea):hover:not(:disabled) { border-color: #92a4c0; }
html[data-theme] .field :is(input,select,textarea):disabled { color: #a9b5c7; background: #0d1118; border-color: #424d60; cursor: not-allowed; opacity: 1; }
html[data-theme] .field :is(input,select,textarea):is([aria-invalid="true"],:user-invalid) { border-color: #ffa68d; background: #271b1d; box-shadow: inset 3px 0 #ffa68d; }
html[data-theme] .field:has([aria-invalid="true"]) > span { color: #ffc6b4; }
html[data-theme] :is(input[type="checkbox"],input[type="radio"]) { accent-color: #bdd7ff; flex-shrink: 0; }
html[data-theme] .check-label { gap: 12px; color: #d1daea; line-height: 1.65; align-items: flex-start; }
html[data-theme] .check-label input { margin-top: 3px; }
html[data-theme] .button { border-radius: 999px; padding: 13px 20px; min-height: 46px; background: #182231; border-color: #667a97; color: #eff4fd; }
html[data-theme] .button.quiet { background: #101722; border-color: #55667f; color: #ced9eb; }
html[data-theme] .button.primary { background: #e6eeff; color: #0e1828; border-color: #e6eeff; }
html[data-theme] .button.danger { color: #ffd1c3; border-color: #bf7d6e; background: #322127; }
html[data-theme] .button:active:not(:disabled) { background: #385276; border-color: #e4efff; }
html[data-theme] .button.primary:active:not(:disabled) { background: #a8c7fc; color: #081326; }
html[data-theme] .button:disabled { background: #17202d; color: #aab7ca; border-color: #495970; opacity: 1; box-shadow: none; cursor: not-allowed; transform: none; }
html[data-theme] .button[aria-busy="true"] { border-style: dashed; cursor: progress; }
html[data-theme] .button.has-action-hint .action-hint { opacity: 1; translate: none; font-size: 10px; }
html[data-theme] .button.has-action-hint { gap: 4px; }
html[data-theme] .notice { padding: 15px 18px; border: 1px solid #5f779a; border-left: 3px solid #bad4fa; border-radius: 11px; color: #dae8fd; background: #121e30; line-height: 1.7; }
html[data-theme] .notice.success { border-left-color: #bdd7ff; }
html[data-theme] .notice.error { color: #ffcfbf; background: #2b1a1e; border-color: #b3796b; border-left-color: #ffad94; }
html[data-theme] .table-caption { margin: 0; padding: 20px; color: #f4f7ff; background: #131c2a; border-bottom: 1px solid #485b77; font-size: 16px; letter-spacing: -.025em; }
html[data-theme] :is(.tracker-table-wrap .tracker-row-actions,.task-table .task-table-actions) .button { padding: 10px 12px; min-height: 42px; }
html[data-theme] .tracker-table-wrap .tracker-table :is(th,td):last-child { min-width: 180px; }
html[data-theme] .tracker-table-wrap td .hint { color: #c1d0e5; }
html[data-theme] .table-instruction { color: #b9c8df; line-height: 1.75; }
html[data-theme] .tracker-goal-status { display: inline-block; max-width: 100%; margin-top: 10px; padding: 5px 8px; border: 1px solid #6d86a9; border-radius: 6px; color: #e1ebfc; background: #23344d; font-size: 10px; line-height: 1.5; font-weight: 650; }
html[data-theme] tr[data-goal-state="achieved"] .tracker-goal-status { color: #10203a; background: #c4d9fc; border-color: #dae8ff; }
html[data-theme] tr[data-goal-state="paused"] .tracker-goal-status { color: #ffcfb6; background: #362c2c; border-color: #bd8c76; }
html[data-theme] tr[data-goal-state="unplanned"] .tracker-goal-status { color: #c3cddd; background: #202c3d; border-style: dashed; }
html[data-theme] .tracker-root progress.tracker-goal-progress { appearance: none; height: 6px; min-width: 96px; max-width: 180px; border: 0; border-radius: 999px; overflow: hidden; background: #42516b; accent-color: #bcd5ff; }
html[data-theme] .tracker-goal-progress::-webkit-progress-bar { background: #42516b; border-radius: 999px; }
html[data-theme] .tracker-goal-progress::-webkit-progress-value { background: #bcd5ff; border-radius: 999px; }
html[data-theme] .tracker-goal-progress::-moz-progress-bar { background: #bcd5ff; border-radius: 999px; }
html[data-theme] .tracker-week-heading { margin: 12px 0 24px; }
html[data-theme] .tracker-week-heading h2 { margin: 8px 0 15px; font-size: clamp(27px,3.4vw,46px); letter-spacing: -.045em; line-height: 1.2; }
html[data-theme] .tracker-toolbar { gap: 12px; padding: 20px; border: 1px solid #43526b; border-radius: 16px; background: #101722; }
html[data-theme] .tracker-toolbar > .button { flex: 1 1 150px; }
html[data-theme] .tracker-toolbar .field { flex: 1 1 180px; max-width: none; }
html[data-theme] .tracker-actions { gap: 10px; margin: 24px 0 30px; }
html[data-theme] .tracker-actions .button { min-height: 50px; }
html[data-theme] .tracker-summary { gap: 0; border-block: 1px solid #566782; margin: 30px 0 36px; }
html[data-theme] .tracker-summary-card { position: relative; padding: 25px 28px; border: 0; border-right: 1px solid #45536b; border-radius: 0; background: #0a1019; }
html[data-theme] .tracker-summary-card:last-child { border-right: 0; }
html[data-theme] .tracker-summary-card > p:first-child { color: #d1dcef; font-size: 11px; font-weight: 600; }
html[data-theme] .tracker-summary-card strong { margin: 10px 0 6px; color: #f5f7ff; font-size: clamp(38px,4.4vw,64px); font-weight: 580; letter-spacing: -.06em; line-height: 1.1; }
html[data-theme] .tracker-summary-card:after { content: ''; position: absolute; right: 20px; top: 24px; width: 5px; height: 5px; border-radius: 50%; background: #ffae95; }
html[data-theme] .tracker-summary-card .hint { color: #b8c5d9; }
html[data-theme] :is(.tracker-catalog,.tracker-history) { background: #0e1521; border-color: #52647f; border-radius: 13px; }
html[data-theme] .tracker-catalog > summary { padding: 22px 24px; font-size: 16px; }
html[data-theme] .tracker-catalog-card { padding: 24px; background: linear-gradient(135deg,#1b2638,#111925); border-color: #52647f; border-radius: 16px; }
html[data-theme] .tracker-catalog-card h3 { font-size: 20px; letter-spacing: -.03em; line-height: 1.4; }
html[data-theme] .tracker-catalog-card p { color: #c1cfe3; }
html[data-theme] .tracker-category-row { padding: 17px; border-radius: 11px; border-color: #4d5f7a; background: #121c2b; }
html[data-theme] .tracker-catalog-status { font-size: 10px; color: #d6e3f8; background: #263851; border-color: #7794b9; border-radius: 5px; }
html[data-theme] .tracker-log-row { background: #101a28; border-color: #485b77; border-left-color: #ffad94; border-radius: 14px; padding: 23px; }
html[data-theme] .tracker-log-row > .button { margin-left: auto; }
html[data-theme] .tracker-history > summary { padding: 15px 17px; color: #deebff; }
html[data-theme] :is(.tracker-history,.tracker-catalog)[open] > summary { border-bottom-color: #52647f; }
html[data-theme] .tracker-transfer-choice { border-color: #677e9e; background: #101a29; border-radius: 14px; padding: 19px; }
html[data-theme] .tracker-transfer-choice .check-label { padding: 14px; border-radius: 9px; }
html[data-theme] .tracker-transfer-choice .check-label:has(input:checked) { background: #22364f; border-color: #a8c5ee; box-shadow: inset 3px 0 #ffae95; }
html[data-theme] :is(.tracker-pause-summary,.tracker-transfer-note) { border-radius: 11px; background: #1b283c; border-color: #6b81a2; border-left-color: #ffae95; color: #e5efff; }
html[data-theme] .tracker-empty { background: #0e1725; border-color: #687f9f; border-radius: 14px; }
@media (max-width:900px) {
html[data-theme] .tracker-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
html[data-theme] .tracker-summary-card { padding: 20px 17px; }
html[data-theme] .tracker-summary-card strong { font-size: 42px; }
html[data-theme] .tracker-summary-card:after { right: 11px; top: 12px; }
}
@media (max-width:650px) {
html[data-theme] .view-art-header { min-height: 240px; padding: 28px 23px; margin-bottom: 26px; }
html[data-theme] .view-art-header:before { top: 20px; right: 21px; }
html[data-theme] .view-title-copy { max-width: 100%; }
html[data-theme] .view-title-copy h1 { font-size: clamp(38px,10.8vw,64px); line-height: 1.1; letter-spacing: -.045em; }
html[data-theme] .view-kicker { max-width: 85%; font-size: 9px; }
html[data-theme] .view-title-copy > .hint { font-size: 13px; margin-top: 15px; }
html[data-theme] .panel-heading { flex-wrap: wrap; padding-bottom: 17px; }
html[data-theme] .panel-heading > .button { flex-shrink: 1; max-width: 100%; }
html[data-theme] .field :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea) { font-size: 16px; min-height: 50px; }
html[data-theme] .button { padding: 12px 16px; }
html[data-theme] .tracker-toolbar { padding: 16px; }
html[data-theme] .tracker-toolbar .field { flex-basis: 100%; }
html[data-theme] .tracker-actions .button { flex: 1 1 190px; }
html[data-theme] .tracker-summary { grid-template-columns: 1fr; }
html[data-theme] .tracker-summary-card { padding: 19px 21px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 16px; border-right: 0; border-bottom: 1px solid #45536b; }
html[data-theme] .tracker-summary-card:last-child { border-bottom: 0; }
html[data-theme] .tracker-summary-card > p:first-child { margin: 0; align-self: end; }
html[data-theme] .tracker-summary-card strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
html[data-theme] .tracker-summary-card .hint { margin: 0; }
html[data-theme] .tracker-summary-card:after { display: none; }
html[data-theme] .tracker-run-grid .tracker-summary-card { grid-template-columns: minmax(0,1fr); }
html[data-theme] .tracker-run-grid .tracker-summary-card strong { grid-column: auto; grid-row: auto; }
html[data-theme] .tracker-catalog-card { padding: 21px; }
html[data-theme] .tracker-log-row { padding: 19px; }
html[data-theme] .tracker-log-row > .button { margin-left: 0; width: 100%; }
html[data-theme] .table-caption { padding: 17px 16px; font-size: 15px; }
}
}
@media screen and (prefers-reduced-motion:no-preference) {
html[data-theme][data-ambient-motion="on"] .button { transition: background-color 220ms ease,border-color 220ms ease,transform 140ms var(--kinetic-ease); }
html[data-theme][data-ambient-motion="on"] .field :is(input,select,textarea) { transition: background-color 220ms ease,border-color 220ms ease; }
html[data-theme][data-ambient-motion="on"] .tracker-catalog-card { transition: border-color 260ms ease; }
html[data-theme][data-ambient-motion="on"] .tracker-catalog-card:focus-within { border-color: #b1ccf2; box-shadow: 0 0 0 1px #b1ccf23d; }
}
html[data-theme][data-ambient-motion="off"] :is(.button,.field input,.field select,.field textarea,.tracker-catalog-card,.tracker-table-wrap) { transition: none; scroll-behavior: auto; }
html[data-theme][data-ambient-motion="off"] .button:is(:hover,:active) { transform: none; }

/* История */
@media screen {
html[data-theme] .has-strata { min-height:790px; overflow:clip; }
html[data-theme] .has-strata .motion-orbits { display:none; }
html[data-theme] .has-strata .thread-hero-title { max-width:59%; font-size:clamp(64px,7.1vw,120px); line-height:.96; }
html[data-theme] .has-strata .thread-hero-copy > :is(.thread-hero-description,.thread-hero-actions,.thread-focus) { max-width:51%; }
.time-strata { position:absolute; z-index:3; right:0; top:92px; width:47%; max-width:640px; margin:0; color:#f1f5ff; }
.strata-art { position:relative; width:100%; aspect-ratio:1/1.07; perspective:1100px; perspective-origin:50% 42%; }
.strata-art:before { content:''; position:absolute; inset:7% -8% 0 -12%; background:radial-gradient(ellipse at 48% 37%,#6ca9ff1c,transparent 62%),radial-gradient(ellipse at 54% 68%,#ff865512,transparent 53%); }
.strata-float { position:absolute; inset:0; transform-style:preserve-3d; animation:strata-float 13s ease-in-out infinite; animation-play-state:paused; }
.strata-stack { position:absolute; width:53%; height:58%; left:24%; top:16%; transform-style:preserve-3d; transform:rotateX(calc(54deg + var(--strata-pitch,0deg))) rotateY(calc(-15deg + var(--strata-yaw,0deg))) rotateZ(-32deg); transition:transform 1100ms cubic-bezier(.16,1,.3,1); }
.strata-plate { position:absolute; inset:0; transform-style:preserve-3d; border-radius:14px; transform:translate3d(var(--strata-x),var(--strata-y),var(--strata-z)); animation:strata-breathe 13s ease-in-out infinite; animation-play-state:paused; }
.strata-plate-0 { --strata-x:-12px; --strata-y:12px; --strata-z:-108px; --strata-open-z:-126px; }
.strata-plate-1 { --strata-x:-8px; --strata-y:8px; --strata-z:-72px; --strata-open-z:-84px; }
.strata-plate-2 { --strata-x:-4px; --strata-y:4px; --strata-z:-36px; --strata-open-z:-42px; }
.strata-plate-3 { --strata-x:0px; --strata-y:0px; --strata-z:0px; --strata-open-z:0px; }
.strata-plate-4 { --strata-x:4px; --strata-y:-4px; --strata-z:36px; --strata-open-z:42px; }
.strata-plate-5 { --strata-x:8px; --strata-y:-8px; --strata-z:72px; --strata-open-z:84px; }
.strata-plate-6 { --strata-x:12px; --strata-y:-12px; --strata-z:108px; --strata-open-z:126px; }
.strata-face { position:absolute; inset:0; display:block; border-radius:inherit; border:1px solid #b7cfe9ab; background:linear-gradient(135deg,#b0cbe180 0%,#375c7caa 5%,#111e30f5 26%,#060b12fa 57%,#264668e8 87%,#c2dcf4bd 100%); box-shadow:inset 0 0 0 1px #e2f1ff16,inset 0 2px 2px #e7f5ffb0,inset 1px 0 0 #d9efff66,inset 0 -3px 5px #020409,0 20px 24px #0008; backface-visibility:hidden; }
.strata-face:before { content:''; position:absolute; inset:9%; border:1px solid #c7e6ff29; border-radius:6px; background:repeating-linear-gradient(0deg,transparent 0 23px,#bedaff15 23px 24px); }
.strata-face:after { content:''; position:absolute; right:14%; top:13%; width:14%; height:1px; background:#d2e9ffcc; box-shadow:0 5px 0 #b6d7ff52,0 10px 0 #b6d7ff26; }
.strata-edge { display:block; position:absolute; inset:auto 1px -5px; height:7px; border-radius:0 0 12px 12px; transform-origin:center top; transform:rotateX(-90deg); background:linear-gradient(90deg,#030810 0%,#4f7193 15%,#c1d5e9 52%,#486d91 82%,#02060b 100%); box-shadow:0 1px 0 #d2e5f5b3; }
.strata-plate:before { content:''; position:absolute; left:-5px; top:1px; bottom:1px; width:7px; transform-origin:right center; transform:rotateY(-90deg); border-radius:10px 0 0 10px; background:linear-gradient(180deg,#a6c3da,#1f3d59 38%,#080f18 74%,#7e9dbb); }
.strata-glint { display:block; position:absolute; inset:1px; border-radius:inherit; transform:translateZ(.7px); background:linear-gradient(128deg,transparent 12%,#e6f4ff08 28%,#e6f4ff38 29%,#e6f4ff06 32%,transparent 49%,#accdf42b 100%); backface-visibility:hidden; }
.strata-plate-3 .strata-face { border-color:#ffc09dc7; background:linear-gradient(135deg,#ffcfb887,#9b4931 6%,#49271ff5 29%,#1a1111fa 68%,#8f4936 90%,#ffd2b7); box-shadow:inset 0 2px 2px #ffe0c6c7,inset 0 -3px 4px #170a05,0 0 25px #fc7c3f22,0 20px 24px #0008; }
.strata-plate-3 .strata-edge { background:linear-gradient(90deg,#4b2117,#ff9461 25%,#ffe5cb 55%,#f97c48 80%,#391810); box-shadow:0 1px 0 #ffd5ad; }
.strata-plate-3:before { background:linear-gradient(#ffc8a5,#c16a42 30%,#58281b 74%,#ffa66f); }
.strata-plate-6 .strata-face { background:linear-gradient(135deg,#c0defbbd 0%,#658dafb5 4%,#274565eb 24%,#0e1b2cf5 60%,#5f86af 96%,#d8ecff 100%); }
.strata-plate-6 .strata-face:before { inset:11%; border-color:#cee7ff4d; background:repeating-linear-gradient(0deg,transparent 0 22px,#c3dff329 22px 23px); }
.strata-shadow { position:absolute; left:18%; right:12%; bottom:8%; height:11%; border-radius:50%; background:radial-gradient(ellipse,#000c 0%,#0008 29%,transparent 72%); transform:rotate(-14deg); }
.strata-datum { position:absolute; top:18%; right:10%; height:44%; width:8px; border-right:1px solid #d3e2f22e; background:repeating-linear-gradient(0deg,transparent 0 27px,#d3e2f259 27px 28px); }
.strata-datum:before,.strata-datum:after { content:''; position:absolute; right:-3px; width:5px; height:5px; border:1px solid #e1efffb3; background:#0a111a; }
.strata-datum:before { top:-2px; }
.strata-datum:after { bottom:-2px; }
.strata-caption { position:relative; display:flex; flex-direction:column; align-items:center; gap:10px; padding:0 24px; margin:-7% 0 0; text-align:center; }
.strata-kicker { color:#a9bcd4; font:600 9px/1.5 var(--font-display); letter-spacing:.18em; }
.strata-title { color:#e8effa; font:500 clamp(15px,1.55vw,22px)/1.3 var(--font-display); letter-spacing:-.035em; }
.time-strata[data-strata-motion="running"] :is(.strata-float,.strata-plate) { animation-play-state:running; }
@media (max-width:1100px) and (min-width:761px) {
html[data-theme] .has-strata { min-height:760px; }
html[data-theme] .has-strata .thread-hero-title { font-size:clamp(58px,7.8vw,82px); max-width:59%; }
.time-strata { width:47%; right:-8px; top:145px; }
.strata-art { aspect-ratio:1/1.19; perspective:900px; }
.strata-stack { top:20%; width:52%; height:52%; }
.strata-caption { margin-top:-1%; }
}
@media (max-width:760px) {
html[data-theme] .has-strata { display:flex; flex-direction:column; min-height:0; }
html[data-theme] .has-strata .thread-hero-copy { order:0; min-height:0; padding-top:125px; padding-bottom:12px; }
html[data-theme] .has-strata .thread-hero-title { max-width:100%; font-size:clamp(48px,12vw,78px); line-height:.98; }
html[data-theme] .has-strata .thread-hero-copy > :is(.thread-hero-description,.thread-hero-actions,.thread-focus) { max-width:100%; }
html[data-theme] .has-strata .thread-hero-greeting { top:76px; left:22px; right:22px; }
html[data-theme] .has-strata .thread-hero-stage-label { left:22px; right:auto; top:33px; font-size:9px; }
.time-strata { position:relative; order:1; width:min(440px,100%); max-width:none; top:auto; right:auto; margin:48px auto 46px; }
.strata-art { aspect-ratio:1/1.07; perspective:1000px; }
.strata-stack { width:50%; height:58%; left:25%; top:16%; }
.strata-caption { margin-top:-4%; }
.strata-title { font-size:17px; }
.strata-datum { right:9%; }
}
@media (max-width:380px) {
.strata-stack { width:48%; height:53%; left:26%; top:18%; transform:scale(.94) rotateX(calc(54deg + var(--strata-pitch,0deg))) rotateY(calc(-15deg + var(--strata-yaw,0deg))) rotateZ(-32deg); }
.strata-caption { margin-top:-1%; }
.strata-kicker { font-size:8px; }
}
}
@keyframes strata-float {
  0%,100% { transform:translateY(0) rotateZ(-1deg); }
  50% { transform:translateY(-12px) rotateZ(1deg); }
}
@keyframes strata-breathe {
  0%,100% { transform:translate3d(var(--strata-x),var(--strata-y),var(--strata-z)); }
  50% { transform:translate3d(var(--strata-x),var(--strata-y),var(--strata-open-z)); }
}
@supports not (transform-style:preserve-3d) {
.strata-stack { transform:rotate(-25deg); }
.strata-plate { transform:translate(calc(var(--strata-x) * 2),calc(var(--strata-y) * 2)); animation:none; }
}

/* Меню */
@media screen {
.menu-toggle-mark { position:relative; display:block; width:17px; height:17px; flex:0 0 17px; transition:transform var(--motion-arrow,240ms) cubic-bezier(.35,0,0,1); }
.menu-toggle-mark:before,.menu-toggle-mark:after { content:''; position:absolute; left:6px; width:5px; height:5px; border-radius:50%; background:currentColor; }
.menu-toggle-mark:before { top:1px; }
.menu-toggle-mark:after { bottom:1px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-mark { transform:rotate(90deg); }
.menu-panel-head {
    position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:14px;
    flex:0 0 auto; padding:5px 7px 15px;
  }
.menu-panel-kicker { max-width:180px; color:#adbed7; font:600 9px/1.5 var(--font-display); letter-spacing:.13em; }
.menu-panel-content { min-height:0; display:flex; flex-direction:column; gap:11px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#667d9d #111925; scroll-padding:14px; }
.menu-panel-nav { padding:8px; background:#edf2fa; border-radius:17px; }
.menu-panel-item {
    position:relative; display:grid; grid-template-columns:27px minmax(0,1fr) 25px; align-items:center; gap:9px;
    width:100%; min-height:64px; margin:0; padding:10px 11px; border:0; border-radius:11px;
    color:#182333; background:transparent; text-align:left; cursor:pointer;
    transition:background-color var(--motion-color,200ms);
  }
.menu-panel-item + .menu-panel-item { border-top:1px solid #15243b12; }
.menu-panel-index { color:#66778e; font:500 10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric:tabular-nums; }
.menu-panel-copy { display:flex; flex-direction:column; min-width:0; gap:3px; }
.menu-panel-title { color:inherit; font:550 22px/1.16 var(--font-display); letter-spacing:-.045em; overflow-wrap:anywhere; }
.menu-panel-description { color:#58677b; font:400 10px/1.45 var(--font-body); }
.menu-panel-arrow { display:block; color:#53667f; font:400 22px/1 var(--font-body); text-align:center; transition:transform var(--motion-arrow,240ms) cubic-bezier(.35,0,0,1); }
.menu-panel-item:active { background:#bdcfea; transition-duration:var(--motion-press,120ms); }
.menu-panel-item[aria-current="page"] { background:#dae5f6; color:#101f38; }
.menu-panel-item[aria-current="page"] .menu-panel-index { font-size:0; }
.menu-panel-item[aria-current="page"] .menu-panel-index:before { content:''; display:block; width:7px; height:7px; margin-left:5px; border-radius:50%; background:#2b48e8; box-shadow:0 0 0 4px #2b48e813; }
.menu-panel-note { position:relative; overflow:hidden; padding:20px 22px; border:1px solid #526d9a5e; border-radius:17px; background:linear-gradient(125deg,#1d3563,#14233e 70%); }
.menu-panel-note:after { content:''; position:absolute; width:65px; height:1px; right:-10px; top:22px; background:#ff967e; transform:rotate(-42deg); opacity:.8; }
.menu-note-title { margin:0 0 7px; color:#edf3ff; font:550 19px/1.25 var(--font-display); letter-spacing:-.04em; }
.menu-note-text { margin:0; max-width:315px; color:#b7c9e3; font-size:11px; line-height:1.6; }
.menu-panel-actions { display:grid; grid-template-columns:1fr auto; gap:8px; padding-bottom:1px; }
html[data-theme] .menu-panel-actions .button {
    display:flex; align-items:center; justify-content:center; min-height:45px; min-width:0; padding:10px 12px;
    border-radius:13px; color:#d5e2f5; border-color:#4b607f; background:#101b2d;
    font-size:10px; font-weight:550; line-height:1.45; white-space:normal;
  }
@media (max-width:650px) {
.menu-panel-head { padding:4px 4px 12px; }
.menu-panel-kicker { font-size:8px; letter-spacing:.1em; }
.menu-panel-nav { padding:6px; border-radius:15px; }
.menu-panel-item { min-height:65px; padding:10px 9px; grid-template-columns:24px minmax(0,1fr) 20px; gap:6px; }
.menu-panel-title { font-size:22px; }
.menu-panel-description { font-size:10px; }
.menu-panel-note { padding:18px; }
}
@media (max-width:400px) {
.menu-panel-title { font-size:20px; }
.menu-panel-description { font-size:9px; }
.menu-panel-note { padding:17px; }
.menu-panel-actions { grid-template-columns:1fr; }
}
@media (max-height:550px) {
.menu-panel-head { padding-bottom:9px; }
}
}
@keyframes menu-panel-in { from { opacity:0; transform:translateY(32px) rotate(1.7deg); } to { opacity:1; transform:translateY(0) rotate(0); } }
@keyframes menu-panel-out { to { opacity:0; transform:translateY(16px); } }

/* Переход между разделами */
@media screen and (prefers-reduced-motion:no-preference) {
html[data-theme]::view-transition-group(ritm-section-title) {
    animation-duration:var(--motion-content,560ms);
    animation-timing-function:cubic-bezier(.16,1,.3,1);
    pointer-events:none;
  }
html[data-theme]::view-transition-image-pair(ritm-section-title) {
    isolation:isolate; pointer-events:none;
  }
html[data-theme]::view-transition-old(ritm-section-title) {
    animation:ritm-title-out var(--motion-color,200ms) ease both;
    mix-blend-mode:normal; pointer-events:none;
  }
html[data-theme]::view-transition-new(ritm-section-title) {
    animation:ritm-title-in var(--motion-label,320ms) var(--motion-press,120ms) ease both;
    mix-blend-mode:normal; pointer-events:none;
  }
}
@keyframes ritm-title-out { to { opacity:0; } }
@keyframes ritm-title-in { from { opacity:0; } to { opacity:1; } }

/* Главная */
@media screen {
html[data-theme] #today-workspace { scroll-margin-top:112px; }
}
@media screen {
html[data-theme] .reference-hero:after,
  html[data-theme] .reference-hero > :is(.motion-aura,.motion-orbits) { display:none; }
html[data-theme] .reference-intro-actions .reference-pill :is(.action-label,.action-hint) {
    position:relative; z-index:1; align-self:stretch; color:inherit;
    transform:none; transition:none;
  }
}
html[data-theme][data-ambient-motion="off"] .reference-introduction *,
html[data-theme][data-ambient-motion="off"] .reference-introduction *:before,
html[data-theme][data-ambient-motion="off"] .reference-introduction *:after,
html[data-theme][data-ambient-motion="off"] .reference-scroll:after { transition:none; animation:none; }
.home-cover-film { display:none; }

/* Карточки разделов */
@media screen {
html[data-theme] .section-launcher { margin:0 0 clamp(90px,12vw,190px); }
html[data-theme] .section-launcher-head { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:22px 2vw; align-items:end; margin-bottom:clamp(42px,6vw,100px); }
html[data-theme] .section-launcher-kicker { grid-column:1/-1; margin:0; color:#aeb8c9; font:500 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.1em; }
html[data-theme] .section-launcher-title { grid-column:1/10; margin:0; color:#f0f1fa; white-space:pre-line; font:450 clamp(46px,7.7vw,138px)/1 var(--font-display); letter-spacing:-.06em; }
html[data-theme] .section-launcher-description { grid-column:10/-1; max-width:320px; margin:0 0 7px; color:#b5bdcc; font:400 clamp(12px,1vw,18px)/1.6 var(--font-body); }
html[data-theme] .section-card { position:relative; display:block; isolation:isolate; min-width:0; width:100%; min-height:0; margin:0; padding:0; border:0; border-radius:0; background:none; color:#f0f1fa; box-shadow:none; text-align:left; font-family:var(--font-body); cursor:pointer; transform:none; translate:none; rotate:none; -webkit-tap-highlight-color:#a4bcff29; }
html[data-theme] .section-card.motion-reactive:before,
  html[data-theme] .section-card:after { display:none; }
html[data-theme] .section-card-art { position:relative; isolation:isolate; display:block; width:100%; height:auto; aspect-ratio:100/65; margin:0; overflow:hidden; border:0; border-radius:15px; background:#101722; color:#eff5ff; perspective:1000px; pointer-events:none; }
html[data-theme] .section-card-art:before { content:''; position:absolute; z-index:3; inset:0; border:1px solid #e9f2ff12; border-radius:inherit; pointer-events:none; }
html[data-theme] .section-card-art:after { content:''; position:absolute; z-index:2; inset:0; background:linear-gradient(130deg,#fff0 20%,#ffffff0a 42%,#fff0 65%); opacity:.6; pointer-events:none; }
.section-card-landscape { position:absolute; display:block; inset:-3%; background:center/cover no-repeat; transform:scale(1); transition:transform 800ms cubic-bezier(.16,1,.3,1); }
.section-card-motif { position:absolute; inset:0; display:block; transform-style:preserve-3d; transition:transform 750ms cubic-bezier(.16,1,.3,1); }
.section-card-piece { position:absolute; display:block; box-sizing:border-box; }
.section-card-cross { position:absolute; z-index:4; right:5%; bottom:8%; width:12px; height:12px; color:inherit; opacity:.6; }
.section-card-cross:before,.section-card-cross:after { content:''; position:absolute; top:5.5px; left:0; width:12px; height:1px; background:currentColor; }
.section-card-cross:after { transform:rotate(90deg); }
.section-card-meta { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 16px; margin-top:20px; }
.section-card-top { display:flex; align-items:baseline; gap:13px; min-width:0; }
.section-card-index,.section-card-type,.section-card-count { color:#aeb8c9; font:500 clamp(9px,.78vw,13px)/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.05em; }
.section-card-index { color:#f0f1fa; font-variant-numeric:tabular-nums; }
.section-card-type { overflow-wrap:anywhere; }
.section-card-count { display:block; padding:0; border:0; border-radius:0; background:none; color:#d1d8e6; overflow-wrap:anywhere; }
.section-card-copy { display:block; min-width:0; margin-top:13px; padding:0; }
.section-card-title-row { position:relative; display:block; padding-left:0; overflow:hidden; }
html[data-theme] .section-card-title { display:block; max-width:calc(100% - 1.1em); color:#f0f1fa; font:450 clamp(30px,3.4vw,62px)/1.12 var(--font-display); letter-spacing:-.055em; overflow-wrap:anywhere; transition:transform 400ms cubic-bezier(.35,0,0,1); }
.section-card-arrow { position:absolute; left:0; top:0; color:#fff; font:400 clamp(30px,3.4vw,62px)/1.12 var(--font-body); transform:translateX(-130%); opacity:0; transition:transform 400ms cubic-bezier(.35,0,0,1),opacity 240ms; }
.section-card-description { display:block; max-width:100%; margin-top:10px; color:#aeb8c9; font:400 clamp(12px,.95vw,16px)/1.6 var(--font-body); }
.section-card[data-section="today"] .section-card-landscape { background-image:linear-gradient(0deg,#060b1d33,#07142400),url('../assets/oled-almaty.webp'); background-position:50% 55%; }
.section-card[data-section="today"] .section-card-motif { transform:rotate(-17deg); }
.section-card[data-section="today"] .piece-0 { left:12%; right:12%; top:47%; height:2px; background:linear-gradient(90deg,transparent,#e6f0ff 25% 75%,transparent); box-shadow:0 0 18px #afccff80; }
.section-card[data-section="today"] .piece-1 { left:49.7%; top:25%; bottom:25%; width:2px; background:linear-gradient(0deg,transparent,#e6f0ff 35% 65%,transparent); box-shadow:0 0 20px #afccff80; }
.section-card[data-section="today"] .piece-2 { left:46.7%; top:43%; width:6%; aspect-ratio:1; border:1px solid #ecf5ffc2; transform:rotate(45deg); background:#dcecff19; }
.section-card[data-section="today"] .piece-3 { left:18%; right:18%; top:54%; height:1px; background:linear-gradient(90deg,transparent,#ff9c87c2,transparent); }
html[data-theme] .section-card[data-section="week"] .section-card-art { background:radial-gradient(ellipse at 60% 20%,#f4f6fb,#c8d3e0); color:#455164; }
.section-card[data-section="week"] .section-card-motif { inset:16% 19%; transform:rotateX(26deg) rotateY(-22deg) rotateZ(-23deg); }
.section-card[data-section="week"] .section-card-piece { top:0; bottom:0; width:10%; border:1px solid #f6fbff; border-radius:100px; background:linear-gradient(90deg,#eff4fa,#adbfd1 12%,#536b89 38%,#f6fbff 75%,#a3b4c8); box-shadow:8px 11px 11px #4d617c3d,inset -2px 0 2px #fff8; }
.section-card[data-section="week"] .piece-0 { left:0; transform:translateY(16%); }
.section-card[data-section="week"] .piece-1 { left:15%; transform:translateY(9%); }
.section-card[data-section="week"] .piece-2 { left:30%; transform:translateY(3%); }
.section-card[data-section="week"] .piece-3 { left:45%; background:linear-gradient(90deg,#ffdfd0,#d8957e 20%,#874b42 50%,#ffe2d5 80%,#cf9a88); }
.section-card[data-section="week"] .piece-4 { left:60%; transform:translateY(-3%); }
.section-card[data-section="week"] .piece-5 { left:75%; transform:translateY(-9%); }
.section-card[data-section="week"] .piece-6 { left:90%; transform:translateY(-16%); }
.section-card[data-section="journey"] .section-card-landscape { background-image:linear-gradient(100deg,#050b1766,transparent),url('../assets/oled-starry-night.webp'); background-position:50% 68%; }
.section-card[data-section="journey"] .section-card-motif { inset:16% 14%; transform:rotate(-12deg); }
.section-card[data-section="journey"] .piece-0 { width:88%; height:70%; top:0; left:6%; border:2px solid #e4edffbf; border-left-color:transparent; border-bottom-color:transparent; border-radius:0 50% 0 0; }
.section-card[data-section="journey"] .piece-1 { width:70%; height:55%; top:25%; left:15%; border:2px solid #c0d2ff70; border-top-color:transparent; border-right-color:transparent; border-radius:0 0 0 50%; }
.section-card[data-section="journey"] .piece-2,.section-card[data-section="journey"] .piece-3 { width:9px; height:9px; background:#f1f4ff; box-shadow:0 0 24px #cce0ffb3; }
.section-card[data-section="journey"] .piece-2 { top:-3px; left:6%; }
.section-card[data-section="journey"] .piece-3 { bottom:18%; right:15%; background:#ffa58e; }
html[data-theme] .section-card[data-section="tasks"] .section-card-art { background:radial-gradient(ellipse at 40% 30%,#f0f1fa,#c1c7d5); color:#3d485b; }
.section-card[data-section="tasks"] .section-card-motif { inset:22% 26%; transform:rotateY(-20deg) rotateX(13deg) rotate(-4deg); }
.section-card[data-section="tasks"] .section-card-piece { height:18%; border:1px solid #f7faff; border-radius:6px; background:linear-gradient(0deg,#566b88,#f0f5fc 44%,#8ba1bf 65%,#cdd9ea); box-shadow:0 10px 0 #68809c,0 22px 26px #3d526c60; }
.section-card[data-section="tasks"] .piece-0 { width:48%; left:0; top:53%; transform:rotate(43deg); }
.section-card[data-section="tasks"] .piece-1 { width:89%; left:26%; top:36%; transform:rotate(-49deg); }
html[data-theme] .section-card[data-section="tracker"] .section-card-art { background:radial-gradient(ellipse at 60% 5%,#27489e,#101d52 55%,#090d20); }
.section-card[data-section="tracker"] .section-card-motif { inset:9% 13%; transform:rotate(-33deg) rotateY(22deg); }
.section-card[data-section="tracker"] .section-card-piece { left:12%; right:12%; height:31%; border-top:8px solid #cdddf7; border-radius:50% 50% 0 0; box-shadow:0 -3px 0 #ffffffd1,0 -7px 0 #839abb,0 14px 18px #02071680; transform:rotateX(25deg); }
.section-card[data-section="tracker"] .piece-0 { top:0; }
.section-card[data-section="tracker"] .piece-1 { top:18%; }
.section-card[data-section="tracker"] .piece-2 { top:36%; border-top-color:#f8b09a; box-shadow:0 -3px 0 #ffe8df,0 -7px 0 #a46d5c,0 14px 18px #02071680; }
.section-card[data-section="tracker"] .piece-3 { top:54%; }
.section-card[data-section="tracker"] .piece-4 { top:72%; }
html[data-theme] .section-card[data-section="profile"] .section-card-art { background:radial-gradient(ellipse at 35% 25%,#fafbff,#bbc5d5); color:#3d485b; }
.section-card[data-section="profile"] .section-card-motif { inset:20% 30%; transform:rotateX(19deg) rotateY(-23deg) rotate(-23deg); }
.section-card[data-section="profile"] .section-card-piece { border:1px solid #f6fbff; border-radius:12px; background:linear-gradient(135deg,#eff5ff,#9cb1ce 30%,#5e7595 53%,#e2ebf9 80%,#c1cfe2); box-shadow:8px 14px 0 #7288a5,16px 28px 30px #53657c47; }
.section-card[data-section="profile"] .piece-0 { width:33%; height:100%; top:0; left:33%; }
.section-card[data-section="profile"] .piece-1 { width:100%; height:33%; top:33%; left:0; }
.section-card[data-section="profile"] .piece-2 { width:17%; height:17%; top:41%; left:41%; border-radius:3px; background:#8b9fba; box-shadow:inset 2px 3px 6px #30425c70; }
.section-card[data-section="profile"] .piece-3 { display:none; }
html[data-theme] .section-card[data-section="archive"] .section-card-art { background:radial-gradient(ellipse at 30% 30%,#252e3b,#0b111a); }
.section-card[data-section="archive"] .section-card-motif { inset:13% 24%; transform:rotateX(12deg) rotateY(-24deg) rotate(-17deg); }
.section-card[data-section="archive"] .section-card-piece { width:17%; top:0; height:100%; border:1px solid #e9f0ff; border-radius:7px; background:linear-gradient(90deg,#d0dbeb,#778ba5 40%,#e1eaf8 90%,#f5f8ff); box-shadow:5px 9px 0 #52657d,13px 18px 20px #0006; }
.section-card[data-section="archive"] .piece-0 { left:0; transform:translateY(13%); }
.section-card[data-section="archive"] .piece-1 { left:17%; transform:translateY(8%); }
.section-card[data-section="archive"] .piece-2 { left:34%; transform:translateY(3%); }
.section-card[data-section="archive"] .piece-3 { left:51%; transform:translateY(-3%); }
.section-card[data-section="archive"] .piece-4 { left:68%; transform:translateY(-8%); }
.section-card[data-section="archive"] .piece-5 { left:85%; transform:translateY(-13%); background:linear-gradient(90deg,#ffe3d7,#a16b5c 40%,#eeb39e 90%,#ffefea); }
.section-card[data-section="helper"] .section-card-landscape { background-image:linear-gradient(#07112255,#071122aa),url('../assets/oled-starry-night.webp'); background-position:50% 25%; }
.section-card[data-section="helper"] .section-card-motif { inset:22% 14%; transform:rotateX(28deg) rotate(-24deg); }
.section-card[data-section="helper"] .section-card-piece { left:0; width:100%; height:15%; border:1px solid #d8e6ff; border-radius:4px; background:linear-gradient(0deg,#5f7291,#d5e3f6 35%,#f2f7ff 50%,#869bb9); box-shadow:0 7px 0 #344866,0 18px 24px #0006; }
.section-card[data-section="helper"] .piece-0 { top:23%; transform:rotate(-15deg); }
.section-card[data-section="helper"] .piece-1 { top:59%; transform:rotate(15deg); }
.section-card[data-section="helper"] .piece-2 { left:43%; top:-6%; width:2px; height:115%; border:0; border-radius:0; background:#ffa990; box-shadow:0 0 14px #ffb09366; transform:rotate(25deg); }
html[data-theme] .section-card:active .section-card-art { filter:brightness(.9); }
@media (hover:hover) and (pointer:fine) {
html[data-theme][data-ambient-motion="on"] .section-card:hover .section-card-landscape { transform:scale(1.045); }
html[data-theme][data-ambient-motion="on"] .section-card:hover .section-card-motif { translate:0 -5px; }
html[data-theme][data-ambient-motion="on"] .section-card:hover .section-card-title { transform:translateX(1.1em); }
html[data-theme][data-ambient-motion="on"] .section-card:hover .section-card-arrow { transform:translateX(0); opacity:1; }
}
@media (max-width:1000px) {
html[data-theme] .section-launcher-title { grid-column:1/10; font-size:7.4vw; }
html[data-theme] .section-launcher-description { grid-column:10/-1; font-size:11px; }
html[data-theme] .section-card-title { font-size:3.6vw; }
}
@media (max-width:812px) {
html[data-theme] .section-launcher-head { grid-template-columns:repeat(6,minmax(0,1fr)); gap:22px 4vw; margin-bottom:42px; }
html[data-theme] .section-launcher-title { grid-column:1/-1; font-size:clamp(42px,9vw,72px); }
html[data-theme] .section-launcher-description { grid-column:3/-1; font-size:12px; max-width:400px; }
html[data-theme] .section-card-art { border-radius:10px; }
html[data-theme] .section-card-title { font-size:clamp(30px,6.5vw,48px); }
.section-card-arrow { font-size:clamp(30px,6.5vw,48px); }
.section-card-meta { margin-top:17px; gap:7px 12px; }
.section-card-copy { margin-top:10px; }
.section-card-description { margin-top:8px; font-size:12px; }
.section-card-index,.section-card-type,.section-card-count { font-size:10px; }
}
@media (max-width:400px) {
html[data-theme] .section-launcher-title { font-size:clamp(36px,10vw,42px); }
html[data-theme] .section-launcher-description { grid-column:2/-1; }
.section-card-meta { display:block; }
.section-card-count { margin-top:6px; }
}
}
html[data-ambient-motion="off"] .section-card,
html[data-ambient-motion="off"] .section-card * { animation:none; transition:none; }
html[data-ambient-motion="off"] .section-card-title { transform:none; }
html[data-ambient-motion="off"] .section-card-arrow { display:none; }

/* Итоги */
@media screen {
html[data-ambient-motion="off"] .reference-finale *,html[data-ambient-motion="off"] .reference-finale *:before,html[data-ambient-motion="off"] .reference-finale *:after { animation:none; transition:none; }
}

/* Неделя */
@media screen {
html[data-theme] .reference-week-cover:before,
  html[data-theme] .reference-week-cover:after,
  html[data-theme] .reference-week-cover > :is(.motion-aura,.motion-orbits) { display:none; }
html[data-ambient-motion="off"] .reference-week-cover *,
  html[data-ambient-motion="off"] .reference-week-cover *:before,
  html[data-ambient-motion="off"] .reference-week-cover *:after { transition:none; animation:none; }
}

/* Содержание разделов */
@media screen {
html[data-theme] :is(.section-workspace,#week-calendar) { scroll-margin-top:112px; }
html[data-theme][data-ambient-motion="off"] .reference-section-heading *,
  html[data-theme][data-ambient-motion="off"] .reference-section-heading *:before { transition:none; animation:none; }
}
.tracker-cover-film { display: none; }
@media screen {
html[data-theme] [data-view="tracker"] .reference-section-heading {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    row-gap: clamp(14px, 1.7vw, 25px);
    padding: clamp(23px, 3.7vw, 62px);
    margin-block: clamp(22px, 3vw, 48px) clamp(28px, 3.2vw, 52px);
    border: 1px solid #39434d;
    border-radius: var(--kinetic-radius);
    background-color: #090c10;
  }
[data-view="tracker"] .reference-section-top { display: none; }
html[data-theme] [data-view="tracker"] .reference-section-heading .view-title-copy,
  [data-view="tracker"] :is(.reference-section-summary, .reference-section-bottom) {
    grid-column: 1;
  }
html[data-theme] [data-view="tracker"] .view-title-copy h1 {
    font-size: clamp(48px, 8vw, 128px);
  }
[data-view="tracker"] .reference-section-summary {
    display: flex;
    align-items: baseline;
    gap: 8px 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border: 0;
  }
[data-view="tracker"] .reference-section-count {
    color: #ffb299;
    font-size: clamp(25px, 2.6vw, 44px);
  }
[data-view="tracker"] .reference-section-count-label {
    max-width: 100%;
    margin: 0;
    color: #e0e6ef;
    font-size: max(13px, .85em);
  }
[data-view="tracker"] .reference-section-bottom {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: clamp(14px, 1.7vw, 25px);
    margin: 0;
  }
[data-view="tracker"] .reference-section-description {
    max-width: 35ch;
    color: #d6dee8;
  }
[data-view="tracker"] .reference-section-jump {
    min-width: min(190px, 100%);
  }
}
@media screen and (max-width: 650px) {
html[data-theme] [data-view="tracker"] .reference-section-heading {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px clamp(16px, 5vw, 30px);
    row-gap: 14px;
  }
}

/* Элементы управления */
html[data-theme][data-ambient-motion="on"] .button {
  transition-duration: var(--motion-color),var(--motion-color),var(--motion-color),var(--motion-press),var(--motion-label);
}
html[data-theme][data-ambient-motion="on"] :is(input,select,textarea) {
  transition: border-color var(--motion-color),background-color var(--motion-color);
}
html[data-theme] .button[aria-busy="true"] {
  position: relative;
  padding-right: 42px;
}
html[data-theme] .button[aria-busy="true"]:after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: interface-wait 720ms linear infinite;
}
@keyframes interface-wait { to { transform: rotate(360deg); } }
html[data-theme] .interface-samples {
  margin-top: clamp(34px,6vw,88px);
  border-top: 1px solid #8ca1bd55;
  border-bottom: 1px solid #8ca1bd35;
  background: #06090dd9;
}
html[data-theme] .interface-samples-summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 104px;
  padding: 22px clamp(18px,3vw,42px);
  cursor: pointer;
  list-style: none;
}
html[data-theme] .interface-samples-summary::-webkit-details-marker { display: none; }
html[data-theme] .interface-samples-summary:after {
  content: '+';
  grid-column: 2;
  grid-row: 1 / span 2;
  font: 400 30px/1 var(--font-display);
  color: #d8e7fb;
  transition: transform var(--motion-arrow) var(--motion-ease);
}
html[data-theme] .interface-samples[open] > .interface-samples-summary:after { transform: rotate(45deg); }
html[data-theme] .interface-samples-title {
  font: 500 clamp(24px,3.2vw,46px)/1.05 var(--font-display);
  letter-spacing: -.035em;
  color: #f4f7fb;
}
html[data-theme] .interface-samples-meta {
  grid-column: 1;
  color: #9caabd;
  font: 500 11px/1.4 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-theme] .interface-samples-body {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: clamp(28px,4vw,64px) 2vw;
  padding: 12px clamp(18px,3vw,42px) clamp(36px,6vw,84px);
}
html[data-theme] .interface-samples-intro { grid-column: 1 / span 6; max-width: 56ch; color: #aab8ca; }
html[data-theme] .interface-sample-group { grid-column: span 6; min-width: 0; }
html[data-theme] .interface-motion-group { grid-column: 1 / -1; }
html[data-theme] .interface-sample-group h3 {
  margin: 0 0 18px;
  padding-top: 12px;
  border-top: 1px solid #8ca1bd42;
  color: #dfe8f4;
  font: 500 13px/1.4 var(--font-display);
  letter-spacing: .04em;
}
html[data-theme] .interface-sample-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
html[data-theme] .interface-sample-status { min-height: 1.5em; margin: 14px 0 0; color: #9eacc0; }
html[data-theme] .interface-sample-status[data-state="success"] { color: var(--state-success); }
html[data-theme] .interface-sample-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: end; }
html[data-theme] .interface-sample-fields .button { justify-self: start; }
html[data-theme] .interface-sample-error { grid-column: 1 / -1; min-height: 1.5em; margin: 0; }
html[data-theme] .interface-sample-field[data-state="success"] input,
html[data-theme] .interface-sample-field:has(input:not(:placeholder-shown):valid) input { border-color: #68a98a; box-shadow: inset 3px 0 0 #68a98a; }
html[data-theme] .interface-sample-field input[aria-invalid="true"] { border-color: #e5896d; box-shadow: inset 3px 0 0 #e5896d; }
html[data-theme] .interface-motion-table-wrap { margin: 0; border: 1px solid #7388a54d; border-radius: 10px; background: #0b1017; }
html[data-theme] .interface-motion-table { min-width: 620px; }
html[data-theme] .interface-motion-table th { color: #d9e5f4; background: #111a26; }
html[data-theme] .interface-motion-table td:nth-child(2) { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; color: #ffad91; white-space: nowrap; }
html[data-theme] .interface-motion-table tbody tr:hover td { background: #142131; }
@media (max-width:812px) {
html[data-theme] .interface-samples-body { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 34px 25px; }
html[data-theme] :is(.interface-samples-intro,.interface-sample-group,.interface-motion-group) { grid-column: 1 / -1; }
}
@media (max-width:400px) {
html[data-theme] .interface-samples-summary { padding-inline: 15px; }
html[data-theme] .interface-samples-body { padding-inline: 15px; }
html[data-theme] .interface-sample-fields { grid-template-columns: 1fr; }
html[data-theme] .interface-sample-error { grid-column: 1; }
html[data-theme] .interface-sample-actions .button { width: 100%; }
}
html[data-theme][data-ambient-motion="off"] :is(.interface-samples-summary:after,.button[aria-busy="true"]:after) { animation: none; transition: none; }

/* Состояния задач */
html[data-theme] :is(.task-state-summary,.tracker-state-summary) {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
}
html[data-theme] :is(.task-state-pill,.tracker-state-pill) {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:6px 11px 6px 8px;
  border:1px solid #637895;
  border-radius:999px;
  background:#111c2a;
  color:#dce7f6;
  font:500 11px/1.35 var(--font-body);
}
html[data-theme] :is(.task-state-pill,.tracker-state-pill) strong {
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#2a3b51;
  color:#fff;
  font:650 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
}
html[data-theme] :is(.task-state-pill[data-state="open"],.tracker-state-pill[data-state="progress"]) { border-color:#7898c4; color:#dceaff; }
html[data-theme] :is(.task-state-pill[data-state="open"],.tracker-state-pill[data-state="progress"]) strong { background:#29496c; }
html[data-theme] :is(.task-state-pill[data-state="done"],.tracker-state-pill[data-state="achieved"]) { border-color:#5d997e; color:#cef1de; }
html[data-theme] :is(.task-state-pill[data-state="done"],.tracker-state-pill[data-state="achieved"]) strong { background:#1d513c; }
html[data-theme] .tracker-state-pill[data-state="paused"] { border-color:#9b8455; color:#ffe5af; }
html[data-theme] .tracker-state-pill[data-state="paused"] strong { background:#58451f; }
html[data-theme] .tracker-state-pill[data-state="unplanned"] { border-color:#6f7c8e; color:#c9d2df; }
html[data-theme] :is(.task-status,.tracker-goal-status) {
  display:inline-flex;
  align-items:center;
  width:fit-content;
  max-width:100%;
  gap:7px;
  margin:0 0 8px;
  padding:4px 9px;
  border:1px solid #7898c4;
  border-radius:999px;
  background:#162c45;
  color:#dceaff;
  font-size:11px;
  font-weight:650;
  line-height:1.35;
}
html[data-theme] :is(.task-status,.tracker-goal-status):before {
  content:'';
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#9bc8ff;
  box-shadow:0 0 0 3px #9bc8ff1c;
}
html[data-theme] :is(.task-status[data-state="done"],.tracker-goal-status[data-state="achieved"]) { border-color:#5d997e; background:#123326; color:#cef1de; }
html[data-theme] :is(.task-status[data-state="done"],.tracker-goal-status[data-state="achieved"]):before { background:#8fe0b6; box-shadow:0 0 0 3px #8fe0b620; }
html[data-theme] .tracker-goal-status[data-state="paused"] { border-color:#9b8455; background:#382d18; color:#ffe5af; }
html[data-theme] .tracker-goal-status[data-state="paused"]:before { background:#ffd37e; box-shadow:0 0 0 3px #ffd37e1c; }
html[data-theme] .tracker-goal-status[data-state="unplanned"] { border-color:#6f7c8e; background:#202832; color:#c9d2df; }
html[data-theme] .tracker-goal-status[data-state="unplanned"]:before { background:#9da8b7; box-shadow:none; }
html[data-theme] .task-table tr[data-task-state="open"] > :first-child { box-shadow:inset 4px 0 #ff9277; }
html[data-theme] .task-table tr[data-task-state="done"] > :first-child { box-shadow:inset 4px 0 #71bd98; }
html[data-theme] .tracker-plan-table tr[data-goal-state="progress"] > :first-child { box-shadow:inset 4px 0 #7caff0; }
html[data-theme] .tracker-plan-table tr[data-goal-state="achieved"] > :first-child { box-shadow:inset 4px 0 #71bd98; }
html[data-theme] .tracker-plan-table tr[data-goal-state="paused"] > :first-child { box-shadow:inset 4px 0 #d2a85b; }
html[data-theme] .tracker-plan-table tr[data-goal-state="unplanned"] > :first-child { box-shadow:inset 4px 0 #758295; }
html[data-theme] .tracker-plan-table tr[data-archived="true"] > * { color:#c0cad7; background-image:linear-gradient(135deg,#ffffff08 25%,transparent 25%,transparent 50%,#ffffff08 50%,#ffffff08 75%,transparent 75%); background-size:12px 12px; }
html[data-theme] :is(.task-table,.tracker-plan-table) tr:focus-within > :first-child { box-shadow:inset 4px 0 #ff9277,inset 0 1px #a9c7ed,inset 0 -1px #a9c7ed; }
html[data-theme] .tracker-plan-table .button:disabled { border-style:dashed; }
html[data-theme][data-ambient-motion="on"] :is(.task-state-pill,.tracker-state-pill,.task-status,.tracker-goal-status) {
  transition:border-color var(--motion-color,200ms),background-color var(--motion-color,200ms);
}
@media (max-width:400px) {
html[data-theme] :is(.task-state-summary,.tracker-state-summary) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
html[data-theme] :is(.task-state-pill,.tracker-state-pill) { width:100%; }
}

/* Сохранение и импорт */
.file-picker-input {
  position: fixed;
  inset: auto auto 0 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
html[data-theme] .workflow-form {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid #53657f;
  transition: border-color var(--motion-fast, 200ms) var(--motion-ease, ease),background-color var(--motion-fast, 200ms) var(--motion-ease, ease);
}
html[data-theme] .workflow-form:focus-within { border-left-color: #c9dcff; }
html[data-theme] .workflow-form:has([aria-invalid="true"]) { border-left-color: #ff9474; }
html[data-theme] .workflow-operation {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 17px;
  padding: 16px 17px;
  border: 1px solid #536b8d;
  border-left: 3px solid #a9c8f6;
  border-radius: 12px;
  background: #111b2a;
  color: #e7eef9;
}
html[data-theme] .workflow-operation-mark {
  width: 10px;
  height: 10px;
  border: 2px solid #c7dcff;
  border-radius: 50%;
}
html[data-theme] .workflow-operation[data-state="checking"] .workflow-operation-mark {
  border-right-color: transparent;
  animation: workflow-turn var(--motion-slow, 560ms) linear infinite;
}
html[data-theme] .workflow-operation[data-state="ready"] { border-left-color: #9bdcc3; }
html[data-theme] .workflow-operation[data-state="ready"] .workflow-operation-mark { border-color: #9bdcc3; background: #9bdcc3; }
html[data-theme] .workflow-operation[data-state="error"] { border-color: #855649; border-left-color: #ff9474; background: #2b1b1d; }
html[data-theme] .workflow-operation[data-state="error"] .workflow-operation-mark { border-color: #ffad94; }
html[data-theme] .workflow-operation-copy { min-width: 0; }
html[data-theme] .workflow-operation-copy h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.35; }
html[data-theme] .workflow-operation-message { margin: 0; color: #bdcce1; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
html[data-theme] .save-state.error { color: #ffb39a; }
html[data-theme] .save-state.error::before {
  background: #ff9474;
  box-shadow: 0 0 0 4px #ff947426;
}
html[data-theme] .archive-state-card {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  align-items: start;
  gap: 13px;
  padding: 16px 17px;
  border: 1px solid #53657f;
  border-left: 3px solid #a9c8f6;
  border-radius: 12px;
  background: #101925;
  color: #e7eef9;
}
html[data-theme] .archive-state-card[data-state="error"] {
  border-color: #855649;
  border-left-color: #ff9474;
  background: #2b1b1d;
}
html[data-theme] .archive-state-card[data-state="empty"] {
  border-style: dashed;
  border-left-style: solid;
  border-left-color: #8395ad;
}
html[data-theme] .archive-state-card[data-state="loading"] .workflow-operation-mark {
  border-right-color: transparent;
  animation: workflow-turn var(--motion-slow, 560ms) linear infinite;
}
html[data-theme] .archive-state-copy { min-width: 0; }
html[data-theme] .archive-state-copy strong { display: block; margin-bottom: 5px; }
html[data-theme] .archive-state-card p { margin: 0; color: #bdcce1; line-height: 1.55; overflow-wrap: anywhere; }
html[data-theme] .archive-state-copy .button { margin-top: 13px; }
html[data-theme] .snapshot-list { display: grid; gap: 9px; }
html[data-theme] .snapshot-row { border-left: 2px solid #7892b7; }
html[data-theme] .helper-window-form {
  margin: 20px 0;
  align-items: start;
}
html[data-theme] .helper-window-guide,
html[data-theme] .helper-window-form > .field {
  margin: 0;
  min-width: 0;
}
html[data-theme] .helper-window-form input[type="datetime-local"] {
  width: 100%;
  min-width: 0;
}
html[data-theme] .helper-window-confirmation {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #7186a4;
  border-radius: 8px;
  background: #111923;
  color: #eef3fb;
  overflow-wrap: anywhere;
  cursor: pointer;
}
html[data-theme] .helper-window-confirmation input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-block-start: 3px;
}
html[data-theme] .helper-window-confirmation:has(:checked) {
  border-color: #bbd7ff;
}
html[data-theme] .helper-window-confirmation:has([aria-invalid="true"]) {
  border-color: #ff9474;
}
html[data-theme] .helper-window-form > button[type="submit"] {
  justify-self: start;
}
html[data-theme] .helper-window-list { display: grid; gap: 8px; scroll-margin-top: 110px; }
html[data-theme] .helper-window-list > h3 { margin: 0; }
html[data-theme] .helper-window-list:focus { outline: 3px solid #c8dcff; outline-offset: 5px; border-radius: 10px; }
html[data-theme] #applied-schedules { scroll-margin-top: 110px; }
html[data-theme] #applied-schedules:focus { outline: 3px solid #c8dcff; outline-offset: 5px; }
html[data-theme] .helper-readiness {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px 18px;
  margin: 18px 0;
  padding: 15px 17px;
  border: 1px solid #53657f;
  border-left: 3px solid #ff9474;
  border-radius: 11px;
  background: #111923;
  color: #eef3fb;
}
html[data-theme] .helper-readiness[data-state="ready"] { border-left-color: #9bdcc3; }
html[data-theme] .helper-readiness > span { color: #bdcbe0; font-size: 12px; text-align: right; }
html[data-theme] .helper-readiness > p { grid-column: 1 / -1; margin: 2px 0 0; }
html[data-theme] .schedule-availability {
  --availability-open: #bbd7ff;
  --availability-occupied: #ff9474;
  margin-block: 18px;
  padding: clamp(12px, 3vw, 22px);
  border: 1px solid #53657f;
  border-radius: 11px;
  background: #101925;
  color: #eef3fb;
  overflow-wrap: anywhere;
}
html[data-theme] .schedule-availability > h3 { margin: 0 0 12px; }
html[data-theme] .schedule-availability-bar {
  display: flex;
  block-size: 14px;
  overflow: hidden;
  border: 1px solid #7186a4;
  border-radius: 5px;
  background: #273245;
}
html[data-theme] .schedule-availability-segment {
  flex-basis: 0;
  min-inline-size: 0;
}
html[data-theme] :is(.schedule-availability-segment,.schedule-availability-mark).is-open {
  background: var(--availability-open);
}
html[data-theme] :is(.schedule-availability-segment,.schedule-availability-mark).is-occupied {
  background: repeating-linear-gradient(135deg, var(--availability-occupied) 0 4px, #974e3f 4px 6px);
}
html[data-theme] .schedule-availability-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 8px 16px;
  margin: 12px 0 0;
}
html[data-theme] .schedule-availability-legend > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  min-inline-size: 0;
  padding-block: 8px;
  border-block-end: 1px solid #53657f;
}
html[data-theme] .schedule-availability-legend dt { color: #c5d1e3; }
html[data-theme] .schedule-availability-legend dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
html[data-theme] .schedule-availability-mark {
  display: inline-block;
  inline-size: 12px;
  block-size: 12px;
  margin-inline-end: 8px;
  border-radius: 2px;
  vertical-align: baseline;
}
html[data-theme] .schedule-availability > .hint { margin: 12px 0 0; }
html[data-theme] .unscheduled-row .unscheduled-reason {
  color: #ffd0bd;
  overflow-wrap: anywhere;
}
html[data-theme] .proposal-additions {
  margin-block: 22px;
  overflow-wrap: anywhere;
}
html[data-theme] .proposal-additions h3 { margin: 0 0 12px; }
html[data-theme] .proposal-additions-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html[data-theme] .proposal-addition-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: baseline;
  gap: 4px 16px;
  min-inline-size: 0;
  padding: clamp(12px, 2.4vw, 18px);
  border: 1px solid #745248;
  border-inline-start: 3px solid #ff9474;
  border-radius: 8px;
  background: #251a1b;
  color: #eef3fb;
}
html[data-theme] .proposal-addition-title {
  display: grid;
  gap: 3px;
  min-inline-size: 0;
}
html[data-theme] :is(.proposal-addition-title,.comparison-block) .comparison-tag {
  margin: 0;
  font-size: max(.75rem, calc(11px * var(--ritm-text-factor, 1)));
  line-height: 1.4;
}
html[data-theme] .proposal-addition-title .comparison-tag { color: #ffc1ab; }
html[data-theme] .proposal-addition-time {
  min-inline-size: 0;
  color: #ffd0bd;
  text-align: end;
  font-size: max(.875rem, calc(13px * var(--ritm-text-factor, 1)));
  font-variant-numeric: tabular-nums;
}
html[data-theme] .comparison-day-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-block-end: 12px;
  overflow-wrap: anywhere;
}
html[data-theme] .comparison-day-heading > :is(h3,.hint) { margin: 0; }
html[data-theme] .comparison-day-heading > .hint { color: #c5d1e3; }
html[data-theme] .comparison-column {
  padding: clamp(12px, 2.4vw, 20px);
  overflow-wrap: anywhere;
}
html[data-theme] .comparison-column h4 {
  color: #eef3fb;
  font-family: inherit;
  font-size: max(1rem, calc(14px * var(--ritm-text-factor, 1)));
}
html[data-theme] .comparison-column.after h4 { color: #bbd7ff; }
html[data-theme] :is(.comparison-block strong,.unscheduled-row strong) {
  font-size: max(.875rem, calc(13px * var(--ritm-text-factor, 1)));
}
html[data-theme] .schedule-stale.notice.error {
  margin-block: 14px;
  border-inline-start: 3px solid #ff9474;
  overflow-wrap: anywhere;
}
.schedule-comparison[data-stale="true"] > :not(.panel-heading,.schedule-stale,.comparison-actions) { display: none; }
html[data-theme] .schedule-batch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  margin-block: 8px;
  padding: clamp(12px, 2.4vw, 16px);
  border: 1px solid #53657f;
  border-radius: 8px;
  background: #111923;
  color: #eef3fb;
  overflow-wrap: anywhere;
}
html[data-theme] .schedule-batch > div { min-inline-size: 0; }
html[data-theme] .schedule-batch > div > .hint { margin: 4px 0 0; }
html[data-theme] .schedule-batch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-theme] .schedule-batch > .notice.error {
  grid-column: 1 / -1;
  margin: 0;
}
html[data-theme] .manual-prompt-groups {
  min-inline-size: 0;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
}
html[data-theme] .manual-prompt-groups > legend {
  max-inline-size: 100%;
  padding-inline: 4px;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
html[data-theme] .manual-prompt-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 8px;
}
html[data-theme] .manual-prompt-options > .check-label {
  align-items: center;
  min-inline-size: 0;
  min-block-size: 44px;
  padding: 8px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  overflow-wrap: anywhere;
}
html[data-theme] .manual-prompt-options > .check-label:has(:checked) {
  border-color: var(--forest-light);
}
html[data-theme] .manual-prompt-options input[type="checkbox"] {
  flex: none;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  min-height: 0;
  accent-color: var(--forest-light);
}
html[data-theme] .manual-prompt-editor > :is(.field,.hint) {
  margin: 0;
  overflow-wrap: anywhere;
}
.manual-prompt-service {
  max-inline-size: 19rem;
}
.chatgpt-summary-controls > p {
  margin: 0;
  overflow-wrap: anywhere;
}
.chatgpt-summary-controls > .button {
  justify-self: start;
}
html[data-theme] .manual-prompt-editor textarea {
  min-inline-size: 0;
  inline-size: 100%;
  resize: vertical;
}
html[data-theme] .manual-prompt-panel .actions > .button {
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@keyframes workflow-turn { to { transform: rotate(360deg); } }
@media (max-width: 650px) {
html[data-theme] .proposal-addition-row { grid-template-columns: minmax(0, 1fr); }
html[data-theme] .proposal-addition-time { text-align: start; }
html[data-theme] .comparison-columns { grid-template-columns: minmax(0, 1fr); }
html[data-theme] .schedule-batch { grid-template-columns: minmax(0, 1fr); }
html[data-theme] .schedule-batch-actions > .button { width: 100%; }
html[data-theme] .manual-prompt-editor .actions > .button { width: 100%; }
html[data-theme] .workflow-form { padding-left: 12px; }
html[data-theme] .helper-window-form > button[type="submit"] { width: 100%; }
html[data-theme] .workflow-operation { grid-template-columns: 16px minmax(0,1fr); padding: 14px; }
html[data-theme] .workflow-operation > .button { grid-column: 1 / -1; width: 100%; }
html[data-theme] .helper-readiness { grid-template-columns: 1fr; }
html[data-theme] .helper-readiness > span { text-align: left; }
}
.save-menu { max-width: 100%; }
.save-menu summary { cursor: pointer; min-height: 42px; padding: 6px; }
.save-menu[open] .save-menu-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Компактный интерфейс */
@media screen {
html[data-theme] *,
  html[data-theme] *::before,
  html[data-theme] *::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
html[data-theme] .ambient-scene,
  html[data-theme] .ambient-photo,
  html[data-theme] .ambient-shade {
    display: none;
  }
html[data-theme] .boot-main {
    width: auto;
    padding: 0;
  }
html[data-theme] .boot-minimal {
    display: grid;
    gap: 10px;
    place-items: center;
    text-align: center;
    padding: 22px 28px;
    background: #131823;
    border: 1px solid #252f42;
    border-radius: 12px;
  }
html[data-theme] .boot-minimal .brand {
    font-size: 24px;
    letter-spacing: -0.04em;
    color: #ecf1f8;
  }
html[data-theme] .boot-loading-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    color: #9aa7bc;
  }
html[data-theme] .menu-panel-head {
    padding: 4px 6px 10px;
    border-bottom: 1px solid #252f42;
    margin-bottom: 8px;
  }
html[data-theme] .menu-panel-kicker {
    color: #9aa7bc;
    font-size: 10px;
  }
html[data-theme] .menu-panel-nav {
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #252f42;
    background: #0d111a;
  }
html[data-theme] .menu-panel-item {
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 7px;
    color: #e2eaf6;
    background: transparent;
  }
html[data-theme] .menu-panel-item + .menu-panel-item {
    border-top: 1px solid #1d2536;
  }
html[data-theme] .menu-panel-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: inherit;
  }
html[data-theme] .menu-panel-description {
    font-size: 11px;
    color: #8f9db3;
  }
html[data-theme] .menu-panel-index,
  html[data-theme] .menu-panel-arrow {
    color: #7f8ea6;
    font-size: 12px;
  }
html[data-theme] .menu-panel-item[aria-current="page"] {
    background: #1a2742;
    color: #e4eeff;
  }
html[data-theme] .menu-panel-item[aria-current="page"] .menu-panel-index:before {
    background: #4c82f7;
    box-shadow: none;
  }
html[data-theme] .menu-panel-note {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #2b3850;
    background: #131a29;
  }
html[data-theme] .menu-panel-note:after {
    display: none;
  }
html[data-theme] .menu-note-title {
    font-size: 14px;
    margin-bottom: 4px;
  }
html[data-theme] .menu-note-text {
    font-size: 11.5px;
    color: #9aa7bc;
  }
html[data-theme] .menu-panel-actions .button {
    min-height: 34px;
    border-radius: 7px;
    font-size: 12px;
    padding: 6px 10px;
    background: #19202e;
    border-color: #3a4964;
    color: #dce5f4;
  }
html[data-theme] .save-state {
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #131a27;
    border: 1px solid #252f42;
    color: #9dc2ff;
  }
html[data-theme] .save-state:before {
    background: #4c82f7;
  }
html[data-theme] .save-state.dirty {
    background: #271d18;
    border-color: #6b4c39;
    color: #f6c4a4;
  }
html[data-theme] .save-state.dirty:before {
    background: #f29a76;
  }
html[data-theme] .compact-view-copy {
    min-width: 0;
  }
html[data-theme] .compact-view-copy h1 {
    margin: 0 0 2px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f2f5fb;
  }
html[data-theme] .compact-view-copy p {
    margin: 0;
    font-size: 12.5px;
    color: #9aa7bc;
  }
html[data-theme] .compact-view-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
html[data-theme] .today-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 12px 14px;
    margin: 0 0 12px;
  }
html[data-theme] .today-bar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 16px;
    flex: 1 1 420px;
    min-width: 0;
  }
html[data-theme] .today-bar-main .eyebrow {
    flex-basis: 100%;
    margin: 0;
    font-size: 10px;
    color: #8492a8;
  }
html[data-theme] .today-bar-main h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #f3f6fc;
  }
html[data-theme] .today-bar-main .thread-focus {
    flex: 1 1 260px;
    max-width: 440px;
    margin: 0;
    padding: 0;
  }
html[data-theme] .today-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
html[data-theme] .visual-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
  }
html[data-theme] .visual-metric {
    min-height: 0;
    padding: 10px 12px;
    gap: 10px;
    border: 1px solid #252f42;
    border-radius: 9px;
    background: #131823;
    flex-direction: row;
    align-items: center;
  }
html[data-theme] .visual-metric:last-child {
    border-right: 1px solid #252f42;
  }
html[data-theme] .metric-figure,
  html[data-theme] .metric-ring {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
html[data-theme] .metric-figure strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f2f5fb;
  }
html[data-theme] .metric-track {
    stroke: #263145;
  }
html[data-theme] .metric-value {
    stroke: #4c82f7;
  }
html[data-theme] .visual-metric:nth-child(2) .metric-value {
    stroke: #f29a76;
  }
html[data-theme] .metric-copy .metric-label {
    font-size: 12px;
    color: #e6ecf6;
    margin: 0 0 2px;
  }
html[data-theme] .metric-copy > .hint {
    font-size: 11px;
    color: #8f9db3;
    max-width: none;
  }
html[data-theme] .compact-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 8px 12px;
    background: #111622;
    border: 1px solid #252f42;
    border-radius: 9px;
  }
html[data-theme] .layout-two {
    gap: 12px;
    margin-bottom: 12px;
  }
html[data-theme] .panel {
    background: #131823;
    border: 1px solid #252f42;
    border-radius: 10px;
    padding: 13px 15px;
    margin: 0 0 12px;
    box-shadow: none;
  }
html[data-theme] .panel-heading {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #252f42;
    gap: 10px;
  }
html[data-theme] .panel-heading :is(h2, h3) {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.015em;
    color: #f0f4fa;
  }
html[data-theme] h2 {
    font-size: 16px;
    margin: 0 0 8px;
  }
html[data-theme] h3 {
    font-size: 14.5px;
    margin: 8px 0 6px;
  }
html[data-theme] h4 {
    font-size: 13px;
    margin: 6px 0 4px;
  }
html[data-theme] p {
    margin: 0 0 8px;
  }
html[data-theme] .hint {
    font-size: 12px;
    line-height: 1.45;
    color: #9aa7bc;
  }
html[data-theme] .notes-accordion,
  html[data-theme] .questions-accordion,
  html[data-theme] .profile-group,
  html[data-theme] .helper-explanation,
  html[data-theme] .full-week-reader,
  html[data-theme] .week-source-info,
  html[data-theme] .week-note {
    background: #131823;
    border-color: #252f42;
    border-radius: 9px;
    margin: 10px 0;
  }
html[data-theme] :is(.notes-accordion,.questions-accordion,.profile-group,.helper-explanation,.full-week-reader) > summary {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13.5px;
    background: #171e2c;
    color: #e6ecf6;
  }
html[data-theme] .compact-fold {
    margin-top: 8px;
    border: 1px solid #252f42;
    border-radius: 8px;
    background: #101520;
    overflow: hidden;
  }
html[data-theme] .compact-fold > summary {
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #a9c4f5;
    background: #151c2a;
    cursor: pointer;
    user-select: none;
  }
html[data-theme] .compact-fold[open] > summary {
    border-bottom: 1px solid #252f42;
  }
html[data-theme] .compact-fold > :not(summary) {
    padding: 10px 12px;
    margin: 0;
  }
html[data-theme] .button {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 7px;
    border: 1px solid #3a4964;
    background: #19202e;
    color: #e7eef9;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
  }
html[data-theme] .button.primary {
    background: #4c82f7;
    border-color: #5b8ff9;
    color: #ffffff;
  }
html[data-theme] .button.primary:active:not(:disabled) {
    background: #305eb7;
    border-color: #4c82f7;
    color: #ffffff;
  }
html[data-theme] .button.secondary {
    background: #1a2436;
    border-color: #3f5579;
    color: #dce9ff;
  }
html[data-theme] .button.quiet {
    background: #121722;
    border-color: #2b364b;
    color: #c2cfe2;
  }
html[data-theme] .button.danger {
    background: #2c1719;
    border-color: #844248;
    color: #ffb8be;
  }
html[data-theme] .button:disabled {
    background: #151b26;
    color: #7d8ba3;
    border-color: #2a3447;
  }
html[data-theme] .button.has-action-hint {
    flex-direction: row;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
  }
html[data-theme] .button .action-hint {
    display: none;
  }
html[data-theme] .field {
    gap: 4px;
  }
html[data-theme] .field > span {
    font-size: 11.5px;
    color: #b7c4d9;
    font-weight: 600;
  }
html[data-theme] .field :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea),
  html[data-theme] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid #34435d;
    background: #0e131d;
    color: #ecf1f8;
    font-size: 13.5px;
    line-height: 1.4;
    box-shadow: none;
  }
html[data-theme] .field textarea,
  html[data-theme] textarea {
    min-height: 76px;
    line-height: 1.5;
  }
html[data-theme] .check-label {
    padding: 6px 0;
    gap: 8px;
    font-size: 12.5px;
  }
html[data-theme] input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-height: 17px;
    accent-color: #4c82f7;
  }
html[data-theme] .t033-episode-row,
  html[data-theme] .exchange-preview-row,
  html[data-theme] .token-status-row {
    padding: 9px 11px;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid #252f42;
    background: #171e2c;
  }
html[data-theme] .section-launcher {
    margin: 12px 0 0;
    padding: 12px 14px;
    background: #111622;
    border: 1px solid #252f42;
    border-radius: 10px;
  }
html[data-theme] .section-launcher-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 0 0 10px;
  }
html[data-theme] .section-launcher-kicker {
    display: none;
  }
html[data-theme] .section-launcher-title {
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: normal;
    color: #ecf1f8;
  }
html[data-theme] .section-launcher-description {
    max-width: none;
    margin: 0;
    font-size: 12px;
    color: #8f9db3;
  }
html[data-theme] .section-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #252f42;
    border-radius: 8px;
    background: #161c28;
    color: #ecf1f8;
  }
html[data-theme] .section-card-art,
  html[data-theme] .section-card-arrow {
    display: none;
  }
html[data-theme] .section-card-meta {
    margin: 0;
    gap: 6px;
  }
html[data-theme] .section-card-top {
    gap: 6px;
  }
html[data-theme] .section-card-index,
  html[data-theme] .section-card-type,
  html[data-theme] .section-card-count {
    font-size: 10.5px;
    color: #8f9db3;
  }
html[data-theme] .section-card-copy {
    margin: 0;
  }
html[data-theme] .section-card-title {
    max-width: 100%;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #f0f4fa;
  }
html[data-theme] .section-card-description {
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #9aa7bc;
  }
html[data-theme] .day-grid {
    gap: 8px;
    margin-bottom: 12px;
  }
html[data-theme] .day-column {
    padding: 10px 9px;
    border-radius: 9px;
    background: #131823;
    border-color: #252f42;
    min-height: 140px;
  }
html[data-theme] .day-column.is-today {
    border-color: #4c82f7;
    box-shadow: inset 0 2px 0 #4c82f7;
  }
html[data-theme] .today-tag {
    background: #1a2742;
    color: #b5d0ff;
    border: 1px solid #365694;
  }
html[data-theme] .week-block {
    padding: 7px 8px;
    min-height: 0;
    margin: 6px 0;
    border-radius: 7px;
    background: #19202e;
    border-color: #2d394e;
  }
html[data-theme] .task-row,
  html[data-theme] .block-row,
  html[data-theme] .archive-row {
    padding: 9px 0;
    border-color: var(--card-surface);
  }
html[data-theme] .tracker-toolbar {
    padding: 10px 12px;
    border-radius: 9px;
    border-color: #252f42;
    background: #131823;
    margin-bottom: 10px;
  }
html[data-theme] .tracker-summary {
    gap: 10px;
    border: 0;
    margin: 10px 0 12px;
  }
html[data-theme] .tracker-summary-card {
    padding: 12px 14px;
    border: 1px solid #252f42;
    border-radius: 9px;
    background: #131823;
  }
html[data-theme] .tracker-summary-card:last-child {
    border-right: 1px solid #252f42;
  }
html[data-theme] .tracker-summary-card strong {
    font-size: 24px;
    margin: 4px 0;
  }
html[data-theme] .tracker-summary-card:after {
    display: none;
  }
html[data-theme] .tracker-catalog-card,
  html[data-theme] .tracker-log-row {
    padding: 12px 14px;
    border-radius: 9px;
    border-color: #252f42;
    background: #151c29;
  }
html[data-theme] .route-zones {
    gap: 10px;
  }
html[data-theme] .route-zone {
    padding: 12px 14px;
    border-radius: 9px;
    border-color: #252f42;
    background: #131823;
  }
html[data-theme] .journey-node.selected {
    background: #4c82f7;
    color: #ffffff;
    border-color: #5b8ff9;
  }
html[data-theme] .notice {
    padding: 9px 12px;
    margin: 8px 0;
    border-radius: 8px;
    background: #141e30;
    border-color: #2f4568;
    border-left-color: #4c82f7;
  }
html[data-theme] .notice.error {
    background: #28171a;
    border-color: #703940;
    border-left-color: #f07b82;
  }
html[data-theme] .nav-group-label {
    display: block;
    margin: 8px 10px 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #70809b;
    user-select: none;
  }
html[data-theme] .nav-group-label:first-child {
    margin-top: 2px;
  }
html[data-theme] kbd {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid #35445f;
    background: #141a26;
    color: #c7d4ea;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
  }
html[data-theme] .command-trigger {
    gap: 8px;
    border-color: var(--border-subtle);
    background: #131824;
    color: #c4d0e4;
  }
html[data-theme] dialog.command-palette {
    width: min(640px, calc(100vw - 24px));
    max-width: none;
    padding: 0;
    margin: 72px auto auto;
    border-radius: 12px;
    border: 1px solid #384967;
    background: #111622;
    color: #ecf1f8;
    box-shadow: 0 24px 64px #000d;
    overflow: hidden;
  }
html[data-theme] dialog.command-palette::backdrop {
    background: rgba(5, 8, 13, 0.72);
  }
html[data-theme] .palette-shell {
    display: flex;
    flex-direction: column;
  }
html[data-theme] .palette-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #252f42;
    background: #141b29;
  }
html[data-theme] .palette-search {
    flex: 1 1 auto;
    min-height: 36px;
    border: 0;
    background: transparent;
    color: #f3f6fc;
    font-size: 14px;
    padding: 4px 6px;
  }
html[data-theme] .palette-close {
    min-height: 28px;
    padding: 3px 9px;
    font-size: 11px;
  }
html[data-theme] .palette-list {
    max-height: min(56vh, 420px);
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
html[data-theme] .palette-group {
    padding: 7px 10px 3px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7d8da8;
  }
html[data-theme] .palette-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #e4ecf8;
    text-align: left;
    cursor: pointer;
  }
html[data-theme] .palette-item-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
html[data-theme] .palette-item-copy strong {
    font-size: 13px;
    font-weight: 600;
    color: #f0f4fa;
  }
html[data-theme] .palette-item-copy small {
    font-size: 11px;
    color: #8f9db3;
  }
html[data-theme] .palette-item:hover,
  html[data-theme] .palette-item.is-selected {
    background: #1a2742;
    border-color: #365694;
    color: #ffffff;
  }
html[data-theme] .palette-foot {
    margin: 0;
    padding: 7px 12px;
    border-top: 1px solid #222c3e;
    background: #0e131d;
    font-size: 11px;
    color: #8492a8;
  }
html[data-theme] .palette-empty {
    padding: 16px 12px;
    margin: 0;
  }
html[data-theme] .shortcut-group {
    margin-bottom: 12px;
  }
html[data-theme] .shortcut-list {
    margin: 6px 0 0;
    display: grid;
    gap: 6px;
  }
html[data-theme] .shortcut-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    padding: 7px 10px;
    border-radius: 7px;
    border: 1px solid var(--border-subtle);
    background: #161d2b;
  }
html[data-theme] .shortcut-row dt {
    margin: 0;
  }
html[data-theme] .shortcut-row dd {
    margin: 0;
    font-size: 12.5px;
    color: #b7c4d9;
  }
html[data-theme] .ritual-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
  }
html[data-theme] .ritual-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #131823;
    color: #b8c6dc;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
  }
html[data-theme] .day-nav-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px;
    margin: 0 0 8px;
  }
html[data-theme] .day-nav-row .day-picker {
    flex: 1 1 160px;
    min-width: 140px;
  }
html[data-theme] .pacing-summary {
    margin: 0 0 6px;
    font-size: 12px;
    color: #a9b8cf;
  }
html[data-theme] .quick-add-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 10px;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid #2b384f;
    background: #0f141f;
  }
html[data-theme] .quick-add-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
html[data-theme] .quick-add-input {
    flex: 1 1 220px;
    min-width: 0;
  }
html[data-theme] .quick-add-presets {
    display: inline-flex;
    gap: 4px;
  }
html[data-theme] .quick-add-preset {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 11px;
  }
html[data-theme] .quick-add-submit {
    min-height: 34px;
    padding: 6px 12px;
  }
html[data-theme] .quick-add-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-height: 20px;
  }
html[data-theme] .quick-add-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #355084;
    background: #17233b;
    color: #bdd4ff;
    font-size: 11px;
    font-weight: 600;
  }
html[data-theme] .filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
  }
html[data-theme] .filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #2a364c;
    background: #121722;
    color: #b2c0d6;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
  }
html[data-theme] .filter-pill[aria-pressed="true"] {
    background: #1a2742;
    border-color: #4c82f7;
    color: #eaf2ff;
  }
html[data-theme] .sphere-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #64748b;
    flex: 0 0 auto;
  }
html[data-theme] .sphere-dot[data-sphere="religion"] { background: var(--sphere-religion); }
html[data-theme] .sphere-dot[data-sphere="education"] { background: var(--sphere-education); }
html[data-theme] .sphere-dot[data-sphere="sport"] { background: var(--sphere-sport); }
html[data-theme] .sphere-dot[data-sphere="finance"] { background: var(--sphere-finance); }
html[data-theme] .sphere-dot[data-sphere="skills"] { background: var(--sphere-skills); }
html[data-theme] .sphere-dot[data-sphere="health"] { background: var(--sphere-health); }
html[data-theme] .sphere-dot[data-sphere="family"] { background: var(--sphere-family); }
html[data-theme] .task-title-line {
    display: flex;
    align-items: center;
    gap: 7px;
  }
html[data-theme] .priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex: 0 0 8px;
    background: #64748b;
  }
html[data-theme] .priority-dot[data-priority="1"] { background: #f87171; }
html[data-theme] .priority-dot[data-priority="2"] { background: #fbbf24; }
html[data-theme] .priority-dot[data-priority="3"] { background: #60a5fa; }
html[data-theme] .priority-dot[data-priority="4"] { background: #34d399; }
html[data-theme] .priority-dot[data-priority="5"] { background: #94a3b8; }
html[data-theme] .status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-right: 5px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #303d54;
    background: #172030;
    color: #c9d5e8;
  }
html[data-theme] .status-pill.is-done,
  html[data-theme] .status-pill.is-completed {
    background: rgba(52, 211, 153, 0.14);
    border-color: rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
  }
html[data-theme] .status-pill.is-in_progress {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.38);
    color: #bfdbfe;
  }
html[data-theme] .status-pill.is-blocked {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fecaca;
  }
html[data-theme] .status-pill.is-partial,
  html[data-theme] .status-pill.is-deferred {
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.36);
    color: #fde68a;
  }
html[data-theme] .status-pill.is-cancelled {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
  }
html[data-theme] :is(.week-block, .block-row, .goal-card)[data-sphere] {
    border-left-width: 3px;
  }
html[data-theme] :is(.week-block, .block-row, .goal-card)[data-sphere="religion"] { border-left-color: var(--sphere-religion); }
html[data-theme] :is(.week-block, .block-row, .goal-card)[data-sphere="education"] { border-left-color: var(--sphere-education); }
html[data-theme] :is(.week-block, .block-row, .goal-card)[data-sphere="sport"] { border-left-color: var(--sphere-sport); }
html[data-theme] :is(.week-block, .block-row, .goal-card)[data-sphere="finance"] { border-left-color: var(--sphere-finance); }
html[data-theme] :is(.week-block, .block-row, .goal-card)[data-sphere="skills"] { border-left-color: var(--sphere-skills); }
html[data-theme] :is(.week-block, .block-row, .goal-card)[data-sphere="health"] { border-left-color: var(--sphere-health); }
html[data-theme] :is(.week-block, .block-row, .goal-card)[data-sphere="family"] { border-left-color: var(--sphere-family); }
html[data-theme] .week-block[data-sphere="religion"] { background: rgba(56, 189, 248, 0.10); }
html[data-theme] .week-block[data-sphere="education"] { background: rgba(129, 140, 248, 0.11); }
html[data-theme] .week-block[data-sphere="sport"] { background: rgba(52, 211, 153, 0.10); }
html[data-theme] .week-block[data-sphere="finance"] { background: rgba(251, 191, 36, 0.10); }
html[data-theme] .week-block[data-sphere="skills"] { background: rgba(167, 139, 250, 0.11); }
html[data-theme] .week-block[data-sphere="health"] { background: rgba(45, 212, 191, 0.10); }
html[data-theme] .week-block[data-sphere="family"] { background: rgba(244, 114, 182, 0.10); }
html[data-theme] .time-footprint-block[data-sphere="religion"] { fill: var(--sphere-religion); }
html[data-theme] .time-footprint-block[data-sphere="education"] { fill: var(--sphere-education); }
html[data-theme] .time-footprint-block[data-sphere="sport"] { fill: var(--sphere-sport); }
html[data-theme] .time-footprint-block[data-sphere="finance"] { fill: var(--sphere-finance); }
html[data-theme] .time-footprint-block[data-sphere="skills"] { fill: var(--sphere-skills); }
html[data-theme] .time-footprint-block[data-sphere="health"] { fill: var(--sphere-health); }
html[data-theme] .time-footprint-block[data-sphere="family"] { fill: var(--sphere-family); }
html[data-theme] .time-footprint-now {
    stroke: #f97316;
    stroke-width: 2;
  }
html[data-theme] .time-footprint-now-dot {
    fill: #f97316;
  }
html[data-theme] .goal-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0;
  }
html[data-theme] .goal-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: #9aa7bc;
  }
html[data-theme] .goal-progress-head strong {
    color: #e6eefb;
    font-size: 11.5px;
  }
html[data-theme] .goal-progress-track {
    height: 4px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
html[data-theme] .goal-progress-track.is-empty {
    background: transparent;
    border: 1px dashed rgba(148, 163, 184, 0.25);
  }
html[data-theme] .goal-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4c82f7, #60a5fa);
  }
html[data-theme][data-density="comfortable"] .panel {
    padding: 18px 20px;
    margin-bottom: 16px;
  }
html[data-theme][data-density="comfortable"] .task-row,
  html[data-theme][data-density="comfortable"] .block-row {
    padding: 13px 0;
  }
html[data-theme] .compact-fold {
    background: var(--fold-surface);
    border-color: var(--border-subtle);
    border-radius: 10px;
  }
html[data-theme] .compact-fold > summary {
    padding: 9px 12px;
    font-size: 12.5px;
    background: #222c40;
    color: #c2d6fa;
  }
html[data-theme] .compact-fold > summary:hover {
    background: #28344c;
    color: #ffffff;
  }
html[data-theme] .field :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea),
  html[data-theme] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    background: #171e2c;
    border-color: #3a4a66;
    color: #f1f5f9;
  }
html[data-theme] .quick-add-form {
    background: #192131;
    border-color: #344460;
  }
html[data-theme] .button.primary {
    background: #3568bd;
    border-color: #639cf7;
    color: #ffffff;
  }
html[data-theme] .nav-spheres {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-subtle);
  }
html[data-theme] .nav-spheres-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
html[data-theme] .nav-sphere-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #bdcae0;
    font-size: 12.5px;
    font-weight: 550;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
html[data-theme] .nav-sphere-item.active {
    background: #223454;
    color: #eef5ff;
    border-color: #4a76c7;
    box-shadow: inset 3px 0 0 #4e8df5;
  }
html[data-theme] .today-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    flex-basis: 100%;
  }
html[data-theme] .day-mode-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: #161d2b;
    border: 1px solid var(--border-subtle);
  }
html[data-theme] .day-mode-btn {
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #a6b5cc;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
  }
html[data-theme] .day-mode-btn[data-day-mode="green"][aria-pressed="true"] {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
  }
html[data-theme] .day-mode-btn[data-day-mode="yellow"][aria-pressed="true"] {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.48);
    color: #fde68a;
  }
html[data-theme] .day-mode-btn[data-day-mode="red"][aria-pressed="true"] {
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
  }
html[data-theme] .day-mode-guide {
    padding: 11px 14px;
    margin: 0 0 10px;
    border-left-width: 3px;
  }
html[data-theme] .day-mode-guide[data-day-mode="yellow"] {
    border-left-color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
  }
html[data-theme] .day-mode-guide[data-day-mode="red"] {
    border-left-color: #f87171;
    background: rgba(248, 113, 113, 0.08);
  }
html[data-theme] .day-mode-steps {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: #d6e1f0;
  }
html[data-theme] .direction-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
html[data-theme] .direction-integration-card {
    margin-top: 12px;
    border-left-width: 3px;
    border-left-color: #34d399;
  }
html[data-theme] .direction-integration-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }
html[data-theme] .direction-integration-head h3 {
    margin: 0;
    font-size: 15px;
  }
html[data-theme] .integration-status-chip {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.36);
    color: #a7f3d0;
  }
html[data-theme] .direction-integration-list {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
  }
html[data-theme] .direction-integration-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    padding: 9px 11px;
    border-radius: 9px;
    border: 1px solid var(--border-subtle);
    background: #242f43;
  }
html[data-theme] .direction-integration-copy p {
    margin: 2px 0 0;
  }
html[data-theme] .direction-integration-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 4px;
  }
html[data-theme] .rel-ext-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
html[data-theme] .rel-hero {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #304754;
    border-left: 3px solid #34d399;
    background: #1e2836;
  }
html[data-theme] .rel-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 12px;
  }
html[data-theme] .rel-next-pill {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 650;
    color: #e6f7f0;
    line-height: 1.35;
  }
html[data-theme] .rel-hero-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
html[data-theme] .rel-hero-controls .field {
    min-width: 148px;
    margin: 0;
  }
html[data-theme] .rel-prayer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }
html[data-theme] .rel-prayer-tile {
    min-height: 44px;
    padding: 8px 10px;
    text-align: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 9px;
    white-space: normal;
    line-height: 1.3;
  }
html[data-theme] .rel-prayer-tile.is-next {
    border-color: #34d399;
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35);
    background: #1c3336;
    color: #dcfce7;
  }
html[data-theme] .rel-prayer-tile.is-done {
    background: #1b4d3e;
    border-color: #34d399;
    color: #ecfdf5;
  }
html[data-theme] .rel-hero-actions {
    margin-top: 4px;
  }
html[data-theme] .rel-sleep-hint {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #182230;
    border: 1px solid #2b3a4f;
  }
html[data-theme] .rel-subhead {
    margin: 10px 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #b7c8df;
  }
html[data-theme] .rel-quran-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #1a2333;
    border: 1px solid #2d3e54;
    margin-bottom: 10px;
  }
html[data-theme] .rel-quran-banner p {
    margin: 3px 0 0;
  }
html[data-theme] .rel-coach {
    padding: 11px 12px;
    border-radius: 10px;
    background: #192232;
    border: 1px solid #2c3d54;
    margin-bottom: 10px;
  }
html[data-theme] .rel-coach > .rel-subhead {
    margin-top: 0;
  }
html[data-theme] .rel-coach-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }
html[data-theme] .rel-coach-mode-btn {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
  }
html[data-theme] .rel-coach-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 0 8px;
  }
html[data-theme] .rel-coach-step-title {
    font-size: 13.5px;
    color: #ecf3fc;
    line-height: 1.35;
  }
html[data-theme] .rel-coach-timer {
    padding: 3px 10px;
    border-radius: 999px;
    background: #152b2a;
    border: 1px solid #2f6c5a;
    color: #a7f3d0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
  }
html[data-theme] .rel-coach-steps {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
html[data-theme] .rel-coach-step-btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 12px;
  }
html[data-theme] .rel-coach-step.is-current .rel-coach-step-btn {
    border-color: #34d399;
    background: #1c3336;
    color: #ecfdf5;
  }
html[data-theme] .rel-coach-step.is-done .rel-coach-step-btn {
    color: #86efac;
  }
html[data-theme] .rel-teacher-queue {
    margin-bottom: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #1b2434;
    border: 1px solid #2a394e;
  }
html[data-theme] .rel-teacher-queue > .rel-subhead {
    margin-top: 0;
  }
html[data-theme] .rel-teacher-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid #263348;
    font-size: 12.5px;
  }
html[data-theme] .rel-hadith-box {
    padding: 10px 12px;
    border-radius: 9px;
    background: #1b2535;
    border: 1px solid #2f425b;
    border-left: 3px solid #60a5fa;
    margin: 8px 0 10px;
  }
html[data-theme] .rel-hadith-box > .rel-subhead {
    margin-top: 0;
  }
html[data-theme] .rel-hadith-quote {
    margin: 4px 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: #edf3fc;
  }
html[data-theme] .rel-quick-chips {
    margin: 6px 0 10px;
  }
html[data-theme] .rel-qada-card {
    border-top: 2px solid #60a5fa;
  }
html[data-theme] .rel-qada-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
  }
html[data-theme] .rel-qada-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #1b2434;
    border: 1px solid #2c3b52;
    min-width: 0;
  }
html[data-theme] .rel-qada-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 82px;
  }
html[data-theme] .rel-qada-label strong {
    font-size: 13.5px;
    white-space: nowrap;
  }
html[data-theme] .rel-qada-count {
    font-size: 12px;
    color: #9bb2cf;
  }
html[data-theme] .rel-qada-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
html[data-theme] .rel-qada-btns .button {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 12px;
  }
html[data-theme] .rel-taubah-card {
    border-top: 2px solid #34d399;
  }
html[data-theme] .rel-taubah-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 8px 0;
  }
html[data-theme] .rel-taubah-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
  }
html[data-theme] .rel-taubah-form input[type="text"] {
    flex: 1 1 220px;
    min-width: 0;
  }
html[data-theme] .rel-taubah-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
  }
html[data-theme] .rel-taubah-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1a2333;
    border: 1px solid #2d3e55;
  }
html[data-theme] .rel-taubah-text {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    transition: none;
  }
html[data-theme] .rel-taubah-list.is-blurred .rel-taubah-text {
    filter: blur(6px);
    user-select: none;
  }
html[data-theme] .rel-calm-note,
  html[data-theme] .rel-calm-done {
    margin: 4px 0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.4;
  }
html[data-theme] .rel-calm-note {
    background: #1a2636;
    border: 1px solid #355276;
    color: #c5daf4;
  }
html[data-theme] .rel-calm-done {
    background: #152e2a;
    border: 1px solid #2c6d5a;
    color: #bbf7d0;
  }
html[data-theme] .rel-istighfar-box {
    padding: 11px 12px;
    border-radius: 10px;
    background: #17242b;
    border: 1px solid #2a4c4b;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
html[data-theme] .rel-dua-item strong {
    display: block;
    font-size: 12.5px;
    color: #a7f3d0;
    margin-bottom: 3px;
  }
html[data-theme] .rel-arabic {
    margin: 2px 0;
    font-size: 17px;
    line-height: 1.7;
    color: #f4f9f6;
    direction: rtl;
    text-align: right;
  }
html[data-theme] .rel-translit {
    margin: 2px 0;
    font-size: 13px;
    font-style: italic;
    color: #d6e4f2;
  }
html[data-theme] .rel-review-queue,
  html[data-theme] .rel-qada-extra,
  html[data-theme] .rel-replacement-box {
    margin: 8px 0;
    padding: 9px 11px;
    border-radius: 9px;
    background: #1a2333;
    border: 1px solid #2b3c52;
  }
html[data-theme] .rel-review-queue > .rel-subhead,
  html[data-theme] .rel-replacement-box > .rel-subhead {
    margin-top: 0;
  }
html[data-theme] .rel-qada-fast-row {
    margin-top: 8px;
    border-color: #2f5b52;
  }
html[data-theme] .rel-cond-list p {
    margin: 4px 0;
  }
html[data-theme] .rel-deep-bench {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #2f4356;
    border-top: 2px solid #34d399;
    background: var(--paper);
  }
html[data-theme] .rel-deep-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a374c;
  }
html[data-theme] .rel-deep-tab-btn {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
  }
html[data-theme] .rel-adhkar-grid,
  html[data-theme] .rel-tajwid-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 12px;
  }
html[data-theme] .rel-adhkar-card,
  html[data-theme] .rel-tajwid-card,
  html[data-theme] .rel-surah-card,
  html[data-theme] .rel-subpanel {
    padding: 11px 12px;
    border-radius: 9px;
    background: #1a2333;
    border: 1px solid #2b3c52;
    min-width: 0;
  }
html[data-theme] .rel-adhkar-card.is-done,
  html[data-theme] .rel-tajwid-card.is-done,
  html[data-theme] .rel-surah-card.is-current {
    border-color: #34d399;
    background: #182c2c;
  }
html[data-theme] .rel-adhkar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
  }
html[data-theme] .rel-tasbih-btn {
    min-width: 96px;
    min-height: 32px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 700;
  }
html[data-theme] .rel-surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 8px;
    margin: 8px 0 12px;
  }
html[data-theme] .rel-surah-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
html[data-theme] .rel-tajwid-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
html[data-theme] .rel-tajwid-card > p {
    margin: 0;
  }
html[data-theme] .rel-rotation-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }
html[data-theme] .rel-rot-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 7px 6px;
    border-radius: 8px;
    background: #16202e;
    border: 1px solid #29384d;
    text-align: center;
    font-size: 11px;
  }
html[data-theme] .rel-rot-cell.is-today {
    border-color: #34d399;
    background: #18302f;
    color: #dcfce7;
  }
html[data-theme] .today-religion-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin: 12px 0;
    padding: 11px 14px;
    border-left: 3px solid #34d399;
  }
html[data-theme] .today-religion-copy p {
    margin: 3px 0 0;
  }
html[data-theme] .sport-hero {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #2f435a;
    border-left: 3px solid #f59e0b;
    background: #1e2738;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
html[data-theme] .sport-hero-intro p,
  html[data-theme] .sport-smart-out p,
  html[data-theme] .sport-pace-out p,
  html[data-theme] .sport-coach-gate p,
  html[data-theme] .sport-pc-rule p {
    margin: 3px 0;
  }
html[data-theme] .sport-stat-strip,
  html[data-theme] .sport-bench-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
html[data-theme] .sport-stat-strip.is-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
html[data-theme] .sport-stat-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #172030;
    border: 1px solid #2b3c54;
    min-width: 0;
  }
html[data-theme] .sport-stat-lbl {
    font-size: 11px;
    color: #9bb2cf;
  }
html[data-theme] .sport-stat-val {
    font-size: 14px;
    color: #f1f5f9;
  }
html[data-theme] .sport-stat-sub {
    font-size: 11px;
    color: #93a7c2;
    line-height: 1.3;
  }
html[data-theme] .sport-rhythm-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }
html[data-theme] .sport-rhythm-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 8px;
    background: #161f2f;
    border: 1px solid #28364d;
    font-size: 11.5px;
    text-align: center;
  }
html[data-theme] .sport-rhythm-day.is-active {
    background: #182f2d;
    border-color: #2f7d67;
    color: #d1fae5;
  }
html[data-theme] .sport-rhythm-day.is-today {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
  }
html[data-theme] .sport-rhythm-wd,
  html[data-theme] .sport-rhythm-fam {
    font-size: 10.5px;
    opacity: 0.85;
  }
html[data-theme] .sport-hero-tools {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 10px;
  }
html[data-theme] .sport-smart-box,
  html[data-theme] .sport-timer-box,
  html[data-theme] .sport-pace-box,
  html[data-theme] .sport-coach-gate,
  html[data-theme] .sport-practice-card-view {
    padding: 11px 12px;
    border-radius: 10px;
    background: #172030;
    border: 1px solid #2c3e56;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
html[data-theme] .sport-smart-controls {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
html[data-theme] .sport-smart-out {
    padding: 8px 10px;
    border-radius: 8px;
    background: #131b29;
    border: 1px solid #26364c;
  }
html[data-theme] .sport-rec-badge.is-full,
  html[data-theme] .sport-badge.is-done {
    background: #15332b;
    border-color: #2f7d67;
    color: #bbf7d0;
  }
html[data-theme] .sport-rec-badge.is-home {
    background: #2b2717;
    border-color: #8a6d24;
    color: #fde68a;
  }
html[data-theme] .sport-rec-badge.is-rest {
    background: #2c1d24;
    border-color: #7c3a4c;
    color: #fecdd3;
  }
html[data-theme] .sport-timer-clock {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f8fafc;
    line-height: 1.1;
  }
html[data-theme] .sport-card-gym { border-top: 2px solid #f59e0b; }
html[data-theme] .sport-card-run { border-top: 2px solid #38bdf8; }
html[data-theme] .sport-card-swim { border-top: 2px solid #2dd4bf; }
html[data-theme] .sport-card-ma { border-top: 2px solid #f472b6; }
html[data-theme] .sport-visit-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
html[data-theme] .sport-visit-seg {
    padding: 5px 6px;
    border-radius: 7px;
    background: #161f2f;
    border: 1px solid #28374e;
    font-size: 11px;
    text-align: center;
    color: #9bb2cf;
  }
html[data-theme] .sport-visit-seg.is-current {
    background: #2a2415;
    border-color: #d97706;
    color: #fde68a;
    font-weight: 600;
  }
html[data-theme] .sport-visit-seg.is-done {
    background: #15312a;
    border-color: #34d399;
    color: #bbf7d0;
  }
html[data-theme] .sport-gym-sheet {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
html[data-theme] .sport-gym-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    background: #172030;
    border: 1px solid #2a3b52;
    color: #edf3fc;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
  }
html[data-theme] .sport-gym-row:hover {
    border-color: #f59e0b;
    background: #1d293d;
  }
html[data-theme] .sport-gym-row-main {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }
html[data-theme] .sport-gym-row-meta {
    font-size: 11.5px;
    color: #a9bed8;
  }
html[data-theme] .sport-ladder-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
html[data-theme] .sport-ladder-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 8px;
    border-radius: 8px;
    background: #161f2f;
    border: 1px solid #29384e;
    font-size: 12px;
  }
html[data-theme] .sport-ladder-tile.is-done {
    background: #15312a;
    border-color: #34d399;
  }
html[data-theme] .sport-ladder-tile.is-active {
    background: #182a42;
    border-color: #60a5fa;
  }
html[data-theme] .sport-ladder-meta,
  html[data-theme] .sport-ladder-st {
    font-size: 11px;
    color: #9bb2cf;
  }
html[data-theme] .sport-pace-controls,
  html[data-theme] .sport-pc-rules,
  html[data-theme] .sport-dim-grid,
  html[data-theme] .sport-gm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
html[data-theme] .sport-swim-step {
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 11.5px;
    background: #161f2f;
    border: 1px solid #28374d;
    color: #a2b6cf;
  }
html[data-theme] .sport-swim-step.is-done {
    background: #15312a;
    border-color: #34d399;
    color: #bbf7d0;
  }
html[data-theme] .sport-swim-step.is-next {
    background: #172b3d;
    border-color: #38bdf8;
    color: #e0f2fe;
    font-weight: 600;
  }
html[data-theme] .sport-ma-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
html[data-theme] .sport-dim-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 7px;
    background: #161f2f;
    border: 1px solid #29384e;
    font-size: 11.5px;
  }
html[data-theme] .sport-dim-item.is-practiced {
    border-color: #60a5fa;
    background: #18283e;
  }
html[data-theme] .sport-dim-item.is-stable {
    border-color: #34d399;
    background: #153029;
  }
html[data-theme] .sport-dim-lbl {
    color: #9bb2cf;
    font-size: 11px;
  }
html[data-theme] .sport-mini-list {
    margin: 4px 0 0;
    padding-left: 16px;
    font-size: 12px;
    color: #b4c6dc;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
html[data-theme] .sport-bm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
html[data-theme] .sport-pb-quickbar {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #1b2434;
    border: 1px solid #2e4058;
  }
html[data-theme] .sport-pb-quickcopy {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
html[data-theme] .sport-pc-steps {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
  }
html[data-theme] .sport-pc-rule {
    padding: 8px 10px;
    border-radius: 8px;
    background: #131b29;
    border: 1px solid #28374d;
    font-size: 12.5px;
  }
html[data-theme] .sport-pc-rule.is-relief {
    border-left: 3px solid #34d399;
  }
html[data-theme] .sport-pc-rule.is-coach {
    border-left: 3px solid #f59e0b;
  }
html[data-theme] .sport-pb-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    gap: 8px 12px;
    align-items: end;
  }
html[data-theme] .sport-pb-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
  }
html[data-theme] .sport-pb-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #172030;
    border: 1px solid #2a3b52;
  }
html[data-theme] .sport-pb-info p {
    margin: 2px 0 0;
    font-size: 12px;
  }
html[data-theme] .sport-rotation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
html[data-theme] .sport-rot-week {
    padding: 9px 10px;
    border-radius: 9px;
    background: #172030;
    border: 1px solid #2a3b52;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
html[data-theme] .sport-rot-week .button {
    width: 100%;
    justify-content: flex-start;
    font-size: 12px;
  }
html[data-theme] .sport-acwr-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #162030;
    border: 1px solid #2a3b52;
  }
html[data-theme] .sport-badge.is-warn {
    background: #332515;
    border-color: #d97706;
    color: #fde68a;
  }
html[data-theme] .sport-plate-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0;
  }
html[data-theme] .sport-plate-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12.5px;
    border: 2px solid #475569;
    background: #1e293b;
    color: #f8fafc;
  }
html[data-theme] .sport-plate-chip.is-p25 { background: #5a1c26; border-color: #ef4444; color: #fee2e2; }
html[data-theme] .sport-plate-chip.is-p20 { background: #1a3358; border-color: #3b82f6; color: #dbeafe; }
html[data-theme] .sport-plate-chip.is-p15 { background: #4a3712; border-color: #f59e0b; color: #fef3c7; }
html[data-theme] .sport-plate-chip.is-p10 { background: #143b2c; border-color: #10b981; color: #d1fae5; }
html[data-theme] .sport-plate-chip.is-p5 { background: #2c374b; border-color: #cbd5e1; color: #f8fafc; }
html[data-theme] .sport-plate-chip.is-p2_5 { background: #362252; border-color: #a78bfa; color: #ede9fe; }
html[data-theme] .sport-shoes-box {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #26354c;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
html[data-theme] .sport-shoe-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #131b29;
    border: 1px solid #26364c;
  }
html[data-theme] .sport-shoe-info {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
html[data-theme] .sport-combo-stage {
    padding: 18px 16px;
    border-radius: 10px;
    background: #131b2a;
    border: 1px solid #355078;
    border-left: 4px solid #f472b6;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #f8fafc;
    min-height: 76px;
    display: flex;
    align-items: center;
  }
html[data-theme] .sport-app-card.is-linked {
    border-color: #34d399;
    background: #162929;
  }
html[data-theme] .sport-app-card.is-installed {
    border-color: #60a5fa;
  }
html[data-theme] .sport-app-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
  }
html[data-theme] .sport-app-foot select {
    flex: 1 1 160px;
    min-width: 0;
  }
html[data-theme] .fin-hero {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #2b444c;
    border-left: 3px solid #10b981;
    background: #1d2736;
    display: flex;
    flex-direction: column;
    gap: 11px;
  }
html[data-theme] .fin-alloc-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
html[data-theme] .fin-alloc-bar {
    display: flex;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #131b29;
    border: 1px solid #28384e;
  }
html[data-theme] .fin-alloc-seg {
    height: 100%;
    transition: none;
  }
html[data-theme] .fin-alloc-seg.is-res { background: #f59e0b; }
html[data-theme] .fin-alloc-seg.is-buck { background: #38bdf8; }
html[data-theme] .fin-alloc-seg.is-free { background: #10b981; }
html[data-theme] .fin-warnings {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
html[data-theme] .fin-warnings p {
    margin: 0;
  }
html[data-theme] .fin-card-budget { border-top: 2px solid #10b981; }
html[data-theme] .fin-card-reserves { border-top: 2px solid #f59e0b; }
html[data-theme] .fin-card-shifts { border-top: 2px solid #38bdf8; }
html[data-theme] .fin-card-ledger { border-top: 2px solid #a78bfa; }
html[data-theme] .fin-env-list,
  html[data-theme] .fin-list-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
html[data-theme] .fin-env-row,
  html[data-theme] .fin-bucket-row,
  html[data-theme] .fin-shift-row,
  html[data-theme] .fin-led-row {
    padding: 8px 10px;
    border-radius: 8px;
    background: #172030;
    border: 1px solid #2a3b52;
    font-size: 12.5px;
  }
html[data-theme] .fin-env-row.is-over {
    border-color: #ef4444;
    background: #2b1a22;
  }
html[data-theme] .fin-env-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
html[data-theme] .fin-env-val {
    font-size: 11.5px;
    color: #9bb2cf;
  }
html[data-theme] .fin-bucket-row,
  html[data-theme] .fin-shift-row,
  html[data-theme] .fin-led-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
html[data-theme] .fin-amt-in { color: #34d399; white-space: nowrap; }
html[data-theme] .fin-amt-out { color: #fca5a5; white-space: nowrap; }
html[data-theme] .fin-deep-bench {
    border-top-color: #10b981;
  }
html[data-theme] .sk-hero {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #353f5e;
    border-left: 3px solid #818cf8;
    background: #1d2638;
    display: flex;
    flex-direction: column;
    gap: 11px;
  }
html[data-theme] .sk-due-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #272219;
    border: 1px solid #785521;
    color: #fde68a;
    font-size: 12.5px;
  }
html[data-theme] .sk-card-mastery { border-top: 2px solid #818cf8; }
html[data-theme] .sk-card-digital { border-top: 2px solid #f59e0b; }
html[data-theme] .sk-card-typing { border-top: 2px solid #38bdf8; }
html[data-theme] .sk-card-games { border-top: 2px solid #10b981; }
html[data-theme] .sk-active-box {
    padding: 10px 12px;
    border-radius: 9px;
    background: #172030;
    border: 1px solid #2b3d57;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
html[data-theme] .sk-active-box p {
    margin: 0;
  }
html[data-theme] .sk-ind-grid,
  html[data-theme] .sk-proto-grid,
  html[data-theme] .sk-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
html[data-theme] .sk-ind-chip,
  html[data-theme] .sk-proto-chip,
  html[data-theme] .sk-matrix-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: #131b29;
    border: 1px solid #27364c;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    font-size: 12px;
  }
html[data-theme] .sk-matrix-wrap {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 8px;
  }
html[data-theme] .sk-matrix-item.is-active {
    border-color: #818cf8;
    background: #1c243d;
  }
html[data-theme] .sk-matrix-item.is-locked {
    border-style: dashed;
    opacity: 0.88;
  }
html[data-theme] .sk-typ-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
html[data-theme] .sk-typ-chip {
    padding: 8px 10px;
    border-radius: 8px;
    background: #172030;
    border: 1px solid #2b3d55;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
  }
html[data-theme] .sk-typ-chip.is-ok {
    border-color: #10b981;
    background: #142825;
  }
html[data-theme] .sk-typ-chip.is-warn {
    border-color: #f59e0b;
    background: #2b2116;
  }
html[data-theme] .sk-drill-box {
    padding: 10px 12px;
    border-radius: 9px;
    background: #151e2e;
    border: 1px solid #293c57;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
html[data-theme] .sk-drill-prompt {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #101724;
    border: 1px solid #2b4260;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #e2ecf8;
    user-select: none;
  }
html[data-theme] .sk-voice-timer {
    padding: 14px 16px;
    border-radius: 10px;
    background: #121a28;
    border: 1px solid #354c6e;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    color: #e0e7ff;
    font-variant-numeric: tabular-nums;
  }
html[data-theme] .fin-bucket-row.is-done {
    border-color: #10b981;
    background: #152826;
  }
html[data-theme] .sk-deep-bench {
    border-top-color: #818cf8;
  }
html[data-theme] .sk-studio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #141c2b;
    border: 1px solid #283852;
  }
html[data-theme] .sk-studio-pills .button {
    font-size: 11.5px;
    padding: 4px 9px;
    min-height: 28px;
  }
html[data-theme] .sk-studio-head {
    padding: 12px 14px;
    border-radius: 10px;
    background: #172031;
    border: 1px solid #2e4160;
    border-left: 3px solid #818cf8;
  }
html[data-theme] .sk-studio-head h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #f1f5f9;
  }
html[data-theme] .sk-studio-head p {
    margin: 3px 0;
  }
html[data-theme] .sk-drill-card {
    padding: 9px 11px;
    border-radius: 8px;
    background: #131b29;
    border: 1px solid #27364c;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
  }
html[data-theme] .sk-drill-card p {
    margin: 0;
  }
html[data-theme] .sk-ai-tasks {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
  }
html[data-theme] .sk-lab-tool audio {
    width: 100%;
    height: 36px;
  }
html[data-theme] .sk-lab-host,
  html[data-theme] .sk-lab-sections,
  html[data-theme] .sk-lab-fold-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
html[data-theme] .sk-lab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    min-width: 0;
  }
html[data-theme] .sk-lab-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
    min-width: 0;
  }
html[data-theme] .sk-lab-card {
    padding: 10px 12px;
    border-radius: 9px;
    background: #131b29;
    border: 1px solid #27364c;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    color: #e2ecf8;
  }
html[data-theme] .sk-lab-card h4,
  html[data-theme] .sk-lab-card h5 {
    margin: 0;
    font-size: 13.5px;
    color: #f1f5f9;
  }
html[data-theme] .sk-lab-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
  }
html[data-theme] .sk-lab-kpi {
    padding: 8px 10px;
    border-radius: 8px;
    background: #172030;
    border: 1px solid #2b3d55;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 12px;
  }
html[data-theme] .sk-lab-checklist {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
  }
html[data-theme] .sk-lab-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #131b29;
    border: 1px solid #27364c;
    font-size: 12.5px;
    line-height: 1.4;
    cursor: pointer;
    min-width: 0;
    color: #e2ecf8;
  }
html[data-theme] .sk-lab-check-row input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 2px;
  }
html[data-theme] .sk-lab-check-row.is-done {
    border-color: #10b981;
    background: #142825;
    color: #d1fae5;
  }
html[data-theme] .sk-lab-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    background: #233046;
    border: 1px solid #354967;
    color: #dbeafe;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
html[data-theme] .sk-lab-pill.is-ok { background: #15332b; border-color: #2f7d67; color: #bbf7d0; }
html[data-theme] .sk-lab-pill.is-warn { background: #2b2717; border-color: #8a6d24; color: #fde68a; }
html[data-theme] .sk-lab-pill.is-err { background: #2c1d24; border-color: #7c3a4c; color: #fecdd3; }
html[data-theme] .sk-lab-pill.is-accent { background: #1c243d; border-color: #818cf8; color: #e0e7ff; }
html[data-theme] .sk-lab-rubric {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }
html[data-theme] .sk-lab-rubric-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 210px);
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #131b29;
    border: 1px solid #27364c;
    font-size: 12.5px;
    min-width: 0;
  }
html[data-theme] .sk-lab-rubric-score {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #c7d2fe;
  }
html[data-theme] .sk-lab-timer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #121a28;
    border: 1px solid #354c6e;
    min-width: 0;
  }
html[data-theme] .sk-lab-timer-clock {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e0e7ff;
  }
html[data-theme] .sk-lab-timer-phases {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
html[data-theme] .sk-lab-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #27364c;
    border-radius: 8px;
    background: #101724;
  }
html[data-theme] .sk-lab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }
html[data-theme] .sk-lab-table th,
  html[data-theme] .sk-lab-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #212e42;
    overflow-wrap: anywhere;
    vertical-align: top;
  }
html[data-theme] .sk-lab-table th {
    background: #172030;
    color: #cbd5e1;
    font-weight: 600;
  }
html[data-theme] .sk-lab-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }
html[data-theme] .sk-lab-entry-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #131b29;
    border: 1px solid #27364c;
    font-size: 12.5px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
html[data-theme] .sk-lab-banner {
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid #354967;
    border-left: 3px solid #818cf8;
    background: #141c2b;
    color: #e2ecf8;
    font-size: 12.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
html[data-theme] .sk-lab-banner.is-warn { background: #272219; border-color: #785521; border-left-color: #f59e0b; color: #fde68a; }
html[data-theme] .sk-lab-banner.is-err { background: #2b1a22; border-color: #7c3a4c; border-left-color: #ef4444; color: #fecdd3; }
html[data-theme] .sk-lab-banner.is-ok { background: #142825; border-color: #2f7d67; border-left-color: #10b981; color: #bbf7d0; }
html[data-theme] .sk-lab-divider {
    height: 1px;
    border: 0;
    margin: 4px 0;
    background: #27364c;
  }
html:root[data-theme="light"] .compact-fold > summary,
  html:root[data-theme="light"] :is(.notes-accordion,.questions-accordion,.profile-group,.helper-explanation,.full-week-reader) > summary {
    background: #e9efe7;
    color: #1c3d35;
  }
html:root[data-theme="light"] .button,
  html:root[data-theme="light"] .filter-pill,
  html:root[data-theme="light"] .ritual-pill,
  html:root[data-theme="light"] .command-trigger {
    background: #f8faf7;
    border-color: #c5d2c5;
    color: #1c3b34;
  }
html:root[data-theme="light"] .button.primary {
    background: #226355;
    border-color: #1c5347;
    color: #ffffff;
  }
html:root[data-theme="light"] .button.primary:hover {
    background: #1a5044;
  }
html:root[data-theme="light"] .field :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea),
  html:root[data-theme="light"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    background: #ffffff;
    border-color: #bfd0c2;
    color: #1b342e;
  }
html:root[data-theme="light"] .hint,
  html:root[data-theme="light"] .field > span,
  html:root[data-theme="light"] .section-card-description {
    color: #556a63;
  }
html:root[data-theme="light"] .save-state {
    background: #e9f2ec;
    border-color: #bfd5c7;
    color: #1e5245;
  }
html:root[data-theme="light"] .palette-item,
  html:root[data-theme="light"] .palette-item-copy strong,
  html:root[data-theme="light"] .menu-panel-item {
    color: #1b342e;
  }
html:root[data-theme="light"] .palette-item.is-selected,
  html:root[data-theme="light"] .palette-item:hover {
    background: #e4efe8;
    border-color: #8fb8a6;
    color: #12332c;
  }
html:root[data-theme="light"] .rel-hero {
    background: #ffffff;
    border-color: #c8d8ce;
    border-left-color: #226355;
  }
html:root[data-theme="light"] .rel-next-pill,
  html:root[data-theme="light"] .rel-coach-step-title,
  html:root[data-theme="light"] .rel-hadith-quote,
  html:root[data-theme="light"] .rel-arabic {
    color: #16362e;
  }
html:root[data-theme="light"] .rel-subhead,
  html:root[data-theme="light"] .rel-qada-count,
  html:root[data-theme="light"] .rel-translit {
    color: #3d5a51;
  }
html:root[data-theme="light"] .rel-sleep-hint,
  html:root[data-theme="light"] .rel-quran-banner,
  html:root[data-theme="light"] .rel-coach,
  html:root[data-theme="light"] .rel-teacher-queue,
  html:root[data-theme="light"] .rel-hadith-box,
  html:root[data-theme="light"] .rel-qada-row,
  html:root[data-theme="light"] .rel-taubah-item,
  html:root[data-theme="light"] .rel-istighfar-box {
    background: #f5f8f4;
    border-color: #d2ded5;
    color: #1b342e;
  }
html:root[data-theme="light"] .rel-prayer-tile.is-next {
    background: #e6f4ee;
    border-color: #226355;
    color: #143b31;
  }
html:root[data-theme="light"] .rel-prayer-tile.is-done {
    background: #226355;
    border-color: #1a5044;
    color: #ffffff;
  }
html:root[data-theme="light"] .rel-coach-timer,
  html:root[data-theme="light"] .rel-calm-done {
    background: #e4f3ec;
    border-color: #98c7b3;
    color: #16493c;
  }
html:root[data-theme="light"] .rel-dua-item strong {
    color: #1d5a4c;
  }
html:root[data-theme="light"] .rel-calm-note {
    background: #edf4fa;
    border-color: #bdd3e8;
    color: #1e4260;
  }
html:root[data-theme="light"] .rel-teacher-row {
    border-top-color: #d5e0d8;
  }
html:root[data-theme="light"] .check-label {
    color: #1b342e;
  }
html:root[data-theme="light"] .integration-status-chip {
    background: #e4f3ec;
    border-color: #96c5b0;
    color: #16493c;
  }
html:root[data-theme="light"] .rel-deep-bench {
    background: #ffffff;
    border-color: #c8d8ce;
    border-top-color: #226355;
  }
html:root[data-theme="light"] .rel-deep-tabs {
    border-bottom-color: #d6dfd6;
  }
html:root[data-theme="light"] .rel-review-queue,
  html:root[data-theme="light"] .rel-qada-extra,
  html:root[data-theme="light"] .rel-replacement-box,
  html:root[data-theme="light"] .rel-adhkar-card,
  html:root[data-theme="light"] .rel-tajwid-card,
  html:root[data-theme="light"] .rel-surah-card,
  html:root[data-theme="light"] .rel-subpanel,
  html:root[data-theme="light"] .rel-rot-cell {
    background: #f5f8f4;
    border-color: #d2ded5;
    color: #1b342e;
  }
html:root[data-theme="light"] .rel-adhkar-card.is-done,
  html:root[data-theme="light"] .rel-tajwid-card.is-done,
  html:root[data-theme="light"] .rel-surah-card.is-current,
  html:root[data-theme="light"] .rel-rot-cell.is-today {
    background: #e5f3ec;
    border-color: #226355;
    color: #143b31;
  }
html:root[data-theme="light"] .today-religion-strip {
    border-left-color: #226355;
  }
html:root[data-theme="light"] .sport-hero {
    border-left-color: #d97706;
  }
html:root[data-theme="light"] .sport-stat-chip,
  html:root[data-theme="light"] .sport-rhythm-day,
  html:root[data-theme="light"] .sport-smart-box,
  html:root[data-theme="light"] .sport-timer-box,
  html:root[data-theme="light"] .sport-pace-box,
  html:root[data-theme="light"] .sport-coach-gate,
  html:root[data-theme="light"] .sport-practice-card-view,
  html:root[data-theme="light"] .sport-visit-seg,
  html:root[data-theme="light"] .sport-gym-row,
  html:root[data-theme="light"] .sport-ladder-tile,
  html:root[data-theme="light"] .sport-swim-step,
  html:root[data-theme="light"] .sport-dim-item,
  html:root[data-theme="light"] .sport-pb-item,
  html:root[data-theme="light"] .sport-rot-week {
    background: #f5f8f4;
    border-color: #d2ded5;
    color: #1b342e;
  }
html:root[data-theme="light"] .sport-smart-out,
  html:root[data-theme="light"] .sport-pc-rule {
    background: #ffffff;
    border-color: #d2ded5;
    color: #1b342e;
  }
html:root[data-theme="light"] .sport-stat-val,
  html:root[data-theme="light"] .sport-timer-clock {
    color: #16362e;
  }
html:root[data-theme="light"] .sport-stat-lbl,
  html:root[data-theme="light"] .sport-stat-sub,
  html:root[data-theme="light"] .sport-gym-row-meta,
  html:root[data-theme="light"] .sport-ladder-meta,
  html:root[data-theme="light"] .sport-ladder-st,
  html:root[data-theme="light"] .sport-dim-lbl,
  html:root[data-theme="light"] .sport-mini-list {
    color: #486159;
  }
html:root[data-theme="light"] .sport-rhythm-day.is-active,
  html:root[data-theme="light"] .sport-rec-badge.is-full,
  html:root[data-theme="light"] .sport-badge.is-done,
  html:root[data-theme="light"] .sport-visit-seg.is-done,
  html:root[data-theme="light"] .sport-ladder-tile.is-done,
  html:root[data-theme="light"] .sport-swim-step.is-done,
  html:root[data-theme="light"] .sport-dim-item.is-stable {
    background: #e3f3eb;
    border-color: #2f855a;
    color: #144336;
  }
html:root[data-theme="light"] .sport-rec-badge.is-home,
  html:root[data-theme="light"] .sport-visit-seg.is-current {
    background: #fef3c7;
    border-color: #d97706;
    color: #78350f;
  }
html:root[data-theme="light"] .sport-rec-badge.is-rest {
    background: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
  }
html:root[data-theme="light"] .sport-ladder-tile.is-active,
  html:root[data-theme="light"] .sport-swim-step.is-next,
  html:root[data-theme="light"] .sport-dim-item.is-practiced {
    background: #e6f0fc;
    border-color: #3b82f6;
    color: #1e3a5f;
  }
html:root[data-theme="light"] .sport-shoe-row,
  html:root[data-theme="light"] .sport-combo-stage {
    background: #ffffff;
    border-color: #cad7cb;
    color: #16362e;
  }
html:root[data-theme="light"] .sport-app-card.is-linked {
    background: #e5f3ec;
    border-color: #2f855a;
  }
html:root[data-theme="light"] .sport-app-card.is-installed {
    border-color: #3b82f6;
  }
html:root[data-theme="light"] .sport-shoes-box {
    border-top-color: #d5e0d7;
  }
html:root[data-theme="light"] .sport-badge.is-warn {
    background: #fef3c7;
    border-color: #d97706;
    color: #78350f;
  }
html:root[data-theme="light"] .sport-plate-chip {
    background: #eef2f6;
    border-color: #94a3b8;
    color: #1e293b;
  }
html:root[data-theme="light"] .sport-plate-chip.is-p25 { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }
html:root[data-theme="light"] .sport-plate-chip.is-p20 { background: #dbeafe; border-color: #2563eb; color: #1e3a8a; }
html:root[data-theme="light"] .sport-plate-chip.is-p15 { background: #fef3c7; border-color: #d97706; color: #78350f; }
html:root[data-theme="light"] .sport-plate-chip.is-p10 { background: #d1fae5; border-color: #059669; color: #064e3b; }
html:root[data-theme="light"] .sport-plate-chip.is-p2_5 { background: #ede9fe; border-color: #7c3aed; color: #4c1d95; }
html:root[data-theme="light"] .fin-hero {
    background: #ffffff;
    border-color: #cde0d6;
    border-left-color: #10b981;
    color: #1b342e;
  }
html:root[data-theme="light"] .fin-alloc-bar {
    background: #e9efe9;
    border-color: #cad7cb;
  }
html:root[data-theme="light"] .fin-env-row,
  html:root[data-theme="light"] .fin-bucket-row,
  html:root[data-theme="light"] .fin-shift-row,
  html:root[data-theme="light"] .fin-led-row {
    background: #f5f8f4;
    border-color: #d2ded5;
    color: #1b342e;
  }
html:root[data-theme="light"] .fin-env-row.is-over {
    background: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
  }
html:root[data-theme="light"] .fin-env-val {
    color: #486159;
  }
html:root[data-theme="light"] .fin-amt-in { color: #047857; }
html:root[data-theme="light"] .fin-amt-out { color: #b91c1c; }
html:root[data-theme="light"] .fin-deep-bench {
    border-top-color: #10b981;
  }
html:root[data-theme="light"] .notice {
    background: #eef5f1;
    border-color: #bfd5c9;
    border-left-color: #226355;
    color: #18362f;
  }
html:root[data-theme="light"] .notice.error {
    background: #fef2f2;
    border-color: #f5b8b8;
    border-left-color: #dc2626;
    color: #7f1d1d;
  }
html:root[data-theme="light"] .fin-warnings .notice {
    background: #fffbeb;
    border-color: #f2d394;
    border-left-color: #d97706;
    color: #78350f;
  }
html:root[data-theme="light"] .sk-hero {
    background: #ffffff;
    border-color: #cbd5e1;
    border-left-color: #4f46e5;
    color: #1b342e;
  }
html:root[data-theme="light"] .sk-due-strip {
    background: #fffbeb;
    border-color: #f2d394;
    color: #78350f;
  }
html:root[data-theme="light"] .sk-active-box,
  html:root[data-theme="light"] .sk-drill-box,
  html:root[data-theme="light"] .sk-typ-chip {
    background: #f5f8f4;
    border-color: #d2ded5;
    color: #1b342e;
  }
html:root[data-theme="light"] .sk-ind-chip,
  html:root[data-theme="light"] .sk-proto-chip,
  html:root[data-theme="light"] .sk-matrix-item,
  html:root[data-theme="light"] .sk-drill-prompt,
  html:root[data-theme="light"] .sk-voice-timer {
    background: #ffffff;
    border-color: #cad7cb;
    color: #16362e;
  }
html:root[data-theme="light"] .sk-matrix-item.is-active {
    background: #eef2ff;
    border-color: #4f46e5;
  }
html:root[data-theme="light"] .sk-typ-chip.is-ok,
  html:root[data-theme="light"] .fin-bucket-row.is-done {
    background: #e5f3ec;
    border-color: #2f855a;
  }
html:root[data-theme="light"] .sk-typ-chip.is-warn {
    background: #fffbeb;
    border-color: #d97706;
  }
html:root[data-theme="light"] .sk-deep-bench {
    border-top-color: #4f46e5;
  }
html:root[data-theme="light"] .sk-studio-pills {
    background: #f3f6f1;
    border-color: #d2ded5;
  }
html:root[data-theme="light"] .sk-studio-head {
    background: #ffffff;
    border-color: #cbd5e1;
    border-left-color: #4f46e5;
    color: #1b342e;
  }
html:root[data-theme="light"] .sk-studio-head h4 {
    color: #18362f;
  }
html:root[data-theme="light"] .sk-drill-card {
    background: #ffffff;
    border-color: #cad7cb;
    color: #1b342e;
  }
html:root[data-theme="light"] .sk-lab-card,
  html:root[data-theme="light"] .sk-lab-check-row,
  html:root[data-theme="light"] .sk-lab-rubric-row,
  html:root[data-theme="light"] .sk-lab-entry-row {
    background: #ffffff;
    border-color: #cad7cb;
    color: #1b342e;
  }
html:root[data-theme="light"] .sk-lab-card h4,
  html:root[data-theme="light"] .sk-lab-card h5 {
    color: #18362f;
  }
html:root[data-theme="light"] .sk-lab-kpi,
  html:root[data-theme="light"] .sk-lab-timer {
    background: #f5f8f4;
    border-color: #d2ded5;
    color: #1b342e;
  }
html:root[data-theme="light"] .sk-lab-timer-clock {
    color: #16362e;
  }
html:root[data-theme="light"] .sk-lab-rubric-score {
    color: #3730a3;
  }
html:root[data-theme="light"] .sk-lab-check-row.is-done {
    background: #e5f3ec;
    border-color: #2f855a;
    color: #144336;
  }
html:root[data-theme="light"] .sk-lab-pill {
    background: #e9f0ec;
    border-color: #c2d4ca;
    color: #19453a;
  }
html:root[data-theme="light"] .sk-lab-pill.is-ok { background: #e3f3eb; border-color: #2f855a; color: #144336; }
html:root[data-theme="light"] .sk-lab-pill.is-warn { background: #fef3c7; border-color: #d97706; color: #78350f; }
html:root[data-theme="light"] .sk-lab-pill.is-err { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }
html:root[data-theme="light"] .sk-lab-pill.is-accent { background: #eef2ff; border-color: #4f46e5; color: #1e3a8a; }
html:root[data-theme="light"] .sk-lab-table-wrap {
    background: #ffffff;
    border-color: #cad7cb;
  }
html:root[data-theme="light"] .sk-lab-table th {
    background: #e8efe9;
    color: #18362f;
    border-bottom-color: #c2d1c6;
  }
html:root[data-theme="light"] .sk-lab-table td {
    border-bottom-color: #d6dfd6;
    color: #1b342e;
  }
html:root[data-theme="light"] .sk-lab-banner {
    background: #eef5f1;
    border-color: #bfd5c9;
    border-left-color: #226355;
    color: #18362f;
  }
html:root[data-theme="light"] .sk-lab-banner.is-warn { background: #fffbeb; border-color: #f2d394; border-left-color: #d97706; color: #78350f; }
html:root[data-theme="light"] .sk-lab-banner.is-err { background: #fef2f2; border-color: #f5b8b8; border-left-color: #dc2626; color: #7f1d1d; }
html:root[data-theme="light"] .sk-lab-banner.is-ok { background: #e5f3ec; border-color: #93c5ad; border-left-color: #2f855a; color: #144336; }
html:root[data-theme="light"] .sk-lab-divider {
    background: #d2ded5;
  }
html[data-theme] .focus-timer-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-margin-top: 96px;
  }
html[data-theme] #today-workspace .task-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px 10px;
  }
html[data-theme] #today-workspace .task-row .task-body {
    min-width: 0;
  }
html[data-theme] #today-workspace .task-row .task-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
html[data-theme] .focus-timer-head {
    flex-wrap: wrap;
    gap: 10px;
  }
html[data-theme] .focus-timer-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
html[data-theme] .focus-config-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 10px;
    align-items: end;
  }
html[data-theme] .focus-preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
html[data-theme] .focus-minutes-input {
    width: 72px;
    min-width: 64px;
  }
html[data-theme] .focus-display-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--border-subtle);
  }
html:root[data-theme="light"] .focus-display-row {
    background: rgba(15, 23, 42, 0.04);
  }
html[data-theme] .focus-clock-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
  }
html[data-theme] .focus-phase-badge {
    width: auto;
    align-self: flex-start;
  }
html[data-theme] .focus-clock-digits {
    font-size: 2rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }
html[data-theme] .focus-progress-track {
    height: 5px;
    width: 100%;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
    margin-top: 4px;
  }
html[data-theme] .focus-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4c82f7, #38bdf8);
    transition: none;
  }
html[data-theme] .focus-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
  }
html[data-theme] .focus-history-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
  }
html[data-theme] .focus-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
html[data-theme] .focus-history-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
  }
html[data-theme] .focus-topbar-pill {
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(76, 130, 247, 0.45);
    color: #93c5fd;
  }
html:root[data-theme="light"] .focus-topbar-pill {
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.35);
  }
@media (max-width: 640px) {
html[data-theme] .focus-config-row,
    html[data-theme] .focus-display-row {
      grid-template-columns: 1fr;
    }
html[data-theme] .focus-controls {
      justify-content: flex-start;
    }
}
html[data-theme] .task-table tr.task-row {
    display: table-row;
    padding: 0;
    gap: 0;
  }
html[data-theme] .task-project-chip,
  html[data-theme] .task-tag-chip,
  html[data-theme] .task-recur-chip,
  html[data-theme] .task-subtask-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.3;
    border: 1px solid var(--border-subtle);
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted, #cbd5e1);
  }
html[data-theme] .task-project-chip {
    border-color: rgba(76, 130, 247, 0.4);
    color: #93c5fd;
  }
html:root[data-theme="light"] .task-project-chip {
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.08);
  }
html[data-theme] .task-recur-chip {
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
  }
html:root[data-theme="light"] .task-recur-chip {
    color: #047857;
    background: rgba(4, 120, 87, 0.08);
  }
html:root[data-theme="light"] .task-tag-chip,
  html:root[data-theme="light"] .task-subtask-chip {
    color: #334155;
    background: rgba(15, 23, 42, 0.06);
  }
html[data-theme] .task-subtasks-fold {
    margin-top: 6px;
  }
html[data-theme] .task-subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0 2px;
  }
html[data-theme] .task-subtask-done {
    text-decoration: line-through;
    opacity: 0.7;
  }
html[data-theme] .task-extras-grid {
    padding-top: 8px;
  }
html[data-theme] #today-workspace .task-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px 10px;
  }
html[data-theme] #today-workspace .task-row .task-body {
    min-width: 0;
  }
html[data-theme] #today-workspace .task-row .task-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
html[data-theme] .today-hub-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0;
  }
html[data-theme] .today-hub-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 14px 15px;
    min-width: 0;
  }
html[data-theme] .today-hub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
html[data-theme] .today-hub-head h2 {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.3;
  }
html[data-theme] .today-hub-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #2f3f5c;
    background: #172033;
    color: #b4c6e4;
  }
html[data-theme] .today-hub-badge.is-good {
    background: #142a22;
    border-color: #27634d;
    color: #8ee0bc;
  }
html[data-theme] .today-hub-badge.is-warn {
    background: #2e1d19;
    border-color: #7c4234;
    color: #f6b29f;
  }
html[data-theme] .today-hub-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
html[data-theme] .today-hub-row,
  html[data-theme] .today-hub-goal-row {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #253046;
    background: #151c2b;
    color: #e6eefc;
    cursor: pointer;
    min-width: 0;
  }
html[data-theme] .today-hub-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
html[data-theme] .today-hub-row.is-warn {
    border-color: #6b3b30;
    background: #231818;
  }
html[data-theme] .today-hub-title {
    font-size: 12.5px;
    font-weight: 550;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
html[data-theme] .today-hub-meta {
    flex: 0 0 auto;
    font-size: 11.5px;
    white-space: nowrap;
  }
html[data-theme] .today-hub-tracker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #253046;
    background: #151c2b;
    min-width: 0;
  }
html[data-theme] .today-hub-tracker-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
html[data-theme] .today-hub-tracker-copy strong {
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
html[data-theme] .today-hub-tracker-row .button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 9px;
    font-size: 11.5px;
  }
html[data-theme] .today-hub-goal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
html[data-theme] .today-goal-track {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: #232e44;
    overflow: hidden;
  }
html[data-theme] .today-goal-fill {
    height: 100%;
    border-radius: 999px;
    background: #4c82f7;
    transition: none;
  }
html[data-theme] .today-hub-foot {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
  }
html[data-theme] .today-hub-foot .button {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 11.5px;
  }
html[data-theme] .hidden-module-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
html[data-theme] .module-visibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 12px;
  }
html[data-theme] .module-visibility-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid #253046;
    background: #141b29;
    cursor: pointer;
    min-width: 0;
  }
html[data-theme] .module-visibility-item input[type="checkbox"] {
    margin-top: 2px;
    flex: 0 0 auto;
  }
html[data-theme] .module-visibility-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
html[data-theme] .module-visibility-copy strong {
    font-size: 13px;
    color: #eaf1fe;
  }
html:root[data-theme="light"] .today-hub-badge {
    background: #efeae0;
    border-color: #d6cebe;
    color: #464e4b;
  }
html:root[data-theme="light"] .today-hub-badge.is-good {
    background: #e4f2eb;
    border-color: #9ecbb6;
    color: #165943;
  }
html:root[data-theme="light"] .today-hub-badge.is-warn {
    background: #fae8e3;
    border-color: #dfb0a2;
    color: #8c3422;
  }
html:root[data-theme="light"] .today-hub-row,
  html:root[data-theme="light"] .today-hub-goal-row,
  html:root[data-theme="light"] .today-hub-tracker-row,
  html:root[data-theme="light"] .module-visibility-item {
    background: #fbf9f4;
    border-color: #dfd8ca;
    color: #1f2a26;
  }
html:root[data-theme="light"] .today-hub-row.is-warn {
    background: #fdf2ef;
    border-color: #e3b8ab;
  }
html:root[data-theme="light"] .today-goal-track {
    background: #e4ddd0;
  }
html:root[data-theme="light"] .today-goal-fill {
    background: #1f6b5a;
  }
html:root[data-theme="light"] .module-visibility-copy strong {
    color: #1f2a26;
  }
html[data-theme] .calendar-overview-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
html[data-theme] .calendar-mode-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 9px;
    border: 1px solid #28344b;
    background: #111723;
  }
html[data-theme] .calendar-mode-btn {
    min-height: 28px;
    padding: 4px 11px;
    font-size: 12px;
    border-radius: 6px;
  }
html[data-theme] .calendar-mode-btn[aria-pressed="true"] {
    background: #223760;
    border-color: #4c82f7;
    color: #ffffff;
  }
html[data-theme] .day-heading-btn {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
  }
html[data-theme] .day-column[data-load-level="busy"] {
    border-color: #6b542b;
  }
html[data-theme] .day-column[data-load-level="overload"] {
    border-color: #8c4137;
  }
html[data-theme] .day-load-meter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    margin: 8px 0 10px;
    border-radius: 9px;
    border: 1px solid #273247;
    background: #141b28;
  }
html[data-theme] .day-load-meter.is-compact {
    padding: 7px 8px;
    margin: 4px 0 6px;
    gap: 4px;
    background: #111722;
  }
html[data-theme] .day-load-meter[data-load-level="busy"] {
    border-color: #70572c;
  }
html[data-theme] .day-load-meter[data-load-level="overload"] {
    border-color: #8d4338;
    background: #211618;
  }
html[data-theme] .day-load-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
  }
html[data-theme] .day-load-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    border: 1px solid #303f5c;
    background: #1a2436;
    color: #b8c9e6;
  }
html[data-theme] .day-load-pill.is-calm {
    background: #162436;
    border-color: #2f517d;
    color: #a9ccf8;
  }
html[data-theme] .day-load-pill.is-busy {
    background: #2b2213;
    border-color: #856630;
    color: #f3cf87;
  }
html[data-theme] .day-load-pill.is-overload {
    background: #331919;
    border-color: #9e4b3f;
    color: #f7b0a5;
  }
html[data-theme] .day-load-bar {
    display: flex;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #202a3d;
    overflow: hidden;
  }
html[data-theme] .day-load-seg.is-calendar {
    background: #4c82f7;
    height: 100%;
  }
html[data-theme] .day-load-seg.is-tasks {
    background: #d89b44;
    height: 100%;
  }
html[data-theme] .day-load-meter[data-load-level="overload"] .day-load-seg.is-tasks {
    background: #e06d5b;
  }
html[data-theme] .day-load-breakdown {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.35;
  }
html[data-theme] .calendar-day-layout {
    margin-top: 12px;
  }
html[data-theme] .calendar-day-layout .task-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px 10px;
  }
html[data-theme] .calendar-day-layout .task-row .task-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
html[data-theme] .calendar-placed-tasks {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #242f43;
  }
html[data-theme] .calendar-placed-list {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 12.5px;
    color: #b6c4dc;
  }
html[data-theme] .calendar-month-board {
    border: 1px solid #253044;
    border-radius: 10px;
    background: #111722;
    padding: 10px;
    margin: 10px 0 14px;
  }
html[data-theme] .calendar-month-weekdays,
  html[data-theme] .calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }
html[data-theme] .calendar-month-weekdays {
    margin-bottom: 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 650;
    color: #8294b2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
html[data-theme] .month-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-height: 92px;
    padding: 7px 8px;
    border-radius: 8px;
    border: 1px solid #232d41;
    background: #151c29;
    color: #e6eefc;
    text-align: left;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
  }
html[data-theme] .month-cell.is-outside {
    opacity: 0.48;
    background: #10151f;
  }
html[data-theme] .month-cell.is-today {
    border-color: #4c82f7;
    box-shadow: inset 0 2px 0 #4c82f7;
  }
html[data-theme] .month-cell[data-load-level="overload"] {
    border-color: #8c4137;
  }
html[data-theme] .month-cell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }
html[data-theme] .month-day-num {
    font-size: 13px;
    line-height: 1.2;
  }
html[data-theme] .month-load-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex: 0 0 auto;
  }
html[data-theme] .month-load-dot.is-calm { background: #4c82f7; }
html[data-theme] .month-load-dot.is-busy { background: #d89b44; }
html[data-theme] .month-load-dot.is-overload { background: #e06d5b; }
html[data-theme] .month-cell-total {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
html[data-theme] .month-cell-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
html[data-theme] .month-event-pill {
    display: block;
    font-size: 10.5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #1d273a;
    color: #c7d6ef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
html[data-theme] .month-event-more {
    font-size: 10px;
  }
html:root[data-theme="light"] .calendar-mode-bar {
    background: #efeae0;
    border-color: #d6cebe;
  }
html:root[data-theme="light"] .calendar-mode-btn[aria-pressed="true"] {
    background: #175c4c;
    border-color: #175c4c;
    color: #ffffff;
  }
html:root[data-theme="light"] .day-load-meter {
    background: #f9f6ef;
    border-color: #ddd5c6;
  }
html:root[data-theme="light"] .day-load-meter[data-load-level="busy"] {
    border-color: #c59843;
  }
html:root[data-theme="light"] .day-load-meter[data-load-level="overload"] {
    background: #fdf2ef;
    border-color: #cf6b58;
  }
html:root[data-theme="light"] .day-load-pill.is-calm {
    background: #e4f0ec;
    border-color: #9dc5b8;
    color: #175746;
  }
html:root[data-theme="light"] .day-load-pill.is-busy {
    background: #fbf0da;
    border-color: #d5aa55;
    color: #7d5410;
  }
html:root[data-theme="light"] .day-load-pill.is-overload {
    background: #fae6e2;
    border-color: #d57968;
    color: #8f2d1e;
  }
html:root[data-theme="light"] .day-load-bar {
    background: #e5ded1;
  }
html:root[data-theme="light"] .day-load-seg.is-calendar {
    background: #1f6b5a;
  }
html:root[data-theme="light"] .calendar-month-board {
    background: #f5f1e8;
    border-color: #ddd5c6;
  }
html:root[data-theme="light"] .calendar-month-weekdays {
    color: #5c6662;
  }
html:root[data-theme="light"] .month-cell {
    background: #fdfcf9;
    border-color: #dfd8ca;
    color: #1e2925;
  }
html:root[data-theme="light"] .month-cell.is-outside {
    background: #f1ede4;
  }
html:root[data-theme="light"] .month-cell.is-today {
    border-color: #1f6b5a;
    box-shadow: inset 0 2px 0 #1f6b5a;
  }
html:root[data-theme="light"] .month-event-pill {
    background: #ebe5d8;
    color: #293631;
  }
html:root[data-theme="light"] .calendar-placed-list {
    color: #46524e;
  }
html[data-theme] .habits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
  }
html[data-theme] .habit-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid #273349;
    background: #141b28;
    min-width: 0;
  }
html[data-theme] .habit-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
html[data-theme] .habit-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
  }
html[data-theme] .habit-card-title strong {
    font-size: 14px;
    color: #eef4ff;
  }
html[data-theme] .habit-schedule-chip,
  html[data-theme] .habit-unit-chip,
  html[data-theme] .habit-week-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #2f3e59;
    background: #1a2335;
    color: #b7c9e6;
  }
html[data-theme] .habit-week-badge.is-met {
    background: #142a22;
    border-color: #2b6b53;
    color: #8ce2bd;
  }
html[data-theme] .habit-checkin-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
html[data-theme] .habit-qty-input {
    width: 84px;
    min-height: 32px;
    padding: 4px 8px;
  }
html[data-theme] .habit-week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }
html[data-theme] .habit-day-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    padding: 4px 2px;
    border-radius: 7px;
    border: 1px solid #263248;
    background: #101622;
    color: #c7d5ec;
    font-size: 11px;
    cursor: pointer;
    min-width: 0;
  }
html[data-theme] .habit-day-btn.is-off {
    opacity: 0.55;
  }
html[data-theme] .habit-day-btn.is-today {
    border-color: #4c82f7;
  }
html[data-theme] .habit-day-btn.is-done {
    background: #163026;
    border-color: #348766;
    color: #b7f5d9;
  }
html[data-theme] .habit-day-btn.is-skip {
    background: #272219;
    border-color: #7c683e;
    color: #ebd39d;
  }
html[data-theme] .habit-stats-line {
    margin: 0;
    font-size: 12px;
  }
html[data-theme] .habit-history-list {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 12px;
  }
html[data-theme] .habit-card-foot {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
  }
html[data-theme] .habit-weekdays-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }
html[data-theme] .habit-weekday-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 7px;
    border: 1px solid #2a364d;
    background: #141b29;
    font-size: 12px;
    cursor: pointer;
  }
html[data-theme] .goal-progress-breakdown {
    margin: 5px 0 0;
    font-size: 11.5px;
  }
html[data-theme] .goal-milestones {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
  }
html[data-theme] .goal-milestone-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid #253147;
    background: #121826;
    min-width: 0;
  }
html[data-theme] .goal-milestone-row.is-done {
    border-color: #2c6e55;
    background: #12231d;
  }
html[data-theme] .goal-milestone-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
  }
html[data-theme] .goal-milestone-copy strong {
    font-size: 12.5px;
    overflow-wrap: anywhere;
  }
html[data-theme] .goal-card-actions {
    margin-top: auto;
    padding-top: 4px;
  }
html[data-theme] .today-habits-strip {
    margin: 12px 0;
  }
html[data-theme] .today-habits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
html[data-theme] .today-habit-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #2c3952;
    background: #151d2d;
    color: #e4edfc;
    font-size: 12.5px;
    cursor: pointer;
  }
html[data-theme] .today-habit-pill.is-done {
    background: #163026;
    border-color: #348766;
    color: #b7f5d9;
  }
html[data-theme] .today-habit-pill.is-off {
    opacity: 0.72;
  }
html:root[data-theme="light"] .habit-card,
  html:root[data-theme="light"] .goal-milestone-row,
  html:root[data-theme="light"] .habit-weekday-chip {
    background: #fbf9f4;
    border-color: #dfd8ca;
    color: #1f2a26;
  }
html:root[data-theme="light"] .habit-card-title strong {
    color: #1f2a26;
  }
html:root[data-theme="light"] .habit-schedule-chip,
  html:root[data-theme="light"] .habit-unit-chip,
  html:root[data-theme="light"] .habit-week-badge {
    background: #efeae0;
    border-color: #d6cebe;
    color: #424d49;
  }
html:root[data-theme="light"] .habit-week-badge.is-met,
  html:root[data-theme="light"] .habit-day-btn.is-done,
  html:root[data-theme="light"] .goal-milestone-row.is-done,
  html:root[data-theme="light"] .today-habit-pill.is-done {
    background: #e4f2eb;
    border-color: #82bda3;
    color: #155540;
  }
html:root[data-theme="light"] .habit-day-btn,
  html:root[data-theme="light"] .today-habit-pill {
    background: #fdfcf9;
    border-color: #dad2c4;
    color: #24312d;
  }
html:root[data-theme="light"] .habit-day-btn.is-skip {
    background: #fbf2dd;
    border-color: #d4b165;
    color: #7c5812;
  }
html[data-theme] .planner-root {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
  }
html[data-theme] .analytics-panel,
  html[data-theme] .analytics-block {
    min-width: 0;
    max-width: 100%;
  }
html[data-theme] .analytics-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }
html[data-theme] .calendar-mode-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 9px;
    border: 1px solid #28344b;
    background: #111723;
  }
html[data-theme] .calendar-mode-btn {
    min-height: 28px;
    padding: 4px 11px;
    font-size: 12px;
    border-radius: 6px;
  }
html[data-theme] .calendar-mode-btn[aria-pressed="true"] {
    background: #223760;
    border-color: #4c82f7;
    color: #ffffff;
  }
html[data-theme] .analytics-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }
html[data-theme] .analytics-block h3,
  html[data-theme] .analytics-reflection-box h3 {
    margin: 0 0 4px;
    font-size: 14.5px;
  }
html[data-theme] .analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
html[data-theme] .analytics-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid #263248;
    background: #141b28;
    min-width: 0;
  }
html[data-theme] .analytics-kpi-card strong {
    font-size: 19px;
    line-height: 1.25;
    color: #eef4ff;
  }
html[data-theme] .analytics-sublist,
  html[data-theme] .analytics-reasons-box,
  html[data-theme] .analytics-reflection-box {
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid #253146;
    background: #131a27;
  }
html[data-theme] .analytics-reasons-box {
    border-left: 3px solid #d89b44;
  }
html[data-theme] .analytics-reflection-box {
    margin-bottom: 12px;
    border-left: 3px solid #4c82f7;
  }
html[data-theme] .analytics-sublist h4,
  html[data-theme] .analytics-reasons-box h4 {
    margin: 0 0 6px;
    font-size: 13px;
  }
html[data-theme] .analytics-sublist ul,
  html[data-theme] .analytics-reasons-box ul,
  html[data-theme] .analytics-hints-list {
    margin: 4px 0 0;
    padding-left: 18px;
    font-size: 12.5px;
  }
html[data-theme] .analytics-carryover-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid #2a3954;
    background: #151e30;
  }
html[data-theme] .carryover-task-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #253146;
    background: #101622;
  }
html[data-theme] .carryover-task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    cursor: pointer;
  }
html[data-theme] .carryover-preview {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #2e4366;
    background: #131c2e;
    font-size: 12.5px;
  }
html[data-theme] .carryover-preview-list {
    margin: 6px 0 0;
    padding-left: 18px;
  }
html:root[data-theme="light"] .calendar-mode-bar {
    background: #efeae0;
    border-color: #d6cebe;
  }
html:root[data-theme="light"] .calendar-mode-btn[aria-pressed="true"] {
    background: #175c4c;
    border-color: #175c4c;
    color: #ffffff;
  }
html:root[data-theme="light"] .analytics-kpi-card,
  html:root[data-theme="light"] .analytics-sublist,
  html:root[data-theme="light"] .analytics-reasons-box,
  html:root[data-theme="light"] .analytics-reflection-box,
  html:root[data-theme="light"] .analytics-carryover-bar,
  html:root[data-theme="light"] .carryover-task-list,
  html:root[data-theme="light"] .carryover-preview {
    background: #fbf9f4;
    border-color: #dfd8ca;
    color: #1f2a26;
  }
html:root[data-theme="light"] .analytics-kpi-card strong {
    color: #1b2622;
  }
html:root[data-theme="light"] .analytics-reflection-box {
    border-left-color: #175c4c;
  }
html[data-theme] .calendar-week-empty {
    margin: 0 0 12px;
  }
html[data-theme] .tracker-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
@media (max-width: 959px) {
html[data-theme] .rel-prayer-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
html[data-theme] .sk-lab-host,
    html[data-theme] .sk-lab-host * {
      min-width: 0;
      max-width: 100%;
    }
html[data-theme] .sk-lab-host .button,
    html[data-theme] .sk-lab-timer .button {
      white-space: normal;
      text-align: center;
    }
html[data-theme] .sk-lab-card,
    html[data-theme] .sk-lab-entry-row,
    html[data-theme] .sk-lab-check-row {
      overflow-wrap: anywhere;
    }
html[data-theme] .calendar-overview {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
html[data-theme] .calendar-overview-side {
      align-items: flex-start;
      width: 100%;
    }
html[data-theme] .calendar-month-board {
      padding: 6px;
    }
html[data-theme] .calendar-month-weekdays,
    html[data-theme] .calendar-month-grid {
      gap: 3px;
    }
html[data-theme] .month-cell {
      min-height: 54px;
      padding: 4px 4px;
    }
html[data-theme] .month-day-num {
      font-size: 11.5px;
    }
html[data-theme] .month-cell-events,
    html[data-theme] .month-cell-total {
      display: none;
    }
html[data-theme] .analytics-month-table :is(th, td) {
      padding: 6px 6px;
      font-size: 11px;
      white-space: normal;
      word-break: break-word;
    }
html[data-theme] .analytics-toolbar {
      align-items: flex-start;
    }
}
html[data-theme] .today-pulse-bar,
  html[data-theme] .today-cockpit {
    display: grid;
    gap: 12px;
    min-width: 0;
  }
html[data-theme] .today-pulse-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
html[data-theme] .today-pulse-track {
    height: 9px;
  }
html[data-theme] .today-pillars-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
  }
html[data-theme] .today-pillar-tile {
    display: grid;
    gap: 2px;
    text-align: left;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
    background: var(--surface-2, rgba(30, 41, 59, 0.35));
    color: inherit;
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.15s,background-color 0.15s;
  }
html[data-theme] .today-pillar-tile:hover {
    border-color: var(--accent, #3b82f6);
  }
html[data-theme] .today-pillar-lbl {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.76;
  }
html[data-theme] .today-pillar-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent, #60a5fa);
  }
html[data-theme] .today-cockpit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border, rgba(148, 163, 184, 0.22));
  }
html[data-theme] .today-cockpit-body {
    display: grid;
    gap: 12px;
    min-width: 0;
  }
html:root[data-theme="light"] .today-pillar-tile {
    background: rgba(15, 23, 42, 0.035);
    border-color: rgba(15, 23, 42, 0.14);
  }
html:root[data-theme="light"] .today-pillar-val {
    color: #0f766e;
  }
@media (max-width: 980px) {
html[data-theme] .today-pillars-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
html[data-theme] .today-pillars-grid {
      grid-template-columns: minmax(0, 1fr);
    }
}
}

/* Гайд */
.guide-workspace {
  min-width: 0;
}
.guide-workspace h2,
.guide-workspace h3,
.guide-workspace p,
.guide-workspace li {
  overflow-wrap: anywhere;
}
.guide-workspace .guide-search {
  max-width: 38rem;
}
.guide-feedback {
  min-height: 1.35em;
  margin-block: .45rem .7rem;
}
.guide-section {
  margin-block: .55rem;
  border: 1px solid var(--line, currentColor);
  border-radius: .75rem;
}
.guide-section > summary {
  padding: .85rem 1rem;
  cursor: pointer;
  font-weight: 700;
}
.guide-section[open] > summary {
  border-bottom: 1px solid var(--line, currentColor);
}
.guide-section-body {
  padding: .85rem 1rem;
}
.guide-intro {
  max-width: 58ch;
  margin-block: 0 .75rem;
}
.guide-topic {
  scroll-margin-block-start: 5rem;
  border-top: 1px solid var(--line, currentColor);
}
.guide-topic:first-of-type {
  margin-top: .8rem;
}
.guide-topic > summary {
  padding: .75rem .25rem;
  cursor: pointer;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.guide-instruction {
  max-width: 75ch;
  padding: 0 .25rem .9rem;
}
.guide-steps {
  padding-inline-start: 1.5rem;
  margin-block: .5rem 1rem;
}
.guide-steps > li + li {
  margin-top: .35rem;
}
.guide-fields {
  margin-block: .8rem .25rem;
}
.guide-fields dt {
  font-weight: 700;
  margin-top: .55rem;
}
.guide-fields dd {
  margin: .2rem 0 0;
}
.guide-fields dd > ul {
  padding-inline-start: 1.35rem;
  margin: 0;
}

@media screen and (prefers-reduced-motion: no-preference) {
  html[data-ambient-motion="on"] { view-transition-name: none; }
  html[data-ambient-motion="on"] [data-transition-title="linked"] { view-transition-name: ritm-section-title; }
}
}

@layer interface {
  @media (max-width: 650px) {
    html[data-theme] .today-top-row,
    html[data-theme] .day-mode-bar {
      min-width: 0;
      max-width: 100%;
    }
    html[data-theme] .day-mode-bar {
      flex-wrap: wrap;
      border-radius: 14px;
    }
  }
}

@layer interface {
  .state-first-panel > summary { cursor: pointer; font-weight: 650; }
  .state-first-panel[open] > summary { margin-block-end: 1rem; }
  .state-first-panel, .airlock-thought, .attention-boundary { min-width: 0; overflow-wrap: anywhere; }
  .state-first-panel > .field, .attention-boundary > .field { margin-block-start: 1rem; }
  .voice-capsules { display: grid; gap: 1rem; }
  .voice-capsule { border-block-start: 1px solid var(--line); padding-block: .75rem; }
  .voice-capsule audio, [data-impulse] audio { display: block; max-width: 100%; margin-block: .5rem; }
  [data-impulse] { background: #080b10; color: #f1f5f9; padding: 1rem; border-radius: 12px; }
  [data-holding="true"] { outline: 3px solid var(--work-focus); outline-offset: 2px; }
  html[data-surface-mode="tunnel"] .state-first-panel:not([open]) { padding-block: .4rem; }
}

@layer interface {
  html:root[data-theme="light"] .day-mode-btn { color: #45594f; }
  html:root[data-theme="light"] .day-mode-btn[data-day-mode="green"][aria-pressed="true"] { color: #175a3e; }
  html:root[data-theme="light"] .day-mode-btn[data-day-mode="yellow"][aria-pressed="true"] { color: #61440b; }
  html:root[data-theme="light"] .day-mode-btn[data-day-mode="red"][aria-pressed="true"] { color: #852f31; }
  html:root[data-theme="light"] .topbar-label .eyebrow,
  html:root[data-theme="light"] .today-bar-main .eyebrow { color: var(--muted); }
  html:root[data-theme="light"] .sidebar > .hint,
  html:root[data-theme="light"] .sidebar .sidebar-foot .hint { color: #c3d8cb; }
}

html[data-surface-mode="standard"] #day-content-fold > summary { display: none; }
#day-content-fold[open] { min-inline-size: 0; }
.flow-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.flow-controls span { font-variant-numeric: tabular-nums; }
html[data-surface-mode="quiet"] .flow-controls span { display: none; }
html[data-surface-mode="tunnel"] .today-bar-actions { display: none; }
html[data-theme] .task-table-block .task-resting .priority-dot { opacity: .45; }
html[data-theme] .task-table-block .task-resting .task-title { color: var(--muted, currentColor); }

@media screen and (max-width: 600px) {
  html[data-theme] :is(#app,dialog) :is(button,a[href],summary,select,textarea,input:not([type="hidden"])) {
    min-block-size: 40px;
    min-inline-size: 40px;
    scroll-margin-block: 12px;
  }
  html[data-theme] :is(#app,dialog) a[href] {
    display: inline-flex;
    align-items: center;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
  }
  html[data-theme] :is(#main,dialog) :is(.field,.hint,.task-title,.modal-body,summary,p,dd,h1,h2,h3,strong) {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  html[data-theme] dialog .modal-body { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  html[data-theme] #app #main { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
