:root{
  --bg:#07111f; --panel:#101d2f; --panel2:#17263b; --line:rgba(255,255,255,.12);
  --text:#f4f7fb; --muted:#aebbd0; --yellow:#ffb21a; --yellow2:#ff8a1d;
  --green:#20d37a; --red:#ff5a67; --shadow:0 22px 55px rgba(0,0,0,.36);
}
*{box-sizing:border-box}
html{font-size:16px}
body{
  margin:0; min-height:100vh; color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 14% 5%,rgba(255,178,26,.22),transparent 26%),
    radial-gradient(circle at 92% 12%,rgba(47,116,255,.16),transparent 28%),
    linear-gradient(180deg,#07111f,#09172a 58%,#06101d);
}
.shell{width:min(1120px,calc(100% - 28px)); margin:0 auto; padding:18px 0 50px}
.topbar,.hero,.card{border:1px solid var(--line); box-shadow:var(--shadow); backdrop-filter:blur(16px)}
.topbar{
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  border-radius:24px; padding:14px 16px; background:rgba(12,24,42,.78); margin-bottom:14px;
}
.brand{display:flex; align-items:center; gap:12px}
.mark{
  width:44px; height:44px; border-radius:14px; display:grid; place-items:center;
  background:linear-gradient(135deg,var(--yellow),var(--yellow2)); color:#111; font-weight:950; font-size:25px;
}
.brand-title{font-weight:900; letter-spacing:.18em}
.brand-sub{font-size:12px; color:var(--muted); margin-top:2px}
.live{
  color:var(--muted); border:1px solid var(--line); padding:10px 12px; border-radius:999px; background:rgba(255,255,255,.04);
  display:flex; align-items:center; gap:8px; white-space:nowrap; font-size:13px;
}
.live span{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(32,211,122,.12)}
.hero{
  display:grid; grid-template-columns:1fr 260px; gap:18px; align-items:stretch;
  background:linear-gradient(135deg,rgba(14,28,49,.92),rgba(21,41,68,.76));
  padding:26px; border-radius:30px; margin-bottom:16px;
}
.kicker{color:var(--yellow); font-size:12px; letter-spacing:.16em; text-transform:uppercase; margin:0 0 8px; font-weight:900}
h1{font-size:clamp(28px,4.7vw,54px); line-height:1.02; margin:0; max-width:800px}
.hero-text{color:var(--muted); line-height:1.6; margin:14px 0 0; max-width:760px}
.hero-card{background:rgba(255,255,255,.055); border:1px solid var(--line); border-radius:24px; padding:18px}
.hero-card strong{font-size:24px; display:block; margin:4px 0 16px}
.small{color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.1em}
code{color:var(--yellow); word-break:break-all}
.card{background:rgba(16,29,47,.92); border-radius:30px; padding:24px}
.section-title{display:flex; justify-content:space-between; gap:14px; align-items:flex-end; margin:3px 0 14px}
.section-title h2{margin:0; font-size:22px}
.section-title p{margin:5px 0 0; color:var(--muted)}
.grid{display:grid; gap:14px}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.item-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.span-2{grid-column:span 2}
.span-4{grid-column:span 4}
label{display:grid; gap:8px; color:var(--muted); font-size:13px; font-weight:800}
input,select,textarea{
  width:100%; border:1px solid var(--line); background:#223047; color:var(--text);
  border-radius:17px; padding:14px 15px; min-height:52px; outline:none; font:inherit;
}
textarea{resize:vertical; line-height:1.5}
select option{color:#111}
input:focus,select:focus,textarea:focus{border-color:var(--yellow); box-shadow:0 0 0 4px rgba(255,178,26,.13)}
.notes{margin-top:14px}
.advanced{border:1px solid var(--line); border-radius:20px; padding:14px; margin-top:14px; background:rgba(255,255,255,.035)}
.advanced summary{cursor:pointer; color:var(--yellow); font-weight:900}
.advanced .grid{margin-top:14px}
.items{display:grid; gap:14px; margin-top:14px}
.item-card{background:rgba(255,255,255,.045); border:1px solid var(--line); border-radius:24px; padding:16px}
.item-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:14px}
.item-head strong{font-size:16px}
.remove-item{background:transparent; color:var(--red); border:0; font-weight:900; cursor:pointer}
.file-label input{padding:11px; background:#202e43}
.file-hint{color:#7f8fa8; font-size:12px; margin-top:-2px}
.footer-actions{display:flex; gap:12px; margin-top:20px; flex-wrap:wrap}
.btn{
  border:0; border-radius:18px; padding:15px 22px; font:inherit; font-weight:950; cursor:pointer;
  min-height:54px; transition:transform .12s ease, opacity .12s ease;
}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.58; cursor:not-allowed}
.primary{background:linear-gradient(135deg,var(--yellow),var(--yellow2)); color:#111; flex:1}
.secondary{background:#26364f; color:var(--text); border:1px solid var(--line)}
.ghost{background:transparent; color:var(--muted); border:1px solid var(--line)}
.toast{
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px);
  background:#0e1d31; border:1px solid var(--line); box-shadow:var(--shadow); color:var(--text);
  width:min(680px,calc(100% - 28px)); padding:16px 18px; border-radius:22px; opacity:0; pointer-events:none;
  transition:.2s ease; z-index:10; line-height:1.45;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0)}
.toast.success{border-color:rgba(32,211,122,.55)}
.toast.error{border-color:rgba(255,90,103,.72)}
@media (max-width:860px){
  .hero{grid-template-columns:1fr; padding:22px}
  .hero-card{display:none}
  .grid-4,.grid-2,.item-grid{grid-template-columns:1fr}
  .span-2,.span-4{grid-column:auto}
  .with-button{align-items:stretch; flex-direction:column}
  .with-button .btn{width:100%}
}
@media (max-width:560px){
  .shell{width:calc(100% - 20px); padding-top:10px}
  .topbar{border-radius:20px; padding:12px}
  .live{display:none}
  .hero{border-radius:24px; padding:20px}
  .card{border-radius:24px; padding:18px}
  h1{font-size:31px}
  .section-title{display:block}
  input,select,textarea{font-size:16px}
  .footer-actions{position:sticky; bottom:10px; background:rgba(7,17,31,.72); padding:8px; border-radius:22px; backdrop-filter:blur(10px)}
  .primary{width:100%}
}
