:root { --brand:#087b73; --shell:#f2f5fb; --line:#e5eaf2; --muted:#7d8798; --result-font-size: 12px; color:#1d2939; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif; }
* { box-sizing:border-box; } body { margin:0; background:var(--shell); font-size:13px; } button,input,select { font:inherit; }
.shell { min-height:100vh; display:grid; grid-template-columns:156px 1fr; }
.sidebar { position:fixed; inset:0 auto 0 0; width:156px; height:100vh; background:#f7f9fc; border-right:1px solid var(--line); }
.brand { height:70px; display:flex; align-items:center; gap:8px; padding:0 22px; color:var(--brand); font-weight:800; }
.brand-badge { display:grid; place-items:center; width:22px; height:22px; border-radius:5px; background:var(--brand); color:#fff; }
.nav-link { display:block; padding:14px 22px; color:#607086; text-decoration:none; }
.nav-link.active { color:var(--brand); background:#e6f1f0; border-left:3px solid var(--brand); padding-left:19px; }
.main { grid-column:2; min-width:0; } .topbar { height:70px; display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:0 24px; border-bottom:1px solid var(--line); }
.logout-button { height:26px; border:1px solid #d8deea; background:#fff; color:#607086; }
.logout-button:hover { border-color:var(--brand); color:var(--brand); }
.content { margin:18px; padding:18px; min-height:calc(100vh - 106px); background:#fff; border-radius:8px; }
.toolbar { display:grid; grid-template-columns:minmax(260px,520px) minmax(140px,180px) minmax(140px,180px) 76px; justify-content:start; gap:8px; margin-bottom:12px; }
input,select { min-width:0; height:32px; border:1px solid #d8deea; border-radius:4px; padding:0 9px; background:#fff; }
button { height:32px; border:0; border-radius:4px; padding:0 12px; cursor:pointer; } .primary { background:var(--brand); color:#fff; } .secondary { background:#eef2f7; color:#44546a; }
.result-table-tools { display:flex; align-items:center; justify-content:flex-end; gap:10px; min-height:24px; color:var(--muted); font-size:11px; }
.column-reset { height:22px; padding:0; background:transparent; color:var(--brand); }
.result-table { overflow-x:auto; --result-columns:minmax(90px,.8fr) 76px minmax(120px,1fr) minmax(210px,1.6fr) minmax(260px,2fr) 82px; }
.result-head,.result-row { display:grid; grid-template-columns:var(--result-columns); width:max(100%,var(--result-table-width,0px)); align-items:center; gap:8px; padding:0 9px; font-size:var(--result-font-size); }
.result-head { height:32px; color:var(--muted); background:#f7f9fc; border:1px solid var(--line); }
.result-heading { position:relative; min-width:0; }
.column-resizer { position:absolute; z-index:2; top:-8px; right:-4px; width:8px; height:32px; cursor:col-resize; touch-action:none; }
.column-resizer::after { content:""; position:absolute; top:7px; bottom:7px; left:3px; width:1px; background:#cbd3df; }
.column-resizer:hover::after,.column-resizer.active::after { width:2px; background:var(--brand); }
body.column-resizing { cursor:col-resize; user-select:none; }
.result-row { min-height:52px; padding-top:4px; padding-bottom:4px; border:1px solid var(--line); border-top:0; } .result-row:hover { background:#f8fbfb; }
.ellipsis { overflow:hidden; text-overflow: ellipsis; white-space:nowrap; } .source-tag,.open-link { color:var(--brand); } .open-link { text-decoration:none; }
.full-text { white-space:normal; overflow-wrap:anywhere; }
.snippet-preview { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
.result-actions { display:flex; flex-direction:column; align-items:stretch; gap:3px; }
.detail-link { height:20px; display:flex; align-items:center; justify-content:center; padding:0 6px; border-radius:3px; background:var(--brand); color:#fff; font-size:12px; white-space:nowrap; }
.result-actions .open-link { display:flex; align-items:center; justify-content:center; height:20px; padding:0 6px; border:1px solid var(--brand); border-radius:3px; background:#fff; white-space:nowrap; }
mark { color:#8a5200; background:#fff0b3; } .status { padding:38px 12px; text-align:center; color:var(--muted); }
.pager { display:flex; justify-content:flex-end; align-items:center; gap:8px; margin-top:12px; } .hidden { display:none!important; }
.stats { display:grid; grid-template-columns:repeat(3,minmax(120px,180px)); gap:10px; margin-bottom:14px; } .stat { padding:12px; background:#f7f9fc; border:1px solid var(--line); border-radius:6px; } .stat strong { display:block; font-size:20px; color:var(--brand); }
.user-table { width:100%; border-collapse:collapse; } .user-table th,.user-table td { padding:7px 8px; border-bottom:1px solid var(--line); text-align:left; font-size:12px; } .user-table th { color:var(--muted); background:#f7f9fc; }
.space-dropdown { position:relative; width:230px; }
.space-dropdown summary { height:32px; display:flex; align-items:center; overflow:hidden; padding:0 9px; border:1px solid #d8deea; border-radius:4px; background:#fff; cursor:pointer; list-style:none; text-overflow:ellipsis; white-space:nowrap; }
.space-dropdown summary::-webkit-details-marker { display:none; }
.space-dropdown-menu { position:absolute; z-index:20; top:36px; width:280px; max-height:240px; overflow:auto; padding:6px; border:1px solid #d8deea; border-radius:6px; background:#fff; box-shadow:0 8px 24px rgba(31,46,75,.14); }
.space-option { display:flex; align-items:center; gap:7px; padding:6px; cursor:pointer; }
.space-option:hover { background:#f7f9fc; }
.space-option input { width:14px; height:14px; flex:0 0 auto; margin:0; }
.detail-permission-toggle { width:16px; height:16px; margin:0; accent-color:var(--brand); }
.space-dropdown.readonly summary { color:#607086; }
.detail-dialog { width:min(760px,calc(100vw - 32px)); max-height:80vh; padding:0; border:0; border-radius:10px; color:#1d2939; box-shadow:0 18px 48px rgba(17,24,39,.24); }
.detail-dialog::backdrop { background:rgba(17,24,39,.45); }
.detail-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; border-bottom:1px solid var(--line); }
.detail-header h2 { margin:0; font-size:17px; }
.detail-close { width:30px; padding:0; background:#eef2f7; color:#44546a; font-size:20px; }
.detail-body { padding:16px 18px 18px; }
.detail-meta { display:grid; gap:7px; margin:0 0 12px; }
.detail-meta div { display:grid; grid-template-columns:72px 1fr; gap:8px; }
.detail-meta dt { color:var(--muted); }
.detail-meta dd { margin:0; overflow-wrap:anywhere; }
.detail-content { max-height:52vh; overflow:auto; margin:0 0 12px; padding:12px; border:1px solid var(--line); border-radius:6px; background:#f7f9fc; font:inherit; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.login-wrap { min-height:100vh; display:grid; place-items:center; } .login-card { width:360px; padding:30px; background:#fff; border-radius:10px; box-shadow:0 12px 32px rgba(31,46,75,.09); } .login-card input,.login-card button { width:100%; margin-top:12px; } .error { color:#c43232; min-height:20px; margin-top:10px; }
@media (max-width:900px) { .shell { grid-template-columns:0 1fr; } .sidebar { display:none; } .toolbar { grid-template-columns:1fr 1fr; } }
