/* CoreInto — "Studio" client area template. Loaded after client.css (which holds
   the Horizon styles this template is built on) and turns the app shell light:
   a white side menu with the account card first, the brand teal for actions,
   white cards with soft borders, quiet tables and soft status pills — the same
   look as the admin area. */
body.studio {
  --bg: #f5f7fb; --surface: #ffffff; --surface-2: #f8fafc; --ink: #0f172a; --muted: #64748b; --line: #e5e9f0;
  --accent: #0d9488; --accent-ink: #ffffff; --accent-soft: #e6f6f4;
  --head: #f8fafc; --band: #f8fafc; --band-ink: #475569; --label: #f8fafc;
  --radius: 10px; --radius-lg: 14px; --ctl-h: 40px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
  --hz-side-w: 268px; --hz-side: #ffffff; --hz-side-2: #f1f5f9; --hz-side-ink: #334155; --hz-side-muted: #94a3b8;
  --st-green: #16a34a; --st-teal: #0d9488; --st-amber: #d97706; --st-orange: #ea580c; --st-red: #dc2626; --st-blue: #2563eb; --st-purple: #7c3aed; --st-slate: #475569; --st-grey: #6b7280;
  font-family: Inter, "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
:root[data-theme="dark"] body.studio {
  --bg: #0b111c; --surface: #111a28; --surface-2: #162133; --ink: #e5ecf5; --muted: #94a3b8; --line: #223047;
  --accent: #2dd4bf; --accent-ink: #062320; --accent-soft: #123a38; --head: #111a28; --band: #162133; --band-ink: #cbd5e1; --label: #111a28;
  --hz-side: #0f1724; --hz-side-2: #172235; --hz-side-ink: #cbd5e1; --hz-side-muted: #64748b; --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
  --st-green: #22c55e; --st-teal: #2dd4bf; --st-amber: #f59e0b; --st-orange: #fb923c; --st-red: #f87171; --st-blue: #60a5fa; --st-purple: #a78bfa; --st-slate: #94a3b8; --st-grey: #9ca3af;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.studio {
    --bg: #0b111c; --surface: #111a28; --surface-2: #162133; --ink: #e5ecf5; --muted: #94a3b8; --line: #223047;
    --accent: #2dd4bf; --accent-ink: #062320; --accent-soft: #123a38; --head: #111a28; --band: #162133; --band-ink: #cbd5e1; --label: #111a28;
    --hz-side: #0f1724; --hz-side-2: #172235; --hz-side-ink: #cbd5e1; --hz-side-muted: #64748b; --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
    --st-green: #22c55e; --st-teal: #2dd4bf; --st-amber: #f59e0b; --st-orange: #fb923c; --st-red: #f87171; --st-blue: #60a5fa; --st-purple: #a78bfa; --st-slate: #94a3b8; --st-grey: #9ca3af;
  }
}
body.studio { background: var(--bg); }

/* ---------------------------------------------------------------- side menu */
.studio .hz-side { border-right: 1px solid var(--line); padding: 0 12px 12px; gap: 0; }
.studio .hz-side-top { order: 0; min-height: 64px; padding: 0 6px; }
.studio .hz-acct { order: 1; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.studio .hz-acct:hover { background: var(--surface-2); border-color: var(--accent); }
.studio .hz-acct .avatar, .studio .user-menu .avatar { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #6366f1)); color: #fff; }
.studio .hz-acct-text strong { color: var(--ink); }
.studio .hz-acct-text small { color: var(--muted); }
.studio .hz-order { order: 2; margin-bottom: 4px; border-radius: var(--radius); }
.studio .hz-nav { order: 3; }
.studio .hz-side .hz-brand { color: var(--ink); }
.studio .hz-mark { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #6366f1)); border-radius: 10px; }
.studio .hz-nav h2 { font-size: .7rem; letter-spacing: .08em; margin: 16px 10px 6px; font-weight: 600; }
.studio .hz-nav a { border-radius: var(--radius); font-weight: 500; padding: 8px 10px; }
.studio .hz-nav a:hover { background: var(--hz-side-2); color: var(--ink); }
.studio .hz-nav a:hover .ico { color: var(--accent); }
.studio .hz-nav a.on { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.studio .hz-nav a.on .ico { color: var(--accent); }
.studio .hz-side-html { color: var(--ink); }
.studio .hz-side .hz-side-html .facts dd, .studio .hz-side .hz-side-html .kv td { color: var(--ink) !important; }
.studio .hz-side-html a { color: var(--accent); }
.studio .hz-close { color: var(--muted); }

/* ---------------------------------------------------------------- top bar */
.studio .hz-top { min-height: 64px; background: color-mix(in srgb, var(--surface) 92%, transparent); }
.studio .hz-search { border-radius: var(--radius); height: 40px; }
.studio .hz-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--surface); }
.studio .drop a:hover, .studio .drop .linklike:hover { background: var(--accent-soft); color: var(--accent); }
.studio .alerts-drop b.on, .studio .hz-count { background: var(--st-red); }

/* ---------------------------------------------------------------- page */
.studio .hz-content { padding: 26px 30px 36px; }
.studio .welcome h1, .studio .page-title { font-weight: 700; letter-spacing: -.02em; }
.studio .card { border-radius: var(--radius-lg); box-shadow: var(--shadow); border-color: var(--line); }
.studio .card-head { background: none; }
.studio .table thead th { background: var(--head); color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.studio .table th, .studio .table td { padding: 11px 14px; vertical-align: middle; }
.studio .table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
.studio .btn { border-radius: var(--radius); }
.studio .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.studio .btn-primary:hover { filter: brightness(1.06); }

/* the storefront: CoreInto's navy and teal instead of Horizon's violet */
.studio .hero { background: linear-gradient(135deg, #0b1e3a 0%, #12305a 50%, #0d6e68 100%); }
.studio .quick { background: #0b1e3a; }
.studio .quick a, .studio .quick a .ico { color: #e2f5f3; }
.studio .quick a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.studio .plan-head { background: #0b1e3a; }
.studio .avatar.big { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #6366f1)); }
.studio input:focus, .studio select:focus, .studio textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

/* status pills: a soft tint of the status colour with a dot */
.studio .badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .76em; font-weight: 600; text-transform: none; letter-spacing: .01em; }
.studio .badge[class*="st-"] { --c: var(--st-grey); background: color-mix(in srgb, var(--c) 13%, transparent) !important; color: var(--c) !important; border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.studio .badge[class*="st-"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.studio .badge.st-green { --c: var(--st-green); } .studio .badge.st-teal { --c: var(--st-teal); } .studio .badge.st-amber { --c: var(--st-amber); }
.studio .badge.st-orange { --c: var(--st-orange); } .studio .badge.st-red { --c: var(--st-red); } .studio .badge.st-blue { --c: var(--st-blue); }
.studio .badge.st-purple { --c: var(--st-purple); } .studio .badge.st-slate { --c: var(--st-slate); } .studio .badge.st-grey { --c: var(--st-grey); }

/* count cards: white, the number over its label, a soft icon square on the right */
.studio .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.studio .stat { --c: var(--accent); display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); min-height: 92px; transition: border-color .12s, box-shadow .12s, transform .12s; }
.studio a.stat:hover { text-decoration: none; border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.studio .stat .stat-ico { order: 2; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--c) 13%, transparent) !important; color: var(--c) !important; display: flex; align-items: center; justify-content: center; flex: none; }
.studio .stat .stat-ico .ico { width: 22px !important; height: 22px !important; padding: 0 !important; background: none !important; color: inherit !important; border-radius: 0; }
.studio .stat .stat-body { display: flex; flex-direction: column-reverse; min-width: 0; }
.studio .stat .num { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.studio .stat small { color: var(--muted); font-size: .86rem; font-weight: 500; }
.studio .stat-green { --c: var(--st-green); } .studio .stat-amber { --c: var(--st-amber); } .studio .stat-red { --c: var(--st-red); } .studio .stat-blue { --c: var(--st-blue); }
.studio .stat-teal { --c: var(--st-teal); } .studio .stat-purple { --c: var(--st-purple); } .studio .stat-grey { --c: var(--st-slate); }

/* notices: a soft banner with an icon square and the action on the right */
.studio .notice { border-radius: var(--radius-lg); padding: 14px 16px; gap: 14px; border: 1px solid transparent; }
.studio .notice > .ico { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: color-mix(in srgb, currentColor 14%, transparent); flex: none; }

@media (max-width: 900px) { .studio .hz-content { padding: 18px 14px 28px; } .studio .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; } .studio .stat { padding: 12px; min-height: 0; } .studio .stat .num { font-size: 1.3rem; } .studio .stat .stat-ico { width: 36px; height: 36px; } }
[dir="rtl"] .studio .hz-side { border-right: 0; border-left: 1px solid var(--line); }
