@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #252c2a;
  background: #f4f5f3;
  --orange: #d65b27;
  --dark: #25282b;
  --line: #dce1df;
  --muted: #67716f;
  --surface: #fff;
  --surface-soft: #f1f4f2;
  --ink: #252c2a;
  --green: #26734e;
  --red: #a43e37;
  --blue: #345e78;
  --amber: #8d571b;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f4f5f3; font-size: 13px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
button {
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
button:hover { transform: translateY(-1px); }
button:active { transform: scale(.98); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #d65b2745;
  outline-offset: 2px;
}
button, .btn {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: #2b3335;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.primary { border-color: var(--orange); background: var(--orange); color: #fff; box-shadow: 0 3px 9px #b94e211c; }
.danger { border-color: #e4c5c1; background: #fff9f8; color: var(--red); }
.quiet { border: 0; background: transparent; }

h1, h2, h3, p { margin: 0; }
h1 { font-family: Manrope, "DM Sans", sans-serif; font-size: 27px; letter-spacing: -.7px; line-height: 1.15; }
h2 { font-size: 17px; letter-spacing: -.2px; }
h3 { font-size: 14px; }
small, .muted { color: var(--muted); }

.shell { display: grid; min-height: 100dvh; grid-template-columns: 224px minmax(0, 1fr); transition: grid-template-columns .24s cubic-bezier(.2,.75,.25,1); }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
  padding: 17px 12px;
  border-right: 1px solid #373a3b;
  background: var(--dark);
  color: #f3f2ef;
}
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #858d8e transparent;
}
.sidebar:hover,
.sidebar:focus-within {
  scrollbar-color: #d65b27 transparent;
}
/* Chromium/Safari prefer standard scrollbar properties over the custom
   pseudo-elements; reset them here so the arrow-free styling takes effect. */
@supports selector(::-webkit-scrollbar) {
  .sidebar,
  .sidebar:hover,
  .sidebar:focus-within {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}
.sidebar::-webkit-scrollbar { width: 8px; height: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #858d8e;
  background-clip: padding-box;
}
.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar:focus-within::-webkit-scrollbar-thumb { background-color: #d65b27; }
.sidebar::-webkit-scrollbar-thumb:active { background-color: #f08a58; }
.sidebar::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@media (forced-colors: active) {
  .sidebar,
  .sidebar:hover,
  .sidebar:focus-within { scrollbar-color: auto; }
  .sidebar::-webkit-scrollbar-thumb {
    border-color: transparent;
    background-color: ButtonText;
  }
  .sidebar::-webkit-scrollbar-thumb:hover,
  .sidebar:focus-within::-webkit-scrollbar-thumb,
  .sidebar::-webkit-scrollbar-thumb:active { background-color: Highlight; }
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: -17px -12px 9px;
  padding: 16px 14px 12px;
  background: #f2eee6;
}
.brand small { color: #655c51; font-size: 10px; letter-spacing: 1.1px; line-height: 1.55; }
.navlabel { margin: 14px 10px 3px; color: #8f9996; font-size: 10px; font-weight: 750; letter-spacing: 1.35px; }
.nav {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d0d5d2;
  font-size: 13px;
  font-weight: 550;
  padding: 9px 11px;
}
.nav.active { background: #373b3d; color: #f3a27b; box-shadow: inset 2px 0 var(--orange); }
.nav:hover { background: #323638; }
.nav.active:hover { background: #373b3d; }
.nav span:first-child { display: inline-flex; width: 21px; align-items: center; justify-content: center; }
.sidebar footer { margin-top: auto; padding: 15px; border-top: 1px solid #3a3d3e; color: #929a97; font-size: 11px; }
@media (min-width: 851px) {
  .collapsed .shell { grid-template-columns: 72px minmax(0, 1fr); }
  .collapsed .sidebar .nav span:nth-child(2), .collapsed .brand small, .collapsed .navlabel, .collapsed .sidebar footer { display: none; }
  .collapsed .brand { align-items: center; margin: -17px -12px 9px; padding: 15px 5px 11px; }
  .collapsed .nav { justify-content: center; }
}
.menuveil { display: none; }

.main { min-width: 0; }
.top {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 11px 23px;
  border-bottom: 1px solid var(--line);
  background: #f9faf8ed;
  backdrop-filter: blur(12px);
}
.top .search { max-width: 370px; flex: 1; }
.top .theme-icon { width: 18px; height: 18px; }
.top-brand {
  display: flex;
  min-width: 0;
  flex: none;
  align-items: center;
  gap: 9px;
  padding: 4px 8px;
  background: transparent;
  color: #282a29;
}
.top-brand .topname { min-width: 0; }
.top-brand .topname b { white-space: nowrap; }
.spacer { flex: 1; }
.content { max-width: 1600px; margin: auto; padding: 22px 24px; }
.interface-motion-ready .dashboard { animation: none; }
@keyframes enter {
  from { opacity: .35; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.headline { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.eyebrow { margin-bottom: 7px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.headline p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 12px; }
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 13px; }
.workflow-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 12px; }
.workflow-filters > label { flex: 1 1 150px; }
.workflow-model, .workflow-progress { min-width: 130px; }
.workflow-model { display: grid; gap: 5px; padding: 0 8px; }
.workflow-model b { font-size: 13px; }
.workflow-progress { display: grid; gap: 5px; }
.workflow-approvals { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.workflow-approvals > .subtle { flex-basis: 100%; }
.approval-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.approval-chip b { font-weight: 550; }
.scope-label { margin: 12px 0 8px; }
.panel, .tile {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 2px 9px #29322d08;
}
.tile .value { margin: 9px 0; font-size: 29px; font-weight: 750; letter-spacing: -.7px; }
.tile .tag { color: var(--orange); font-size: 11px; font-weight: 750; }
.stack { display: grid; gap: 10px; }
.bar { height: 7px; overflow: hidden; border-radius: 10px; background: #e9eeeb; }
.bar i { display: block; height: 100%; border-radius: 10px; background: var(--orange); }
.tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; white-space: nowrap; }
th { background: #f2f5f3; color: #66716d; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
td, th { padding: 11px 13px; border-bottom: 1px solid #e9edeb; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #f8faf8; }
.empty { padding: 28px 20px; border-radius: 8px; background: #f8faf8; color: var(--muted); text-align: center; }

input, select, textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d3dad6;
  border-radius: 7px;
  background: #fff;
  color: #28312f;
}
input:focus, textarea:focus, select:focus { border-color: var(--orange); outline: 3px solid #d65b271c; }
input[type=checkbox] { width: auto; accent-color: var(--orange); }
label { display: grid; gap: 5px; color: #535e5a; font-size: 12px; font-weight: 650; }
textarea { min-height: 85px; resize: vertical; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.wide { grid-column: 1 / -1; }

dialog {
  width: min(760px, 94vw);
  max-height: 91dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  box-shadow: 0 24px 80px #20282432;
}
dialog::backdrop { background: #17201db0; backdrop-filter: blur(3px); }
.modalhead, .modalfoot { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #f9faf8; }
.modalhead h2 { font-size: 17px; }
.modalhead button { min-width: 34px; padding: 5px; }
.modalbody { max-height: 67dvh; overflow: auto; padding: 18px; }
.modalfoot { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; background: #fff; }
dialog.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100vw);
  max-width: none;
  max-height: none;
  height: 100dvh;
  margin: 0;
  border-radius: 14px 0 0 14px;
}
dialog.drawer .modalbody { max-height: calc(100dvh - 120px); }

.login {
  position: relative;
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vh, 52px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(ellipse at 78% 14%, #3b3b37 0, transparent 42%),
    linear-gradient(138deg, #292c2e, #202426 72%);
}
.login::before, .login::after { position: absolute; z-index: 0; pointer-events: none; content: ""; }
.login::before {
  inset: 0;
  opacity: .34;
  background: repeating-linear-gradient(135deg, transparent 0 104px, #ffffff09 105px, transparent 106px 210px);
  mask-image: linear-gradient(110deg, transparent 14%, #000 55%, transparent 100%);
}
.login::after {
  top: -27vw;
  right: -15vw;
  width: min(64vw, 830px);
  aspect-ratio: 1;
  border: 1px solid #d65b274a;
  box-shadow: 0 0 0 42px #ffffff05, 0 0 0 110px #ffffff04, 0 0 0 180px #ffffff03;
  transform: rotate(45deg);
}
.loginform {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 480px);
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 27px;
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid #ffffffb8;
  border-radius: 18px;
  background: #f6f5f1;
  box-shadow: 0 32px 90px #11171570, 0 2px 8px #14191a36;
}
.login-intro { display: grid; gap: 4px; }
.loginform .eyebrow { margin-bottom: 4px; color: #a8431e; }
.loginform h1 { color: #25282b; font-size: clamp(30px, 3vw, 36px); letter-spacing: -1.1px; }
.loginform .muted { color: #646b68; font-size: 14px; line-height: 1.55; }
.loginform .stack { gap: 15px; }
.loginform label { color: #454c49; }
.loginform input:not([type=checkbox]), .loginform select { min-height: 48px; border-color: #d2d4cf; border-radius: 8px; background: #fffefa; }
.loginform .primary { min-height: 49px; margin-top: 4px; border-radius: 8px; background: #cf5422; box-shadow: 0 8px 18px #b64b2426; font-size: 14px; font-weight: 750; }
.loginform .primary:hover { background: #b9471b; }
.loginhero {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: calc(50% + 310px);
  width: min(360px, calc(50vw - 340px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 22px;
  color: #f3f2ef;
  transform: translateY(-50%);
}
.loginhero .eyebrow { color: #e28a60; }
.loginhero h1 { max-width: 350px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -1.6px; line-height: 1.1; }
.loginhero p { max-width: 320px; margin-top: 18px; color: #d0d2ce; font-size: 14px; line-height: 1.8; }
@media (min-width: 1051px) {
  .loginhero { left: calc(50% + 270px); width: min(310px, calc(50vw - 310px)); }
}
@media (min-width: 851px) and (max-width: 1050px) {
  .loginhero { display: none; }
}
@media (max-width: 850px) {
  .login {
    min-height: 100dvh;
    align-content: center;
    padding: max(86px, calc(56px + env(safe-area-inset-top))) max(18px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background:
      radial-gradient(ellipse at 12% 8%, #41403b 0, transparent 43%),
      radial-gradient(ellipse at 88% 78%, #302d2b 0, transparent 40%),
      linear-gradient(145deg, #292c2e, #202426 78%);
  }
  .login::before {
    opacity: .42;
    background:
      linear-gradient(135deg, transparent 0 49.7%, #ffffff0b 49.8% 49.95%, transparent 50%),
      repeating-linear-gradient(135deg, transparent 0 72px, #ffffff08 73px, transparent 74px 145px);
    mask-image: linear-gradient(180deg, #000, #000 58%, transparent);
  }
  .login::after {
    top: -112px;
    right: -158px;
    width: 300px;
    border-color: #d65b275c;
    box-shadow: 0 0 0 24px #ffffff05, 0 0 0 65px #ffffff04;
  }
  .loginform {
    width: min(100%, 440px);
    min-height: 0;
    gap: 24px;
    padding: clamp(25px, 7vw, 38px);
    border-radius: 16px;
    box-shadow: 0 22px 58px #12171875, 0 2px 8px #14191a36;
    transform: none;
  }
  .loginform h1 { font-size: clamp(29px, 8vw, 34px); }
  .loginform .muted { font-size: 14px; }
  .loginform input:not([type=checkbox]), .loginform select { min-height: 48px; font-size: 16px; }
  .loginform .stack { gap: 14px; }
  .loginform .primary { min-height: 50px !important; }
  .loginform .row { max-width: 100%; }
  .loginhero { display: none; }
  body:has(#app .login) #pwa-install {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    bottom: auto;
  }
}
@media (max-width: 380px) {
  .login { padding-right: max(14px, env(safe-area-inset-right)); padding-left: max(14px, env(safe-area-inset-left)); }
  .loginform { gap: 20px; padding: 23px 20px; }
  .loginform .stack { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .loginform .primary, .loginform button, .loginform input, .loginform select { transition: none; }
}
.pass { position: relative; }
.pass input { padding-right: 50px; }
.eye { position: absolute; top: 4px; right: 4px; padding: 6px; border: 0; background: transparent; }
.eye svg { width: 22px; height: 22px; }

.toast { max-width: 380px; padding: 12px 15px; border: 1px solid #c8d9e3; border-radius: 9px; background: #eaf1f5; color: var(--blue); box-shadow: 0 8px 26px #1d29201d; animation: enter .2s; font-size: 13px; }
.toast.success { border-color: #bfddc9; background: #e9f4ed; color: #236640; }
.toast.delete, .toast.error { border-color: #e9c0bc; background: #f9e9e7; color: #9f3932; }
.toast.warning { border-color: #edd1aa; background: #fff1df; color: #8d571b; }
.toast.info { border-color: #c8d9e3; background: #eaf1f5; color: #345e78; }
#toasts { position: fixed; z-index: 9999; top: 72px; right: 17px; display: grid; gap: 8px; }
.offline { display: none; }
.offline.show { display: block; }

.job { border-left: 4px solid var(--orange); }
.number { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.timeline { display: flex; gap: 8px; overflow: auto; padding: 8px 0; }
.stage { min-width: 145px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.checkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.checkgrid label { display: flex; align-items: center; font-weight: 400; }
.ic { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.ic svg { width: 18px; height: 18px; stroke-width: 1.8; }
.thumb { width: 60px; height: 48px; flex: none; border: 1px solid var(--line); border-radius: 7px; background: #f1f4f2; object-fit: contain; }
.thumb.large { width: 100%; height: 120px; }
.thumb.emptyimg { display: grid; place-items: center; color: #99a39e; }
.split { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); align-items: start; gap: 12px; }
.workflow-products { position: sticky; top: 12px; z-index: 2; display: flex; flex-direction: column; max-height: calc(100dvh - 24px); overflow: hidden; }
.workflow-products > .panelhead { flex: none; }
.workflow-product-tools { flex: none; }
.workflow-product-tools .scope-label { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.workflow-product-tools .scope-label span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); letter-spacing: 0; }
.workflow-product-search { display: flex; align-items: center; gap: 8px; min-height: 42px; margin-bottom: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--muted); }
.workflow-product-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px #d65b2717; }
.workflow-product-search svg { width: 17px; height: 17px; flex: none; }
.workflow-product-search input { width: 100%; min-width: 0; min-height: 40px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.workflow-product-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #c4c9c6 transparent; scrollbar-width: thin; }
.workflow-product-pick { min-height: 64px; margin: 0 0 7px; padding: 8px; border-radius: 9px; }
.workflow-product-pick .thumb { width: 52px; height: 46px; }
.workflow-product-pick .grow { min-width: 0; }
.workflow-product-pick .grow b { display: block; overflow-wrap: anywhere; }
.workflow-product-pick .subtle { margin-top: 2px; }
.workflow-product-pick .progress { margin-top: 6px; }
.workflow-product-no-results { padding: 14px 8px; text-align: center; }
.workflow-manage-products { flex: none; align-self: stretch; margin-top: 3px; }
.workflow-product-pick[hidden] { display: none; }
.listrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.listrow:last-child { border: 0; }
.pick { width: 100%; justify-content: flex-start; text-align: left; white-space: normal; }
.pick.selected { border-color: var(--orange); background: #fbf0e9; color: #873c20; }
.tabs { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 12px; padding: 2px 0; }
.tabs button { border: 0; background: transparent; color: var(--muted); }
.tabs button.active { border-bottom: 2px solid var(--orange); border-radius: 0; color: var(--orange); }
.unitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 6px; }
.unitgrid button { display: block; padding: 7px; text-align: left; white-space: normal; }
.unitgrid button.selected { border-color: var(--orange); background: #fbf0e9; color: #873c20; }
.step { display: grid; grid-template-columns: 24px minmax(120px, 1fr) auto 110px; align-items: center; gap: 10px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.step > .actions { grid-column: 2 / -1; }
.step-title { min-width: 0; overflow-wrap: anywhere; }
.step-select { display: grid; place-items: center; min-height: 32px; cursor: pointer; }
.step:last-child { border: 0; }
.step strong { display: block; }
.status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 5px; background: #edf0ee; color: #5d6864; font-size: 11px; white-space: nowrap; }
.status.running { background: #e8f0f5; color: #315f83; }
.status.done, .status.approved { background: #e8f3ec; color: #26734e; }
.status.paused, .status.pending { background: #fff2dc; color: #94601d; }
.status.blocked, .status.rejected, .status.revision { background: #f9e9e7; color: #a43e37; }
.step-status-button { min-height:44px; padding:10px 14px; gap:12px; font-size:13px; border-radius:9px; border:1px solid #b7bfbc; background:#eef1ef; color:#384740; box-shadow:0 2px 5px #17201d0a; }
.step-status-button.running { background:#e3f0fb; border-color:#82a7c7; color:#204f75; }
.step-status-button.done { background:#daf1e2; border-color:#78ad8d; color:#1c633c; }
.step-status-button.paused { background:#fff0d4; border-color:#caa360; color:#74460b; }
.step-status-button.blocked { background:#ffe5e0; border-color:#cb8b80; color:#8a3027; }
.step-status-button:focus-visible { outline:3px solid var(--orange); outline-offset:3px; }
.step-state-summary { display:grid; gap:12px; }
.step-state-summary .status { justify-self:start; }
.step-state-summary p { color:var(--muted); line-height:1.5; }
.step-state-options { display:flex; flex-wrap:wrap; gap:10px; }
.step-state-options button { min-height:44px; flex:1 1 130px; }
.refresh-data { flex-shrink:0; min-height:42px; }
.refresh-data[aria-busy="true"] svg { animation:refresh-spin 1s linear infinite; }
@keyframes refresh-spin { to { transform:rotate(360deg); } }
@media(max-width:850px){.refresh-data span{display:none}.top .refresh-data{width:44px;padding:8px}.top{gap:7px}.top-brand{gap:0;padding:3px 4px}}
@media(prefers-reduced-motion:reduce){.refresh-data[aria-busy="true"] svg{animation:none}}
.dark .step-status-button.running { background:#233e54; border-color:#527f9f; color:#c7e6ff; }
.dark .step-status-button.done { background:#204632; border-color:#4d9467; color:#b9efca; }
.dark .step-status-button.paused { background:#49391f; border-color:#aa8345; color:#ffe0a2; }
.dark .step-status-button.blocked { background:#542e29; border-color:#ad6a60; color:#ffd1c9; }
.subtle { color: var(--muted); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.actions button { min-height: 29px; padding: 4px 7px; font-size: 12px; }
.panelhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpi { padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.kpi b { display: block; font-size: 21px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.project-tile-progress { display: flex; align-items: center; min-height: 68px; margin: 10px 0; }
.project-progress-ring { position: relative; width: 76px; height: 76px; flex: none; color: var(--ink); }
.project-progress-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.project-progress-ring svg circle { fill: none; stroke-width: 9; }
.project-ring-track { stroke: #eadfd1; }
.project-ring-value { stroke: #c75a2b; stroke-dasharray: var(--progress-value) 100; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.project-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.project-ring-center b { color: #33312d; font-family: Manrope, sans-serif; font-size: 18px; line-height: 1.1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.project-ring-center span { margin-top: 2px; color: #766c60; font-size: 9px; line-height: 1; }
.project-ring-compact { width: 62px; height: 62px; }
.project-ring-compact svg circle { stroke-width: 8; }
.project-ring-compact .project-ring-center b { font-size: 15px; }
.project-ring-compact .project-ring-center span { font-size: 8px; }
.kpi-progress { display: grid; min-height: 100px; place-items: center; padding: 7px; }
.project-ring-detail { width: 82px; height: 82px; }
.dark .project-ring-track { stroke: #50473d; }
.dark .project-ring-center b { color: #f0ebe3; }
.dark .project-ring-center span { color: #c1b7aa; }
.compact { min-height: 30px; padding: 5px 8px !important; }
.imagegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 9px; }
.imagegrid img { width: 100%; height: 92px; border: 1px solid var(--line); border-radius: 6px; object-fit: contain; }
.roleperm { display: grid; gap: 7px; font-size: 11px; }
.perm-header, .perm-row { display: grid; align-items: center; gap: 6px; }
.perm-header { color: var(--muted); font-size: 10px; font-weight: 700; }
.perm-row { padding: 7px 0; border-bottom: 1px solid var(--line); }
.perm-row label { display: flex; min-width: 0; align-items: center; gap: 5px; font-weight: 450; }
.perm-row label span { display: none; }
.scrollx { overflow: auto; }
.hint { padding: 9px 11px; border: 1px solid #efd9c7; border-radius: 7px; background: #fff4e9; color: #835421; font-size: 12px; }
.mini { font-size: 11px; }
.unitcard { min-width: 0; }
.selected { border-color: var(--orange) !important; }
.mobilebar { display: none; }
.settingslist { max-height: 300px; overflow: auto; }
.grow { min-width: 0; flex: 1; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soft { padding: 8px; border-radius: 7px; background: #f3f5f4; }
.tinybar { min-width: 50px; height: 5px; }
.link { color: var(--orange); text-decoration: none; }
.avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #edeff0; }
.avatar { flex: none; overflow: hidden; border: 1px solid #d8dfda; color: #42685f; font-size: 13px; font-weight: 750; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar, .profile-photo-preview { position: relative; }
.profile-photo-control { flex-wrap: wrap; }
.profile-photo-control .profile-focus-wrap { flex: 1 0 100%; }
.profile-photo-control:not(:has(.profile-photo-preview img)) .profile-focus-wrap { display: none; }
.profile-photo-control:has(.profile-focus-fields) .profile-photo-preview { width: 146px; height: 146px; cursor: grab; touch-action: none; }
.profile-photo-preview:active { cursor: grabbing; }
.profile-focus-fields { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 8px; min-width: 0; }
.profile-focus-fields[hidden] { display: none; }
.profile-focus-fields legend { font-weight: 700; font-size: 12px; }
.profile-focus-fields p { font-size: 12px; line-height: 1.5; margin: 0; color: var(--muted); }
.profile-focus-fields label { display: grid; grid-template-columns: 100px minmax(0,1fr); align-items: center; gap: 10px; }
.profile-focus-fields input { width: 100%; padding: 0; min-height: 32px; accent-color: var(--orange); }
.profile-focus-fields button { justify-self: start; }
.profile-avatar-button { min-width: 42px; min-height: 42px; padding: 4px; border: 0; border-radius: 50%; background: transparent; }
.profile-avatar-button:hover { background: #e9eeeb; }
.user-row-person { display: flex; min-width: 180px; align-items: center; gap: 10px; }
.user-row-person .avatar { width: 38px; height: 38px; }
.user-row-name { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.user-edit-entry { min-width: 100px; }
.user-state { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 750; }
.user-state.is-active { background: #e8f3ec; color: #26734e; }
.user-state.is-inactive { background: #f2ece6; color: #795c43; }
.profile-photo-control { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.profile-photo-preview { display: grid; width: 84px; height: 84px; flex: none; overflow: hidden; place-items: center; border: 1px solid #d3dcd6; border-radius: 50%; background: #e9efeb; color: #486c61; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: #42685f; font-family: Manrope, sans-serif; font-size: 30px; font-weight: 800; }
.profile-photo-copy { display: grid; min-width: 0; gap: 7px; }
.profile-photo-copy > b { color: var(--ink); font-size: 13px; }
.profile-photo-copy small { line-height: 1.45; }
.photo-pick-button { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 650; }
.photo-pick-button:hover { border-color: var(--orange); color: var(--orange); }
.photo-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
.profile-photo-control:focus-within .photo-pick-button { outline: 3px solid #d65b2745; outline-offset: 2px; }
.photo-error { min-height: 16px; color: var(--red); font-size: 11px; }
.user-account-actions { display: grid; gap: 8px; padding: 13px; border: 1px solid #ead8ca; border-radius: 9px; background: #fbf6f0; }
.user-account-actions small { line-height: 1.45; }
.profile-note { color: var(--muted); line-height: 1.5; }
.dark .profile-photo-control { background: #303636; }
.dark .profile-avatar-button:hover { background: #343b3a; }
.dark .user-account-actions { border-color: #594638; background: #332f2b; }
.dark .user-state.is-active { background: #294235; color: #a9dfba; }
.dark .user-state.is-inactive { background: #403932; color: #e2c8ac; }

.dark { color: #edf0ed; background: #1e2223; --line: #42494a; --muted: #aab3af; --surface: #292e2f; --surface-soft: #303636; --ink: #edf0ed; }
.dark .top, .dark .panel, .dark .tile, .dark .tablewrap, .dark .kpi, .dark .stage { background: #292e2f; }
.dark input, .dark select, .dark textarea, .dark button, .dark dialog { border-color: #454d4c; background: #292e2f; color: #edf0ed; }
.dark .primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.dark th, .dark tr:hover td { background: #333939; }
.dark td { border-color: #3b4140; }
.dark .status { background: #414847; color: #e6eae8; }
.dark .status.done { color: #9fe0b9; }
.dark .thumb { background: #f5f6f4; }
.dark .hint { background: #40392f; color: #f4d8b4; }
.dark .empty { background: #303636; }

.lifecycle-delete {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #dfaaa4;
  border-radius: 7px;
  background: #fff9f8;
  color: #9f3932;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.lifecycle-delete svg, .lifecycle-mark svg { width: 15px; height: 15px; flex: none; }
.lifecycle-delete:hover { border-color: #b84d43; background: #f9e9e7; }
.lifecycle-trash-link, .lifecycle-restore {
  min-height: 36px;
  border-color: #dbc7bb;
  background: #fff9f4;
  color: #744329;
}
.lifecycle-trash { border-color: #e2cfc5; background: #fbf5f0; }
.lifecycle-trash .panelhead { align-items: flex-start; }
.lifecycle-trash .listrow { flex-wrap: wrap; align-items: flex-start; }
.lifecycle-trash .listrow small { display: block; margin-top: 3px; }
.lifecycle-trash .listrow .grow { overflow-wrap: anywhere; }
.lifecycle-trash .subtle { margin-top: 3px; }
.lifecycle-impact { display: grid; gap: 14px; }
.lifecycle-impact-head { display: flex; align-items: center; gap: 12px; }
.lifecycle-impact-head > div { display: grid; gap: 3px; }
.lifecycle-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid #e5b8b2;
  border-radius: 10px;
  background: #fff2f0;
  color: #a13e36;
}
.lifecycle-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.lifecycle-counts > div { display: grid; min-width: 86px; gap: 3px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.lifecycle-counts b { font-size: 20px; font-variant-numeric: tabular-nums; }
.lifecycle-counts span, .lifecycle-impact-head small { color: var(--muted); font-size: 11px; }
.lifecycle-counts .lifecycle-total { border-color: #dfaaa4; background: #fff5f3; color: #8f3932; }
.lifecycle-warnings, .lifecycle-blockers { padding: 11px 13px; border: 1px solid #e7d1ae; border-radius: 8px; background: #fff8eb; color: #75501c; }
.lifecycle-blockers { border-color: #e5b6b0; background: #fff3f1; color: #913b33; }
.lifecycle-warnings ul, .lifecycle-blockers ul { margin: 6px 0 0; padding-left: 19px; }
.lifecycle-warnings li, .lifecycle-blockers li { margin: 3px 0; }
.lifecycle-preserve { padding: 10px 12px; border-left: 3px solid var(--orange); background: #fbf3ed; color: #635147; line-height: 1.5; }
.lifecycle-submit { border-color: #a33e36 !important; background: #a33e36 !important; color: #fff !important; }
.lifecycle-submit:disabled { opacity: .45; }
.dark .lifecycle-delete, .dark .lifecycle-trash-link, .dark .lifecycle-restore { background: #352b2a; color: #f2b8b0; border-color: #704540; }
.dark .lifecycle-trash { background: #302d2b; }
.dark .lifecycle-mark { background: #432e2b; color: #efaaa1; border-color: #704540; }
.dark .lifecycle-counts .lifecycle-total, .dark .lifecycle-preserve { background: #3a302b; color: #f0c2a9; }
.dark .lifecycle-warnings { background: #3b352c; color: #f1d5a5; }
.dark .lifecycle-blockers { background: #3d2d2c; color: #f0b3ad; }

@media (max-width: 850px) {
  .shell, .collapsed .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 10; top: 0; left: 0; display: flex; width: 260px; height: 100dvh; transform: translateX(-102%); opacity: .92; pointer-events: none; transition: transform .26s cubic-bezier(.2,.75,.25,1), opacity .2s ease; will-change: transform; }
  .mobileopen .sidebar { transform: translateX(0); opacity: 1; pointer-events: auto; }
  .menuveil { position: fixed; z-index: 9; inset: 0; display: block; background: #1118; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  .mobileopen .menuveil { opacity: 1; pointer-events: auto; }
  .top { padding: 8px 12px; }
  .top .topname, .top .search { display: none; }
  .content { max-width: 100%; overflow-x: hidden; padding: 14px 13px calc(88px + env(safe-area-inset-bottom)); }
  .two, .split, .login { grid-template-columns: 1fr; }
  .workflow-products { top: 4px; max-height: 39dvh; padding: 10px; }
  .workflow-product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .workflow-product-pick { margin: 0; min-width: 0; }
  .workflow-product-no-results { grid-column: 1 / -1; }
  .workflow-filters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
  .workflow-filters > label:first-child { grid-column: 1 / -1; }
  .workflow-filters > button { grid-column: 1 / -1; }
  .workflow-model, .workflow-progress { min-width: 0; }
  .loginhero { display: none; }
  .formgrid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .checkgrid { grid-template-columns: repeat(2, 1fr); }
  .actions button, .content button, .content .btn { min-height: 44px; }
  button, .btn, .actions button, .content .compact, .top .quiet { min-height: 44px !important; }
  .step-select { min-height: 44px; }
  .eye { top: 0; right: 0; width: 44px; }
  input:not([type=checkbox]), select, textarea { min-height: 44px; font-size: 16px; }
  label.row, .checkgrid label { min-height: 44px; }
  .step { grid-template-columns: 23px minmax(0, 1fr); align-items: start; gap: 6px; }
  .step > div:nth-child(3), .step .duration, .step .actions { grid-column: 2 / -1; justify-self: start; }
  .content .tablewrap { overflow: visible; border: 0; background: transparent; }
  .content table, .content tbody, .content tr, .content td { display: block; width: 100%; white-space: normal; }
  .content thead { display: none; }
  .content tbody { display: grid; gap: 9px; }
  .content tr { padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
  .content td { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf0ee; overflow-wrap: anywhere; }
  .content td:last-child { border: 0; }
  .content td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
  .roleperm { min-width: 0; }
  .perm-header { display: none; }
  .perm-row { grid-template-columns: 1fr 1fr !important; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .perm-row > b { grid-column: 1 / -1; }
  .perm-row label { min-height: 44px; }
  .perm-row label span { display: inline; color: var(--muted); font-size: 11px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .headline { align-items: center; }
  .headline h1 { font-size: 25px; }
  .profile-photo-control { align-items: flex-start; padding: 11px; }
  .profile-photo-preview { width: 66px; height: 66px; }
  .profile-photo-copy .row { align-items: stretch; }
  .profile-photo-copy .row > * { flex: 1; }
  .user-row-person { min-width: 0; }
  .thumb { width: 50px; height: 46px; }
  .unitgrid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .modalbody { max-height: 64dvh; }
  .mobilebar {
    position: fixed;
    z-index: 8;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    gap: 2px;
    padding: 4px 4px max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .mobilebar button { display: grid; min-width: 0; min-height: 52px; flex: 1; justify-items: center; gap: 2px; padding: 4px 2px; border: 0; background: transparent; color: #5d6864; font-size: 11px; white-space: normal; line-height: 1.15; }
  .mobilebar button.active { background: #fbf0e9; color: var(--orange); }
  .dark .mobilebar { background: #252a2a; }
  #toasts { top: 12px; right: 12px; left: 12px; }
  .toast { max-width: none; }
  .drawer .modalbody { max-height: calc(100dvh - 120px); }
  .lifecycle-delete { min-width: 44px; min-height: 44px; justify-content: center; }
  .lifecycle-trash-link, .lifecycle-restore { min-height: 44px; }
  .lifecycle-counts > div { min-width: 76px; flex: 1 1 80px; }
  .lifecycle-impact-head { align-items: flex-start; }
}
@media (max-width: 520px) {
  .workflow-products { top: 2px; max-height: 252px; padding: 9px; }
  .workflow-products > .panelhead { margin-bottom: 5px; }
  .workflow-products > .panelhead h2 { font-size: 15px; }
  .workflow-product-tools .scope-label { margin: 0 0 6px; }
  .workflow-product-search { min-height: 42px; margin-bottom: 7px; }
  .workflow-product-list { display: flex; gap: 7px; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; scroll-snap-type: x mandatory; }
  .workflow-product-pick { flex: 0 0 min(78vw, 290px); min-height: 62px; scroll-snap-align: start; }
  .workflow-product-no-results { flex: 0 0 100%; align-self: center; }
  .workflow-manage-products { align-self: stretch; margin-top: 6px; }
}

@media (max-width: 380px) {
  .top { gap: 6px; }
  .kpi b { font-size: 19px; }
  .mobilebar button { font-size: 10.5px; }
  .headline .row { width: 100%; }
  .headline .row button { flex: 1; }
}

@media print {
  .sidebar, .top, .headline button, .no-print, .mobilebar, #toasts { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; }
  .panel, .tablewrap { border: 1px solid #ddd; box-shadow: none; }
  body { background: #fff; color: #222; }
}

/* Özet / TRN ARCH operations control center */
.dashboard {
  --dash-ink: #292c29;
  --dash-muted: #6e716a;
  --dash-line: #e2d8ca;
  --dash-paper: #fffdf8;
  --dash-orange: #c75a2b;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(12px, 1.8vw, 24px);
  border: 1px solid #e8d9c6;
  border-radius: 19px;
  color: var(--dash-ink);
  background:
    radial-gradient(ellipse at 91% 2%, #eedbc3 0, #eedbc300 33%),
    radial-gradient(ellipse at 0 42%, #f4e5d2 0, #f4e5d200 34%),
    #f7f2e9;
  box-shadow: 0 14px 44px #61462812, 0 2px 7px #61462808;
  animation: dash-enter .42s ease both;
}
.dashboard::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#8e704514 .7px, transparent .7px);
  background-size: 9px 9px;
  content: "";
  opacity: .34;
  pointer-events: none;
}
@keyframes dash-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dashboard > .headline { position: relative; align-items: center; margin: 1px 1px 17px; }
.dashboard > .headline .eyebrow { color: #a64a24; }
.dashboard > .headline h1 { color: #292c29; font-size: clamp(23px, 2vw, 31px); letter-spacing: -1px; }
.dashboard > .headline p { color: #6e716a; }
.dashboard .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.dashboard .kpi {
  position: relative;
  min-width: 0;
  min-height: 77px;
  padding: 12px 13px 10px;
  overflow: hidden;
  border-color: #e7dccd;
  border-radius: 10px;
  background: #fffdf9d9;
  box-shadow: 0 2px 9px #7553310b;
}
.dashboard .kpi:first-child { border-color: #db9e78; background: #fff6ec; }
.dashboard .kpi small { display: flex; align-items: center; gap: 6px; color: #716a60; font-size: 11px; line-height: 1.25; }
.dashboard .kpi small > span { min-width: 0; }
.dash-kpi-icon { display: block; width: 15px; height: 15px; flex: 0 0 15px; color: #c85f25; }
.product-detail-trigger { display: block; width: 100%; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: inherit; font: inherit; text-align: left; white-space: normal; }
.product-detail-trigger > .subtle { display: block; }
.product-detail-trigger:hover { color: var(--orange); background: transparent; box-shadow: none; }
.product-detail-trigger:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
tr:has(.product-detail-trigger) { cursor: pointer; }
tr:has(.product-detail-trigger):hover { background: #d65b2708; }
.dashboard .kpi b { margin-top: 3px; color: #292c29; font-family: Manrope, "DM Sans", sans-serif; font-size: 25px; line-height: 1.2; letter-spacing: -.7px; }
.dash-insights { display: grid; grid-template-columns: minmax(260px, .88fr) minmax(320px, 1.12fr); gap: 10px; margin-bottom: 10px; }
.dash-delivery, .dash-status {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e4d7c6;
  border-radius: 12px;
  background: #fffdf9ed;
  box-shadow: 0 3px 13px #6747290c;
}
.dash-delivery {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: 8px;
  overflow: hidden;
}
.dash-delivery::after {
  position: absolute;
  right: -49px;
  bottom: -81px;
  width: 167px;
  height: 167px;
  border: 1px solid #dca77d55;
  border-radius: 50%;
  box-shadow: 0 0 0 13px #dca77d0a, 0 0 0 28px #dca77d0a;
  content: "";
  pointer-events: none;
}
.dash-kicker { color: #a25330; font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.dash-delivery h2, .dash-section-heading h2 { margin-top: 4px; color: #302f2b; font-family: Manrope, "DM Sans", sans-serif; font-size: 17px; letter-spacing: -.35px; }
.dash-delivery-copy p { max-width: 210px; margin-top: 6px; color: var(--dash-muted); font-size: 12px; line-height: 1.45; }
.dash-donut { position: relative; grid-column: 2; grid-row: 1 / span 2; width: 108px; height: 108px; justify-self: end; }
.dash-donut svg { width: 100%; height: 100%; overflow: visible; }
.dash-donut svg circle { fill: none; stroke-width: 9; }
.dash-donut-track { stroke: #eadfd1; }
.dash-donut-value { stroke: #c75a2b; stroke-dasharray: var(--donut-dash) 100; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; animation: dash-donut-in .55s cubic-bezier(.2,.75,.25,1) both; }
@keyframes dash-donut-in { from { opacity: .25; transform: rotate(-90deg) scale(.78); } to { opacity: 1; transform: rotate(-90deg) scale(1); } }
.dash-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.dash-donut-center b { color: #33312d; font-family: Manrope, sans-serif; font-size: 22px; letter-spacing: -.8px; }
.dash-donut-center span { margin-top: -2px; color: #766c60; font-size: 10px; }
.dash-donut-empty .dash-donut-track { stroke: #c75a2b; stroke-dasharray: 7 6; opacity: .5; }
.dash-delivery-legend { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 5px 9px; padding-top: 10px; margin-top: 5px; border-top: 1px solid #eee5d9; color: #716a60; font-size: 10px; }
.dash-delivery-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dash-delivery-legend i { width: 7px; height: 7px; border-radius: 50%; background: #c75a2b; }
.dash-delivery-legend span:nth-of-type(2) i { background: #e8d9c8; }
.dash-delivery-legend b { color: #38352f; font-size: 12px; font-variant-numeric: tabular-nums; }
.dash-status { padding: 15px 18px 13px; }
.dash-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dash-total { color: #786f64; font-size: 10px; font-variant-numeric: tabular-nums; }
.dash-status-list { display: grid; gap: 8px; }
.dash-status-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.dash-status-label { display: flex; min-width: 0; align-items: center; gap: 7px; color: #55534d; font-size: 11px; }
.dash-status-label > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-status-label b { margin-left: auto; color: #36342f; font-variant-numeric: tabular-nums; }
.dash-status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--status-color); }
.dash-track { height: 5px; overflow: hidden; border-radius: 99px; background: #eee8df; }
.dash-track i { display: block; width: var(--bar-share); height: 100%; border-radius: inherit; background: var(--status-color); transform-origin: left; animation: dash-bar-in .55s cubic-bezier(.2,.75,.25,1) both; }
@keyframes dash-bar-in { from { transform: scaleX(.08); opacity: .55; } to { transform: scaleX(1); opacity: 1; } }
.dash-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .8fr); align-items: start; gap: 10px; }
.dash-workspace > * { min-width: 0; }
.dashboard .panel { border-color: #e4d8c9; border-radius: 12px; background: #fffdf9ed; box-shadow: 0 3px 13px #6747290c; }
.dashboard .panelhead { margin-bottom: 12px; }
.dashboard .panelhead h2 { color: #302f2b; font-family: Manrope, "DM Sans", sans-serif; font-size: 15px; }
.dashboard .stack { gap: 8px; }
.dashboard .unitcard { border-color: #eee4d8; border-radius: 9px; background: #fffefa; box-shadow: 0 2px 8px #61462808; }
.dashboard .unitcard .subtle { color: #716e67; }
.dashboard .listrow { border-color: #eee5d9; }
.dashboard .bar { background: #eee6dc; }
.dashboard .bar i { background: #c75a2b; transform-origin: left; animation: dash-bar-in .55s cubic-bezier(.2,.75,.25,1) both; }
.dash-rail { display: grid; gap: 10px; }
.dash-rail .panel { align-self: start; }
.dash-station { min-height: 48px; }
.dash-station .grow { display: grid; gap: 5px; }
.dash-station > b { min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.dash-running { padding: 15px 17px; border: 1px solid #d4a27e; border-radius: 12px; background: linear-gradient(125deg, #f5e3d0, #fff7ed 78%); box-shadow: inset 3px 0 #c75a2b, 0 3px 13px #6747290c; }
.dash-running > div { display: flex; align-items: baseline; gap: 9px; margin-top: 5px; }
.dash-running > div b { color: #a94924; font-family: Manrope, sans-serif; font-size: 32px; line-height: 1.1; letter-spacing: -1.2px; }
.dash-running > div span { color: #48433d; font-size: 12px; font-weight: 650; }
.dash-running p { margin-top: 5px; color: #76685c; font-size: 11px; }
.dash-approvals { margin-top: 10px; }
.dash-approvals .panel { background: #fffdf9; }
.dashboard .empty { border: 1px dashed #e3d4c4; background: #f8f3eb; color: #716b61; }

@media (max-width: 1100px) {
  .dashboard .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .dashboard { padding: 12px; border-radius: 15px; }
  .dash-insights { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-workspace { grid-template-columns: 1fr; }
  .dash-rail { grid-template-columns: minmax(0, 1.4fr) minmax(200px, .8fr); align-items: start; }
}
@media (max-width: 600px) {
  .dashboard { padding: 10px; border-radius: 12px; }
  .dashboard > .headline { align-items: flex-start; margin-bottom: 13px; }
  .dashboard > .headline .row { width: auto; }
  .dashboard .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .dashboard .kpi { min-height: 68px; padding: 10px; }
  .dashboard .kpi b { font-size: 22px; }
  .dash-insights { grid-template-columns: 1fr; }
  .dash-delivery, .dash-status { padding: 13px 14px; }
  .dash-workspace { gap: 8px; }
  .dash-rail { grid-template-columns: 1fr; }
  .dash-running { padding: 13px 15px; }
  .dash-approvals { margin-top: 8px; }
  .dash-delivery-legend { grid-template-columns: 1fr auto 1fr auto; gap: 5px; font-size: 9px; }
}
@media (max-width: 380px) {
  .dashboard { padding: 8px; }
  .dashboard > .headline h1 { font-size: 22px; }
  .dashboard > .headline .row { width: 100%; }
  .dashboard > .headline .row button { flex: 1; }
  .dash-delivery { grid-template-columns: minmax(0, 1fr) 94px; padding: 12px; }
  .dash-donut { width: 92px; height: 92px; }
  .dash-donut-center b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .content:has(.dashboard), .dashboard, .dashboard *, .dashboard *::before, .dashboard *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .dashboard button:hover, .dashboard button:active { transform: none; }
}
.dark .dashboard {
  --dash-ink: #f0ebe3;
  --dash-muted: #c1b7aa;
  border-color: #51463a;
  color: var(--dash-ink);
  background:
    radial-gradient(ellipse at 91% 2%, #74492e55 0, #74492e00 34%),
    radial-gradient(ellipse at 0 42%, #51403355 0, #51403300 35%),
    #242524;
  box-shadow: 0 14px 44px #090b0a55, 0 2px 7px #090b0a44;
}
.dark .dashboard::before { opacity: .12; }
.dark .dashboard > .headline h1,
.dark .dash-delivery h2,
.dark .dash-section-heading h2,
.dark .dash-donut-center b,
.dark .dashboard .panelhead h2 { color: #f0ebe3; }
.dark .dash-kicker, .dark .dashboard > .headline .eyebrow { color: #efa779; }
.dark .dashboard > .headline p,
.dark .dash-delivery-copy p,
.dark .dash-donut-center span { color: #c1b7aa; }
.dark .dashboard .kpi,
.dark .dashboard .panel,
.dark .dash-delivery,
.dark .dash-status {
  border-color: #51483d;
  color: #ede8df;
  background: #2b2b29eF;
  box-shadow: 0 3px 13px #090b0a3d;
}
.dark .dashboard .kpi:first-child { border-color: #94664a; background: #3a3028; }
.dark .dashboard .kpi small,
.dark .dash-status-label,
.dark .dash-total,
.dark .dash-delivery-legend,
.dark .dashboard .unitcard .subtle { color: #c1b7aa; }
.dark .dashboard .kpi b,
.dark .dash-status-label b,
.dark .dash-delivery-legend b { color: #f0ebe3; }
.dark .dash-kpi-icon { color: #f0a06c; }
.dark .dash-delivery-legend { border-color: #51483d; }
.dark .dash-delivery-legend i:nth-of-type(2) { background: #605549; }
.dark .dash-donut-track { stroke: #50473d; }
.dark .dash-track,
.dark .dashboard .bar { background: #49443d; }
.dark .dash-running {
  border-color: #79543e;
  background: linear-gradient(125deg, #3c3028, #302b26 78%);
  box-shadow: inset 3px 0 #d57845, 0 3px 13px #090b0a3d;
}
.dark .dash-running > div b { color: #efa779; }
.dark .dash-running > div span,
.dark .dash-running p { color: #d0c1b0; }
.dark .dashboard .empty { border-color: #51483d; background: #33302c; color: #c1b7aa; }
