:root {
  --bg: #0e0d12;
  --surface: #17151d;
  --surface-2: #211e29;
  --paper: #f7f5f9;
  --ink: #17141d;
  --muted: #8f8997;
  --line: rgba(255,255,255,.1);
  --violet: #8b5cf6;
  --pink: #ec6ab7;
  --green: #73d99b;
  --amber: #f6c85f;
  --red: #ff7f7f;
  --radius: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #f7f5f9; background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.muted { color: var(--muted); line-height: 1.65; }
.kicker { margin: 0 0 10px; color: #ad87ff; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.topbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 10px max(24px, calc((100vw - 1280px) / 2)); border-bottom: 1px solid var(--line); background: rgba(14,13,18,.86); backdrop-filter: blur(20px); }
.spaces-brand { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.spaces-brand img { width: 104px; height: 38px; object-fit: contain; }
.spaces-brand span { margin-top: 7px; color: #ad87ff; font-size: 14px; font-weight: 750; }
.topbar-user { display: flex; align-items: center; gap: 22px; text-align: right; }
.topbar-user > span { display: grid; font-weight: 700; }
.topbar-user small { color: var(--muted); font-weight: 500; }
.ghost-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 15px; color: #eeeaf2; border: 1px solid var(--line); border-radius: 12px; background: transparent; text-decoration: none; cursor: pointer; }
.ghost-button:hover { border-color: rgba(255,255,255,.3); }

.flash-stack { position: fixed; z-index: 80; top: 88px; right: 24px; display: grid; gap: 10px; width: min(540px, calc(100vw - 48px)); }
.flash { padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; color: white; background: #27232f; box-shadow: 0 20px 60px rgba(0,0,0,.35); line-height: 1.45; }
.flash-success { border-color: rgba(115,217,155,.35); }
.flash-error { border-color: rgba(255,127,127,.45); }
.flash-key { color: #19131f; border-color: #d8bdff; background: #eadcff; font-weight: 700; overflow-wrap: anywhere; }

.login-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); min-height: calc(100svh - 134px); }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(48px, 8vw, 130px); background: radial-gradient(circle at 78% 30%, rgba(139,92,246,.28), transparent 28%), radial-gradient(circle at 25% 75%, rgba(236,106,183,.17), transparent 28%); }
.login-story::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.login-story > * { position: relative; z-index: 1; }
.login-story h1 { margin: 4px 0 26px; font-size: clamp(58px, 7vw, 110px); font-weight: 560; line-height: .88; letter-spacing: -.07em; }
.login-story h1 span { color: transparent; background: linear-gradient(90deg, #a778ff, #ec6ab7 42%, #ff9b63 70%, #d4dd75); background-clip: text; -webkit-background-clip: text; }
.login-story > p:not(.kicker) { max-width: 580px; color: #aaa4b2; font-size: 19px; line-height: 1.6; }
.login-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.login-points div { display: grid; gap: 30px; padding-top: 14px; border-top: 1px solid var(--line); }
.login-points b { color: #ad87ff; font-size: 12px; }
.login-points span { color: #c8c3cd; font-size: 14px; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 110px); border-left: 1px solid var(--line); background: #131117; }
.login-card h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); font-weight: 580; letter-spacing: -.045em; }
.signal-mark { display: flex; align-items: end; gap: 6px; height: 38px; margin-bottom: 42px; }
.signal-mark i { width: 7px; border-radius: 6px; background: linear-gradient(#a778ff, #ec6ab7); }
.signal-mark i:nth-child(1) { height: 14px; }.signal-mark i:nth-child(2) { height: 25px; }.signal-mark i:nth-child(3) { height: 38px; }

.stack-form { display: grid; gap: 12px; }
.login-card .stack-form { margin-top: 28px; }
label { color: #c8c3cd; font-size: 13px; font-weight: 700; }
.policy-acceptance { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 6px 0; color: #918a98; font-size: 11px; font-weight: 500; line-height: 1.5; }
.policy-acceptance input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--violet); }
.policy-acceptance a, .spaces-footer a { color: #b892ff; }
.optional-label { margin-left: 5px; color: var(--muted); font-size: 10px; font-weight: 500; text-transform: uppercase; }
input, textarea { width: 100%; color: white; border: 1px solid var(--line); border-radius: 13px; outline: none; background: #1b1821; }
input { min-height: 50px; padding: 0 15px; }
textarea { padding: 15px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.14); }
.key-input { position: relative; }
.key-input input { padding-right: 76px; text-transform: uppercase; letter-spacing: .08em; }
.key-input button { position: absolute; right: 8px; top: 8px; height: 34px; color: #b6afbe; border: 0; background: transparent; cursor: pointer; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 52px; padding: 0 18px; color: white; border: 0; border-radius: 14px; background: linear-gradient(110deg, #7c3aed, #a755e1); font-weight: 760; cursor: pointer; text-decoration: none; }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button.small { min-height: 44px; gap: 12px; }
.help-text { margin: 18px 0 0; color: #77717f; font-size: 12px; line-height: 1.5; }
.help-text a { color: #b892ff; }

.dashboard-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 100px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.welcome-row h1 { margin: 0 0 12px; font-size: clamp(45px, 6vw, 76px); font-weight: 570; letter-spacing: -.055em; line-height: .95; }
.welcome-row > div > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.space-chip { display: grid; grid-template-columns: auto 1fr; min-width: 220px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.space-chip .live-dot { grid-row: span 2; align-self: center; width: 9px; height: 9px; margin-right: 13px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(115,217,155,.1); }
.space-chip small { color: var(--muted); }.space-chip b { font-size: 15px; }
.admin-badge { padding: 10px 15px; color: #d9c7ff; border: 1px solid rgba(174,135,255,.28); border-radius: 99px; background: rgba(139,92,246,.1); font-size: 12px; font-weight: 750; }
.tab-nav { position: sticky; z-index: 20; top: 73px; display: flex; gap: 5px; margin-bottom: 20px; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: rgba(23,21,29,.9); backdrop-filter: blur(18px); overflow-x: auto; }
.tab-nav a { padding: 10px 16px; color: #aaa4b2; border-radius: 10px; text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 680; }
.tab-nav a:hover { color: white; background: var(--surface-2); }
.panel { margin-top: 20px; padding: clamp(24px, 4vw, 46px); scroll-margin-top: 148px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.panel-heading h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 48px); font-weight: 580; letter-spacing: -.045em; }
.panel-heading p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.count-pill { padding: 8px 12px; color: #aaa4b2; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; font-size: 12px; }
.identity-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 42px; }
.image-preview { position: relative; overflow: hidden; min-height: 430px; border-radius: 22px; background: #211e29; }
.image-preview > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.preview-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #77717f; background: radial-gradient(circle, rgba(139,92,246,.15), transparent 42%), #211e29; }
.preview-placeholder span { color: #9c70fa; font-size: 32px; }.preview-placeholder b { color: #bdb7c5; }.preview-placeholder small { font-size: 11px; }
.preview-overlay { position: absolute; inset: auto 0 0; display: grid; padding: 80px 28px 26px; background: linear-gradient(transparent, rgba(10,9,13,.9)); }
.preview-overlay small { color: #c4a9ff; font-weight: 800; letter-spacing: .16em; }.preview-overlay b { margin: 5px 0; font-size: 30px; }.preview-overlay span { color: #bbb4c2; }
.upload-form { align-content: center; }
.form-callout { padding: 20px; border-left: 2px solid var(--violet); border-radius: 0 12px 12px 0; background: rgba(139,92,246,.08); }
.form-callout p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; padding: 20px; border: 1px dashed rgba(255,255,255,.23); border-radius: 15px; background: rgba(255,255,255,.02); text-align: center; cursor: pointer; }
.file-drop:hover, .file-drop.dragging { border-color: var(--violet); background: rgba(139,92,246,.06); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop span { margin-bottom: 7px; color: #ddd8e2; }.file-drop small { color: var(--muted); font-weight: 450; }
.file-drop.compact { min-height: 100px; }

.photon-builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 54px; align-items: center; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.date-grid div { display: grid; gap: 8px; }
.character-count { float: right; color: var(--muted); font-weight: 500; }
.duration-line { display: flex; justify-content: space-between; padding: 14px 0; color: var(--muted); border-top: 1px solid var(--line); }
.duration-line b { color: #d7c3ff; }
.phone-preview { overflow: hidden; min-height: 570px; color: var(--ink); border: 9px solid #070609; border-radius: 38px; background: #f8f6fa; box-shadow: 0 28px 60px rgba(0,0,0,.38); }
.phone-preview-head { height: 68px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 18px 13px; border-bottom: 1px solid #e7e2ea; font-size: 12px; font-weight: 800; }
.phone-preview-head i { width: 8px; height: 8px; border-radius: 50%; background: #79d999; }
.photon-image { position: relative; width: 100%; aspect-ratio: 8 / 5; overflow: hidden; background: #e8e3ec; }
.photon-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.photon-image .preview-placeholder { color: #81798a; background: radial-gradient(circle, rgba(139,92,246,.12), transparent 42%), #eeeaf1; }
.photon-preview-copy { padding: 20px; }
.photon-preview-copy small { color: #7c3aed; font-weight: 800; letter-spacing: .1em; }.photon-preview-copy p { min-height: 48px; margin: 12px 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }.photon-preview-copy span { color: #827b89; font-size: 11px; }

.content-list { display: grid; }
.content-row { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.content-row img { width: 94px; height: 94px; border-radius: 14px; object-fit: cover; }
.content-main { min-width: 0; }
.content-main > div { display: flex; align-items: center; gap: 10px; }.content-main small, .content-main > span { color: var(--muted); font-size: 12px; }.content-main p { margin: 10px 0 8px; color: #e3dfe7; line-height: 1.45; overflow-wrap: anywhere; }.content-main em { display: block; margin-top: 7px; color: #cfb9ff; font-size: 12px; font-style: normal; }
.status { display: inline-flex; padding: 6px 9px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status-pending { color: #f7ce79; background: rgba(246,200,95,.12); }.status-approved, .status-active { color: #89e3ab; background: rgba(115,217,155,.12); }.status-rejected, .status-cancelled { color: #ff9e9e; background: rgba(255,127,127,.12); }.status-scheduled { color: #c3a8ff; background: rgba(139,92,246,.14); }.status-expired, .status-superseded { color: #9a94a1; background: rgba(154,148,161,.12); }
.text-button { padding: 7px 3px; color: #bfa5f8; border: 0; background: transparent; font-weight: 700; cursor: pointer; }.text-button.danger { color: #f28b8b; }
.empty-state { display: grid; place-items: center; min-height: 260px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 18px; }.empty-state span { color: #a780fb; font-size: 34px; }.empty-state h3 { margin: 8px 0 -4px; color: #d4cfd9; }.empty-state p { margin-top: -16px; }.compact-empty { min-height: 180px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }.stats-grid article { display: flex; flex-direction: column-reverse; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.stats-grid span { color: var(--muted); font-size: 12px; }.stats-grid b { font-size: 38px; font-weight: 580; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); }.review-card > img { width: 100%; height: 260px; object-fit: cover; }.review-body { padding: 22px; }.review-body > small { color: #b994ff; font-weight: 750; letter-spacing: .1em; }.review-body h3 { margin: 9px 0; font-size: 20px; line-height: 1.35; }.review-body > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.review-form { display: grid; gap: 10px; margin-top: 18px; }.review-form input { min-height: 42px; }.review-form div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.approve-button, .reject-button { min-height: 42px; border: 0; border-radius: 11px; font-weight: 750; cursor: pointer; }.approve-button { color: #10251a; background: var(--green); }.reject-button { color: #341516; background: #f59595; }
.table-wrap { width: 100%; overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th, td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }th { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }td b, td small { display: block; }td small { margin-top: 5px; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.media-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }.media-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }.media-grid article > div { display: grid; gap: 7px; padding: 13px; }.media-grid .status { justify-self: start; }.media-grid small { color: var(--muted); }

.modal { width: min(520px, calc(100% - 30px)); padding: 0; color: white; border: 1px solid var(--line); border-radius: 22px; background: #1c1922; box-shadow: 0 30px 100px rgba(0,0,0,.6); }.modal::backdrop { background: rgba(5,4,7,.75); backdrop-filter: blur(5px); }.modal form { padding: 28px; }.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }.modal-head h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }.modal-head button { width: 38px; height: 38px; color: #aaa4b2; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.spaces-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px max(24px, calc((100vw - 1280px) / 2)); color: #625d68; border-top: 1px solid var(--line); font-size: 11px; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }.login-story { min-height: 62svh; }.login-card { min-height: 620px; border-left: 0; border-top: 1px solid var(--line); }
  .identity-grid, .photon-builder { grid-template-columns: 1fr; }.phone-preview { width: min(360px, 100%); margin: 0 auto; }.stats-grid { grid-template-columns: repeat(2, 1fr); }.media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .topbar { padding-inline: 14px; }.spaces-brand img { width: 88px; }.topbar-user > span { display: none; }.dashboard-shell { width: calc(100% - 24px); padding-top: 44px; }.welcome-row { align-items: start; flex-direction: column; }.space-chip { width: 100%; }.panel { padding: 22px 16px; border-radius: 19px; }.panel-heading { align-items: flex-start; flex-direction: column; }.identity-grid { gap: 26px; }.image-preview { min-height: 330px; }.date-grid { grid-template-columns: 1fr; }.content-row { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }.content-row img { width: 68px; height: 68px; }.content-row > form { grid-column: 2; }.content-main > div { flex-wrap: wrap; }.review-grid, .stats-grid { grid-template-columns: 1fr; }.media-grid { grid-template-columns: 1fr 1fr; }.login-story, .login-card { padding: 54px 24px; }.login-points { grid-template-columns: 1fr; gap: 12px; }.login-points div { grid-template-columns: 35px 1fr; gap: 10px; }.login-story h1 { font-size: 60px; }.spaces-footer { display: grid; }.flash-stack { right: 12px; width: calc(100vw - 24px); }
}

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