:root{
    --bg:#080c12;
    --bg-soft:#0d131c;
    --panel:#121a25;
    --panel-2:#172231;
    --line:rgba(255,255,255,.075);
    --line-strong:rgba(255,255,255,.14);
    --text:#e9eff8;
    --muted:#8c9bb2;
    --muted-2:#64748b;
    --green:#70e2a0;
    --green-dim:rgba(112,226,160,.14);
    --copper:#f0b45f;
    --copper-dim:rgba(240,180,95,.14);
    --violet:#b79cff;
    --violet-dim:rgba(183,156,255,.14);
    --blue:#7cc4ff;
    --radius:14px;
    --shadow:0 18px 50px rgba(0,0,0,.35);
    --sidebar:274px;
  }
  *{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{
    margin:0;
    background:
      radial-gradient(900px 520px at 76% -10%, rgba(112,226,160,.10), transparent 60%),
      radial-gradient(760px 420px at 8% 0%, rgba(124,196,255,.08), transparent 55%),
      linear-gradient(180deg,#080c12 0%,#0a1018 100%);
    color:var(--text);
    font-family:"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
    font-size:14px;
    line-height:1.5;
    min-height:100vh;
  }
  body::before{
    content:"";position:fixed;inset:0;pointer-events:none;opacity:.35;
    background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
    background-size:44px 44px;
    mask-image:linear-gradient(180deg,rgba(0,0,0,.55),transparent 75%);
  }
  button,input,select{font:inherit;color:inherit}
  button{background:none;border:0;cursor:pointer}
  img{display:block}
  .pix{image-rendering:pixelated;image-rendering:crisp-edges;object-fit:contain}
  /* larger previews of rendered 3D models look better with smooth scaling */
  .result img,.modal-icon img,.big-slot img{image-rendering:auto}

  /* ---------------------------------------------------------------- shell */
  .app{display:flex;min-height:100vh}
  .sidebar{
    width:var(--sidebar);flex:0 0 var(--sidebar);
    position:fixed;inset:0 auto 0 0;z-index:40;
    display:flex;flex-direction:column;
    background:linear-gradient(180deg,rgba(17,25,36,.96),rgba(10,15,22,.98));
    border-right:1px solid var(--line);
    backdrop-filter:blur(16px);
  }
  .brand{display:flex;align-items:center;gap:12px;padding:22px 20px 16px}
  .brand-logo{
    width:44px;height:44px;border-radius:12px;display:grid;place-items:center;
    background:linear-gradient(145deg,#1d3a2c,#12251c);
    border:1px solid rgba(112,226,160,.3);
    box-shadow:0 8px 22px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08);
  }
  .brand-logo img{width:28px;height:28px}
  .brand-title{font-weight:750;letter-spacing:.4px;font-size:16px}
  .brand-title span{color:var(--green)}
  .brand-sub{color:var(--muted);font-size:11.5px;letter-spacing:.6px;margin-top:1px}
  .nav{flex:1;overflow:auto;padding:0 12px 18px;scrollbar-width:thin;scrollbar-color:#26364a transparent}
  .nav-group{margin-top:16px}
  .nav-label{font-size:10px;letter-spacing:1.6px;color:var(--muted-2);font-weight:700;text-transform:uppercase;padding:0 10px 7px}
  .nav-item{
    width:100%;display:flex;align-items:center;gap:10px;
    padding:9px 10px;border-radius:10px;color:#b7c4d6;
    border:1px solid transparent;transition:.16s ease;margin-bottom:2px;text-align:left;
  }
  .nav-item:hover{background:rgba(255,255,255,.045);color:var(--text)}
  .nav-item.active{
    background:linear-gradient(90deg,rgba(112,226,160,.13),rgba(112,226,160,.035));
    border-color:rgba(112,226,160,.22);color:#eafff3;
  }
  .nav-item.active .nav-ico{box-shadow:0 0 0 1px rgba(112,226,160,.25)}
  .nav-ico{
    width:24px;height:24px;border-radius:7px;display:grid;place-items:center;
    background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);flex:0 0 24px;
  }
  .nav-ico img{width:16px;height:16px}
  .nav-name{flex:1;font-size:12.8px;font-weight:560}
  .nav-count{
    font-size:10.5px;color:var(--muted);background:rgba(255,255,255,.05);
    border:1px solid var(--line);border-radius:999px;padding:1px 7px;min-width:26px;text-align:center;
  }
  .nav-item.active .nav-count{color:var(--green);border-color:rgba(112,226,160,.25);background:rgba(112,226,160,.08)}
  .side-foot{padding:12px 20px 18px;border-top:1px solid var(--line);color:var(--muted-2);font-size:10.5px;line-height:1.6}
  .side-foot b{color:var(--muted);font-weight:600}

  .main{flex:1;min-width:0;margin-left:var(--sidebar);padding:0 30px 60px}
  .topbar{
    position:sticky;top:0;z-index:30;margin:0 -30px 0;padding:18px 30px 14px;
    display:flex;align-items:center;gap:18px;
    background:linear-gradient(180deg,rgba(8,12,18,.94),rgba(8,12,18,.78));
    backdrop-filter:blur(18px);border-bottom:1px solid var(--line);
  }
  .menu-btn{display:none;width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.04);align-items:center;justify-content:center}
  .topbar-left{min-width:0;flex:1}
  .page-title{font-size:23px;font-weight:760;letter-spacing:.2px;margin:0;line-height:1.2}
  .page-title .accent{color:var(--green)}
  .page-sub{color:var(--muted);font-size:11.5px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .search{
    position:relative;width:min(360px,38vw);flex:0 1 360px;
  }
  .search input{
    width:100%;height:40px;border-radius:11px;border:1px solid var(--line);
    background:rgba(255,255,255,.045);padding:0 62px 0 38px;outline:none;
    transition:.18s;font-size:12.8px;
  }
  .search input::placeholder{color:#6f7f94}
  .search input:focus{border-color:rgba(112,226,160,.45);background:rgba(112,226,160,.045);box-shadow:0 0 0 3px rgba(112,226,160,.08)}
  .search svg{position:absolute;left:13px;top:11px;width:18px;height:18px;color:#75849a}
  .search kbd{
    position:absolute;right:10px;top:10px;font-size:10px;color:#7d8ca1;
    border:1px solid var(--line-strong);border-bottom-width:2px;border-radius:5px;padding:1px 6px;background:rgba(0,0,0,.18);
  }
  .filters{display:flex;align-items:center;gap:12px;margin:18px 0 8px;flex-wrap:wrap}
  .chips{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
  .chip{
    display:inline-flex;align-items:center;gap:7px;height:31px;padding:0 11px;border-radius:999px;
    border:1px solid var(--line);background:rgba(255,255,255,.035);color:#aebbd0;
    font-size:11.8px;transition:.15s;white-space:nowrap;
  }
  .chip:hover{border-color:var(--line-strong);color:var(--text);background:rgba(255,255,255,.06)}
  .chip.active{color:#f2fff7;border-color:rgba(112,226,160,.42);background:rgba(112,226,160,.12)}
  .chip-dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px}
  .chip .c{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
  .chip.active .c{color:rgba(233,255,243,.7)}
  .toolbar-right{margin-left:auto;display:flex;align-items:center;gap:12px}
  .result-line{font-size:11.5px;color:var(--muted)}
  .result-line b{color:var(--text);font-weight:650}
  .select{
    height:31px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.04);
    padding:0 28px 0 10px;font-size:11.5px;color:#b9c6d8;outline:none;
    appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238c9bb2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 10px center;
  }

  /* ----------------------------------------------------------------- hero */
  .hero{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0 8px}
  .stat{
    position:relative;overflow:hidden;padding:15px 16px 14px;border-radius:var(--radius);
    border:1px solid var(--line);
    background:linear-gradient(155deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
  }
  .stat::after{content:"";position:absolute;width:110px;height:110px;right:-40px;top:-50px;border-radius:50%;background:var(--tint,var(--green));opacity:.09;filter:blur(8px)}
  .stat-top{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;letter-spacing:.4px}
  .stat-top img{width:18px;height:18px;opacity:.9}
  .stat-value{font-size:25px;font-weight:760;margin-top:7px;letter-spacing:.3px}
  .stat-value small{font-size:11px;color:var(--muted);font-weight:500;margin-left:5px}
  .stat-foot{font-size:10.5px;color:var(--muted-2);margin-top:2px}

  /* -------------------------------------------------------------- sections */
  .content{margin-top:14px}
  .section{margin-top:26px}
  .section-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
  .section-ico{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.045);border:1px solid var(--line)}
  .section-ico img{width:18px;height:18px}
  .section-title{font-size:15px;font-weight:700;letter-spacing:.2px}
  .section-sub{font-size:11px;color:var(--muted);margin-left:2px}
  .section-count{font-size:10.5px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 8px;margin-left:auto}
  .section-rule{height:1px;flex:1;background:linear-gradient(90deg,var(--line),transparent)}
  .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(304px,1fr));gap:12px}

  /* ----------------------------------------------------------------- cards */
  .card{
    position:relative;display:flex;flex-direction:column;min-width:0;
    border-radius:var(--radius);border:1px solid var(--line);
    background:linear-gradient(165deg,rgba(24,34,48,.9),rgba(15,22,32,.92));
    overflow:hidden;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
    --accent:var(--green);
  }
  .card::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(180deg,var(--accent),transparent 85%);opacity:.75}
  .card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.16);box-shadow:0 16px 34px rgba(0,0,0,.34)}
  .card-head{display:flex;align-items:flex-start;gap:12px;padding:14px 14px 0 16px}
  .result{position:relative;flex:0 0 52px;width:52px;height:52px;border-radius:11px;display:grid;place-items:center;
    background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.1),rgba(255,255,255,.02) 70%);
    border:1px solid var(--line);
  }
  .result img{width:34px;height:34px}
  .result-count{
    position:absolute;right:-5px;bottom:-5px;min-width:20px;height:19px;padding:0 5px;border-radius:6px;
    background:#0c131c;border:1px solid rgba(255,255,255,.22);font-size:10.5px;font-weight:700;
    display:grid;place-items:center;color:#eafff3;font-variant-numeric:tabular-nums;
  }
  .card-titles{min-width:0;flex:1;padding-top:1px}
  .card-title{font-size:13.8px;font-weight:680;line-height:1.32;margin:0 0 5px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .card-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:10.4px;color:var(--muted)}
  .tag{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:1px 6px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);white-space:nowrap}
  .tag .td{width:5px;height:5px;border-radius:50%}
  .station-ico{flex:0 0 auto;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.045);border:1px solid var(--line);margin-left:2px}
  .station-ico img{width:17px;height:17px}
  .card-body{padding:12px 16px 10px;min-height:66px}
  .mini-grid{display:grid;gap:3px;grid-template-columns:repeat(3,31px);grid-auto-rows:31px;width:max-content;margin:0 auto}
  .slot{
    position:relative;width:31px;height:31px;border-radius:5px;display:grid;place-items:center;
    background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.07);
  }
  .slot.air{background:rgba(255,255,255,.012);border-color:rgba(255,255,255,.035)}
  .slot img{width:21px;height:21px}
  .slot-count{position:absolute;right:1px;bottom:0;font-size:9px;font-weight:700;color:#eafff3;text-shadow:0 1px 2px #000,0 0 3px #000}
  .ing-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
  .ing-chip{
    display:inline-flex;align-items:center;gap:5px;padding:3px 7px 3px 4px;border-radius:7px;
    background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.065);min-height:29px;
  }
  .ing-chip img{width:20px;height:20px}
  .ing-chip .nm{font-size:10.6px;color:#c8d4e4;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ing-chip .ct{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
  .ing-more{font-size:10.4px;color:var(--muted);padding-left:2px}
  .ing-line{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);flex-wrap:wrap}
  .ing-line b{color:#cdd9e8;font-weight:600}
  .mini-label{font-size:9.5px;letter-spacing:1.2px;color:var(--muted-2);font-weight:700;margin-bottom:6px;text-transform:uppercase}
  .card-foot{
    margin-top:auto;display:flex;align-items:center;gap:8px;padding:9px 14px 10px 16px;
    border-top:1px solid rgba(255,255,255,.055);background:rgba(0,0,0,.12);
  }
  .rid{font-family:"Cascadia Code",Consolas,monospace;font-size:9.7px;color:#73839a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
  .view-more{font-size:10px;color:var(--muted);white-space:nowrap}
  .card:hover .view-more{color:var(--accent)}

  /* ---------------------------------------------------------------- empty */
  .empty{padding:60px 20px;text-align:center;border:1px dashed rgba(255,255,255,.12);border-radius:var(--radius);background:rgba(255,255,255,.015);margin-top:18px}
  .empty-ico{width:54px;height:54px;margin:0 auto 14px;opacity:.55}
  .empty h3{margin:0 0 5px;font-size:15px}
  .empty p{margin:0 0 16px;color:var(--muted);font-size:12px}
  .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;padding:0 14px;border-radius:9px;border:1px solid var(--line-strong);background:rgba(255,255,255,.045);font-size:12px;color:#d7e2f1}
  .btn:hover{background:rgba(255,255,255,.08)}
  .btn-primary{background:rgba(112,226,160,.13);border-color:rgba(112,226,160,.4);color:#dfffee}
  .load-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;padding:28px 0 8px}
  .load-note{font-size:10.5px;color:var(--muted-2)}

  /* ---------------------------------------------------------------- modal */
  dialog{
    width:min(920px,calc(100vw - 32px));max-height:calc(100vh - 40px);padding:0;border:1px solid rgba(255,255,255,.16);
    border-radius:18px;background:linear-gradient(165deg,#16202d,#0e151f);color:var(--text);box-shadow:0 30px 90px rgba(0,0,0,.65);
    overflow:hidden;
  }
  dialog::backdrop{background:rgba(3,6,10,.72);backdrop-filter:blur(6px)}
  .modal-scroll{max-height:calc(100vh - 40px);overflow:auto;scrollbar-width:thin;scrollbar-color:#2a3b50 transparent}
  .modal-head{
    position:sticky;top:0;z-index:5;display:flex;align-items:flex-start;gap:14px;padding:20px 22px 16px;
    background:linear-gradient(180deg,rgba(22,32,45,.98),rgba(22,32,45,.9));
    border-bottom:1px solid var(--line);backdrop-filter:blur(12px);
  }
  .modal-icon{width:64px;height:64px;flex:0 0 64px;border-radius:14px;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.12),rgba(255,255,255,.025) 70%);border:1px solid var(--line-strong)}
  .modal-icon img{width:44px;height:44px}
  .modal-head-text{flex:1;min-width:0}
  .modal-title{font-size:19px;font-weight:760;line-height:1.3;margin:2px 0 6px}
  .modal-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:11px}
  .close-btn{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:rgba(255,255,255,.04);display:grid;place-items:center;color:#a9b7c9;font-size:18px}
  .close-btn:hover{background:rgba(255,255,255,.09);color:#fff}
  .modal-body{padding:20px 22px 24px;display:grid;grid-template-columns:minmax(250px,1fr) 1.2fr;gap:24px}
  .panel-title{font-size:10.5px;letter-spacing:1.5px;color:var(--muted-2);font-weight:700;text-transform:uppercase;margin:0 0 10px}
  .big-grid{display:grid;grid-template-columns:repeat(3,56px);grid-auto-rows:56px;gap:5px;width:max-content}
  .big-slot{position:relative;width:56px;height:56px;border-radius:8px;display:grid;place-items:center;background:rgba(0,0,0,.24);border:1px solid rgba(255,255,255,.08)}
  .big-slot.air{background:rgba(255,255,255,.012);border-color:rgba(255,255,255,.035)}
  .big-slot img{width:38px;height:38px}
  .big-slot .slot-count{font-size:10.5px;right:3px;bottom:1px}
  .detail-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px dashed rgba(255,255,255,.06);font-size:11.6px}
  .detail-row:last-child{border-bottom:0}
  .detail-key{color:var(--muted);white-space:nowrap}
  .detail-val{color:#d8e3f1;text-align:right;word-break:break-all}
  .detail-val code{font-family:"Cascadia Code",Consolas,monospace;font-size:10.6px;color:#9fb3c9}
  .ing-list{display:flex;flex-direction:column;gap:6px}
  .ing-item{display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:9px;background:rgba(255,255,255,.028);border:1px solid rgba(255,255,255,.06)}
  .ing-item img{width:26px;height:26px}
  .ing-item .nm{flex:1;min-width:0;font-size:12px;color:#d5e0ef;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ing-item .ct{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
  .tag-note{margin-top:8px;font-size:10.5px;color:var(--muted);line-height:1.5}
  .tag-note b{color:#c8d5e5;font-weight:600}
  .modal-note{margin-top:12px;padding:9px 11px;border-radius:8px;background:rgba(112,226,160,.06);border:1px solid rgba(112,226,160,.14);font-size:10.6px;color:#a9cbbb;line-height:1.55}
  .modal-foot{display:flex;align-items:center;gap:10px;padding:0 22px 20px;flex-wrap:wrap}
  .copy-state{font-size:10.5px;color:var(--green);opacity:0;transition:.2s}
  .copy-state.show{opacity:1}
  .side-info{display:flex;flex-direction:column;gap:18px}

  @media (max-width:1180px){
    .hero{grid-template-columns:repeat(2,1fr)}
    .modal-body{grid-template-columns:1fr}
  }
  @media (max-width:980px){
    .sidebar{transform:translateX(-100%);transition:transform .22s ease;box-shadow:var(--shadow)}
    body.nav-open .sidebar{transform:translateX(0)}
    body.nav-open::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:35}
    .main{margin-left:0;padding:0 16px 50px}
    .topbar{margin:0 -16px;padding:14px 16px 12px;gap:10px}
    .menu-btn{display:flex}
    .search{width:100%;flex-basis:100%;order:3}
    .topbar{flex-wrap:wrap}
    .page-title{font-size:19px}
    .page-sub{white-space:normal}
    .grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}
    .hero{grid-template-columns:repeat(2,1fr)}
  }
  @media (max-width:560px){
    .hero{grid-template-columns:1fr 1fr}
    .grid{grid-template-columns:1fr}
    .filters{gap:8px}
    .toolbar-right{width:100%;margin-left:0;justify-content:space-between}
    .modal-head{padding:16px}
    .modal-body{padding:16px}
    .big-grid{grid-template-columns:repeat(3,50px)}
    .big-slot{width:50px;height:50px}
    .big-slot img{width:34px;height:34px}
    .stat-value{font-size:22px}
  }
  @media (prefers-reduced-motion:reduce){
    *{transition:none!important;scroll-behavior:auto!important}
  }
