/* THE LITTLE CAFE — Studio visual system, preserving existing Studio behavior. */
:root {
  --studio-canvas: #f3efe6;
  --studio-surface: #fffdf8;
  --studio-surface-soft: #f7f2e9;
  --studio-ink: #1b2a21;
  --studio-muted: #68736a;
  --studio-line: #e5dccd;
  --studio-line-strong: #d6cbb9;
  --studio-green: #103e30;
  --studio-green-2: #286348;
  --studio-green-soft: #e7eee7;
  --studio-red: #b9362d;
  --studio-amber: #79551d;
  --studio-amber-bg: #fff5e2;
  --studio-danger: #9b342e;
  --studio-danger-bg: #fff0ed;
  --studio-shadow: 0 9px 26px rgba(38,43,31,.055);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
html, body { background: var(--studio-canvas); color: var(--studio-ink); }
.studio-topbar { min-height: 76px; padding: 11px 30px; border-bottom-color: #e6ddcf; background: rgba(249,246,239,.96); }
.studio-mark { border-radius: 13px 13px 6px 13px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.studio-brand strong { font-size: 16px; letter-spacing: -.25px; }
.studio-brand small { color: #788278; font-size: 9px; letter-spacing: 1.1px; }
.save-state { min-height: 38px; padding: 8px 12px; border-color: #e4dacb; border-radius: 999px; background: #fffdf8; font-size: 11px; }
.studio-shell { grid-template-columns: 252px minmax(0,1fr); }
.studio-sidebar { top: 76px; height: calc(100vh - 76px); padding: 28px 16px 20px; background: #103e30; }
.sidebar-label { color: #c1d0c3; font-size: 9px; letter-spacing: 1.5px; }
.studio-nav { gap: 6px; }
.nav-item { min-height: 48px; padding: 10px 13px; border-radius: 11px; font-size: 12px; }
.nav-item span { border-radius: 9px; }
.nav-item.active { border-color: #f0e8db; background: #f6f1e8; box-shadow: 0 5px 14px rgba(0,0,0,.09); }
.sidebar-note { padding: 15px; border-color: rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.07); }
.sidebar-note strong { font-size: 11px; }
.sidebar-note p { font-size: 10px; line-height: 1.6; }
.studio-main { padding: 38px clamp(20px,3.7vw,58px) 72px; }
.studio-main-inner { width: min(100%, 1260px); }
.eyebrow { color: #37694c; font-size: 9px; letter-spacing: 1.45px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-top: 9px; color: #13291f; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px,3.4vw,42px); line-height: 1.04; font-weight: 600; letter-spacing: -.75px; }
.page-head p { font-size: 13px; line-height: 1.65; }
.card { padding: 23px; border-color: #e4dacb; border-radius: 16px; background: var(--studio-surface); box-shadow: 0 5px 17px rgba(54,45,30,.035); }
.card h2 { color: #1b3025; font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.card h3 { color: #1b3025; font-size: 14px; font-weight: 800; }
.metric { color: #103e30; font-family: Georgia, "Times New Roman", serif; font-size: 39px; font-weight: 600; letter-spacing: -.8px; }
.status { min-height: 27px; padding: 5px 10px; border-radius: 999px; font-size: 10px; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 12px; line-height: 1.65; }
.btn { min-height: 44px; padding: 10px 15px; border-radius: 10px; font-size: 11px; font-weight: 800; }
.btn-dark, .btn-primary { background: var(--studio-green); border-color: var(--studio-green); }
.btn-danger { border-radius: 10px; }
.field label, .field-label { color: #33473a; font-size: 11px; font-weight: 800; }
.field input, .field select, .field textarea { min-height: 46px; padding: 11px 13px; border-color: #ded5c7; border-radius: 10px; background: #fffefa; color: var(--studio-ink); font-size: 13px; }
.field textarea { min-height: 96px; }
.field small { color: #707b71; font-size: 10px; line-height: 1.55; }
.toolbar input { min-height: 46px; padding: 11px 14px; border-color: #ded5c7; border-radius: 999px; background: #fffefa; font-size: 13px; }
.product-list { gap: 10px; }
.product-row { grid-template-columns: 62px minmax(0,1fr) auto; gap: 14px; padding: 13px; border-color: #e6ddcf; border-radius: 13px; background: #fffefa; }
.product-row img, .product-placeholder { width: 62px; height: 62px; border-color: #eae2d6; border-radius: 10px; background: #f4efe6; }
.product-row strong { color: #1b3025; font-size: 12px; font-weight: 800; }
.product-row small { margin-top: 5px; color: #6e786f; font-size: 10px; line-height: 1.5; }
.row-actions { gap: 7px; }
.btn-small { min-height: 38px; padding: 8px 11px; border-radius: 9px; font-size: 10px; }
.chip { min-height: 27px; padding: 6px 9px; border-radius: 999px; background: #f7f3eb; font-size: 10px; }
.media-grid { gap: 14px; }
.media-card { padding: 13px; border-color: #e5dccd; border-radius: 13px; background: #fffefa; }
.media-card img { height: 140px; border-color: #e9e1d5; border-radius: 10px; background: #f5f0e7; }
.media-card strong { color: #25392d; font-size: 11px; }
.media-card small { font-size: 10px; line-height: 1.5; }
.role-group { padding: 16px; border-color: #e5dccd; border-radius: 13px; background: #fbf8f1; }
.role-group h3 { font-size: 12px; }
.check-row { gap: 9px; padding: 8px 3px; font-size: 11px; }
.table-wrap { border-color: #e5dccd; border-radius: 12px; }
.price-table { font-size: 11px; }
.price-table th { background: #f7f2e9; font-size: 10px; }
.price-table th, .price-table td { padding: 12px 10px; }
.price-table input { min-height: 42px; border-color: #e2d8c9; border-radius: 9px; font-size: 12px; }
.lang-tabs { gap: 7px; }
.lang-tab { min-height: 42px; padding: 9px 13px; border-radius: 999px; font-size: 11px; }
.diff-row { padding: 13px 0; font-size: 11px; }
.diff-row strong { font-size: 11px; }
.empty { padding: 32px 20px; border-color: #d9cfbf; border-radius: 13px; background: #fbf8f1; font-size: 12px; }
.price-preview { padding: 19px; border-radius: 13px; background: var(--studio-green); }
.price-preview .big { font-family: Georgia, "Times New Roman", serif; font-size: 40px; font-weight: 600; }
.price-preview .line { font-size: 11px; }
.toast { border-radius: 13px; font-size: 12px; }
:focus-visible { outline-color: #c78431; outline-width: 3px; outline-offset: 3px; }
@media (max-width: 980px) {
  .studio-shell { grid-template-columns: 220px minmax(0,1fr); }
  .studio-main { padding: 30px 23px 60px; }
}
@media (max-width: 760px) {
  .studio-topbar { min-height: 66px; padding: 9px 14px; }
  .studio-brand strong { font-size: 13px; }
  .studio-brand small { font-size: 7px; }
  .studio-sidebar { top: 66px; padding: 8px 10px; background: #103e30; }
  .nav-item { min-height: 45px; padding: 8px 11px; border-radius: 999px; font-size: 11px; }
  .nav-item span { width: 23px; height: 23px; flex-basis: 23px; border-radius: 50%; }
  .studio-main { padding: 24px 15px 52px; }
  .page-head h1 { font-size: 32px; }
  .card { padding: 18px; border-radius: 14px; }
}
@media (max-width: 520px) {
  .studio-topbar { gap: 7px; }
  .studio-brand { gap: 8px; }
  .studio-brand strong { font-size: 12px; }
  .studio-brand small { max-width: 155px; font-size: 6.5px; letter-spacing: .55px; }
  .top-actions { gap: 6px; }
  .top-actions .btn { min-height: 44px; padding: 8px 10px; font-size: 10px; }
  .save-state { display: none; }
  .studio-main { padding: 21px 13px 48px; }
  .page-head h1 { font-size: 30px; }
  .page-head p { font-size: 12px; line-height: 1.6; }
  .grid-2, .field-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card { padding: 16px; }
  .metric { font-size: 31px; }
  .product-row { grid-template-columns: 54px minmax(0,1fr); gap: 10px; padding: 12px; border-radius: 12px; }
  .product-row img, .product-placeholder { width: 54px; height: 54px; }
  .product-row strong { font-size: 12px; }
  .product-row small { font-size: 10px; }
  .row-actions { grid-column: 2; }
  .row-actions .btn { min-height: 40px; }
  .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .media-card { padding: 9px; }
  .media-card img { height: 104px; }
  .check-grid { grid-template-columns: 1fr; }
  .price-table { min-width: 620px; }
  .field input, .field select, .field textarea, .toolbar input, .price-table input { font-size: 16px; }
  .toolbar input, .price-table input { min-height: 46px; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 350px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .studio-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .studio-brand strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (max-width: 760px) {
  /* The desktop sidebar height must not leave a viewport-sized empty band on phones. */
  .studio-sidebar { width: 100%; height: auto; min-height: 0; display: block; }
}
