/* Şehirbahçeleri: white surfaces, the old site's greens, Quicksand. */

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/Quicksand-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --green: #2b5f3a;
  --green-dark: #1f4a2c;
  --green-soft: #e6efe8;
  --sage: #bbccc0;
  --sage-soft: #e4ece6;
  --leaf: #527a6c;
  --leaf-light: #95ad85;
  --bg: #ffffff;
  --panel: #f3f4f3;
  --panel-soft: #f8f9f8;
  --surface: #ffffff;
  --border: #e3e6e3;
  --border-strong: #cfd5d0;
  --text: #1b241d;
  --text-soft: #3b463e;
  --text-muted: #6f7a72;
  --text-faint: #9aa59d;
  --done: #4caf50;
  --danger: #f44336;
  --danger-soft: #fdecea;
  --track: #2196f3;
  --track-hover: #1976d2;
  --warn-bg: #fff7e0;
  --warn-border: #f2dc9a;
  --warn-text: #7a5a00;
  --success-bg: #edf7f0;
  --success-border: #cfe9d8;
  --success-text: #1e6b41;
  --error-bg: #fdeeee;
  --error-border: #f5c9cd;
  --error-text: #9f1d2e;
  --info-bg: #eaf3fb;
  --info-border: #c8def2;
  --info-text: #1b4f7a;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(27, 36, 29, 0.06);
  --shadow: 0 1px 3px rgba(27, 36, 29, 0.06), 0 10px 30px rgba(27, 36, 29, 0.07);
  --font: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --focus-ring: 0 0 0 3px rgba(43, 95, 58, 0.18);
  --topbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
body.page--staff { background: var(--panel-soft); }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 0.75em; }
.icon { flex: none; vertical-align: -3px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.skiplink { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--green); color: #fff; border-radius: var(--radius); font-weight: 700; }
.skiplink:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.container--form { max-width: 980px; }
.muted { color: var(--text-muted); }
.credit-balance { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.pos { color: var(--success-text); }
.neg { color: var(--error-text); }
.nowrap { white-space: nowrap; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.crumb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.crumb-bar .crumbs { margin: 0; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin: 0 0 6px; }
.pdp-page .crumbs { margin: 22px 0 14px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; color: var(--text-faint); }

.page { flex: 1; min-width: 0; padding-bottom: 56px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: var(--topbar-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand__logo { height: 48px; width: auto; }
.brand__logo--lg { height: 96px; }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; overflow: hidden; line-height: 0; }
.site-logo { display: block; width: 38px; height: 38px; max-width: none; flex-shrink: 0; object-fit: contain; }
.brand__name { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.mainnav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.mainnav__link { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: var(--radius); color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.mainnav__link:hover { background: var(--panel); color: var(--text); }
.mainnav__link.is-active { color: var(--green); background: var(--green-soft); }
.mainnav__link--staff { color: var(--leaf); }
.navcount { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.credit-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; }
.credit-pill:hover { background: var(--green-dark); color: #fff; }
.topbar__basket { position: relative; }
.topbar__badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.iconbutton.navtoggle { display: none; }

.iconbutton { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--text-soft); cursor: pointer; text-decoration: none; padding: 0; }
.iconbutton:hover { background: var(--panel); color: var(--text); }
.iconbutton--danger:hover { background: var(--danger-soft); color: var(--error-text); }
.iconbutton:disabled { opacity: 0.4; cursor: not-allowed; }

/* Account button and menu. */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; flex: none; }
.avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.usermenu { position: relative; }
.usermenu__trigger { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 5px; border: 1px solid transparent; border-radius: 999px; color: var(--text-muted); cursor: pointer; list-style: none; user-select: none; transition: background-color 0.15s, border-color 0.15s; }
.usermenu__trigger::-webkit-details-marker { display: none; }
.usermenu__trigger:hover { background: var(--panel); }
.usermenu.is-open > .usermenu__trigger { background: var(--green-soft); border-color: var(--border); }
.usermenu__trigger .icon { transition: transform 0.15s; }
.usermenu.is-open > .usermenu__trigger .icon { transform: rotate(180deg); }
.usermenu__name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--text); }
.menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 360px; max-width: calc(100vw - 24px); max-height: calc(100vh - 80px); overflow-x: hidden; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); white-space: normal; }
.menu__header { display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px 12px; min-width: 0; }
.menu__who { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.menu__name { font-weight: 700; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__email, .menu .menu__school { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__email { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.menu__section { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 6px; }
.menu__section form { margin: 0; }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 600 14px var(--font); color: var(--text-soft); text-align: left; text-decoration: none; cursor: pointer; }
.menu__item:hover { background: var(--panel); color: var(--text); }
.menu__item--danger { color: var(--error-text); }
.menu__item--danger:hover { background: var(--error-bg); color: var(--error-text); }
.menu__count { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--panel); color: var(--text-muted); font-size: 12px; font-weight: 700; }
.menu__count--green { background: var(--green-soft); color: var(--green); }
.menu__label { padding: 6px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.menu__roles { display: flex; flex-wrap: wrap; gap: 4px; }
.menu__school { margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.menu__item.is-active { background: var(--green-soft); color: var(--green); }
.mainnav__link, .topbar__actions, .usermenu__trigger { white-space: nowrap; }
.menu__version { padding: 6px 10px 2px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.mobilenav { display: none; flex-direction: column; background: var(--surface); border-top: 1px solid var(--border); padding: 8px 16px 12px; box-shadow: 0 12px 24px rgba(27, 36, 29, 0.08); }
.mobilenav__link { display: flex; align-items: center; gap: 12px; padding: 12px 8px; text-decoration: none; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobilenav__link .icon { color: var(--leaf); }
.mobilenav__link:last-child { border-bottom: 0; }
.mobilenav__link--staff { color: var(--green); }
.mobilenav__link--login { color: var(--green); justify-content: center; }

/* ---------- Staff secondary navigation ---------- */
.staffbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.staffbar__inner { display: flex; align-items: stretch; gap: 18px; min-height: 48px; }
.staffbar__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding-right: 18px; border-right: 1px solid var(--border); white-space: nowrap; }
.staffbar__label .icon { color: var(--leaf); }
.staffnav { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.staffnav::-webkit-scrollbar { display: none; }
.staffnav__link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.staffnav__link:hover { color: var(--text); }
.staffnav__link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.staffnav__link.is-active { color: var(--green); }
.staffnav__link.is-active::after { background: var(--green); }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.button--primary { background: var(--green); color: #fff; }
.button--primary:hover { background: var(--green-dark); color: #fff; }
.button--outline { background: var(--surface); color: var(--green); border-color: var(--green); }
.button--outline:hover { background: var(--green-soft); }
.button--ghost { background: transparent; color: var(--text-soft); border-color: var(--border-strong); }
.button--ghost:hover { background: var(--panel); color: var(--text); }
.button--danger { background: var(--danger); color: #fff; }
.button--danger:hover { background: #d32f2f; color: #fff; }
.button--danger-outline { background: var(--surface); color: var(--error-text); border-color: var(--danger); }
.button--danger-outline:hover { background: var(--danger-soft); }
.button--track { background: var(--track); color: #fff; height: 32px; padding: 0 12px; font-size: 13px; }
.button--track:hover { background: var(--track-hover); color: #fff; }
.button--block { width: 100%; }
.button--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.button--lg { height: 50px; font-size: 16px; padding: 0 22px; }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.button--primary:disabled, .button--primary[aria-disabled="true"] { background: var(--sage); color: #fff; opacity: 1; }
.button--primary:disabled:hover, .button--primary[aria-disabled="true"]:hover { background: var(--sage); color: #fff; }
.button .icon { width: 18px; height: 18px; }
.button--sm .icon { width: 15px; height: 15px; }
.cta { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 30px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; background: linear-gradient(135deg, #213a2a, #112418, rgb(0, 65, 46)); overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: -150%; background: conic-gradient(from 0deg, var(--green), #7fbf8a, #f4c542, var(--danger), var(--green)); animation: spin 4s linear infinite; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 3px; border-radius: 999px; background: linear-gradient(135deg, #213a2a, #112418, rgb(0, 65, 46)); z-index: -1; }
.cta:hover::after { background: var(--green-dark); }
.cta:hover { color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page header, cards, layout ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 26px 0 20px; }
.page-head__text { min-width: 0; }
.page-head__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-title { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title--center { text-align: center; justify-content: center; }
.page-subtitle { color: var(--text-muted); margin: 4px 0 0; max-width: 72ch; }
.page-subtitle a { font-weight: 600; }
.page-subtitle-bar { margin-top: 4px; flex-wrap: wrap; }
.page-subtitle-bar .page-subtitle { margin: 0; min-width: 0; }
.page-subtitle-bar .button { flex: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.card--pad { padding: 22px; }
.card--flush { overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.card-head .muted { font-size: 13px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-title .icon { color: var(--leaf); }
.card-head .card-title { margin: 0; }
.card-title--sm { font-size: 15px; margin-top: 18px; }
.card-title--caps { text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; color: var(--text-muted); }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--panel-soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-lead { color: var(--text-muted); font-size: 13.5px; margin: -6px 0 14px; }
.grid { display: grid; gap: 20px; align-items: start; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: 340px minmax(0, 1fr); }
.grid--sidebar-r { grid-template-columns: minmax(0, 1fr) 340px; }
.grid--sidebar-wide { grid-template-columns: minmax(0, 1fr) 400px; }
.grid > .card { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack--tight { gap: 8px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text-soft); }
.empty .icon { width: 44px; height: 44px; color: var(--sage); }
.empty__code { font-size: 64px; font-weight: 700; color: var(--sage); margin: 0; }
.empty p { margin: 0; }
.empty--sm { padding: 28px 16px; gap: 8px; font-size: 14px; }
.empty--sm .icon { width: 28px; height: 28px; }
.section { margin-top: 44px; }
.pdp-page .section { margin-top: 72px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section__title { font-size: 24px; font-weight: 700; }
.section__sub { color: var(--text-muted); margin: 4px 0 0; }
.rule { border: 0; border-top: 2px solid var(--green); width: 80px; margin: 14px auto 26px; }
.prose { padding-top: 30px; font-size: 16px; }
.prose h3 { color: var(--green); margin: 22px 0 8px; font-size: 18px; }
.prose__logo { display: flex; justify-content: center; margin-bottom: 14px; }
.prose__logo .site-logo { margin-inline: auto; }
.bullets { padding-left: 18px; margin: 0; }
.bullets li { margin-bottom: 6px; }
.disclosure > summary { list-style: none; cursor: pointer; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure[open] > summary { margin-bottom: 12px; }
.faq { border-top: 1px solid var(--border); }
.faq > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 700; font-size: 17px; color: var(--text); }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary .icon { color: var(--text-muted); transition: transform 0.15s; }
.faq[open] > summary .icon { transform: rotate(180deg); }
.faq[open] > summary { color: var(--green); }
.faq__body { padding: 0 0 18px; color: var(--text-soft); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.field__req { color: var(--danger); margin-left: 2px; }
.field__hint { font-size: 12px; color: var(--text-muted); margin: 0; }
.field__hint ul { margin: 0; padding-left: 16px; }
.field__hint li { margin: 0; }
.field__error { font-size: 13px; color: var(--error-text); margin: 0; }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea, .input, .inline-form input, .search__input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); outline: none; transition: border-color 0.15s, box-shadow 0.15s; min-height: 42px;
}
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .search__input:focus { border-color: var(--green); box-shadow: var(--focus-ring); }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 80px; }
.field input:disabled, .field textarea:disabled { background: var(--panel); color: var(--text-muted); cursor: not-allowed; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; width: 100%; }
.is-saving .modal__dismiss { opacity: .5; pointer-events: none; }
.field select[multiple] { min-height: 150px; padding: 6px; }
.field select[multiple] option { padding: 6px 8px; border-radius: 6px; }
.field input[type="file"] { padding: 8px 0; font-size: 14px; }
.field__secret { position: relative; }
.field__secret input { height: 42px; min-height: 0; padding: 0 44px 0 12px; line-height: 1.2; }
.field__secret input::-ms-reveal, .field__secret input::-ms-clear { display: none; }
.field__reveal { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.field__reveal:hover { color: var(--text); }
.sheet { width: 100%; max-width: 420px; margin: 28px auto 0; }
.sheet__title { margin: 0 0 6px; font-size: 24px; }
.sheet__lead { margin: 0 0 14px; color: var(--text-muted); }
.sheet .card { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.alert { padding: 12px 14px; border-radius: var(--radius); border: 1px solid; font-size: 14px; margin-bottom: 14px; }
.alert--error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
.alert--warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.alert--info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.alert a { color: inherit; font-weight: 700; }
.messages { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.message { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: var(--radius); border: 1px solid; font-weight: 600; }
.message__text { flex: 1; }
.message__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; opacity: 0.7; }
.message__close:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.message--success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.message--error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
.message--warning { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.message--info, .message--debug { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.search { position: relative; display: flex; align-items: center; flex: 1; min-width: 200px; max-width: 420px; }
.search .icon { position: absolute; left: 12px; color: var(--text-faint); pointer-events: none; }
.search__input { padding-left: 38px; padding-right: 68px; }
.search__clear { position: absolute; right: 6px; width: 30px; height: 30px; }
.search__spin { position: absolute; right: 40px; margin: 0; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal,
input[type="password"]::-ms-reveal { display: none; width: 0; height: 0; }
.select { width: auto; min-width: 180px; padding: 10px 36px 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f7a72' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; min-height: 42px; font-weight: 600; cursor: pointer; }
.select:focus { border-color: var(--green); box-shadow: var(--focus-ring); outline: none; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; }
.inline-form input { width: auto; padding: 6px 8px; min-height: 34px; }
.inline-form__num { width: 84px !important; text-align: right; font-weight: 700; }
.inline-form__num.is-low { border-color: var(--danger); color: var(--error-text); }
.preview { border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Filter chips: a row of links, one of them active (status filters, user kinds). */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.seed-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.seed-toolbar .search { flex: 1 1 16rem; min-width: 0; max-width: none; }
.seed-toolbar__side { display: flex; align-items: flex-end; gap: 8px; flex: 1 1 16rem; min-width: min(100%, 16rem); }
.seed-status { flex: 1 1 auto; width: auto; min-width: 0; }
.seed-status .select { width: 100%; }
.seed-toolbar__add { flex: 0 0 auto; height: 42px; padding: 0 12px; }
.seed-filters { display: flex; flex-direction: column; gap: 10px; }
.seed-filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seed-filters__label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 12px; border-radius: 999px; background: var(--panel); color: var(--text-soft); font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.chip .icon { color: var(--leaf); width: 16px; height: 16px; }
.chip--green { background: var(--green-soft); color: var(--green-dark); }
.chip--green .icon { color: var(--green); }
a.chip:hover { background: var(--sage-soft); color: var(--text); }
.chip.is-active { background: var(--green); color: #fff; }
.chip.is-active .chip__n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.chip__n { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(27, 36, 29, 0.07); color: var(--text-muted); }
.chip--warn.is-active { background: var(--warn-text); }
.list-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.field.status-select { display: none; width: 100%; position: relative; }
.status-select__btn { width: 100%; height: 44px; min-height: 44px; padding: 0 32px 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f7a72' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; font: 600 14px var(--font); color: var(--text); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-select__btn:focus { border-color: var(--green); box-shadow: var(--focus-ring); outline: none; }
.status-select__menu { position: fixed; z-index: 40; visibility: hidden; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.status-select__menu.is-ready { visibility: visible; }
.status-select__menu a { display: flex; align-items: center; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.status-select__menu a:hover { background: var(--panel); }
.status-select__menu a[aria-selected="true"] { background: var(--green-soft); color: var(--green-dark); }
@media (max-width: 640px) {
  .list-toolbar:has(.status-select) { flex-direction: row; align-items: flex-end; gap: 8px; }
  .list-toolbar:has(.status-select) .search { flex: 1 1 0; min-width: 0; max-width: none; }
  .list-toolbar:has(.status-select) .status-tabs { display: none; }
  .field.status-select { display: flex; flex: 0 1 46%; width: auto; min-width: 9.5rem; max-width: 52%; }
}

/* ---------- Tables, badges ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; white-space: nowrap; background: var(--panel-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfa; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.table .thumb { width: 60px; padding-right: 0; }
.table .thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--panel); }
.table tr.is-muted td { color: var(--text-faint); }
.table tr.is-muted .thumb img { opacity: 0.5; }
.table a.rowlink { text-decoration: none; color: var(--text); font-weight: 700; }
.table a.rowlink:hover { color: var(--green); text-decoration: underline; }
.table .sub { display: block; font-size: 12.5px; color: var(--text-muted); font-weight: 500; margin-top: 1px; }
.table--plain th, .table--plain td { padding: 8px 6px; }
.table--plain th { background: transparent; }
.table--compact th, .table--compact td { padding: 9px 14px; }
.table .empty-row td { padding: 36px 16px; text-align: center; color: var(--text-muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel); color: var(--text-soft); white-space: nowrap; }
.badge--lg { font-size: 14px; padding: 5px 12px; vertical-align: middle; }
.badge--pending { background: var(--warn-bg); color: var(--warn-text); }
.badge--preparing { background: var(--info-bg); color: var(--info-text); }
.badge--shipped { background: #e3f2fd; color: #0d47a1; }
.badge--delivered { background: var(--success-bg); color: var(--success-text); }
.badge--cancelled { background: var(--error-bg); color: var(--error-text); }
.badge--muted { background: #e6e8e6; color: #5c665f; }
.kv { display: grid; grid-template-columns: 160px 1fr; margin: 0; }
.kv__row { display: contents; }
.kv dt, .kv dd { margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.kv dt { color: var(--text-muted); font-size: 14px; }
.kv dd { color: var(--text); text-align: left; overflow-wrap: anywhere; min-width: 0; }
.kv__row:last-child dt, .kv__row:last-child dd { border-bottom: 0; }
.card-foot--actions { display: flex; gap: 10px; flex-wrap: wrap; }
.badge--admin { background: #1b241d; color: #fff; }
.badge--depot_admin { background: var(--green); color: #fff; }
.badge--depot { background: var(--green-soft); color: var(--green); }
.badge--user { background: var(--sage-soft); color: var(--leaf); }
.badge--cat { background: var(--sage-soft); color: var(--leaf); }
.badge--adjustment { background: var(--info-bg); color: var(--info-text); }
.badge--order { background: var(--warn-bg); color: var(--warn-text); }
.badge--refund { background: var(--success-bg); color: var(--success-text); }
.badge--low { background: var(--error-bg); color: var(--error-text); }
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist--pad { padding: 6px 20px 10px; }
.plainlist__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.plainlist__row:last-child { border-bottom: 0; }
.plainlist__row a { text-decoration: none; font-weight: 600; color: var(--text); }
.plainlist__row a:hover { color: var(--green); }
.facts { margin: 0 0 14px; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.facts dt { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts--tight { gap: 6px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-top: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
a.stat:hover { border-color: var(--green); box-shadow: var(--shadow-sm); color: var(--text); }
.stat__n { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.stat__hint { font-size: 12px; color: var(--text-faint); }
.stat--pending .stat__n { color: var(--warn-text); }
.stat--preparing .stat__n { color: var(--info-text); }
.stat--shipped .stat__n { color: #0d47a1; }
.stat--delivered .stat__n { color: var(--success-text); }
.stat--cancelled .stat__n { color: var(--error-text); }
.stat--accent { background: var(--green); border-color: var(--green); color: #fff; }
.stat--accent .stat__label, .stat--accent .stat__hint { color: rgba(255, 255, 255, 0.78); }
a.stat--accent:hover { background: var(--green-dark); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); }
a.kpi:hover { border-color: var(--green); color: var(--text); }
.kpi__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); flex: none; }
.kpi__icon .icon { width: 20px; height: 20px; }
.kpi__body { display: flex; flex-direction: column; min-width: 0; }
.kpi__n { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi__label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.timeline__row:last-child { border-bottom: 0; }

/* Summary strip under a detail page header: a few labelled values. */
.summary-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 20px; }
.summary-strip__item { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.summary-strip__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.summary-strip__value { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.summary-strip__value a { text-decoration: none; }
.summary-strip__value a:hover { text-decoration: underline; }

/* ---------- Home ---------- */
.hero { background: linear-gradient(180deg, var(--sage-soft), #fff 70%); padding: 40px 0 30px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__text, .hero__media { min-width: 0; }
.hero__title { font-size: clamp(30px, 4vw, 48px); font-weight: 500; line-height: 1.15; color: var(--text); margin-bottom: 14px; }
.hero__title strong { color: var(--green); font-weight: 700; }
.hero__lead { font-size: 17px; color: var(--text-soft); max-width: 540px; margin-bottom: 24px; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.hero__media img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--panel); border-radius: var(--radius-lg); padding: 20px; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 10px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-soft); font-size: 14px; }
.seedbank { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px 34px; border-radius: 24px; background: var(--green); color: #fff; }
.seedbank__title { font-size: 26px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.seedbank__title .icon { width: 26px; height: 26px; }
.seedbank p { color: rgba(255, 255, 255, 0.86); font-size: 15.5px; margin-bottom: 0; }
.seedbank__rule { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); }
.seedbank__big { font-size: 48px; font-weight: 700; line-height: 1; }
.seedbank__rule p { font-size: 14.5px; }
.seedbank__rule strong { color: #fff; }

/* ---------- Catalog ---------- */
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 22px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.cat-head .crumbs { margin: 0 0 4px; }
.cat-head .page-subtitle { max-width: 600px; }
.cat-head__chips { display: flex; gap: 8px; flex-wrap: wrap; }

.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-top: 16px; }
.catalog__side { align-self: start; position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.catalog__side-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 4px 0 -4px 12px; }
.catlist { display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.catlist__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--text-soft); font-weight: 600; transition: background 0.15s, color 0.15s; }
.catlist__item:hover { background: var(--panel); color: var(--text); }
.catlist__item.is-active { background: var(--green); color: #fff; }
.cat-count { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel); color: var(--text-muted); }
.catlist__item.is-active .cat-count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.catalog__note { display: flex; gap: 10px; padding: 14px; border-radius: var(--radius-lg); background: var(--sage-soft); color: var(--green-dark); font-size: 13px; }
.catalog__note .icon { flex: none; margin-top: 2px; color: var(--leaf); }
.catalog__note p { margin: 0; }
.catdrop { display: none; }
.catdrop > summary { list-style: none; }
.catdrop > summary::-webkit-details-marker { display: none; }
.catdrop__menu { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.catalog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog-toolbar { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; }
.catalog-toolbar .search { flex: 1; min-width: 0; }
.catalog-toolbar__cat { height: 44px; width: auto; padding: 0 14px; }
.catalog-toolbar__cat .icon { width: 18px; height: 18px; }
.catalog__result { font-size: 14px; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.pcard-wrap { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard-wrap.is-unavailable { opacity: .55; }
.pcard { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.pcard a { color: inherit; text-decoration: none; }
.fav-btn { position: static; z-index: 2; flex: none; width: 22px; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }
.fav-btn .icon { width: 16px; height: 16px; }
.fav-btn:hover { color: var(--danger); }
.fav-btn.is-on { color: var(--danger); }
.fav-btn.is-on .icon { fill: currentColor; }
.fav-btn .spinner { width: 12px; height: 12px; margin: 0; }
.fav-btn.is-busy .icon { display: none; }
.fav-btn--inline { width: 32px; height: 32px; }
.fav-btn--inline .icon { width: 20px; height: 20px; }
.pcard__gone { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.pcard__add { margin-top: 8px; }
.pcard__go { background: var(--track); color: #fff; border-color: transparent; }
.pcard__go:hover { background: var(--track-hover); color: #fff; }
.is-acting .fav-btn, .is-acting .button { pointer-events: none; }
.is-acting .fav-btn:not(.is-busy), .is-acting .button:not(.is-busy) { opacity: .5; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage); color: var(--text); }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--panel); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 40%); pointer-events: none; }
.pcard__cat { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--green-dark); font-size: 12px; font-weight: 700; }
.pcard__out { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 8px; text-align: center; background: rgba(244, 67, 54, 0.92); color: #fff; font-weight: 700; font-size: 14px; }
.pcard__low { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(255, 247, 224, 0.95); color: var(--warn-text); font-size: 12px; font-weight: 700; }
.pcard--out .pcard__media img { filter: grayscale(0.7); opacity: 0.75; }
.pcard--out .pcard__price { color: var(--text-muted); }
.pcard__body { padding: 14px 16px 12px; flex: 1; display: flex; flex-direction: column; }
.pcard__title { display: flex; align-items: flex-start; gap: 4px; }
.pcard__name { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.3; min-height: calc(2 * 1.3em); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__copy { display: flex; flex-direction: column; flex: 1; }
.pcard__price { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: var(--green); line-height: 1.2; }
.pcard__price span { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-left: 1px; }
.pcard__desc { margin: 8px 0 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); background: #fafbfa; font-size: 13px; font-weight: 700; color: inherit; }
.pcard__meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--leaf); }
.pcard__meta .icon { flex: none; }
.pcard__grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__more { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; color: var(--text-muted); transition: color 0.15s, transform 0.15s; }
.pcard:hover .pcard__more { color: var(--green); transform: translateX(2px); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; padding: 8px 0 20px; align-items: start; }
.pdp__media { position: sticky; top: calc(var(--topbar-h) + 20px); }
.pdp__frame { position: relative; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--border); aspect-ratio: 1; }
.pdp__frame img { width: 100%; height: 100%; object-fit: cover; }
.pdp__frame--out img { filter: grayscale(0.7); opacity: 0.8; }
.pdp__out { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; text-align: center; background: rgba(244, 67, 54, 0.92); color: #fff; font-weight: 700; }
.pdp__info { display: flex; flex-direction: column; gap: 18px; }
.pdp__info > .badge--cat { align-self: flex-start; text-decoration: none; }
.pdp__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: -8px; }
.pdp__title { font-size: 34px; font-weight: 700; line-height: 1.15; margin: 0; }
.pdp__pricebar { display: flex; align-items: baseline; gap: 10px 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.pdp__price { font-size: 32px; font-weight: 700; color: var(--green); line-height: 1; }
.pdp__price span { font-size: 16px; color: var(--text-muted); margin-left: 2px; }
.pdp__price-note { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.avail { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.avail--ok { background: var(--success-bg); color: var(--success-text); }
.avail--low { background: var(--warn-bg); color: var(--warn-text); }
.avail--out { background: var(--error-bg); color: var(--error-text); }
.pdp__desc { color: var(--text-soft); font-size: 16px; line-height: 1.6; }
.pdp__desc p:last-child { margin-bottom: 0; }
.facts-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts-row li { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius-lg); background: var(--panel); }
.facts-row li .icon { color: var(--leaf); flex: none; width: 20px; height: 20px; }
.facts-row li div { display: flex; flex-direction: column; min-width: 0; }
.facts-row__l { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.facts-row__v { font-size: 14px; font-weight: 700; color: var(--text); }
.buybox { padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.buybox__form { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.buybox__preview { margin: 0; display: flex; flex-direction: column; justify-content: center; min-width: 4.75rem; line-height: 1.15; }
.buybox__preview span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.buybox__preview strong { font-size: 18px; font-weight: 700; color: var(--green); }
.buybox__cta { flex: 1; min-width: 200px; }
.buybox__meta { margin: 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.stepper { display: inline-flex; align-items: center; height: 50px; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stepper__btn { width: 44px; height: 100%; border: 0; background: var(--panel); color: var(--green); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.stepper__btn:hover { background: var(--green-soft); }
.stepper__input { width: 60px; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus { outline: none; box-shadow: none; }
.pdp__note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--sage-soft); color: var(--green-dark); font-size: 13.5px; }
.pdp__note .icon { flex: none; margin-top: 2px; color: var(--leaf); }
.pdp__note p { margin: 0; }
.pdp__h { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.taglist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.taglist__item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 600; color: var(--text-soft); }
.taglist__item .icon { color: var(--leaf); width: 16px; height: 16px; }
.product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Basket, checkout, orders ---------- */
.basket { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.basket__items { padding: 4px 22px; }
.bline { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 90px auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.bline:last-child { border-bottom: 0; }
.bline.is-busy { opacity: 0.6; pointer-events: none; }
.bline__media img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.bline__name { font-weight: 700; font-size: 16px; text-decoration: none; color: var(--text); }
.bline__name:hover { color: var(--green); }
.bline__total { text-align: right; font-weight: 700; white-space: nowrap; font-size: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.qty__btn { width: 36px; height: 36px; border: 0; background: var(--panel); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--green); }
.qty__btn:hover { background: var(--green-soft); }
.qty__input { width: 54px; height: 36px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { box-shadow: none; }
.basket__summary { position: sticky; top: calc(var(--topbar-h) + 20px); }
.summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary__row--lg { font-size: 20px; }
.summary__row:last-of-type { border-bottom: 0; }
.basket__summary .stack { margin-top: 14px; }
.basket-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.basket-continue { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--leaf); text-decoration: none; white-space: nowrap; }
.basket-continue:hover { color: var(--green); text-decoration: underline; }
.basket__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.summary__hint { font-size: 13px; color: var(--text-muted); margin: 10px 0 0; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.checkout > .card { margin-bottom: 0; }
.checkout__summary { position: sticky; top: calc(var(--topbar-h) + 20px); }
.checkout__summary .stack { margin-top: 14px; }
.checkout__abort { margin: 14px 0 0; text-align: center; font-size: 13px; }
.checkout__abort button { border: 0; background: none; padding: 0; color: var(--text-muted); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.checkout__abort button:hover { color: var(--error-text); }
.olist { list-style: none; margin: 0; padding: 0; }
.olist__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.olist__row:last-child { border-bottom: 0; }
.olist__img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.olist__name { font-weight: 600; }
.olist__total { font-weight: 700; white-space: nowrap; }
.ocards { display: flex; flex-direction: column; gap: 12px; }
.ocard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: center; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color 0.15s; }
.ocard:hover { border-color: var(--sage); }
.ocard__col { display: flex; flex-direction: column; gap: 2px; }
.ocard__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.ocard__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ocard__products { grid-column: 1 / -1; }
.order-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Status bar ---------- */
.statusbar { list-style: none; display: flex; align-items: flex-start; margin: 10px 0 6px; padding: 0; counter-reset: step; }
.statusbar__step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.statusbar__step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 4px; background: var(--border); z-index: 0; }
.statusbar__step:first-child::before { display: none; }
.statusbar__step.is-done::before { background: var(--done); }
.statusbar__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background 0.4s, border-color 0.4s; }
.statusbar__step.is-done .statusbar__dot { background: var(--done); border-color: var(--done); }
.statusbar__step.is-current .statusbar__dot { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.18); animation: pulse 1.6s ease-in-out infinite; }
.statusbar__step.is-done { color: var(--text); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0.1); } }
.statusbar--cancelled { flex-direction: column; align-items: stretch; gap: 12px; }
.statusbar__cancel { align-self: center; padding: 8px 18px; border-radius: 999px; background: var(--danger); color: #fff; font-weight: 700; }
.cancelbox { background: var(--danger-soft); border: 1px solid var(--error-border); border-radius: var(--radius); padding: 12px 14px; color: var(--error-text); }
.cancelbox p { margin: 0; }
.tracking { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- Depot order detail ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.order-layout > .stack > .card { margin-bottom: 0; }
.action-card { border-left: 4px solid var(--green); }
.revert { margin-top: 12px; }
.revert__hint { margin: 6px 0 0; }
.hintbox { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); background: var(--panel); color: var(--text-soft); font-size: 13px; }
.hintbox .icon { color: var(--leaf); flex: none; margin-top: 1px; }
.hintbox p { margin: 0; }

/* ---------- Auth ---------- */
.page--auth { background: var(--panel); }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; line-height: 1.45; }
.brand--auth { flex-direction: row; align-items: center; gap: 8px; }
.brand--auth .brand__name { font-size: 18px; color: var(--text); }
.auth__links { margin-top: 12px; text-align: center; }
.auth__links a { font-size: 13px; font-weight: 700; }
.contact-note__email { color: var(--text); }
.auth__body { width: 100%; max-width: 380px; }
.auth__card { width: 100%; max-width: 380px; padding: 28px; margin: 0; }
.auth__title { font-size: 22px; margin: 0 0 8px; line-height: 1.45; text-wrap: balance; }
.auth__lead { margin: 0 0 16px; font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auth__row a { font-size: 13px; font-weight: 700; white-space: nowrap; }
.auth__foot { margin: 16px 0 0; text-align: center; font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.auth__back { font-size: 13px; }
.auth .field { gap: 6px; }
.auth .field input, .auth .field__secret input { height: 44px; min-height: 44px; }
.auth .button--block { width: 100%; height: 44px; }
.auth--top { justify-content: flex-start; padding-top: 32px; }
@media (max-width: 400px) {
  .auth { padding: 16px 8px; }
  .auth__card { padding: 24px 16px; }
}
.search-select { position: relative; }
.search-select:has(.search-select__button[aria-expanded="true"]) { z-index: 40; }
.search-select__button { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); text-align: left; font-weight: 600; cursor: pointer; }
.search-select__button:disabled { opacity: 0.6; cursor: not-allowed; }
.search-select__panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 100%; margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.modal .search-select__panel:not(.is-placed) { visibility: hidden; }
.search-select__query-wrap { position: relative; flex: none; }
.search-select__query { width: 100%; min-height: 40px; margin-bottom: 6px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.search-select__query-wrap.is-armed .search-select__query { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.search-select__caret { position: absolute; left: 12px; top: 11px; width: 1.5px; height: 18px; background: var(--text); pointer-events: none; animation: sb-caret 1.05s steps(1) infinite; }
@keyframes sb-caret { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
.search-select__list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.search-select__option { width: 100%; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.search-select__option.is-active, .search-select__option:hover { background: var(--green-soft); }
.search-select__option.is-chosen { font-weight: 700; color: var(--green); background: var(--green-soft); }
.search-select__option.is-chosen::before { content: "✓"; margin-right: 8px; }
.search-select__option mark { background: var(--warn-bg); color: inherit; padding: 0 1px; }
.search-select__empty, .search-select__more { margin: 6px 4px 2px; color: var(--text-muted); font-size: 13px; }

/* ---------- Footer ---------- */
.footer { background: var(--panel); border-top: 1px solid var(--border); padding: 30px 0 24px; margin-top: auto; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.brand--footer .brand__name { font-size: 20px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a { text-decoration: none; font-weight: 600; color: var(--text-soft); }
.footer__mail { font-weight: 700; color: var(--text); }
.footer__links a:hover { color: var(--green); }
.footer__note { margin: 0; font-size: 12px; color: var(--text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .checkout__summary { grid-column: 1 / -1; position: static; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-layout { grid-template-columns: 1fr; }
  .order-layout > .stack:last-child { order: -1; }
  .grid--sidebar-wide { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .catalog__side { position: static; }
  .catalog__side-title, .catalog__side > .catlist, .catalog__note { display: none; }
  .catdrop { display: block; position: relative; width: auto; }
  .catalog-toolbar { width: 100%; align-items: stretch; gap: 8px; }
  .catalog-toolbar .search { flex: 1 1 auto; min-width: 0; max-width: none; height: 44px; }
  .catalog-toolbar .search__input { height: 44px; min-height: 44px; }
  .catalog-toolbar .catdrop__menu { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); min-width: min(280px, calc(100vw - 32px)); margin-top: 0; }
  .cat-head { padding: 14px 0 16px; }
  .grid--sidebar, .grid--sidebar-r { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seedbank { grid-template-columns: 1fr; padding: 26px; }
}
@media (max-width: 820px) {
  :root { --topbar-h: 64px; }
  .container { padding: 0 16px; }
  .topbar__inner { gap: 10px; }
  .brand__logo { height: 42px; }
  .brand__name { font-size: 18px; }
  .staffbar__label { display: none; }
  .staffbar__inner { display: block; min-height: 0; }
  .staffnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 4px; width: 100%; overflow: visible; padding: 6px 0 8px; }
  .staffnav__link { justify-content: center; min-height: 40px; padding: 6px 8px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; border-radius: 8px; }
  .staffnav__link .icon { display: none; }
  .staffnav__link::after { display: none; }
  .staffnav__link.is-active { background: var(--green-soft); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .pdp__media { position: static; }
  .pdp__title { font-size: 26px; }
  .pdp__price { font-size: 26px; }
  .avail { margin-left: 0; }
  .facts-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .facts-row li { gap: 6px; padding: 8px 6px; }
  .facts-row li .icon { width: 16px; height: 16px; }
  .facts-row__l { font-size: 10px; letter-spacing: 0.02em; }
  .facts-row__v { font-size: 12.5px; line-height: 1.2; }
  .buybox__form { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .buybox__preview { align-items: flex-end; text-align: right; }
  .buybox__cta { grid-column: 1 / -1; min-width: 0; }
  .basket__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .basket__actions .button { height: 44px; padding: 0 8px; font-size: 13px; }
  .product-grid--4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .basket { grid-template-columns: 1fr; }
  .basket__summary { position: static; }
  .basket__items { padding: 0 16px; }
  .bline { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .bline__media img { width: 70px; height: 70px; }
  .bline__total { grid-column: 2; text-align: left; }
  .bline form { grid-column: 3; }
  .checkout { grid-template-columns: 1fr; }
  .ocard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocard__actions { grid-column: 1 / -1; justify-content: stretch; }
  .ocard__actions .button { flex: 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statusbar__step { font-size: 11px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .timeline__row { grid-template-columns: 1fr; gap: 4px; }
  .page-title { font-size: 24px; }
  .page-head { margin: 20px 0 16px; }
  .credit-pill { padding: 5px 10px; font-size: 13px; }
  .summary-strip { gap: 10px 20px; }
  .search { max-width: none; }
  .toolbar__group { width: 100%; }
  .catalog__result { width: 100%; }
  .card--pad { padding: 18px; }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .pcard__name { font-size: 15px; }
  .pcard__price { font-size: 17px; }
  .pcard__foot { padding: 8px 12px; font-size: 12px; }
  .table th, .table td { padding: 10px 12px; }
  .seedbank__big { font-size: 38px; }
}
[x-cloak] { display: none !important; }
.toasts { position: fixed; top: calc(var(--topbar-h) + 12px); right: 16px; z-index: 95; width: min(420px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; }
.toasts .message { margin: 0; box-shadow: var(--shadow); }
button.catlist__item { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .spinner { animation: spin 2.4s linear infinite !important; }
}

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal--front { z-index: 90; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(27, 36, 29, .45); }
.modal__panel { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.modal__panel--sm { width: min(420px, 100%); }
.modal__panel--lg { width: min(860px, 100%); }
.modal__head, .modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.modal__head { border-bottom: 1px solid var(--border); }
.modal__heading { min-width: 0; }
.modal__head--hint { align-items: flex-start; }
.modal__hint { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; font-weight: 500; line-height: 1.4; }
.modal__foot { border-top: 1px solid var(--border); justify-content: flex-end; }
.modal__body .modal__foot { padding: 14px 0 0; }
.modal__head, .modal__foot { flex: 0 0 auto; }
.modal__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; overflow-anchor: none; scroll-behavior: auto; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; vertical-align: -2px; margin-right: 6px; animation: spin .7s linear infinite; }
.button[disabled], .button.is-disabled { opacity: .5; pointer-events: none; cursor: not-allowed; }
.button.is-busy { cursor: progress; }
form[data-busy="true"] :is(a, button:not([type="submit"])) { opacity: .5; pointer-events: none; cursor: not-allowed; }
.is-saving .iconbutton[aria-label="Kapat"] { opacity: .5; pointer-events: none; }
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(27, 36, 29, .45); }
.drawer__panel { position: absolute; top: 0; right: 0; width: min(360px, 100%); height: 100%; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow); animation: drawer-slide .2s ease; }
@keyframes drawer-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer__head--brand { align-items: center; }
.drawer__close { margin-left: auto; }
.drawer__section { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.drawer__link { display: flex; align-items: center; gap: 12px; min-height: 44px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: 600 16px var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.drawer__link:hover, .drawer__link.is-active { background: var(--green-soft); color: var(--green); }
.drawer__link--danger { color: var(--error-text); }
@media (max-width: 960px) {
  .mainnav { display: none; }
  .iconbutton.navtoggle { display: inline-flex; width: 40px; height: 40px; margin-left: 0; }
  .usermenu, .topbar__login { display: none; }
  .topbar .brand { flex: 0 0 auto; min-width: max-content; gap: 6px; }
  .topbar .brand__name { overflow: visible; text-overflow: clip; }
  .topbar__inner { gap: 6px; }
  .topbar__actions { margin-left: auto; flex: none; gap: 6px; }
  .topbar__basket { margin-left: 0; margin-right: 0; }
  .credit-pill { padding: 5px 8px; }
  .drawer__panel { width: 100%; }
}
@media (max-width: 359px) {
  .topbar .site-logo { width: 32px; height: 32px; }
  .topbar .brand { gap: 4px; }
  .topbar .brand__name { font-size: 15px; }
  .topbar__inner { gap: 4px; }
  .topbar__actions { gap: 4px; }
  .credit-pill { padding: 4px 6px; font-size: 12px; gap: 4px; }
  .credit-pill .icon { width: 14px; height: 14px; }
  .iconbutton.navtoggle { width: 36px; height: 36px; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; background: var(--panel); }
.profile { max-width: 960px; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.profile > .card { margin-bottom: 0; }
.profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
.profile-hero__id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-hero__avatar { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 22px; font-weight: 700; flex: none; }
.profile-hero__text { min-width: 0; }
.profile-hero__name { margin: 0; font-size: 28px; line-height: 1.15; }
.profile-hero__email { margin: 4px 0 0; color: var(--text-muted); }
.profile-hero__action { flex: none; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-card { display: flex; gap: 12px; min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.profile-card--wide { grid-column: 1 / -1; }
.profile-card__icon { color: var(--leaf); flex: none; }
.profile-card__icon .icon { width: 18px; height: 18px; }
.profile-card__label { margin: 0 0 4px; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.profile-card__value, .profile-card__line { margin: 0; font-weight: 700; }
.profile-card__line { margin-top: 4px; font-weight: 600; }
.profile-card__hint { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.profile-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.profile-status .card-title { margin: 0; }
.profile-status__time { color: var(--text-muted); font-size: 13px; }
.diff-list { display: flex; flex-direction: column; min-width: 0; }
.diff-list__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.diff-list__row:last-child { border-bottom: 0; }
.diff-list__label { font-weight: 700; }
.diff-list__value { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.diff-list__old, .diff-list__new { min-width: 0; padding: 8px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.diff-list__old { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.diff-list__new { background: color-mix(in srgb, var(--green) 10%, transparent); }
.diff-list__tag { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.diff-list__text { display: block; min-width: 0; overflow-wrap: anywhere; }
.diff-list__arrow { align-self: center; color: var(--text-muted); font-size: 12px; line-height: 1; }
.diff-list mark { color: inherit; padding: 1px 4px; border-radius: 4px; }
.diff-list mark.diff-del { background: color-mix(in srgb, var(--danger) 28%, transparent); }
.diff-list mark.diff-ins { background: color-mix(in srgb, var(--green) 34%, transparent); }
.req-card { display: flex; flex-direction: column; gap: 12px; }
.req-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.req-card__who { min-width: 0; flex: 1; }
.req-card__school { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-card__meta { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.req-card__note { margin: 0; padding: 10px 12px; border-left: 3px solid var(--border-strong); background: var(--panel-soft); color: var(--text-soft); }
.req-card__reject { padding: 10px 12px; border-radius: 8px; background: var(--error-bg); color: var(--error-text); }
.req-card__actions { display: flex; gap: 8px; }
.school-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.school-form { display: flex; flex-direction: column; gap: 12px; }
.school-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.csv-cols { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.csv-cols code { font-size: 13px; }
.school-meta, .school-place, .school-address-card, .user-passive, .cat-seeds__word { display: none; }
.school-address span { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-alert { padding-top: 16px; }
.page-alert .alert { margin: 0; }
.chip.is-muted { opacity: .55; }
.modal__panel--narrow { width: min(440px, 100%); }
.file-upload__bar { width: 100%; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.file-upload__bar span { display: block; height: 100%; background: var(--green); }
.file-upload__icon { color: var(--leaf); }
.file-upload--plain .file-upload__drop { min-height: 0; }
@media (max-width: 820px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; align-items: stretch; }
  .profile-hero__name { font-size: 22px; }
  .profile-hero__action, .profile-hero__action .button { width: 100%; }
  .diff-list__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .diff-list__label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
  .req-card__head { flex-direction: column; }
  .req-card__school { font-size: 17px; }
  .req-card__actions > * { flex: 1 1 0; }
}
@media (max-width: 640px) {
  .pcard__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .modal { padding: 0; align-items: end; }
  .modal__panel--sm { width: 100%; max-height: calc(100dvh - 24px); border-radius: 16px 16px 0 0; }
  .modal:has(.modal__panel:not(.modal__panel--sm)) { place-items: stretch; }
  .modal__panel:not(.modal__panel--sm) {
    width: 100%; height: 100dvh; max-height: 100dvh;
    border-radius: 0; border: 0;
    display: flex; flex-direction: column; overflow: hidden;
  }
  .modal__panel:not(.modal__panel--sm) .modal__head {
    position: sticky; top: 0; z-index: 2; background: var(--surface); flex: 0 0 auto;
    padding-top: max(16px, env(safe-area-inset-top));
  }
  .modal__panel:not(.modal__panel--sm) .modal__body {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .modal__panel:not(.modal__panel--sm) .modal__foot {
    flex: 0 0 auto; background: var(--surface);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .modal__panel:not(.modal__panel--sm) .modal__foot .modal__actions > * { flex: 1 1 0; }
  .modal__panel:not(.modal__panel--sm) .modal__foot .modal__actions--notice {
    flex-direction: column;
    align-items: stretch;
  }
  .modal__panel:not(.modal__panel--sm) .modal__foot .modal__actions--notice > * { flex: 0 0 auto; width: 100%; }
  .modal__body .search-select__panel { z-index: 5; }
}

.todo { display: flex; flex-direction: column; gap: 8px; }
.todo__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius); color: var(--warn-text); font-weight: 700; text-decoration: none; }
.todo__row:hover { color: var(--warn-text); }
.todo__row--ok { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.statgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.statgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.statcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 14px 14px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); }
a.statcard:hover { color: inherit; box-shadow: var(--shadow); }
.statcard.is-zero { opacity: .6; }
.statcard__icon { color: var(--leaf); }
.statcard__icon .icon { width: 18px; height: 18px; }
.statcard__n { font-size: 30px; font-weight: 700; line-height: 1.1; }
.statcard__l { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.statcard--pending { border-left-color: var(--warn-text); }
.statcard--preparing { border-left-color: var(--info-text); }
.statcard--shipped { border-left-color: #0d47a1; }
.statcard--delivered { border-left-color: var(--success-text); }
.statcard--cancelled { border-left-color: var(--error-text); }
.statcard--warn { border-left-color: var(--warn-text); background: var(--warn-bg); }
.dash-row { display: grid; grid-template-columns: auto minmax(0, 1.4fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.dash-row:hover { background: var(--panel-soft); color: inherit; }
.dash-row--stock { grid-template-columns: auto minmax(0, 1fr) auto; }
.dash-row__id { font-weight: 700; }
.dash-row__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row__img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; background: var(--panel); }
.timeline { display: flex; flex-direction: column; }
.timeline__item { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 16px; }
.timeline__item::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--green); }
.timeline__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline__note { margin: 4px 0; color: var(--text-muted); font-style: italic; }
.timeline__who { color: var(--text-soft); font-size: 13px; }
@media (max-width: 820px) {
  .statgrid, .statgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row { grid-template-columns: auto minmax(0, 1fr); }
  .dash-row time, .dash-row .badge { grid-column: 2; }
}

.alert--row { display: flex; align-items: flex-start; gap: 10px; }
.alert--row p { margin: 0; }
.update-version { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.1; }
.update-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 22px; font-weight: 700; }
.update-status--ok { color: var(--success-text); }
.update-status--warn { color: var(--warn-text); }
.update-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.update-steps li { display: flex; align-items: flex-start; gap: 12px; }
.update-steps__n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.update-steps__n .icon { width: 16px; height: 16px; }
.update-list { margin: 0 0 14px; padding-left: 18px; }
.update-list li { margin: 4px 0; }
.update-empty { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 14px; border-radius: var(--radius); background: var(--success-bg); color: var(--success-text); }
.update-empty p { margin: 0; }
.update-actions { display: flex; justify-content: flex-end; margin: 0; }
.update-actions .button { width: auto; }
.update-result--ok { border-color: var(--success-border); background: var(--success-bg); }
.update-result--bad { border-color: var(--error-border); background: var(--error-bg); }
.update-details { margin-top: 12px; }
.update-details > summary { cursor: pointer; font-weight: 700; }
.update-scroll { max-height: 240px; overflow: auto; }
.update-log { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; padding: 12px; border-radius: var(--radius); background: var(--panel); font-size: 12px; max-height: 240px; overflow: auto; }
@media (max-width: 360px) {
  .catalog-toolbar__cat { position: relative; width: 44px; padding: 0; }
  .catalog-toolbar__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
@media (max-width: 819px) {
  .update-actions { display: block; }
  .update-actions .button, .update-demo .button { width: 100%; }
  .update-demo { display: flex; flex-direction: column; gap: 8px; }
  .mail-page .card-foot--actions { flex-direction: column; }
  .mail-page .card-foot--actions .button { width: 100%; }
}
@media (max-width: 640px) {
  .update-actions { display: block; }
  .update-actions .button { width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; border-bottom: 0; }
  .kv dd { padding-top: 2px; }
  .card-foot--actions { flex-direction: column; }
  .card-foot--actions .button { width: 100%; }
}

.card-title--sm { font-size: 14px; margin-bottom: 8px; }
.card--tight { padding: 12px 14px; }
.today { padding: 8px 8px 12px; }
.today__row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.today__row + .today__row { border-top: 1px solid var(--border); }
.today__icon { display: inline-flex; color: var(--leaf); }
.today__icon .icon { width: 18px; height: 18px; }
.today__text { flex: 1; font-weight: 700; }
.today__go { font-size: 13px; font-weight: 700; color: var(--green); }
.today__ok { margin: 4px 8px 0; padding: 12px; border-radius: 10px; background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text); font-weight: 700; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) minmax(120px, .7fr); gap: 8px; align-items: stretch; }
.flow__step { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 88px; padding: 12px 8px; border-radius: 12px; background: var(--panel-soft); text-decoration: none; color: inherit; text-align: center; }
.flow__step.is-hot { background: var(--warn-bg); color: var(--warn-text); box-shadow: inset 0 0 0 2px var(--warn-border); }
.flow__step.is-muted { opacity: .55; background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.flow__n { font-size: 28px; font-weight: 700; line-height: 1; }
.flow__l { font-size: 13px; font-weight: 700; }
.flow__arrow { align-self: center; color: var(--text-muted); font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.metric { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.metric__icon { display: inline-flex; color: var(--text-muted); }
.metric__icon .icon { width: 16px; height: 16px; }
.metric__text { display: flex; flex-direction: column; min-width: 0; }
.metric__n { font-weight: 700; }
.metric__l { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.dash-cols > .card { margin-bottom: 0; }
.dash-order { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto auto; grid-template-areas: "no school badge money time"; gap: 10px; align-items: center; min-height: 48px; padding: 8px 14px; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.dash-order:hover { background: var(--panel-soft); color: inherit; }
.dash-order__no { grid-area: no; font-weight: 700; }
.dash-order__school { grid-area: school; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-order .badge { grid-area: badge; }
.dash-order__money { grid-area: money; }
.dash-order time { grid-area: time; }
.dash-no__short { display: none; }
.dash-row--stock { min-height: 48px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 16px; align-items: start; }
.detail-grid > .stack > .card { margin-bottom: 0; }
.pairs { margin: 0; }
.pairs div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pairs div:last-child { border-bottom: 0; }
.pairs dt { color: var(--text-muted); font-size: 13px; }
.pairs dd { margin: 0; }
.pairs__note { margin: 8px 0 0; }
.order-help { margin: 0; }
.order-help__btn { border: 0; background: none; padding: 0; color: var(--green); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.actionmenu { position: relative; }
.actionmenu__panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; min-width: 160px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.actionmenu__item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.actionmenu__item:hover { background: var(--panel-soft); }
.help-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.edit-line { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.edit-line__label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.edit-line__product { min-width: 0; }
.edit-line__qty { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.edit-line__qty .edit-line__label { width: 100%; margin-bottom: 0; }
.edit-line__sum { display: flex; flex-direction: column; gap: 2px; }
.edit-line__sum strong { font-size: 16px; }
.edit-line .search-select__button { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.edit-line .search-select__button::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: none; opacity: .55; }
.edit-preview { padding: 10px 12px; border-radius: 10px; background: var(--panel-soft); }
.edit-preview.is-charge { background: var(--danger-soft); }
.edit-preview.is-refund { background: var(--success-bg); }
.edit-preview p, .edit-preview ul { margin: 0 0 6px; }
.edit-preview__diff { font-weight: 700; }
.edit-preview__diff strong { font-size: 16px; }
@media (min-width: 960px) {
  .edit-line { display: grid; grid-template-columns: minmax(220px, 1.6fr) auto auto auto; gap: 12px 16px; align-items: end; }
  .edit-line__qty { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .edit-line__remove { margin-bottom: 4px; }
}
.timeline__changes { margin: 0; padding-left: 18px; color: var(--text-muted); }
.history-event { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border); }
.history-event:first-child { border-top: 0; padding-top: 0; }
.history-event__meta { display: flex; justify-content: space-between; gap: 12px; width: 100%; color: var(--text-muted); font-size: 13px; }
.history-event__note { margin: 0; line-height: 1.45; }
.contact-diff { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--panel-soft); }
.contact-diff__title { margin: 0; font-weight: 700; }
@media (max-width: 959px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__arrow { display: none; }
  .flow__step.is-hot { grid-column: 1 / -1; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .dash-cols, .detail-grid { grid-template-columns: 1fr; }
  .dash-no__full { display: none; }
  .dash-no__short { display: inline; }
  .dash-order { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no badge" "school school" "money time"; margin: 8px 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-section { margin: 2px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.seed-form__media { display: flex; flex-direction: column; gap: 8px; }
.seed-form__fields.stack { gap: 8px; }
.seed-form .field { gap: 4px; }
.seed-form .field input:not([type="checkbox"]):not([type="file"]), .seed-form .field textarea { min-height: 36px; padding: 7px 10px; }
.seed-form .file-upload__preview { max-height: 160px; }
.seed-form textarea { min-height: 56px; }
.modal__panel:has(.seed-form) .modal__body { padding: 12px 16px; }
.seed-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seed-metrics .field:last-child { grid-column: 1 / -1; }
.file-upload__drop { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--panel-soft); }
.file-upload__drop.is-dragging { border-color: var(--green); background: var(--green-soft); }
.file-upload__preview { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--panel); }
.file-upload__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.file-upload__lead, .file-upload__meta, .file-upload__progress { margin: 0; }
.file-upload__lead { font-size: 14px; }
.file-upload__pick { padding: 0; border: 0; background: none; color: var(--green); font-weight: 700; cursor: pointer; text-decoration: underline; }
.file-upload__meta, .file-upload__progress { font-size: 13px; color: var(--text-muted); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__box { width: 44px; height: 26px; border-radius: 999px; background: var(--border-strong); position: relative; flex: 0 0 auto; }
.switch__box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch__box { background: var(--green); }
.switch input:checked + .switch__box::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__box { outline: 2px solid var(--green); outline-offset: 2px; }
.fold { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.fold summary { cursor: pointer; font-weight: 700; }
.fold .field { margin-top: 10px; }
.stock-edit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stock-edit__input { width: 88px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.stock-edit__input:focus { border-color: var(--green); box-shadow: var(--focus-ring); outline: none; }
.search-select__query-wrap { position: relative; }
.search-select__query-wrap .search-select__query { padding-right: 36px; }
.search-select__clear { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.search-select__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.search-select__chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 700; }
.search-select__chip-x { border: 0; background: transparent; color: var(--text-muted); font-size: 16px; line-height: 1; cursor: pointer; }
@media (min-width: 820px) {
  .seed-toolbar { flex-wrap: nowrap; }
  .seed-toolbar__side { flex: 0 0 auto; min-width: 0; }
  .seed-status { flex: 0 0 180px; width: 180px; }
  .seed-form { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px 20px; align-items: start; }
  .seed-form__media { grid-column: 1; grid-row: 1; }
  .seed-form__fields { grid-column: 2; grid-row: 1 / span 2; }
  .seed-form__extra { grid-column: 1; grid-row: 2; }
  .seed-form__alert { grid-column: 1 / -1; grid-row: 1; }
  .seed-form:has(.seed-form__alert) .seed-form__media { grid-row: 2; }
  .seed-form:has(.seed-form__alert) .seed-form__fields { grid-row: 2 / span 2; }
  .seed-form:has(.seed-form__alert) .seed-form__extra { grid-row: 3; }
  .seed-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seed-metrics .field:last-child { grid-column: auto; }
}
@media (max-width: 819px) {
  .order-table-wrap { overflow: visible; }
  .order-table thead { display: none; }
  .order-table, .order-table tbody, .order-table tr, .order-table td { display: block; width: auto; }
  .order-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no status action" "school school action" "items items action" "amount amount action"; gap: 4px 12px; align-items: center; margin: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
  .order-table td { border: 0; padding: 0; }
  .order-table .order-no { grid-area: no; font-weight: 700; }
  .order-table .order-school { grid-area: school; }
  .order-table .order-items { grid-area: items; color: var(--text-soft); font-size: 13px; }
  .order-table .order-status { grid-area: status; }
  .order-table .order-amount { grid-area: amount; font-weight: 700; }
  .order-table .order-open { grid-area: action; justify-self: end; }
  .order-table tr:has(td[colspan]) { display: block; }
  .seed-table-wrap { overflow: visible; }
  .seed-table thead { display: none; }
  .seed-table, .seed-table tbody, .seed-table tr, .seed-table td { display: block; width: auto; }
  .seed-table tr { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img name status" "img price status" "stock stock stock" "actions actions actions"; gap: 6px 12px; margin: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
  .seed-table td { border: 0; padding: 0; }
  .seed-table .seed-img { grid-area: img; width: auto; }
  .seed-table .seed-img img { width: 64px; height: 64px; }
  .seed-table .seed-name { grid-area: name; }
  .seed-table .seed-price { grid-area: price; font-weight: 700; }
  .seed-table .seed-status { grid-area: status; justify-self: end; }
  .seed-table .seed-stock { grid-area: stock; }
  .seed-table .seed-actions { grid-area: actions; display: flex; gap: 8px; text-align: left; white-space: normal; }
  .seed-table .seed-actions > * { flex: 1 1 0; margin-left: 0; }
  .seed-table .stock-edit { width: 100%; }
  .seed-table .stock-edit__input { flex: 1 1 auto; width: auto; }
  .cat-table-wrap, .school-table-wrap, .school-orders-wrap, .school-credits-wrap, .school-accounts-wrap { overflow: visible; }
  .cat-table thead, .school-table thead, .school-orders thead, .school-credits thead, .school-accounts thead { display: none; }
  .cat-table, .cat-table tbody, .cat-table tr, .cat-table td,
  .school-table, .school-table tbody, .school-table tr, .school-table td,
  .school-orders, .school-orders tbody, .school-orders tr, .school-orders td,
  .school-credits, .school-credits tbody, .school-credits tr, .school-credits td,
  .school-accounts, .school-accounts tbody, .school-accounts tr, .school-accounts td { display: block; width: auto; }
  .cat-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name status" "seeds seeds" "actions actions"; gap: 8px; margin: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
  .cat-table td { border: 0; padding: 0; }
  .cat-name { grid-area: name; font-weight: 700; }
  .cat-status { grid-area: status; justify-self: end; }
  .cat-seeds { grid-area: seeds; }
  .cat-seeds__word { display: inline; }
  .cat-order { display: none; }
  .cat-actions { grid-area: actions; display: flex; gap: 8px; }
  .cat-actions > * { flex: 1 1 0; }
  .school-form__row { grid-template-columns: 1fr; }
  .page-head:has(.school-actions) { flex-direction: column; align-items: stretch; }
  .school-actions { display: flex; flex-wrap: wrap; gap: 8px; width: auto; }
  .school-actions > * { width: auto; flex: 0 0 auto; min-width: 0; }
  .school-actions .button { width: auto; min-height: 40px; padding-left: 12px; padding-right: 12px; }
  .school-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name status" "place place" "addr addr" "meta meta" "open open"; gap: 8px; margin: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
  .school-table td { border: 0; padding: 0; }
  .school-name { grid-area: name; font-weight: 700; }
  .school-status { grid-area: status; justify-self: end; }
  .school-table td.school-city, .school-table td.school-district, .school-table td.school-address, .school-table td.school-credit, .school-table td.school-account { display: none; }
  .school-place { display: block; grid-area: place; color: var(--text-soft); }
  .school-address-card { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; grid-area: addr; color: var(--text-soft); }
  .school-meta { display: block; grid-area: meta; color: var(--text-soft); }
  .school-open { grid-area: open; justify-self: start; }
  .school-open .button { width: auto; min-width: 88px; height: 40px; }
  .seed-table .seed-actions > * { flex: 0 0 auto; }
  .cat-actions > * { flex: 0 0 auto; }
  .seed-table .seed-actions .button, .cat-actions .button, .user-open .button, .role-actions .button { height: 40px; width: auto; }
  .school-orders tr, .school-credits tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
  .school-orders td, .school-credits td { border: 0; padding: 0; }
  .school-accounts tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name status" "user edit"; gap: 8px; margin: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
  .school-accounts td { border: 0; padding: 0; }
  .sa-name { grid-area: name; font-weight: 700; }
  .sa-status { grid-area: status; justify-self: end; }
  .sa-user { grid-area: user; color: var(--text-soft); }
  .sa-edit { grid-area: edit; justify-self: end; }
  .school-orders tr:has(td[colspan]), .school-credits tr:has(td[colspan]), .cat-table tr:has(td[colspan]), .school-table tr:has(td[colspan]) { display: block; }
  .so-no { font-weight: 700; }
  .so-status { justify-self: end; }
  .so-total, .sc-note, .sc-date { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .file-upload__drop { flex-direction: row; align-items: center; }
  .file-upload__preview { width: 96px; height: 72px; aspect-ratio: auto; flex: 0 0 96px; }
}

.import-log { max-height: 220px; overflow: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); overflow-wrap: anywhere; }
.import-log p, .import-summary { margin: 0 0 6px; overflow-wrap: anywhere; }
.school-form { display: flex; flex-direction: column; gap: 12px; }
.school-form__identity, .address-fields, .address-fields__place { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 820px) {
  .school-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; align-items: start; }
  .school-form__identity { grid-column: 1; grid-row: 1; }
  .school-form .address-fields { display: contents; }
  .school-form .address-fields__place { grid-column: 2; grid-row: 1; }
  .school-form .address-fields__address { grid-column: 1 / -1; }
}
.user-form { display: flex; flex-direction: column; gap: 16px; }
.user-form .switch { display: flex; width: 100%; max-width: 100%; align-items: flex-start; }
.user-form .switch > span:last-child { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.user-form__grid, .user-form__passwords { display: flex; flex-direction: column; gap: 12px; }
.user-form__wide { display: flex; flex-direction: column; gap: 12px; }
.user-form__assign { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 16px; align-items: start; }
.user-form__assign:has(.field + .field) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mail-form, .mail-form__pair { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 820px) {
  .mail-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; align-items: start; }
  .mail-form__pair { display: contents; }
  .mail-form__wide { grid-column: 1 / -1; }
}
.cell-label { display: none; }
.perm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.perm-groups { display: block; }
.perm-fold { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); break-inside: avoid; margin-bottom: 12px; }
.perm-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 12px; cursor: pointer; font-weight: 700; }
.perm-fold__count { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.perm-fold__body { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 8px; }
.perm-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; }
.perm-row span { min-width: 0; }
.perm-role { flex: none; margin-left: auto; padding: 2px 6px; border-radius: 999px; background: var(--panel); color: var(--text-muted); font-size: 11px; font-weight: 700; }
.field.status-select.role-select { display: none; width: 100%; max-width: none; flex: none; }
@media (min-width: 820px) {
  .user-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; align-items: start; }
  .perm-groups { columns: 2; column-gap: 12px; }
}
@media (max-width: 819px) {
  .role-tabs { display: none; }
  .field.status-select.role-select { display: flex; width: 100%; max-width: none; }
}
@media (max-width: 819px) {
  .user-table-wrap, .role-table-wrap, .line-wrap, .move-wrap { overflow: visible; }
  .user-table thead, .role-table thead, .line-table thead, .move-table thead { display: none; }
  .user-table, .user-table tbody, .user-table tr, .user-table td,
  .role-table, .role-table tbody, .role-table tr, .role-table td,
  .line-table, .line-table tbody, .line-table tr, .line-table td,
  .move-table, .move-table tbody, .move-table tr, .move-table td { display: block; width: auto; }
  .card:has(.user-table) { background: transparent; border: 0; box-shadow: none; }
  .user-table tr { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "login" "roles" "school" "phone" "status" "open"; gap: 6px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: transparent; }
  .user-table td, .user-table tbody tr:hover td { border: 0; padding: 0; background: transparent; }
  .user-name { grid-area: name; font-weight: 700; }
  .user-passive { display: inline-flex; margin-left: 6px; vertical-align: middle; }
  .user-login { grid-area: login; color: var(--text-soft); }
  .user-roles { grid-area: roles; display: flex; flex-wrap: wrap; gap: 4px; }
  .user-school { grid-area: school; }
  .user-school:empty { display: none; }
  .user-phone { grid-area: phone; }
  .user-status { grid-area: status; }
  .user-table .cell-label { display: block; margin-bottom: 2px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
  .user-open { grid-area: open; justify-self: start; }
  .role-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name status" "count count" "actions actions"; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .role-table td { border: 0; padding: 0; background: transparent; }
  .role-name { grid-area: name; font-weight: 700; }
  .role-count { grid-area: count; }
  .role-status { grid-area: status; justify-self: end; }
  .role-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .role-actions .button { width: auto; flex: 0 0 auto; }
  .role-table .cell-label { display: block; margin-bottom: 2px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
  .card:has(.role-table) { background: transparent; border: 0; box-shadow: none; }
  .line-table tr, .move-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
  .line-table td, .move-table td { border: 0; padding: 0; }
  .line-table td:first-child, .move-table td:first-child { font-weight: 700; grid-column: 1 / -1; }
  .line-table td.num, .move-table td.num { text-align: left; }
  .line-table td.num::before, .move-table td.num::before { content: attr(data-label); margin-right: 6px; color: var(--text-muted); font-weight: 600; }
  .line-table tr:has(td[colspan]), .move-table tr:has(td[colspan]) { display: flex; justify-content: space-between; align-items: center; }
  .line-table tr:has(td[colspan]) td, .move-table tr:has(td[colspan]) td { grid-column: auto; }
}

.content-tabs { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; }
.content-tabs .chip { flex: 1 1 160px; max-width: 280px; justify-content: center; white-space: normal; text-align: center; }
.content-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.content-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; text-decoration: none; color: inherit; min-height: 120px; }
.content-card:hover { border-color: var(--green); }
.content-card h2 { margin: 0; font-size: 18px; }
.content-card p { margin: 0; color: var(--text-soft); }
.content-preview .prose { padding: 4px 20px 8px; }
.content-preview .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.content-body { min-height: 220px; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.faq-actions .button { width: auto; }
.faq-preview { color: var(--text-soft); max-width: 420px; }
.faq-question { font-weight: 700; }
@media (min-width: 720px) {
  .content-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 819px) {
  .content-tabs .chip { flex: 1 1 calc(50% - 8px); max-width: none; }
  .faq-table-wrap { overflow: visible; }
  .faq-table thead { display: none; }
  .faq-table, .faq-table tbody, .faq-table tr, .faq-table td { display: block; width: auto; }
  .faq-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "question status" "preview preview" "actions actions"; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .faq-table td { border: 0; padding: 0; background: transparent; }
  .faq-question { grid-area: question; }
  .faq-preview { grid-area: preview; max-width: none; }
  .faq-status { grid-area: status; justify-self: end; }
  .faq-actions { grid-area: actions; }
  .faq-table .cell-label { display: block; margin-bottom: 2px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
  .card:has(.faq-table) { background: transparent; border: 0; box-shadow: none; }
  .faq-table tr:has(td[colspan]) { display: block; }
}
.user-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.user-filters .role-tabs { flex: 1 1 auto; min-width: 0; }
.user-status-filter { display: inline-flex; flex: 0 0 auto; margin-left: auto; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.user-status-filter a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 12px; color: var(--text-soft); background: var(--panel); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.user-status-filter a + a { box-shadow: inset 1px 0 0 var(--border); }
.user-status-filter a.is-active { background: var(--green); color: #fff; }
.user-status-filter a.is-active .chip__n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.user-table tr.is-muted { opacity: 0.62; }
.user-form .select { width: 100%; min-width: 0; }
@media (max-width: 819px) {
  .user-filters { flex-direction: column; align-items: stretch; }
  .user-status-filter { display: flex; width: 100%; margin-left: 0; }
  .user-status-filter a { flex: 1 1 0; min-width: 0; padding: 6px 4px; }
}
.mail-layout { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .mail-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}
.mail-notices__hint { margin: 0; padding: 12px 20px; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.mail-notices { display: block; }
.mail-notices .switch--wide { position: relative; box-sizing: border-box; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--border); font-weight: 400; min-height: 46px; }
.mail-notices .switch--wide > span:first-child { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.school-accounts__empty { margin: 0; padding: 16px 20px; color: var(--text-muted); }
.school-accounts .sa-name, .school-accounts .sa-user { min-width: 0; overflow-wrap: anywhere; }
.notice-form { min-width: 0; }
.notice-form .button { max-width: 100%; }
.modal__hint { overflow-wrap: anywhere; }
.card-head .button { flex: 0 0 auto; }
.mail-notices .switch--wide:last-child { border-bottom: 0; }
.switch__end { display: inline-flex; align-items: center; gap: 8px; }
.switch.is-muted { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 959px) {
  .mail-notices .switch--wide { min-height: 48px; }
}
