:root{
    --primary:#4F39F6;
    --primary-hover:#3526B8;
    --indigo:#4F39F6;
    --ink:#1F1F26;
    --slate-500:#73737F;
    --slate-400:#9A9AA5;
    --slate-200:#E5E5EA;
    --slate-100:#F5F5F7;
    --slate-50:#FAFAFB;

    --done:#10b981;
    --doing:#3b82f6;
    --todo:#94a3b8;
    --blocked:#e11d48;
  }

  *{box-sizing:border-box;}

  body{
    margin:0;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    font-family:'Inter',system-ui,-apple-system,sans-serif;
    background:var(--slate-50);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
  }

  .site-header{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(255,255,255,.92);
    border-bottom:1px solid var(--slate-200);
    backdrop-filter:blur(12px);
  }

  .site-header-inner{
    max-width:1080px;
    margin:0 auto;
    padding:14px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
  }

  .site-brand{
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:var(--ink);
    text-decoration:none;
    font-size:16px;
    font-weight:800;
    letter-spacing:-.02em;
    flex:none;
  }

  .site-brand-mark{
    width:28px;
    height:28px;
    border-radius:8px;
    background:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:13px;
    font-weight:800;
  }

  .site-nav{
    display:flex;
    align-items:center;
    gap:24px;
  }

  .site-nav a{
    color:#5f5f6b;
    text-decoration:none;
    font-size:12px;
    font-weight:600;
    transition:color .15s;
  }

  .site-nav a:hover{
    color:var(--primary);
  }

  .site-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    border-radius:9px;
    background:var(--primary);
    color:#fff;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
    transition:background .15s,transform .15s;
    flex:none;
  }

  .site-cta:hover{
    background:var(--primary-hover);
    transform:translateY(-1px);
  }

  .site-main{
    flex:1;
  }

  .wrap{
    max-width:1000px;
    margin:0 auto;
    padding:32px 20px 40px;
  }

  .head{
    margin-bottom:24px;
  }

  .head .tag{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:12.5px;
    font-weight:600;
    color:var(--primary);
    background:#F3F1FF;
    border:1px solid #DDD8FF;
    padding:4px 10px;
    border-radius:999px;
    margin-bottom:14px;
  }

  .head h1{
    font-size:clamp(24px,4vw,32px);
    font-weight:800;
    line-height:1.15;
    margin:0 0 8px;
    letter-spacing:-0.02em;
  }

  .head p{
    font-size:15px;
    color:var(--slate-500);
    margin:0;
    max-width:58ch;
    line-height:1.55;
  }

  .panel{
    background:#fff;
    border:1px solid var(--slate-200);
    border-radius:18px;
    padding:22px;
    box-shadow:0 1px 2px rgba(31,31,38,.04);
  }

  .board-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:16px;
  }

  .board-head .proj-name{
    font-size:15px;
    font-weight:700;
  }

  .board-head .proj-meta{
    font-size:12px;
    color:var(--slate-500);
  }

  .board{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
  }

  .col{
    background:#F1F1F4;
    border:1px solid #E4E4E9;
    border-radius:16px;
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:10px;
    min-height:120px;
    transition:background .15s,border-color .15s;
  }

  .col.drag-over{
    background:#F3F1FF;
    border-color:#DDD8FF;
    box-shadow:inset 0 0 0 2px #DDD8FF;
  }

  .col-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:2px 4px;
  }

  .col-head .lbl{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:13px;
    font-weight:700;
    color:#45454F;
  }

  .col-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    flex:none;
  }

  .col-count{
    font-size:11px;
    font-weight:700;
    color:var(--slate-400);
    background:#DFDFE5;
    padding:1px 8px;
    border-radius:999px;
  }

  .col-cards{
    display:flex;
    flex-direction:column;
    gap:9px;
    min-height:40px;
  }

  .card{
    background:#fff;
    border:1px solid #E5E5EA;
    border-radius:14px;
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:8px;
    cursor:grab;
    box-shadow:0 1px 2px rgba(31,31,38,.03);
    transition:box-shadow .15s,border-color .15s,opacity .15s,transform .15s;
  }

  .card:hover{
    box-shadow:0 4px 10px rgba(31,31,38,.07);
    border-color:#C9C3F4;
  }

  .card.dragging{
    opacity:.4;
    border-style:dashed;
    border-color:var(--indigo);
    transform:scale(.97);
  }

  .card-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .card-key{
    font-size:10.5px;
    font-weight:700;
    color:var(--slate-400);
  }

  .badge{
    font-size:9.5px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.02em;
    padding:2px 7px;
    border-radius:6px;
  }

  .badge-low{ background:#f1f5f9; color:#64748b; }
  .badge-medium{ background:#eff6ff; color:#2563eb; }
  .badge-high{ background:#fff7ed; color:#ea580c; }
  .badge-urgent{ background:#fef2f4; color:#e11d48; }
  .badge-blocked{ background:#fef2f4; color:#e11d48; }

  .card-title{
    font-size:12.5px;
    font-weight:700;
    color:var(--ink);
    line-height:1.4;
  }

  .card-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-top:7px;
    border-top:1px solid var(--slate-100);
  }

  .card-assignee{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:0;
  }

  .card-assignee img{
    width:19px;
    height:19px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid var(--slate-200);
    flex:none;
  }

  .card-assignee span{
    font-size:11px;
    color:var(--slate-500);
    font-weight:500;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .card-meta{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:10.5px;
    color:var(--slate-400);
    flex:none;
  }

  .card-pts{
    background:var(--slate-100);
    color:#45454F;
    font-weight:700;
    padding:2px 6px;
    border-radius:5px;
    font-size:10px;
  }

  .col-empty{
    padding:16px 8px;
    text-align:center;
    font-size:11px;
    color:var(--slate-400);
    border:1.5px dashed #D7D7DE;
    border-radius:10px;
  }

  .cta-band{
    margin-top:20px;
    padding:18px 20px;
    border-radius:14px;
    background:linear-gradient(135deg,#4F39F6,#7565F7);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
  }

  .cta-title{
    font-size:14.5px;
    font-weight:700;
    color:#fff;
  }

  .cta-sub{
    font-size:12.5px;
    color:#E9E6FA;
    margin-top:2px;
  }

  .btn{
    border:none;
    border-radius:11px;
    padding:10px 18px;
    font-size:13.5px;
    font-weight:700;
    cursor:pointer;
    transition:.15s;
    font-family:inherit;
    text-decoration:none;
    display:inline-block;
  }

  .cta-band .btn-primary{
    background:#fff;
    color:var(--primary);
  }

  .cta-band .btn-primary:hover{
    background:#F5F5F7;
  }

  .db-toggle{
    margin-top:22px;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12.5px;
    font-weight:600;
    color:var(--slate-500);
    cursor:pointer;
    user-select:none;
  }

  .db-toggle .dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--done);
    box-shadow:0 0 0 3px #10b9811f;
  }

  .db-toggle svg{
    transition:transform .15s;
  }

  .db-toggle.open svg{
    transform:rotate(90deg);
  }

  .db-panel{
    display:none;
    margin-top:10px;
    background:var(--ink);
    border-radius:14px;
    overflow:hidden;
  }

  .db-panel.open{
    display:block;
  }

  .db-panel-bar{
    display:flex;
    gap:6px;
    padding:10px 14px;
    border-bottom:1px solid #30303A;
  }

  .db-panel-bar span{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#484853;
  }

  .db-panel pre{
    margin:0;
    padding:16px;
    font-family:'JetBrains Mono',monospace;
    font-size:11.5px;
    color:#B9B0F0;
    overflow-x:auto;
    line-height:1.6;
    max-height:280px;
    overflow-y:auto;
  }

  .db-panel .caption{
    padding:8px 14px 14px;
    font-size:11px;
    color:#888895;
    border-top:1px solid #30303A;
  }

  .site-footer{
    border-top:1px solid #30303A;
    background:#1F1F26;
    color:#A9A9B4;
  }

  .footer-inner{
    max-width:1080px;
    margin:0 auto;
    padding:16px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    font-size:11px;
  }

  .footer-brand{
    color:#E5E5EA;
    font-weight:600;
  }

  .footer-description{
    color:#8D8D99;
  }

  .footer-made{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#E5E5EA;
    font-size:11px;
    font-weight:600;
  }

  .footer-made svg{
    width:24px;
    height:24px;
    flex-shrink:0;
  }

  @media (max-width:760px){
    .board{ grid-template-columns:1fr; }
    .site-nav{ display:none; }
    .site-header-inner{ padding:12px 16px; }
    .wrap{ padding:26px 16px 34px; }
  }
