:root{--nova-profile-bg:#f4f7fb;--nova-background-fit:cover;--nova-surface:#fff}
.btn-primary,.nova-service120 .primary{color:var(--nova-accent-ink,#fff)!important}
html:is([data-nova-background="image"],[data-nova-background="gradient"]) .page-head{background:var(--surface);padding:14px;border-radius:12px}
html[data-nova-theme="dark"]{--ink:#e6edf7;--muted:#aebdd0;--line:#3c4c63;--surface:#1b293c;--bg:#111b2b;--nova-surface:#1b293c;--shadow:0 12px 32px #0006;--blue-100:#203f66;--green-soft:#143d32;--red-soft:#482a31;--yellow-soft:#413b25;color-scheme:dark}
html[data-nova-palette="green"]{--navy-950:#082b24;--navy-900:#144b3b;--orange:#e6b45b}
html[data-nova-palette="purple"]{--navy-950:#251334;--navy-900:#43225b;--orange:#e3a2ea}
html[data-nova-palette="orange"]{--navy-950:#301a11;--navy-900:#60351f;--orange:#ffc278}
html[data-nova-background="plain"] body{background:var(--nova-profile-bg)}
html[data-nova-theme="dark"][data-nova-background="plain"] body{background:var(--bg)}
html[data-nova-background="gradient"] body{background:linear-gradient(135deg,var(--nova-profile-bg),var(--blue-100));background-attachment:fixed}
html[data-nova-background="image"] body{background-image:linear-gradient(#f4f7fb77,#f4f7fb77),var(--nova-background-image);background-size:var(--nova-background-fit);background-position:center;background-repeat:no-repeat;background-attachment:fixed}
html[data-nova-theme="dark"][data-nova-background="image"] body{background-image:linear-gradient(#111b2baa,#111b2baa),var(--nova-background-image)}
html[data-nova-background] .main{background:transparent}
html[data-nova-theme="dark"] :is(.card,.topbar,.modal,.modal-content,.modal-dialog,.notification-popover089,.search-overlay,.profile-pop,.tree-item,.registry-col,.registry-preview,.settings-card,.nova-service120 fieldset){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-nova-theme="dark"] :is(h1,h2,h3,h4,.page-title,.panel-title,.list-title,.block-title,.task-title,.case-title,.cell-title,.list-sub,.case-task-title,.registry-col strong,.task-sticker086 strong,.settings-card-title,.production-case-card strong){color:var(--ink)!important}
html[data-nova-theme="dark"] :is(input,select,textarea,.form-control,.icon-button,.btn:not(.btn-primary),.task-sticker086,.list-row,.task-card,.task-filters087,.case-head,.global-search input,thead th,tbody td,.nova-notice120){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-nova-theme="dark"] :is(.badge,.modal-note,.calendar-day,.calendar-event,.task-board-col086,.panel-sub,.list-sub,.page-subtitle){color:var(--ink);border-color:var(--line)}
html[data-nova-avatar-shape="square"] :is(.avatar,[data-avatar-user120]){border-radius:8px}
[data-avatar-user120]{display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;border-radius:50%;vertical-align:middle;background-size:cover;background-position:center;font-size:11px}
.avatar[data-avatar-user120]{display:grid}
.nova-service-grid120{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px}
.nova-service120{min-width:0;color:var(--ink)}
.nova-service120 :is(form,.form-grid){display:grid;gap:14px}
.nova-service120 label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:14px;line-height:1.5}
.nova-service120 label:has(input[type="checkbox"]){display:flex;flex-direction:row;align-items:center}
.nova-service120 :is(input:not([type="checkbox"]):not([type="range"]):not([type="color"]),textarea,select){width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--surface);color:var(--ink)}
.nova-service120 :is(button,a).btn{justify-self:start}
.nova-service120 :is(button,input,select,textarea,a):focus-visible{outline:3px solid var(--blue-600);outline-offset:3px}
.nova-service120 fieldset{border:1px solid var(--line);border-radius:12px;padding:14px;min-width:0}
.nova-service120 legend{font-weight:700}
.nova-service120 pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:450px;overflow:auto;background:var(--bg);padding:12px;border-radius:8px}
.nova-service120 .actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.nova-service120 table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.nova-service120 td,.nova-service120 th{padding:10px;text-align:left;border-bottom:1px solid var(--line)}
.nova-service120 .primary{background:var(--blue-600);color:white;border:0}
.nova-service120 details{padding:12px;border:1px solid var(--line);border-radius:10px;margin:8px 0}
.nova-service120 summary{cursor:pointer;font-weight:650}
.nova-notice120{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.nova-notice120.unread{border-left:4px solid var(--blue-600);padding-left:12px}
.nova-notice120.high{border-left:4px solid var(--red);padding-left:12px}
.nova-crop120{display:grid;grid-template-columns:256px minmax(150px,1fr);gap:14px;align-items:center}
.nova-crop120[hidden]{display:none}
.nova-crop120 canvas{grid-row:span 3;border-radius:14px;border:2px solid var(--line);max-width:100%;height:auto}
#meeting-proposals{display:grid;gap:14px}
#meeting-proposals fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}
@media(max-width:700px){.nova-crop120{grid-template-columns:1fr}.nova-service120 .actions{align-items:stretch}.nova-service120 .actions>.btn{max-width:100%;white-space:normal}.nova-service120{padding:0}.nova-service120 h1{font-size:26px}.nova-service120 .panel{padding:14px}}
@media(prefers-reduced-motion:reduce){.nova-service120 *{animation:none!important;transition:none!important}}
@media(max-width:700px){
  .topbar{padding:0 8px!important;gap:6px!important}
  .topbar .global-search{min-width:50px;flex:1 1 80px}
  .topbar .global-search input{min-width:0;width:100%;padding-right:7px;padding-left:27px}
  .topbar .search-shortcut{display:none}
  .topbar .top-actions{min-width:0;gap:5px;flex:0 1 auto}
  .topbar :is(.top-timer,.top-timer.timer086-fixed){width:92px!important;min-width:0!important;max-width:92px!important;padding:5px!important;flex:0 1 92px!important;overflow:hidden}
  .topbar .top-timer :is(strong,small){max-width:60px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .topbar .profile{min-width:35px!important;width:35px;padding:0!important;gap:0}
  .topbar .profile :is(.profile-name,.profile-role){display:none}
  .topbar .icon-button{width:32px;height:35px;min-width:32px}
}

/* Keep settings/OAuth help text readable in the dark palette. */
html[data-nova-theme="dark"] .modal-note{background:var(--blue-100);color:var(--ink)}
html[data-nova-theme="dark"] .form-field label{color:var(--muted)}
