:root {
  --ink: #17222e;
  --ink-soft: #4a5a6a;
  --muted: #7b8a99;
  --line: #e2e7ec;
  --surface: #ffffff;
  --canvas: #f6f8fa;
  --brand: #1f2d3d;
  --accent: #e2703a;
  --accent-soft: #fdf1e9;
  --ok: #2f8f5b;
  --warn: #b5750f;
  --danger: #b4423a;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(23, 34, 46, .06), 0 1px 3px rgba(23, 34, 46, .04);
  --shadow-md: 0 8px 24px rgba(23, 34, 46, .08);
  --shell: 1180px;
}

* { box-sizing: border-box; }

/* An author `display` declaration outranks the user agent's `[hidden]` rule,
   so the attribute is enforced explicitly. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.55 "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand-name em { color: var(--accent); font-style: normal; }
.header-search { flex: 1 1 260px; display: flex; max-width: 380px; }
.header-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 9px 12px;
  font-size: 14px;
  background: var(--canvas);
}
.header-search button {
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: 0 10px 10px 0;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.header-search input:focus { outline: 2px solid rgba(226, 112, 58, .35); background: #fff; }
.main-nav { display: flex; gap: 18px; font-size: 14px; }
.main-nav a { color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a.is-active, .main-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.account-nav { display: flex; align-items: center; gap: 10px; }
.basket-link { font-size: 14px; color: var(--ink-soft); }
.basket-count {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 600;
}
.menu-wrap { position: relative; }
.account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  font: inherit;
}
.account-button:hover { border-color: var(--line); background: var(--canvas); }
.caret { color: var(--muted); font-size: 11px; }
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.dropdown-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  font-size: 13px;
}
.dropdown a, .dropdown .link-button {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dropdown a:hover, .dropdown .link-button:hover { background: var(--canvas); color: var(--ink); }
.badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 6px;
}

/* ---------- footer ---------- */
.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding: 34px 20px 18px; }
.footer-grid h4 { margin-bottom: 10px; }
.footer-grid a { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.footer-brand { font-size: 17px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 14px 20px 26px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- flash ---------- */
.flashes { margin: 20px 0 -4px; display: grid; gap: 8px; }
/* ---------- primitives ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover { background: #2b3d51; color: #fff; }
.btn--small { padding: 7px 13px; font-size: 13px; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--canvas); color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: #cf6231; }
.btn--wide { width: 100%; }
.link-button { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #eef1f4;
  color: var(--ink-soft);
}
.pill--live, .pill--solved, .pill--delivered { background: #e8f6ee; color: #1f6b45; }
.pill--preview, .pill--staging, .pill--in-progress, .pill--in-transit, .pill--open { background: #eaf1fa; color: #29567f; }
.pill--draft, .pill--low-stock, .pill--waiting-on-customer { background: #fdf4e5; color: #8a5b12; }
.pill--backorder, .pill--urgent { background: #fdecea; color: #93362d; }
.pill--high { background: #fdf1e4; color: #945512; }
.pill--normal, .pill--low-p { background: #eef1f4; color: #55636f; }
.pill--role { background: var(--accent-soft); color: #a4501f; }

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  background: var(--accent-soft);
  color: #9c4b1c;
  border: 1px solid #f6ded0;
}
.chip--ghost { background: var(--canvas); color: var(--ink-soft); border-color: var(--line); }
.rating { color: #c98a12; font-weight: 600; font-size: 13px; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.avatar--lg { width: 46px; height: 46px; font-size: 16px; }
.avatar--sm { width: 24px; height: 24px; font-size: 10px; }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--pad { padding: 22px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-body { padding: 18px 20px; }
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.section { margin: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

.flash {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.flash--success { border-color: #cbe6d6; background: #f1faf5; color: #20603f; }
.flash--info { border-color: #cfdde9; background: #f2f7fb; color: #2b5573; }
.flash--warning { border-color: #f0e0c2; background: #fdf8ee; color: #8a5b12; }
.flash--error { border-color: #efd2cf; background: #fdf3f2; color: #8f332c; }
/* ---------- dish cards ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dish-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.dish-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dish-media { position: relative; display: block; background: var(--canvas); }
.dish-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.dish-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(255, 255, 255, .92);
  color: #9c4b1c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 3px 9px;
}
.dish-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dish-head h3 { margin: 0; font-size: 15.5px; }
.dish-price { font-weight: 700; white-space: nowrap; }
.dish-desc { margin: 0; font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.dish-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.dish-actions { margin: 4px 0 0; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea, .toolbar input, .toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.toolbar input:focus, .toolbar select:focus {
  outline: 2px solid rgba(226, 112, 58, .3);
  border-color: #ecc3ab;
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.form-error {
  border: 1px solid #efd2cf;
  background: #fdf3f2;
  color: #8f332c;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-notice {
  border: 1px solid #cbe6d6;
  background: #f1faf5;
  color: #20603f;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14px;
}
.form-info {
  border: 1px solid #eadfc6;
  background: #fdf8ee;
  color: #7d5a12;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14px;
  margin-bottom: 16px;
}
.auth-card { max-width: 430px; margin: 40px auto; }
.auth-card .panel-body { padding: 26px 26px 22px; }
.auth-meta { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 190px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #fafbfc; }
table.data tbody tr:hover { background: #fbfcfd; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .mono { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.table-note { font-size: 12.5px; padding: 12px 20px; }

/* ---------- hero / marketing ---------- */
.hero {
  background: linear-gradient(135deg, #1f2d3d 0%, #2f4a63 55%, #43607a 100%);
  color: #fff;
  border-radius: 18px;
  padding: 46px 44px;
  margin: 26px 0 34px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 32px;
  align-items: center;
}
.hero h1 { font-size: 36px; color: #fff; margin-bottom: 12px; }
.hero p { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 46ch; }
.hero-stats { display: flex; gap: 26px; margin-top: 22px; }
.hero-stats strong { display: block; font-size: 22px; }
.hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.hero-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(4px);
}
.hero-card h3 { color: #fff; font-size: 15px; }
.hero-card ul { margin: 0; padding-left: 18px; color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.category-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.category-strip a {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.category-strip a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.metric { display: grid; gap: 4px; }
.metric strong { font-size: 24px; }
.metric span { color: var(--muted); font-size: 12.5px; }
.feature { display: grid; gap: 6px; }
.feature h3 { font-size: 15px; }
.feature p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- product detail ---------- */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: start; margin-top: 26px; }
.detail-media { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.detail-media img { width: 100%; }
.detail h1 { margin-bottom: 8px; }
.detail-price { font-size: 26px; font-weight: 700; }
.spec-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: 13.5px; }
.spec-list span:first-child { color: var(--muted); }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-top: 20px; display: flex; gap: 8px; }

/* ---------- support console ---------- */
.console { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 26px; align-items: start; margin: 26px 0 40px; }
.console-side {
  background: var(--brand);
  border-radius: var(--radius);
  padding: 18px 14px;
  color: rgba(255, 255, 255, .78);
  position: sticky;
  top: 88px;
}
.console-side h4 { color: rgba(255, 255, 255, .45); margin: 16px 10px 8px; font-size: 11px; }
.console-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13.5px;
}
.console-side a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.console-side a.is-active { background: rgba(226, 112, 58, .95); color: #fff; font-weight: 600; }
.console-side .side-count { font-size: 11.5px; opacity: .75; }
.console-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.console-title h1 { margin: 0; font-size: 25px; }
.console-title .muted { font-size: 13.5px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px;
  box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-size: 23px; line-height: 1.2; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat--accent { border-left: 3px solid var(--accent); }
.note-box {
  border: 1px solid #f6ded0;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13.5px;
  color: #8a4415;
}
.diagnostic {
  background: #10181f;
  color: #d6e3ec;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
}
.diagnostic--empty { color: #8ea3b4; }
.kv { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- mailbox ---------- */
.mail-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; margin: 26px 0 40px; }
.mail-side .panel-head { padding: 14px 16px; }
.mail-folders { display: grid; padding: 8px; gap: 2px; }
.mail-folders a { padding: 9px 11px; border-radius: 9px; font-size: 13.5px; color: var(--ink-soft); display: flex; justify-content: space-between; }
.mail-folders a.is-active { background: var(--canvas); color: var(--ink); font-weight: 600; }
.mail-side .mail-account { padding: 12px 16px 16px; font-size: 12.5px; border-top: 1px solid var(--line); }
.mail-list { display: grid; }
.mail-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 2fr) 84px;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.mail-row:hover { background: #fbfcfd; color: var(--ink); }
.mail-row.is-unread { background: #f7fafd; }
.mail-row.is-unread .mail-from, .mail-row.is-unread .mail-subject { font-weight: 700; color: var(--ink); }
.mail-row .mail-time { text-align: right; font-size: 12px; color: var(--muted); }
.mail-body { padding: 22px 26px; font-size: 14.5px; line-height: 1.65; }
.mail-fields { display: grid; gap: 4px; padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mail-fields div { display: flex; gap: 10px; }
.mail-fields span:first-child { width: 70px; color: var(--muted); }
.mail-render { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 16px; background: #fff; }
.mail-render iframe { width: 100%; border: 0; display: block; }
.empty-state { padding: 40px 24px; text-align: center; color: var(--muted); }

/* ---------- misc ---------- */
.error-page { max-width: 560px; margin: 70px auto; text-align: center; }
.error-page .code { font-size: 54px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.notice-inline { font-size: 13px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.list-check { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 14px; }
.list-check li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.support-cta { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }

@media (max-width: 1080px) {
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 12px 20px; }
  .main-nav { order: 3; width: 100%; }
  .hero { grid-template-columns: 1fr; padding: 32px 26px; }
  .detail { grid-template-columns: 1fr; }
  .console, .mail-layout { grid-template-columns: 1fr; }
  .console-side { position: static; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: 1fr; }
  .mail-row { grid-template-columns: 1fr; gap: 4px; }
  .mail-row .mail-time { text-align: left; }
}
@media (max-width: 620px) {
  .dish-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
}



