/* Shared surfaces for every application section. */
/* Navigation geometry is defined here; legacy rail rules were removed. */
.workspace .sidebar{padding-inline:14px}
.workspace .sidebar .nav{display:flex;flex-direction:column;flex:1 1 0;gap:4px;min-height:0;margin:0;padding:4px 0 12px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:none;scroll-padding:8px;scroll-behavior:auto;mask-image:linear-gradient(transparent,#000 7px,#000 calc(100% - 7px),transparent)}
.workspace .sidebar .nav::-webkit-scrollbar{display:none}
.workspace .nav>:is(button,section){flex:0 0 auto}
.workspace .nav .nav-link{position:relative;display:flex;align-items:center;gap:12px;width:100%;height:auto;min-height:48px;margin:0;padding:12px 14px;border:0;border-radius:8px;background:transparent;box-shadow:none;transform:none;color:var(--muted);font:inherit;font-size:16px;font-weight:450;line-height:1.45;text-align:left;cursor:pointer;transition:color .16s ease,background-color .16s ease}
.workspace .nav .nav-link>span:first-of-type{flex:1;min-width:0;white-space:normal;overflow-wrap:normal;word-break:normal}
.workspace .nav button>svg{width:20px;height:20px;flex:0 0 20px;stroke-width:1.6;color:inherit}
.workspace .nav .nav-link:hover{color:var(--text)}
.workspace .nav .nav-link:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:4px}
.workspace .nav .nav-link[aria-current=page]{color:var(--accent);font-weight:600;background:color-mix(in srgb,var(--accent-visual,#e7461f) 8%,var(--sidebar-surface))}
.workspace .nav .nav-link[aria-current=page]>svg{color:var(--accent)}
.workspace .nav .nav-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;align-self:center;min-width:20px;min-height:0;margin:0 0 0 auto;padding:0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:13px;font-weight:450;line-height:1.5;font-variant-numeric:tabular-nums;white-space:nowrap}
.workspace .nav .nav-no-results{margin:0;padding:15px 16px;color:var(--muted);font-size:13px;line-height:1.5}
.workspace .nav [hidden]{display:none}

/* Every profile row stretches naturally; headers share one baseline. */













html:root,body[data-game]{--surface:#fff;--surface-raised:#f6f7f9;--surface-inset:#f8f9fb;--text:#25262a;--muted:#6c6f77;--faint:#858891;--line:#e7e9ed;--positive:#178354;--positive-bg:#edf8f2;--negative:#bd5637;--negative-bg:#fff2eb;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html[data-theme=dark],html[data-theme=dark] body[data-game]{--bg:#0c0c0c;--surface:#151515;--surface-raised:#1d1d1d;--surface-inset:#111;--text:#ededed;--muted:#a5a5a5;--faint:#858585;--line:#2b2b2b;--border:#2b2b2b;--positive:#82c5a1;--positive-bg:#1c2b23;--negative:#e3ae91;--negative-bg:#2f221c;background:#080808}
html:root,body[data-game]{--status-green:var(--positive);--status-red:#bd5a5a;--status-orange:#a47127}
html[data-theme=dark],html[data-theme=dark] body[data-game]{--status-green:var(--positive);--status-red:#df9898;--status-orange:#d5b27d}
html[data-theme=dark] .demo-banner{background:#080808;color:var(--muted)}
.workspace .button.primary,html[data-theme=dark] .workspace .button.primary{background:var(--action-blue);border-color:var(--action-blue);color:#fff}
.workspace .badge.approved{background:var(--positive-bg);border-color:color-mix(in srgb,var(--positive) 20%,var(--surface));color:var(--positive)}
.workspace :is(.table-shell,.table-tools,.table-footer,.info-banner){background:var(--surface);color:var(--muted);border-color:var(--line)}
.workspace .info-banner svg{color:var(--muted)}
.workspace #content .info-banner{background:var(--surface);color:var(--muted);border-color:var(--line)}
.workspace #content .info-banner span{color:var(--muted)}
.workspace :is(.assignment-chip,.permission-chip){padding:5px 8px;background:var(--surface-raised);border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:12px;line-height:1.5}
.workspace .page-heading p,.workspace .eyebrow{color:var(--muted)}
.workspace .topbar .nav-search{padding:0 13px;gap:9px;transition:border-color .18s,box-shadow .18s}
.workspace .topbar .nav-search input{border:0;background:transparent;padding:0;box-shadow:none}
.workspace .topbar .nav-search input:focus,.workspace .topbar .nav-search input:focus-visible{outline:0!important;border:0!important;box-shadow:none!important}
.workspace .topbar .nav-search:focus-within{border-color:color-mix(in srgb,var(--muted) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--muted) 7%,transparent)}
.workspace,.workspace *,dialog,dialog *{text-shadow:none!important}
.workspace :is(h1,h2,h3,h4){font-weight:600}
.workspace :is(.manual-page,.promotions-page,#community-root,#proof-root,#feedback-root,#vacations-root,.eco-page){color:var(--text)}
.workspace :is(.manual-page,.promotions-page,#community-root,#proof-root,#feedback-root,#vacations-root,.eco-page) :is(h1,h2,h3,h4,strong){color:var(--text)}
.workspace :is(.manual-page,.promotions-page,#community-root,#proof-root,#feedback-root,#vacations-root,.eco-page) :is(p,small,time){color:var(--muted)}
.workspace :is(.manual-page,.promotions-page,#community-root,#proof-root,#feedback-root,#vacations-root,.eco-page) h1{font-size:30px;line-height:1.25;letter-spacing:-.7px}
.workspace :is(input,textarea)::placeholder{color:var(--faint);opacity:1}
.workspace .search{position:relative;display:flex;align-items:center;gap:10px;min-width:0}
.workspace .search>svg{position:absolute;left:13px;z-index:1;width:18px;height:18px;color:var(--muted);pointer-events:none}
.workspace .search>input{width:100%;padding-left:40px;background:var(--surface-raised);color:var(--text);border:1px solid var(--line)}
.workspace .search:has(.select-control)>svg{position:static}

/* Personnel: aligned identity, quiet facts and compact discipline. */
.workspace #team-dashboard .staff-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:18px;align-items:stretch}
.workspace #team-dashboard .staff-card{display:flex;flex-direction:column;min-width:0;height:100%;padding:0 20px 16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:none}
.workspace #team-dashboard .staff-card-cover{height:64px;min-height:64px;margin:0 -20px 18px;opacity:1;border:0;filter:none}
html[data-theme] .workspace #team-dashboard .staff-card .staff-card-cover{background:linear-gradient(180deg,#0000,#0003),url("/art/minecraft.jpg") center 42%/cover}
.workspace #team-dashboard .staff-card-cover span{display:none}
.workspace #team-dashboard .staff-card-top{display:flex;align-items:flex-start;justify-content:flex-start;gap:13px;min-height:0;margin:0 0 18px}
.workspace #team-dashboard .staff-avatar.discord-avatar{width:52px;height:52px;flex:0 0 52px;border:1px solid var(--line);border-radius:10px;background:var(--surface-raised)}
.workspace #team-dashboard .staff-card-person{min-width:0}
.workspace #team-dashboard .staff-card h3{font-size:22px;line-height:1.3;letter-spacing:-.35px;color:var(--text);margin:0 0 4px;overflow-wrap:anywhere}
.workspace #team-dashboard .staff-rank{font-size:16px;line-height:1.55;color:var(--muted);margin:0;min-height:0}
.workspace #team-dashboard .staff-rank small{display:block;font-size:13px;line-height:1.5;color:var(--muted);margin-top:2px}
.workspace #team-dashboard .staff-card-top .badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;min-height:0;line-height:1.4;padding:0;border:0;white-space:nowrap;margin:5px 0 0;border-radius:0;background:transparent;color:var(--positive)}
.workspace #team-dashboard .staff-card-top .badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.workspace #team-dashboard .staff-card-facts{display:flex;flex-direction:column;gap:9px;margin:0 0 16px;padding:0;border:0;font-size:16px;line-height:1.6}
.workspace #team-dashboard .staff-card-facts span{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:inherit;line-height:inherit}
.workspace #team-dashboard .staff-card-facts svg{width:15px;height:15px;flex-shrink:0;color:var(--faint)}
.workspace #team-dashboard .staff-card-discipline{display:grid;grid-template-columns:1fr;gap:8px;margin-top:auto;padding:14px 0;border:0;border-top:1px solid var(--line);background:transparent}
.workspace #team-dashboard .staff-card-discipline>div{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:10px;padding:0;background:none;border:0;border-radius:0}
.workspace #team-dashboard .staff-card-discipline strong{font-size:18px;line-height:1.4;color:var(--text);font-weight:500;white-space:nowrap}
.workspace #team-dashboard .staff-card-discipline small{font-size:13px;font-weight:400;color:var(--muted)}
.workspace #team-dashboard .staff-card-discipline span{font-size:14px;line-height:1.5;color:var(--muted);word-break:normal;hyphens:none;margin:0}
.workspace #team-dashboard .staff-card-detail{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:36px;margin:0;padding:10px 0 0;border:0;border-top:1px solid var(--line);background:none;font-size:16px;color:var(--text)}
.workspace #team-dashboard .staff-card-detail:hover{color:var(--accent)}
.workspace #team-dashboard .staff-card-detail svg{width:16px;height:16px}
.workspace #team-dashboard .team-mode-tabs button span{min-width:24px;padding:2px 6px;border-radius:4px;background:var(--surface);color:var(--muted);font-size:12px}

/* Profile: no legacy black panels in the light appearance. */


























.workspace #self-profile :is(.reward-balance,.reward-rates>span,.reward-quest-line,.profile-empty-state,.profile-vacation-state){background:var(--surface-inset);border-color:var(--line);border-radius:10px}
.workspace #self-profile :is(.reward-salary,.reward-calendar,.profile-connection,.profile-chat-row,.profile-vacation-next,.profile-subheading,.reward-history){border-color:var(--line)}
.workspace #self-profile :is(.reward-salary strong,.reward-balance strong,.reward-rates strong,.profile-connection-name strong,.profile-vacation-line strong,.profile-week-heading h3){color:var(--text)}
.workspace #self-profile :is(.reward-salary small,.reward-calendar,.reward-rates,.reward-totals,.reward-note,.profile-connection-name small,.profile-empty,.discipline-policy,.profile-vacation-line span){color:var(--muted);line-height:1.6}


/* Calm tables: status belongs to the value, not an entire coloured cell. */
.workspace :is(.users-table){border-collapse:collapse;color:var(--text);font-size:14px}
.workspace :is(.users-table) :is(th,td){border:0;border-bottom:1px solid var(--line);padding:16px;background:var(--surface);color:var(--text);vertical-align:middle;line-height:1.5}
.workspace :is(.users-table) thead th{background:var(--surface-inset);color:var(--muted);font-size:13px;font-weight:500;padding-block:14px;white-space:nowrap}
.workspace :is(.users-table) tbody tr:last-child td{border-bottom:0}





























/* Manuals: one reading surface, with chapters separated by space and rules. */
.workspace .manual-page{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.workspace .manual-page .manual-top{padding:0;margin-bottom:22px;background:transparent;border:0;border-radius:0}
.workspace .manual-page .manual-top .eyebrow{display:none}
.workspace .manual-page .manual-layout{grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start}
.workspace .manual-page .manual-search{width:100%;max-width:none;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--muted);margin-bottom:16px;min-height:44px}
.workspace .manual-page .manual-search input{background:transparent;border:0;box-shadow:none;color:var(--text);font-size:14px}
.workspace .manual-page .manual-progress{display:flex;align-items:center;gap:12px;padding:0;margin:0 0 22px;border:0;border-radius:0;font-size:12px;background:transparent;color:var(--muted)}
.workspace .manual-page .manual-progress progress{height:4px;flex:1;max-width:130px;background:var(--line)}
.workspace .manual-page .manual-progress progress::-webkit-progress-bar{background:var(--line)}
.workspace .manual-page .manual-sidebar{padding:8px 0;background:transparent;border:0;border-radius:0;box-shadow:none}
.workspace .manual-page .manual-sidebar>small{padding-left:12px;font-size:12px;color:var(--muted)}
.workspace .manual-page .manual-nav button{font-size:13px;min-height:40px;padding:9px 12px;color:var(--muted);background:transparent;border:0;border-radius:6px}
.workspace .manual-page .manual-nav button.active{background:var(--surface);color:var(--text);box-shadow:inset 2px 0 var(--accent)}
.workspace .manual-page .manual-nav .manual-subnav{margin:6px 0 10px 12px;padding-left:10px;border-color:var(--line)}
.workspace .manual-page .manual-subnav button{font-size:12px;min-height:32px;line-height:1.5;padding:6px 8px}
.workspace .manual-page .manual-body{padding:28px 32px;max-width:920px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.workspace .manual-page .manual-intro{padding:0 0 26px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.workspace .manual-page .manual-intro h2{font-size:23px;margin:0 0 10px}
.workspace .manual-page .manual-intro>p{color:var(--text);font-size:15px;line-height:1.75}
.workspace .manual-page .manual-download{background:var(--surface-inset);border:0;border-radius:8px;color:var(--muted);font-size:13px;line-height:1.8;margin-top:18px;padding:16px}
.workspace .manual-page .manual-download strong{font-size:14px;margin-bottom:5px}
.workspace .manual-page .manual-category-heading{margin:24px 0 4px}
.workspace .manual-page .manual-category-heading h2{font-size:19px;color:var(--text)}
.workspace .manual-page .manual-category-heading p{font-size:13px;color:var(--muted);margin-top:4px}
.workspace .manual-page .manual-chapter{padding:24px 0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.workspace .manual-page .manual-chapter+.manual-chapter{border-top:1px solid var(--line)}
.workspace .manual-page .manual-chapter-head{display:none}
.workspace .manual-page .manual-chapter h3{margin:0 0 10px;color:var(--text);font-size:24px;line-height:1.35;letter-spacing:-.5px}
.workspace .manual-page .manual-lead{margin:0 0 20px;color:var(--muted);font-size:15px;line-height:1.75}
.workspace .manual-page .manual-section{margin:18px 0 0}
.workspace .manual-page .manual-section h4{margin:0 0 9px;color:var(--text);font-size:16px;line-height:1.5}
.workspace .manual-page .manual-section p,.workspace .manual-page .manual-section li{color:var(--text);font-size:15px;line-height:1.75}
.workspace .manual-page .manual-section p{margin:8px 0}
.workspace .manual-page .manual-section ol{margin:8px 0 0;padding-left:22px}
.workspace .manual-page .manual-section li{padding-left:4px;margin:8px 0}
.workspace .manual-page .manual-chapter-foot{display:flex;justify-content:flex-end;margin:20px 0 0;padding:0;border:0;background:transparent}
.workspace .manual-page .manual-read-button{min-height:34px;padding:7px 10px;background:transparent;border:1px solid var(--line);border-radius:6px;font-size:12px!important;color:var(--muted)}
.workspace .manual-page .manual-read-button svg{width:15px;height:15px}
.workspace .manual-page .manual-read-button:hover{background:var(--surface-raised);color:var(--text)}
.workspace .manual-page :is(.manual-empty,.manual-search-card,.manual-gate,.manual-exam){background:var(--surface);border-color:var(--line);border-radius:10px;color:var(--text);box-shadow:none}
.workspace .manual-page :is(.manual-code,.manual-table>div){background:var(--surface-inset);color:var(--text);border-color:var(--line)}
.workspace .manual-page .manual-sidebar-footer{color:var(--muted);font-size:12px;border-color:var(--line)}
@media(max-width:1100px){.workspace .manual-page .manual-layout{grid-template-columns:180px minmax(0,1fr);gap:20px}.workspace .manual-page .manual-body{padding:24px}}
@media(max-width:760px){.workspace .manual-page .manual-layout{display:block}.workspace .manual-page .manual-body{padding:22px 18px}.workspace .manual-page .manual-sidebar{background:var(--bg);padding:0 0 8px;margin-bottom:12px}.workspace .manual-page .manual-nav button{font-size:13px}.workspace .manual-page .manual-chapter h3{font-size:22px}.workspace .manual-page .manual-chapter{padding:22px 0}}

.workspace .promotions-page :where(.promotion-summary>button,.promotion-toolbar,.promotion-list,.promotion-empty){background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--text);box-shadow:none}
.workspace .promotions-page .promotion-page-heading{padding:0;margin-bottom:24px}
.workspace .promotions-page .promotion-summary{gap:12px;margin-bottom:20px}
.workspace .promotions-page .promotion-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.workspace .promotions-page .promotion-summary>button{padding:16px;text-align:left}
.workspace .promotions-page .promotion-summary>button{display:flex;align-items:center;justify-content:space-between;gap:10px}
.workspace .promotions-page .promotion-summary>button b{padding:0;border:0;background:transparent}
.workspace .promotions-page .promotion-summary>button[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 7%,var(--surface));border-color:color-mix(in srgb,var(--accent) 35%,var(--surface))}
.workspace .promotions-page .promotion-summary b{font-size:26px;color:var(--text)}
.workspace .promotions-page .promotion-summary span{font-size:14px;color:var(--muted)}
.workspace .promotions-page .promotion-row{padding:20px;margin-bottom:12px;gap:18px;font-size:14px}
.workspace .promotions-page .promotion-list{padding:0;border:0;border-radius:0;background:transparent}
.workspace .promotions-page .promotion-summary{gap:0;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.workspace .promotions-page .promotion-summary>button{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;min-height:100px;padding:18px 20px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);box-shadow:none}
.workspace .promotions-page .promotion-summary>button:last-child{border-right:0}
.workspace .promotions-page .promotion-summary>button[aria-pressed=true]{background:var(--surface-inset);border-color:var(--line)}
.workspace .promotions-page .promotion-summary>button[aria-pressed=true]:after{content:"";position:absolute;bottom:0;left:20px;right:20px;height:2px;border-radius:2px;background:var(--accent)}
.workspace .promotions-page .promotion-summary>button b{display:block;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);font-size:28px;font-weight:550;line-height:1.2}
.workspace .promotions-page .promotion-summary>button span{color:var(--muted);font-size:13px;font-weight:400;line-height:1.4}
.workspace #vacations-root .vacation-metrics{gap:0;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.workspace #vacations-root .vacation-metric{min-height:108px;margin:0;padding:18px 20px;gap:7px 12px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;transform:none}
.workspace #vacations-root .vacation-metric:last-child{border-right:0}
.workspace #vacations-root .vacation-metric-top{font-size:13px;font-weight:400;color:var(--muted)}
.workspace #vacations-root .vacation-metric-icon{grid-column:2;grid-row:1;align-self:center;width:18px;height:18px;padding:0;border:0;border-radius:0;background:transparent;color:var(--muted);box-shadow:none}
.workspace #vacations-root .vacation-metric-icon svg{width:18px;height:18px}
.workspace #vacations-root .vacation-metric strong{margin:0;font-size:28px;font-weight:550;line-height:1.2;color:var(--text)}
.workspace #vacations-root .vacation-metric small{font-size:12px;line-height:1.5;color:var(--muted)}
.workspace .test-management-metrics .test-card{border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.workspace .test-management-metrics .test-card strong{color:var(--text)}
.workspace .test-empty h2{color:var(--text);font-size:19px}
.workspace .promotions-page .promotion-rank small,.workspace .promotions-page .promotion-person small{font-size:13px;color:var(--muted)}
.workspace .promotions-page .promotion-mini-metrics>div{background:var(--surface-inset);border:1px solid var(--line);border-radius:8px}
.workspace .promotions-page .promotion-status{font-size:12px;border-radius:6px;background:var(--surface-inset);border-color:var(--line);color:var(--muted)}
.workspace .promotions-page .promotion-status.is-ready{background:var(--positive-bg);color:var(--positive)}
.workspace :is(.test-card,.test-table,.test-table-row,.proof-row,.proof-empty,.feedback-item,.feedback-empty,.vacation-metric,.vacation-list-panel,.vacation-row,.eco-product,.eco-pass-progress,.eco-reward-panel,.eco-order,.eco-offer-intro){background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:none}
.workspace :is(.feedback-toolbar,.feedback-list,.proof-filters,.vacation-toolbar,.test-toolbar,.eco-tabs,.eco-categories){background:var(--surface-inset);color:var(--muted);border-color:var(--line)}
.workspace :is(.proof-row strong,.feedback-title,.test-person strong,.test-table-score strong,.eco-product h3,.eco-price strong){color:var(--text)}
.workspace :is(.eco-note,.eco-footnote,.eco-tag,.eco-heading p,.proof-row small,.feedback-preview,.test-table-row small){color:var(--muted)}
.workspace .eco-tabs button,.workspace .eco-categories button{background:transparent;color:var(--muted);border-color:transparent;font-size:14px}
.workspace .eco-tabs button[aria-pressed=true],.workspace .eco-categories button[aria-pressed=true]{background:var(--surface);color:var(--text);border-color:var(--line)}

/* Assistant follows the selected appearance rather than forcing black. */
.workspace #ai-agent-widget.agent-page{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;box-shadow:none}
.workspace #ai-agent-widget :is(.agent-head,.agent-input-area){background:var(--surface);border-color:var(--line)}
.workspace #ai-agent-widget :is(#agent-body,#agent-log,.agent-welcome){background:transparent;color:var(--text)}
.workspace #ai-agent-widget :is(.agent-brand strong,.agent-welcome h2,.agent-answer,.agent-answer strong){color:var(--text)}
.workspace #ai-agent-widget :is(.agent-brand small,.agent-welcome p,.agent-foot,.agent-byline,.agent-followup-label){color:var(--muted)}
.workspace #ai-agent-widget :is(.agent-brand-mark,.agent-welcome-mark){background:color-mix(in srgb,var(--accent) 8%,var(--surface));color:var(--accent);border-color:color-mix(in srgb,var(--accent) 20%,var(--surface));box-shadow:none}
.workspace #ai-agent-widget :is(.agent-quick button,.agent-extra button,.agent-composer,.agent-question){background:var(--surface-inset);border:1px solid var(--line);color:var(--text);box-shadow:none}
.workspace #ai-agent-widget :is(.agent-quick button,.agent-extra button):hover{background:var(--surface-raised);border-color:color-mix(in srgb,var(--accent) 30%,var(--line))}
.workspace #ai-agent-widget :is(.agent-topic-icon,#agent-toggle){background:var(--surface-raised);color:var(--muted);border-color:var(--line)}
.workspace #ai-agent-widget #agent-input{background:transparent;color:var(--text);font-size:15px;border:0;box-shadow:none}
.workspace #ai-agent-widget #agent-input::placeholder{color:var(--muted)}
.workspace #ai-agent-widget #agent-send{background:var(--accent);color:#fff;border:0}
.workspace #ai-agent-widget :is(.agent-answer h3,.agent-answer h4,.agent-answer p,.agent-answer dd){color:var(--text)}
.workspace #ai-agent-widget :is(.agent-answer dt,.agent-step-from,.agent-step p,.agent-step-stats){color:var(--muted)}
.workspace #ai-agent-widget :is(.agent-answer dl>div,.agent-step,.agent-links button,.agent-all-topics button,.agent-extra){background:var(--surface-inset);color:var(--text);border-color:var(--line);box-shadow:none}
.workspace #ai-agent-widget :is(.agent-brand-mark svg,.agent-welcome-mark svg){color:var(--accent)}
.workspace #ai-agent-widget #agent-send{background:var(--action-blue)}

/* Requests open above the page, leaving the profile card compact. */



#detail.request-modal{width:calc(100% - 32px);max-width:520px;max-height:calc(100dvh - 40px);padding:0;margin:auto;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 90px #0003;overflow:auto}
#detail.request-modal::backdrop{background:#0007;backdrop-filter:blur(5px)}
.request-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px;border-bottom:1px solid var(--line)}
.request-modal-title{display:flex;align-items:center;gap:12px;min-width:0}
.request-modal-title h2{font-size:21px;line-height:1.3;letter-spacing:-.4px;color:var(--text);margin:0 0 5px;font-weight:600}
.request-modal-title p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
.request-modal-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));color:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 20%,var(--surface));border-radius:11px}
.request-modal-icon svg{width:21px;height:21px}
.request-modal-head>.icon-button{width:30px;height:30px;flex:0 0 30px;background:transparent;border:0;color:var(--muted)}
.request-modal-form{display:grid;gap:20px;padding:24px;margin:0}
.mode-choice-list{display:grid;gap:10px;padding:0;margin:0;border:0}.mode-choice-list legend{margin-bottom:10px;font-size:13px;color:var(--muted)}
#detail.request-modal label.mode-choice{display:flex;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface-inset);cursor:pointer}
#detail.request-modal label.mode-choice:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}#detail.request-modal label.mode-choice.is-current{opacity:.62;cursor:default}
#detail.request-modal label.mode-choice input{appearance:auto;width:16px;min-width:16px;height:16px;margin:3px 0 0;padding:0;box-shadow:none;color-scheme:auto}
.mode-choice span{display:grid;gap:3px}.mode-choice strong{font-size:14px}.mode-choice small{font-size:12px;line-height:1.45;font-weight:400;color:var(--muted)}
.request-modal-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
#detail.request-modal label{display:grid;gap:8px;min-width:0;font-size:14px;line-height:1.5;font-weight:500;color:var(--text)}
#detail.request-modal :is(input,textarea){display:block;box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-inset);color:var(--text);font:inherit;outline:none;box-shadow:none;color-scheme:light}
html[data-theme=dark] #detail.request-modal :is(input,textarea){color-scheme:dark}
#detail.request-modal :is(input,textarea):focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
#detail.request-modal textarea{resize:vertical;min-height:110px;max-height:240px;line-height:1.6}
#detail.request-modal textarea::placeholder{color:var(--faint)}
.request-modal-hint{font-size:12px;font-weight:400;color:var(--muted)}
#detail.request-modal .form-error{margin:0;color:var(--negative);font-size:13px;line-height:1.5}
.request-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:4px}
#detail.request-modal .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;font:inherit;font-size:14px;font-weight:500;white-space:normal;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text)}
#detail.request-modal .button.primary{background:var(--action-blue);border-color:var(--action-blue);color:#fff}
#detail.request-modal .button svg{width:16px;height:16px}
@media(max-width:540px){.request-modal-head,.request-modal-form{padding:20px}.request-modal-title h2{font-size:19px}.request-modal-icon{display:none}.request-modal-dates{grid-template-columns:1fr;gap:16px}.request-modal-actions{display:grid;grid-template-columns:auto 1fr;gap:8px}#detail.request-modal .button{padding-inline:12px}}

/* Interaction motion: short, smooth and stopped by either reduced-motion setting. */


@media(hover:hover){.workspace #team-dashboard .staff-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #0000000c;border-color:color-mix(in srgb,var(--accent) 25%,var(--line))}.workspace .button:hover{transform:translateY(-1px)}.workspace .button:active{transform:translateY(0)}}
dialog[open]{animation:polish-dialog-in .24s cubic-bezier(.2,.75,.25,1)}
dialog::backdrop{animation:polish-backdrop-in .2s ease}
@keyframes polish-dialog-in{from{opacity:.5;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}
@keyframes polish-backdrop-in{from{opacity:0}to{opacity:1}}
@media(max-width:1000px){.workspace .promotions-page .promotion-row{gap:14px}}
@media(max-width:700px){.workspace #team-dashboard .staff-cards{grid-template-columns:1fr}.workspace .manual-page .manual-top,.workspace .manual-page .manual-intro,.workspace .manual-page .manual-chapter{padding:20px}.workspace .manual-page h1,.workspace .promotions-page h1{font-size:26px}.workspace .promotions-page .promotion-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.workspace .manual-page .manual-top{padding:0}.workspace .manual-page .manual-progress{flex-wrap:wrap;gap:10px}.workspace .manual-page .manual-progress>span:last-child{width:100%}.workspace .promotions-page .promotion-summary>button{min-height:88px;padding:16px}.workspace .promotions-page .promotion-summary>button:nth-child(2n){border-right:0}.workspace .promotions-page .promotion-summary>button:not(:last-child){border-bottom:1px solid var(--line)}.workspace .promotions-page .promotion-summary>button:last-child{grid-column:1 / -1}.workspace #vacations-root .vacation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace #vacations-root .vacation-metric{padding:16px;min-height:108px}.workspace #vacations-root .vacation-metric:nth-child(2){border-right:0}.workspace #vacations-root .vacation-metric:nth-child(-n/**/+2){border-bottom:1px solid var(--line)}}
@media(prefers-reduced-motion:reduce){.workspace *,.workspace *::before,.workspace *::after,dialog{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.site-reduced-motion .workspace *,.site-reduced-motion .workspace *::before,.site-reduced-motion .workspace *::after,.site-reduced-motion dialog{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* Tables use a quiet, theme-aware scroll track. */
html[data-theme=light]{color-scheme:light}
html[data-theme=dark]{color-scheme:dark}
.workspace :is(.table-scroll){scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.workspace :is(.table-scroll)::-webkit-scrollbar{height:7px;width:7px}
.workspace :is(.table-scroll)::-webkit-scrollbar-track{background:transparent}
.workspace :is(.table-scroll)::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}




html[data-theme=light] body[data-game]{background:#eef0f3}
html[data-theme=light] .demo-banner{background:#eef0f3;color:var(--muted)}
html[data-theme=light] .demo-banner a{color:var(--text)}

/* Keep colour for the connection, active status and existing sanctions. */
.workspace #team-dashboard{--staff-telegram:#197da9;--staff-warning:#a86a08;--staff-reprimand:#c04b47}
html[data-theme=dark] .workspace #team-dashboard{--staff-telegram:#62bfe8;--staff-warning:#e5b458;--staff-reprimand:#e68d89}
html[data-theme] .workspace #team-dashboard .staff-rank{color:var(--text);font-weight:450}
.workspace #team-dashboard .staff-card-facts .brand-logo--telegram{color:var(--staff-telegram);fill:currentColor;stroke:none}
.workspace #team-dashboard .staff-card-facts .linked-account{color:var(--muted)}
.workspace #team-dashboard .staff-card-discipline>div>strong{color:var(--text)}
.workspace #team-dashboard .staff-card-discipline>div>span{color:var(--muted)}
.workspace #team-dashboard .staff-card-discipline>.has-warning>strong{color:var(--staff-warning)}
.workspace #team-dashboard .staff-card-discipline>.has-reprimand>strong{color:var(--staff-reprimand)}
/* Navigation never compresses or clips rows to make room for its footer. */
.workspace .sidebar{--sidebar-surface:#f8f9fb}
html[data-theme=dark] .workspace .sidebar{--sidebar-surface:#151515}









@media(max-height:800px){.workspace .sidebar-head{margin-bottom:18px}.workspace .sidebar .direction-picker{margin-bottom:14px}.workspace .sidebar-footer .daily-quest{min-height:0;padding:10px}.workspace .daily-quest .quest-footer{display:none}.workspace .sidebar-footer .sidebar-agent{min-height:48px;padding:8px 9px}.workspace .sidebar-agent-copy small{display:none}.workspace .sidebar-user{margin-top:9px;margin-bottom:10px}}

@media(max-height:740px){.workspace>.sidebar{padding-top:20px}.workspace .sidebar .brand small,.workspace .sidebar .direction-picker>span{display:none}.workspace .sidebar-head{margin-bottom:16px}.workspace .sidebar .direction-picker{margin-bottom:12px}.workspace .sidebar-footer .daily-quest{padding:8px 10px}.workspace .sidebar-footer .daily-quest .quest-heading{display:none}.workspace .sidebar-footer .daily-quest .quest-task{margin-top:0}.workspace .sidebar-user{margin-block:8px}}

/* Keep the viewport width and content frame stable between routes. */
html{scrollbar-gutter:stable}
.workspace #content{min-height:calc(100dvh - 165px);overflow-anchor:none}
.workspace .sidebar{overflow-anchor:none}



/* The working screens use readable text at normal browser zoom. */



















/* The chart uses the selected colour itself, not its darkened text variant. */













.workspace .chart-missing-value{position:absolute;bottom:0;left:0;right:0;color:var(--faint);font-size:14px;text-align:center}







/* Team summary and modes stay in one clear row on a desktop. */
.workspace #team-dashboard .page-heading p{font-size:16px}
.workspace #team-dashboard .page-heading{margin-bottom:20px}
.workspace #team-dashboard .team-overview{margin:0 0 16px}
.workspace #team-dashboard .team-summary{padding:16px 20px;border-radius:10px}
.workspace #team-dashboard .team-dashboard-metrics{gap:24px}
.workspace #team-dashboard .team-dashboard-metrics>div{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.workspace #team-dashboard .team-dashboard-metrics span{font-size:16px;color:var(--muted)}
.workspace #team-dashboard .team-dashboard-metrics strong{margin:0;font-size:26px;line-height:1.2;color:var(--text);font-weight:550}
.workspace #team-dashboard .team-mode-tabs{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding:0 0 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;scrollbar-width:thin}
.workspace #team-dashboard .team-mode-tabs button{display:flex;align-items:center;justify-content:center;gap:16px;flex:0 0 auto;min-height:48px;padding:12px 18px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:16px;white-space:nowrap;box-shadow:none}
.workspace #team-dashboard .team-mode-tabs button.selected{background:var(--surface-raised);color:var(--text);font-weight:600}
.workspace #team-dashboard .team-mode-tabs button span{padding:2px 6px;background:transparent;color:var(--muted);font-size:14px}
.workspace #team-dashboard .team-roster-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}
.workspace #team-dashboard .team-roster-toolbar .tabs{margin:0}
.workspace #team-dashboard #roster-visible{font-size:15px}
.workspace #team-dashboard .team-dashboard-tabs button{font-size:16px;min-height:44px;padding:10px 16px}
.workspace #team-dashboard .team-dashboard-filters{gap:14px;margin-top:16px;margin-bottom:18px}
.workspace #team-dashboard .team-dashboard-filters :is(input,.select-trigger){font-size:16px;min-height:48px;height:48px}
.workspace #team-dashboard .team-dashboard-filters .search input{border:1px solid var(--line);border-radius:8px;outline:0;box-shadow:none}
.workspace #team-dashboard .team-dashboard-filters .search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 8%,transparent)}
/* The profile has the same readable scale as the rest of the workspace. */
.workspace #self-profile{max-width:1440px;margin-inline:auto;font-size:16px}



.workspace #self-profile :is(.reward-balance>div>span,.reward-balance .reward-totals>span,.reward-salary>div>span,.reward-salary small,.reward-rates>span,.profile-work-metrics span,.profile-connection-name small,.profile-empty,.discipline-policy,.profile-vacation-line span){font-size:16px;line-height:1.6}
.workspace #self-profile :is(.reward-caption,.reward-started,.reward-calendar,.reward-calendar small,.reward-quest-line small,.reward-quest-line>strong,.profile-updated,.profile-quota span,.profile-quota small){font-size:14px;line-height:1.6;color:var(--muted)}
.workspace #self-profile .reward-quest-line{padding:14px;font-size:16px}
.workspace #self-profile .reward-balance{padding:20px}
.workspace #self-profile .reward-balance>div>strong{font-size:44px}
.workspace #self-profile .reward-body{gap:24px}
.workspace #self-profile .reward-details{margin-top:18px}
.workspace #self-profile .reward-salary strong{font-size:23px;line-height:1.4}




@media(max-width:800px){.workspace #self-profile .reward-body{gap:20px}.workspace #self-profile .reward-payroll{padding:20px 0 0}}
@media(max-width:600px){.workspace #team-dashboard .team-dashboard-metrics{gap:20px}.workspace #team-dashboard .team-mode-tabs button{padding-inline:14px}.workspace #self-profile .reward-balance{flex-wrap:wrap}.workspace #self-profile .reward-balance>div>strong{font-size:40px}}

@media(min-width:1101px){.workspace{grid-template-columns:272px minmax(0,1fr)}.workspace>.sidebar{width:272px}}
.workspace .nav .nav-link:hover{background:var(--surface-raised)}


/* Shared fields stay inside their themed surfaces in every dialog. */
#detail{background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:0 24px 80px #0004}
#detail :is(input,textarea,select){box-sizing:border-box;max-width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-inset);color:var(--text);font:inherit;font-size:16px;line-height:1.6;box-shadow:none}
#detail :is(input,textarea,select):focus{outline:2px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:1px;border-color:var(--accent)}
#detail .button{background:var(--surface-raised);color:var(--text);border:1px solid var(--line);font-size:16px;min-height:44px;padding:10px 16px}
#detail .button.primary,.workspace #support-send,.workspace #economy .eco-action:not(:disabled){background:var(--accent-visual,#e7461f);border-color:var(--accent-visual,#e7461f);color:var(--accent-ink,#fff)}
#detail:has(#community-confirm){box-sizing:border-box;width:calc(100% - 32px);max-width:560px;max-height:calc(100dvh - 40px);margin:auto;padding:0;border-radius:16px}
#detail:has(#community-confirm) .detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:24px;border-bottom:1px solid var(--line)}
#detail:has(#community-confirm) h2{margin:0;font-size:23px;line-height:1.3;font-weight:600;letter-spacing:-.4px}
#detail:has(#community-confirm) .detail-body{padding:24px}
#detail:has(#community-confirm) .detail-body>p{margin:0 0 22px;font-size:16px;line-height:1.6;color:var(--muted)}
#detail:has(#community-confirm) .community-edit-label{display:grid;gap:9px;margin:0;font-size:15px;color:var(--text)}
#detail:has(#community-confirm) textarea{width:100%;min-height:160px;max-height:300px;resize:vertical}
#detail:has(#community-confirm) .review-buttons{display:flex;justify-content:flex-end;gap:10px;margin:22px 0 0}
#detail:has(#community-confirm) .review-buttons .button{flex:0 0 auto;width:auto;margin:0}
/* Workload tables share their hover, header and disclosure surfaces. */


















/* Promotion decisions form one list rather than nested cards. */
.workspace .promotions-page .promotion-summary>button span{font-size:16px}
.workspace .promotions-page .promotion-summary>button b{font-size:32px}
.workspace .promotions-page .promotion-list{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}
.workspace .promotions-page .promotion-row{margin:0;padding:22px 24px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-size:16px}
.workspace .promotions-page .promotion-row:last-child{border-bottom:0}
.workspace .promotions-page .promotion-row:hover{background:var(--surface-inset)}
.workspace .promotions-page .promotion-person strong{font-size:19px}
.workspace .promotions-page .promotion-person small{font-size:14px;line-height:1.6}
.workspace .promotions-page .promotion-row :is(small,.badge){font-size:14px;line-height:1.5}
.workspace .promotions-page .promotion-row :where(strong,.button){font-size:16px}
.workspace .promotions-page .promotion-toolbar :is(input,.select-trigger){font-size:16px;min-height:48px}
/* Issue reports follow the same readable list and toolbar proportions. */
.workspace #feedback-root{font-size:16px}
.workspace #feedback-root :is(.feedback-tabs button,.feedback-toolbar input,.feedback-toolbar .select-trigger){font-size:16px;min-height:48px}
.workspace #feedback-root :is(.feedback-row,.feedback-item){padding:24px;background:var(--surface);border-color:var(--line)}
.workspace #feedback-root :is(.feedback-row h3,.feedback-item h3){font-size:20px;line-height:1.4}
.workspace #feedback-root :is(.feedback-row p,.feedback-item p){font-size:16px;line-height:1.65}
.workspace #feedback-root :is(small,.feedback-meta,.feedback-summary,.badge){font-size:14px;line-height:1.5}
.workspace #feedback-root .button{font-size:15px;min-height:44px}
@media(max-width:600px){.workspace .promotions-page .promotion-row{padding:20px}.workspace #feedback-root :is(.feedback-row,.feedback-item){padding:20px}#detail:has(#community-confirm) :is(.detail-head,.detail-body){padding:20px}}

.workspace #feedback-root .feedback-title{font-size:20px;font-weight:600;line-height:1.4}
.workspace #feedback-root .feedback-preview{font-size:16px;line-height:1.65}
.workspace #feedback-root .feedback-item-mark{background:var(--surface-inset);border-color:var(--line);color:var(--accent)}
.workspace #feedback-root .feedback-item-tags :is(.feedback-pill,.feedback-mode,.feedback-id){font-size:14px;color:var(--muted)}
.workspace #feedback-root :is(.feedback-item-meta,.feedback-item-tags,.feedback-mode-nav button,.feedback-counts button){font-size:14px;line-height:1.6}
.workspace #feedback-root .feedback-mode-nav button{font-size:16px;min-height:48px}

.workspace #self-profile .reward-body>*{box-sizing:border-box;min-width:0}
#detail::backdrop{background:#0008;backdrop-filter:blur(5px)}
.workspace #community-root.support-inbox-page :is(.photo-button,#support-send){transform:none}

/* Activity is a quiet status table, with colour reserved for completed days. */







#detail:has(.team-member-dialog){box-sizing:border-box;width:calc(100% - 32px);max-width:880px;max-height:calc(100dvh - 40px);padding:0;margin:auto;border-radius:16px}
#detail:has(.team-member-dialog) .detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:24px 28px;border-bottom:1px solid var(--line)}
#detail:has(.team-member-dialog) .detail-head h2{font-size:25px;line-height:1.3;letter-spacing:-.4px;font-weight:600}
#detail .team-member-dialog{padding:26px 28px;font-size:16px;line-height:1.6}
#detail .team-member-dialog :is(label,legend){font-size:16px;line-height:1.5}
#detail .team-member-dialog :is(p,small,.muted,.staff-hint){font-size:14px;line-height:1.65;color:var(--muted)}
#detail .team-member-dialog h3{font-size:21px;line-height:1.4}
#detail .team-member-dialog fieldset{min-width:0;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--surface-inset)}
#detail .team-member-dialog :is(input,.select-trigger){min-height:46px;font-size:16px;background:var(--surface);color:var(--text);border-color:var(--line)}
@media(max-width:600px){#detail:has(.team-member-dialog) .detail-head,#detail .team-member-dialog{padding:20px}}

.workspace .search{padding:0;border:0;border-radius:8px;outline:0;background:transparent;box-shadow:none}
.workspace #team-dashboard .team-dashboard-filters .search{padding:0;border:0;outline:0;background:transparent;box-shadow:none}
.workspace #ai-agent-widget .agent-answer{font-size:16px;line-height:1.7}
.workspace #ai-agent-widget .agent-answer :is(p,li,dt,dd){font-size:16px;line-height:1.7}
.workspace #ai-agent-widget .agent-answer dl{display:grid;gap:10px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.workspace #ai-agent-widget .agent-answer dl>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface-inset);box-shadow:none}
.workspace #ai-agent-widget .agent-answer :is(dt,dd){margin:0;padding:0}
.workspace #ai-agent-widget .agent-step{padding:20px;border-radius:10px;background:var(--surface);border:1px solid var(--line);box-shadow:none}
.workspace #ai-agent-widget .agent-step-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding:0;border:0;background:transparent}
.workspace #ai-agent-widget .agent-step-stats span{padding:5px 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface-raised);color:var(--text);font-size:14px;line-height:1.5}
.workspace #ai-agent-widget :is(.agent-quick button,.agent-extra button){font-size:15px;min-height:44px}
