.staff-workspace { --staff-panel: #192326; --staff-line: #344647; --staff-muted: #aebfbd; color: var(--ref-ink); }
.staff-workspace *, .staff-workspace *::before, .staff-workspace *::after { box-sizing: border-box; }
.staff-workspace a { text-decoration: none; }
.staff-workspace h1, .staff-workspace h2, .staff-workspace h3, .staff-workspace p { overflow-wrap: anywhere; }
.staff-workspace h1, .staff-workspace h2, .staff-workspace h3 { color: #f2eadd; }
.staff-workspace h1, .staff-workspace h2 { font-family: var(--ref-serif); font-weight: 400; }
.staff-workspace h1 { margin: .45rem 0 .7rem; font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.05; letter-spacing: -.035em; }
.staff-workspace h2 { margin: .25rem 0 .6rem; font-size: clamp(1.45rem, 2.5vw, 1.9rem); line-height: 1.2; }
.staff-workspace h3 { margin: .25rem 0; font: 400 1.38rem/1.3 var(--ref-serif); }
.staff-workspace p { line-height: 1.6; }
.staff-eyebrow { color: var(--ref-teal); font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.staff-muted, .staff-fine-print, .staff-empty { color: var(--staff-muted); }
.staff-fine-print { font-size: .86rem; line-height: 1.55; }
.staff-empty { margin: .7rem 0; }
.staff-text-link, .staff-back { color: var(--ref-teal); font-weight: 650; }
.staff-text-link:hover, .staff-back:hover { color: #d3eee3; text-decoration: underline; }
.staff-back { display: table; margin-bottom: 1.4rem; font-size: .9rem; }
.staff-nav { display: flex; align-items: center; gap: .55rem; padding: .3rem .3rem .75rem; margin-bottom: clamp(1.4rem, 4vw, 2.5rem); border-bottom: 1px solid var(--staff-line); }
.staff-nav-links { display: flex; align-items: center; gap: .35rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.staff-nav-scroll-hint { display: none; }
.staff-nav-links > a, .staff-logout button { display: inline-flex; align-items: center; flex: none; min-height: 38px; padding: .48rem .7rem; border: 0; border-radius: 5px; background: transparent; color: #c3d1cb; font: 600 .9rem/1.3 'Segoe UI', system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.staff-nav-links > a:hover, .staff-logout button:hover { background: #233437; color: #fff3e4; }
.staff-nav-links > a[aria-current] { background: #273938; color: #f1d0a6; }
.staff-nav-links > .staff-nav-locked { flex: none; padding: .48rem .7rem; color: var(--realm-muted, #c3b9ab); font-size: .875rem; white-space: nowrap; opacity: .8; }
.staff-nav-meta { display: flex; align-items: center; gap: .2rem; min-width: 0; }
.staff-nav-identity { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; padding: .4rem .55rem; color: #e6ede8; font-size: .85rem; }
.staff-nav-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-role { display: inline-block; width: fit-content; padding: .14rem .45rem; border: 1px solid #576c69; border-radius: 999px; color: #b6d6ce; font-size: .73rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.staff-logout { margin: 0; }
.staff-hero, .staff-page-heading { padding-bottom: 1.6rem; border-bottom: 1px solid var(--staff-line); }
.staff-hero { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 2.8rem); border: 1px solid #405c59; border-radius: 12px; background: radial-gradient(circle at 90% 15%, #31504a, transparent 38%), linear-gradient(125deg, #1d3535, #172224 68%); }
.staff-hero p, .staff-page-heading p { max-width: 62ch; margin: .55rem 0 0; color: #c7d4d0; font-size: 1.05rem; }
.staff-page-heading { margin-bottom: 1.5rem; }
.staff-section { margin: 2rem 0 2.5rem; }
.staff-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .95rem; }
.staff-section-heading h2 { margin: .25rem 0 0; }
.staff-section-heading p { max-width: 32ch; margin: 0; color: var(--staff-muted); font-size: .9rem; text-align: right; }
.staff-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: .85rem; }
.staff-card { padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--staff-line); border-radius: 10px; background: var(--staff-panel); min-width: 0; }
.staff-link-card { position: relative; display: block; min-height: 170px; padding-right: 2.3rem; color: var(--ref-ink); transition: border-color .16s, background .16s, transform .16s; }
.staff-link-card:hover { border-color: #82a89c; background: #223235; transform: translateY(-2px); }
.staff-link-card p { margin: .45rem 0 1.2rem; color: var(--staff-muted); font-size: .91rem; }
.staff-card-arrow { position: absolute; right: 1.1rem; top: 1rem; color: var(--ref-accent); font-size: 1.25rem; }
.staff-link-cue { color: var(--ref-teal); font-size: .85rem; font-weight: 700; }
.staff-list, .staff-settings-list { overflow: hidden; border: 1px solid var(--staff-line); border-radius: 10px; }
.staff-list-link, .staff-setting-row { display: grid; grid-template-columns: minmax(10rem, .7fr) minmax(0, 1.7fr) auto; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: var(--staff-panel); color: #e5eee9; }
.staff-list-link + .staff-list-link, .staff-setting-row + .staff-setting-row { border-top: 1px solid var(--staff-line); }
.staff-list-link:hover, .staff-setting-row:hover { background: #243336; }
.staff-list-link > span:nth-child(2) { color: var(--staff-muted); font-size: .91rem; }
.staff-list-arrow { color: var(--ref-accent); font-size: 1.2rem; }
.staff-command-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; border: 1px solid #64847c; border-radius: 9px; background: #203332; color: #eaf3eb; font-weight: 650; }
.staff-command-link:hover { background: #2a4440; color: #f6e1bf; }
.staff-login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 410px); align-items: center; gap: clamp(1.5rem, 6vw, 5.5rem); min-height: min(65vh, 570px); }
.staff-login-intro p { max-width: 46ch; color: #c5d3cf; font-size: 1.07rem; }
.staff-login-card { padding: clamp(1.3rem, 4vw, 2rem); box-shadow: 0 22px 60px #0003; }
.staff-login-card h2 { font-size: 2rem; }
.staff-form { display: grid; gap: .55rem; }
.staff-form label, .staff-account-form label:not(.staff-checkbox) { color: #dce8df; font-size: .85rem; font-weight: 650; }
.staff-form input:not([type='hidden']), .staff-form textarea, .staff-form select, .staff-account-form select { width: 100%; min-height: 42px; padding: .57rem .7rem; border: 1px solid #5b7370; border-radius: 6px; background: #111b1d; color: #edf4ee; font: inherit; }
.staff-form textarea { resize: vertical; line-height: 1.55; }
.staff-form input:focus, .staff-form textarea:focus, .staff-form select:focus, .staff-account-form select:focus { border-color: var(--ref-teal); }
.staff-form button { justify-self: start; margin-top: .55rem; }
.staff-alert { padding: .75rem .9rem; border: 1px solid #b57869; border-radius: 6px; background: #422923; color: #ffdfd2; }
.staff-two-column { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .85fr); align-items: start; gap: 1rem; }
.staff-card-heading { display: flex; align-items: start; justify-content: space-between; gap: .7rem; }
.staff-count { padding: .18rem .55rem; border: 1px solid var(--staff-line); border-radius: 999px; color: #c9d8d1; font-size: .8rem; }
.staff-account-list { margin-top: .6rem; }
.staff-account-row { padding: 1rem 0; border-top: 1px solid var(--staff-line); }
.staff-account-name { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.staff-account-name strong { margin-right: auto; }
.staff-status { font-size: .78rem; font-weight: 650; }
.staff-status.is-active { color: #a9dbc0; }
.staff-status.is-disabled { color: #d5b9a2; }
.staff-account-form { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.staff-account-form select { width: auto; min-width: 7rem; }
.staff-checkbox { display: inline-flex; align-items: center; gap: .35rem; color: #dce8df; font-size: .86rem; }
.staff-checkbox input { accent-color: #a7d2c4; }
.staff-small-button { min-height: 38px; padding: .4rem .8rem; border: 1px solid #759e92; border-radius: 5px; background: #29413e; color: #eff8ef; font: 650 .85rem 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
.staff-small-button:hover { background: #365650; }
.staff-provenance-key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1rem; color: var(--staff-muted); font-size: .85rem; }
.staff-dot { display: inline-block; width: .56rem; height: .56rem; margin-right: .25rem; border-radius: 50%; }
.staff-dot-source { background: #a7d2c4; }.staff-dot-rule { background: #ecc08e; }
.staff-setting-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; }
.staff-setting-row strong { display: block; color: #f2eadd; font-size: 1.02rem; }
.staff-setting-key { display: block; margin-top: .2rem; color: var(--staff-muted); font: .76rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.staff-setting-row p { margin: .35rem 0 0; color: var(--staff-muted); font-size: .86rem; }
.staff-setting-value { display: grid; justify-items: start; gap: .4rem; min-width: 0; }
.staff-setting-value code, .staff-source-value { max-width: 100%; padding: .2rem .4rem; border: 1px solid #46605a; border-radius: 4px; background: #12211f; color: #d7ecdf; overflow-wrap: anywhere; white-space: pre-wrap; }
.staff-source-label { color: var(--ref-teal); font-size: .76rem; }
.staff-source-reference { margin: .6rem 0; color: #bce2ce; font: .8rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.staff-settings-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin: 1.2rem 0; }
.staff-settings-filters label { display: grid; gap: .35rem; flex: 1 1 180px; color: #dce8df; font-size: .84rem; font-weight: 650; }
.staff-settings-filters input, .staff-settings-filters select { width: 100%; min-height: 42px; padding: .55rem .65rem; border: 1px solid #5b7370; border-radius: 6px; background: #111b1d; color: #edf4ee; font: inherit; }
.staff-settings-filters input:focus, .staff-settings-filters select:focus { border-color: var(--ref-teal); }
.staff-filter-actions { display: flex; align-items: center; gap: 1rem; }
.staff-filter-actions .reference-button { min-height: 42px; }
.staff-results-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin: 1.3rem 0 .65rem; }
.staff-results-heading h2, .staff-results-heading p { margin: 0; }
.staff-results-heading p { color: var(--staff-muted); font-size: .88rem; }
.staff-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--staff-muted); font-size: .9rem; }
.staff-pagination a { padding: .5rem .7rem; border: 1px solid var(--staff-line); border-radius: 5px; color: var(--ref-teal); }
.staff-pagination a:hover { background: #233437; }
.staff-rule-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .85fr); align-items: start; gap: 1rem; }
.staff-rule-layout > div, .staff-rule-aside { display: grid; gap: 1rem; min-width: 0; }
.staff-source-pill { display: inline-block; width: fit-content; padding: .2rem .55rem; border: 1px solid #638478; border-radius: 999px; color: #bce2ce; font-size: .76rem; font-weight: 700; }
.staff-source-pill-rule { border-color: #a68c67; color: #f2d5a5; }
.staff-source-value { display: block; margin-top: .8rem; }
.staff-rule-body, .staff-comment-body, .staff-history li > div { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.staff-rule-body { margin: .75rem 0; font-size: 1.04rem; }
.staff-byline { color: var(--staff-muted); font-size: .8rem; }
.staff-rule-form, .staff-comment-form { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--staff-line); }
.staff-history { padding-left: 1.2rem; margin: .75rem 0 0; }
.staff-history li { padding: .35rem 0 .9rem .25rem; }
.staff-history li + li { border-top: 1px solid var(--staff-line); }
.staff-history li > div { margin-top: .3rem; font-size: .9rem; }
.board-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, 1fr); align-items: start; gap: 1.25rem; }
.staff-board-intro { margin-bottom: 1.5rem; }
@media (max-width: 800px) { .board-layout { grid-template-columns: 1fr; } }
.staff-comments { margin-top: .4rem; }
.staff-comment { padding: 1rem 0; border-top: 1px solid var(--staff-line); }
.staff-comment header { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .45rem; }
.staff-comment time { margin-left: auto; color: var(--staff-muted); font-size: .78rem; }
.staff-comment.is-hidden { opacity: .8; }
.staff-moderate-form { margin-top: .6rem; }
.staff-moderate-form button { padding: 0; border: 0; background: transparent; color: var(--ref-teal); font: 600 .8rem 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
.staff-moderate-form button:hover { text-decoration: underline; }
@media (max-width: 800px) { .staff-two-column, .staff-rule-layout, .staff-login-layout { grid-template-columns: 1fr; } .staff-login-layout { min-height: 0; } .staff-login-card { max-width: 500px; } }
@media (max-width: 700px) { .staff-nav { align-items: stretch; flex-direction: column; } .staff-nav-links { width: 100%; flex: none; } .staff-nav-meta { justify-content: space-between; width: 100%; } .staff-nav-identity { max-width: calc(100% - 85px); } }
@media (max-width: 600px) { .staff-nav-scroll-hint { display: block; margin-top: -.25rem; padding-left: .55rem; color: var(--staff-muted); font-size: .72rem; } .staff-section-heading { align-items: start; flex-direction: column; } .staff-section-heading p { text-align: left; } .staff-list-link, .staff-setting-row { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; } .staff-list-link > span:nth-child(2), .staff-setting-value { grid-column: 1 / -1; grid-row: 2; } .staff-list-arrow { grid-column: 2; grid-row: 1; } .staff-settings-filters label { flex-basis: 100%; } .staff-filter-actions { width: 100%; justify-content: space-between; } }
.staff-operations-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .8fr); gap: 1rem; }
.staff-operations-grid .staff-card { min-width: 0; }
.staff-operations-grid .staff-card p { color: var(--staff-muted); }
.staff-restart-form { margin-top: 1.2rem; }
.staff-restart-form button { margin-top: .75rem; }
.staff-small-button:disabled { border-color: #50615d; background: #263231; color: #aebfbd; cursor: not-allowed; }
.staff-operation-list { display: grid; gap: .65rem; }
.staff-operation { padding: .8rem 1rem; }
.staff-operation p { margin: .4rem 0 0; font-size: .9rem; }
.staff-operation-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; }
.staff-operation-head time { color: var(--staff-muted); font-size: .8rem; }
@media (max-width: 800px) { .staff-operations-grid { grid-template-columns: 1fr; } }
