
  *, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
  :root {
    --grad:linear-gradient(135deg,#1a8fa8 0%,#3dcc72 82%,#D8B464 100%);
    --page:linear-gradient(160deg,#140b17 0%,#452a4e 42%,#2c1a33 72%,#140b17 100%);
    --surface:rgba(10,30,40,.98); --surface-solid:#0a1e28; --stagehead:rgba(10,30,40,.75);
    --border:rgba(26,143,168,.22); --headborder:rgba(26,143,168,.15);
    --text:#e8f4f8; --muted:rgba(205,228,240,.85); --faint:rgba(255,255,255,.56);
    --input:rgba(255,255,255,.08); --inputborder:rgba(255,255,255,.15);
    font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; font-size:16px;
  }
  [data-theme="light"] {
    --page:#f1eaf8; --surface:rgba(255,255,255,.98); --surface-solid:#ffffff; --stagehead:rgba(255,255,255,.9);
    --border:rgba(0,0,0,.08); --headborder:rgba(0,0,0,.08);
    --text:#0f172a; --muted:#475569; --faint:#64748b;
    --input:rgba(255,255,255,.9); --inputborder:rgba(26,143,168,.25);
  }
  html, body { overflow-x:hidden; }
  body { background:var(--page); background-attachment:fixed; color:var(--text); min-height:100vh; text-align:center; }
  button { cursor:pointer; font-family:inherit; font-size:.875rem; font-weight:600; border:none; border-radius:10px; padding:10px 18px; transition:all .15s ease; }
  button:hover { opacity:.92; transform:translateY(-1px); }
  button:active { transform:translateY(0) scale(.98); }
  input, select, textarea { font-family:inherit; font-size:.925rem; border:1.5px solid rgba(26,143,168,.3); border-radius:10px; padding:11px 14px; width:100%; background:rgba(6,15,20,.6); color:#e8f4f8; outline:none; text-align:center; text-align-last:center; transition:border-color .15s, box-shadow .15s; }
  [data-theme="light"] .modal input, [data-theme="light"] .modal select, [data-theme="light"] .modal textarea { background:#fff; color:#0f172a; border-color:rgba(0,0,0,.12); }
  input:focus, select:focus, textarea:focus { border-color:#1a8fa8; box-shadow:0 0 0 3px rgba(26,143,168,.15); }
  input::placeholder, textarea::placeholder { color:rgba(210,232,242,.7); }
  [data-theme="light"] .modal input::placeholder { color:rgba(15,23,42,.4); }
  textarea { resize:vertical; min-height:80px; }
  select { appearance:none; -webkit-appearance:none; padding-right:34px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a8fa8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 14px center; }

  /* Header: same dark bar, teal line, and 3-part layout as the old demo */
  header { background:#060f14; padding:0 40px; box-shadow:0 4px 24px rgba(0,0,0,.5); border-bottom:1px solid rgba(26,143,168,.2); border-top:2px solid rgba(61,204,114,.5); position:sticky; top:0; z-index:50; }
  .hbar { max-width:1400px; margin:0 auto; display:flex; align-items:center; gap:28px; height:88px; }
  .hl, .hr { flex:1; display:flex; align-items:center; gap:14px; }
  .hl { justify-content:flex-start; } .hr { justify-content:flex-end; }
  .hc { display:flex; align-items:center; gap:16px; flex-shrink:0; }
  .lang { display:flex; gap:2px; background:rgba(255,255,255,.04); border-radius:99px; padding:5px; }
  .lang button { background:transparent; color:rgba(255,255,255,.74); padding:9px 22px; border-radius:99px; font-size:.95rem; font-weight:700; letter-spacing:.05em; }
  .lang button.on { background:var(--grad); color:#fff; box-shadow:0 2px 12px rgba(61,204,114,.35); }
  .hname { font-size:1.6rem; font-weight:900; letter-spacing:-.02em; white-space:nowrap; }
  .dots { display:flex; gap:0; }
  .dotbtn { position:relative; width:44px; height:44px; padding:0; border:0; background:transparent; border-radius:99px; }
  .dotbtn::before { content:""; position:absolute; inset:12px; border-radius:99px; background:var(--dot); border:2px solid rgba(255,255,255,.25); }
  .dotbtn.on::before { border-color:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.18); }
  .theme { background:rgba(255,255,255,.08); border:1px solid rgba(26,143,168,.2); color:rgba(255,255,255,.86); border-radius:10px; padding:10px 14px; font-size:1.2rem; }

  .demoline { padding:14px 20px 0; font-size:.75rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); }

  .tools { display:flex; justify-content:center; align-items:center; gap:10px; padding:16px 20px 0; }
  .search { position:relative; width:100%; max-width:340px; }
  .search input { padding:10px 14px; font-size:.9rem; background:var(--input); border:1px solid var(--inputborder); color:var(--text); border-radius:99px; }
  [data-theme="light"] .search input::placeholder { color:rgba(15,23,42,.55); }
  .new { background:var(--grad); color:#060f14; padding:10px 18px; font-size:.875rem; font-weight:800; white-space:nowrap; border-radius:99px; box-shadow:0 4px 16px rgba(61,204,114,.35); flex-shrink:0; }

  .board { display:flex; justify-content:safe center; gap:24px; padding:22px 36px 60px; align-items:flex-start; overflow-x:auto; }
  .colwrap { flex:0 0 280px; min-width:0; max-width:280px; display:flex; flex-direction:column; gap:14px; }
  .stage { background:var(--stagehead); border-radius:10px; padding:9px 12px; border:1px solid var(--headborder); border-top:3px solid #1a8fa8; box-shadow:none; text-align:center; }
  [data-theme="light"] .stage { box-shadow:0 2px 8px rgba(0,0,0,.08); }
  .stage .top { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:3px; }
  .stage .nm { font-size:.68rem; font-weight:800; color:rgba(255,255,255,.85); text-transform:uppercase; letter-spacing:.08em; }
  [data-theme="light"] .stage .nm { color:#0f172a; }
  .stage .ct { border-radius:99px; padding:1px 8px; font-size:.65rem; font-weight:700; color:#fff; }
  .stage .ct.zero { background:rgba(255,255,255,.1); color:rgba(255,255,255,.8); }
  [data-theme="light"] .stage .ct.zero { background:rgba(0,0,0,.06); color:#94a3b8; }
  .stage .ds { font-size:.65rem; color:var(--faint); line-height:1.4; }
  .colwrap.over .stage { outline:2px dashed #1a8fa8; }

  .card { position:relative; background:var(--surface); border:1px solid var(--border); border-left:4px solid #1a8fa8; border-radius:12px; padding:30px 14px 28px; cursor:grab; box-shadow:0 1px 4px rgba(0,0,0,.05); transition:box-shadow .15s; }
  .card:hover { box-shadow:0 6px 20px rgba(0,0,0,.15); }
  .avatar { width:56px; height:56px; border-radius:50%; background:rgba(125,125,125,.12); border:3px solid rgba(148,163,184,.55); margin:-8px auto 0; display:flex; align-items:center; justify-content:center; font-size:1.2rem; font-weight:800; color:var(--muted); }
  .cname { margin-top:12px; font-size:1rem; font-weight:700; color:var(--text); }
  .cdetail { margin-top:6px; font-size:.82rem; color:var(--muted); line-height:1.45; }
  .phone { display:inline-flex; align-items:center; gap:5px; margin-top:12px; background:rgba(61,204,114,.1); border:1px solid rgba(61,204,114,.35); color:#3dcc72; border-radius:6px; padding:3px 10px; font-size:.78rem; font-weight:700; }
  [data-theme="light"] .phone { color:#16803c; background:#f0fdf4; }
  .rem { display:inline-block; margin-top:10px; background:rgba(216,180,100,.16); color:#D8B464; border-radius:99px; padding:3px 10px; font-size:.7rem; font-weight:800; }
  [data-theme="light"] .rem { background:#f6ecd3; color:#7a5a12; }
  .ago { margin-top:14px; text-align:right; font-size:.7rem; color:var(--faint); }
  .empty { border:2px dashed rgba(148,163,184,.2); border-radius:10px; display:flex; align-items:center; justify-content:center; min-height:160px; font-size:.65rem; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.15); }
  [data-theme="light"] .empty { color:rgba(0,0,0,.18); }

  .overlay { position:fixed; inset:0; background:rgba(0,0,0,.65); display:none; align-items:center; justify-content:center; padding:16px; z-index:100; }
  .overlay.on { display:flex; }
  .modal { background:var(--surface-solid); border:1px solid var(--border); border-radius:16px; width:100%; max-width:480px; max-height:90vh; overflow:auto; padding:34px 28px; text-align:center; }
  .modal h2 { font-size:1.15rem; font-weight:800; margin-bottom:6px; color:var(--text); }
  label { display:block; font-size:.7rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:20px 0 7px; }
  .row { display:flex; justify-content:center; gap:12px; margin-top:30px; flex-wrap:wrap; }
  .row .grow { flex:1; }
  .primary { background:var(--grad); color:#060f14; font-weight:800; }
  .ghost { background:rgba(255,255,255,.07); color:var(--text); border:1px solid var(--border); }
  [data-theme="light"] .ghost { background:#f8fafc; }
  .danger { background:rgba(239,68,68,.12); color:#ef4444; border:1px solid rgba(239,68,68,.35); }

  @media (max-width:768px) {
    :root { font-size:19px; }
    header { padding:0 10px; }
    .hbar { height:auto; flex-wrap:wrap; gap:10px; padding:12px 0; justify-content:center; }
    .hl, .hr { flex:0 0 auto; }
    .hc { order:3; flex:1 0 100%; justify-content:center; flex-wrap:wrap; }
    .lang button { padding:7px 14px; font-size:.82rem; }
    .hname { font-size:1.3rem; }
    .board { padding:18px 16px 50px; gap:16px; }
    .colwrap { flex:0 0 82vw; max-width:82vw; }
    .tools { flex-wrap:wrap; }
  }

  :focus-visible { outline:3px solid #3dcc72; outline-offset:2px; }
  .card:focus-visible { outline-offset:3px; }
  @media (max-width:768px) {
    .lang button { min-height:44px; min-width:48px; }
    .theme, .new, .ghost, .primary, .danger { min-height:44px; }
    .search input { min-height:44px; }
  }

  .msg { display:none; margin:16px auto 0; max-width:520px; padding:12px 18px; border-radius:12px; background:rgba(239,68,68,.15); border:1px solid rgba(239,68,68,.45); color:#fca5a5; font-weight:700; font-size:.9rem; }
  .msg.on { display:block; }
  [data-theme="light"] .msg { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
