:root{font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color-scheme:light;--ink:#172431;--sub:#536877;--paper:#f1f5f6;--panel:#fff;--edge:#d8e3e6;--accent:#087963;--accent-ink:#fff;--soft:#e2f4ee;--warn:#974111;--flash:#fff0aa}
:root[data-theme=dark]{color-scheme:dark;--ink:#edf6f5;--sub:#b2c6c7;--paper:#101d21;--panel:#18292e;--edge:#365057;--accent:#70e0bc;--accent-ink:#102a24;--soft:#254439;--warn:#ffb78d;--flash:#5e4f17}
*{box-sizing:border-box} body{margin:0;background:var(--paper);color:var(--ink)} p{line-height:1.5}
header{height:auto;min-height:66px;padding:.75rem 4vw;display:flex;justify-content:space-between;gap:1rem;align-items:center;background:var(--panel);border-bottom:1px solid var(--edge)}
.brand{display:flex;align-items:center;gap:.65rem;font-weight:750} .brand img{width:36px;height:36px} nav,.toolbar,.actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center} main{width:min(1350px,94vw);margin:2rem auto}
button,.button{cursor:pointer;font:inherit;font-weight:650;border-radius:8px;border:1px solid var(--edge);padding:.48rem .8rem;background:var(--panel);color:var(--ink);text-decoration:none;white-space:nowrap} .primary,.active{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)} button:hover,.button:hover{outline:2px solid var(--accent);outline-offset:1px} button:disabled{opacity:.55;cursor:default}
.panel,dialog{background:var(--panel);border:1px solid var(--edge);border-radius:14px;padding:1rem;color:var(--ink)} .login,.download{width:min(440px,94vw);margin:10vh auto;padding:2rem} .login label,.field{display:grid;gap:.3rem;margin:.65rem 0} .login input,.field input,.field select,.field textarea{width:100%}
input,select,textarea{font:inherit;padding:.5rem .6rem;color:var(--ink);background:var(--panel);border:1px solid var(--edge);border-radius:8px;min-width:0} textarea{min-height:85px} h1,h2,h3{margin:.15rem 0 .8rem} h1{font-size:1.65rem} h2{font-size:1.12rem} .muted,small{color:var(--sub)} .error,.danger,.warn{color:var(--warn)} .error:empty{display:none}
.table{overflow:auto} table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem} th,td{padding:.67rem .55rem;border-bottom:1px solid var(--edge);white-space:nowrap} th{color:var(--sub);font-weight:600} td.wrap{white-space:normal;min-width:8rem} .pill{display:inline-block;border-radius:999px;padding:.2rem .5rem;background:var(--soft)} .flash{background:var(--flash)} .space{margin-top:1rem} .split{display:grid;grid-template-columns:1fr 1fr;gap:1rem} .split>*{min-width:0}
dialog{width:min(92vw,620px);max-height:85vh;overflow:auto;padding:1.25rem} dialog.wide{width:min(95vw,1200px)} dialog::backdrop{background:#07181288} .head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin-bottom:.9rem} details summary{cursor:pointer} .block{display:block} [hidden]{display:none!important} .download img{width:58px;margin-bottom:.75rem}
@media(max-width:710px){header{align-items:flex-start;flex-direction:column}.split{grid-template-columns:1fr} main{margin-top:1rem}.toolbar input{max-width:100%}}

.release-notes-body { white-space: pre-wrap; overflow-wrap: anywhere; }

.stacked-table .cell-label { display: none; }

@media (max-width: 710px) {
  #dashboard > .toolbar,
  .record-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #dashboard > .toolbar input,
  .record-filters .field:first-child { grid-column: 1 / -1; }
  .record-filters .record-presets { grid-column: 1 / -1; }
  .record-filters .field { min-width: 0; }
  .record-filters button { min-height: 44px; white-space: normal; }
  .stacked-table table,
  .stacked-table tbody { display: block; }
  .stacked-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .stacked-table tr {
    display: grid;
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: .4rem .65rem;
    margin-bottom: .75rem;
  }
  .stacked-table td {
    display: grid;
    grid-template-columns: minmax(5rem, 1fr) minmax(0, 1.7fr);
    gap: .6rem;
    align-items: start;
    padding: .35rem 0;
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .stacked-table td:last-child { border-bottom: 0; }
  .stacked-table .cell-label { display: block; color: var(--sub); }
  #dashboard button { min-height: 44px; }
}
