.shell { max-width: 1440px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 15px; border-bottom: 1px solid var(--border); }
.main-nav button { background: #202a3a; border: 1px solid var(--border); border-bottom: 0; padding: 7px 15px; color: var(--muted); font-weight: 700; }
.main-nav button[aria-current] { background: #3a3442; box-shadow: inset 0 2px var(--yellow); color: var(--yellow); }
.main-nav button:hover:enabled { color: var(--text); }
.main-nav button:disabled { opacity: .5; }
.main-nav > span { margin-left: auto; color: var(--muted); font-size: 11px; }

.staff-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 18px; margin-bottom: 12px; background: linear-gradient(105deg, #303244, #232b3a 70%); border: 1px solid var(--border); border-left: 3px solid var(--yellow); }
.staff-heading h2 { margin: 4px 0; font-size: 31px; }
.staff-heading h2 span { color: var(--yellow); }
.staff-heading p:not(.eyebrow) { color: var(--muted); font-size: 12px; min-height: 18px; }
.staff-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.staff-summary > div { min-width: 82px; border-left: 1px solid #485268; padding-left: 11px; }
.staff-summary > div span { display: block; color: var(--muted); font-size: 11px; }
.staff-summary strong { color: var(--yellow); font: 700 19px var(--mono); }
.staff-grid { display: grid; grid-template-columns: minmax(240px, .92fr) minmax(400px, 1.65fr) minmax(233px, .9fr); gap: 10px; align-items: start; }
.staff-grid .panel-head { border-bottom: 1px solid var(--line); }
.staff-grid .panel-head h2 { font-size: 18px; }
.file-tag { color: var(--soft); font-size: 10px; letter-spacing: .07em; }
#staff-list, #staff-details, #staff-market-body { padding: 8px; }
.staff-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 4px; padding: 5px 6px 4px; border: 1px solid var(--line); background: var(--inset); margin-bottom: 5px; }
.staff-row:last-child { margin-bottom: 0; }
.staff-row.is-selected { border-color: var(--yellow); background: #303342; }
.staff-select { background: transparent; border: 0; text-align: left; padding: 0; min-width: 0; display: flex; align-items: center; gap: 6px; }
.staff-select:hover strong { color: var(--yellow); }
.staff-portrait { display: block; flex: 0 0 auto; width: 37px; height: 39px; border: 1px solid #526077; image-rendering: pixelated; }
.staff-portrait.medium { width: 53px; height: 55px; }
.staff-portrait.large { width: 111px; height: 115px; border: 2px solid #62657e; box-shadow: 3px 3px #141a26; }
.staff-name { min-width: 0; }
.staff-name strong, .staff-output b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.staff-name > span, .staff-output small { display: block; color: var(--muted); font-size: 9px; white-space: nowrap; }
.staff-output { text-align: right; margin-left: auto; color: var(--muted); }
.staff-output b { font-size: 10px; }
.staff-risk { grid-column: 1 / -1; padding-left: 43px; font-size: 10px; }
.schedule { border: 1px solid var(--line); color: var(--muted); background: var(--surface); padding: 3px 4px; font-size: 10px; }
.schedule.scheduled { color: var(--mint); border-color: #46695f; background: #243b3c; }
.schedule:hover:enabled { border-color: var(--yellow); }
.schedule:disabled { opacity: .6; }
.staff-empty { padding: 24px 8px; color: var(--muted); font-size: 13px; }
.staff-footnote { color: var(--muted); font-size: 11px; }
.staff-roster > .staff-footnote { margin: 0 9px 9px; }
.mint { color: var(--mint); }
.yellow { color: var(--yellow); }
.red { color: var(--red); }
.rarity { align-self: center; padding: 2px 4px; border: 1px solid currentColor; font: 700 10px/1 var(--mono); }
.tier-0 { color: #a7c2e0; }
.tier-1 { color: #ddace7; }
.tier-2 { color: var(--yellow); }
.staff-card, .candidate { padding: 12px; background: linear-gradient(145deg, #2b3345, #1a2331 85%); border: 1px solid #475774; }
.tier-frame-1 { border-color: #8b6995; }
.tier-frame-2 { border-color: #ae8c55; background: linear-gradient(145deg, #413643, #252a37 76%); }
.file-identity, .candidate-head { display: flex; align-items: center; gap: 11px; }
.identity-copy { flex: 1; min-width: 0; }
.identity-name { display: flex; align-items: center; gap: 7px; }
.identity-name h3 { font-size: 25px; line-height: 1.2; margin: 0; }
.file-identity p, .candidate-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.identity-status { font-size: 11px; margin: 6px 0; }
.loyalty, .file-stat { display: flex; align-items: center; gap: 9px; }
.loyalty span, .file-stat span { color: var(--muted); white-space: nowrap; font-size: 12px; }
.loyalty .meter, .file-stat .meter { flex: 1; height: 7px; }
.loyalty b, .file-stat b { font: 700 12px var(--mono); text-align: right; }
.file-stats { display: grid; gap: 6px; margin: 13px 0; }
.file-stat span { width: 35px; }
.file-stat b { width: 23px; }
.file-stat .meter i { background: #bb95df; }
.skill-add { padding: 0 5px; color: var(--yellow); border: 1px solid #77684f; background: #3b3542; }
.staff-perk { display: flex; gap: 8px; align-items: center; padding: 7px; background: #322e40; border-left: 2px solid var(--yellow); }
.staff-perk span { color: var(--yellow); font-size: 10px; white-space: nowrap; }
.staff-perk strong { font-size: 12px; }
.staff-perk p, .candidate-perk { color: var(--muted); font-size: 11px; }
.staff-subgrid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6px; margin-top: 7px; }
.staff-subpanel { padding: 7px 9px; border: 1px solid var(--line); background: var(--inset); }
.staff-subpanel h3 { font-size: 13px; margin: 0 0 5px; }
.staff-subpanel p { color: var(--muted); font-size: 11px; margin: 2px 0; }
.staff-subpanel b { color: var(--text); font-family: var(--mono); }
.staff-actions { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.secondary { padding: 5px 8px; font-weight: 700; font-size: 11px; color: var(--yellow); border: 1px solid #7b6b52; background: #343142; }
.secondary:hover:enabled { border-color: var(--yellow); }
.secondary:disabled { opacity: .5; }
.secondary.subtle { color: var(--muted); border-color: var(--line); background: var(--surface); }
.dismiss-area { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dismiss-area p { font-size: 11px; color: var(--muted); }
.market-odds, .pity { display: flex; justify-content: space-between; color: var(--muted); font: 11px var(--mono); }
.market-odds { border-bottom: 1px solid var(--line); padding: 4px 0 7px; }
.pity { margin: 8px 0 4px; }
.market-meter i { background: var(--yellow); }
.market-placeholder { display: grid; text-align: center; justify-items: center; gap: 3px; padding: 19px 0; border: 1px dashed #4b5066; margin: 9px 0; background: var(--inset); }
.market-placeholder div { display: grid; place-items: center; border: 1px solid #655d76; background: #333044; color: var(--yellow); width: 38px; height: 47px; font: 700 22px var(--mono); }
.market-placeholder p { color: var(--muted); font-size: 11px; }
.candidate { margin: 9px 0; padding: 8px; }
.candidate h3 { font-size: 16px; }
.candidate p { margin-bottom: 4px; }
.candidate .primary { margin-top: 5px; min-height: 30px; padding: 4px 7px; font-size: 12px; }
.draw { width: 100%; margin: 0 0 6px; padding: 7px 8px; }
#staff-bonus { margin-bottom: 9px; padding: 7px 10px; border: 1px solid #605a49; background: #302f3d; display: flex; flex-wrap: wrap; gap: 7px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
#staff-bonus strong, .bonus-confirm { color: var(--mint); }
.settlement-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bonus-confirm { font-size: 11px; }

.scene { flex: initial; }
.studio .ticker { flex: 1; align-items: flex-start; }
.jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(74px, 1fr)); }
.job { grid-template-columns: 20px minmax(0, 1fr); gap: 5px; }
.roster { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.scene-controls { right: 9px; bottom: 6px; }
@media (max-width: 1090px) {
  .staff-grid { grid-template-columns: minmax(230px, .9fr) minmax(360px, 1.5fr); }
  .staff-market { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .workbench, .staff-grid { grid-template-columns: minmax(0, 1fr); }
  .staff-market { grid-column: auto; }
  .main-nav > span { display: none; }
  .staff-heading { padding: 12px; }
  .staff-summary { gap: 7px; }
  .staff-summary > div { min-width: 65px; padding-left: 5px; }
  .staff-summary strong { font-size: 15px; }
  .staff-portrait.large { width: 88px; height: 91px; }
  .studio .ticker { align-items: center; }
}
@media (max-width: 400px) {
  .staff-subgrid { grid-template-columns: minmax(0, 1fr); }
}
.roster-actions { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.roster-actions .secondary[aria-pressed="true"] { color: var(--yellow); border-color: #7b6b52; }
.roster-actions .secondary { padding: 3px 5px; font-size: 10px; }

.workbench { grid-template-columns: minmax(0, 1fr); grid-template-areas: "studio" "team" "projects"; }
.workbench .studio { grid-area: studio; }
.workbench .team { grid-area: team; margin-top: 0; }
.workbench .projects { grid-area: projects; }
.studio-status { display: flex; align-items: center; gap: 5px; }
.desk-dock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 7px 9px 0; padding: 6px 8px; border: 1px solid var(--line); background: var(--inset); color: var(--muted); font-size: 11px; }
.desk-dock > :first-child { color: var(--yellow); font-weight: 700; }
.desk-dock strong { color: var(--text); font-size: 12px; }
.desk-chip { display: none; }
@media (min-width: 761px) {
  .shell:has(#ops-view:not([hidden])) { max-width: 1740px; padding: 13px clamp(12px, 1.7vw, 28px) 8px; }
  .shell:has(#ops-view:not([hidden])) .masthead { margin-bottom: 10px; }
  .shell:has(#ops-view:not([hidden])) .brand-mark { width: 41px; height: 41px; }
  .shell:has(#ops-view:not([hidden])) h1 { font-size: 27px; }
  .shell:has(#ops-view:not([hidden])) .main-nav { margin-bottom: 9px; }
  #ops-view .metrics { margin-bottom: 9px; }
  #ops-view .metric { padding: 6px 9px 7px; }
  #ops-view .metric-value { font-size: 24px; margin: 4px 0; }
  .workbench { grid-template-columns: clamp(107px, 10vw, 152px) minmax(0, 1fr); grid-template-areas: "team studio"; gap: 8px; }
  .workbench .projects { display: none; }
  .workbench .team .panel-head { align-items: flex-start; flex-direction: column; }
  .workbench .team h2 { font-size: 16px; }
  .workbench .team .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .workbench .roster { grid-template-columns: minmax(0, 1fr); padding: 0 5px 5px; gap: 4px; }
  .workbench .employee { padding: 5px; }
  .workbench .employee canvas { width: 29px; height: 30px; flex-basis: 29px; }
  .workbench .employee-info strong { font-size: 13px; }
  .workbench .employee-info span { font-size: 9px; }
  .workbench .employee-top kbd { padding: 1px 2px; }
  .workbench .employee .energy-label { margin: 2px 0; }
  .workbench .team-label { min-height: 20px; }
  .workbench .studio .panel-head { padding: 7px 10px; }
  .workbench .studio .panel-head h2 { font-size: 16px; }
  .workbench .scene { margin: 0 5px; }
  .workbench .desk-dock { margin-inline: 5px; }
  .workbench .ticker { min-height: 28px; padding-block: 4px; }
  .workbench .hotspot { padding: 0; z-index: 1; }
  .desk-chip {
    display: block; position: absolute; left: 50%; bottom: calc(100% - 3px); transform: translateX(-50%);
    width: min(100%, 202px); color: var(--desk-accent); background: #1b2030f2; border: 1px solid #786680;
    text-align: left; padding: 4px 5px; box-shadow: 2px 2px #211c30bc;
  }
  .desk-chip::after { content: ""; position: absolute; width: 5px; height: 5px; transform: rotate(45deg); bottom: -3px; left: calc(50% - 3px); background: #786680; }
  .hotspot:enabled:hover .desk-chip, .hotspot.selected .desk-chip { border-color: var(--yellow); }
  .hotspot.awaiting-payment .desk-chip { border-color: var(--yellow); background: #3a3038; box-shadow: 0 0 9px #f3cf7940; }
  .hotspot.incident .desk-chip { border-color: var(--red); }
  .desk-chip-top, .desk-chip-bottom { display: flex; gap: 4px; align-items: center; }
  .desk-chip-bottom { margin-top: 4px; }
  .desk-chip .desk-face { flex: 0 0 auto; width: 23px; height: 24px; border: 1px solid #59617d; }
  .desk-tag { flex-shrink: 0; padding: 3px; background: #343449; font: 700 10px var(--mono); }
  .desk-job { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); font-size: 11px; font-weight: 700; }
  .desk-timer { flex-shrink: 0; font: 700 10px var(--mono); }
  .desk-need { flex-shrink: 0; font-size: 9px; white-space: nowrap; }
  .desk-chip .meter { flex: 1; height: 4px; background: #384051; }
  .desk-chip .meter i { background: var(--desk-accent); }
  .scene-controls { z-index: 2; }
}

.office-management { margin-top: 12px; }
.office-management .panel-head { border-bottom: 1px solid var(--line); }
.office-workshop { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 10px; padding: 9px; }
.office-workshop > section { padding: 9px; border: 1px solid var(--line); background: var(--inset); }
.office-workshop h3, .office-workshop h4 { margin: 0; font-size: 13px; }
.office-workshop p { color: var(--muted); font-size: 11px; margin: 4px 0 8px; }
.computer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.computer-tile { border: 1px solid var(--line); background: var(--panel); padding: 6px; }
.computer-tile header { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 4px; font-size: 11px; }
.computer-tile strong { font-family: var(--mono); color: var(--mint); }
.computer-tile.worn strong { color: var(--red); }
.computer-tile.worn .meter i { background: var(--red); }
.computer-tile p { font-size: 10px; margin: 4px 0; }
.computer-actions { display: flex; flex-wrap: wrap; gap: 3px; }
.computer-actions button { padding: 2px 4px; font-size: 10px; }
.decor-group + .decor-group { margin-top: 7px; }
.decor-group h4 { color: var(--muted); font-size: 11px; margin: 2px 0 3px; }
.decor-row { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 5px; padding: 4px 5px; border: 1px solid var(--line); background: var(--panel); margin-top: 3px; }
.decor-swatch { width: 14px; height: 14px; border: 1px solid #647083; }
.decor-row b, .decor-row small { display: block; font-size: 11px; }
.decor-row small { color: var(--muted); font-size: 10px; }
.office-jump { color: var(--yellow); font-size: 12px; text-underline-offset: 3px; }
.soft { color: var(--muted); }

.desk-chip .desk-need { display: block; margin-top: 2px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.desk-chip .desk-mood { flex-shrink: 0; font-size: 9px; font-weight: 700; }
.hotspot.angry .desk-chip { border-color: var(--red); }
.desk-focus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 5px 5px 0; }
.focus-card { padding: 5px 7px; border: 1px solid var(--line); background: var(--inset); }
.focus-heading { display: flex; align-items: center; gap: 7px; }
.focus-heading span { color: var(--muted); font: 700 10px var(--mono); }
.focus-heading strong { font-size: 13px; }
.focus-heading b, .focus-card p { font-size: 10px; }
.focus-card p { margin: 3px 0; color: var(--muted); }
.focus-card p.red { color: var(--red); }
.focus-tags { display: flex; flex-wrap: wrap; gap: 3px; margin: 3px 0; }
.requirement { background: #2b3648; padding: 1px 4px; font-size: 10px; }
.focus-meter { margin: 4px 0; }
.employee-match { margin-top: 5px; padding: 4px; background: #2c3244; font-size: 10px; }
.employee-match > div { display: flex; justify-content: space-between; gap: 3px; }
.employee-match small { display: block; margin-top: 2px; font-size: 9px; }
@media (min-width: 761px) {
  .workbench { grid-template-columns: clamp(134px, 11.6vw, 180px) minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .office-workshop { grid-template-columns: minmax(0, 1fr); }
  .computer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.focus-meter.red i { background: var(--red); }
.employee.recommended.recommendation-risk { border-color: #a48b5d; }
.desk-alert { flex-shrink: 0; padding: 1px 3px; background: #4c3340; color: var(--red); font: 700 9px var(--body); white-space: nowrap; }
.reception { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 5px 5px 0; padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.reception strong { color: var(--yellow); }
.reception b { color: var(--text); font: 700 11px var(--mono); }
.reception-demand, #decline-job { margin-left: auto; }
#ops-view .metric-note { overflow-wrap: anywhere; }

.desk-alert.desk-new-client { color: var(--mint); background: #25483f; }
.employee.waiting-checkout { border-color: #a48b5d; background: #393341; }
