:root { --sky:#00a4cb; --blue:#124274; --mid-blue:#1681b3; --line:#d8dde0; --ink:#231f20; --muted:#66758a; --bg:#f6f8f9; --panel:#fff; --bad:#ce181e; --ok:#0b7a4a; --warn:#a56200; --detail-width:clamp(360px,27vw,460px); }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html, body { height:100%; overflow:hidden; }
body { margin:0; min-height:100vh; font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:var(--bg); }
button, input, select, textarea { font:inherit; }
button { min-height:38px; border:1px solid var(--line); border-radius:6px; padding:8px 10px; background:#fff; color:var(--blue); cursor:pointer; font-weight:650; }
button:hover { border-color:var(--sky); } button:disabled { opacity:.55; cursor:not-allowed; } button.primary { color:#fff; background:var(--blue); border-color:var(--blue); } button.danger { color:#7a271a; border-color:#f3b4ad; } button.ghost { background:#f8fafc; }
input, select, textarea { display:block; width:100%; min-width:0; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); padding:8px 10px; } textarea { min-height:54px; resize:vertical; } label { display:block; color:var(--muted); font-size:12px; } label > input, label > select, label > textarea { margin-top:4px; }
header { height:auto; border-top:4px solid var(--sky); border-bottom:1px solid var(--line); background:var(--panel); padding:14px 20px; display:grid; grid-template-columns:minmax(420px,1fr) minmax(0,860px); align-items:center; gap:18px; box-shadow:0 1px 3px rgba(18,66,116,.08); }
.brand { display:flex; gap:14px; min-width:0; align-items:center; } .brand-logo { width:154px; max-height:46px; object-fit:contain; flex:0 0 auto; } h1,h2,h3 { color:var(--blue); } h1 { margin:0; font-size:20px; font-weight:760; } h2 { margin:0; font-size:16px; } h3 { margin:16px 0 8px; font-size:14px; } p { margin:3px 0 0; color:var(--muted); }
.identity { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:2px; } .login-state { color:var(--blue); font-weight:700; white-space:nowrap; } .mini { display:block; color:var(--muted); font-size:12px; margin-top:2px; }
#termbase-layout { height:calc(100vh - 92px); padding:16px 20px 24px; display:grid; grid-template-columns:minmax(700px,1fr) 12px minmax(360px,var(--detail-width)); align-items:stretch; min-height:0; }
.panel { min-height:0; height:100%; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:var(--panel); }.list-panel { border-top-right-radius:0; border-bottom-right-radius:0; }.detail-panel { border-top-left-radius:0; border-bottom-left-radius:0; }.splitter { display:flex; justify-content:center; cursor:col-resize; touch-action:none; }.splitter:before { content:""; width:3px; margin:0 4px; border-radius:999px; background:#c9d3dc; transition:.12s; }.splitter:hover:before, body.resizing .splitter:before { width:4px; background:var(--sky); }
.list-control-strip { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,340px); gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); background:#f3f6f8; }.control-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:8px; }.filter-card { border-color:#d9e5ee; background:#f8fbfe; }.result-card { border-color:#cfe3ea; background:#f7fafc; }
.filters { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:8px; align-items:end; padding:10px; }.span-1 { grid-column:span 1; }.span-2 { grid-column:span 2; }.span-3 { grid-column:span 3; }.span-4 { grid-column:span 4; }.filters button { height:40px; align-self:end; }
.metric-grid { display:flex; gap:8px; align-items:stretch; flex-wrap:wrap; padding:10px; }.metric { flex:1 1 88px; min-width:78px; border:1px solid var(--line); border-radius:6px; padding:7px 8px; background:#fff; }.metric span { display:block; color:var(--muted); font-size:12px; }.metric strong { color:var(--blue); font-size:17px; line-height:1.15; }
.table-toolbar { display:grid; grid-template-columns:minmax(300px,1fr) minmax(430px,auto); gap:10px; align-items:start; padding:10px 14px; border-bottom:1px solid var(--line); }.bulkbar,.actions,.io-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }.bulkbar { border:1px solid var(--line); border-radius:6px; padding:8px 10px; background:#fbfcfe; }.bulkbar strong { margin-right:auto; color:var(--blue); }.io-actions { justify-content:flex-end; }.io-actions button { min-height:36px; }
.drawer-panel { flex:0 0 auto; margin:0 14px 10px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:#fff; }.drawer-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-bottom:1px solid #e8edf3; }.drawer-inner { padding:12px; }.drawer-inner .actions { margin-top:10px; }
.table-wrap { flex:1 1 auto; min-height:0; overflow:auto; } table { width:100%; min-width:1000px; table-layout:fixed; border-collapse:collapse; background:#fff; } th,td { padding:8px 10px; text-align:left; vertical-align:top; overflow:hidden; text-overflow:ellipsis; border-bottom:1px solid #e8edf3; } th { position:sticky; top:0; z-index:1; background:#fbfcfe; color:var(--muted); font-size:12px; font-weight:650; } .check-col { width:44px; } tr { cursor:pointer; } tr:hover { background:#f6faff; } tr.active { background:#eaf2ff; } .compact { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow-wrap:anywhere; } .empty-cell { padding:28px; text-align:center; color:var(--muted); }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid var(--line); }.panel-body { flex:1 1 auto; min-height:0; overflow:auto; padding:12px 14px 18px; }.empty { margin:8px; padding:34px 18px; text-align:center; color:var(--muted); border:1px dashed #cfd9e3; border-radius:8px; background:#fbfcfe; }.form-section { border-top:1px solid #e8edf3; }.form-section:first-of-type { border-top:0; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.span { grid-column:1 / -1; }.form-actions { margin-top:16px; }
.pill { display:inline-flex; align-items:center; max-width:100%; border:1px solid var(--line); border-radius:999px; padding:2px 7px; color:var(--muted); background:#fbfcfe; font-size:12px; white-space:nowrap; }.pill.ok { color:var(--ok); border-color:#addcc8; background:#f1fbf6; }.pill.bad { color:var(--bad); border-color:#f3b4ad; background:#fff5f3; }.pill.warn { color:var(--warn); border-color:#f1d39a; background:#fff8e8; }.pill.neutral { color:var(--muted); }
.callout { margin:0 0 12px; padding:10px 12px; border:1px solid #cfe3ea; border-radius:8px; color:#31566d; background:#f7fbfd; }.callout.bad { color:#7a271a; border-color:#f3b4ad; background:#fff5f3; }.callout.ok { color:#0b5c3a; border-color:#addcc8; background:#f4fbf8; }.callout.warn { color:#714400; border-color:#f1d39a; background:#fff8e8; }
.release-list { display:grid; gap:8px; }.release-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:10px; border:1px solid #e8edf3; border-radius:6px; background:#fbfcfe; }.release-item strong,.release-item code { overflow-wrap:anywhere; }.release-item code { display:block; color:var(--muted); font-size:11px; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; }.login-card { width:min(460px,100%); border-top:4px solid var(--sky); border-radius:8px; padding:26px; background:#fff; box-shadow:0 16px 40px rgba(18,66,116,.14); }.login-card h1 { margin:18px 0 4px; }.login-brand { display:flex; align-items:center; }.login-brand img { width:auto; height:42px; max-width:100%; display:block; }.login-card form { display:grid; gap:12px; margin-top:18px; }.login-card form button { width:100%; }
dialog { width:min(560px,calc(100vw - 32px)); border:0; border-radius:8px; padding:0; box-shadow:0 20px 60px rgba(18,66,116,.28); } dialog::backdrop { background:rgba(18,66,116,.32); }.modal-card { position:relative; padding:22px; }.modal-close { position:absolute; top:10px; right:10px; min-height:32px; min-width:32px; padding:2px 8px; }.modal-card h2 { margin:0 36px 14px 0; }
@media (min-width:1700px) { .filters { grid-template-columns:repeat(12,minmax(0,1fr)); } }
@media (max-width:1240px) { .list-control-strip,.table-toolbar { grid-template-columns:1fr; }.io-actions { justify-content:flex-start; } }
@media (max-width:1080px) { html,body { height:auto; overflow:auto; } header { grid-template-columns:1fr; }.identity { justify-content:flex-start; flex-wrap:wrap; } #termbase-layout { height:auto; min-height:calc(100vh - 92px); grid-template-columns:1fr; padding:12px; }.panel { height:auto; min-height:0; }.list-panel,.detail-panel { border-radius:8px; }.detail-panel { margin-top:14px; }.splitter { display:none; }.panel-body { overflow:visible; }.filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.span-1,.span-2,.span-3,.span-4 { grid-column:span 1; } }
@media (max-width:720px) { header { padding:12px; }.brand { align-items:flex-start; }.brand-logo { width:126px; }.form-grid { grid-template-columns:1fr; }.io-actions button { width:100%; }.identity button { flex:1; }.list-control-strip,.table-toolbar { padding:10px; } }
