/* Gorgi presentation adapted from ERP b086e20, app/ui/gorgi-ui.css. */
html[data-theme=light] {
  color-scheme: light;
  --paper:#dce9e1; --ink:#16392e; --muted:#415b50; --line:#95b2a3;
  --brand:#205e46; --surface:#e8f1eb; --field:#e2eee6;
  --rim:#ffffffb3; --focus:#286e52; --selected:#d5e3d8;
  --glass:linear-gradient(145deg,#f1f8efbf,#dce9dfb8);
  --hover:linear-gradient(145deg,#fbfff6,#cce6d3);
  --lift:3px 4px 9px #9cb1a345,inset 0 2px 3px #fff,inset 0 -2px 4px #a8c5b36b;
  --inset:inset 4px 4px 8px #8ba89755,inset -3px -3px 7px #ffffffc4;
  --halo:#f9fff7; --danger:#842425; --error-bg:#ffe8e5;
}
html[data-theme=dark] {
  color-scheme: dark;
  --paper:#122c25; --ink:#effaf2; --muted:#c0dbcd; --line:#5f8575;
  --brand:#b6f1cf; --surface:#1e3d32; --field:#122e24;
  --rim:#b9dfc75e; --focus:#a6dbbf; --selected:#132d22;
  --glass:linear-gradient(145deg,#3b5b4c,#152e27);
  --hover:linear-gradient(145deg,#537e62,#31583f);
  --lift:3px 4px 9px #04120b75,inset 0 2px 3px #effff13b,inset 0 -2px 4px #a2d3ad24;
  --inset:inset 4px 4px 9px #03130ba8,inset -3px -3px 7px #c7ffda10;
  --halo:#284e40; --danger:#ffd2ce; --error-bg:#502b2b;
}
html[data-theme] body {
  margin:0; min-height:100vh; color:var(--ink);
  background:radial-gradient(ellipse at 95% 0%,var(--halo),transparent 60%),var(--paper);
}
html[data-theme] :is(.topbar,.dock,.card,.hero,.account,.story-strip,.support-shell) {
  background:linear-gradient(145deg,#ffffff12,transparent 44%),var(--surface);
  border:1px solid var(--rim); box-shadow:var(--lift);
}
html[data-theme] :is(.card,.hero,.account,.story-strip,.support-shell) {border-radius:20px}
html[data-theme] .topbar {backdrop-filter:blur(18px) saturate(112%);background:color-mix(in srgb,var(--surface) 91%,transparent)}
.topbar .actions {gap:6px}
.topbar .brand {font-size:20px}
html[data-theme] :is(button,.dock a,.story-strip a,.profile-link) {
  background:var(--glass);color:var(--ink);border:1px solid var(--rim);box-shadow:var(--lift);
  border-radius:999px;transition:background .3s,border-color .3s,box-shadow .3s;
}
html[data-theme] :is(button,.dock a,.story-strip a,.profile-link):hover:not(:disabled) {background:var(--hover)}
html[data-theme] :is(button:active,[aria-pressed=true],.dock a[aria-current]) {
  background:var(--selected);box-shadow:var(--inset);transform:none;
}
html[data-theme] button.primary {background:linear-gradient(135deg,#35765a,#235641);color:#fff}
html[data-theme] button.danger {background:var(--error-bg);color:var(--danger)}
html[data-theme] :is(input,select,textarea) {
  background:var(--field);color:var(--ink);border:1px solid var(--line);box-shadow:var(--inset);
  border-radius:12px;
}
html[data-theme] :focus-visible {outline:3px solid var(--focus);outline-offset:3px}
html[data-theme] a {color:var(--brand)}
html[data-theme] :is(.status,.insight,#receipt) {background:var(--field);color:var(--ink);border-radius:12px}
html[data-theme] :is(.error,.status.error,#planError,#statsError,#resultError,#delete-feedback) {color:var(--danger)}
html[data-theme] .status.error {background:var(--error-bg)}
html[data-theme] :is(.post-cover,.story-ring,.avatar) {background:var(--glass);color:var(--ink);box-shadow:var(--lift)}
html[data-theme] .hero p {color:var(--muted)}
html[data-theme] .row {background:var(--field);border-color:var(--line);border-radius:12px}
.story-strip {overflow:visible;flex-wrap:wrap}
html[data-theme] .story-strip :is(button,a) {display:flex;align-items:center;justify-content:center;width:auto;padding:7px 12px;font-size:13px}
html[data-theme] .story-ring {height:32px;width:32px;border:0}
.dock {gap:10px}
html[data-theme] .dock a {color:var(--ink)}
html[data-theme] .home::after {background:var(--surface)}
.account-shell .account {padding:clamp(20px,5vw,36px)}
.account-shell .brand {padding:14px;border:1px solid var(--rim);border-radius:18px;background:var(--glass);box-shadow:var(--lift)}
.account-shell h1 {font-size:24px;margin-block:18px 8px}
.theme-toolbar {display:flex;justify-content:flex-end;margin-bottom:12px}
.support-shell {padding:clamp(14px,4vw,30px)}
html[data-theme] .account-shell #submit {width:100%;min-height:48px;border-radius:12px}
html[data-theme] .account-shell input {min-height:49px}
@media(min-width:861px) {
  html[data-theme] .account-shell {margin-inline-start:clamp(36px,4vw,64px);margin-inline-end:auto;padding-top:72px;max-width:420px}
}
@media(max-width:480px) {
  html[data-theme] .account-shell {padding-inline:16px;padding-top:22px}
}
@media(max-width:860px) {
  .dock {gap:4px}
  .dock a {min-width:0}
  .topbar .actions button {padding-inline:8px}
  html[data-theme] .story-strip {justify-content:flex-start;gap:8px}
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme] *,html[data-theme] *::before,html[data-theme] *::after {transition:none!important;animation:none!important}
}
.nav-icon {width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.menu-title {font-size:23px;font-weight:700;padding:12px 12px 6px}
.menu-title small {display:block;font-size:12px;margin-top:14px}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-theme] .dock a {border-radius:11px;box-shadow:none;background:transparent;border-color:transparent}
html[data-theme] .dock a:hover {background:var(--hover)}
html[data-theme] .dock a[aria-current] {background:var(--selected);box-shadow:var(--inset);border-color:var(--line)}
@media(min-width:861px) {
  .menu-toggle {display:none}
  html:has(#section-menu) {scroll-padding-top:95px}
  html[data-theme] .topbar {inset-inline-start:237px;height:81px}
  html[data-theme] .dock {inset:0 0 0 auto;width:237px;padding:20px;z-index:6}
  html[data-theme] #home,html[data-theme] body:has(#section-menu) footer {
    width:calc(100% - 237px);max-width:1280px;margin-inline-start:237px;margin-inline-end:auto;padding-inline:clamp(20px,3vw,38px)
  }
  html[data-theme] #home {padding-top:106px}
}
@media(max-width:860px) {
  html:has(#section-menu) {scroll-padding-bottom:16px;scroll-padding-top:76px}
  html[data-theme] .topbar {height:65px}
  html[data-theme] #home {padding-top:79px}
  html[data-theme] body:has(#section-menu) footer {padding-bottom:20px}
  .menu-toggle {min-width:40px;min-height:40px;padding:4px}
  html[data-theme] .dock {display:none;inset:65px 0 auto auto;width:min(280px,90vw);padding:12px;max-height:calc(100dvh - 70px);overflow:auto}
  .topbar:has(#menu-toggle[aria-expanded=true])~#home .dock {display:flex;flex-direction:column;align-items:stretch}
  html[data-theme] .dock a {flex-direction:row;justify-content:flex-start;gap:10px;font-size:14px;padding:10px}
  html[data-theme] .topbar .brand {font-size:17px;gap:5px;margin-inline-end:auto}
  .topbar .brand .camera {display:none}
}
.signed-job, #signed-job {white-space:pre-wrap;overflow-wrap:anywhere;direction:ltr;max-width:100%}
#signed-report dd {overflow-wrap:anywhere}
