:root {
  color-scheme: light;
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  color: #172321;
  background: #f5f7f5;
  --muted: #566460;
  --line: #dce5df;
  --accent: #14594a;
  --accent-light: #e3f2e9;
  --dark: #102520;
  --white: #fff;
  font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #46856e; outline-offset: 3px; }
button, .button { border-radius: 9px; border: 1px solid var(--line); background: var(--white); color: var(--dark); padding: .68rem .95rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; }
button:hover, .button:hover { background: #eff5f0; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover { background: #0c4136; }
.danger { color: #9d342c; }
input, select, textarea { border: 1px solid #ccd9d1; background: white; border-radius: 8px; width: 100%; color: #172321; padding: .7rem .82rem; min-height: 42px; }
textarea { min-height: 90px; resize: vertical; }
label { font-weight: 600; display: grid; gap: 6px; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { letter-spacing: -.055em; font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 730; }
h2 { letter-spacing: -.03em; }
small, .muted { color: var(--muted); }
.draft-photo { display: block; width: 100%; height: auto; }
.public-page { max-width: 780px; margin: auto; padding: clamp(1.25rem, 5vw, 4rem); line-height: 1.65; }
.public-hero { display: grid; justify-items: start; gap: .9rem; padding: 0 0 2rem; border-bottom: 1px solid var(--line); }
.public-kicker { color: var(--accent); font-weight: 700; letter-spacing: .06em; }
.public-hero h1 { line-height: 1.1; }
.public-section { display: grid; gap: .6rem; margin-top: 1.7rem; }
.public-footer { display: flex; flex-wrap: wrap; gap: .65rem 1.3rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.initial { padding: 2rem; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-symbol { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: #bde9cb; color: #12392f; font-size: 21px; font-weight: 800; }
.brand-text { display: grid; gap: 1px; }
.brand-text strong { letter-spacing: .12em; font-size: .95rem; }
.brand-text small { color: #adc3b9; }
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(250px, .85fr) 1.15fr; }
.auth-aside { background: radial-gradient(circle at 120% 15%, #326654, transparent 57%), var(--dark); color: #fff; padding: clamp(2rem, 6vw, 6rem); display: grid; align-content: space-between; gap: 5rem; }
.auth-aside h2 { font-size: clamp(2.5rem, 5vw, 5.1rem); line-height: 1.02; max-width: 8ch; letter-spacing: -.065em; }
.auth-aside > small { color: #afc7bb; }
.auth-main { display: grid; place-items: center; padding: 2rem; }
.auth-form { width: min(100%, 390px); display: grid; gap: 20px; }
.auth-form h1 { font-size: 2.5rem; }
.layout { min-height: 100dvh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { background: var(--dark); color: white; padding: 24px 16px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.sidebar .brand { padding: 0 6px; }
.nav { display: grid; gap: 5px; min-height: 0; overflow-y: auto; padding: 3px; }
.nav button { background: transparent; border: 0; color: #d6e5dd; justify-content: flex-start; text-align: left; }
.nav button:hover, .nav button[aria-current="page"] { background: #25443a; color: white; }
.nav-icon { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.profile { border-bottom: 1px solid #416055; padding: 0 6px 12px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.profile small { color: #afc7bb; }
.profile button { margin-top: 5px; background: transparent; border-color: #48665b; color: #e8f2eb; }
.main { min-width: 0; padding: 0 clamp(16px, 3.4vw, 52px) 40px; }
.topbar { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.sync-status { display: inline-flex; align-items: center; gap: 8px; text-align: right; font-size: .86rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8a7649; flex: none; }
.dot.on { background: #2f8760; }
.heading { padding: 28px 0 20px; display: flex; justify-content: space-between; gap: 14px; align-items: flex-end; }
.heading p { margin-top: 7px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.card, .panel { background: white; border: 1px solid var(--line); border-radius: 15px; }
.card { padding: 18px; display: grid; gap: 8px; }
.card strong { font-size: 2rem; line-height: 1; letter-spacing: -.055em; }
.card small { font-weight: 650; }
.panel { overflow: hidden; }
.panel.inset { padding: 20px; display: grid; gap: 16px; }
.toolbar { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(100px, 155px)); gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { background: #f8faf8; font-size: .79rem; color: var(--muted); }
th, td { padding: .85rem 1rem; border-bottom: 1px solid #eaf0eb; }
tbody tr:hover { background: #f9fbf9; }
td a, .link { color: var(--accent); font-weight: 700; }
.link { padding: 0; border: 0; min-height: 36px; background: transparent; }
.old { background: #fff9ef; }
.badge { display: inline-block; border-radius: 999px; padding: .32rem .65rem; background: #edf2ef; color: #355449; white-space: nowrap; font-size: .8rem; font-weight: 700; }
.badge.ready, .badge.shipped { background: #dff2e6; color: #19573d; }
.badge.problem { background: #fae5e1; color: #8c2e27; }
.badge.production { background: #e7eef9; color: #294c75; }
.kind-row { display: flex; flex-wrap: wrap; gap: 5px; }
.kind-row:not(:empty) { margin-top: 5px; }
.badge.kind-pro { background: #ede7f5; color: #5d3a78; }
.badge.kind-3d { background: #e3f2f6; color: #225765; }
.supplier-todo { border-left: 4px solid #a13c35; }
.old-label { color: #7b471a; font-size: .78rem; font-weight: 700; display: block; }
.pagination, .row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagination { justify-content: space-between; padding: 12px 15px; color: var(--muted); }
.batch { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.batch-check { width: 18px; min-height: 18px; }
.empty { padding: 35px 16px; text-align: center; color: var(--muted); }
.notice { background: #fff3d8; color: #664717; padding: 11px 13px; border-radius: 8px; margin: 0 0 14px; overflow-wrap: anywhere; }
.notice:empty { display: none; }
.toolbar + .notice { margin: 12px; }
.good { background: var(--accent-light); color: #245745; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.stack { display: grid; gap: 14px; min-width: 0; }
.line { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.line h3 { font-size: 1rem; }
.checkout-visual { margin: 0; min-width: 0; }
.checkout-visual img { display: block; max-width: min(100%, 520px); max-height: 220px; object-fit: contain; }
.checkout-visual figcaption { font-size: .85rem; }
dl { display: grid; grid-template-columns: minmax(100px, 1fr) 1.5fr; gap: 6px 10px; margin: 0; overflow-wrap: anywhere; }
dt { color: var(--muted); }
dd { margin: 0; }
address { white-space: pre-line; font-style: normal; }
.notes li { margin: 8px 0; overflow-wrap: anywhere; }
.notes { padding-left: 1rem; margin: 0; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 18px; min-height: 18px; }
.preview { width: 100%; max-height: 280px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.invite-result { overflow-wrap: anywhere; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.spaced { margin-top: 16px; }
@media (max-width: 900px) { .layout { grid-template-columns: 185px minmax(0, 1fr); } .detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .auth { grid-template-columns: 1fr; align-content: start; }
  .auth-aside { padding: 25px; gap: 20px; }
  .auth-aside h2, .auth-aside > small { display: none; }
  .auth-main { padding: 38px 22px; }
  .layout { display: block; }
  .sidebar { position: static; height: auto; padding: 12px; gap: 10px; }
  .sidebar .brand { padding: 0; }
  .nav { display: flex; flex-wrap: wrap; overflow: visible; }
  .nav button { padding: .55rem .65rem; }
  .profile { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 4px 0 7px; }
  .profile button { margin: 0 0 0 auto; padding: .45rem .6rem; }
  .topbar { min-height: 47px; }
  .heading { padding-top: 20px; align-items: flex-start; }
  .heading button { font-size: .83rem; }
  .cards { gap: 6px; }
  .card { padding: 10px; }
  .card strong { font-size: 1.65rem; }
  .toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .toolbar input { grid-column: 1 / -1; }
  th, td { padding: .65rem; }
  .desktop { display: none; }
}
.finance-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:1rem}
.direction-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding: .4rem; background: #e8eeea; border-radius: 14px; width: fit-content; max-width: 100%; }
.direction-tabs button { min-height: 42px; border-color: transparent; background: transparent; }
.direction-tabs button[aria-pressed="true"] { background: #fff; color: #174e40; border-color: #c7d9cf; box-shadow: 0 1px 3px #143b231a; font-weight: 700; }
[data-finance-panel][hidden] { display: none; }
.direction-actions { border-top: 4px solid #236550; }
.direction-actions h2 { margin: 0; }
.direction-priority-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: .65rem; }
.direction-priority-groups article { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .65rem .8rem; border-radius: 9px; background: #f1f5f2; }
.direction-priority-groups strong { color: #174e40; font-variant-numeric: tabular-nums; }
.direction-action-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)); gap: .55rem .9rem; padding: 0; margin: 0; list-style: none; }
.direction-action-list li { padding-block: .55rem; border-top: 1px solid #dae6de; }
.direction-action-list .link { text-align: left; }
.direction-action-list small { display: block; margin-top: .2rem; }
.direction-kpi { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.direction-kpi .finance-number { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.direction-funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.direction-funnel li > div { display: flex; justify-content: space-between; gap: .7rem; }
.direction-funnel meter { width: 100%; height: .9rem; accent-color: #236550; }
.finance-number{display:block;margin-top:.4rem;font-size:clamp(1.15rem,2.1vw,1.75rem);overflow-wrap:anywhere}
.finance-columns{display:grid;gap:1rem;grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.finance-chart{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(2px,1fr);gap:3px;align-items:end;height:9rem;margin:1rem 0}
.finance-chart meter{writing-mode:vertical-lr;direction:rtl;inline-size:100%;block-size:100%;accent-color:#18604e}
.finance-chart div{height:100%;min-width:0;display:flex;align-items:end}
@media(max-width:780px){.finance-columns{grid-template-columns:minmax(0,1fr)}}
.stock-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem}
.stock-photo{display:block;width:100%;height:110px;object-fit:cover;border-radius:8px}
