/* ERP «Никея» — Next Design System 1.0
   First rollout: /works/{id} only. Shared shell is opt-in via .nd-shell.
   No global remapping of old components or business actions.
*/
.nd-shell {
  --nd-bg:#f7faff; --nd-surface:#fff; --nd-ink:#101a32; --nd-muted:#7887a5;
  --nd-quiet:#a0acc0; --nd-line:#e5ebf5; --nd-accent:#008dff; --nd-accent-hover:#0077dc;
  --nd-blue-pale:#eef8ff; --nd-green:#10ae78; --nd-green-pale:#e7fbf2;
  --nd-red:#f05267; --nd-red-pale:#fff0f2; --nd-radius:16px;
  --nd-shadow:0 4px 24px rgba(30,63,103,.045),0 1px 3px rgba(30,63,103,.028);
  --nd-font:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:var(--nd-bg); color:var(--nd-ink); font-family:var(--nd-font);
  min-width:0;
}
.nd-shell * { box-sizing:border-box; }
.nd-shell a {text-decoration:none;}
.nd-shell a:hover {text-decoration:none;}
.nd-shell .sidebar {
  --sidebar-w:246px;
  flex:0 0 246px;width:246px;padding:21px 13px 0;
  background:var(--nd-surface);backdrop-filter:none;-webkit-backdrop-filter:none;
  border-right:1px solid #edf0f6;box-shadow:5px 0 26px rgba(36,66,97,.024);
}
.nd-shell .brand {font:750 20px/1.2 var(--nd-font);letter-spacing:-.04em;color:var(--nd-ink);padding:5px 11px 24px;gap:11px;}
.nd-shell .brand .mark {width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#05a8ff,#0088ee);box-shadow:0 4px 12px rgba(0,145,250,.23);}
.nd-shell .brand .mark:after {width:11px;height:11px;}
.nd-shell .nav-primary {border:0;margin:0;padding-bottom:12px;}
.nd-shell .nav-primary::before {content:'МОЯ РАБОТА';display:block;font-size:10px;font-weight:700;letter-spacing:.11em;color:#9cabc4;margin:9px 13px 10px;}
.nd-shell .nav-primary .nav-item:first-child {margin-bottom:18px;}
.nd-shell .nav-scroll {scrollbar-color:#e6ecf5 transparent;padding:0 0 20px;}
.nd-shell .nav-group {margin:10px 0;}
.nd-shell .nav-group>summary {background:transparent!important;color:#9dabc2;font-size:10px;font-weight:750;letter-spacing:.10em;text-transform:uppercase;padding:10px 12px;margin:0 0 5px;}
.nd-shell .nav-group>summary::after {top:13px;border-color:#99a6b9;}
.nd-shell .nav-group-links {padding:0;}
.nd-shell .sidebar .nav-item {font:500 13px/1.35 var(--nd-font);color:#657695;min-height:41px;margin:3px 0;padding:10px 12px;border-radius:9px;gap:11px;}
.nd-shell .nav-item .ico {width:18px;height:18px;opacity:1;stroke-width:1.7;}
.nd-shell .nav-item:hover {background:#f3f9ff;color:var(--nd-accent);}
.nd-shell .sidebar .nav-item.active {background:#eaf6ff;color:#007fec;font-weight:700;}
.nd-shell .nav-item.active::before {top:6px;bottom:6px;width:3px;background:var(--nd-accent);}
.nd-shell .nav-foot {border-top:1px solid #eef1f7;background:var(--nd-surface);padding:18px 18px 22px;margin:0 -13px;}
.nd-shell .nav-foot .who {font-size:13px;font-weight:750;color:var(--nd-ink);}
.nd-shell .nav-foot .nav-role {font-size:11px;color:var(--nd-muted);}
.nd-shell .nav-foot a {display:inline-block;color:var(--nd-accent);font-size:11px;margin-top:4px;}
.nd-shell .main {padding:0 26px 62px;min-width:0;width:calc(100% - 246px);flex:1;}
.nd-shell .nav-item:focus-visible,.nd-work button:focus-visible,.nd-work a:focus-visible,
.nd-work input:focus-visible,.nd-work textarea:focus-visible,.nd-work summary:focus-visible {outline:3px solid #69bbff;outline-offset:2px;}

/* Page typography and the refined editorial work composition */
.nd-work {max-width:1630px;margin:0 auto;font-family:var(--nd-font);font-size:14px;line-height:1.46;color:var(--nd-ink);}
.nd-work h1,.nd-work h2,.nd-work p,.nd-work dl {margin:0;}
.nd-work h1,.nd-work h2 {font-family:var(--nd-font);letter-spacing:-.035em;color:var(--nd-ink);}
.nd-work h1 {font-size:clamp(26px,2.5vw,34px);font-weight:750;line-height:1.13;margin:6px 0 6px;}
.nd-work h2 {font-size:20px;line-height:1.22;font-weight:750;}
.nd-work p {color:var(--nd-muted);}
.nd-work a {color:var(--nd-accent);}
.nd-topbar {display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 6px 20px;}
.nd-topbar-title {min-width:0;}
.nd-back {font-size:12px;font-weight:550;display:inline-flex;align-items:center;gap:5px;color:#8594ae!important;}
.nd-back:hover {color:var(--nd-accent)!important;}
.nd-topbar-title>p {font-size:14px;line-height:1.5;color:#8493af;}
.nd-topbar-tools {display:flex;align-items:center;gap:12px;padding-top:0;}
.nd-search {display:flex;align-items:center;gap:10px;width:clamp(215px,23vw,345px);height:42px;border:1px solid var(--nd-line);background:var(--nd-surface);border-radius:11px;padding:0 14px;box-shadow:var(--nd-shadow);color:#9aabc5;}
.nd-work .nd-search input {width:100%;min-width:0;outline:0;border:0;box-shadow:none;border-radius:0;background:transparent;color:var(--nd-ink);font:400 12px var(--nd-font);padding:0;}
.nd-search input::placeholder {color:#a3afc4;}
.nd-profile {width:42px;height:42px;border:1px solid #e5effb;background:#edf7ff;color:#078cf5!important;display:grid;place-items:center;border-radius:12px;font-size:14px;font-weight:750;flex-shrink:0;}
.nd-toast {display:flex;align-items:center;gap:10px;color:#0a8460;background:#e8fff4;border:1px solid #c9f0df;border-radius:12px;margin:0 5px 18px;padding:12px 16px;font-weight:600;}
.nd-work-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,310px);gap:18px;align-items:start;}
.nd-work-content,.nd-work-side {display:grid;gap:16px;min-width:0;}
.nd-panel {background:var(--nd-surface);border:1px solid #ecf0f7;border-radius:var(--nd-radius);box-shadow:var(--nd-shadow);padding:20px;min-width:0;}
.nd-journey {padding:0 0 21px;overflow:hidden;}
.nd-hero {display:grid;grid-template-columns:minmax(0,43%) minmax(0,1fr);gap:19px;align-items:center;padding:20px;background:linear-gradient(108deg,#f2faff 0%,#ebf7ff 100%);border:3px solid var(--nd-surface);border-radius:17px;min-height:162px;}
.nd-book-summary {display:flex;align-items:center;gap:17px;min-width:0;padding-right:14px;border-right:1px solid #d9e8f5;}
.nd-cover {width:84px;height:116px;flex:0 0 84px;border-radius:7px;object-fit:cover;box-shadow:0 4px 13px rgba(38,75,119,.14);background:#e7eef7;}
.nd-cover-placeholder {display:grid;place-items:center;color:#7aaad4;background:linear-gradient(135deg,#ebf1fc,#dceffa);}
.nd-book-summary-text {min-width:0;}
.nd-book-summary h2 {font-size:18px;margin:10px 0 5px;overflow-wrap:anywhere;}
.nd-book-summary h2 a {color:var(--nd-ink);}
.nd-book-summary h2 a:hover {color:var(--nd-accent);}
.nd-book-summary p {font-size:12px;line-height:1.5;margin:3px 0;color:#6e83a3;overflow-wrap:anywhere;}
.nd-eyebrow {display:inline-flex;flex-wrap:wrap;align-items:center;gap:5px;background:#e1f1fc;color:#627a9c;border-radius:15px;padding:4px 9px;font-size:10px;font-weight:600;}
.nd-eyebrow a {display:inline-flex;align-items:center;gap:3px;color:#268fda;}
.nd-truncate {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.nd-status-summary {display:flex;gap:15px;min-width:0;align-items:flex-start;}
.nd-status-icon {display:grid;place-items:center;color:var(--nd-accent);width:45px;height:45px;flex:0 0 45px;border-radius:13px;background:#e1f1ff;}
.nd-overline {color:#138cf0;letter-spacing:.06em;font-size:10px;text-transform:uppercase;font-weight:750;margin:0 0 7px;}
.nd-status-summary h2 {font-size:clamp(18px,2vw,26px);margin-bottom:10px;line-height:1.22;}
.nd-status-summary p {font-size:13px;color:#647da3;line-height:1.5;max-width:43ch;}
.nd-timeline {list-style:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:18px 14px 0;margin:0;}
.nd-timeline-item {display:flex;align-items:center;text-align:center;flex-direction:column;gap:4px;min-width:0;position:relative;padding:0 5px;}
.nd-timeline-item:not(:last-child)::after {content:'';position:absolute;top:19px;left:calc(50% + 22px);width:calc(100% - 41px);height:2px;background:#e5ebf4;}
.nd-timeline-item.is-done:not(:last-child)::after {background:#50d6ad;}
.nd-timeline-dot {display:grid;place-items:center;width:40px;height:40px;border:1px solid #dbe3f0;background:#f8fafc;border-radius:50%;color:#a5afc2;position:relative;z-index:1;}
.nd-timeline-item.is-done .nd-timeline-dot {background:#d5fae9;color:#08ad79;border-color:transparent;}
.nd-timeline-item.is-current .nd-timeline-dot {background:#eff8ff;color:var(--nd-accent);border:2px solid var(--nd-accent);}
.nd-timeline-name {font-size:11px;line-height:1.35;color:#697c9d;font-weight:650;max-width:105px;}
.nd-timeline-item.is-current .nd-timeline-name {color:var(--nd-accent);}
.nd-timeline-item.is-done .nd-timeline-name {color:#293957;}
.nd-timeline-date {font-size:10px;color:#94a3ba;line-height:1.25;}
.nd-legacy-banner {display:flex;align-items:center;gap:10px;padding:18px 22px;color:#7d6542;font-size:12px;line-height:1.5;}
.nd-section-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 17px;}
.nd-section-head>div:first-child {display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;}
.nd-section-head h2 {font-size:19px;margin:0;}
.nd-pill {border-radius:30px;padding:5px 9px;display:inline-flex;align-items:center;gap:4px;white-space:normal;text-align:center;font-size:10px;font-weight:700;line-height:1.3;}
.nd-pill-green {background:#e2f9ef;color:#048e62;}
.nd-pill-neutral {background:#f0f3f8;color:#8592a9;}
.nd-pill-blue {background:#e9f5ff;color:#118ee8;}
.nd-light-link {border:1px solid var(--nd-line);border-radius:9px;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#536a8d!important;font-size:11px;font-weight:600;flex-shrink:0;min-height:36px;}
.nd-light-link:hover {background:#f4faff;}
.nd-cost-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;}
.nd-cost-cell {min-width:0;border:1px solid var(--nd-line);border-radius:12px;padding:12px 11px 13px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:137px;}
.nd-tile-icon {display:grid;place-items:center;flex:0 0 auto;width:37px;height:37px;border-radius:11px;}
.nd-blue {background:#e9f6ff;color:#078bf0;}
.nd-red {background:#fff0f1;color:#f44b63;}
.nd-green {background:#def9ed;color:#0bab76;}
.nd-slate {background:#f0f3fa;color:#8c9bb4;}
.nd-cost-cell .nd-tile-icon {width:32px;height:32px;border-radius:10px;margin-bottom:5px;}
.nd-cost-cell .nd-tile-icon svg {width:19px;height:19px;}
.nd-cell-label {color:#7d8eaa;font-size:10px;line-height:1.35;}
.nd-cost-cell strong {font-size:clamp(16px,1.5vw,21px);font-weight:750;line-height:1.2;white-space:normal;overflow-wrap:anywhere;letter-spacing:-.025em;}
.nd-cost-cell strong.nd-date-value {font-size:clamp(13px,1.2vw,18px);}
.nd-cost-cell small {font-size:10px;color:#9aa8bf;line-height:1.4;}
.nd-budget-note {display:flex;align-items:center;gap:13px;margin-top:11px;padding:12px 14px;background:linear-gradient(105deg,#e7fbf2,#effdf7);border-radius:12px;}
.nd-budget-note>div {min-width:0;flex:1;}
.nd-budget-note strong {font-size:13px;font-weight:750;color:#13634f;}
.nd-budget-note p {font-size:11px;color:#6b947f;line-height:1.45;margin:2px 0 0;}
.nd-budget-note a {white-space:nowrap;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:4px;color:#078c69;}
.nd-file-row {display:flex;align-items:flex-start;gap:12px;padding:12px 5px;border-top:1px solid var(--nd-line);}
.nd-file-title {min-width:0;flex:1;}
.nd-file-title strong {font-size:12px;font-weight:700;}
.nd-file-title p,.nd-description p {font-size:12px;margin:4px 0 0;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap;}
.nd-file-row time {color:#99a9bd;font-size:11px;white-space:nowrap;margin-top:3px;}
.nd-empty {display:flex;gap:12px;align-items:center;color:#7889a6;padding:8px 2px 6px;}
.nd-empty strong {color:#4b5d7b;font-size:12px;}
.nd-empty p {font-size:12px;margin:3px 0 0;line-height:1.5;}
.nd-description {border-top:1px solid var(--nd-line);padding:14px 3px 0;margin-top:6px;}
.nd-description strong {font-size:12px;}
.nd-count {background:#eff4fb;color:#6b82a3;border-radius:13px;padding:2px 8px;font-size:11px;letter-spacing:0;vertical-align:middle;}
.nd-events {list-style:none;margin:0;padding:0;}
.nd-events li {display:flex;align-items:flex-start;gap:13px;padding:11px 3px;border-top:1px solid var(--nd-line);}
.nd-events li:first-child {border-top:0;padding-top:1px;}
.nd-avatar {width:31px;height:31px;border-radius:50%;background:#edf4fc;color:#587ba6;display:grid;place-items:center;flex:0 0 auto;font-size:13px;font-weight:700;}
.nd-event-head {display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;}
.nd-event-head strong {font-size:12px;}
.nd-event-head time {font-size:10px;color:#9da9bc;}
.nd-event-type {font-size:11px;color:#56749d;}
.nd-events p {font-size:12px;line-height:1.55;margin:4px 0 0;color:#7f8ca5;overflow-wrap:anywhere;white-space:pre-wrap;}
.nd-work-side .nd-panel {padding:19px;}
.nd-next h2 {font-size:19px;margin:0 0 21px;}
.nd-side-stage {display:flex;gap:12px;align-items:flex-start;margin-bottom:16px;}
.nd-step-number {display:grid;place-items:center;border-radius:50%;background:#e6f4ff;color:#168de7;width:33px;height:33px;flex:0 0 33px;font-size:14px;font-weight:750;}
.nd-number-green {background:#dff8ec;color:#04a370;}
.nd-side-stage strong {display:block;font-size:13px;font-weight:750;padding-top:1px;margin-bottom:7px;}
.nd-side-stage p {font-size:12px;line-height:1.55;color:#8393ae;}
.nd-primary,.nd-secondary {width:100%;min-height:42px;border-radius:10px;font:700 12px/1.4 var(--nd-font);padding:11px 16px;border:1px solid transparent;cursor:pointer;display:flex;justify-content:center;align-items:center;gap:7px;text-align:center;}
.nd-work .nd-primary {background:linear-gradient(120deg,#008eff,#0086f2);color:#fff!important;box-shadow:0 4px 10px rgba(0,141,255,.15);border-color:transparent;}
.nd-work .nd-primary:hover {background:var(--nd-accent-hover);}
.nd-work .nd-secondary {background:var(--nd-surface);border-color:#dae4f2;color:#3d506f!important;}
.nd-work .nd-secondary:hover {background:#f4f9ff;}
.nd-link-button {text-decoration:none!important;}
.nd-action-form {display:grid;gap:9px;}
.nd-action-form label,.nd-secondary-details label {font-size:11px;font-weight:650;color:#7283a0;display:block;}
.nd-action-form input,.nd-action-form textarea,.nd-secondary-details textarea {display:block;resize:vertical;width:100%;min-width:0;background:#fff;border:1px solid #dbe5f1;border-radius:9px;min-height:38px;padding:10px;color:var(--nd-ink);font:12px/1.5 var(--nd-font);}
.nd-action-form .nd-primary {margin-top:1px;}
.nd-secondary-details {margin-top:9px;}
.nd-secondary-details>summary {display:block;list-style:none;padding:12px;cursor:pointer;border:1px solid #dbe5f1;border-radius:10px;text-align:center;color:#485a79;font-size:12px;font-weight:650;}
.nd-secondary-details>summary::-webkit-details-marker {display:none;}
.nd-secondary-details[open]>summary {margin-bottom:10px;}
.nd-secondary-details form {display:grid;gap:9px;}
.nd-feedback {padding:10px;border-radius:9px;background:#fff8ef;color:#9c742d!important;font-size:12px;margin-bottom:13px!important;}
.nd-side-muted {font-size:12px;padding:10px 1px;}
.nd-next-footer {border-top:1px solid var(--nd-line);margin-top:20px;padding-top:17px;display:flex;align-items:flex-start;gap:12px;}
.nd-step-muted {background:#f1f3f7;color:#91a0b7;}
.nd-next-footer p {font-size:11px;line-height:1.55;padding-top:1px;}
.nd-payment .nd-section-head {align-items:flex-start;flex-wrap:wrap;}
.nd-payment .nd-section-head h2 {font-size:18px;}
.nd-payment-link {display:flex;align-items:center;gap:10px;padding:10px;margin:0 0 10px;border-radius:11px;background:#eff8ff;color:#244166!important;}
.nd-payment-link:hover {background:#e2f3ff;}
.nd-payment-link>span:nth-child(2) {flex:1;min-width:0;}
.nd-payment-link strong {display:block;font-size:12px;line-height:1.4;}
.nd-payment-link small {font-size:10px;color:#8192aa;display:block;}
.nd-payment-link>svg {color:#0095ef;flex-shrink:0;}
.nd-payment-amounts,.nd-payment-info {padding:0 0 14px;margin:0;}
.nd-payment-amounts>div,.nd-payment-info>div {display:flex;align-items:baseline;justify-content:space-between;gap:9px;padding:7px 0;}
.nd-payment-amounts dt,.nd-payment-info dt {font-size:10px;color:#8390a9;line-height:1.4;}
.nd-payment-amounts dd,.nd-payment-info dd {font-size:12px;font-weight:700;color:var(--nd-ink);margin:0;text-align:right;line-height:1.4;overflow-wrap:anywhere;}
.nd-payment-amounts .nd-total {border-top:1px solid var(--nd-line);margin-top:6px;padding-top:13px;}
.nd-payment-info {border-top:1px solid var(--nd-line);padding-top:7px;}
.nd-payment-info dt {display:inline-flex;gap:6px;align-items:center;}
.nd-work .nd-clarification {padding:16px 8px 26px;color:#7f8faa;font-size:12px;max-width:850px;}
.nd-clarification>summary {cursor:pointer;font-weight:600;color:#6883a5;}
.nd-clarification p {margin:7px 0;line-height:1.55;}

@media (min-width:1500px) {
  .nd-shell .main {padding-left:30px;padding-right:30px;}
  .nd-work-grid {grid-template-columns:minmax(0,1fr) 328px;gap:20px;}
  .nd-work-side .nd-panel {padding:21px;}
}
@media (max-width:1280px) {
  .nd-shell .sidebar {width:220px;flex-basis:220px;}
  .nd-shell .main {padding-left:18px;padding-right:18px;}
  .nd-work-grid {grid-template-columns:minmax(0,1fr) 270px;gap:13px;}
  .nd-hero {gap:13px;padding:16px;}
  .nd-book-summary {gap:10px;}
  .nd-cover {width:67px;height:96px;flex-basis:67px;}
  .nd-cost-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .nd-cost-cell {min-height:112px;}
}
@media (max-width:1050px) {
  .nd-work-grid {grid-template-columns:minmax(0,1fr);}
  .nd-work-side {grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;}
  .nd-work-side .nd-next {grid-column:1;}
  .nd-work-side .nd-payment {grid-column:2;grid-row:1;}
}
@media (max-width:860px) {
  .nd-shell .sidebar {position:fixed;top:0;left:0;bottom:0;z-index:103;width:min(325px,calc(100vw - 44px));height:100dvh;flex-basis:auto;transform:translateX(-105%);visibility:hidden;padding:18px 13px 0;}
  .nd-shell .sidebar.nav-open {transform:translateX(0);visibility:visible;}
  .nd-shell .main {width:100%;padding:0 16px 100px;}
  .nd-shell .mobile-nav {display:flex;background:var(--nd-surface);border-color:var(--nd-line);}
  .nd-shell .mobile-nav-item.active {background:#ebf7ff;color:var(--nd-accent);}
  .nd-topbar {padding-top:20px;}
}
@media (max-width:620px) {
  .nd-work {font-size:13px;}
  .nd-shell .main {padding-left:12px;padding-right:12px;}
  .nd-work h1 {font-size:25px;margin:7px 0;}
  .nd-topbar {gap:10px;padding:17px 3px;}
  .nd-topbar-title>p {font-size:12px;}
  .nd-search {display:none;}
  .nd-profile {width:36px;height:36px;border-radius:10px;}
  .nd-panel {padding:16px;border-radius:13px;}
  .nd-work-content,.nd-work-side {gap:12px;}
  .nd-hero {grid-template-columns:1fr;gap:16px;}
  .nd-book-summary {border:0;padding-right:0;}
  .nd-status-summary {border-top:1px solid #d9e8f5;padding-top:15px;}
  .nd-status-summary h2 {font-size:21px;}
  .nd-timeline {grid-template-columns:repeat(3,minmax(0,1fr));row-gap:20px;padding:17px 10px 0;}
  .nd-timeline-item:nth-child(3)::after {display:none;}
  .nd-timeline-item:nth-child(4)::before {content:'';position:absolute;top:-20px;left:50%;height:20px;border-left:2px solid #dfe7f0;}
  .nd-work-side {grid-template-columns:1fr;}
  .nd-work-side .nd-next,.nd-work-side .nd-payment {grid-column:1;grid-row:auto;}
  .nd-cost-grid {gap:8px;}
  .nd-budget-note {flex-wrap:wrap;}
  .nd-budget-note a {margin-left:48px;}
  .nd-section-head h2 {font-size:17px;}
  .nd-section-head {align-items:flex-start;}
  .nd-light-link {padding:8px;}
  .nd-file-row {flex-wrap:wrap;}
  .nd-file-row time {margin-left:50px;}
}
@media (max-width:360px) {
  .nd-cost-grid {grid-template-columns:1fr;}
  .nd-timeline-name {font-size:10px;}
  .nd-timeline-dot {width:35px;height:35px;}
  .nd-timeline-item:not(:last-child)::after {top:17px;}
}
@media (prefers-reduced-motion:reduce) {.nd-shell *, .nd-shell *:before,.nd-shell *:after {animation-duration:.01ms!important;transition-duration:.01ms!important;}}

/* Respect the user's dark preference without changing other pages. */
:root[data-theme="dark"] .nd-shell {
  --nd-bg:#131c29;--nd-surface:#1d2938;--nd-ink:#edf4ff;--nd-muted:#a5b6cd;
  --nd-quiet:#8193ae;--nd-line:#36485e;--nd-blue-pale:#223e57;
  --nd-shadow:0 3px 20px rgba(0,0,0,.15);
}
:root[data-theme="dark"] .nd-shell .sidebar,:root[data-theme="dark"] .nd-shell .nav-foot {background:var(--nd-surface);border-color:var(--nd-line);}
:root[data-theme="dark"] .nd-shell .nd-hero {background:linear-gradient(108deg,#203951,#1b354f);border-color:var(--nd-surface);}
:root[data-theme="dark"] .nd-shell .nd-panel,:root[data-theme="dark"] .nd-shell .nd-search,:root[data-theme="dark"] .nd-shell .nd-secondary {background:var(--nd-surface);border-color:var(--nd-line);}
:root[data-theme="dark"] .nd-shell .nd-cost-cell {border-color:var(--nd-line);}
:root[data-theme="dark"] .nd-shell .nd-cost-cell strong,:root[data-theme="dark"] .nd-shell .nd-payment-amounts dd,:root[data-theme="dark"] .nd-shell .nd-payment-info dd {color:var(--nd-ink);}
:root[data-theme="dark"] .nd-shell .nd-book-summary h2 a,:root[data-theme="dark"] .nd-shell .brand,:root[data-theme="dark"] .nd-shell .nav-foot .who {color:var(--nd-ink);}
:root[data-theme="dark"] .nd-shell .nd-budget-note {background:#1f4739;}
:root[data-theme="dark"] .nd-shell .nd-payment-link,:root[data-theme="dark"] .nd-shell .nd-profile {background:#203d57;color:#9bd2ff!important;}

/* The assistant remains available from the page header; its floating
   launcher is hidden only when the Next shell supplies the equivalent. */
body:has(.nd-shell) > .orb {display:none;}
.nd-ai {height:42px;width:42px;border:1px solid #e5effb;background:#f0f8ff;color:#078cf5;border-radius:12px;cursor:pointer;display:grid;place-items:center;font-size:20px;flex-shrink:0;}
.nd-ai:hover {background:#e1f2ff;}
@media (max-width:620px) {
  .nd-ai {height:36px;width:36px;border-radius:10px;}
  /* Surface the decision immediately after the work's current stage. */
  .nd-work-grid {display:grid;grid-template-columns:minmax(0,1fr);}
  .nd-work-content,.nd-work-side {display:contents;}
  .nd-journey {order:1;}
  .nd-next {order:2;}
  .nd-cost {order:3;}
  .nd-materials {order:4;}
  .nd-payment {order:5;}
  .nd-comments {order:6;}
}
