:root { --bg:#101412; --panel:#181e1b; --panel-2:#202822; --line:#303b33; --text:#ecf1ea; --muted:#a1afa3; --accent:#c4ec8c; --danger:#ffb5ac; --radius:12px; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--text); background:var(--bg); font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; }
body:has(dialog[open]) { overflow:hidden; }
[hidden] { display:none !important; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
button,input,select,textarea { font:inherit; }
button { border:1px solid var(--line); color:var(--text); background:var(--panel-2); border-radius:8px; padding:9px 16px; font-size:14px; font-weight:600; cursor:pointer; line-height:1.3; transition:background-color .15s,border-color .15s,color .15s; }
button:hover:not(:disabled) { background:#2c382e; border-color:#52634f; }
button:disabled { opacity:.45; cursor:not-allowed; }
button.primary { background:var(--accent); color:#1c2815; border-color:var(--accent); }
button.primary:hover:not(:disabled) { background:#d5f7a7; }
button.primary:disabled { opacity:1; background:#253021; color:#7f9572; border-color:#34432f; }
button.ghost { background:transparent; }
button.danger { color:var(--danger); border-color:#63423b; }
button.small,.button-link { padding:7px 11px; font-size:13px; }
button.icon-button { display:inline-grid; place-items:center; flex:none; width:36px; height:36px; padding:0; font-size:22px; font-weight:400; line-height:1; color:var(--muted); background:transparent; border-color:transparent; }
button.icon-button:hover:not(:disabled) { color:var(--text); background:var(--panel-2); border-color:var(--line); }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
input,select,textarea { width:100%; padding:9px 12px; font-size:15px; background:#111713; color:var(--text); border:1px solid #3b473e; border-radius:8px; min-height:40px; transition:border-color .15s; }
input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled) { border-color:#4d5c50; }
input::placeholder,textarea::placeholder { color:#6f7d72; }
input[type=checkbox] { width:18px; min-height:18px; height:18px; accent-color:var(--accent); }
input[type=file] { padding:6px; font-size:13px; color:var(--muted); cursor:pointer; }
input[type=file]::file-selector-button { margin-right:12px; padding:6px 12px; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); color:var(--text); font:inherit; font-weight:600; cursor:pointer; }
input[type=file]:hover::file-selector-button { background:#2c382e; border-color:#52634f; }
textarea { resize:vertical; min-height:110px; line-height:1.5; }
label { display:block; font-size:13px; font-weight:600; margin-bottom:7px; }
label.check { display:flex; align-items:center; gap:9px; margin:0; font-weight:400; }
fieldset { border:0; padding:0; margin:0; min-width:0; }
fieldset:disabled { opacity:.6; }
code { color:var(--accent); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.88em; overflow-wrap:anywhere; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:30px; line-height:1.2; font-weight:650; letter-spacing:-.8px; }
h2 { font-size:22px; letter-spacing:-.4px; }
h3 { font-size:17px; }
p { line-height:1.65; }
.muted,.hint { color:var(--muted); }
.hint { font-size:12px; line-height:1.5; margin:7px 0 12px; }
.eyebrow { display:block; color:var(--accent); font-size:11px; font-weight:700; letter-spacing:1.8px; margin-bottom:16px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--text); font-size:15px; font-weight:800; letter-spacing:2px; white-space:nowrap; }
.brand:hover { text-decoration:none; }
.brand .muted { font-size:10px; font-weight:500; letter-spacing:1.2px; }
.brand-mark { display:grid; place-items:center; width:34px; height:34px; background:var(--accent); color:#1c2815; font-size:23px; border-radius:6px; letter-spacing:0; }
.login-layout { min-height:100vh; display:grid; grid-template-columns:1.15fr 1fr; gap:8vw; align-items:center; padding:64px max(6vw,24px); max-width:1500px; margin:auto; }
.login-intro .brand { margin-bottom:100px; }
.login-intro h1 { font-size:clamp(34px,4vw,58px); letter-spacing:-2px; }
.login-intro>p { color:var(--muted); max-width:460px; font-size:17px; }
.login-features { display:flex; flex-direction:column; gap:15px; color:var(--muted); font-size:12px; margin-top:40px; }
.login-card { max-width:450px; padding:38px; border:1px solid var(--line); background:var(--panel); border-radius:16px; box-shadow:0 24px 80px #0003; }
.login-card h2 { margin-bottom:15px; }
.login-card form { margin-top:28px; }
.code-input { font-size:30px; letter-spacing:8px; text-align:center; padding:14px; }
.full-width { width:100%; }
.topbar { position:sticky; top:0; z-index:10; height:76px; padding:0 32px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; background:#141a16; gap:16px; }
.topbar-user { display:flex; align-items:center; gap:20px; }
#identity { color:var(--muted); font-size:12px; text-align:right; }
#identity strong { color:var(--text); display:block; margin-bottom:4px; }
.app-layout { display:grid; grid-template-columns:235px minmax(0,1fr); min-height:calc(100vh - 76px); background:linear-gradient(to right,#141a16 234px,var(--line) 234px 235px,transparent 235px); }
.sidebar { position:sticky; top:76px; align-self:start; height:calc(100vh - 76px); overflow-y:auto; padding:32px 18px; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:35px; background:#141a16; }
.nav-caption { display:block; color:#77897b; font-size:10px; letter-spacing:1.2px; font-weight:700; padding:0 13px; }
.nav-main,.department-nav { display:flex; flex-direction:column; gap:2px; margin-top:10px; }
.nav-main a,.department-nav button { border:0; background:transparent; color:var(--muted); font-size:14px; padding:10px 13px; text-align:left; border-radius:8px; font-weight:500; }
.nav-main a.active,.department-nav button.active { background:#263223; color:var(--accent); }
.nav-main a:hover,.department-nav button:hover:not(.active) { text-decoration:none; color:var(--text); background:#1c241e; }
.sidebar-footer { margin-top:auto; padding:0 13px; color:var(--muted); font-size:11px; line-height:2.2; }
.sidebar-footer a { color:var(--muted); }
.connection-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent); margin-right:5px; }
main { padding:38px clamp(20px,4vw,60px); max-width:1500px; width:100%; margin:0 auto; min-width:0; }
.page-header { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:28px; }
.page-header h1 { margin-bottom:9px; overflow-wrap:anywhere; }
.page-header p { color:var(--muted); font-size:13px; margin:0; }
.actions { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.toolbar { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:22px; align-items:center; }
.toolbar select { width:auto; min-width:180px; }
.toolbar .check { margin-left:auto; font-size:13px; }
.toolbar input[type=search] { flex:1 1 240px; width:auto; min-width:0; }
.member-name { display:flex; align-items:center; gap:8px; font-weight:600; font-size:14px; overflow-wrap:anywhere; }
.role-list { display:flex; flex-wrap:wrap; gap:5px; min-width:170px; }
.member-table td:first-child { min-width:180px; }
.member-table td:nth-child(n+3) { white-space:nowrap; }
/* Discord-style role pill: neutral text, the role color as a dot and tinted border. */
.badge.role-badge { --role-color:#6f7d72; gap:6px; color:#c1cdc2; background:#1d2420; border:1px solid color-mix(in srgb,var(--role-color) 50%,transparent); }
.badge.role-badge.role-configured { color:var(--text); background:#242d27; }
.role-dot { width:8px; height:8px; border-radius:50%; flex:none; background:var(--role-color); }
.task-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr)); gap:16px; }
.task-card { display:flex; flex-direction:column; border:1px solid var(--line); padding:22px; border-radius:var(--radius); background:var(--panel); color:var(--text); transition:border-color .15s,transform .15s; }
.task-card:hover { border-color:#809865; transform:translateY(-2px); text-decoration:none; }
.card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:18px; }
.task-card h2 { font-size:18px; margin-bottom:12px; line-height:1.4; overflow-wrap:anywhere; }
.task-card p { color:var(--muted); font-size:13px; flex:1; overflow-wrap:anywhere; }
.card-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.badge { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; background:#2c3730; color:#c1cdc2; border-radius:5px; font-size:11px; font-weight:700; letter-spacing:.3px; white-space:nowrap; }
.badge.completed,.badge.ready { color:var(--accent); background:#2b3d23; }
.badge.in_progress { color:#c7d8ff; background:#26364b; }
.badge.cancelled,.badge.error { color:var(--danger); background:#3d2a27; }
.badge.pending { color:#f1d79a; background:#3c3524; }
.task-type { color:var(--muted); font-size:12px; }
.task-tag { color:var(--muted); font-weight:600; }
.progress-line { margin-top:10px; }
.progress-line>div { display:flex; justify-content:space-between; gap:10px; font-size:12px; color:var(--muted); margin-bottom:8px; }
progress { width:100%; display:block; border:0; height:5px; accent-color:var(--accent); border-radius:5px; background:#303a31; }
progress::-webkit-progress-bar { background:#303a31; border-radius:5px; }
progress::-webkit-progress-value { background:var(--accent); border-radius:5px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:24px; margin-bottom:18px; min-width:0; }
.panel-title { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 16px; align-items:center; margin-bottom:20px; }
.panel-title h2 { font-size:17px; margin:0; }
.detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:20px; align-items:start; }
.detail-main { min-width:0; }
.description { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; font-size:14px; }
.metadata { display:grid; gap:17px; margin:0; }
.metadata dt { color:var(--muted); font-size:12px; margin-bottom:4px; }
.metadata dd { margin:0; font-size:14px; overflow-wrap:anywhere; line-height:1.6; }
.breadcrumb { display:inline-block; font-size:12px; color:var(--muted); margin-bottom:23px; }
.section-note { font-size:12px; color:var(--muted); }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
th { color:var(--muted); font-size:11px; letter-spacing:.6px; font-weight:600; padding:11px 10px; border-bottom:1px solid var(--line); }
td { padding:14px 10px; border-bottom:1px solid #29322b; vertical-align:middle; }
td:first-child,th:first-child { padding-left:0; }
td:last-child,th:last-child { padding-right:0; }
tbody tr:last-child td { border-bottom:0; padding-bottom:0; }
td code { white-space:normal; }
td .actions { flex-wrap:nowrap; justify-content:flex-end; }
tr.excluded { opacity:.6; }
th .sort-button { padding:0; border:0; border-radius:0; background:none; color:inherit; font-size:inherit; letter-spacing:inherit; font-weight:inherit; }
th .sort-button:hover:not(:disabled) { background:none; color:var(--text); }
.resource-progress { min-width:140px; }
.resource-progress progress { margin-top:8px; }
.resource-progress .muted { display:block; margin-top:5px; font-size:11px; }
.list-rows { list-style:none; margin:0; padding:0; }
.list-rows li { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:14px 0; border-bottom:1px solid var(--line); }
.list-rows li:last-child { border:0; padding-bottom:0; }
.list-rows a { color:var(--text); font-size:14px; overflow-wrap:anywhere; }
.empty,.loading { padding:50px 20px; text-align:center; color:var(--muted); border:1px dashed var(--line); border-radius:var(--radius); line-height:1.7; }
.empty h2 { color:var(--text); font-size:20px; }
.loading { animation:breathe 1.5s ease-in-out infinite; }
.pagination { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:20px; color:var(--muted); font-size:12px; }
.pagination:not(:has(button:enabled)) button { display:none; }
.message { padding:16px 0; border-bottom:1px solid var(--line); }
.message:first-child { padding-top:0; }
.message-head { display:flex; gap:10px; align-items:center; flex-wrap:wrap; color:var(--muted); font-size:11px; margin-bottom:9px; }
.message p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; margin:0; }
.message-form { margin-top:20px; }
.message-form .actions { justify-content:space-between; flex-wrap:nowrap; gap:16px; margin-top:10px; }
.message-form .actions .hint { margin:0; }
.message-form .actions button { flex:none; }
.notice { padding:12px 15px; border-radius:8px; border:1px solid #4c603e; background:#243021; color:#cce7b2; font-size:12px; line-height:1.6; margin-bottom:18px; overflow-wrap:anywhere; }
.notice.warning { border-color:#655735; background:#312b20; color:#e7d6a9; }
dialog { color:var(--text); border:1px solid #46533e; border-radius:16px; background:var(--panel); width:min(760px,calc(100vw - 32px)); max-height:90dvh; padding:0; box-shadow:0 30px 120px #0008; }
dialog::backdrop { background:#050a07bb; backdrop-filter:blur(3px); }
.modal-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:25px 28px 0; }
.modal-header .eyebrow { margin-bottom:9px; }
.modal-header h2 { margin-bottom:20px; }
.modal-header .icon-button { margin:-4px -8px 0 0; }
#modal .modal-header { position:sticky; top:0; z-index:2; background:var(--panel); }
#modal-body { padding:0 28px 28px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:17px; }
.field { margin-bottom:18px; }
.form-grid .field { margin:0; }
.form-grid+.field,.field+.form-grid { margin-top:18px; }
.coordinate-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.coordinates { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.form-section { border-top:1px solid var(--line); padding-top:20px; margin-top:23px; }
.form-section h3 { margin-bottom:16px; }
.form-footer { display:flex; justify-content:flex-end; gap:10px; margin-top:25px; border-top:1px solid var(--line); padding-top:20px; }
#modal .form-footer { position:sticky; bottom:0; z-index:2; background:var(--panel); margin:25px -28px -28px; padding:16px 28px 22px; }
.form-error { color:var(--danger); background:#3a2522; padding:12px; border-radius:7px; font-size:12px; line-height:1.6; margin:15px 0; white-space:pre-wrap; }
.editor-row,.editor-head { display:grid; grid-template-columns:minmax(140px,1fr) 100px 24px 38px; gap:8px; align-items:center; }
.editor-row { margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.editor-row:last-child { margin-bottom:0; border-bottom:0; }
.editor-row .item-included,.editor-head span:nth-child(3) { justify-self:center; }
.editor-row .icon-button,.rule-row .icon-button { width:100%; }
.editor-head { padding:0 3px 8px; color:var(--muted); font-size:11px; }
.editor-toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:14px; }
.editor-toolbar>input { flex:1; min-width:150px; }
.editor-toolbar .check { flex:none; font-size:12px; }
.editor-row.excluded { opacity:.55; }
.rule-row { display:grid; grid-template-columns:minmax(140px,1fr) 110px 32px 32px 32px; gap:6px; align-items:center; margin-bottom:8px; }
.rule-row input { padding:9px; font-size:12px; }
tr.mvp td { background:#1f2a1c; }
.player { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.score-details { margin-top:6px; font-size:11px; color:var(--muted); }
.score-details summary { cursor:pointer; }
.score-details ul { margin:6px 0 0; padding-left:16px; line-height:1.6; }
.editor-row input { padding:9px; font-size:12px; }
.editor-warning { grid-column:1/-1; color:#e7d6a9; font-size:11px; padding-bottom:8px; overflow-wrap:anywhere; }
.editor-source { grid-column:1/-1; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.resource-editor { max-height:330px; overflow:auto; padding:3px; margin-bottom:12px; }
.item-field { min-width:0; }
.item-select,.item-display,.item-option { display:flex; align-items:center; gap:10px; min-width:0; text-align:left; }
.item-select { width:100%; padding:8px; background:#111713; font-weight:400; }
.item-select.unresolved { border-style:dashed; border-color:#8b7b49; }
.item-select-arrow { margin-left:auto; flex:none; color:var(--muted); }
.item-icon { display:grid; place-items:center; flex:none; width:36px; height:36px; border:1px solid var(--line); border-radius:8px; background:var(--panel-2); font-size:21px; }
.item-icon img { width:32px; height:32px; max-width:100%; max-height:100%; object-fit:contain; image-rendering:pixelated; }
.item-icon-small { width:20px; height:20px; border:0; border-radius:0; background:none; }
.item-icon-small img { width:20px; height:20px; }
.item-caption { display:flex; flex-direction:column; gap:4px; min-width:0; }
.item-name { font-size:13px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.item-code { display:block; max-width:100%; color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.item-caption .hint { margin:0; font-size:10px; }
#item-picker { width:min(900px,calc(100vw - 32px)); }
#item-picker[open] { display:flex; flex-direction:column; height:min(780px,90dvh); }
#item-picker .modal-header { flex:none; }
#item-picker .modal-header h2 { margin-bottom:12px; }
.item-picker-body { display:flex; flex-direction:column; min-height:0; padding:0 28px 20px; }
.item-picker-body>label,.item-picker-body>input,.item-picker-body>p,.item-picker-body>button { flex:none; }
.item-categories { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 4px; flex:none; }
.item-categories button { display:flex; align-items:center; gap:6px; font-size:11px; padding:7px 10px; }
.item-categories button[aria-pressed=true] { color:var(--accent); background:#2b3d23; border-color:#647e4d; }
.item-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; overflow:auto; min-height:0; align-content:start; padding:4px; margin:-4px; }
.item-option { padding:10px; background:#111713; align-items:flex-start; }
.item-option[aria-pressed=true] { border-color:var(--accent); background:#263223; }
.item-option .item-caption { gap:7px; }
.item-option .item-name { font-size:12px; }
.custom-option { grid-column:1/-1; flex-wrap:wrap; }
.item-empty { grid-column:1/-1; color:var(--muted); text-align:center; padding:25px 10px; font-size:13px; }
#item-show-more { margin-top:12px; }
.item-picker-help { margin:14px 0 0; }
@media (max-width:760px) {
  .editor-head { grid-template-columns:minmax(100px,1fr) 75px 20px 28px; gap:5px; }
  .editor-row .item-code { display:none; }
  .editor-row .item-select { gap:6px; padding:7px 5px; }
  .editor-row .item-name { font-size:11px; }
  .editor-row .item-icon { width:25px; height:28px; font-size:16px; }
  .item-picker-body { padding:0 16px 16px; }
  .item-results { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .item-option { flex-direction:column; gap:7px; }
  .item-picker-help { font-size:10px; }
  .item-categories { flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; }
  .item-categories button { flex:none; }
  .item-option .item-caption { width:100%; }
  .item-display .item-icon { display:none; }
}
.type-picker { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.type-picker legend { font-size:13px; font-weight:600; margin-bottom:9px; }
.type-option { position:relative; display:flex; margin:0; cursor:pointer; }
.type-option input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.type-option span { display:flex; flex-direction:column; gap:5px; width:100%; padding:14px 16px; border:1px solid var(--line); border-radius:10px; background:#111713; }
.type-option strong { font-size:15px; }
.type-option small { color:var(--muted); font-size:12px; font-weight:400; line-height:1.45; }
.type-option input:checked+span { border-color:var(--accent); background:#263223; }
.type-option input:checked+span strong { color:var(--accent); }
.type-option input:focus-visible+span { outline:2px solid var(--accent); outline-offset:3px; }
.subsection { border-left:2px solid var(--line); padding-left:14px; margin-bottom:18px; }
.form-more { border-top:1px solid var(--line); margin-top:23px; padding-top:16px; }
.form-more summary { cursor:pointer; font-size:13px; font-weight:600; color:var(--muted); }
.form-more[open] summary { margin-bottom:16px; }
.rounding { margin-top:18px; padding:14px 16px; border:1px solid var(--line); border-radius:8px; background:#121a14; }
.rounding legend { font-size:13px; font-weight:600; padding:0 6px; margin-left:-6px; }
.rounding-row { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; justify-content:space-between; margin-top:8px; }
.rounding-row .check { font-size:13px; }
.threshold { display:flex; align-items:center; gap:7px; margin:0; font-size:12px; font-weight:400; color:var(--muted); }
.threshold input { width:110px; min-height:34px; padding:6px 9px; font-size:12px; }
.rounding .hint { margin:10px 0 0; }
.import-box { background:#121a14; border:1px dashed #46533e; padding:16px; border-radius:8px; margin-bottom:18px; }
.import-box .actions { flex-wrap:nowrap; }
.import-box input { min-width:0; }
.image-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; }
#image-list:not(:empty) { margin-bottom:16px; }
.image-tile { display:flex; flex-direction:column; gap:6px; min-width:0; }
.image-tile img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border:1px solid var(--line); border-radius:8px; background:#111713; color:var(--muted); font-size:10px; overflow-wrap:anywhere; }
button.image-tile,button.image-tile:hover:not(:disabled) { padding:0; border:0; background:none; border-radius:8px; }
button.image-tile:hover img { border-color:#809865; }
.image-tile.new img { border-style:dashed; border-color:#647e4d; }
.image-tile.removed img { opacity:.35; }
.image-tile.failed img { border-color:#805249; }
#image-viewer { width:min(1100px,calc(100vw - 32px)); }
.image-viewer-body { display:grid; place-items:center; padding:0 28px 28px; }
.image-viewer-body img { max-width:100%; max-height:calc(90vh - 130px); object-fit:contain; border-radius:8px; }
.toasts { position:fixed; bottom:24px; right:24px; display:flex; flex-direction:column; gap:10px; z-index:20; max-width:min(420px,calc(100vw - 40px)); }
.toast { border:1px solid #5a7447; background:#273421; border-radius:10px; padding:14px 18px; color:#e2efda; font-size:13px; box-shadow:0 8px 30px #0005; overflow-wrap:anywhere; }
.toast.error { background:#3e2925; border-color:#805249; color:#ffd0c9; }
.skip-link { position:absolute; left:20px; top:-80px; z-index:50; background:var(--panel); padding:15px; }
.skip-link:focus { top:10px; }
@keyframes breathe { 50% { opacity:.5; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }
@media (max-width:1100px) { .detail-grid { grid-template-columns:minmax(0,1fr); } .detail-aside { display:grid; grid-template-columns:1fr 1fr; gap:18px; } }
@media (max-width:760px) { .login-layout { grid-template-columns:1fr; gap:30px; padding:30px 20px; } .login-intro .brand { margin-bottom:40px; } .login-intro h1 { font-size:35px; } .login-features { display:none; } .login-card { max-width:none; padding:26px; } .topbar { position:static; height:auto; min-height:72px; padding:15px 18px; } .brand .muted { display:none; } #identity strong { font-size:10px; } .topbar-user { gap:10px; } .app-layout { grid-template-columns:1fr; background:none; } .sidebar { position:static; height:auto; overflow:visible; border-right:0; border-bottom:1px solid var(--line); padding:13px 18px; gap:12px; } .nav-caption,.sidebar-footer { display:none; } .nav-main,.department-nav { flex-direction:row; flex-wrap:wrap; margin:0; gap:5px; } .nav-main a,.department-nav button { padding:8px 11px; font-size:12px; } main { padding:25px 18px; } .page-header { flex-direction:column; } .page-header h1 { font-size:26px; } .toolbar .check { margin-left:0; } .detail-aside { display:block; } .panel { padding:18px; } .form-grid,.coordinate-grid,.type-picker { grid-template-columns:1fr; } .modal-header { padding:22px 20px 0; } #modal-body { padding:0 20px 22px; } .editor-row { grid-template-columns:minmax(100px,1fr) 75px 20px 28px; gap:5px; } .rule-row { grid-template-columns:minmax(90px,1fr) 70px 28px 28px 28px; gap:4px; } .topbar-user .ghost { padding:8px 10px; font-size:12px; }
  input,select,textarea { font-size:16px; }
  .toolbar select { flex:1 1 150px; min-width:0; }
  .page-header .actions { width:100%; }
  .page-header .actions>* { flex:1 1 auto; }
  #modal .form-footer { margin:25px -20px -22px; padding:14px 20px 18px; }
  #modal .form-footer button { flex:1; }
  .message-form .actions { flex-wrap:wrap; }
  .message-form .actions button { width:100%; }
  #resource-table thead tr { display:block; }
  #resource-table thead th { display:none; padding:0 0 10px; }
  #resource-table thead th[aria-sort] { display:block; }
  #resource-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 12px; align-items:center; padding:14px 0; border-bottom:1px solid #29322b; }
  #resource-table tbody tr:last-child { border-bottom:0; padding-bottom:0; }
  #resource-table td { display:block; padding:0; border:0; }
  #resource-table td:nth-child(-n+2) { grid-column:1/-1; }
  #resource-table td:nth-child(3) { color:var(--muted); }
  #resource-table .item-display .item-icon { display:grid; }
}
