:root {
  --studio-canvas: #f5f5ee;
  --studio-surface: #fffefa;
  --studio-surface-soft: #f0f3e9;
  --studio-ink: #1b3026;
  --studio-muted: #52665a;
  --studio-line: #dce5d8;
  --studio-line-strong: #c9d6c9;
  --studio-green: #14583e;
  --studio-green-2: #28654a;
  --studio-green-soft: #e3f0e2;
}
.studio-topbar { background: rgba(253, 253, 248, .97); }
.studio-sidebar { background: #103c2d; }
.studio-mark { background: var(--studio-green); border-radius: 13px; }
.page-head h1, .metric, .price-preview .big { font-family: inherit; font-weight: 850; letter-spacing: -.04em; }
.page-head p, .notice { font-size: 14px; }
.card { border-radius: 18px; box-shadow: 0 6px 22px rgba(27, 55, 37, .045); }
.card h2 { font-size: 17px; }
.small, .field label, .field-label, .field small, .product-row small, .diff-row, .diff-row strong { font-size: 12px; }
.btn { min-height: 46px; border-radius: 12px; font-size: 13px; }
.btn-small { min-height: 44px; }
.field input, .field select, .field textarea { border-color: var(--studio-line-strong); }
.nav-item { font-size: 13px; }
.nav-item.active { background: #fffefa; color: #103c2d; }
.product-row { border-radius: 15px; }
.product-row strong { font-size: 13px; }
.toast { font-size: 13px; }

@media (max-width: 760px) {
  .studio-topbar { min-height: 68px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; }
  .studio-sidebar { position: sticky; top: calc(68px + max(0px, env(safe-area-inset-top) - 10px)); padding: 8px 12px; background: #103c2d; }
  .studio-nav { gap: 7px; scroll-padding-inline: 12px; }
  .nav-item { min-height: 46px; font-size: 12px; }
  .studio-main { padding: 22px 15px calc(48px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 30px; }
  .page-head p, .notice { font-size: 13px; }
}

@media (max-width: 520px) {
  .studio-topbar { flex-wrap: wrap; gap: 8px; }
  .studio-brand { flex: 1 1 auto; }
  .studio-brand strong { font-size: 13px; }
  .studio-brand small { font-size: 8px; }
  .top-actions { flex: 0 0 auto; }
  .top-actions .btn { min-height: 44px; font-size: 12px; }
  .save-state {
    display: flex;
    position: absolute;
    left: 14px;
    top: calc(100% - 1px);
    z-index: 1;
    max-width: calc(100% - 28px);
    min-height: 0;
    padding: 3px 8px;
    border-radius: 0 0 8px 8px;
    font-size: 10px;
    line-height: 1.3;
  }
  .studio-sidebar { padding-top: 19px; }
  .studio-main { padding-right: 14px; padding-left: 14px; }
  .small, .field label, .field-label, .field small, .product-row small, .diff-row, .diff-row strong { font-size: 12px; }
  .field input, .field select, .field textarea, .toolbar input, .price-table input { font-size: 16px; }
  .check-row { font-size: 12px; }
  .price-table, .price-table th { font-size: 12px; }
  .price-table input { font-size: 16px; }
  .row-actions .btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}
