:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #171824;
  --muted: #747687;
  --line: #e8e9f0;
  --purple: #7657e8;
  --purple-dark: #6344d4;
  --purple-soft: #eee9ff;
  --green: #28a879;
  --red: #e65163;
  --shadow: 0 10px 35px rgba(35, 32, 71, .07);
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 248px; padding: 26px 18px 18px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 24px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#8d70f0,#5a39cc); border-radius: 11px 11px 11px 4px; box-shadow: 0 7px 17px rgba(118,87,232,.28); }
.new-project { border: 0; border-radius: 12px; color: #fff; background: var(--purple); padding: 12px 14px; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; box-shadow: 0 8px 20px rgba(118,87,232,.24); transition: .2s; }
.new-project:hover, .primary:hover, .generate:hover { background: var(--purple-dark); transform: translateY(-1px); }
.nav-list { margin-top: 26px; display: grid; gap: 5px; }
.nav-item { position: relative; width: 100%; border: 0; background: transparent; color: #666979; border-radius: 11px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 600; }
.nav-item:hover { background: #f7f6fc; color: var(--ink); }
.nav-item.active { color: var(--purple); background: var(--purple-soft); }
.nav-icon { width: 19px; text-align: center; font-size: 17px; }
.nav-count { margin-left: auto; min-width: 21px; height: 21px; border-radius: 20px; background: #fff; display: grid; place-items: center; font-size: 11px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 8px; }
.usage-card { padding: 14px; border-radius: 13px; background: #f7f6fb; margin-bottom: 3px; }
.usage-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }.usage-top strong { color: var(--ink); }
.progress { height: 5px; margin: 10px 0 8px; background: #e2dfef; overflow: hidden; border-radius: 9px; }.progress span { height: 100%; display: block; background: var(--purple); border-radius: inherit; }
.usage-card small { color: #999aaa; font-size: 10px; }
.profile-row { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 16px 5px 0; margin-top: 5px; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg,#272938,#777a8e); border-radius: 50%; font-size: 11px; font-weight: 800; }
.profile-row strong,.profile-row small { display: block; font-size: 11px; }.profile-row small { color: var(--muted); margin-top: 2px; }.profile-row button { border: 0; background: none; color: var(--muted); }
.main { min-height: 100vh; margin-left: 248px; }
.topbar { height: 67px; padding: 0 32px; background: rgba(255,255,255,.86); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(15px); }
.breadcrumb { font-size: 13px; font-weight: 700; }.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #555767; }.dot { position:absolute; width:6px; height:6px; background:#eb5d6f; border-radius:50%; right:7px; top:7px; border:1px solid white; }
.upgrade { border: 0; background: #262735; color: white; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 12px; }
.menu-button { display: none; border: 0; background: transparent; font-size: 20px; }
.page { display: none; padding: 34px 40px 54px; max-width: 1480px; margin: auto; animation: fade .28s ease; }.page.active { display: block; }
@keyframes fade { from { opacity:0; transform:translateY(5px) } to { opacity:1; transform:none } }
h1,h2,h3,p { margin-top: 0; } h1 { letter-spacing: -1.3px; }
.welcome,.page-title,.studio-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.welcome h1,.page-title h1,.studio-header h1 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 7px; }.welcome h1 span { font-size: .78em; }.welcome p,.page-title p,.studio-header p { color: var(--muted); margin-bottom: 0; font-size: 14px; }
.eyebrow { color: var(--purple) !important; font-size: 10px !important; letter-spacing: 1.6px; font-weight: 800; margin-bottom: 8px !important; }
.primary,.secondary,.generate { border: 0; border-radius: 11px; padding: 12px 16px; font-weight: 700; transition: .2s; }.primary,.generate { color:#fff; background:var(--purple); }.secondary { color:#4c4e5c; background:#fff; border:1px solid var(--line); }.secondary:hover { border-color:#bdb3ea; color:var(--purple); }.full { width: 100%; padding: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 15px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 3px 14px rgba(30,29,54,.025); }
.stat-icon { flex:0 0 auto; width: 43px; height: 43px; display:grid; place-items:center; border-radius:12px; font-size:18px; }.lavender{background:#eee9ff;color:#7355df}.mint{background:#e3f7f0;color:#229a6f}.peach{background:#fff0e4;color:#e8893f}.blue{background:#e8f1ff;color:#4a7ed5}
.stat-card span,.stat-card strong,.stat-card small { display:block; }.stat-card span { color:var(--muted); font-size:11px; margin-bottom:3px; }.stat-card strong { font-size:24px; letter-spacing:-.5px; }.stat-card small { margin-top:3px; font-size:9px; color:#989aa8; }.stat-card small.up { color:var(--green); font-weight:700; }.stat-card small em { color:#989aa8; font-style:normal; font-weight:400; }
.panel { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 3px 16px rgba(30,29,54,.025); }
.home-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(330px,.8fr); gap:15px; margin-bottom:15px; }.quick-create,.schedule-panel,.recent-panel { padding:23px; }
.panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }.panel-heading h2 { font-size:15px; margin-bottom:4px; }.panel-heading p { color:var(--muted); font-size:11px; margin-bottom:0; }
.ai-pill,.success-pill { color:var(--purple); background:var(--purple-soft); border-radius:99px; padding:6px 9px; font-size:8px; font-weight:800; letter-spacing:.7px; white-space:nowrap; }
.idea-box { border:1px solid #d9d6e7; border-radius:12px; overflow:hidden; transition:.2s; }.idea-box:focus-within { border-color:var(--purple); box-shadow:0 0 0 3px var(--purple-soft); }.idea-box textarea { display:block; width:100%; height:85px; padding:15px; border:0; outline:0; resize:none; font-size:13px; }.idea-bottom { display:flex; justify-content:space-between; padding:0 14px 10px; color:#a2a3ad; font-size:9px; }.idea-bottom b { border:1px solid var(--line); border-radius:4px; padding:1px 3px; }
.suggestions { display:flex; align-items:center; gap:7px; margin:12px 0 17px; overflow:auto; padding-bottom:2px; }.suggestions span { color:#999aa7; font-size:9px; white-space:nowrap; }.suggestions button { white-space:nowrap; border:1px solid var(--line); border-radius:8px; background:#fafafe; padding:7px 9px; font-size:9px; color:#666876; }.suggestions button:hover { border-color:#bdb3ea; }
.platform-pick { display:flex; align-items:center; gap:13px; border-top:1px solid var(--line); padding-top:16px; }.platform-pick>span { color:var(--muted); font-size:10px; }.platform-pick label { display:flex; align-items:center; gap:5px; font-size:10px; font-weight:600; }.platform-pick input { accent-color:var(--purple); }.platform-logo { width:20px; height:20px; border-radius:6px; display:grid; place-items:center; color:#fff; font-size:10px; font-style:normal; }.platform-logo.tiktok,.account-logo.tiktok { background:#161720; }.platform-logo.youtube,.account-logo.youtube { background:#ef3b45; }.platform-logo.instagram,.account-logo.instagram { background:linear-gradient(140deg,#f4b649,#df3d8d 52%,#7149d5); }.generate { margin-left:auto; font-size:10px; padding:10px 13px; }.generate span { margin-left:6px; }
.text-button { border:0; background:none; color:var(--purple); font-size:10px; font-weight:700; }
.schedule-list { display:grid; gap:10px; }.schedule-item { display:grid; grid-template-columns:43px 1fr auto; align-items:center; gap:10px; padding:10px; border-radius:11px; background:#fafafe; }.schedule-thumb { width:43px; height:43px; border-radius:9px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,#242642,#8f68ed); font-size:15px; }.schedule-meta strong,.schedule-meta small { display:block; }.schedule-meta strong { font-size:10px; margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:190px; }.schedule-meta small { color:var(--muted); font-size:8px; }.schedule-platform { width:24px; height:24px; display:grid; place-items:center; border-radius:7px; color:#fff; font-size:10px; }
.content-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; }.mini-content { display:grid; grid-template-columns:70px 1fr; gap:12px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:12px; }.mini-thumb,.library-thumb { position:relative; overflow:hidden; color:#fff; background:linear-gradient(150deg,#1d1f39,#825fe3); }.mini-thumb { height:70px; border-radius:9px; }.mini-thumb:after,.library-thumb:after { content:""; position:absolute; width:70px; height:70px; border-radius:50%; background:rgba(255,255,255,.12); top:-20px; right:-20px; }.mini-thumb span { position:absolute; left:8px; bottom:8px; font-size:8px; font-weight:800; z-index:1; }.mini-copy strong,.mini-copy small { display:block; }.mini-copy strong { font-size:11px; line-height:1.35; margin-bottom:7px; }.mini-copy small { color:var(--muted); font-size:9px; }
.studio-header { align-items:center; }.studio-header>div:first-child { max-width:700px; }.studio-header h1 { max-width:650px; }.step-indicator { display:flex; align-items:center; gap:4px; }.step-indicator span { color:#9697a6; background:#fff; border:1px solid var(--line); padding:7px 10px; font-size:9px; font-weight:700; }.step-indicator span:first-child{border-radius:8px 0 0 8px}.step-indicator span:last-child{border-radius:0 8px 8px 0}.step-indicator span.active{color:var(--purple);background:var(--purple-soft);border-color:#d8cffb}
.studio-grid { display:grid; grid-template-columns:minmax(360px,.8fr) minmax(420px,1.15fr) 280px; gap:15px; align-items:start; }.builder-panel,.result-panel { padding:24px; min-height:600px; }
.form-group { display:grid; gap:8px; margin-bottom:19px; }.form-group label { font-size:11px; font-weight:700; }.form-group textarea,.form-group input,.form-group select,.result-tab textarea { width:100%; border:1px solid #dedee7; background:#fff; border-radius:10px; padding:12px; color:var(--ink); outline:none; resize:vertical; font-size:12px; }.form-group textarea:focus,.form-group input:focus,.form-group select:focus,.result-tab textarea:focus { border-color:var(--purple); box-shadow:0 0 0 3px var(--purple-soft); }.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.prompt-chips { display:flex; flex-wrap:wrap; gap:6px; }.prompt-chips button { border:1px solid var(--line); background:#fafafe; color:#777987; font-size:8px; padding:6px 8px; border-radius:7px; }.segmented,.platform-toggle { display:flex; gap:5px; }.segmented button,.platform-toggle button { flex:1; border:1px solid var(--line); background:#fff; border-radius:8px; padding:9px 5px; font-size:9px; color:#717380; }.segmented button.active,.platform-toggle button.active { border-color:#b9a9f3; background:var(--purple-soft); color:var(--purple); font-weight:700; }.privacy-note { color:#999baa; font-size:9px; text-align:center; margin:12px 0 0; }
.result-panel.empty { display:grid; place-items:center; }.empty-result { text-align:center; max-width:260px; }.magic-orb { width:62px; height:62px; margin:0 auto 18px; border-radius:20px; display:grid; place-items:center; font-size:24px; color:var(--purple); background:linear-gradient(145deg,#f4f0ff,#e5dcff); box-shadow:0 12px 32px rgba(118,87,232,.18); }.empty-result h2 { font-size:17px; margin-bottom:8px; }.empty-result p { color:var(--muted); font-size:11px; line-height:1.6; }
.result-content { width:100%; }.result-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:17px; }.result-head h2 { margin:9px 0 0; font-size:19px; }.success-pill { color:var(--green); background:#e5f7f0; }.result-tabs { display:flex; border-bottom:1px solid var(--line); margin-bottom:17px; }.result-tabs button { border:0; background:none; padding:9px 14px; color:#8c8e9b; font-size:10px; font-weight:700; border-bottom:2px solid transparent; }.result-tabs button.active { color:var(--purple); border-color:var(--purple); }.result-tab { display:none; }.result-tab.active { display:block; }.hook-card { padding:14px; background:linear-gradient(135deg,#f6f2ff,#f0ecff); border:1px solid #ddd4fc; border-radius:12px; margin-bottom:12px; }.hook-card span { color:var(--purple); font-size:8px; font-weight:800; letter-spacing:.8px; }.hook-card p { margin:7px 0 0; font-size:13px; line-height:1.5; font-weight:700; outline:none; }.script-scenes { display:grid; gap:9px; }.scene-row { display:grid; grid-template-columns:35px 1fr; gap:10px; padding:10px; border:1px solid var(--line); border-radius:10px; }.scene-time { color:var(--purple); font-size:8px; font-weight:800; }.scene-row p { margin:0; color:#555765; font-size:11px; line-height:1.55; outline:none; }.hashtags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }.hashtags span { padding:6px 8px; border-radius:7px; color:var(--purple); background:var(--purple-soft); font-size:9px; }.shot-list { display:grid; gap:9px; }.shot-item { display:grid; grid-template-columns:26px 1fr; gap:9px; align-items:start; padding:11px; border:1px solid var(--line); border-radius:10px; }.shot-item span { width:26px;height:26px;border-radius:7px;display:grid;place-items:center;background:#262735;color:#fff;font-size:9px;font-weight:800}.shot-item strong,.shot-item small{display:block}.shot-item strong{font-size:10px;margin-bottom:3px}.shot-item small{font-size:9px;color:var(--muted);line-height:1.4}.result-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }.result-actions button { font-size:10px; }
.phone-wrap { position:sticky; top:95px; text-align:center; }.phone-wrap>p { color:#a0a1ad; font-size:9px; margin-top:12px; }.phone { width:244px; height:500px; padding:8px; margin:auto; border-radius:34px; background:#11121a; box-shadow:0 22px 55px rgba(26,25,41,.25); }.phone-top { height:24px; padding:4px 11px; color:#fff; font-size:8px; display:flex; justify-content:space-between; }.preview-visual { position:relative; height:438px; border-radius:25px; overflow:hidden; color:#fff; background:radial-gradient(circle at 20% 20%,#895ee5,transparent 32%),linear-gradient(155deg,#171a32 15%,#4f367e 60%,#c17569); text-align:left; padding:50px 18px 16px; }.preview-glow{position:absolute;border-radius:50%;filter:blur(5px);opacity:.45}.preview-glow.one{width:140px;height:140px;background:#ff9d73;right:-60px;top:110px}.preview-glow.two{width:100px;height:100px;background:#7657e8;left:-35px;bottom:45px}.preview-tag { position:relative; z-index:1; display:inline-block; color:#2a1c4f; background:#f1eaff; border-radius:99px; padding:6px 9px; font-size:7px; font-weight:900; letter-spacing:.7px; }.preview-visual h3 { position:relative; z-index:1; margin-top:14px; font-size:25px; line-height:1.04; letter-spacing:-1px; max-width:175px; }.preview-author { position:absolute; z-index:1; left:15px; bottom:48px; display:flex; align-items:center; gap:7px; }.preview-author>span { width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#2f2746;font-size:7px;font-weight:800}.preview-author strong,.preview-author small { display:block;font-size:8px}.preview-author small{font-size:6px;opacity:.75;margin-top:2px}.social-stack { position:absolute; z-index:1; right:9px; bottom:68px; display:grid; place-items:center; gap:2px; }.social-stack b { font-size:18px; margin-top:9px; }.social-stack small { font-size:6px; }.caption-preview { position:absolute; z-index:1; left:15px; right:15px; bottom:16px; font-size:7px; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.phone-bar { width:70px;height:3px;border-radius:5px;background:#fff;margin:8px auto;opacity:.8; }
.toolbar { display:flex; justify-content:space-between; gap:15px; margin-bottom:20px; }.search-box { display:flex; align-items:center; gap:8px; width:280px; padding:0 12px; border:1px solid var(--line); background:#fff; border-radius:11px; color:#999baa; }.search-box input { width:100%; border:0; outline:0; padding:11px 0; font-size:11px; }.filter-tabs { display:flex; gap:5px; }.filter-tabs button { border:1px solid var(--line); background:#fff; color:#7a7c89; padding:9px 12px; border-radius:9px; font-size:9px; }.filter-tabs button.active { color:var(--purple); background:var(--purple-soft); border-color:#d7cdfa; font-weight:700; }
.library-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; }.library-card { overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:15px; transition:.2s; }.library-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }.library-thumb { height:220px; padding:17px; display:flex; align-items:flex-end; }.library-thumb h3 { position:relative; z-index:1; width:80%; font-size:19px; letter-spacing:-.5px; line-height:1.05; margin:0; }.library-status { position:absolute; z-index:2; top:12px; left:12px; border-radius:7px; padding:5px 7px; background:rgba(22,23,32,.65); backdrop-filter:blur(8px); color:#fff; font-size:7px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; }.library-copy { padding:14px; }.library-copy strong { display:block; font-size:11px; margin-bottom:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.library-footer { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:8px; }.library-footer button { border:0;background:none;font-size:16px;color:#747685; }
.calendar-layout { display:grid; grid-template-columns:minmax(600px,1.5fr) minmax(280px,.55fr); gap:15px; }.calendar-panel,.day-agenda { padding:23px; }.calendar-head { display:flex; justify-content:center; align-items:center; gap:18px; margin-bottom:20px; }.calendar-head h2 { min-width:170px; text-align:center; font-size:16px; margin:0; }.calendar-head button { width:30px;height:30px;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:18px}.calendar-week,.calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); }.calendar-week span { text-align:center; color:#999ba8; font-size:8px; font-weight:700; padding:8px; }.calendar-day { min-height:92px; border-top:1px solid var(--line); border-right:1px solid var(--line); padding:8px; font-size:9px; }.calendar-day:nth-child(7n) { border-right:0; }.calendar-day.muted { color:#c2c3ca; background:#fcfcfe; }.calendar-day.today .day-number { background:var(--purple);color:#fff}.day-number { width:23px;height:23px;border-radius:7px;display:grid;place-items:center;margin-bottom:5px}.calendar-event { display:block; width:100%; border:0; border-radius:5px; padding:5px; color:#5b43b8; background:#eee9ff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:left; font-size:7px; margin-top:3px; }.agenda-date { color:var(--purple);font-size:9px;font-weight:800;text-transform:uppercase}.day-agenda h2{font-size:18px;margin:6px 0 17px}.agenda-card { display:flex; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); }.agenda-time { color:var(--purple);font-size:9px;font-weight:800;width:38px}.agenda-card strong,.agenda-card small{display:block}.agenda-card strong{font-size:10px;margin-bottom:4px}.agenda-card small{color:var(--muted);font-size:8px}.best-time { margin-top:22px;padding:15px;border-radius:12px;background:linear-gradient(145deg,#f6f2ff,#eee8ff); }.best-time span { color:var(--purple);font-size:7px;font-weight:900;letter-spacing:.8px}.best-time strong{display:block;font-size:11px;margin:8px 0 4px}.best-time p{color:var(--muted);font-size:9px;line-height:1.45;margin:0}
.notice { display:flex; gap:12px; padding:15px 17px; margin-bottom:18px; border:1px solid #d8d0f4; border-radius:13px; background:#f5f2ff; }.notice>div:first-child{color:var(--purple)}.notice strong{font-size:11px}.notice p{font-size:10px;color:#706d7c;margin:4px 0 0}.account-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; margin-bottom:18px; }.account-card { display:grid; grid-template-columns:48px 1fr; gap:13px; padding:20px; border:1px solid var(--line); background:#fff; border-radius:15px; }.account-logo { width:48px;height:48px;border-radius:14px;display:grid;place-items:center;color:#fff;font-size:18px}.account-info h2{font-size:14px;margin:2px 0}.account-info p{color:var(--muted);font-size:9px;margin:0 0 7px}.status{display:inline-flex;align-items:center;gap:5px;color:#a07423;background:#fff5dc;border-radius:99px;padding:4px 7px;font-size:7px;font-weight:800}.status.configured{color:var(--green);background:#e4f7f0}.account-card>.connect-button{grid-column:1/-1;width:100%;font-size:10px;padding:10px}.setup-guide { padding:24px; display:grid; grid-template-columns:.6fr 1.4fr; gap:40px; }.setup-guide h2{font-size:19px}.setup-guide ol{list-style:none;padding:0;margin:0;display:grid;gap:15px}.setup-guide li{display:grid;grid-template-columns:30px 1fr;gap:11px}.setup-guide li>span{width:30px;height:30px;border-radius:9px;background:var(--purple-soft);color:var(--purple);display:grid;place-items:center;font-size:10px;font-weight:800}.setup-guide strong{font-size:11px}.setup-guide p{color:var(--muted);font-size:9px;margin:4px 0 0;line-height:1.5}.setup-guide code{background:#f1f1f5;padding:2px 4px;border-radius:4px}
.settings-panel { padding:24px; max-width:760px; }.settings-panel h2 { font-size:16px;padding-bottom:16px;border-bottom:1px solid var(--line);margin:0}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:18px 0;border-bottom:1px solid var(--line)}.setting-row strong,.setting-row small{display:block}.setting-row strong{font-size:11px}.setting-row small{font-size:9px;color:var(--muted);margin-top:4px}.setting-row select{min-width:240px;border:1px solid var(--line);border-radius:9px;padding:9px;font-size:10px}.switch{width:36px;height:20px;accent-color:var(--purple)}
.modal-backdrop { position:fixed;inset:0;z-index:50;background:rgba(18,18,29,.42);display:grid;place-items:center;padding:20px;backdrop-filter:blur(4px)}.modal-backdrop[hidden]{display:none}.modal{position:relative;width:min(520px,100%);padding:27px;background:#fff;border-radius:18px;box-shadow:0 25px 80px rgba(20,18,41,.25)}.modal h2{font-size:21px;margin-bottom:6px}.modal>p{color:var(--muted);font-size:10px;margin-bottom:20px}.modal-close{position:absolute;right:15px;top:13px;border:0;background:none;color:#80818c;font-size:22px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}.modal-actions button{font-size:10px}
.guide-modal{width:min(700px,100%);max-height:calc(100vh - 40px);overflow:auto}.guide-status{padding:10px 12px;margin:-7px 0 17px;border-radius:9px;font-size:9px;font-weight:700}.guide-status.pending{color:#8b6423;background:#fff6df}.guide-status.detected{color:#6b50c5;background:#f0ebff}.guide-status.ready{color:#1c805c;background:#e4f7f0}.integration-steps{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:9px}.integration-steps li{display:grid;grid-template-columns:26px 1fr;align-items:center;gap:10px}.integration-steps span{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:var(--purple);background:var(--purple-soft);font-size:9px;font-weight:800}.integration-steps p{margin:0;font-size:10px;line-height:1.5}.guide-config{display:grid;gap:8px;margin-bottom:13px}.guide-config>strong{font-size:9px}.guide-config pre{margin:0;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#f7f7fa;white-space:pre-wrap;font-size:9px;line-height:1.6}.callback-copy{display:flex;align-items:center;gap:8px}.callback-copy code{flex:1;overflow:auto;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#f7f7fa;font-size:9px;white-space:nowrap}.callback-copy button{padding:9px 11px}.link-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:10px;padding:9px 12px}
.toast { position:fixed; right:22px; bottom:22px; z-index:80; max-width:360px; padding:13px 16px; color:#fff; background:#252633; border-radius:11px; font-size:10px; line-height:1.45; box-shadow:0 14px 35px rgba(20,20,30,.25); transform:translateY(20px); opacity:0; pointer-events:none; transition:.25s; }.toast.show{transform:none;opacity:1}.toast.error{background:#9e3948}
@media(max-width:1180px){.studio-grid{grid-template-columns:minmax(330px,.8fr) minmax(400px,1.15fr)}.phone-wrap{display:none}.stats-grid{grid-template-columns:repeat(2,1fr)}.library-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none;box-shadow:20px 0 50px rgba(25,24,40,.17)}.main{margin-left:0}.menu-button{display:block}.topbar{padding:0 20px}.page{padding:27px 20px}.home-grid,.studio-grid,.calendar-layout{grid-template-columns:1fr}.content-cards{grid-template-columns:1fr 1fr}.account-grid{grid-template-columns:1fr}.library-grid{grid-template-columns:repeat(2,1fr)}.setup-guide{grid-template-columns:1fr}.phone-wrap{display:block;position:static}.builder-panel,.result-panel{min-height:auto}}
@media(max-width:620px){.page{padding:22px 14px}.welcome,.page-title,.studio-header{align-items:flex-start;flex-direction:column}.welcome .primary,.page-title .primary{width:100%}.stats-grid{grid-template-columns:1fr 1fr;gap:8px}.stat-card{padding:13px;gap:9px}.stat-icon{width:34px;height:34px}.stat-card strong{font-size:19px}.home-grid{gap:10px}.quick-create,.schedule-panel,.recent-panel,.builder-panel,.result-panel{padding:17px}.platform-pick{flex-wrap:wrap}.generate{width:100%;margin-left:0}.content-cards{grid-template-columns:1fr}.form-row{grid-template-columns:1fr}.toolbar{flex-direction:column}.search-box{width:100%}.filter-tabs{overflow:auto}.library-grid{grid-template-columns:1fr 1fr;gap:8px}.library-thumb{height:170px;padding:12px}.library-thumb h3{font-size:15px}.calendar-layout{overflow:hidden}.calendar-day{min-height:66px;padding:4px}.calendar-event{font-size:0;height:6px;padding:0}.step-indicator{display:none}.modal{padding:22px}.account-card{padding:16px}}

/* Arttinov MVP — authentication and multi-tenant administration */
[hidden] { display: none !important; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(430px,1.08fr) minmax(430px,.92fr); background: #fff; }
.auth-visual { position: relative; min-height: 100vh; padding: 46px clamp(35px,6vw,85px); overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 20%,#302258,transparent 32%), linear-gradient(145deg,#080a12,#111629 58%,#17274a); display: flex; flex-direction: column; justify-content: space-between; }
.auth-logo { position: relative; z-index: 2; width: min(430px,80%); height: auto; display: block; }
.auth-message { position: relative; z-index: 2; max-width: 620px; margin-bottom: 8vh; }
.auth-kicker { color: #70d8ee; font-size: 10px; font-weight: 900; letter-spacing: 2.3px; }
.auth-message h1 { margin: 20px 0; font-size: clamp(45px,5.3vw,78px); line-height: .95; letter-spacing: -4px; }
.auth-message h1 em { color: #8a6bff; font-style: normal; }
.auth-message p { max-width: 500px; color: #b8bfd2; font-size: 15px; line-height: 1.7; }
.auth-orbit { position: absolute; border: 1px solid rgba(125,99,234,.27); border-radius: 50%; }
.auth-orbit.one { width: 540px; height: 540px; right: -220px; top: -140px; }
.auth-orbit.two { width: 340px; height: 340px; left: -150px; bottom: -110px; }
.auth-panel { padding: 55px clamp(35px,6vw,90px); display: grid; align-items: center; background: #fbfbfd; }
.auth-card { width: min(470px,100%); margin: auto; padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.auth-card h2 { margin: 7px 0; font-size: 27px; letter-spacing: -.8px; }
.auth-card>p { color: var(--muted); font-size: 11px; line-height: 1.55; margin-bottom: 24px; }
.auth-card form { display: grid; }
.auth-switch { text-align: center; margin: 20px 0 5px !important; }
.auth-switch button { border: 0; padding: 0; color: var(--purple); background: transparent; font-size: inherit; font-weight: 800; }
.auth-help { text-align: center; font-size: 9px !important; margin: 10px 0 0 !important; }
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { width: 100%; padding-right: 43px !important; }
.password-field button { position: absolute; right: 5px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #77798a; background: transparent; font-size: 15px; }
.password-field button:hover { color: var(--purple); background: var(--purple-soft); }
.brand.brand-image { min-height: 58px; padding: 5px 8px; gap: 5px; border-radius: 12px; background: #080a12; overflow: hidden; }
.arttinov-logo { display: block; overflow: visible; }
.brand.brand-image { background: transparent; }
.brand-image .arttinov-logo { width: 168px; height: 47px; }
.brand-image span { align-self: flex-end; margin-bottom: 9px; color: #b9aaff; font-size: 8px; letter-spacing: 1px; }
.global-theme-toggle { position: fixed; z-index: 100; top: 16px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(139,118,224,.28); border-radius: 12px; color: #6651c3; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(22,20,45,.12); backdrop-filter: blur(12px); font-size: 17px; transition: .2s; }
.global-theme-toggle:hover { transform: translateY(-1px) rotate(8deg); border-color: #8d70f0; }
.tenant-pill { max-width: 220px; padding: 8px 11px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; color: #737584; background: #fff; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav { color: #d4902f; background: #fff8e8; }
.admin-nav.active { color: #9a651f; background: #fff0cc; }
.system-banner { margin: 18px 40px -12px; padding: 11px 14px; border: 1px solid #f1d394; border-radius: 11px; color: #82591b; background: #fff8e6; font-size: 10px; }
.empty-state { grid-column: 1/-1; padding: 34px 18px; text-align: center; color: var(--muted); border: 1px dashed #d9d9e4; border-radius: 12px; background: #fcfcfe; }
.empty-state strong,.empty-state span { display: block; }.empty-state strong { color: var(--ink); font-size: 12px; margin-bottom: 5px; }.empty-state span { font-size: 10px; }
.settings-panel input { min-width: 240px; border: 1px solid var(--line); border-radius: 9px; padding: 10px; font-size: 10px; outline: 0; }
.settings-panel input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.settings-panel input:disabled { color: #9697a3; background: #f5f5f8; }
.settings-actions { padding-top: 20px; display: flex; justify-content: flex-end; }
.admin-badge { padding: 8px 11px; border: 1px solid #eacb8c; border-radius: 9px; color: #9a651f; background: #fff5dc; font-size: 9px; font-weight: 900; letter-spacing: .7px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.admin-control { padding: 22px; }
.admin-control h2 { margin: 4px 0 6px; font-size: 16px; }
.admin-control>p { margin-bottom: 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.registration-toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px; border-radius: 11px; background: #f8f7fc; }
.registration-toggle strong,.registration-toggle small { display: block; }.registration-toggle strong { font-size: 10px; }.registration-toggle small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.user-panel { padding: 23px; }
.search-box.small { width: 240px; }
.table-wrap { overflow: auto; }
.user-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.user-table th { padding: 10px; color: #9697a4; border-bottom: 1px solid var(--line); text-align: left; font-size: 8px; text-transform: uppercase; letter-spacing: .6px; }
.user-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.user-table strong,.user-table small { display: block; }.user-table strong { font-size: 10px; }.user-table small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.role-pill,.state-pill { display: inline-block; padding: 5px 7px; border-radius: 99px; font-size: 7px; font-weight: 800; }
.role-pill { color: #684fc3; background: var(--purple-soft); }.state-pill.active { color: #248866; background: #e5f7f0; }.state-pill.suspended { color: #a44856; background: #fdebed; }
.table-select,.quota-input { width: 84px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 8px; }
.quota-input { width: 60px; }
.table-action { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; color: #606271; background: #fff; font-size: 8px; }
.table-action:hover { border-color: #b9a9f3; color: var(--purple); }
.commerce-panel { padding: 23px; margin-bottom: 15px; }
.commerce-panel .panel-heading h2 { margin: 4px 0; }
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.price-grid label { display: grid; gap: 7px; color: #696b7a; font-size: 9px; font-weight: 700; }
.price-grid input { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.price-grid input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.commerce-note { padding: 10px 12px; border-radius: 9px; color: #8b6423; background: #fff6df; font-size: 9px; }
.ai-disclosure { padding: 7px 10px; border: 1px solid #d8cffb; border-radius: 99px; color: var(--purple); background: var(--purple-soft); font-size: 8px; font-weight: 900; letter-spacing: .7px; }
.media-layout { display: grid; grid-template-columns: minmax(440px,.9fr) minmax(360px,.72fr); gap: 15px; align-items: start; }
.media-builder { padding: 24px; }
.media-status-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.provider-pill { padding: 6px 8px; border-radius: 99px; color: #9b6a20; background: #fff3d7; font-size: 8px; font-weight: 800; }
.provider-pill.ready { color: #248866; background: #e5f7f0; }
.media-builder .form-group small { color: var(--muted); font-size: 8px; }
.media-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }
.media-actions button { font-size: 10px; }
.media-note { margin: 14px 0 0; color: #8c8e9c; font-size: 9px; text-align: right; }
.media-output { display: grid; gap: 15px; }
.output-card,.audio-output { padding: 20px; }
.output-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.output-head h2,.audio-output h2 { margin: 3px 0 14px; font-size: 15px; }
.output-head>span { color: var(--muted); font-size: 9px; }
.video-stage { position: relative; aspect-ratio: 9/16; max-height: 540px; margin: auto; overflow: hidden; border-radius: 16px; color: #fff; background: radial-gradient(circle at 30% 20%,#7657e8,transparent 32%),linear-gradient(155deg,#111425,#4d347d 62%,#c97968); display: grid; place-items: center; }
.video-stage video { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: grid; justify-items: center; gap: 8px; padding: 25px; text-align: center; }
.media-placeholder>span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #33245d; background: rgba(255,255,255,.9); }
.media-placeholder strong { font-size: 12px; }.media-placeholder small { max-width: 220px; opacity: .72; font-size: 9px; line-height: 1.5; }
.download-link { display: block; margin-top: 12px; text-align: center; text-decoration: none; font-size: 9px; }
.audio-output { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.audio-output audio { grid-column: 1/-1; width: 100%; height: 34px; }
.audio-output p { grid-column: 1/-1; margin: 0; color: var(--muted); font-size: 9px; }
.audio-output .download-link { margin: 0; }
.rendering .media-placeholder>span { animation: pulse-render 1.2s infinite; }
@keyframes pulse-render { 50% { transform: scale(1.12); box-shadow: 0 0 0 13px rgba(255,255,255,.12); } }

@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-visual{min-height:340px;padding:35px}.auth-logo{width:280px}.auth-message{margin:40px 0 0}.auth-message h1{font-size:48px;letter-spacing:-2.5px}.auth-panel{padding:35px 20px}.system-banner{margin:15px 20px -8px}.admin-grid,.media-layout{grid-template-columns:1fr}.video-stage{max-height:620px}}
@media(max-width:620px){.auth-visual{min-height:280px;padding:26px}.auth-logo{width:230px}.auth-message h1{font-size:39px}.auth-message p{font-size:12px}.auth-panel{padding:25px 14px}.auth-card{padding:24px}.tenant-pill{display:none}.system-banner{margin:12px 14px -5px}.admin-stats{grid-template-columns:1fr 1fr}.setting-row{align-items:flex-start;flex-direction:column;gap:10px}.settings-panel input,.setting-row select{width:100%;min-width:0}.search-box.small{width:100%}.user-panel .panel-heading{flex-direction:column}.media-builder{padding:17px}.media-actions{flex-direction:column}.media-actions button{width:100%}}

/* Dark mode */
html[data-theme="dark"] { color-scheme: dark; --bg:#0c1018; --surface:#151a25; --ink:#f2f3f8; --muted:#9ba1b2; --line:#2a3140; --purple:#9276f4; --purple-dark:#7c5de8; --purple-soft:#2c2546; --green:#54c798; --shadow:0 14px 40px rgba(0,0,0,.25); }
html[data-theme="dark"] body,
html[data-theme="dark"] .main,
html[data-theme="dark"] .page { background:var(--bg); color:var(--ink); }
html[data-theme="dark"] .auth-shell,
html[data-theme="dark"] .auth-panel { background:#0c1018; }
html[data-theme="dark"] :is(.sidebar,.topbar,.panel,.stat-card,.library-card,.account-card,.auth-card,.idea-box textarea,.form-group input,.form-group textarea,.form-group select,.result-tab textarea,.search-box,.search-box input,.segmented button,.platform-toggle button,.secondary,.icon-button,.calendar-head button,.setting-row select,.settings-panel input,.table-select,.quota-input,.table-action,.tenant-pill,.price-grid input,.password-field button) { color:var(--ink); background:#151a25; border-color:var(--line); }
html[data-theme="dark"] .topbar { background:rgba(21,26,37,.86); }
html[data-theme="dark"] :is(.usage-card,.schedule-item,.suggestions button,.prompt-chips button,.mini-content,.scene-row,.shot-item,.registration-toggle,.empty-state,.best-time) { color:var(--ink); background:#1a202d; border-color:var(--line); }
html[data-theme="dark"] :is(.nav-item:hover,.calendar-day.muted) { color:var(--ink); background:#181e2a; }
html[data-theme="dark"] .nav-item.active { color:#b5a4ff; background:#2a2542; }
html[data-theme="dark"] .admin-nav.active { color:#ffd08a; background:#3a2e1d; }
html[data-theme="dark"] .new-project,
html[data-theme="dark"] .primary,
html[data-theme="dark"] .generate { color:#fff; background:var(--purple-dark); }
html[data-theme="dark"] .upgrade { color:#fff; background:#6850d0; }
html[data-theme="dark"] .idea-box { border-color:var(--line); }
html[data-theme="dark"] :is(input,textarea,select)::placeholder { color:#687084; }
html[data-theme="dark"] .system-banner { color:#f4cc84; background:#302718; border-color:#66502b; }
html[data-theme="dark"] .notice { color:#d8d0ff; background:#24203a; border-color:#41376c; }
html[data-theme="dark"] .setup-guide code { color:#dcddea; background:#252b38; }
html[data-theme="dark"] .global-theme-toggle { color:#ffe49a; background:rgba(25,30,43,.9); border-color:#3a4255; }
html[data-theme="dark"] .auth-card code { color:#d7cdfb; }
html[data-theme="dark"] .commerce-note { color:#f2cb85; background:#302718; }
html[data-theme="dark"] :is(.modal,.guide-config pre,.callback-copy code) { color:var(--ink); background:#151a25; border-color:var(--line); }
html[data-theme="dark"] .guide-status.pending { color:#f2cb85; background:#302718; }
html[data-theme="dark"] .guide-status.detected { color:#c5b6ff; background:#2c2546; }
html[data-theme="dark"] .guide-status.ready { color:#8de0bb; background:#18352c; }
html[data-theme="dark"] .library-footer,
html[data-theme="dark"] .mini-copy small,
html[data-theme="dark"] .schedule-meta small { color:var(--muted); }
html[data-theme="dark"] .audio-output,
html[data-theme="dark"] .output-card { background:#151a25; }
body,.main,.page,.sidebar,.topbar,.panel,.stat-card,.auth-panel,.auth-card { transition:background-color .25s ease,color .25s ease,border-color .25s ease; }
@media(max-width:620px){.price-grid{grid-template-columns:1fr}.commerce-panel .panel-heading{flex-direction:column}.commerce-panel .panel-heading button{width:100%}}
