@charset "UTF-8";

/* Menustry Menu Studio — independent operations interface */
:root {
  --studio-ink: #11100f;
  --studio-ink-2: #24211f;
  --studio-paper: #f3f0e9;
  --studio-surface: #fffdf8;
  --studio-surface-2: #ebe7df;
  --studio-line: #d7d1c7;
  --studio-line-dark: #aaa398;
  --studio-muted: #6e6962;
  --studio-violet: #6857df;
  --studio-violet-soft: #ddd8ff;
  --studio-acid: #d7ff68;
  --studio-green: #167052;
  --studio-amber: #a65b16;
  --studio-red: #b7372f;
  --studio-radius: 8px;
  --studio-font: "DM Sans", sans-serif;
  --studio-display: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; overflow-x: clip; background: var(--studio-paper); }

body.studio-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--studio-ink);
  background:
    linear-gradient(rgba(17, 16, 15, .025) 1px, transparent 1px),
    var(--studio-paper);
  background-size: 100% 40px;
  font-family: var(--studio-font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 5000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: #fff;
  background: var(--studio-violet);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.studio-shell { min-height: 100vh; }

.studio-header {
  position: sticky;
  z-index: 1020;
  top: 0;
  margin-left: 270px;
  width: calc(100% - 270px);
  color: #fff;
  background: var(--studio-ink);
}

.studio-header__primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(20px, 3vw, 40px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.studio-header__brandline,
.studio-header__actions,
.studio-global-nav,
.studio-header__context,
.studio-header__context nav {
  display: flex;
  align-items: center;
}

.studio-header__brandline { gap: 24px; min-width: 0; }

.studio-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-family: var(--studio-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.studio-wordmark__sign {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.venue-switcher { min-width: 0; }

.venue-switcher__button {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 250px;
  padding: 7px 0 7px 20px;
  color: #fff;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.18);
  background: transparent;
}

.venue-switcher__copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.venue-switcher__copy small {
  color: rgba(255,255,255,.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.venue-switcher__copy strong {
  overflow: hidden;
  max-width: 175px;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-switcher__button > i { color: rgba(255,255,255,.55); font-size: 13px; }

.restaurant-menu {
  width: 280px;
  padding: 8px;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  box-shadow: 0 18px 50px rgba(17,16,15,.16);
}

.restaurant-menu .dropdown-header {
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.restaurant-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 5px;
  font-size: 13px;
}

.restaurant-menu .dropdown-item.active {
  color: var(--studio-ink);
  background: var(--studio-violet-soft);
}

.restaurant-option-dot {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--studio-ink);
  background: var(--studio-surface-2);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.studio-global-nav { align-self: stretch; gap: 4px; }

.studio-global-nav a {
  display: grid;
  align-self: stretch;
  min-width: 74px;
  place-items: center;
  padding: 0 18px;
  color: rgba(255,255,255,.58);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 600;
}

.studio-global-nav a:hover { color: #fff; }

.studio-global-nav a.active {
  color: #fff;
  border-bottom-color: var(--studio-acid);
}

.studio-header__actions {
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.studio-search,
.studio-live-link,
.studio-account,
.studio-notification {
  border: 0;
  background: transparent;
}

.studio-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 12px;
  color: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 5px;
}

.studio-search:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.studio-search span { font-size: 12px; }

.studio-search kbd {
  padding: 2px 5px;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 3px;
  background: transparent;
  font: 9px var(--studio-font);
}

.studio-live-link {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.studio-live-link:hover { background: rgba(255,255,255,.08); }

.studio-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--studio-acid);
  box-shadow: 0 0 0 3px rgba(215,255,104,.13);
}

.studio-account {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 4px 0 7px;
  color: #fff;
}

.studio-account > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--studio-ink);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.studio-account > i { color: rgba(255,255,255,.45); font-size: 9px; }

.studio-account-summary {
  display: grid;
  gap: 2px;
  padding: 10px 16px 12px;
}

.studio-account-summary strong { font-size: 13px; }
.studio-account-summary small { color: var(--studio-muted); font-size: 11px; }

.user-dropdown {
  min-width: 220px;
  padding: 7px;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  box-shadow: 0 18px 50px rgba(17,16,15,.16);
}

.user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  border-radius: 4px;
  font-size: 12px;
}

.studio-header__context {
  min-height: 42px;
  padding: 0 clamp(20px, 3vw, 52px);
  color: var(--studio-ink);
  border-bottom: 1px solid var(--studio-line);
  background: var(--studio-surface);
}

.studio-context-label {
  margin-right: 28px;
  color: var(--studio-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.studio-header__context nav { align-self: stretch; gap: 2px; }

.studio-header__context nav a,
.studio-header__context nav button {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 5px;
  padding: 0 15px;
  color: var(--studio-muted);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.studio-header__context nav a::after,
.studio-header__context nav button::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  content: "";
  background: transparent;
}

.studio-header__context nav a:hover,
.studio-header__context nav button:hover,
.studio-header__context nav a.active { color: var(--studio-ink); }

.studio-header__context nav a.active::after { background: var(--studio-ink); }

.studio-header__context nav button span {
  padding: 1px 4px;
  border: 1px solid var(--studio-line);
  border-radius: 3px;
  font-size: 7px;
}

.studio-notification {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: rgba(255,255,255,.72);
  border-radius: 5px;
  font-size: 17px;
  transition: color .15s ease, background-color .15s ease;
}

.studio-notification:hover,
.studio-notification:focus-visible,
.studio-notification[aria-expanded="true"] {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.studio-notification span {
  position: absolute;
  top: 4px;
  right: 3px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--studio-violet);
  font-size: 8px;
  font-weight: 800;
}

.notification-menu {
  width: min(340px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  box-shadow: 0 20px 50px rgba(17,16,15,.16);
}

.notification-menu-head {
  display: flex;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid var(--studio-line);
}

.notification-menu-head strong { font-size: 13px; }
.notification-menu-head span { color: var(--studio-muted); font-size: 10px; }

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--studio-line);
}

.notification-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--studio-violet-soft);
}

.notification-icon.warm { background: #f8dfbf; }
.notification-item strong { display: block; font-size: 12px; }
.notification-item p { margin: 3px 0 0; color: var(--studio-muted); font-size: 11px; }

.studio-mobile-trigger { display: none; }

/* Desktop Navigation & Fixed Left Sidebar */
.nav-sheet {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  width: 270px;
  flex-direction: column;
  color: #fff;
  background: var(--studio-ink);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.nav-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.nav-sheet__head .studio-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-family: var(--studio-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.nav-sheet__head button {
  color: rgba(255, 255, 255, 0.6);
  border: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.nav-sheet__head button:hover {
  color: #fff;
}

.nav-sheet__venue-box {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  position: relative;
}

.nav-sheet__venue-box .venue-switcher {
  width: 100%;
}

.nav-sheet__venue-box .venue-switcher__button {
  width: 100%;
  max-width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  transition: all 0.2s ease;
}

.nav-sheet__venue-box .venue-switcher__button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-sheet__venue-box .venue-switcher__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  text-align: left;
}

.nav-sheet__venue-box .venue-switcher__copy small {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.nav-sheet__venue-box .venue-switcher__copy strong {
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.nav-sheet .restaurant-menu {
  width: calc(100% - 28px);
  max-width: 242px;
  left: 14px !important;
  transform: none !important;
  top: 100% !important;
  background: #1e1d1b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-sheet .restaurant-menu .dropdown-header {
  color: rgba(255, 255, 255, 0.45);
}

.nav-sheet .restaurant-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
}

.nav-sheet .restaurant-menu .dropdown-item:hover,
.nav-sheet .restaurant-menu .dropdown-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-sheet__links {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nav-sheet__links::-webkit-scrollbar {
  width: 4px;
}

.nav-sheet__links::-webkit-scrollbar-track {
  background: transparent;
}

.nav-sheet__links::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.nav-sheet__links::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.nav-sheet__section-title {
  padding: 14px 10px 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.nav-sheet__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 2px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.nav-sheet__links a i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.nav-sheet__links a > span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}

.nav-sheet__links a small {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.nav-sheet__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-sheet__links a:hover i {
  color: var(--studio-acid);
}

.nav-sheet__links a.active {
  background: var(--studio-acid);
  color: var(--studio-ink);
  font-weight: 700;
}

.nav-sheet__links a.active i {
  color: var(--studio-ink);
}

.nav-sheet__links a.active small {
  color: rgba(17, 16, 15, 0.65);
}

.nav-sheet__links a.is-locked {
  color: rgba(255, 255, 255, 0.45);
}

.nav-sheet__links a.is-locked i {
  color: rgba(255, 255, 255, 0.3);
}

.nav-sheet__plan-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 2px 6px;
  border: 1px solid rgba(215, 255, 104, 0.35);
  border-radius: 999px;
  color: var(--studio-acid);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-sheet__links a .nav-sheet__plan-badge i {
  width: auto;
  font-size: 8px;
  color: inherit;
}

.plan-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--studio-line);
  border-left: 4px solid var(--studio-amber);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  font-size: 14px;
}

.demo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--studio-line);
  border-left: 4px solid var(--studio-violet);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  font-size: 14px;
}

.demo-banner__text { display: grid; gap: 3px; flex: 1 1 380px; min-width: 0; }
.demo-banner__text strong { display: flex; align-items: center; gap: 6px; color: var(--studio-violet); }
.demo-banner__text span { color: var(--studio-muted); }
.demo-banner__text a { color: var(--studio-ink); font-weight: 700; }
.demo-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.demo-banner__exit { color: var(--studio-muted); font-size: 13px; }

.plan-banner--expired {
  border-left-color: var(--studio-red);
}

.plan-banner i {
  font-size: 20px;
  color: var(--studio-amber);
}

.plan-banner--expired i {
  color: var(--studio-red);
}

.plan-banner p {
  margin: 0;
  flex: 1 1 auto;
}

.plan-banner a {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--studio-ink);
}

.nav-sheet__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.nav-sheet__user {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.nav-sheet__avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--studio-violet-soft);
  color: var(--studio-ink);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-sheet__user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.nav-sheet__user-name {
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.nav-sheet__user-role {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

.nav-sheet__logout-btn {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 13px;
  flex-shrink: 0;
}

.nav-sheet__logout-btn:hover {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.1);
}

.mobile-dock { display: none; }

.sidebar-overlay {
  position: fixed;
  z-index: 1050;
  inset: 0;
  display: none;
  background: rgba(17,16,15,.54);
  backdrop-filter: blur(3px);
}

.sidebar-overlay.show { display: block; }

.studio-canvas {
  margin-left: 270px;
  width: calc(100% - 270px);
  max-width: calc(100% - 270px);
  min-height: calc(100vh - 64px);
  padding: 36px clamp(20px, 3vw, 48px) 60px;
  box-sizing: border-box;
}

.page { width: 100%; }

.page-intro {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--studio-line-dark);
}

.page-intro--split {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.page-intro__index {
  align-self: start;
  padding-top: 7px;
  color: var(--studio-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.page-intro__copy p {
  margin: 0 0 8px;
  color: var(--studio-violet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-intro__copy h1 {
  margin: 0;
  font: 600 clamp(32px, 4vw, 58px)/1.02 var(--studio-display);
  letter-spacing: -.055em;
}

.page-intro__copy > span {
  display: block;
  max-width: 680px;
  margin-top: 11px;
  color: var(--studio-muted);
  font-size: 14px;
  line-height: 1.55;
}

.page-intro__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 3px;
}

.studio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--studio-line-dark);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.studio-button--quiet { background: transparent; }

.studio-button--quiet:hover { background: var(--studio-surface); }

.studio-button--ink {
  color: #fff;
  border-color: var(--studio-ink);
  background: var(--studio-ink);
}

.studio-button--ink:hover { color: var(--studio-ink); background: var(--studio-acid); }

.data-kicker,
.visual-tool-label {
  color: var(--studio-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.first-run {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 340px;
  padding: 48px;
  border: 1px solid var(--studio-line-dark);
  background: var(--studio-surface);
}

.first-run__number {
  color: var(--studio-line);
  font: 700 72px/1 var(--studio-display);
  letter-spacing: -.08em;
}

.first-run p { margin: 0 0 10px; color: var(--studio-violet); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.first-run h2 { margin: 0 0 8px; font: 600 28px/1.15 var(--studio-display); letter-spacing: -.04em; }
.first-run div > span { color: var(--studio-muted); }

.form-control,
.form-select {
  min-height: 43px;
  color: var(--studio-ink);
  border: 1px solid var(--studio-line-dark);
  border-radius: 4px;
  background-color: var(--studio-surface);
  box-shadow: none !important;
  font-size: 13px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--studio-violet);
  box-shadow: 0 0 0 3px rgba(104,87,223,.1) !important;
}

.form-label {
  margin-bottom: 7px;
  color: var(--studio-ink);
  font-size: 11px;
  font-weight: 700;
}

.form-check-input:checked { border-color: var(--studio-ink); background-color: var(--studio-ink); }

.btn {
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.btn-primary { border-color: var(--studio-ink); background: var(--studio-ink); }
.btn-primary:hover { color: var(--studio-ink); border-color: var(--studio-acid); background: var(--studio-acid); }
.btn-secondary { color: var(--studio-ink); border-color: var(--studio-line-dark); background: transparent; }

.dropdown-menu .dropdown-item i { width: 18px; }

.modal-backdrop.show { opacity: .62; }

.modal-content {
  border: 0;
  border-radius: 0;
  background: var(--studio-surface);
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
}

.modal-header {
  min-height: 76px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--studio-line);
}

.modal-title { font: 600 21px var(--studio-display); letter-spacing: -.03em; }
.modal-body { padding: 24px; }
.modal-footer { padding: 14px 24px; border-top: 1px solid var(--studio-line); background: var(--studio-paper); }

.modal .eyebrow {
  color: var(--studio-violet);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.product-editor-modal .modal-dialog {
  width: min(1120px, 94vw);
  max-width: none;
  min-height: 100%;
  margin: 0 0 0 auto;
}

.product-editor-modal .modal-content { min-height: 100vh; }

.product-editor-modal .modal-body { padding: 0; }

.product-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .72fr);
}

.product-editor-main {
  padding: 8px 32px 40px;
  border-right: 1px solid var(--studio-line);
}

.product-editor-aside {
  padding: 28px;
  background: var(--studio-paper);
}

.editor-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--studio-line);
}

.editor-section-heading { display: flex; gap: 12px; }
.editor-section-index { color: var(--studio-violet); font-size: 9px; font-weight: 800; }
.editor-section-heading h3, .aside-card-heading h3 { margin: 0; font: 600 15px var(--studio-display); }
.editor-section-heading p, .aside-card-heading p { margin: 5px 0 0; color: var(--studio-muted); font-size: 11px; line-height: 1.4; }
.editor-fields { min-width: 0; }
.field-label-row { display: flex; justify-content: space-between; }
.field-label-row > span, .field-help { color: var(--studio-muted); font-size: 10px; }
.field-help { margin-top: 6px; }
.required-mark { color: var(--studio-red); }

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.editor-aside-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--studio-line);
}

.aside-card-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.product-image-upload {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--studio-line-dark);
  background: var(--studio-surface);
}

.product-image-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-image-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.image-upload-placeholder { display: grid; gap: 4px; place-items: center; color: var(--studio-muted); font-size: 11px; }
.image-upload-placeholder i { font-size: 28px; }
.image-upload-placeholder strong { color: var(--studio-ink); font-size: 12px; }

.editor-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.editor-switch > span { display: grid; }
.editor-switch b { font-size: 12px; }
.editor-switch small { color: var(--studio-muted); font-size: 10px; }

.dietary-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dietary-options label { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--studio-line); background: var(--studio-surface); font-size: 10px; }

.translation-health-row { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--studio-line); background: var(--studio-surface); }
.language-code { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--studio-violet-soft); font-size: 9px; font-weight: 800; }
.translation-health-row > span:nth-child(2) { display: grid; flex: 1; }
.translation-health-row b { font-size: 11px; }
.translation-health-row small { color: var(--studio-muted); font-size: 9px; }
.translation-health-row > i { color: var(--studio-green); }
.translation-health-link { display: flex; justify-content: space-between; padding-top: 12px; font-size: 11px; font-weight: 700; }

.editor-prototype-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--studio-ink);
  background: var(--studio-ink);
  color: #fff;
}

.editor-prototype-card > span:nth-child(2) { display: grid; flex: 1; }
.editor-prototype-card b { font-size: 11px; }
.editor-prototype-card small { color: rgba(255,255,255,.55); font-size: 9px; }
.prototype-card-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.18); }
.editor-save-note { color: var(--studio-muted); font-size: 10px; }
.editor-footer-actions { display: flex; gap: 8px; }
.product-editor-footer { justify-content: space-between; }

.qr-editor-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.qr-editor-preview { padding: 20px; background: var(--studio-paper); }
.form-block-heading { display: flex; gap: 10px; margin-bottom: 20px; }
.form-block-heading > span:first-child { color: var(--studio-violet); font-size: 9px; font-weight: 800; }
.form-block-heading h3 { margin: 0; font: 600 15px var(--studio-display); }
.form-block-heading p { margin: 4px 0 0; color: var(--studio-muted); font-size: 10px; }
.form-block-heading .ui-tag { margin-left: auto; align-self: start; }
.qr-frame-preview { padding: 14px; border: 1px solid var(--studio-ink); background: #fff; }
.qr-frame-copy { display: grid; text-align: center; }
.qr-frame-copy b { font-size: 11px; }
.qr-frame-copy span { color: var(--studio-muted); font-size: 9px; }
.qr-placeholder-pattern { display: grid; height: 180px; place-items: center; }
.qr-placeholder-pattern i { font-size: 130px; }
.qr-style-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.color-choice-row { display: flex; gap: 6px; }
.color-choice { width: 28px; height: 28px; border: 3px solid var(--studio-surface); border-radius: 50%; outline: 1px solid var(--studio-line); background: var(--choice); }
.color-choice.active { outline: 2px solid var(--studio-ink); }
.command-palette .modal-dialog { max-width: 620px; }
.command-palette .modal-content { border-radius: 8px; }
.command-search { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--studio-line); }
.command-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; }
.command-search kbd { color: var(--studio-muted); background: transparent; font-size: 10px; }
.command-section { display: grid; gap: 2px; padding: 10px; }
.command-label { padding: 8px 10px; color: var(--studio-muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
#commandPaletteItems { max-height: min(60vh, 480px); overflow-y: auto; }
.command-item { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px; border-radius: 4px; }
.command-item:hover { background: var(--studio-paper); }
.command-item small { color: var(--studio-muted); font-size: 10px; }
.command-empty { margin: 0; padding: 16px 10px; color: var(--studio-muted); font-size: 12px; }

.toast { border: 1px solid var(--studio-line); border-radius: 6px; box-shadow: 0 18px 45px rgba(17,16,15,.18); }
.toast-header { border-bottom-color: var(--studio-line); background: var(--studio-surface); }
.toast-body { background: var(--studio-surface); font-size: 12px; }

/* Operations overview */
.ops-board {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .7fr);
  min-height: 470px;
  border: 1px solid var(--studio-line-dark);
  background: var(--studio-surface);
}

.ops-board__signal { display: flex; min-width: 0; flex-direction: column; padding: 32px 36px 0; }

.ops-board__signal-head { display: flex; justify-content: space-between; gap: 24px; }
.ops-board__signal-head > div { display: grid; }
.ops-board__signal-head strong { margin-top: 8px; font: 600 clamp(52px, 7vw, 88px)/.9 var(--studio-display); letter-spacing: -.08em; }
.ops-board__signal-head p { margin: 8px 0 0; color: var(--studio-muted); font-size: 12px; }

.minimal-select { display: grid; align-self: start; gap: 5px; color: var(--studio-muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.minimal-select select { min-width: 120px; padding: 8px 28px 8px 8px; border: 0; border-bottom: 1px solid var(--studio-line-dark); outline: 0; background: transparent; font-size: 11px; }

.ops-board__chart { position: relative; min-height: 220px; flex: 1; padding: 20px 0; }
.dashboard-chart-status { position: absolute; inset: 50% 12px auto; margin: 0; color: var(--studio-muted); font-size: 12px; text-align: center; transform: translateY(-50%); }
.dashboard-chart-status.is-error { color: #b42318; }
.ops-board__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -36px; border-top: 1px solid var(--studio-line); }
.ops-board__facts span { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 24px; border-right: 1px solid var(--studio-line); }
.ops-board__facts span:last-child { border-right: 0; }
.ops-board__facts small { color: var(--studio-muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ops-board__facts b { font: 600 23px var(--studio-display); }

.publish-console {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #fff;
  background: var(--studio-ink);
}

.publish-console__top { display: flex; justify-content: space-between; padding: 19px 22px; color: rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.13); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.publish-console__status { display: flex; align-items: center; gap: 7px; color: var(--studio-acid); }
.publish-console__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--studio-acid); }
.publish-console__center { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 34px; }
.publish-console__glyph { display: grid; width: 52px; height: 52px; margin-bottom: 28px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--studio-acid); font-size: 22px; }
.publish-console h2 { max-width: 310px; margin: 0; font: 600 27px/1.18 var(--studio-display); letter-spacing: -.045em; }
.publish-console p { margin: 15px 0 0; color: rgba(255,255,255,.53); font-size: 12px; line-height: 1.6; }
.publish-console__footer { display: grid; border-top: 1px solid rgba(255,255,255,.13); }
.publish-console__footer a { display: flex; justify-content: space-between; padding: 15px 22px; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 11px; font-weight: 700; }
.publish-console__footer a:hover { color: var(--studio-ink); background: var(--studio-acid); }

.ops-ledger { margin-top: 42px; }
.section-marker { display: grid; grid-template-columns: 45px 1fr; gap: 16px; margin-bottom: 18px; }
.section-marker > span { color: var(--studio-violet); font-size: 10px; font-weight: 800; }
.section-marker h2 { margin: 0; font: 600 20px var(--studio-display); letter-spacing: -.035em; }
.section-marker p { margin: 4px 0 0; color: var(--studio-muted); font-size: 11px; }

.ops-ledger__rows { border-top: 1px solid var(--studio-line-dark); }
.ledger-row { display: grid; grid-template-columns: 82px minmax(170px, .75fr) minmax(240px, 1.35fr) 20px; align-items: center; gap: 18px; min-height: 76px; padding: 0 18px; border-bottom: 1px solid var(--studio-line); }
.ledger-row:hover { background: var(--studio-surface); }
.ledger-row__state { justify-self: start; padding: 4px 6px; border: 1px solid currentColor; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.ledger-row__state.done { color: var(--studio-green); }
.ledger-row__state.urgent { color: var(--studio-red); }
.ledger-row__state.review { color: var(--studio-amber); }
.ledger-row strong { font-size: 13px; }
.ledger-row p { margin: 0; color: var(--studio-muted); font-size: 11px; }
.ledger-row > i { color: var(--studio-muted); }

.ops-lower { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 42px; margin-top: 52px; }
.ops-activity__list { border-top: 1px solid var(--studio-line-dark); }
.activity-line { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--studio-line); }
.activity-line > i { color: var(--studio-violet); }
.activity-line p { margin: 0; font-size: 11px; }
.activity-line time { color: var(--studio-muted); font-size: 9px; }
.ops-shortcuts { align-self: start; padding: 24px; color: #fff; background: var(--studio-violet); }
.ops-shortcuts .data-kicker { display: block; margin-bottom: 12px; color: rgba(255,255,255,.6); }
.ops-shortcuts a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 11px; font-weight: 700; }
.ops-shortcuts a:hover { color: var(--studio-acid); }

/* Product catalog */
.catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.35fr;
  min-height: 116px;
  margin-bottom: 26px;
  color: #fff;
  background: var(--studio-ink);
}

.catalog-stats > span,
.catalog-stats > button,
.catalog-stats__branch-link { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; border: 0; border-right: 1px solid rgba(255,255,255,.13); text-align: left; text-decoration: none; background: transparent; color: #fff; }
.catalog-stats small { color: rgba(255,255,255,.45); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.catalog-stats strong { margin-top: 5px; font: 600 36px var(--studio-display); letter-spacing: -.06em; }
.catalog-stats button b,
.catalog-stats__branch-link b { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; }
.catalog-stats button em { position: absolute; top: 14px; right: 14px; padding: 2px 5px; color: var(--studio-ink); background: var(--studio-acid); font-size: 7px; font-style: normal; font-weight: 800; }
.catalog-stats button:hover,
.catalog-stats__branch-link:hover { color: #fff; background: var(--studio-violet); }

.catalog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 24px; }
.catalog-rail { position: sticky; top: 132px; border-top: 1px solid var(--studio-line-dark); }
.catalog-rail__head { display: flex; justify-content: space-between; padding: 14px 10px; color: var(--studio-muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.catalog-rail__head a { color: var(--studio-violet); }
.catalog-rail__item { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 10px; text-align: left; border: 0; border-bottom: 1px solid var(--studio-line); background: transparent; font-size: 11px; }
.catalog-rail__item:hover, .catalog-rail__item.active { padding-left: 14px; background: var(--studio-surface); }
.catalog-rail__item.active { font-weight: 800; }
.catalog-rail__item b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--studio-violet-soft); font-size: 9px; }
.catalog-rail__item i { color: var(--studio-muted); font-size: 10px; }
.catalog-rail__prototype { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 14px 10px; text-align: left; border: 1px solid var(--studio-line-dark); background: transparent; }
.catalog-rail__prototype > span { display: grid; flex: 1; }
.catalog-rail__prototype span { font-size: 10px; font-weight: 700; }
.catalog-rail__prototype small { color: var(--studio-muted); font-size: 8px; font-weight: 400; }
.catalog-rail__prototype em { font-size: 7px; font-style: normal; font-weight: 800; }

.catalog-surface { min-width: 0; overflow: hidden; border-top: 1px solid var(--studio-line-dark); }
.table-responsive { max-width: 100%; overflow-x: auto; }
.catalog-toolbar, .structure-toolbar { display: flex; align-items: center; gap: 8px; min-height: 66px; padding: 10px 0; border-bottom: 1px solid var(--studio-line); }
.catalog-toolbar > select, .structure-toolbar > select { height: 40px; padding: 0 30px 0 10px; border: 1px solid var(--studio-line); border-radius: 3px; background: var(--studio-surface); font-size: 10px; }
.catalog-search { display: flex; align-items: center; min-width: 220px; flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--studio-line); border-radius: 3px; background: var(--studio-surface); }
.catalog-search i { color: var(--studio-muted); }
.catalog-search input { width: 100%; padding: 0 9px; border: 0; outline: 0; background: transparent; font-size: 11px; }
.catalog-clear, .catalog-view-toggle button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--studio-line); background: var(--studio-surface); }
.catalog-view-toggle { display: flex; }
.catalog-view-toggle button + button { border-left: 0; }
.catalog-view-toggle button.active { color: #fff; background: var(--studio-ink); }

.catalog-selection-bar { display: flex; align-items: center; min-height: 47px; padding: 0 12px; color: var(--studio-muted); border-bottom: 1px solid var(--studio-line); font-size: 9px; }
.catalog-selection-bar label { display: flex; align-items: center; gap: 7px; margin-right: 22px; }
.catalog-selection-bar button { margin-left: auto; color: var(--studio-red); border: 0; background: transparent; font-size: 9px; font-weight: 700; }
.catalog-selection-bar button:disabled { opacity: .35; }

.catalog-table { width: 100%; min-width: 780px; border-collapse: collapse; background: transparent; }
.catalog-table th { height: 40px; padding: 0 12px; color: var(--studio-muted); border-bottom: 1px solid var(--studio-line-dark); font-size: 7px; font-weight: 800; letter-spacing: .14em; text-align: left; }
.catalog-table td { height: 78px; padding: 9px 12px; border-bottom: 1px solid var(--studio-line); vertical-align: middle; }
.catalog-table tbody tr:hover { background: rgba(255,253,248,.72); }
.catalog-order { display: flex; align-items: center; gap: 7px; }
.drag-handle { color: var(--studio-muted); border: 0; background: transparent; cursor: grab; }
.product-select, .category-select { width: 14px; height: 14px; accent-color: var(--studio-ink); }
.catalog-product { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.catalog-product img { width: 52px; height: 52px; flex: 0 0 52px; object-fit: cover; background: var(--studio-surface-2); }
.catalog-product > span { display: grid; min-width: 0; }
.catalog-product strong { overflow: hidden; max-width: 240px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-product small { overflow: hidden; max-width: 240px; margin-top: 3px; color: var(--studio-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.featured-toggle, .grid-featured-btn { margin-left: auto; color: var(--studio-line-dark); cursor: pointer; }
.featured-toggle.is-featured, .grid-featured-btn.is-featured { color: #d69d18; }
.catalog-taxonomy { display: grid; }
.catalog-taxonomy strong { font-size: 10px; }
.catalog-taxonomy > span { display: flex; gap: 4px; margin-top: 5px; }
.catalog-taxonomy em, .catalog-taxonomy small { padding: 2px 5px; color: var(--studio-muted); border: 1px solid var(--studio-line); font-size: 7px; font-style: normal; }
.catalog-price { font: 600 14px var(--studio-display); }

.availability-control { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; }
.availability-control input { position: absolute; opacity: 0; }
.availability-control > span { position: relative; width: 29px; height: 16px; border-radius: 10px; background: var(--studio-line-dark); }
.availability-control > span::after { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; content: ""; border-radius: 50%; background: #fff; transition: transform .16s ease; }
.availability-control input:checked + span { background: var(--studio-green); }
.availability-control input:checked + span::after { transform: translateX(13px); }
.availability-control small { color: var(--studio-muted); font-size: 8px; }
.record-menu { display: grid; width: 30px; height: 30px; place-items: center; border: 0; background: transparent; }

.grid-view { display: none; }
.grid-view.active { display: block; }
.table-view.hidden { display: none; }
.catalog-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding-top: 1px; background: var(--studio-line); }
.product-grid-card { min-width: 0; background: var(--studio-surface); }
.catalog-gallery__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--studio-surface-2); }
.catalog-gallery__media > img { width: 100%; height: 100%; object-fit: cover; }
.product-grid-controls { position: absolute; top: 9px; left: 9px; display: flex; gap: 6px; padding: 5px; background: rgba(255,255,255,.9); }
.grid-drag-handle { border: 0; background: transparent; cursor: grab; }
.catalog-gallery__media .grid-featured-btn { position: absolute; top: 10px; right: 10px; display: grid; width: 28px; height: 28px; place-items: center; background: rgba(255,255,255,.9); }
.catalog-gallery__body { padding: 16px; }
.catalog-gallery__body > span { color: var(--studio-violet); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.catalog-gallery__body h3 { margin: 5px 0; font: 600 17px var(--studio-display); }
.catalog-gallery__body > p { overflow: hidden; min-height: 34px; margin: 0; color: var(--studio-muted); font-size: 10px; line-height: 1.5; }
.catalog-gallery__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--studio-line); }
.catalog-gallery__actions { display: flex; align-items: center; margin: 14px -16px -16px; border-top: 1px solid var(--studio-line); }
.catalog-gallery__actions button { min-height: 40px; padding: 0 14px; border: 0; background: transparent; font-size: 9px; font-weight: 700; }
.catalog-gallery__actions .btn-grid-edit { display: flex; flex: 1; align-items: center; justify-content: space-between; border-right: 1px solid var(--studio-line); }
.catalog-gallery__actions button:hover { background: var(--studio-paper); }
.studio-pagination { padding: 18px 0; }
.studio-pagination .pagination { margin: 0; gap: 3px; }
.studio-pagination .page-link { color: var(--studio-ink); border-color: var(--studio-line); border-radius: 3px !important; background: var(--studio-surface); font-size: 10px; }
.studio-pagination .active > .page-link { border-color: var(--studio-ink); background: var(--studio-ink); }

/* Category structure */
.structure-summary {
  display: grid;
  grid-template-columns: 190px 1fr 180px;
  align-items: stretch;
  min-height: 124px;
  margin-bottom: 26px;
  border: 1px solid var(--studio-line-dark);
  background: var(--studio-surface);
}
.structure-summary__count { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 20px; border-right: 1px solid var(--studio-line); }
.structure-summary__count small { grid-column: 1/-1; color: var(--studio-muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.structure-summary__count strong { font: 600 50px/.9 var(--studio-display); letter-spacing: -.08em; }
.structure-summary__count span { color: var(--studio-muted); font-size: 10px; }
.structure-summary__flow { display: flex; align-items: center; gap: 8px; overflow: hidden; padding: 20px 26px; }
.structure-summary__flow span { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 9px; font-weight: 700; }
.structure-summary__flow span i { width: 9px; height: 9px; border-radius: 50%; background: var(--category-color); }
.structure-summary__flow b { color: var(--studio-line-dark); font-weight: 400; }
.structure-summary__flow em { padding: 4px 7px; border: 1px solid var(--studio-line); font-size: 8px; font-style: normal; }
.structure-summary > a { display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 5px; padding: 20px; text-align: left; text-decoration: none; border-left: 1px solid var(--studio-line); background: var(--studio-ink); color: #fff; font-size: 10px; font-weight: 700; }
.structure-summary > a:hover { background: var(--studio-violet); }

.structure-toolbar { justify-content: flex-end; border-top: 1px solid var(--studio-line-dark); }
.structure-toolbar .catalog-search { max-width: 420px; margin-right: auto; flex: 1; }
.selection-drawer { position: sticky; z-index: 10; top: 111px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; background: var(--studio-violet); }
.selection-drawer button { margin-left: 6px; padding: 7px 10px; color: #fff; border: 1px solid rgba(255,255,255,.25); background: transparent; font-size: 9px; }
.selection-drawer button.danger { color: var(--studio-ink); background: var(--studio-acid); }

.category-outline { border-top: 1px solid var(--studio-line-dark); }
.category-outline__row { display: grid; grid-template-columns: 110px 62px minmax(220px, 1fr) 74px 120px 34px; align-items: center; gap: 14px; min-height: 106px; padding: 10px 12px; border-bottom: 1px solid var(--studio-line); }
.category-outline__row:hover { background: var(--studio-surface); }
.category-outline__order { display: flex; align-items: center; gap: 10px; color: var(--studio-muted); }
.category-outline__order > span { font: 600 24px var(--studio-display); }
.category-outline__symbol, .category-mini-symbol { display: grid; width: 54px; height: 54px; place-items: center; color: var(--studio-ink); background: var(--category-color); font-size: 17px; }
.category-outline__copy strong { font: 600 17px var(--studio-display); }
.category-outline__copy p { margin: 5px 0 0; color: var(--studio-muted); font-size: 10px; }
.category-outline__meta { display: grid; justify-items: end; }
.category-outline__meta small { color: var(--studio-muted); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.category-outline__meta b { font: 600 22px var(--studio-display); }
.category-mini-symbol { width: 40px; height: 40px; flex: 0 0 40px; font-size: 13px; }
.filter-zero, .qr-filter-empty { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 260px; border: 1px solid var(--studio-line); background: var(--studio-surface); }
.filter-zero > span, .qr-filter-empty > span { color: var(--studio-line); font: 700 58px var(--studio-display); }
.filter-zero h2 { margin: 0; font: 600 20px var(--studio-display); }
.filter-zero p { color: var(--studio-muted); }
.filter-zero button { border: 0; border-bottom: 1px solid var(--studio-ink); background: transparent; font-size: 10px; font-weight: 700; }
.loading-overlay { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; background: rgba(243,240,233,.78); }
.studio-loader { display: grid; gap: 10px; place-items: center; }
.studio-loader span { width: 28px; height: 28px; border: 2px solid var(--studio-line); border-top-color: var(--studio-ink); border-radius: 50%; animation: studioSpin .7s linear infinite; }
@keyframes studioSpin { to { transform: rotate(360deg); } }

/* QR deployment */
.deployment-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: start; gap: 24px; }
.deployment-console { position: sticky; top: 132px; color: #fff; background: var(--studio-ink); }
.deployment-console__head { display: flex; justify-content: space-between; padding: 17px 20px; color: var(--studio-acid); border-bottom: 1px solid rgba(255,255,255,.14); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.deployment-console__number { display: grid; padding: 32px 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.deployment-console__number small, .deployment-console__last small { color: rgba(255,255,255,.45); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.deployment-console__number strong { margin: 8px 0; font: 600 58px/.9 var(--studio-display); letter-spacing: -.08em; }
.deployment-console__number span { color: rgba(255,255,255,.45); font-size: 9px; }
.deployment-console__metrics { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(255,255,255,.14); }
.deployment-console__metrics span { display: grid; gap: 5px; padding: 20px; border-right: 1px solid rgba(255,255,255,.14); }
.deployment-console__metrics small { color: rgba(255,255,255,.45); font-size: 7px; letter-spacing: .14em; }
.deployment-console__metrics b { font: 600 25px var(--studio-display); }
.deployment-console__last { display: grid; gap: 6px; padding: 20px; }
.deployment-console__last strong { font-size: 11px; }
.deployment-console__actions { display: grid; background: #1b1a19; }
.deployment-console__actions button { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 15px 20px; color: #fff; text-align: left; border: 0; border-top: 1px solid rgba(255,255,255,.12); background: transparent; }
.deployment-console__actions button > span { display: grid; font-size: 10px; font-weight: 700; }
.deployment-console__actions small { color: rgba(255,255,255,.42); font-size: 8px; font-weight: 400; }
.deployment-console__actions em { color: var(--studio-acid); font-size: 7px; font-style: normal; }
.deployment-library { min-width: 0; }
.deployment-library__toolbar { display: flex; align-items: center; gap: 20px; min-height: 66px; padding: 10px 0; border-top: 1px solid var(--studio-line-dark); border-bottom: 1px solid var(--studio-line); }
.deployment-library__toolbar > div { display: grid; min-width: 150px; }
.deployment-library__toolbar span { color: var(--studio-muted); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.deployment-library__toolbar strong { font-size: 11px; }
.qr-label-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding-top: 14px; }
.qr-label { min-width: 0; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); }
.qr-label__serial { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--studio-line); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 5px; border: 1px solid currentColor; font-size: 7px; letter-spacing: .08em; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.is-active { color: var(--studio-green); }
.status-pill.is-passive { color: var(--studio-red); }
.qr-label__main { display: grid; grid-template-columns: 104px 1fr; min-height: 150px; }
.qr-label__image { display: grid; place-items: center; padding: 13px; border-right: 1px solid var(--studio-line); }
.qr-label__image img { width: 80px; height: 80px; object-fit: contain; image-rendering: crisp-edges; }
.qr-label__copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 15px; }
.qr-label__copy > small { color: var(--studio-violet); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.qr-label__copy h2 { overflow: hidden; margin: 6px 0; font: 600 16px var(--studio-display); text-overflow: ellipsis; white-space: nowrap; }
.qr-label__copy p { overflow: hidden; margin: 0; color: var(--studio-muted); font-size: 9px; line-height: 1.45; }
.qr-label__performance { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--studio-line); border-bottom: 1px solid var(--studio-line); }
.qr-label__performance span { display: grid; gap: 3px; padding: 11px 13px; border-right: 1px solid var(--studio-line); }
.qr-label__performance span:last-child { border: 0; }
.qr-label__performance small { color: var(--studio-muted); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.qr-label__performance strong { font-size: 11px; }
.qr-label__actions { display: flex; min-height: 42px; align-items: center; padding: 0 7px; }
.qr-label__actions > button { height: 28px; padding: 0 8px; border: 0; border-right: 1px solid var(--studio-line); background: transparent; font-size: 8px; }
.qr-label__actions > button i { margin-right: 5px; }
.qr-delete-form { margin: 0; }
.qr-filter-empty[hidden] { display: none !important; }

/* Visual studio */
.visual-studio {
  display: grid;
  grid-template-columns: minmax(300px, .76fr) minmax(390px, 1.15fr) minmax(280px, .68fr);
  align-items: start;
  min-height: 700px;
  border: 1px solid var(--studio-line-dark);
  background: var(--studio-surface);
}
.visual-tools, .visibility-panel { min-width: 0; padding: 24px; }
.visual-tools { border-right: 1px solid var(--studio-line); }
.visibility-panel { border-left: 1px solid var(--studio-line); }
.visual-tools__header { display: flex; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--studio-line); }
.visual-tools__header > span { color: var(--studio-violet); font-size: 9px; font-weight: 800; }
.visual-tools__header > div { display: grid; }
.visual-tools__header strong { font: 600 15px var(--studio-display); }
.visual-tools__header small { color: var(--studio-muted); font-size: 9px; }
.visual-tool-block { padding: 20px 0; border-bottom: 1px solid var(--studio-line); }
.visual-tool-label { display: block; margin-bottom: 11px; }
.theme-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.theme-option { display: grid; gap: 8px; padding: 9px; text-align: left; border: 1px solid var(--studio-line); background: transparent; }
.theme-option > span { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 27px; overflow: hidden; }
.theme-option i { display: block; }
.theme-option b { font-size: 9px; }
.theme-option.active { border-color: var(--studio-ink); box-shadow: inset 0 -3px var(--studio-ink); }
.color-spec { display: grid; }
.color-spec > label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--studio-line); }
.color-spec > label > span { display: grid; font-size: 10px; font-weight: 700; }
.color-spec small { color: var(--studio-muted); font-size: 8px; font-weight: 400; }
.color-spec label > i { display: flex; align-items: center; gap: 7px; font-style: normal; }
.color-spec input[type=color] { width: 26px; height: 26px; padding: 0; border: 1px solid var(--studio-line); background: transparent; }
.color-spec input[type=text] { width: 75px; padding: 5px 0; border: 0; border-bottom: 1px solid var(--studio-line); outline: 0; background: transparent; font-size: 9px; text-transform: uppercase; }
.visual-prototypes { display: grid; gap: 7px; }
.visual-prototypes button { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; padding: 11px; text-align: left; border: 1px solid var(--studio-line); background: transparent; }
.visual-prototypes button > span { display: grid; font-size: 9px; font-weight: 700; }
.visual-prototypes small { color: var(--studio-muted); font-size: 8px; font-weight: 400; }
.visual-prototypes em { font-size: 7px; font-style: normal; font-weight: 800; }

.device-stage { min-width: 0; min-height: 700px; padding: 20px; background: #e7e3dc; }
.device-stage__head { display: flex; justify-content: space-between; align-items: center; }
.device-stage__head > span { display: flex; align-items: center; gap: 6px; color: var(--studio-muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.device-stage__head > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--studio-green); }
.device-stage__head button { width: 30px; height: 30px; border: 0; background: transparent; }
.device-stage__head button.active { background: var(--studio-surface); }
.device-frame { position: relative; width: min(330px, 90%); height: 620px; margin: 22px auto 10px; padding: 10px; overflow: hidden; border: 7px solid var(--studio-ink); border-radius: 34px; background: var(--studio-ink); box-shadow: 0 28px 50px rgba(17,16,15,.18); }
.device-frame__speaker { position: absolute; z-index: 2; top: 11px; left: 50%; width: 75px; height: 18px; border-radius: 0 0 12px 12px; background: var(--studio-ink); transform: translateX(-50%); }
.device-screen { height: 100%; overflow: hidden auto; border-radius: 20px; background: #fff; scrollbar-width: none; }
.device-screen::-webkit-scrollbar { display: none; }
.preview-header { padding: 43px 18px 20px; text-align: left; }
.preview-logo { display: grid; width: 34px; height: 34px; margin-bottom: 22px; place-items: center; border-radius: 50%; color: var(--studio-ink); background: #fff; font: 700 12px var(--studio-display); }
.preview-header > small { display: block; opacity: .65; font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.preview-header h4 { margin: 5px 0 16px; font: 600 22px var(--studio-display); letter-spacing: -.04em; }
.preview-search { padding: 10px 11px; color: rgba(17,16,15,.55); border-radius: 4px; background: rgba(255,255,255,.8); font-size: 9px; }
.preview-search i { margin-right: 6px; }
.preview-content { min-height: 400px; padding: 15px; }
.preview-chips { display: flex; gap: 5px; overflow: hidden; margin-bottom: 19px; }
.preview-chips span { padding: 6px 9px; white-space: nowrap; border: 1px solid rgba(17,16,15,.13); border-radius: 14px; font-size: 7px; }
.preview-chips span.active { color: #fff; background: var(--studio-ink); }
.preview-category { margin-bottom: 22px; }
.preview-category h5 { margin: 0 0 7px; font: 600 13px var(--studio-display); }
.preview-item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(17,16,15,.1); font-size: 9px; }
.preview-item > span:first-child { display: grid; font-weight: 700; }
.preview-item small { margin-top: 3px; opacity: .55; font-size: 7px; font-weight: 400; }
.preview-item > span:last-child { font-weight: 800; }
.device-stage > p { margin: 0; text-align: center; color: var(--studio-muted); font-size: 8px; }

.visibility-panel > .visual-tool-label { margin-top: 24px; }
.visibility-panel > select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); font-size: 10px; }
.visibility-list { display: grid; margin-top: 20px; border-top: 1px solid var(--studio-line); }
.visibility-list > label, .preference-list > label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; border-bottom: 1px solid var(--studio-line); cursor: pointer; }
.visibility-list label > span, .preference-list label > span { display: grid; }
.visibility-list strong, .preference-list strong { font-size: 10px; }
.visibility-list small, .preference-list small { color: var(--studio-muted); font-size: 8px; }
.visibility-list input, .preference-list input { position: absolute; opacity: 0; }
.visibility-list label > i, .preference-list label > i { position: relative; width: 30px; height: 17px; border-radius: 10px; background: var(--studio-line-dark); }
.visibility-list label > i::after, .preference-list label > i::after { position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; content: ""; border-radius: 50%; background: #fff; transition: .16s; }
.visibility-list input:checked + i, .preference-list input:checked + i { background: var(--studio-green); }
.visibility-list input:checked + i::after, .preference-list input:checked + i::after { transform: translateX(13px); }
.visibility-list input:disabled + i { opacity: .35; }
.visibility-panel__publish { margin: 22px -24px -24px; padding: 16px 24px; color: #fff; background: var(--studio-ink); }
.visibility-panel__publish span { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--studio-acid); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.visibility-panel__publish span i { width: 5px; height: 5px; border-radius: 50%; background: var(--studio-acid); }
.visibility-panel__publish button { display: flex; justify-content: space-between; width: 100%; padding: 10px 0; color: #fff; border: 0; border-top: 1px solid rgba(255,255,255,.16); background: transparent; font-size: 9px; font-weight: 700; }

/* Localization desk */
.language-roster { display: grid; grid-template-columns: 180px 1fr; min-height: 104px; margin-bottom: 24px; color: #fff; background: var(--studio-ink); }
.language-roster__summary { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 20px; border-right: 1px solid rgba(255,255,255,.14); }
.language-roster__summary small { grid-column: 1/-1; color: rgba(255,255,255,.45); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.language-roster__summary strong { font: 600 36px var(--studio-display); }
.language-roster__summary span { padding-bottom: 6px; color: rgba(255,255,255,.55); font-size: 8px; }
.language-roster form { min-width: 0; }
.language-roster__list { display: flex; height: 100%; overflow: auto; }
.language-pill { position: relative; display: flex; min-width: 170px; border-right: 1px solid rgba(255,255,255,.14); }
.lang-info { display: flex; align-items: center; gap: 9px; width: 100%; padding: 16px; color: #fff; text-align: left; border: 0; background: transparent; }
.lang-flag { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(255,255,255,.18); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.lang-info > span:nth-child(2) { display: grid; }
.lang-info strong { font-size: 10px; }
.lang-info small { color: rgba(255,255,255,.45); font-size: 8px; }
.lang-info > i { margin-left: auto; color: var(--studio-acid); }
.language-pill.active { box-shadow: inset 0 -3px var(--studio-acid); }
.language-pill.active .lang-flag { color: var(--studio-ink); border-color: var(--studio-acid); background: var(--studio-acid); }
.language-pill .btn-delete { align-self: flex-start; margin: 7px 7px 0 0; color: rgba(255,255,255,.45); border: 0; background: transparent; font-size: 9px; }

.translation-desk { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 650px; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); }
.translation-desk__nav { padding: 20px; border-right: 1px solid var(--studio-line); background: var(--studio-paper); }
.translation-target label { color: var(--studio-muted); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.translation-target select { width: 100%; height: 44px; margin: 8px 0; padding: 0 10px; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); font-size: 10px; }
.translation-target > span { color: var(--studio-muted); font-size: 8px; line-height: 1.4; }
.translation-target > span i { margin-right: 5px; }
.translation-section-nav { display: grid; margin-top: 24px; border-top: 1px solid var(--studio-line); }
.translation-section-nav a { display: grid; grid-template-columns: 28px 1fr; padding: 14px 0; border-bottom: 1px solid var(--studio-line); }
.translation-section-nav a > span { grid-row: 1/3; color: var(--studio-muted); font-size: 8px; font-weight: 800; }
.translation-section-nav strong { font-size: 10px; }
.translation-section-nav small { color: var(--studio-muted); font-size: 8px; }
.translation-section-nav a.active { color: var(--studio-violet); }
.translation-ai { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 20px; padding: 13px; color: #fff; text-align: left; border: 0; background: var(--studio-violet); }
.translation-ai > span { display: grid; font-size: 9px; font-weight: 700; }
.translation-ai small { color: rgba(255,255,255,.6); font-size: 7px; }
.translation-desk__work { min-width: 0; padding: 24px; }
.translation-work-head { display: flex; justify-content: space-between; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--studio-line-dark); }
.translation-work-head span { color: var(--studio-violet); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.translation-work-head h2 { margin: 4px 0 0; font: 600 21px var(--studio-display); }
.translation-progress { display: grid; gap: 5px; width: 150px; }
.translation-progress > span { height: 3px; background: var(--studio-line); }
.translation-progress i { display: block; height: 100%; background: var(--studio-violet); }
.translation-progress small { color: var(--studio-muted); font-size: 11px; }
.translation-progress i { transition: width .3s ease; }
.translation-hint { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 0; color: var(--studio-muted); font-size: 12px; }
.option-translation-context { display: block; color: var(--studio-muted); font-size: 11px; letter-spacing: .02em; }
#tableOptions tr.is-group td { background: var(--studio-surface-2, rgba(0,0,0,.02)); }
.translation-column-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; padding: 16px 0 8px 130px; color: var(--studio-muted); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.parallel-field { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--studio-line); }
.parallel-field > label { padding-top: 11px; font-size: 9px; font-weight: 700; }
.parallel-field > div { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 9px; }
.parallel-field input, .parallel-field textarea { width: 100%; padding: 10px; border: 1px solid var(--studio-line); outline: 0; background: #fff; font-size: 10px; resize: vertical; }
.parallel-field input:focus, .parallel-field textarea:focus { border-color: var(--studio-violet); }
.parallel-field input[readonly], .parallel-field textarea[readonly] { color: var(--studio-muted); background: var(--studio-paper); }
.parallel-field i { color: var(--studio-line-dark); text-align: center; }
.translation-savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px -24px -24px; padding: 14px 24px; border-top: 1px solid var(--studio-line); background: rgba(255,253,248,.94); backdrop-filter: blur(8px); }
.translation-savebar > span { color: var(--studio-muted); font-size: 9px; }
.translation-table-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.translation-table-head span { color: var(--studio-violet); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.translation-table-head h3 { margin: 3px 0 0; font: 600 18px var(--studio-display); }
.translation-table-head button { padding: 9px 12px; color: #fff; border: 0; background: var(--studio-ink); font-size: 9px; }
.translation-data-table table { width: 100%; min-width: 760px; border-collapse: collapse; }
.translation-data-table th { padding: 10px; color: var(--studio-muted); border-bottom: 1px solid var(--studio-line-dark); font-size: 7px; letter-spacing: .08em; }
.translation-data-table td { padding: 9px; border-bottom: 1px solid var(--studio-line); }
.translation-data-table input, .translation-data-table textarea { width: 100%; min-height: 38px; padding: 8px; border: 1px solid var(--studio-line); background: #fff; font-size: 9px; }
.translation-empty { display: grid; min-height: 400px; place-items: center; align-content: center; text-align: center; }
.translation-empty > span { color: var(--studio-line); font: 700 58px var(--studio-display); }
.translation-empty h3 { font: 600 20px var(--studio-display); }
.translation-empty p { color: var(--studio-muted); }

/* Analytics report */
.report-filter { display: grid; grid-template-columns: auto 1fr 20px 1fr 1fr auto; align-items: end; gap: 14px; margin-bottom: 24px; padding: 18px 20px; color: #fff; background: var(--studio-ink); }
.report-filter > span { align-self: center; color: var(--studio-acid); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.report-filter label { display: grid; gap: 5px; color: rgba(255,255,255,.45); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-filter input, .report-filter select { height: 36px; padding: 0 9px; color: #fff; border: 1px solid rgba(255,255,255,.2); outline: 0; background: rgba(255,255,255,.06); font-size: 9px; color-scheme: dark; }
.report-filter > i { align-self: center; color: rgba(255,255,255,.3); }
.report-filter button { height: 36px; padding: 0 14px; border: 0; background: var(--studio-acid); font-size: 9px; font-weight: 800; }
.report-ticker { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 32px; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); }
.report-ticker article { display: grid; grid-template-columns: 1fr auto; padding: 20px; border-right: 1px solid var(--studio-line); }
.report-ticker article:last-child { border: 0; }
.report-ticker article > span { justify-self: end; color: var(--studio-line-dark); font-size: 8px; font-weight: 800; }
.report-ticker small { grid-row: 1; color: var(--studio-muted); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.report-ticker strong { grid-column: 1/-1; margin: 8px 0 4px; font: 600 33px var(--studio-display); letter-spacing: -.06em; }
.report-ticker p { grid-column: 1/-1; margin: 0; color: var(--studio-muted); font-size: 8px; }
.report-plot-grid { display: grid; grid-template-columns: 1.75fr .8fr; gap: 18px; }
.report-plot { min-width: 0; padding: 22px; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); }
.report-plot header, .ranking-report header, .device-report header { display: grid; grid-template-columns: 38px 1fr; }
.report-plot header > span, .ranking-report header > span, .device-report header > span { color: var(--studio-violet); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.report-plot h2, .ranking-report h2, .device-report h2 { margin: 0; font: 600 17px var(--studio-display); }
.report-plot p, .ranking-report p, .device-report p { margin: 4px 0 0; color: var(--studio-muted); font-size: 9px; }
.report-chart { position: relative; height: 300px; margin-top: 20px; }
.report-detail-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 18px; }
.ranking-report, .device-report { padding: 22px; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); }
.ranking-report__list, .device-report__list { margin-top: 18px; border-top: 1px solid var(--studio-line-dark); }
.ranking-report__list > div { display: grid; grid-template-columns: 25px minmax(100px,.8fr) 1fr 80px 38px; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--studio-line); }
.ranking-report__list > div > span { color: var(--studio-muted); font-size: 8px; }
.ranking-report__list strong { font-size: 10px; }
.ranking-report__list i { height: 3px; background: var(--studio-line); }
.ranking-report__list i b { display: block; height: 100%; background: var(--studio-violet); }
.ranking-report__list small { color: var(--studio-muted); font-size: 8px; }
.ranking-report__list em { font-size: 8px; font-style: normal; font-weight: 800; }
.device-report__list > div { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid var(--studio-line); }
.device-report__list > div > i { display: grid; width: 28px; height: 28px; place-items: center; background: var(--studio-violet-soft); }
.device-report__list span { display: grid; }
.device-report__list strong { font-size: 10px; }
.device-report__list small { color: var(--studio-muted); font-size: 8px; }
.device-report__list b { font: 600 15px var(--studio-display); }
.report-no-data { min-height: 100px !important; color: var(--studio-muted); }

/* Business profile */
.profile-editor { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 34px; }
.profile-editor__identity { position: sticky; top: 132px; }
.identity-card { overflow: hidden; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); }
.identity-card__cover { position: relative; display: grid; height: 140px; place-items: center; overflow: hidden; background: var(--studio-ink); }
.identity-card__cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.identity-card__cover > label { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: #fff; border: 1px solid rgba(255,255,255,.26); background: rgba(17,16,15,.5); cursor: pointer; }
.identity-card__cover label > span { display: grid; font-size: 9px; font-weight: 700; }
.identity-card__cover small { color: rgba(255,255,255,.55); font-size: 7px; }
.identity-card input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.identity-card__body { position: relative; padding: 48px 20px 22px; }
.identity-card__logo { position: absolute; top: -35px; display: grid; width: 66px; height: 66px; place-items: center; border: 4px solid var(--studio-surface); background: var(--studio-violet-soft); }
.identity-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.identity-card__logo > span { font: 700 21px var(--studio-display); }
.identity-card__logo label { position: absolute; right: -6px; bottom: -6px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--studio-ink); cursor: pointer; font-size: 9px; }
.identity-card__body > small { color: var(--studio-violet); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.identity-card__body h2 { margin: 6px 0; font: 600 20px var(--studio-display); }
.identity-card__body p { margin: 0; color: var(--studio-muted); font-size: 9px; line-height: 1.5; }
.identity-card__status { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; color: #fff; background: var(--studio-ink); }
.identity-card__status span { display: flex; align-items: center; gap: 6px; color: var(--studio-acid); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.identity-card__status span i { width: 5px; height: 5px; border-radius: 50%; background: var(--studio-acid); }
.identity-card__status b { font-size: 9px; }
.profile-index { display: grid; margin-top: 18px; border-top: 1px solid var(--studio-line-dark); }
.profile-index a, .profile-index button { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; min-height: 42px; padding: 0 8px; text-align: left; border: 0; border-bottom: 1px solid var(--studio-line); background: transparent; font-size: 9px; font-weight: 700; }
.profile-index span { color: var(--studio-muted); font-size: 7px; }
.profile-index em { font-size: 7px; font-style: normal; }
.profile-index a:hover, .profile-index button:hover { padding-left: 12px; background: var(--studio-surface); }
.profile-editor__forms { min-width: 0; }
.profile-section { margin-bottom: 22px; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); scroll-margin-top: 130px; }
.hours-section { overflow: hidden; }
.profile-section > header { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--studio-line); }
.profile-section > header > span { color: var(--studio-violet); font-size: 9px; font-weight: 800; }
.profile-section > header h2 { margin: 0; font: 600 17px var(--studio-display); }
.profile-section > header p { margin: 4px 0 0; color: var(--studio-muted); font-size: 9px; }
.profile-section > header em { align-self: start; padding: 3px 6px; color: var(--studio-red); border: 1px solid currentColor; font-size: 7px; font-style: normal; font-weight: 800; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 22px; }
.profile-fields > label, .account-fields > label, .inline-change-form label, .password-form label { display: grid; align-content: start; gap: 7px; min-width: 0; }
.profile-fields label > span, .account-fields label > span, .inline-change-form label > span, .password-form label > span { font-size: 9px; font-weight: 800; }
.profile-fields input, .profile-fields select, .profile-fields textarea, .social-fields input, .account-fields input, .inline-change-form input, .password-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--studio-line-dark);
  border-radius: 0;
  outline: 0;
  background: #fff;
  font-size: 10px;
}
.profile-fields textarea { resize: vertical; }
.profile-fields input:focus, .profile-fields select:focus, .profile-fields textarea:focus, .social-fields input:focus, .account-fields input:focus, .inline-change-form input:focus, .password-form input:focus { border-color: var(--studio-violet); }
.profile-fields small, .account-fields small { color: var(--studio-muted); font-size: 8px; }
.profile-fields .wide { grid-column: 1/-1; }
.slug-control { display: flex; border: 1px solid var(--studio-line-dark); background: var(--studio-paper); }
.slug-control b { display: flex; align-items: center; padding: 0 10px; color: var(--studio-muted); font-size: 9px; }
.slug-control input { border: 0; }
.social-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 22px 22px; background: var(--studio-line); }
.social-fields label { display: grid; grid-template-columns: 20px 1fr; gap: 5px; padding: 13px; background: var(--studio-paper); }
.social-fields label span { font-size: 8px; font-weight: 800; }
.social-fields input { grid-column: 1/-1; margin-top: 5px; }
.search-preview { display: grid; gap: 5px; margin: 0 22px 22px; padding: 18px; border-left: 3px solid var(--studio-violet); background: var(--studio-paper); }
.search-preview span { color: var(--studio-green); font-size: 8px; }
.search-preview strong { font: 600 15px var(--studio-display); }
.search-preview p { margin: 0; color: var(--studio-muted); font-size: 9px; }
.hours-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 15px 22px; border-bottom: 1px solid var(--studio-line); }
.hours-actions button { padding: 7px 10px; border: 1px solid var(--studio-line); background: transparent; font-size: 8px; font-weight: 700; }
.hours-actions button:hover { background: var(--studio-paper); }
.hours-actions button.danger { color: var(--studio-red); }
.hours-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.hours-table th { padding: 10px; color: var(--studio-muted); border-bottom: 1px solid var(--studio-line); font-size: 7px; letter-spacing: .1em; }
.hours-table td { padding: 9px 10px; border-bottom: 1px solid var(--studio-line); }
.hours-table td:first-child { padding-left: 22px; font-size: 9px; }
.hours-table input[type=time] { width: 100%; min-height: 35px; padding: 5px; border: 1px solid var(--studio-line); background: #fff; font-size: 9px; }
.square-check input { position: absolute; opacity: 0; }
.square-check i { display: block; width: 18px; height: 18px; border: 1px solid var(--studio-line-dark); }
.square-check input:checked + i { background: var(--studio-red); box-shadow: inset 0 0 0 4px #fff; }

/* Account */
.account-identity { display: grid; grid-template-columns: 68px 1fr auto auto; align-items: center; gap: 18px; margin-bottom: 24px; padding: 22px 26px; color: #fff; background: var(--studio-ink); }
.account-identity__avatar { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: var(--studio-ink); background: var(--studio-acid); font: 700 18px var(--studio-display); }
.account-identity > div:nth-child(2) { display: grid; }
.account-identity small { color: rgba(255,255,255,.43); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.account-identity h2 { margin: 3px 0; font: 600 20px var(--studio-display); }
.account-identity p { margin: 0; color: rgba(255,255,255,.55); font-size: 9px; }
.account-identity > span { display: flex; align-items: center; gap: 6px; color: var(--studio-acid); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.account-identity > span i { width: 5px; height: 5px; border-radius: 50%; background: var(--studio-acid); }
.account-identity > b { padding: 5px 8px; border: 1px solid rgba(255,255,255,.2); font-size: 8px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-section { display: flex; min-width: 0; flex-direction: column; padding: 22px; border: 1px solid var(--studio-line-dark); background: var(--studio-surface); }
.account-section > header { display: grid; grid-template-columns: 35px 1fr; padding-bottom: 17px; border-bottom: 1px solid var(--studio-line); }
.account-section > header > span { color: var(--studio-violet); font-size: 9px; font-weight: 800; }
.account-section h2 { margin: 0; font: 600 17px var(--studio-display); }
.account-section header p { margin: 3px 0 0; color: var(--studio-muted); font-size: 9px; }
.account-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.account-submit { align-self: flex-start; min-height: 38px; margin-top: 18px; padding: 0 14px; color: #fff; border: 0; background: var(--studio-ink); font-size: 9px; font-weight: 800; }
.account-submit:disabled { opacity: .35; }
.current-email { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin-top: 18px; padding: 14px; background: var(--studio-paper); }
.current-email small { color: var(--studio-muted); font-size: 8px; }
.current-email strong { grid-column: 1; font-size: 11px; }
.current-email span { grid-row: 1/3; grid-column: 2; align-self: center; color: var(--studio-green); font-size: 7px; font-weight: 800; }
.inline-change-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; margin-top: 16px; }
.inline-change-form button { height: 42px; padding: 0 13px; color: #fff; border: 0; background: var(--studio-violet); font-size: 8px; font-weight: 800; }
.account-section--password, .account-section--preferences { grid-column: 1/-1; }
.password-form { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
.password-rules { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; color: var(--studio-muted); font-size: 8px; }
.password-rules span { display: flex; align-items: center; gap: 5px; }
.password-rules .text-success { color: var(--studio-green) !important; }
.preference-layout { display: grid; grid-template-columns: 1.5fr .7fr; gap: 28px; margin-top: 18px; }
.preference-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.panel-language { display: grid; align-content: start; gap: 8px; padding: 16px; background: var(--studio-paper); }
.panel-language > span { font-size: 9px; font-weight: 800; }
.panel-language select { height: 40px; border: 1px solid var(--studio-line-dark); background: #fff; font-size: 9px; }
.panel-language small { color: var(--studio-muted); font-size: 8px; }
.account-future { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); margin-top: 22px; color: #fff; background: var(--studio-violet); }
.account-future > div, .account-future > a { min-height: 130px; padding: 22px; border: 0; border-right: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; }
.account-future > div > span { color: var(--studio-acid); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.account-future h2 { margin: 7px 0 4px; font: 600 17px var(--studio-display); }
.account-future p { margin: 0; color: rgba(255,255,255,.55); font-size: 8px; }
.account-future > a { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-content: center; gap: 8px; text-align: left; text-decoration: none; }
.account-future > a > span { display: grid; font-size: 9px; font-weight: 700; }
.account-future small { color: rgba(255,255,255,.55); font-size: 8px; }
.account-future > a > i:last-child { color: var(--studio-acid); font-size: 10px; }
.account-future > a:hover { color: var(--studio-ink); background: var(--studio-acid); }
.account-future > a:hover small, .account-future > a:hover > i:last-child { color: var(--studio-ink); }

/* Legacy-compatible surfaces used by blog and compact modals */
.card {
  border: 1px solid var(--studio-line-dark);
  border-radius: 0;
  background: var(--studio-surface);
  box-shadow: none;
}
.card-header { padding: 16px 18px; border-bottom: 1px solid var(--studio-line); background: transparent; }
.card-body { padding: 18px; }
.card-title { font: 600 16px var(--studio-display); }
.table { --bs-table-bg: transparent; --bs-table-hover-bg: rgba(255,253,248,.8); color: var(--studio-ink); font-size: 11px; }
.table > :not(caption) > * > * { padding: 11px; border-bottom-color: var(--studio-line); }
.table thead th { color: var(--studio-muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.badge { border-radius: 2px; font-size: 8px; font-weight: 700; }
.alert { border-radius: 0; font-size: 10px; }
.image-upload-area { position: relative; padding: 16px; border: 1px dashed var(--studio-line-dark); background: var(--studio-paper); }
.image-upload-area img { max-height: 130px; object-fit: cover; }

/* Responsive */
@media (max-width: 1280px) {
  .studio-header__primary { grid-template-columns: 1fr auto 1fr; }
  .studio-global-nav a { min-width: 60px; padding: 0 11px; }
  .venue-switcher__copy small { display: none; }
  .venue-switcher__button { max-width: 190px; }
  .studio-search span, .studio-search kbd, .studio-live-link span { display: none; }
  .catalog-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-studio { grid-template-columns: minmax(285px,.75fr) minmax(360px,1fr); }
  .visibility-panel { grid-column: 1/-1; display: grid; grid-template-columns: 220px 1fr 260px; gap: 22px; border-top: 1px solid var(--studio-line); border-left: 0; }
  .visibility-panel > .visual-tools__header { align-self: start; }
  .visibility-panel > .visual-tool-label { display: none; }
  .visibility-panel > select { align-self: start; margin-top: 0; }
  .visibility-list { grid-column: 2; grid-row: 1/3; grid-template-columns: 1fr 1fr; column-gap: 20px; margin-top: 0; }
  .visibility-panel__publish { grid-column: 3; grid-row: 1/3; align-self: start; margin: 0; }
}

@media (max-width: 991.98px) {
  body.studio-body { padding-bottom: 70px; }
  .studio-header { position: sticky; margin-left: 0; width: 100%; }
  .studio-header__primary { display: flex; min-height: 60px; justify-content: space-between; padding: 0 16px; }
  .studio-header__brandline { gap: 11px; }
  .studio-mobile-trigger { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; border: 0; background: transparent; font-size: 20px; }
  .studio-wordmark > span:last-child, .studio-global-nav, .studio-search, .studio-live-link { display: none; }
  .studio-header__context { display: none; }
  .studio-canvas { margin-left: 0; width: 100%; max-width: 100%; min-height: calc(100vh - 100px); padding: 28px 18px 55px; }
  .nav-sheet { position: fixed; z-index: 1060; inset: 0 auto 0 0; display: flex; width: min(320px, 86vw); flex-direction: column; color: #fff; background: var(--studio-ink); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 4px 0 24px rgba(0,0,0,0.4); }
  .nav-sheet.show { transform: translateX(0); }
  .nav-sheet__head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .nav-sheet__venue-box { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .nav-sheet__links a.active { color: var(--studio-ink); background: var(--studio-acid); }
  .nav-sheet__links a.active small { color: rgba(17,16,15,.55); }
  .nav-sheet__logout { display: flex; gap: 10px; margin-top: auto; padding: 20px; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.13); font-size: 10px; }
  .mobile-dock { position: fixed; z-index: 1010; right: 10px; bottom: 9px; left: 10px; display: flex; justify-content: space-around; height: 64px; padding: 5px 8px; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(17,16,15,.96); box-shadow: 0 14px 35px rgba(17,16,15,.28); backdrop-filter: blur(12px); }
  .mobile-dock a { display: grid; min-width: 50px; place-items: center; align-content: center; gap: 2px; color: rgba(255,255,255,.65); font-size: 10px; }
  .mobile-dock a i { font-size: 18px; }
  .mobile-dock a.active { color: var(--studio-acid); }
  .mobile-dock .mobile-dock__create { align-self: center; width: 42px; min-width: 42px; height: 42px; color: var(--studio-ink); border-radius: 50%; background: var(--studio-acid); }
  .page-intro--split { grid-template-columns: 70px 1fr; gap: 14px; }
  .page-intro__actions { grid-column: 1/-1; justify-content: flex-start; padding-top: 8px; }
  .ops-board { grid-template-columns: 1fr; }
  .publish-console { min-height: 370px; }
  .ops-lower { grid-template-columns: 1fr; }
  .catalog-layout, .deployment-layout, .profile-editor { grid-template-columns: 1fr; }
  .catalog-rail, .deployment-console, .profile-editor__identity { position: static; }
  .catalog-rail { display: flex; overflow-x: auto; border-bottom: 1px solid var(--studio-line); }
  .catalog-rail__head, .catalog-rail__prototype { display: none; }
  .catalog-rail__item { min-width: max-content; padding: 0 14px; border-right: 1px solid var(--studio-line); }
  .structure-summary { grid-template-columns: 160px 1fr; }
  .structure-summary > a { grid-column: 1/-1; border-top: 1px solid var(--studio-line); border-left: 0; }
  .category-outline__row { grid-template-columns: 80px 50px minmax(180px,1fr) 55px 34px; }
  .category-outline__row > .availability-control { display: none; }
  .qr-label-grid { grid-template-columns: 1fr; }
  .visual-studio { grid-template-columns: 1fr 1fr; }
  .device-stage { min-height: 670px; }
  .visibility-panel { grid-template-columns: 1fr 1fr; }
  .visibility-list { grid-column: 2; grid-row: 1/3; grid-template-columns: 1fr; }
  .visibility-panel__publish { grid-column: 1/-1; grid-row: auto; }
  .translation-desk { grid-template-columns: 220px 1fr; }
  .report-ticker { grid-template-columns: 1fr 1fr; }
  .report-ticker article:nth-child(2) { border-right: 0; }
  .report-ticker article:nth-child(-n+2) { border-bottom: 1px solid var(--studio-line); }
  .report-plot-grid, .report-detail-grid { grid-template-columns: 1fr; }
  .account-future { grid-template-columns: 1fr 1fr; }
  .account-future > div { grid-column: 1/-1; }
}

@media (max-width: 767.98px) {
  .studio-canvas { padding-right: 12px; padding-left: 12px; }
  .page-intro { margin-bottom: 22px; padding-bottom: 20px; }
  .page-intro--split { grid-template-columns: 1fr; }
  .page-intro__index { display: none; }
  .page-intro__copy h1 { font-size: 34px; }
  .page-intro__copy > span { font-size: 12px; }
  .page-intro__actions { grid-column: 1; overflow-x: auto; justify-content: flex-start; }
  .studio-button { min-width: max-content; }
  .first-run { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .first-run__number { font-size: 52px; }
  .ops-board__signal { padding: 24px 20px 0; }
  .ops-board__signal-head strong { font-size: 58px; }
  .ops-board__chart { min-height: 190px; }
  .ops-board__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -20px; }
  .ops-board__facts span { min-height: 62px; padding: 0 12px; }
  .ops-board__facts span:nth-child(2n) { border-right: 0; }
  .ops-board__facts small { font-size: 9px; letter-spacing: .08em; }
  .ops-board__facts b { font-size: 17px; }
  .ledger-row { grid-template-columns: 72px 1fr 18px; gap: 10px; padding: 12px 6px; }
  .ledger-row p { grid-column: 2; }
  .ledger-row > i { grid-column: 3; grid-row: 1/3; }
  .catalog-stats { grid-template-columns: repeat(3,1fr); min-height: 90px; }
  .catalog-stats > span { padding: 14px; }
  .catalog-stats strong { font-size: 26px; }
  .catalog-stats > button,
  .catalog-stats__branch-link { grid-column: 1/-1; min-height: 75px; }
  .catalog-toolbar, .structure-toolbar { flex-wrap: wrap; padding: 10px 0; }
  .catalog-search { flex-basis: 100%; min-width: 0; }
  .catalog-toolbar > select, .structure-toolbar > select { flex: 1; min-width: 0; }
  .catalog-selection-bar { padding: 0 6px; }
  .catalog-selection-bar > span { display: none; }
  .catalog-gallery { grid-template-columns: 1fr; }
  .catalog-view-toggle { display: none; }
  .structure-summary { grid-template-columns: 1fr; }
  .structure-summary__count { min-height: 100px; border-right: 0; border-bottom: 1px solid var(--studio-line); }
  .structure-summary__flow { min-height: 82px; overflow-x: auto; }
  .category-outline__row { grid-template-columns: 58px 42px 1fr 30px; min-height: 88px; gap: 8px; padding: 8px 3px; }
  .category-outline__order { gap: 2px; }
  .category-outline__order > span { font-size: 17px; }
  .category-outline__symbol { width: 40px; height: 40px; font-size: 13px; }
  .category-outline__copy strong { font-size: 13px; }
  .category-outline__copy p, .category-outline__meta { display: none; }
  .selection-drawer { top: 100px; flex-direction: column; align-items: stretch; gap: 8px; }
  .selection-drawer > div { display: flex; overflow-x: auto; }
  .selection-drawer button { min-width: max-content; margin: 0 4px 0 0; }
  .deployment-console { display: grid; grid-template-columns: 1fr 1fr; }
  .deployment-console__head, .deployment-console__actions { grid-column: 1/-1; }
  .deployment-console__number { border-right: 1px solid rgba(255,255,255,.14); }
  .deployment-console__number strong { font-size: 42px; }
  .deployment-console__metrics { grid-template-columns: 1fr; }
  .deployment-console__last { grid-column: 1/-1; }
  .qr-label__main { grid-template-columns: 90px 1fr; }
  .qr-label__image img { width: 68px; height: 68px; }
  .visual-studio { grid-template-columns: 1fr; }
  .visual-tools { border-right: 0; }
  .device-stage { grid-row: 1; }
  .visibility-panel { display: block; }
  .visibility-list { margin-top: 20px; }
  .visibility-panel__publish { margin: 20px -24px -24px; }
  .translation-desk { grid-template-columns: 1fr; }
  .translation-desk__nav { border-right: 0; border-bottom: 1px solid var(--studio-line); }
  .translation-section-nav { grid-template-columns: repeat(3,1fr); }
  .translation-section-nav a { padding: 10px; }
  .translation-section-nav a > span { display: none; }
  .translation-ai { display: none; }
  .translation-desk__work { padding: 15px; }
  .translation-column-labels { padding-left: 0; gap: 10px; }
  .parallel-field { grid-template-columns: 1fr; gap: 7px; }
  .parallel-field > label { padding: 0; }
  .parallel-field > div { grid-template-columns: 1fr; }
  .parallel-field > div > i { transform: rotate(90deg); }
  .translation-savebar { margin: 15px -15px -15px; padding: 12px 15px; }
  .translation-savebar > span { display: none; }
  .report-filter { grid-template-columns: 1fr 1fr; align-items: end; }
  .report-filter > span { grid-column: 1/-1; }
  .report-filter > i { display: none; }
  .report-filter button { grid-column: 1/-1; }
  .report-ticker { grid-template-columns: 1fr 1fr; }
  .report-ticker article { padding: 14px; }
  .report-ticker strong { font-size: 26px; }
  .report-chart { height: 240px; }
  .ranking-report__list > div { grid-template-columns: 20px 1fr 38px; }
  .ranking-report__list i, .ranking-report__list small { display: none; }
  .profile-editor { gap: 20px; }
  .profile-index { display: none; }
  .profile-fields, .social-fields { grid-template-columns: 1fr; }
  .profile-fields .wide { grid-column: 1; }
  .social-fields { gap: 1px; }
  .hours-table { min-width: 0; }
  .hours-table thead { display: none; }
  .hours-table tbody, .hours-table tr { display: block; }
  .hours-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border-bottom: 1px solid var(--studio-line); }
  .hours-table td { display: grid; gap: 4px; height: auto; padding: 0; border: 0; }
  .hours-table td:first-child { grid-column: 1/-1; padding: 0 0 5px; }
  .hours-table td:nth-child(2)::before { content: "Açılış"; }
  .hours-table td:nth-child(3)::before { content: "Kapanış"; }
  .hours-table td:nth-child(4)::before { content: "Mola başlangıcı"; }
  .hours-table td:nth-child(5)::before { content: "Mola bitişi"; }
  .hours-table td:nth-child(6)::before { content: "Kapalı"; }
  .hours-table td::before { color: var(--studio-muted); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .account-identity { grid-template-columns: 52px 1fr auto; gap: 11px; padding: 17px; }
  .account-identity__avatar { width: 46px; height: 46px; }
  .account-identity > span { display: none; }
  .account-grid { grid-template-columns: 1fr; }
  .account-section--password, .account-section--preferences { grid-column: 1; }
  .account-fields, .password-form, .preference-layout { grid-template-columns: 1fr; }
  .preference-list { grid-template-columns: 1fr; }
  .inline-change-form { grid-template-columns: 1fr; }
  .account-future { grid-template-columns: 1fr; }
  .account-future > div { grid-column: 1; }
  .product-editor-modal .modal-dialog { width: 100%; }
  .product-editor-layout { grid-template-columns: 1fr; }
  .product-editor-main { padding: 0 18px 28px; border-right: 0; }
  .product-editor-aside { padding: 18px; }
  .editor-section { grid-template-columns: 1fr; gap: 14px; }
  .nutrition-grid { grid-template-columns: repeat(2,1fr); }
  .editor-save-note { display: none; }
  .qr-editor-layout { grid-template-columns: 1fr; }
  .qr-editor-preview { padding: 16px; }
  .modal-body { padding: 18px; }
}

@media (max-width: 420px) {
  .studio-wordmark__sign { width: 25px; height: 25px; }
  .studio-account > i { display: none; }
  .studio-header__context nav a, .studio-header__context nav button { padding: 0 10px; font-size: 10px; }
  .page-intro__actions .studio-button { padding: 0 12px; }
  .catalog-stats small { font-size: 6px; }
  .catalog-stats > span { padding: 11px; }
  .qr-label__copy h2 { font-size: 14px; }
  .language-roster { grid-template-columns: 130px 1fr; }
  .language-pill { min-width: 145px; }
  .device-frame { width: 290px; height: 580px; }
  .report-ticker p { display: none; }
  .account-section { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ── Modern Studio Stat Card Grid ────────────────────────────── */
.studio-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.studio-stat-card {
  background: var(--studio-surface, #ffffff);
  border: 1px solid var(--studio-line, #e2e8f0);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.studio-stat-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}
.studio-stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.studio-stat-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--studio-muted, #64748b);
  margin: 0;
}
.studio-stat-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--studio-paper, #f1f5f9);
  color: var(--studio-ink, #0f172a);
}
.studio-stat-card__value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--studio-ink, #0f172a);
  margin: 4px 0;
  font-family: var(--studio-display, inherit);
}
.studio-stat-card__sub {
  font-size: 12px;
  color: var(--studio-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

@media print {
  .studio-header, .mobile-dock, .page-intro__actions, .report-filter { display: none !important; }
  body.studio-body { padding: 0; background: #fff; }
  .studio-canvas { width: 100%; padding: 0; }
  .report-plot, .ranking-report, .device-report, .report-ticker { break-inside: avoid; }
}

/* Billing / subscription */
.billing-page section { margin-bottom: 36px; }
.billing-page h2 { font: 600 20px var(--studio-display); margin: 0 0 16px; }
.billing-current {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
}
.billing-current.is-expired { border-color: var(--studio-red); }
.billing-current__plan h2 { margin: 8px 0 10px; font-size: 26px; }
.billing-current__plan p { margin: 14px 0; color: var(--studio-muted); font-size: 13px; }
.billing-current .status-pill { font-size: 10px; padding: 3px 8px; }
.billing-usage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; align-content: center; }
.billing-usage__head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.billing-usage__bar { height: 6px; border-radius: 3px; background: var(--studio-surface-2); overflow: hidden; }
.billing-usage__bar span { display: block; height: 100%; background: var(--studio-violet); }
.billing-usage__bar span.is-full { background: var(--studio-amber); }
.billing-plans__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.billing-plans__head h2 { margin: 0; }
.billing-cycle { display: inline-flex; padding: 3px; border: 1px solid var(--studio-line); border-radius: 6px; background: var(--studio-surface); }
.billing-cycle button { padding: 6px 14px; border: 0; border-radius: 4px; background: transparent; font-size: 12px; font-weight: 700; color: var(--studio-muted); }
.billing-cycle button.is-active { background: var(--studio-ink); color: #fff; }
.billing-cycle em { font-style: normal; font-weight: 600; color: var(--studio-green); margin-left: 4px; }
.billing-cycle button.is-active em { color: var(--studio-acid); }
.billing-plans__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.billing-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
}
.billing-plan.is-featured { border: 2px solid var(--studio-ink); }
.billing-plan__flag { position: absolute; top: -11px; left: 20px; padding: 3px 9px; border-radius: 999px; background: var(--studio-acid); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.billing-plan h3 { margin: 0 0 6px; font: 600 18px var(--studio-display); }
.billing-plan__desc { min-height: 40px; margin: 0 0 16px; color: var(--studio-muted); font-size: 13px; }
.billing-plan__price { margin-bottom: 18px; }
.billing-plan__price strong { font: 700 30px var(--studio-display); }
.billing-plan__price span { color: var(--studio-muted); font-size: 13px; }
.billing-plan ul { flex: 1 1 auto; margin: 0 0 20px; padding: 0; list-style: none; font-size: 13px; }
.billing-plan li { display: flex; gap: 8px; padding: 5px 0; }
.billing-plan li i { color: var(--studio-green); }
.billing-plans__note { margin-top: 12px; color: var(--studio-muted); font-size: 12px; }
@media (max-width: 860px) {
  .billing-current { grid-template-columns: 1fr; padding: 20px; }
  .billing-usage { grid-template-columns: 1fr; }
}

/* Platform admin */
.admin-requests { margin-bottom: 32px; padding: 20px; border: 1px solid var(--studio-line); border-left: 4px solid var(--studio-violet); border-radius: var(--studio-radius); background: var(--studio-surface); }
.admin-requests h2 { font: 600 18px var(--studio-display); }
.admin-accounts-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.admin-accounts-toolbar input { flex: 1 1 260px; }
.admin-accounts-toolbar select { flex: 0 0 200px; }
.admin-accounts-table tr.is-disabled td { opacity: .5; }
.admin-accounts-table .status-pill { font-size: 9px; margin-top: 4px; }

/* Ürün sıralama yalnızca kategori filtresi seçiliyken */
.catalog-surface:has(#productsTable[data-sortable="0"]) .drag-handle,
.catalog-surface:has(#productsTable[data-sortable="0"]) .grid-drag-handle { display: none; }

/* Onay penceresi */
.studio-confirm .modal-content { border: 1px solid var(--studio-line); border-radius: var(--studio-radius); background: var(--studio-surface); }
.studio-confirm .modal-body { padding: 24px 24px 8px; }
.studio-confirm__title { margin: 0 0 8px; font: 600 18px var(--studio-display); }
.studio-confirm__message { margin: 0; color: var(--studio-muted); font-size: 14px; }
.studio-confirm .modal-footer { border: 0; padding: 12px 24px 20px; gap: 8px; }
.studio-button--danger { color: #fff; border-color: var(--studio-red); background: var(--studio-red); }
.studio-button--danger:hover { filter: brightness(.92); color: #fff; }
.translation-ai.is-locked { background: var(--studio-ink-2); text-decoration: none; }
.translation-ai:disabled { opacity: .7; cursor: progress; }

/* İlk kurulum rehberi */
.setup-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 20px; padding: 12px 18px; border: 1px solid var(--studio-line); border-radius: var(--studio-radius); background: var(--studio-surface); font-size: 13px; }
.setup-progress strong { font-family: var(--studio-display); }
.setup-progress ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.setup-progress li a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--studio-line); border-radius: 999px; color: var(--studio-muted); text-decoration: none; }
.setup-progress li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--studio-surface-2); font-size: 11px; font-weight: 800; }
.setup-progress li.is-done a { color: var(--studio-green); }
.setup-progress li.is-done span { background: var(--studio-green); color: #fff; }
.setup-progress li.is-next a { border-color: var(--studio-ink); color: var(--studio-ink); font-weight: 700; }
.setup-progress li.is-next span { background: var(--studio-acid); }

/* Mobil düzeltmeler (2026-10) */
@media (max-width: 700px) {
  .page-intro__actions { flex-wrap: wrap; overflow-x: visible; }
  .plan-banner { flex-wrap: wrap; }
  .plan-banner p { min-width: 0; overflow-wrap: anywhere; }
  .translation-section-nav a { display: block; padding: 10px 6px; }
  .translation-section-nav a > span,
  .translation-section-nav small { display: none; }
  .translation-section-nav strong { font-size: 11px; }
}
