/* MediaHub 2 · charcoal glass. Local assets, system typography, no UI framework. */
:root {
  color-scheme: dark;
  --bg: #191b20;
  --bg-deep: #15171c;
  --panel: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.15);
  --line-soft: rgba(255,255,255,.085);
  --text: #f1f2f5;
  --muted: #b0b3bd;
  --accent: #e6e8ed;
  --accent-strong: #fff;
  --success: #a4d9bc;
  --warning: #e9cd9a;
  --danger: #f0abab;
  --radius: 16px;
  --glass: linear-gradient(135deg,rgba(255,255,255,.065),rgba(255,255,255,.015));
  --shadow: 0 12px 36px -20px rgba(0,0,0,.6), inset 0 1px rgba(255,255,255,.035);
}
* { box-sizing: border-box; }
html { min-height:100%; background:var(--bg); }
body { margin:0; color:var(--text); font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
body::before { content:""; position:fixed; inset:0; z-index:-1; background:radial-gradient(ellipse at 65% -20%,#45485080,transparent 62%),radial-gradient(ellipse at 0 80%,#30343d70,transparent 60%),var(--bg); }
body::after { content:""; position:fixed; inset:0; z-index:30; pointer-events:none; background:url(grain.svg); opacity:.055; }
a { color:var(--accent); text-decoration:none; }
a:hover { color:#fff; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid #fff; outline-offset:4px; }
.icon { width:19px; height:19px; flex:0 0 auto; }
.step-check { width:17px; height:17px; }
.skip-link { position:fixed; top:-80px; left:20px; z-index:100; padding:12px 18px; background:#fff; color:#191b20; border-radius:8px; }
.skip-link:focus { top:12px; color:#191b20; }
.mediahub-brand { display:flex; align-items:center; }
.mediahub-brand-copy { display:grid; gap:4px; }
.mediahub-wordmark { font-size:32px; font-weight:720; letter-spacing:-1.4px; line-height:1.1; }
.mediahub-submark { color:var(--muted); font-size:11px; letter-spacing:.12em; text-transform:uppercase; }
.mediahub-brand.compact .mediahub-wordmark { font-size:27px; letter-spacing:-1.2px; }
.mediahub-brand.compact .mediahub-submark { font-size:10px; }
.app-shell { min-height:100vh; }
.sidebar { position:fixed; inset:20px auto 20px 20px; width:232px; display:flex; flex-direction:column; padding:26px 14px 16px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(155deg,rgba(64,66,73,.48),rgba(30,32,38,.55)); box-shadow:var(--shadow); -webkit-backdrop-filter:blur(24px); backdrop-filter:blur(24px); z-index:20; overflow:auto; }
.sidebar-brand { padding:0 14px 25px; }
.sidebar-context { display:grid; gap:3px; border-top:1px solid var(--line-soft); margin:0 12px 12px; padding-top:18px; }
.sidebar-context span { font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); }
.sidebar-context strong { font-size:13px; font-weight:550; overflow:hidden; text-overflow:ellipsis; }
.sidebar-nav { display:grid; gap:4px; }
.sidebar-nav a { display:flex; align-items:center; gap:12px; padding:10px 12px; color:var(--muted); border:1px solid transparent; border-radius:9px; transition:background .15s,color .15s; }
.sidebar-nav a:hover { background:rgba(255,255,255,.045); color:#fff; }
.sidebar-nav a.active { color:#fff; background:linear-gradient(110deg,rgba(255,255,255,.12),rgba(255,255,255,.055)); border-color:var(--line); box-shadow:inset 0 1px rgba(255,255,255,.04); }
.sidebar-nav a span { font-size:12px; font-weight:550; }
.sidebar-nav .icon { width:17px; height:17px; }
.sidebar-footer { display:grid; gap:6px; margin:24px 12px 0; padding-top:16px; border-top:1px solid var(--line-soft); font-size:11px; color:var(--muted); }
.sidebar-footer span { overflow-wrap:anywhere; }
.main { margin-left:272px; padding:0 clamp(24px,3.5vw,64px) 48px 20px; max-width:1860px; }
.topbar { height:94px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line-soft); margin-bottom:36px; }
.topbar-wordmark { font-size:13px; color:var(--muted); font-weight:500; }
.topbar-meta { display:flex; align-items:center; gap:12px; font-size:11px; color:var(--muted); }
.topbar-dot { width:3px; height:3px; border-radius:50%; background:#969aa6; }
.version-chip { border:1px solid var(--line); border-radius:6px; padding:4px 9px; color:var(--text); }
.page-head,.dashboard-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:0 0 28px; }
h1,h2,h3,p { overflow-wrap:anywhere; }
.page-head h1,.dashboard-intro h1 { font-size:clamp(26px,2.8vw,38px); font-weight:600; line-height:1.2; letter-spacing:-1.1px; margin:7px 0 0; }
.page-head p,.dashboard-intro p { max-width:740px; color:var(--muted); font-size:13px; margin:10px 0 0; }
.eyebrow,.stat-label,.setup-kicker { color:var(--muted); font-size:10px; font-weight:600; letter-spacing:.11em; text-transform:uppercase; }
.grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:18px; }
.span-3 { grid-column:span 3; }.span-4 { grid-column:span 4; }.span-5 { grid-column:span 5; }.span-6 { grid-column:span 6; }.span-7 { grid-column:span 7; }.span-8 { grid-column:span 8; }.span-12 { grid-column:span 12; }
.card,.status-strip,.wizard-card,.auth-panel-card { background:var(--glass); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.card { padding:24px; min-width:0; }
.card.subtle { background:transparent; border-color:var(--line-soft); box-shadow:none; }
.card h2 { font-size:16px; font-weight:600; letter-spacing:-.25px; margin:0 0 8px; }
.card h3 { font-size:14px; margin:0 0 5px; font-weight:550; }
.card p { color:var(--muted); font-size:12px; line-height:1.7; margin:7px 0 0; }
.card p:first-child { margin-top:0; }
.stat-value { font-size:30px; font-weight:600; margin-top:8px; letter-spacing:-.8px; }
.stat-value.small { font-size:20px; }.muted { color:var(--muted); }
.dashboard-actions,.actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.status-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:24px; }
.status-tile { padding:20px; min-width:0; border-right:1px solid var(--line-soft); }
.status-tile:last-child { border-right:0; }
.status-tile-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.status-tile strong { display:block; font-size:17px; font-weight:550; margin:16px 0 4px; letter-spacing:-.3px; overflow-wrap:anywhere; }
.status-tile small { display:block; color:var(--muted); font-size:11px; }
.quick-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.quick-link { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px; border:1px solid var(--line-soft); border-radius:10px; transition:background .15s,border-color .15s; }
.quick-link:hover { background:rgba(255,255,255,.05); border-color:var(--line); }
.quick-link>span { display:flex; align-items:center; gap:12px; font-size:12px; }
.quick-link>.icon { width:15px; height:15px; color:var(--muted); }
.build-summary,.card-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.build-summary { margin-top:18px; }.build-summary>div { min-width:0; }
.card-actions { margin-top:22px; }.actions.end { justify-content:flex-end; }
.field { display:grid; gap:8px; margin:18px 0; min-width:0; }
.field label { font-size:12px; color:#e3e4e9; font-weight:550; }
.field small { font-size:11px; color:var(--muted); line-height:1.6; }
input,select,textarea { width:100%; min-width:0; color:var(--text); background:rgba(13,15,20,.34); border:1px solid var(--line); border-radius:8px; padding:11px 12px; transition:border-color .15s,background .15s; }
input::placeholder,textarea::placeholder { color:#8d919e; }
input:focus,select:focus,textarea:focus { border-color:#c9ccd5; background:rgba(255,255,255,.035); outline:2px solid rgba(255,255,255,.16); outline-offset:2px; }
input[type=file] { font-size:12px; padding:8px; }
input::file-selector-button { background:rgba(255,255,255,.09); color:var(--text); border:1px solid var(--line); border-radius:5px; padding:6px 10px; margin-right:10px; cursor:pointer; }
select option { background:#25272e; }textarea { min-height:120px; resize:vertical; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.button,button { appearance:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:10px 16px; border:1px solid rgba(255,255,255,.65); border-radius:8px; background:#e6e8ed; color:#22242a; font-size:12px; font-weight:650; cursor:pointer; line-height:1.4; text-align:center; transition:background .15s,border-color .15s,box-shadow .15s; }
.button:hover,button:hover { background:#fff; color:#191b20; box-shadow:0 4px 18px -10px #ffffff80; }
.button.secondary,button.secondary { color:var(--text); background:rgba(255,255,255,.045); border-color:var(--line); box-shadow:inset 0 1px rgba(255,255,255,.025); }
.button.secondary:hover,button.secondary:hover { background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.3); }
.button.danger,button.danger { color:var(--danger); background:rgba(229,143,143,.04); border-color:rgba(229,143,143,.3); }
.button.danger:hover,button.danger:hover { background:rgba(229,143,143,.1); }
.full { width:100%; }button:disabled,.button.disabled { opacity:.4; cursor:not-allowed; pointer-events:none; }
.is-working::after { content:""; width:12px; height:12px; border:1.5px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.badge { display:inline-flex; align-items:center; border:1px solid; border-radius:5px; padding:3px 7px; font-size:9px; font-weight:550; line-height:1.4; white-space:nowrap; }
.badge.ok { color:var(--success); background:rgba(164,217,188,.045); border-color:rgba(164,217,188,.18); }
.badge.warn { color:var(--warning); background:rgba(233,205,154,.045); border-color:rgba(233,205,154,.2); }
.badge.bad { color:var(--danger); background:rgba(240,171,171,.045); border-color:rgba(240,171,171,.2); }
.flash { padding:13px 16px; border:1px solid var(--line); border-radius:10px; font-size:12px; margin:0 0 20px; background:rgba(255,255,255,.04); }
.flash.success { color:var(--success); border-color:rgba(164,217,188,.25); }.flash.error { color:var(--danger); border-color:rgba(240,171,171,.3); }.flash.info { color:var(--text); }
.status-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:13px 0; border-bottom:1px solid var(--line-soft); font-size:12px; }
.status-row:last-child { border-bottom:0; }.status-row>span:first-child { color:var(--muted); }.status-row strong { font-size:12px; font-weight:550; text-align:right; overflow-wrap:anywhere; min-width:0; }.status-row small { font-size:10px; }
.status-row code { max-width:62%; overflow-wrap:anywhere; text-align:right; }.divider { height:1px; background:var(--line-soft); margin:22px 0; }.danger-text { color:var(--danger)!important; }
code,.code { font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap:anywhere; }.code { background:rgba(0,0,0,.15); color:#d4d6df; border:1px solid var(--line-soft); padding:16px; border-radius:8px; white-space:pre-wrap; }
.table-wrap { overflow:auto; border:1px solid var(--line-soft); border-radius:10px; }table { border-collapse:collapse; width:100%; font-size:12px; }th,td { text-align:left; padding:14px; border-bottom:1px solid var(--line-soft); vertical-align:middle; }th { color:var(--muted); font-size:10px; font-weight:550; background:rgba(255,255,255,.025); }tbody tr:last-child td { border:0; }tbody tr:hover { background:rgba(255,255,255,.02); }.right { text-align:right; }
.auth-main { min-height:100vh; display:grid; place-items:center; padding:48px 24px; }.auth-shell { width:min(540px,100%); }.auth-panel { width:100%; }.auth-panel .mediahub-brand { justify-content:center; text-align:center; margin-bottom:36px; }.auth-panel-card { padding:32px; -webkit-backdrop-filter:blur(24px); backdrop-filter:blur(24px); }.auth-panel-card h1 { text-align:center; font-size:25px; letter-spacing:-.65px; font-weight:600; margin:8px 0; }.auth-panel-card>p { text-align:center; color:var(--muted); font-size:12px; margin:10px auto 28px; max-width:410px; }.auth-panel-card button.full { margin-top:10px; }.auth-footer { text-align:center; font-size:11px; color:var(--muted); margin-top:24px; }
.onboarding-shell { max-width:1320px; padding:0 40px 48px; margin:auto; }.onboarding-header { height:110px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line-soft); }.onboarding-account { display:flex; align-items:center; gap:18px; font-size:12px; color:var(--muted); }.onboarding-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:64px; padding-top:48px; }.onboarding-steps h1 { font-size:27px; font-weight:600; letter-spacing:-.7px; margin:8px 0; }.onboarding-steps>p { color:var(--muted); font-size:12px; margin:0 0 26px; }.onboarding-steps ol { display:grid; gap:7px; list-style:none; margin:0; padding:0; }.onboarding-steps li>a,.onboarding-steps li>span { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid transparent; border-radius:10px; color:var(--muted); }.onboarding-steps li.current>a { color:#fff; border-color:var(--line); background:var(--glass); }.step-number { display:grid; place-items:center; width:29px; height:29px; flex:0 0 auto; border:1px solid var(--line); border-radius:9px; font-size:11px; }.complete .step-number { color:var(--success); }.current .step-number { background:rgba(255,255,255,.1); color:#fff; }.onboarding-steps li strong { display:block; font-size:12px; font-weight:550; }.onboarding-steps li small { display:block; font-size:10px; color:var(--muted); margin-top:2px; }.onboarding-main { min-width:0; max-width:790px; }.wizard-step-head { margin-bottom:24px; }.wizard-step-head h2 { font-size:29px; font-weight:600; letter-spacing:-.8px; margin:7px 0; }.wizard-step-head p { font-size:13px; color:var(--muted); }.wizard-card { padding:26px; }.wizard-card h3 { font-size:16px; font-weight:550; margin:0 0 8px; }.wizard-card>p { color:var(--muted); font-size:12px; }.wizard-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:24px; }.wizard-note,.managed-note { padding:12px 16px; border-left:2px solid #858996; background:rgba(255,255,255,.025); color:var(--muted); font-size:11px; margin:20px 0; }.wizard-note { display:flex; align-items:flex-start; gap:10px; }.wizard-ready { border:1px solid var(--line-soft); border-radius:10px; margin:20px 0; }.wizard-ready-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--line-soft); font-size:12px; }.wizard-ready-row:last-child { border:0; }.wizard-success { text-align:center; padding:28px 12px; }.success-mark { display:grid; place-items:center; width:54px; height:54px; margin:0 auto 18px; color:var(--success); background:rgba(164,217,188,.06); border:1px solid rgba(164,217,188,.3); border-radius:16px; }.wizard-success h3 { font-size:22px; }.wizard-success p { max-width:460px; margin:8px auto 24px; color:var(--muted); }.wizard-inline-error { margin-top:18px; }.finish-existing { text-align:right; margin-top:14px; }.wizard-progress { display:flex; align-items:center; gap:10px; font-size:10px; color:var(--muted); letter-spacing:.08em; }.wizard-progress i { width:60px; height:1px; background:var(--line); }
.advanced-block { border-top:1px solid var(--line-soft); margin-top:24px; padding-top:18px; }.advanced-block summary { cursor:pointer; font-size:12px; color:var(--muted); }.advanced-block[open] summary { color:var(--text); margin-bottom:14px; }
.colour-field { display:grid; grid-template-columns:54px 1fr; gap:10px; }.colour-field input[type=color] { height:44px; padding:5px; cursor:pointer; }.colour-text { font-family:ui-monospace,monospace; }.branding-build-note { display:flex; justify-content:space-between; align-items:center; gap:24px; }.branding-actions { display:flex; flex-wrap:wrap; gap:10px; }.brand-app-preview { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:260px; margin-top:18px; padding:24px; text-align:center; border:1px solid var(--line); border-radius:12px; background:radial-gradient(ellipse at 80% 10%,#666a744d,transparent 70%),linear-gradient(145deg,#33363f,#1c1e24); }.brand-preview-logo { margin-bottom:16px; }.brand-preview-logo img { width:64px; height:64px; object-fit:contain; border-radius:12px; }.brand-app-preview strong { font-size:28px; font-weight:600; letter-spacing:-.8px; }.brand-app-preview span { color:var(--muted); font-size:12px; margin-top:8px; }.brand-app-preview i { height:2px; width:50px; background:var(--brand-accent); margin-top:22px; }.branding-caption { margin-top:14px!important; }
.controls-grid .card { align-self:start; }.control-row { display:flex; justify-content:space-between; align-items:center; gap:22px; padding:17px 0; border-bottom:1px solid var(--line-soft); cursor:pointer; }.control-row:last-of-type { border:0; }.control-row>span:first-child { display:grid; gap:4px; }.control-row strong { font-size:13px; font-weight:550; }.control-row small { color:var(--muted); font-size:11px; }.switch { position:relative; width:40px; height:23px; flex:0 0 auto; }.switch input { position:absolute; opacity:0; }.switch i { position:absolute; inset:0; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.06); transition:background .18s; }.switch i::after { content:""; position:absolute; width:17px; height:17px; top:2px; left:2px; border-radius:50%; background:#818590; transition:transform .18s,background .18s; }.switch input:checked+i { background:#dadde5; border-color:#dadde5; }.switch input:checked+i::after { transform:translateX(17px); background:#353842; }.switch input:focus-visible+i { outline:2px solid white; outline-offset:4px; }.control-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; }.control-footer p { max-width:760px; }.managed-note strong { color:var(--text); font-size:12px; }.provider-editor { padding:18px 0 22px; border-bottom:1px solid var(--line-soft); }.provider-editor:last-of-type { border:0; }
@media(prefers-reduced-motion:no-preference) { .page-head,.dashboard-intro,.auth-panel,.onboarding-main { animation:arrive .24s ease-out both; }@keyframes arrive { from { opacity:.65; transform:translateY(5px); }to { opacity:1; transform:none; } } }
@media(max-width:1200px) { .status-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }.status-tile:nth-child(2) { border-right:0; }.status-tile:nth-child(-n+2) { border-bottom:1px solid var(--line-soft); }.quick-links { grid-template-columns:1fr; }.page-head,.dashboard-intro { align-items:flex-start; flex-direction:column; }.onboarding-layout { gap:32px; grid-template-columns:250px minmax(0,1fr); } }
@media(max-width:1000px) { .span-3,.span-4,.span-5,.span-6,.span-7,.span-8 { grid-column:span 12; }.branding-build-note,.control-footer { align-items:flex-start; flex-direction:column; }.sidebar { inset:14px auto 14px 14px; width:210px; padding:24px 12px 14px; }.main { margin-left:244px; padding-left:0; padding-right:24px; }.onboarding-shell { padding:0 24px 36px; } }
@media(max-width:720px) { .sidebar { position:relative; inset:auto; width:auto; margin:12px; padding:18px 14px 12px; border-radius:16px; overflow:visible; }.sidebar-brand { padding:0 6px 18px; }.sidebar-context { display:none; }.sidebar-nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }.sidebar-nav a { padding:10px; }.sidebar-nav a span { font-size:11px; }.sidebar-footer { margin-top:16px; display:flex; justify-content:space-between; gap:14px; }.main { margin:0; padding:0 20px 32px; }.topbar { height:64px; margin-bottom:28px; }.topbar-meta>span:first-child,.topbar-dot { display:none; }.card { padding:20px; }.form-row { grid-template-columns:1fr; gap:0; }.status-tile { padding:16px; }.status-tile strong { font-size:15px; }.status-tile-top { align-items:flex-start; flex-direction:column; }.auth-panel-card { padding:26px 22px; }.auth-main { padding:28px 16px; }.onboarding-header { height:92px; }.onboarding-account span { display:none; }.onboarding-layout { display:block; padding-top:28px; }.onboarding-steps { padding-bottom:24px; }.onboarding-steps>p { margin-bottom:18px; }.onboarding-steps ol { grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; }.onboarding-steps li>a,.onboarding-steps li>span { padding:10px 2px; display:grid; justify-items:center; text-align:center; gap:8px; }.onboarding-steps li strong { font-size:9px; }.onboarding-steps li small { display:none; }.wizard-card { padding:22px; }.status-row { gap:12px; }.wizard-footer { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
@supports not (backdrop-filter:blur(1px)) { .sidebar,.auth-panel-card { background:#292b32; } }
.asset-preview { margin-top:16px; border:1px solid var(--line-soft); padding:16px; border-radius:10px; background:rgba(0,0,0,.08); }
.asset-preview img { display:block; max-width:100%; height:auto; }.icon-preview img { width:96px; }.banner-preview img { width:320px; }
