/* Nova surfaces follow the supplied 1440px reference; responsive rules follow the base shell. */
:root { color-scheme: dark; scrollbar-color: #262631 #0B0B10; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; background: #0B0B10; color: #F3F2EE; }
body { font: 400 14px/1.45 Inter, Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
:focus-visible { outline: 2px solid #C8F56A; outline-offset: 3px; }
[hidden] { display: none !important; }
.b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.b-skip { position: absolute; left: 12px; top: -40px; z-index: 80; padding: 8px 12px; background: #F2EFE7; color: #101014; }
.b-skip:focus { top: 12px; }

.b-shell { min-height: 100dvh; background: #0B0B10; }
.b-topbar { inset: auto; width: auto; justify-content: flex-start; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 76px; padding: 0 28px; background: #0B0B10; }
.b-brand { padding: 0; margin: 0; letter-spacing: 0; display: inline-flex; align-items: center; flex: 0 0 auto; height: 36px; color: #F3F2EE; text-decoration: none; }
.b-brand-mark { display: block; flex: 0 0 36px; width: 36px; height: 36px; margin-right: 10px; border-radius: 12px; background: #8C6BFF; }
.b-brand-word, .b-brand-dot { font: 700 24px/1 Geologica, Inter, sans-serif; }
.b-brand-dot { color: #8C6BFF; }
.nova-brand { margin-left: 10px; color: #C8F56A; font: 400 11px/1 'JetBrains Mono', monospace; }
.b-search-trigger { margin: 0; display: flex; align-items: center; width: 420px; min-width: 0; height: 41px; padding: 0 16px; border: 1px solid #262631; border-radius: 999px; background: #14141B; color: #9C9CAA; font-size: 14px; text-align: left; }
.b-search-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nova-connection { display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-left: auto; padding: 0 14px; border: 1px solid #262631; border-radius: 999px; background: #14141B; color: #9C9CAA; font: 400 12px/1 'JetBrains Mono', monospace; white-space: nowrap; }
.nova-connection::before { content: '●'; color: #9C9CAA; font-size: 10px; }
.nova-connection.is-on, .nova-connection[data-state=connected] { border-color: #2F3A1F; background: #161C0E; color: #C8F56A; }
.nova-connection.is-on::before, .nova-connection[data-state=connected]::before { color: #C8F56A; }
.nova-avatar { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: #FFB86B; color: #1A1A1A; font: 700 18px/1 Geologica, Inter, sans-serif; }
.b-breadcrumb, #server-note, .b-app-footer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.b-main { min-width: 0; margin-left: 0; padding: 0; }
.b-content { max-width: none; margin: 0; align-items: flex-start; display: flex; gap: 16px; min-height: calc(100dvh - 76px); padding: 0 20px 20px; }
.b-sidebar { inset: auto; flex: 0 0 68px; max-height: none; margin: 0; border: 0; overflow: visible; position: sticky; top: 76px; align-self: flex-start; display: flex; width: 68px; height: fit-content; padding: 12px; border-radius: 20px; background: #14141B; }
.b-nav { position: static; padding: 0; border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.b-nav .b-nav-link { padding: 0; flex: 0 0 44px; min-height: 44px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: transparent; color: #9C9CAA; text-decoration: none; }
.b-nav .b-nav-link svg { width: 20px; height: 20px; }
.b-nav-link:hover { background: #1B1B24; color: #F3F2EE; }
.b-nav .b-nav-link.active, .b-nav .b-nav-link[aria-current=page] { background: #8C6BFF; color: #F3F2EE; }
.b-nav-count { display: none; }
#main { flex: 1; min-width: 0; }

.nova-overview, .nova-inbox, .nova-task { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
.nova-inbox, .nova-task { grid-template-columns: 320px minmax(0,1fr); }
.nova-task { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.nova-col, .nova-news, .nova-sources, .nova-data { min-width: 0; }
.nova-col-head, .nova-section-head { display: flex; align-items: center; gap: 12px; min-height: 31px; margin-bottom: 12px; padding: 4px; }
.nova-col-head h1, .nova-section-head h1, .nova-section-head h2 { margin: 0; color: #F3F2EE; font: 700 18px/1.25 Geologica, Inter, sans-serif; letter-spacing: 0; }
.nova-col-head time, .nova-section-head b { margin-left: auto; color: #9C9CAA; font: 400 12px/1 'JetBrains Mono', monospace; }
.nova-section-head b.is-count { margin-left: 0; color: #F3F2EE; }
.nova-section-head > span { flex: 1; }
.nova-section-head nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.nova-section-head nav button { display: grid; gap: 4px; justify-items: center; min-height: 28px; padding: 6px 8px 0; border: 0; background: transparent; color: #9C9CAA; font-size: 14px; }
.nova-section-head nav button i { width: 28px; height: 2px; background: #262631; }
.nova-section-head nav button[aria-pressed=true] { color: #F3F2EE; font-weight: 700; }
.nova-section-head nav button[aria-pressed=true] { font-weight: 500; }
.nova-section-head nav button[aria-pressed=true] i { background: #C8F56A; }
.nova-add { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #8C6BFF; color: #F3F2EE; font-weight: 700; }

.nova-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.nova-stat { display: grid; gap: 2px; min-width: 0; padding: 12px; border: 0; border-radius: 14px; background: #1B1B24; text-align: left; }
.nova-stat strong { color: #F3F2EE; font: 700 22px/1.25 Geologica, Inter, sans-serif; }
.nova-stat span { color: #9C9CAA; font: 400 11px/1.4 'JetBrains Mono', monospace; }
.nova-focus { display: grid; gap: 12px; padding: 22px; border-radius: 24px; background: linear-gradient(135deg,#8C6BFF 0%,#2B1E5E 55%,#14141B 100%); }
.nova-focus-kicker { margin: 0; color: #C8F56A; font: 400 12px/1 'JetBrains Mono', monospace; }
.nova-focus-title { padding: 0; border: 0; background: transparent; color: #F3F2EE; font: 700 28px/1.25 Geologica, Inter, sans-serif; text-align: left; overflow-wrap: anywhere; }
.nova-focus-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #2E2E3D; }
.nova-focus-progress span { display: block; height: 100%; border-radius: inherit; background: #C8F56A; }
.nova-focus-footer { display: flex; align-items: center; gap: 8px; color: #D8D8E0; font-size: 13px; }
.nova-focus-footer span:first-child { margin-right: auto; }
.nova-pause { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: #F2EFE7; color: #101014; font-weight: 700; }
.nova-focus-empty { padding: 22px; border: 1px solid #262631; border-radius: 24px; background: #14141B; }
.nova-panel { padding: 0; border: 1px solid #262631; border-radius: 18px; background: #14141B; overflow: hidden; }
.nova-panel h2 { margin: 0; padding: 14px 14px 0; color: #9C9CAA; font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-check-row, .nova-news-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 12px 14px; border: 0; background: transparent; color: #F3F2EE; text-align: left; }
.nova-box { width: 18px; height: 18px; flex: 0 0 auto; border: 1.5px solid #9C9CAA; border-radius: 7px; }
.nova-box.is-done { border-color: #C8F56A; background: #C8F56A; }
.nova-check-row strong, .nova-news-row strong { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nova-check-row time, .nova-news-row small { margin-left: auto; color: #9C9CAA; font: 400 11px/1 'JetBrains Mono', monospace; white-space: nowrap; }
.nova-check-row time.is-overdue { color: #FF6B5E; }
.nova-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; margin-top: 12px; padding: 10px; border: 1px solid #262631; border-radius: 14px; background: #14141B; }
.nova-week-day { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 6px; border: 0; border-radius: 10px; background: transparent; color: #9C9CAA; }
.nova-week-day span { font: 400 9px/1 'JetBrains Mono', monospace; }
.nova-week-day strong { color: #F3F2EE; font: 700 12px/1 Inter, sans-serif; }
.nova-week-day.is-today { background: #8C6BFF; color: #F3F2EE; }
.nova-news-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #C8F56A; }
.nova-news-dot[data-category=useful] { background: #8C6BFF; }
.nova-news-dot[data-category=interesting] { background: #FFB86B; }
.nova-news-dot[data-category=important] { background: #FF6B5E; }
.nova-news-dot[data-category=fun] { background: #D99FE8; }
.nova-empty { margin: 0; padding: 16px; color: #9C9CAA; }

.nova-queue { display: grid; border: 1px solid #262631; border-radius: 18px; background: #14141B; overflow: hidden; }
.nova-queue button { display: grid; gap: 6px; width: 100%; padding: 14px 16px; border: 0; background: transparent; color: #F3F2EE; text-align: left; }
.nova-queue button.is-selected { background: #1B1B24; }
.nova-queue small { color: #9C9CAA; font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-queue strong { font-size: 15px; font-weight: 600; }
.nova-queue em { color: #9C9CAA; font-style: normal; font-size: 12px; }
.nova-queue em[data-kind=task] { color: #C8F56A; }
.nova-sheet { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: 22px; background: #F2EFE7; color: #101014; color-scheme: light; }
.nova-sheet > p, .nova-task-sheet > p { margin: 0; color: #6A6772; font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-sheet h2, .nova-task-sheet h1 { margin: 0; color: #101014; font: 700 26px/1.2 Geologica, Inter, sans-serif; overflow-wrap: anywhere; }
.nova-task-sheet h1 { color: #F3F2EE; }
.nova-sheet-body { color: #2A2A33; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.nova-classifier { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px; border: 1px solid #D2CDC1; border-radius: 12px; background: #EAE6DC; }
.nova-classifier span { color: #6A6772; font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-classifier strong { font-size: 14px; font-weight: 600; }
.nova-classifier select { margin-left: auto; max-width: 130px; border: 0; background: transparent; color: #101014; }
.nova-sheet-actions, .nova-task-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nova-sheet-actions button, .nova-task-actions button, .nova-source-status button, .nova-data-grid button, .nova-backups button, .nova-empty-panel button { height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: #101014; color: #F3F2EE; font-weight: 700; }
.nova-sheet-actions button { flex: 1; }
.nova-sheet-actions .is-soft { background: #E6E2D7; color: #101014; }
.nova-sheet-actions .is-text { flex: 0; height: auto; padding: 0; background: transparent; color: #6A6772; font-weight: 400; }
.nova-more { margin-top: 12px; color: #9C9CAA; }
.nova-more summary { cursor: pointer; }
.nova-more input, .nova-more select, .nova-more label { display: grid; gap: 4px; width: 100%; margin-top: 8px; }
.nova-more button { height: 36px; margin-top: 8px; margin-right: 8px; border: 1px solid #262631; border-radius: 12px; background: #1B1B24; color: #F3F2EE; }

.nova-feed { border: 1px solid #262631; border-radius: 20px; background: #14141B; overflow: hidden; }
.nova-news-item { display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 14px; padding: 16px 18px; }
.nova-news-item > div { display: grid; gap: 4px; min-width: 0; }
.nova-news-item p, .nova-news-item span { margin: 0; color: #9C9CAA; }
.nova-news-item p { font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-news-item button { justify-self: start; padding: 0; border: 0; background: transparent; color: #F3F2EE; font: 700 17px/1.3 Geologica, Inter, sans-serif; text-align: left; }
.nova-news-item span { font-size: 14px; }
.nova-news-item .nova-news-tools { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nova-news-tools button { height: 28px; padding: 0 8px; border: 1px solid #262631; border-radius: 8px; font: 400 12px/1 Inter, sans-serif; color: #9C9CAA; }
.nova-empty-panel { padding: 28px; border: 1px solid #262631; border-radius: 20px; background: #14141B; }

.nova-task-sheet { display: grid; gap: 14px; align-content: start; padding: 22px; border: 1px solid #262631; border-radius: 22px; background: #14141B; }
.nova-task-sheet > p { color: #C8F56A; }
.nova-task-sheet dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0; }
.nova-task-sheet dl div { min-width: 0; padding: 10px; border-radius: 14px; background: #1B1B24; }
.nova-task-sheet dt { color: #9C9CAA; font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-task-sheet dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.nova-task-timer { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #101014; }
.nova-task-timer b { color: #C8F56A; font: 400 20px/1 'JetBrains Mono', monospace; }
.nova-task-timer span { flex: 1; }
.nova-task-timer button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: #F2EFE7; color: #101014; font-weight: 700; }
.nova-checklist h2, .nova-history h2 { margin: 0 0 8px; font: 600 13px/1 Inter, sans-serif; }
.nova-checklist ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nova-checklist button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; background: transparent; text-align: left; font-size: 15px; }
.nova-checklist i { width: 18px; height: 18px; border: 2px solid #9C9CAA; border-radius: 7px; }
.nova-checklist i.is-done { border-color: #C8F56A; background: #C8F56A; }
.nova-checklist button[aria-pressed=true] span { color: #9C9CAA; text-decoration: line-through; }
.nova-task-actions button { height: 40px; border-radius: 12px; background: #1B1B24; }
.nova-task-actions { display: flex; flex-wrap: wrap; }
.nova-task-actions button:first-child { width: 100%; height: 48px; border-radius: 14px; background: #8C6BFF; }
.nova-task-actions button:not(:first-child) { height: 32px; border-radius: 10px; background: transparent; color: #9C9CAA; font-weight: 500; }
.nova-task-actions .is-danger { color: #FF6B5E; }
.nova-task-note { margin: 0; color: #9C9CAA; white-space: pre-wrap; }
.nova-task-note { color: #C8F56A; font-size: 13px; }
.nova-history { padding: 12px; border-radius: 14px; background: #1B1B24; }
.nova-history h2 { color: #9C9CAA; font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-history p { margin: 6px 0 0; font-size: 13px; }
.nova-history p + p { color: #9C9CAA; }
.t-page-edit { margin-top: 8px; padding-top: 16px; border-top: 1px solid #262631; }

.nova-cal { min-width: 0; }
.nova-month { display: grid; gap: 10px; padding: 16px; border: 1px solid #262631; border-radius: 20px; background: #14141B; }
.nova-dow, .nova-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.nova-dow span, .nova-days button { display: grid; place-items: center; min-width: 0; }
.nova-dow span { height: 24px; color: #9C9CAA; font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-days button { position: relative; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #F3F2EE; font-size: 13px; }
.nova-days button.is-outside { color: #9C9CAA; }
.nova-days button.is-today { background: #8C6BFF; }
.nova-days button.is-due { outline: 1px solid #C8F56A; }
.nova-days i { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #C8F56A; }
.nova-upcoming { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border: 1px solid #262631; border-radius: 18px; background: #14141B; }
.nova-upcoming h3 { margin: 0; color: #9C9CAA; font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-upcoming button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 8px 0; border: 0; background: transparent; text-align: left; }
.nova-upcoming i { display: none; }
.nova-upcoming time { flex: 0 0 auto; color: #F3F2EE; font: 700 15px/1.2 Geologica, Inter, sans-serif; text-transform: capitalize; }
.nova-upcoming strong { min-width: 0; color: #9C9CAA; font-size: 14px; font-weight: 400; }

.nova-source-status, .nova-source-list, .nova-data-grid article, .nova-backups { border: 1px solid #262631; border-radius: 20px; background: #14141B; }
.nova-source-status { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 18px; }
.nova-source-status.is-live { border-color: #2F3A1F; background: #161C0E; }
.nova-source-status > i { color: #C8F56A; }
.nova-source-status > i::before { content: '●'; }
.nova-source-status div { display: grid; gap: 2px; flex: 1; }
.nova-source-status strong { font: 700 16px/1.3 Geologica, Inter, sans-serif; }
.nova-source-status small { color: #9C9CAA; }
.nova-source-status button { height: 40px; border-radius: 12px; background: #8C6BFF; }
.nova-source-status button + button { background: #1B1B24; }
.nova-source { display: grid; grid-template-columns: 12px minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 14px 16px; }
.nova-source i { width: 8px; height: 8px; border-radius: 50%; background: #8C6BFF; }
.nova-source i[data-mode=news] { background: #FFB86B; }
.nova-source i[data-mode=tasks] { background: #C8F56A; }
.nova-source i[data-mode=ignore] { background: #6A6772; }
.nova-source div { display: grid; gap: 2px; }
.nova-source strong { font-size: 15px; font-weight: 600; }
.nova-source small { color: #9C9CAA; font-size: 12px; }
.nova-source select { height: 28px; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: #8C6BFF; }
.nova-source button { width: 28px; height: 28px; border: 0; background: transparent; color: #9C9CAA; }
.nova-source-list .b-panel, .nova-source-list .v-tg-panel { margin: 8px; }
.nova-source-list > .b-panel, .nova-source-list > .v-tg-panel { display: none; }
.nova-data-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.nova-data-grid article, .nova-backups { display: grid; gap: 8px; align-content: start; padding: 16px; }
.nova-data-grid h2 { margin: 0; font: 700 16px/1.3 Geologica, Inter, sans-serif; }
.nova-data-grid p, .nova-backups p, .nova-backups small { margin: 0; color: #9C9CAA; }
.nova-data-grid button, .nova-backups button { height: 40px; border-radius: 12px; background: #1B1B24; }
.nova-data-grid article { grid-template-rows: auto auto 1fr; min-height: 140px; }
.nova-data-actions { display: flex; gap: 8px; align-self: end; }
.nova-data-actions button { flex: 1; min-width: 0; }
.nova-data-grid article button { align-self: end; }

.nova-backups { margin-top: 12px; }
.nova-backups h2 { margin: 0; color: #9C9CAA; font: 400 11px/1 'JetBrains Mono', monospace; }
.nova-backups .is-danger { color: #FF6B5E; }
.nova-section-head b.is-live { color: #C8F56A; }

.b-panel, .b-dialog, .t-list, .t-card, .t-column, .t-day, .lg-side, .lg-tape { background: #14141B; color: #F3F2EE; border: 1px solid #262631; border-radius: 18px; box-shadow: none; }
.b-btn, .b-icon-btn { border: 1px solid #262631; border-radius: 12px; background: #1B1B24; color: #F3F2EE; box-shadow: none; }
.b-btn.primary { border-color: #8C6BFF; background: #8C6BFF; }
.b-btn.danger { color: #FF6B5E; }
.b-muted, .b-subtitle, .t-stats { color: #9C9CAA; }
input, select, textarea { border: 1px solid #262631; border-radius: 12px; background: #1B1B24; color: #F3F2EE; }
h1, h2, h3 { font-family: Geologica, Inter, sans-serif; letter-spacing: 0; }
.b-dialog { width: min(640px,calc(100vw - 32px)); padding: 24px; }
.b-dialog::backdrop { background: rgb(0 0 0 / .72); }
.b-toast, .b-shortcuts, .b-alert { border: 1px solid #34343F; border-radius: 12px; background: #1B1B24; color: #F3F2EE; }
#timer-widget:not(:empty) { position: fixed; left: 20px; bottom: 20px; z-index: 40; max-width: min(320px,calc(100vw - 40px)); padding: 14px; border: 1px solid #262631; border-radius: 16px; background: #14141B; }

@media (max-width: 1100px) {
  .nova-overview, .nova-data-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nova-task-sheet dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .b-search-trigger { width: min(420px,34vw); }
}
@media (max-width: 800px) {
  .b-topbar { height: 64px; gap: 8px; padding: 0 12px; }
  .b-search-trigger { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .b-search-trigger::before { content: '⌕'; font-size: 16px; }
  .nova-brand { display: none; }
  .nova-connection { max-width: 92px; overflow: hidden; }
  .b-content { display: block; padding: 0 12px 78px; }
  .b-sidebar { position: fixed; inset: auto 12px 12px; top: auto; z-index: 40; width: auto; padding: 8px; }
  .b-nav { flex-direction: row; justify-content: space-between; gap: 2px; }
  .b-nav .b-nav-link { flex: 0 1 44px; min-width: 0; border-radius: 14px; }
  #timer-widget:not(:empty) { bottom: 84px; }
  .nova-task-sheet, .nova-sheet { padding: 18px; }
  .nova-task-sheet dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nova-overview, .nova-inbox, .nova-task, .nova-data-grid { grid-template-columns: minmax(0,1fr); }
  .nova-section-head { flex-wrap: wrap; }
  .nova-source { grid-template-columns: 12px minmax(0,1fr); }
  .nova-source label, .nova-source button { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.nova-queue button strong { overflow-wrap: anywhere; }
.nova-days button { font: 400 13px/1 Inter, sans-serif; }
.nova-days button.is-outside { color: #6A6772; }
.nova-news-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.nova-news-item + .nova-news-item { border-top: 1px solid #242430; }
.nova-news-item.is-expanded { background: #1B1B24; }

/* Secondary controls are available without hover, including on touch screens. */
.nova-news-detail { margin-top: 8px; }
.nova-news-text { color: #D8D8E0; line-height: 1.6; overflow-wrap: anywhere; }
.nova-news-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nova-news-actions button, .nova-news-source { padding: 8px 12px; border: 1px solid #34343F; border-radius: 10px; color: #F3F2EE; font: 500 13px/1.4 Inter, sans-serif; }
.nova-news-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nova-news-actions [data-action=news-delete] { color: #FF6B5E; }
.nova-source-status:not(.is-live) > i { color: #9C9CAA; }
.nova-source-status { flex-wrap: wrap; }
.nova-source-status > div { min-width: 180px; }
.nova-bot-summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 12px; border: 1px solid #262631; border-radius: 16px; background: #14141B; }
.nova-bot-summary div { flex: 1; display: grid; }
.nova-bot-summary small { color: #9C9CAA; }
.nova-bot-summary a { color: #C8F56A; }
.lg-grid { gap: 16px; grid-template-columns: 320px minmax(0,1fr); }
.lg-side { padding: 18px; top: 92px; }
.lg-tape { padding: 18px; }
.lg-months button { border: 1px solid #262631; border-radius: 10px; }
.lg-months button[aria-pressed=true], .lg-kind button[aria-pressed=true] { background: #8C6BFF; color: #F3F2EE; border-color: #8C6BFF; }
.lg-kind button { border-radius: 12px; }
.lg-totals dd { font-size: 18px; }
.lg-totals .lg-balance dd { font-size: 22px; }
.lg-totals .is-in { color: #C8F56A; }
.lg-bar .is-in { background: #C8F56A; }
.lg-cat-name i, .lg-dot { border-radius: 50%; }
.lg-title { overflow-wrap: anywhere; }
.lg-title small { display: block; margin: 4px 0 0; }
.lg-del { opacity: 1; }
.t-heading h1 { font-size: 24px; }
@media (max-width: 900px) { .lg-grid { grid-template-columns: minmax(0,1fr); } .lg-side { position: static; } }
@media (max-width: 500px) {
  .lg-line { flex-wrap: wrap; align-items: center; }
  .lg-title { flex-basis: calc(100% - 24px); }
  .lg-amt { margin-right: auto; padding-left: 18px; }
  .lg-day-sum { flex-wrap: wrap; gap: 6px 12px; }
  .nova-connection { max-width: none; font-size: 10px; padding-inline: 8px; }
  .nova-avatar { width: 36px; height: 36px; flex: 0 0 36px; font-size: 14px; }
}

/* Keep the row delete action in its own column instead of wrapping below. */
@media (min-width: 1251px) {
 .t-row { grid-template-columns: 20px minmax(200px,1fr) 112px 95px 90px 85px 36px; }
 .t-list-head { grid-template-columns: minmax(236px,1fr) 112px 95px 90px 85px 36px; }
}
@media (min-width: 561px) and (max-width: 1250px) {
 .t-row { grid-template-columns: 20px minmax(120px,1fr) 100px 78px 78px 36px; }
 .t-list-head { grid-template-columns: minmax(152px,1fr) 100px 78px 78px 36px; }
}
@media (max-width: 560px) { .t-row > .t-row-delete { grid-column: 3; grid-row: 2; justify-self: end; } }
.nova-task-note { color: #D8D8E0; font-size: 14px; }
.t-page-desc h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.nova-bot-summary button { border: 0; background: none; color: #C8F56A; padding: 8px; }
h1[tabindex="-1"]:focus { outline: none; }

.t-cal-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #262631; border-radius: 12px; background: #14141B; }
.t-cal-switch button { border: 0; border-radius: 8px; padding: 7px 12px; background: transparent; color: #9C9CAA; }
.t-cal-switch button[aria-pressed=true] { background: #1B1B24; color: #F3F2EE; }
.nova-news-filters { margin: 0 0 12px; }
.nova-news-filters input { padding: 10px 12px; }
.nova-news-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nova-news-filter-actions button[aria-pressed=true] { background: #8C6BFF; color: #F3F2EE; }
.nova-data-trash { margin-top: 12px; padding: 14px 16px; border: 1px solid #262631; border-radius: 16px; background: #14141B; }
.nova-data-trash .is-danger { color: #FF6B5E; }
.nova-classifier { flex-wrap: wrap; }
.nova-classifier label { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #6A6772; font-size: 12px; }
.nova-classifier select { border: 1px solid #D2CDC1; border-radius: 8px; padding: 6px; }
@media (max-width: 800px) { .nova-classifier label { margin-left: 0; flex-wrap: wrap; } }
@media (max-width: 800px) {
  .nova-source { grid-template-columns: 12px minmax(0,1fr) 28px; gap: 8px 12px; }
  .nova-source > i { grid-column: 1; grid-row: 1 / 3; }
  .nova-source > div { grid-column: 2; grid-row: 1; }
  .nova-source > label { grid-column: 2; grid-row: 2; }
  .nova-source > button { grid-column: 3; grid-row: 1 / 3; }
}

.nova-task-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nova-task-kicker p { margin: 0; color: #C8F56A; font: 400 11px/1.4 'JetBrains Mono', monospace; }
.nova-task-kicker .b-back { flex-shrink: 0; margin: 0; padding: 0; min-height: 24px; font-size: 12px; }
/* Month view shares the Nova calendar geometry with the task detail. */
.t-month-weekhead { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; padding: 10px 0; text-align: center; color: #9C9CAA; font: 400 11px/1.4 var(--font-mono); }
.t-month { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.t-mday { min-width: 0; min-height: 112px; padding: 8px; border: 1px solid #262631; border-radius: 12px; background: #14141B; }
.t-mday.is-outside { background: #111117; color: #9C9CAA; }
.t-mday.is-today { border-color: #8C6BFF; }
.t-mday-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
.t-mday-head strong { font: 500 13px/1.4 var(--font-mono); }
.t-mday-over { font-size: 10px; color: #FF6B5E; }
.t-mday-add { width: 24px; min-width: 24px; height: 24px; padding: 4px; }
.t-mday-add svg { width: 14px; height: 14px; }
.t-mday-body { display: grid; gap: 4px; margin-top: 8px; }
.t-mtask { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; padding: 5px; border: 0; border-radius: 6px; background: #1B1B24; color: #F3F2EE; text-align: left; font-size: 12px; }
.t-mtask span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-mtask.is-done { color: #9C9CAA; text-decoration: line-through; }
.t-mtask.is-overdue { color: #FFB86B; }
.t-mmore { padding: 4px; border: 0; background: none; color: #9C9CAA; text-align: left; font-size: 11px; }
@media (max-width: 560px) {
 .t-month, .t-month-weekhead { gap: 3px; }
 .t-mday { padding: 4px 2px; min-height: 84px; border-radius: 8px; }
 .t-mday-head { gap: 0; }
 .t-mday-head strong { font-size: 11px; }
 .t-mday-add { width: 22px; min-width: 22px; height: 24px; padding: 3px; }
 .t-mday-over { display: none; }
 .t-mtask { font-size: 10px; padding: 4px 2px; }
 .t-mtask .t-status-dot { display: none; }
 .t-mmore { font-size: 10px; padding-inline: 0; }
}

/* Confirmed qoxLN home: 1920px reference scaled to the 1440px shell. */
.nova-overview.nova-home { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.nova-home .nova-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nova-home .nova-col-head { min-height: 31px; margin: 0; padding: 4px; }
.nova-home .nova-col-head :is(h1,h2) { min-width: 0; margin: 0; font: 700 18px/1.25 Geologica, Inter, sans-serif; overflow-wrap: anywhere; }
.nova-home .nova-col-head > :is(time,span,b) { flex: 0 0 auto; margin-left: auto; color: #9C9CAA; font: 400 12px/1.3 'JetBrains Mono', monospace; }
.nova-home :is(.nova-incoming-feature,.nova-incoming-card,.nova-focus,.nova-home-tasks,.nova-week,.nova-featured-news,.nova-home-news-list) { min-width: 0; border: 0; box-shadow: none; }
.nova-home .nova-home-meta { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0; color: #9C9CAA; font: 400 11px/1.35 'JetBrains Mono', monospace; overflow-wrap: anywhere; }
.nova-home .nova-home-meta > :is(span,time) { min-width: 0; }
.nova-home .nova-home-meta .nova-news-dot { width: 8px; height: 8px; }
.nova-home .nova-home-meta > i[data-kind] { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #8C6BFF; }
.nova-home .nova-home-meta > i[data-kind=news] { background: #C8F56A; }
.nova-home .nova-home-meta > i[data-kind=task] { background: #FFB86B; }

.nova-home .nova-incoming-feature { display: flex; flex-direction: column; gap: 10px; min-height: 183px; padding: 18px; border-radius: 20px; background: #F2EFE7; color: #101014; color-scheme: light; }
.nova-home .nova-incoming-feature .nova-home-meta { color: #777782; }
.nova-home .nova-incoming-feature h2 { margin: 0; color: #101014; font: 700 21px/1.25 Geologica, Inter, sans-serif; overflow-wrap: anywhere; }
.nova-home .nova-incoming-feature > p:not(.nova-home-meta) { margin: 0; color: #363640; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.nova-home .nova-decision-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.nova-home .nova-decision-actions button { flex: 1 1 120px; min-width: 0; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 13px; background: #101014; color: #F3F2EE; font: 600 14px/1.4 Inter, sans-serif; white-space: normal; overflow-wrap: anywhere; }
.nova-home .nova-decision-actions button + button { background: #E6E2D7; color: #101014; }
.nova-home .nova-incoming-card { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; width: 100%; min-height: 97px; padding: 16px; border-radius: 20px; background: #14141B; color: #F3F2EE; text-align: left; }
.nova-home .nova-incoming-card strong { font: 600 15px/1.3 Inter, sans-serif; overflow-wrap: anywhere; }
.nova-home .nova-incoming-card small { color: #9C9CAA; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }

.nova-home .nova-focus { display: flex; flex-direction: column; gap: 12px; min-height: 178px; padding: 22px; border-radius: 24px; background: linear-gradient(to bottom left,#8C6BFF 12%,#3B287D 48%,#14141B 82%); }
.nova-home .nova-focus-kicker { margin: 0; color: #C8F56A; font: 400 12px/1 'JetBrains Mono', monospace; overflow-wrap: anywhere; }
.nova-home .nova-focus-title, .nova-home .nova-focus > h2 { margin: 0; color: #F3F2EE; font: 700 28px/1.25 Geologica, Inter, sans-serif; overflow-wrap: anywhere; }
.nova-home .nova-focus-progress { flex: 0 0 8px; }
.nova-home .nova-focus-footer { flex-wrap: wrap; margin-top: auto; }
.nova-home .nova-focus-footer > span { min-width: 0; overflow-wrap: anywhere; }
.nova-home .nova-focus-footer :is(.is-overdue,.b-overdue) { color: #FF6B5E; }
.nova-home .nova-focus > p:not(.nova-focus-kicker) { margin: 0; color: #D8D8E0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.nova-home .nova-focus > button:not(.nova-focus-title) { align-self: flex-start; min-height: 36px; margin-top: auto; padding: 8px 18px; border: 0; border-radius: 999px; background: #F2EFE7; color: #101014; font: 600 13px/1.4 Inter, sans-serif; white-space: normal; }
.nova-home .nova-home-tasks { min-height: 144px; border-radius: 20px; background: #14141B; }
.nova-home .nova-home-task { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 48px; padding: 12px 16px; }
.nova-home .nova-home-task .nova-box { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; padding: 0; border: 2px solid #9C9CAA; border-radius: 8px; background: transparent; color: #101014; }
.nova-home .nova-home-task .nova-box:is(.is-doing,.is-done,[aria-checked=true],[aria-pressed=true]) { border-color: #C8F56A; background: #C8F56A; }
.nova-home .nova-home-task-title { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: #F3F2EE; font: 600 15px/1.4 Inter, sans-serif; text-align: left; overflow-wrap: anywhere; }
.nova-home .nova-home-task time { flex: 0 0 auto; margin-left: auto; color: #9C9CAA; font: 400 11px/1.3 'JetBrains Mono', monospace; white-space: nowrap; }
.nova-home .nova-home-task time:is(.is-overdue,.b-overdue) { color: #FF6B5E; }

.nova-home .nova-week { align-items: center; gap: 8px; min-height: 80px; margin: 0; padding: 14px; border-radius: 20px; }
.nova-home .nova-week-day { align-content: center; gap: 8px; min-height: 52px; padding: 8px 4px; border-radius: 13px; }
.nova-home .nova-week-day span { font-size: 10px; }
.nova-home .nova-week-day strong { font-size: 14px; }
.nova-home .nova-featured-news { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; width: 100%; min-height: 128px; padding: 18px; border-radius: 22px; background: #1B1B24; color: #F3F2EE; text-align: left; }
.nova-home .nova-featured-news .nova-home-meta { color: #C8F56A; }
.nova-home .nova-featured-news strong { font: 700 18px/1.35 Geologica, Inter, sans-serif; overflow-wrap: anywhere; }
.nova-home .nova-featured-news > p:not(.nova-home-meta) { margin: 0; color: #9C9CAA; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.nova-home .nova-home-news-list { border-radius: 20px; background: #14141B; }
.nova-home .nova-home-news-list .nova-news-row { min-height: 45px; padding: 12px 16px; border-radius: 12px; }
.nova-home .nova-home-news-list .nova-news-dot { display: none; }
.nova-home .nova-home-news-list .nova-news-row strong { overflow: visible; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.nova-home .nova-home-news-list .nova-news-row small { flex: 0 0 auto; }
.nova-home .nova-empty { padding: 16px; overflow-wrap: anywhere; }
.nova-home button:focus-visible { outline: 2px solid #C8F56A; outline-offset: 3px; }
.nova-home .nova-incoming-feature button:focus-visible { outline-color: #8C6BFF; }
@media (hover: hover) {
  .nova-home .nova-incoming-card:hover, .nova-home .nova-home-news-list .nova-news-row:hover { background: #1B1B24; }
  .nova-home .nova-home-task-title:hover { color: #C8F56A; }
  .nova-home .nova-week-day:hover:not(.is-today) { background: #1B1B24; color: #F3F2EE; }
}
@media (max-width: 1100px) {
  .nova-overview.nova-home { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .nova-overview.nova-home { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
@media (max-width: 420px) {
  .nova-home .nova-col-head { gap: 8px; }
  .nova-home .nova-focus { padding: 18px; }
  .nova-home .nova-focus-title, .nova-home .nova-focus > h2 { font-size: 24px; }
  .nova-home .nova-home-task { gap: 10px; padding-inline: 14px; }
  .nova-home .nova-week { gap: 4px; padding-inline: 10px; }
  .nova-home .nova-home-news-list .nova-news-row { flex-wrap: wrap; gap: 4px 12px; }
}

/* крестик «пропустить» во «Входящих» на главной */
.nova-home .nova-decision-actions button.nova-skip {
  flex: 0 0 42px; min-width: 42px; padding: 0; font-size: 15px; line-height: 1;
  color: inherit; background: transparent; border: 1px solid currentColor; opacity: .5;
}
.nova-home .nova-decision-actions button.nova-skip:hover,
.nova-home .nova-decision-actions button.nova-skip:focus-visible { opacity: 1; }

/* Быстрая строка кассы */
.lg-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; margin-bottom: 14px; border-radius: 16px; background: #14141B; border: 1px solid #262631; }
.lg-quick input, .lg-quick select { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid #262631; background: #0B0B10; color: inherit; font: inherit; }
.lg-quick input[name="amount"] { width: 118px; }
.lg-quick input[name="title"] { flex: 1 1 150px; }
.lg-quick button[type="submit"] { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #E6E2D7; color: #101014; font-weight: 600; cursor: pointer; }
.lg-quick .lg-quick-kind { display: flex; gap: 4px; }
.lg-quick .lg-quick-kind button { min-height: 44px; padding: 0 12px; border: 1px solid #262631; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.lg-quick .lg-quick-kind button[aria-pressed="true"] { background: #E6E2D7; color: #101014; border-color: transparent; }


/* Лента кассы: строки не должны наезжать друг на друга */
.lg-day-sum { gap: 8px 14px; }
.lg-line .lg-actions { display: flex; align-items: center; gap: 6px; margin-left: 10px; }

/* Смартфон: крупнее цели, аккуратная лента кассы, без зума у iOS */
@media (max-width: 560px) {
  input, select, textarea { font-size: 16px; }
  .nova-decision-actions button, .b-nav a, .b-nav button, .lg-quick button { min-height: 46px; }
  .lg-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-block: 10px; }
  .lg-line .lg-dot { flex: 0 0 auto; }
  .lg-line .lg-title { flex: 1 1 calc(100% - 26px); min-width: 0; }
  .lg-line .lg-title small { display: block; }
  .lg-line .lg-amt { flex: 0 0 auto; margin-left: 18px; }
  .lg-line .lg-actions { flex: 0 0 auto; margin-left: auto; }
  .lg-line .lg-view-receipt { min-height: 38px; }
  .nova-incoming-feature { padding: 14px; }
  .b-sidebar, .b-app-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .b-topbar { padding-top: env(safe-area-inset-top, 0px); }
}
