:root{
  --paper:#f6f7fb;
  --paper2:#eceef5;
  --ink:#15161a;
  --muted:#696d79;
  --green:#5b5de6;
  --green2:#4446c7;
  --orange:#ff6b45;
  --lime:#c7f36b;
  --white:#fff;
  --line:#dde0e9;
  --shadow:0 18px 55px rgba(20,24,45,.09);
  --surface:#fff;
  --surface-soft:#f0f2f7;
  --hero:#15171d;
  --hero-text:#fff;
  --accent:#7c7ff5;
}

*{scrollbar-color:#c5c8d3 transparent}
html{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,"SF Pro Display","PingFang SC","Noto Sans SC",system-ui,sans-serif;
  letter-spacing:-.012em;
}
body:before{content:none}
.offline-bar{display:none}

.topbar{
  position:sticky;top:0;z-index:55;
  max-width:none;height:72px;padding:0 max(24px,calc((100vw - 1180px)/2));
  background:color-mix(in srgb,var(--surface) 90%,transparent);
  border-bottom:1px solid var(--line);backdrop-filter:blur(18px) saturate(150%);
}
.brand{gap:11px;font-family:inherit;font-weight:900;font-size:18px;color:var(--ink)}
.brand-mark{
  width:34px;height:34px;border-radius:11px;background:var(--ink);box-shadow:none;transform:none;
}
.brand-mark:after{background:var(--lime);box-shadow:10px 0 0 var(--accent),20px 0 0 #ff8b70}
.top-actions{gap:8px}
.top-actions button,.top-actions a{
  min-height:38px;border:1px solid var(--line);border-radius:12px;background:var(--surface);
  color:var(--ink);font-size:12px;font-weight:750;padding:0 14px;
}
.top-actions .news-link{background:var(--ink);border-color:var(--ink);color:var(--white)}
.top-actions button:hover,.top-actions a:hover{border-color:#b7bbc8;background:var(--surface-soft)}
.top-actions .news-link:hover{background:#2b2d35}

main{overflow:clip}
.hero{
  position:relative;isolation:isolate;max-width:1180px;min-height:370px;margin:34px auto 18px;padding:46px 50px;
  grid-template-columns:minmax(0,1.45fr) 320px;gap:70px;border:1px solid #23262f;border-radius:30px;
  background:var(--hero);color:var(--hero-text);overflow:hidden;
}
.hero:before,.hero:after{content:"";position:absolute;z-index:-1;border-radius:999px;filter:blur(2px)}
.hero:before{width:390px;height:390px;right:-155px;top:-190px;background:radial-gradient(circle,#6f73ff 0,#6f73ff 35%,transparent 36%);opacity:.72}
.hero:after{width:260px;height:260px;left:48%;bottom:-190px;background:#cbff69;opacity:.17}
.eyebrow{margin-bottom:19px;color:#b7b9ff;font:800 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.18em}
.eyebrow:before{width:22px;height:3px;border-radius:9px;background:var(--lime);box-shadow:none}
.hero h1{max-width:710px;margin:0;font-size:clamp(44px,5.3vw,70px);line-height:1.04;letter-spacing:-.068em;font-weight:900}
.hero h1 em{color:#aeb0ff}
.hero h1 em:after{display:none}
.hero-copy>p.note{margin:21px 0 24px;max-width:610px;color:#b9bdc9;font-size:16px;line-height:1.7}
.search{
  max-width:650px;height:60px;padding:0 15px;border:1px solid rgba(255,255,255,.18);border-radius:15px;
  background:#fff;box-shadow:0 14px 40px rgba(0,0,0,.22);color:#15161a;
}
.search>span{color:var(--green)}
.search input{font-size:15px;color:#15161a}
.search kbd{border:0;border-radius:8px;background:#eceef5;color:#656977;padding:6px 8px}
.quick{margin-top:14px;color:#868b99;font-size:11px}
.quick button{border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(255,255,255,.06);color:#e9eaff;padding:6px 10px}
.quick button:hover{background:rgba(255,255,255,.13)}
.hero-disc{
  width:100%;height:244px;align-self:center;justify-self:stretch;aspect-ratio:auto;border:1px solid rgba(255,255,255,.16);
  border-radius:24px;background:linear-gradient(145deg,#696cf0,#4a4ccb);box-shadow:0 20px 52px rgba(0,0,0,.3);
  transform:none;overflow:hidden;text-align:left;padding:27px;
}
.hero-disc:before{inset:auto -42px -84px auto;width:205px;height:205px;border:42px solid rgba(255,255,255,.12);border-radius:50%}
.hero-disc:after{content:"DAILY / NEWS";right:25px;bottom:21px;transform:none;color:#dfe0ff;font:800 10px/1 ui-monospace,monospace;letter-spacing:.14em}
.hero-disc small{margin-top:48px;color:#d9daff;font-size:11px;letter-spacing:.18em}
.hero-disc strong{margin-top:9px;font:900 35px/1.1 inherit;letter-spacing:-.055em}
.hero-disc span{width:42px;height:42px;margin:22px 0 0;border-radius:13px;background:#fff;color:#4d4fd2}
.hero-disc .sticker{left:22px;top:20px;background:var(--lime);color:#181a20;border-radius:999px;box-shadow:none;transform:none;padding:7px 11px}

.workbench{max-width:1180px;margin:0 auto 26px;padding:0}
.workbench-head{align-items:center;padding:20px 4px 14px;border:0}
.workbench-head .kicker{display:none}
.workbench-head h2{margin:0;font-size:24px;letter-spacing:-.04em;font-weight:850}
.workbench-head>span{font-size:12px;color:var(--muted)}
.workbench-grid{grid-template-columns:1.1fr 1fr 1fr;gap:12px;border:0}
.desk-card,.desk-card.accent{
  min-height:165px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface);
  box-shadow:none;
}
.desk-card.accent{background:#eff0ff;border-color:#d9dafe}
.desk-card small{font-size:10px;color:var(--green);letter-spacing:.1em}
.desk-card h3{margin:8px 0 9px;font-family:inherit;font-size:21px}
.desk-card p{font-size:12px;line-height:1.6}
.desk-number{font-family:inherit;font-size:38px;color:var(--green)}
.desk-actions{margin-top:13px}
.desk-actions button,.desk-actions a,.recent-chip{border-color:var(--line);border-radius:9px;background:var(--surface);padding:7px 9px}
.desk-actions .solid{background:var(--ink);border-color:var(--ink);color:#fff}

.studio-new{max-width:1180px;margin:0 auto 26px;padding:25px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}
.studio-new-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:17px}
.studio-new-head small{color:var(--green);font:800 10px/1 ui-monospace,monospace;letter-spacing:.14em}.studio-new-head h2{margin:6px 0 0;font-size:25px;letter-spacing:-.04em}.studio-new-head>span{font-size:12px;color:var(--muted)}
.studio-new-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.studio-new-grid button{min-width:0;min-height:82px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);color:var(--ink);text-align:left;cursor:pointer;transition:.18s ease}
.studio-new-grid button:hover{transform:translateY(-2px);border-color:#b9bdca;background:var(--surface)}
.studio-new-grid i{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;font-style:normal;font-weight:850;color:#17181d}.studio-new-grid i.mint{background:#b9efda}.studio-new-grid i.sky{background:#bcecf5}.studio-new-grid i.peach{background:#ffbba9}.studio-new-grid i.lemon{background:#f5dd7d}.studio-new-grid i.rose{background:#f2b2bf}.studio-new-grid i.lavender{background:#d8cdf8}
.studio-new-grid b{display:block;font-size:13px}.studio-new-grid small{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.35}.studio-new-grid em{font-style:normal;color:#989ca7}

.tools{max-width:1180px;margin:0 auto 70px;padding:30px 0 44px;border:1px solid var(--line);border-radius:26px;background:var(--surface);color:var(--ink)}
.section-head{margin:0 28px 23px;align-items:end}
.section-head .kicker{color:var(--green);font-size:10px;letter-spacing:.14em}
.section-head h2{margin-top:5px;font-size:38px;letter-spacing:-.055em;font-weight:900}
.section-head>p{max-width:420px;color:var(--muted);font-size:12px}
.filters{position:sticky;top:72px;z-index:12;margin:0;padding:12px 28px 13px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(14px)}
.filters button{min-height:34px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:12px;padding:0 11px}
.filters button:hover{background:var(--surface-soft);color:var(--ink)}
.filters button.active{background:var(--ink);color:#fff;box-shadow:none}
.catalog-note{margin:18px 28px 20px;padding:14px 16px;border:0;border-radius:14px;background:var(--surface-soft);color:var(--ink)}
.catalog-note b{color:var(--green);font-size:28px}
.catalog-note span{color:var(--muted);font-size:11px;line-height:1.5}
.catalog-note strong{color:var(--ink)}
.catalog-note button{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink)}
.tool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 28px;border:0}
.tool-card{
  min-height:124px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);
  box-shadow:0 1px 0 rgba(18,20,32,.02);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.tool-card:hover{background:var(--surface);border-color:#b9bdca;transform:translateY(-3px);box-shadow:0 13px 30px rgba(31,35,58,.09)}
.tool-open{padding:17px}
.tool-icon{width:42px;height:42px;border-radius:12px;font-size:14px;box-shadow:none}
.tool-name{color:var(--ink);font-size:14px}
.tool-desc{color:var(--muted);font-size:11px;line-height:1.5}
.tool-arrow{color:#9498a5;font-size:15px}
.favorite{color:#a3a6b1}
.status{padding:3px 6px;border:0;border-radius:999px;font-size:8px;color:#262832}
.status.local{background:#dff5ad}.status.browser{background:#bcecf5}.status.online{background:#ddd5ff}

.daily{display:none}
.promise{padding:58px 24px;background:transparent;border-top:1px solid var(--line)}
.promise h2{font-size:36px}
.promise-grid{gap:10px;border:0}
.promise-grid article{min-height:150px;border:1px solid var(--line);border-radius:17px;background:var(--surface)}
footer{min-height:120px;background:var(--ink);color:#fff}
footer .brand{color:#fff}

.modal-bg{background:rgba(17,18,24,.66);backdrop-filter:blur(10px)}
.modal{width:min(940px,100%);border:1px solid rgba(255,255,255,.2);border-radius:24px;background:var(--surface);box-shadow:0 36px 120px rgba(0,0,0,.38)}
.modal-head{padding:18px 22px;background:color-mix(in srgb,var(--surface) 94%,transparent);border-color:var(--line)}
.modal-title small{color:var(--green);font-size:9px}
.modal-title h2{font-size:21px;color:var(--ink)}
.close{border-color:var(--line);border-radius:10px;background:var(--surface-soft);color:var(--ink)}
.modal-body{padding:25px}
.primary,.secondary{border-radius:10px}
.primary{background:var(--green)}
.primary:hover{background:var(--green2)}
.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}
.result,.news-editor-help,.big-result,.game-message{background:var(--surface-soft);color:var(--ink)}
.suite-card,.game-settings,.game-stat{background:var(--surface-soft);border-color:var(--line)}
.suite-card input,.suite-card select,.suite-card textarea{background:var(--surface);border-color:var(--line);color:var(--ink)}

.studio-gauge{height:10px;border-radius:99px;background:var(--paper2);overflow:hidden}
.studio-gauge>span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#ff6b45,#f5bd4f,#78cc87,#5b5de6);transition:width .25s ease}
.studio-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.studio-metric{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:center}
.studio-metric small{display:block;color:var(--muted);font-size:10px}.studio-metric b{display:block;margin-top:4px;font-size:19px}
.shadow-preview{min-height:220px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#eef0f7,#fff)}
.shadow-preview>div{width:150px;height:110px;display:grid;place-items:center;border-radius:20px;background:#fff;font-weight:850}
.noise-stage{min-height:220px;display:grid;place-items:center;border-radius:18px;background:#161820;color:#fff;text-align:center}
.noise-stage b{display:block;font-size:44px;letter-spacing:-.05em}.noise-stage span{color:#aeb2c0;font-size:12px}
.image-privacy-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px}.image-privacy-preview img{width:100%;height:220px;object-fit:contain;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft)}

[data-studio-theme="dark"]{
  --paper:#111217;--paper2:#202229;--ink:#f3f4f8;--muted:#a2a6b2;--white:#fff;--line:#30333c;
  --surface:#191b21;--surface-soft:#22242c;--hero:#090a0d;--hero-text:#fff;--shadow:0 18px 55px rgba(0,0,0,.3);
}
[data-studio-theme="dark"] .brand-mark{background:#f3f4f8}
[data-studio-theme="dark"] .brand-mark:before{background:#f3f4f8}
[data-studio-theme="dark"] .brand-mark:after{background:var(--lime);box-shadow:10px 0 0 var(--accent),20px 0 0 #ff8b70}
[data-studio-theme="dark"] .desk-card.accent{background:#232548;border-color:#3d4074}
[data-studio-theme="dark"] .search{background:#fff;color:#15161a}
[data-studio-theme="dark"] .search input{color:#15161a}
[data-studio-theme="dark"] .top-actions .news-link,[data-studio-theme="dark"] .desk-actions .solid,[data-studio-theme="dark"] .filters button.active{background:#f3f4f8;border-color:#f3f4f8;color:#15161a}
[data-studio-theme="dark"] footer{background:#090a0d}
[data-studio-theme="dark"] .shadow-preview{background:linear-gradient(135deg,#202229,#17181e)}
[data-studio-theme="dark"] .shadow-preview>div{background:#292c34}
[data-studio-theme="dark"] .canvas-shell,[data-studio-theme="dark"] .game-stage{border:1px solid #30333c}

@media(max-width:1040px){
  .topbar{padding:0 24px}.hero,.workbench,.studio-new,.tools{margin-left:18px;margin-right:18px}.hero{grid-template-columns:minmax(0,1fr) 280px;gap:35px}.studio-new-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  body{padding-bottom:70px}.topbar{height:64px;padding:0 16px}.top-actions .news-link{display:none}.top-actions button{padding:0 10px}.top-actions button:not(.keep-mobile):not(#studioTheme){display:none}
  .hero{min-height:auto;margin:16px 12px;padding:32px 23px 25px;display:flex;gap:24px;border-radius:22px}.hero h1{font-size:clamp(39px,12vw,58px)}.hero-copy>p.note{font-size:14px}.hero-disc{height:142px;padding:19px}.hero-disc small{margin-top:22px}.hero-disc strong{font-size:25px}.hero-disc>span:not(.sticker){position:absolute;right:19px;bottom:19px;margin:0}.hero-disc:after{display:none}
  .workbench{margin:0 12px 18px}.workbench-head{padding:13px 3px 10px}.workbench-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}.desk-card,.desk-card.accent{min-width:82vw;scroll-snap-align:start}
  .studio-new{margin:0 12px 18px;padding:19px;border-radius:20px}.studio-new-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.studio-new-grid button{min-width:72vw;scroll-snap-align:start}.studio-new-head h2{font-size:22px}
  .tools{margin:0 12px 45px;padding:24px 0 30px;border-radius:20px}.section-head{display:block;margin:0 18px 18px}.section-head h2{font-size:31px}.section-head>p{margin-top:8px}.filters{top:64px;padding:10px 18px}.catalog-note{margin:15px 18px}.catalog-note span{display:none}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 12px}.tool-card{min-height:126px}.tool-open{padding:14px}.tool-name{font-size:13px}.tool-desc{font-size:10px}
  .promise{display:none}.modal{border-radius:22px 22px 0 0}.modal-body{padding:18px}.studio-metrics{grid-template-columns:1fr}.image-privacy-preview{grid-template-columns:1fr}.image-privacy-preview img{height:180px}
}
@media(max-width:420px){.tool-grid{grid-template-columns:1fr}.desk-card,.desk-card.accent{min-width:88vw}.hero h1{font-size:42px}}
