/* Minimal, mobile-first, clean UI (ZHTW) */
:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --card2:#0e1730;
  --text:#e8eefc;
  --muted:#a9b6d3;
  --line:rgba(255,255,255,.10);
  --primary:#6ea8fe;
  --danger:#ff6b6b;
  --ok:#20c997;
  --warn:#ffd43b;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1100px 700px at 20% 0%, #172a4f 0%, var(--bg) 55%, #070b14 100%);
  color:var(--text);
}

.container{
  width:min(980px, 92vw);
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.70);
  border-bottom:1px solid var(--line);
}
.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(110,168,254,.28), rgba(255,255,255,.06));
  border:1px solid var(--line);
  font-weight:800;
}
.title{font-weight:800; letter-spacing:.2px}
.subtitle{color:var(--muted); font-size:12.5px; margin-top:2px}

.status{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}

.stack{display:flex;flex-direction:column;gap:16px; margin:16px 0 28px}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding:18px 18px;
}
.card h2{
  margin:0 0 10px;
  font-size:18px;
}
.qhint{color:var(--muted); margin:6px 0 12px; line-height:1.55}
.note{
  margin-top:12px;
  border:1px dashed rgba(255,255,255,.16);
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width:720px){
  .grid{grid-template-columns:1fr}
  .topbar .container{flex-direction:column; align-items:flex-start}
  .status{align-self:stretch; text-align:center}
}

.field{display:flex;flex-direction:column; gap:6px}
.field span{font-size:13px; color:var(--muted)}
input, textarea{
  width:100%;
  padding:11px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(8,12,24,.55);
  color:var(--text);
  outline:none;
}
textarea{resize:vertical; min-height: 90px}
input:focus, textarea:focus{border-color: rgba(110,168,254,.75); box-shadow: 0 0 0 4px rgba(110,168,254,.12)}

.choices{display:flex; flex-direction:column; gap:10px}
.choices label{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.choices input{width:auto; margin-top:3px}

.fold{
  margin-top:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  padding:10px 12px;
}
.fold summary{cursor:pointer; color:var(--muted)}
.foldBody{margin-top:10px}

.cols{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:720px){.cols{grid-template-columns:1fr}}
.miniTitle{font-weight:700; margin-bottom:6px}
.miniList{margin:0; padding-left:18px; color:var(--muted)}
.miniList li{margin:4px 0}

.legend{
  display:flex; gap:14px; flex-wrap:wrap;
  color:var(--muted); font-size:13px;
  margin:8px 0 12px;
}
.tableLike{
  border:1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow:hidden;
}
.row{
  display:grid;
  grid-template-columns: 160px 1fr 130px;
  gap:0;
}
.row > div{
  padding:10px 12px;
  border-top:1px solid rgba(255,255,255,.08);
}
.row.head > div{
  background: rgba(255,255,255,.04);
  border-top:none;
  color: var(--muted);
  font-size:13px;
}
.tiny{
  width:100%;
  text-transform:lowercase;
  text-align:center;
  font-weight:800;
}
@media (max-width:720px){
  .row{grid-template-columns: 1fr}
  .row.head{display:none}
  .row > div:nth-child(1){font-weight:800}
  .row > div:nth-child(3){padding-top:0}
}

.actions .btnRow{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end
}
.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 14px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:700;
}
.btn.primary{background: rgba(110,168,254,.18); border-color: rgba(110,168,254,.55)}
.btn.danger{background: rgba(255,107,107,.14); border-color: rgba(255,107,107,.55)}
.btn.ghost{background: rgba(255,255,255,.03)}
.btn:active{transform: translateY(1px)}
.small{font-size:12.5px}
.muted{color:var(--muted)}
.footer{color:var(--muted); display:flex; justify-content:space-between; gap:12px; padding:14px 2px 26px}
