/* ============================================================
   SYAHRUL STUDIO CMS — OBSIDIAN EDITORIAL DESIGN SYSTEM
   Standalone Admin Page (completely separate from public site)
   ============================================================ */

:root {
  --bg-canvas: #090a0d;
  --bg-sidebar: #0d0f14;
  --bg-surface: #12151c;
  --bg-surface-2: #171b24;
  --bg-input: #0b0d12;
  --bg-hover: rgba(255, 255, 255, 0.055);
  --bg-active: rgba(255, 255, 255, 0.09);

  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.13);
  --border-focus: rgba(16, 185, 129, 0.55);

  --text-primary: #f4f5f7;
  --text-secondary: #a1a7b5;
  --text-muted: #6c7385;

  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --accent-border: rgba(16, 185, 129, 0.34);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.13);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.14);

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --sidebar-w: 256px;
  --topbar-h: 60px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border-hairline);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   DEDICATED LOGIN VAULT SCREEN (STANDALONE)
   ============================================================ */
.vault-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--bg-canvas);
}

.vault-brand-pane {
  position: relative;
  background:
    radial-gradient(circle at 18% 22%, rgba(16, 185, 129, 0.16), transparent 48%),
    radial-gradient(circle at 82% 85%, rgba(56, 189, 248, 0.1), transparent 45%),
    var(--bg-sidebar);
  border-right: 1px solid var(--border-hairline);
  padding: 48px 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.vault-brand-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
  pointer-events: none;
}

.vault-brand-top,
.vault-brand-mid,
.vault-brand-foot {
  position: relative;
  z-index: 1;
}

.vault-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.vault-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--text-primary);
  color: var(--bg-canvas);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 460px;
  margin-bottom: 16px;
}

.vault-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 430px;
  line-height: 1.65;
}

.vault-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 440px;
}

.vault-metric {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
}

.vault-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.vault-metric span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.vault-form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
}

.vault-card {
  width: min(410px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   3-ZONE STUDIO SHELL (SIDEBAR + TOPBAR + WORKSPACE)
   ============================================================ */
.studio-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

/* Left Sidebar */
.studio-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 18px;
  overflow-y: auto;
  z-index: 40;
}

.sidebar-workspace {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sidebar-ws-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-ws-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot--ok {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.65);
}

.status-dot--draft {
  background: var(--warn);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.65);
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-group__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding: 0 10px 6px;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease;
  text-align: left;
}

.nav-item__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.78;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--bg-active);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-item.active svg {
  opacity: 1;
  color: var(--accent);
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.nav-item.active .nav-badge {
  background: var(--accent-soft);
  color: #6ee7b7;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Right Main Column */
.studio-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* Sticky Top Command Bar */
.studio-topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: rgba(9, 10, 13, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

/* Workspace Body */
.studio-content {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 28px 28px 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.page-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================================
   PRIMITIVES: CARDS, BUTTONS, INPUTS, BADGES
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease, opacity 0.16s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ui-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-canvas);
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-accent {
  background: var(--accent);
  color: #032116;
}

.btn-accent:hover {
  background: #34d399;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-danger {
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.24);
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 11.5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

.pill--ok {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #6ee7b7;
}

.pill--warn {
  background: var(--warn-soft);
  border-color: rgba(245, 158, 11, 0.34);
  color: #fcd34d;
}

.pill--info {
  background: var(--info-soft);
  border-color: rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  transition: all 0.16s ease;
}

.chip:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.chip.active {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border-color: var(--text-primary);
  font-weight: 700;
}

/* Form Controls */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input,
.textarea,
.select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.select option {
  background: #12151c;
  color: #f4f5f7;
}

/* ============================================================
   LAYOUT GRIDS
   ============================================================ */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.kpi-card__val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.kpi-card__sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Master-Detail Inspector */
.inspector-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.inspector-list-card {
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
  max-height: calc(100vh - var(--topbar-h) - 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inspector-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
}

.inspector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.inspector-row:hover {
  background: var(--bg-hover);
}

.inspector-row.active {
  background: var(--bg-active);
  border-color: var(--accent-border);
}

.inspector-row img {
  width: 52px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border-hairline);
  flex-shrink: 0;
  background: #0a0b0e;
}

.inspector-row__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-row__meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-btn {
  width: 22px;
  height: 18px;
  border-radius: 5px;
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.order-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Media & Asset Previews */
.asset-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.asset-preview {
  height: 126px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #08090c;
  border: 1px solid var(--border-hairline);
  position: relative;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.media-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease;
}

.media-tile:hover {
  border-color: var(--border-subtle);
}

.media-tile__img {
  position: relative;
  height: 138px;
  background: #08090c;
  overflow: hidden;
}

.media-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}

.media-tile:hover .media-tile__img img {
  transform: scale(1.04);
}

.media-tile__body {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-shot {
  position: relative;
  height: 82px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: #08090c;
}

.mini-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-shot__del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(9, 10, 13, 0.85);
  color: #fca5a5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Info Box & Meta Rows */
.callout {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.meta-table {
  display: flex;
  flex-direction: column;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 12.5px;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-row span {
  color: var(--text-muted);
}

.meta-row strong {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
}

.inbox-item {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============================================================
   MODAL & TOAST
   ============================================================ */
.studio-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 100;
}

.studio-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.studio-modal-card {
  width: min(760px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 4px;
}

.picker-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-hairline);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.picker-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.picker-item img {
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.picker-item span {
  padding: 7px 9px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 120;
  pointer-events: none;
}

.studio-toast {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: toastSlide 0.24s var(--ease-out) both;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-scrim {
  display: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1120px) {
  .kpi-strip,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inspector-layout,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .inspector-list-card {
    position: static;
    max-height: 320px;
  }
}

@media (max-width: 900px) {
  .vault-screen {
    grid-template-columns: 1fr;
  }

  .vault-brand-pane {
    display: none;
  }

  .studio-shell {
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 270px;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease-out);
  }

  .studio-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 35;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .studio-topbar {
    padding: 0 16px;
  }

  .studio-content {
    padding: 20px 16px 48px;
  }
}

@media (max-width: 600px) {
  .kpi-strip,
  .grid-4,
  .picker-grid {
    grid-template-columns: 1fr;
  }
}
