/* Shared workspace design. Page-specific layouts and permission checks stay in their modules. */
html:root,body[data-game] {
  --bg: #080808;
  --surface: #121212;
  --surface-raised: #1c1c1c;
  --surface-inset: #0c0c0c;
  --line: #ffffff14;
  --border: #ffffff14;
  --text: #f2f2f2;
  --muted: #b4b4b9;
  --faint: #909096;
  --ease: cubic-bezier(.2,.8,.2,1);
}
body { background: var(--bg); color: var(--text); font-size: 16px; -webkit-font-smoothing: antialiased; }
.workspace { grid-template-columns: 280px minmax(0,1fr); background: var(--bg); }
.workspace-main { background: var(--bg); }
.workspace > .sidebar {
  width: 280px; padding: 26px 14px 0; background: #0d0d0d;
  border-right: 1px solid var(--line); box-shadow: none; backdrop-filter: none;
}
.sidebar-head { padding: 0 12px; margin-bottom: 26px; }
.sidebar .brand { gap: 12px; font-size: 23px; letter-spacing: -.7px; }
.sidebar .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.sidebar .brand small { margin-top: 2px; color: var(--faint); font-size: 12px; font-weight: 450; letter-spacing: .1px; }
.sidebar .direction-picker { padding: 0 8px; margin: 0 0 22px; gap: 8px; }
.sidebar .direction-picker > span { color: var(--faint); font-size: 12px; font-weight: 500; }
.sidebar .direction-control { min-height: 43px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.sidebar .direction-control img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.sidebar .direction-control select { min-height: 42px; padding-left: 9px; font-size: 15px; font-weight: 550; background: transparent; border: 0; }
.sidebar .nav { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0 0 20px; }
.workspace .nav button {
  display: flex; align-items: center; gap: 10px; min-height: 42px; width: 100%; margin: 0;
  padding: 11px 12px; border: 0; border-radius: 8px; background: transparent;
  box-shadow: none; color: #c5c5cd; font-size: 16px; font-weight: 500; line-height: 1.4;
  text-align: left; transform: none; transition: color .12s,background-color .12s;
}
.workspace .nav button > span:not(.nav-count):not(.nav-section-chevron) { min-width: 0; flex: 1; }
.workspace .nav button > svg { width: 20px; height: 20px; flex: 0 0 20px; color: #a1a1ad; stroke-width: 1.7; }
.workspace .nav button:hover { background: #ffffff05; color: #eeeef3; box-shadow: none; transform: none; }
.workspace .nav button.active {
  background: color-mix(in srgb,var(--accent) 14%,transparent); color: #fff; box-shadow: none; border: 0;
  font-weight: 600; outline: none;
}
.workspace .nav button.active > svg { color: var(--accent); }
.workspace .nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.workspace .nav .nav-count { min-width: 25px; padding: 3px 6px; background: #ffffff08; border-radius: 5px; color: #c8c8d0; font-size: 12px; line-height: 1.3; flex: 0 0 auto; text-align: center; }
.workspace .nav button.active .nav-count { background: #ffffff0c; color: #e6e6ed; }
.nav-section { margin-top: 4px; min-width: 0; }
.workspace .nav .nav-section-toggle { min-height: 43px; padding-block: 11px; }
.workspace .nav .nav-section-toggle[aria-expanded="true"] { color: #e5e5ec; background: #ffffff04; }
.workspace .nav .nav-section-toggle.active { background: transparent; }
.nav-section-chevron { display: flex; align-items: center; margin-left: auto; color: #7c7c88; }
.nav-section-chevron svg { width: 14px; height: 14px; transition: transform .12s; }
.nav-section-toggle[aria-expanded="true"] .nav-section-chevron svg { transform: rotate(90deg); }
.nav-section-panel { position: relative; display: grid; gap: 3px; padding: 5px 0 4px 16px; margin-left: 16px; }
.nav-section-panel::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 7px; width: 1px; background: #ffffff0d; }
.workspace .nav .nav-section-panel > button { min-height: 44px; padding: 10px; font-size: 16px; font-weight: 450; gap: 10px; }
.workspace .nav .nav-section-panel > button > svg { width: 18px; height: 18px; flex-basis: 18px; color: #9595a2; }
.workspace .nav .nav-section-panel > button.active { font-weight: 550; }
.workspace .nav .nav-section-panel > button.active > svg { color: var(--accent); }
.workspace .nav .contains-active > .nav-section-toggle > svg { color: var(--accent); }
.nav-no-results { padding: 15px 12px; font-size: 13px; color: var(--muted); }
.sidebar-footer { border-top: 1px solid var(--line); padding-top: 12px; }
.workspace .sidebar-footer { background: #0d0d0d; }
.workspace .sidebar-user { background: #0d0d0d; }
.workspace .sidebar-footer .sidebar-agent { background: #ffffff04; }
.workspace .sidebar-footer .daily-quest { background: transparent; }
.sidebar-footer .sidebar-agent { border: 0; background: #ffffff04; border-radius: 9px; box-shadow: none; min-height: 52px; }
.sidebar-agent-copy strong { font-size: 14px; font-weight: 550; }
.sidebar-agent-copy small { font-size: 12px; color: var(--faint); }
.sidebar-footer .daily-quest { border-color: var(--line); background: transparent; border-radius: 9px; }
.sidebar-user { border-top: 1px solid var(--line); margin-top: 10px; padding: 16px 5px; }
.sidebar-user .admin-avatar { width: 34px; height: 34px; }
.sidebar-identity strong { font-size: 14px; font-weight: 550; }
.sidebar-identity small { font-size: 12px; color: var(--faint); }
.workspace .topbar { min-height: 72px; padding: 0 36px; border-bottom: 1px solid var(--line); background: var(--bg); }
.workspace .nav-search { max-width: 390px; color: #747481; }
.workspace .nav-search input { min-height: 42px; font-size: 15px; background: transparent; border: 0; color: var(--text); }
.workspace .sync-state { color: #a1a1ad; font-size: 12px; letter-spacing: .2px; }
.workspace .sync-state::before { width: 5px; height: 5px; background: #7bc59b; box-shadow: none; }
.workspace .topbar-settings { min-height: 40px; padding: 8px 10px; color: #bdbdc6; font-size: 14px; border-color: transparent; border-radius: 7px; }
.workspace .topbar .nav-search { background: var(--surface); border-color: var(--line); border-radius: 10px; }
.workspace .topbar .topbar-settings { background: transparent; }
.workspace .breadcrumb { padding: 23px 36px 0; gap: 9px; color: var(--faint); font-size: 13px; }
.workspace .breadcrumb strong { color: #c3c3cd; font-weight: 450; }
.workspace .breadcrumb svg { width: 12px; height: 12px; }
.workspace .content { width: 100%; max-width: 1640px; margin-inline: 0; padding: 25px 36px 48px; }
/* Keep page roots on the same left edge as the breadcrumb on wide screens. */
.workspace #content > :is(section,div) { margin-inline: 0; }
.workspace .page-heading { margin-bottom: 25px; gap: 18px; }
.workspace .page-heading h1 { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.9px; }
.workspace .page-heading p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.workspace .panel { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; box-shadow: none; }
.workspace .panel-heading h2,.workspace .section-title h2 { font-size: 20px; letter-spacing: -.4px; }
.workspace .button { min-height: 42px; border-radius: 9px; font-size: 15px; font-weight: 550; box-shadow: none; }
.workspace .button:hover { transform: none; }
.workspace input:not([type=checkbox]):not([type=radio]):not([type=range]),.workspace select,.workspace textarea {
  border-color: #ffffff17; border-radius: 8px; font-size: 15px;
}
.workspace input:focus-visible,.workspace select:focus-visible,.workspace textarea:focus-visible { outline: 2px solid color-mix(in srgb,var(--accent) 55%,transparent); outline-offset: 2px; }
.workspace .nav-search input,.workspace .direction-control select { border: 0; }
.workspace .tabs { padding: 4px; gap: 3px; border: 1px solid var(--line); background: var(--surface-inset); border-radius: 9px; }
.workspace .tabs button { min-height: 34px; padding: 7px 13px; border-radius: 6px; font-size: 13px; }
.workspace .tabs button.active,.workspace .tabs button[aria-selected=true] { background: var(--surface-raised); color: #fff; box-shadow: none; }
.workspace table th { font-size: 13px; font-weight: 500; color: #a2a2af; background: #ffffff02; padding-block: 13px; }
.workspace table td { font-size: 15px; padding-block: 17px; }
.workspace table tbody tr + tr { border-top: 1px solid #ffffff07; }
.workspace .cell-title { font-weight: 550; }
.workspace .cell-sub { color: #a2a2af; font-size: 13px; }
.workspace .badge { border-radius: 6px; font-size: 12px; font-weight: 500; }
.workspace .filters,.workspace .table-tools { gap: 14px; }
.workspace .overview-metrics { gap: 14px; }
.workspace .overview-metrics .stat-card { border-radius: 11px; border: 1px solid var(--line); background: var(--surface); box-shadow: none; }
.workspace .game-hero { border-radius: 13px; box-shadow: none; }
dialog { border-color: #ffffff19; border-radius: 15px; background: var(--surface); box-shadow: 0 24px 80px #0005; }
dialog::backdrop { background: #08080dbb; backdrop-filter: none; }
#toast { background: #2c2c34; border-color: #ffffff17; border-radius: 10px; color: #fff; }
.new-login .login-card { border: 1px solid #ffffff18; border-radius: 16px; box-shadow: 0 18px 65px #0003; }
.new-login .login-card h2 { font-size: 27px; }
.new-login .login-directions button { border-radius: 10px; }
/* A neutral foundation lets the saved accent carry the whole workspace. */
.workspace :is(.profile-summary>div,.profile-assignments,.profile-vacation,.profile-card,.staff-card,.promotion-row,.eco-product,.eco-mission-panel,.feedback-panel,.proof-panel) {
  background: var(--surface); border-color: var(--line); box-shadow: none;
}
.workspace :is(.profile-hero,.profile-cover) { background-color: var(--surface-inset); }
.workspace :is(.feedback-toolbar,.proof-toolbar,.table-tools,.staff-toolbar) { background: transparent; }
.workspace :is(.feedback-table thead,.proof-table thead,.staff-table thead) { background: var(--surface-inset); }
.workspace :is(.feedback-mode-nav,.proof-modes) button.active { color: var(--accent); background: color-mix(in srgb,var(--accent) 10%,transparent); }
.workspace .select-trigger { background: var(--surface-inset); border-color: var(--line); border-radius: 9px; }
.workspace .sidebar .direction-control { background: var(--surface); }
.workspace .sidebar .select-direction .select-trigger { background: transparent; }
.select-menu { background: #181818; border-color: #ffffff20; box-shadow: 0 16px 45px #0005; }
.select-option[aria-selected=true] { color: var(--accent); background: color-mix(in srgb,var(--accent) 12%,transparent); }
.workspace .button.primary,.workspace .button.lime { background: var(--action-blue); color: #fff; border-color: transparent; }
.workspace .button.primary:hover,.workspace .button.lime:hover { background: var(--action-blue-hover); }
.workspace .stat-card>div>svg { color: var(--accent); }
.workspace .game-hero { background: radial-gradient(ellipse at 80% 20%,#ffffff08,transparent 65%),var(--surface); border: 1px solid var(--line); }
.workspace .hero-pill { background: #ffffff0a; color: var(--muted); border-color: var(--line); }
.workspace .hero-pill span { background: var(--accent); }
.workspace .hero-grain { display: none; }
.workspace .hero-copy h2 { font-size: clamp(26px,2.3vw,36px); letter-spacing: -.8px; }
.workspace .game-card { background: var(--surface); border-color: var(--line); border-radius: 14px; box-shadow: none; }
.workspace .game-card.selected { border-color: color-mix(in srgb,var(--accent) 45%,var(--line)); }
.workspace .game-card.selected .selected-label { background: var(--action-blue); color: #fff; }
.workspace .game-card-copy { background: var(--surface); }
.workspace .game-card:hover { transform: none; }
/* The enamel in these images follows the selected hue. The silver stays neutral. */
.workspace-art { filter: hue-rotate(var(--art-hue,0deg)) saturate(var(--art-saturation,1)); }
#vacations-root .vacation-heading {
  min-height: 278px; padding: 32px 34px; border-color: var(--line); border-radius: 18px;
  background: radial-gradient(ellipse at 95% 70%,#ffffff08,transparent 60%),var(--surface);
}
#vacations-root .vacation-heading::after { display: none; }
#vacations-root .vacation-hero-copy { max-width: 62%; }
#vacations-root .vacation-hero-copy>.vacation-kicker { padding: 0; background: transparent; color: var(--accent); font-size: 11px; letter-spacing: 1.6px; font-weight: 600; }
#vacations-root h1 { margin: 13px 0 11px; max-width: 520px; font-size: clamp(28px,2.5vw,38px); line-height: 1.2; letter-spacing: -1.2px; }
#vacations-root .vacation-heading p { font-size: 15px; color: var(--muted); line-height: 1.75; }
#vacations-root .vacation-art {
  position: absolute; inset: 5px -6px 5px auto; z-index: 0; width: 38%; height: auto;
  margin: 0; transform: none; opacity: 1; display: flex; align-items: center; justify-content: center;
}
#vacations-root .vacation-art img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; }
#vacations-root .vacation-hero-actions { margin-top: 23px; }
#vacations-root .vacation-hero-actions .button { min-height: 42px; padding: 9px 16px; font-size: 14px; border-radius: 9px; }
#vacations-root .vacation-hero-date { font-size: 12px; }
#vacations-root .vacation-metrics { gap: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
#vacations-root .vacation-metric {
  min-height: 117px; margin: 10px 0; padding: 6px 20px; border: 0; border-right: 1px solid var(--line);
  border-radius: 0; background: transparent; --metric-color: var(--accent);
}
#vacations-root .vacation-metric:last-child { border-right: 0; }
#vacations-root .vacation-metric:hover { background: transparent; }
#vacations-root .vacation-metric-top { font-size: 14px; color: var(--muted); }
#vacations-root .vacation-metric strong { font-size: 31px; margin-top: 4px; }
#vacations-root .vacation-metric small { font-size: 12px; color: var(--faint); }
#vacations-root .vacation-metric-icon { width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb,var(--accent) 7%,#171717); color: var(--accent); border: 1px solid #ffffff08; }
#vacations-root .vacation-metric-icon svg { width: 31px; height: 31px; }
#vacations-root .vacation-panel { background: var(--surface); border-radius: 14px; }
#vacations-root .vacation-list-heading { padding: 23px 24px 18px; }
#vacations-root .vacation-list-title h2 { font-size: 21px; font-weight: 600; }
#vacations-root #vacation-count { font-size: 12px; color: var(--faint); }
#vacations-root .vacation-filters button { font-size: 13px; font-weight: 500; border-radius: 8px; }
#vacations-root .vacation-filters button.selected { color: var(--accent); background: color-mix(in srgb,var(--accent) 10%,transparent); }
#vacations-root .vacation-table-head { background: var(--surface-inset); color: var(--faint); }
#vacations-root .vacation-row { border-color: var(--line); }
#vacations-root .vacation-person strong { font-size: 16px; }
#vacations-root .vacation-source,#vacations-root .vacation-contact { color: var(--faint); font-size: 12px; }
#vacations-root .vacation-open { color: var(--accent); border-color: color-mix(in srgb,var(--accent) 20%,var(--line)); border-radius: 8px; background: color-mix(in srgb,var(--accent) 6%,transparent); font-size: 13px; }
#vacations-root .vacation-footnote { color: var(--faint); font-size: 12px; }
#site-preferences { background: var(--surface); }
#site-preferences :is(.preferences-preview,.preference-card) { background: var(--surface-inset); border-color: var(--line); }
.new-login { background: var(--bg); max-width: 1600px; }
.new-login .login-story { background: var(--bg); }
.new-login .login-story em { color: var(--accent); }
.new-login .login-scene { background: radial-gradient(ellipse at 50% 25%,#ffffff08,transparent 65%),var(--surface-inset); }
.new-login .login-scene::after { display: none; }
.new-login .login-figure { position: absolute; inset: 30px 0 auto; height: 48%; width: 100%; }
.new-login .login-character { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.new-login .scene-label { display: none; }
.new-login .login-card { position: relative; background: var(--surface); max-width: 480px; border-color: var(--line); }
.new-login .login-directions button { background: var(--surface); color: var(--text); border-color: var(--line); }
.new-login .login-directions button.selected { background: color-mix(in srgb,var(--accent) 9%,var(--surface)); border-color: color-mix(in srgb,var(--accent) 40%,var(--line)); }
@container vacations (max-width:840px) {
  #vacations-root .vacation-heading { min-height: 265px; padding: 27px; }
  #vacations-root .vacation-hero-copy { max-width: 68%; }
  #vacations-root .vacation-art { inset: 12px -24px 12px auto; width: 42%; opacity: 1; transform: none; z-index: 0; }
  #vacations-root h1 { font-size: 32px; }
  #vacations-root .vacation-metric:nth-child(2) { border-right: 0; }
  #vacations-root .vacation-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 0; }
}
@container vacations (max-width:540px) {
  #vacations-root .vacation-heading { padding: 23px; padding-top: 145px; }
  #vacations-root .vacation-hero-copy { max-width: 100%; }
  #vacations-root .vacation-art { inset: 8px 8px auto auto; width: 195px; height: 155px; }
  #vacations-root .vacation-kicker { max-width: 150px; }
  #vacations-root h1 { max-width: none; font-size: 30px; }
  #vacations-root .vacation-heading p { max-width: none; font-size: 14px; }
  #vacations-root .vacation-metric { padding-inline: 12px; gap: 3px; }
  #vacations-root .vacation-metric-top { font-size: 12px; }
  #vacations-root .vacation-metric-icon { width: 36px; height: 36px; }
  #vacations-root .vacation-metric-icon svg { width: 26px; height: 26px; }
  #vacations-root .vacation-metric small { font-size: 11px; }
}
@media(min-width:1800px) { .workspace .content { padding-top: 32px; } }
@media(max-width:1200px) {
  .workspace { grid-template-columns: 264px minmax(0,1fr); }
  .workspace > .sidebar { width: 264px; padding-inline: 11px; }
  .workspace .content { padding: 24px 24px 40px; }
  .workspace .topbar { padding-inline: 24px; }
  .workspace .breadcrumb { padding-inline: 24px; }
}
@media(max-width:1000px) {
  .workspace { display: block; }
  .workspace > .sidebar { width: 278px; max-width: calc(100vw - 40px); padding: 24px 14px 0; }
  .workspace .topbar { min-height: 62px; padding-inline: 20px; }
}
@media(max-width:620px) {
  body { font-size: 14px; }
  .workspace .topbar { min-height: 58px; padding-inline: 14px; gap: 8px; }
  .workspace .topbar-settings { width: 36px; padding: 8px; }
  .workspace .nav-search { min-width: 0; }
  .workspace .nav-search input { min-width: 0; font-size: 14px; }
  .workspace .breadcrumb { padding: 18px 16px 0; font-size: 11px; }
  .workspace .content { padding: 21px 16px 32px; }
  .workspace .page-heading h1 { font-size: 26px; }
  .workspace .page-heading p { font-size: 13px; }
  .workspace .page-heading { margin-bottom: 21px; }
  .workspace table td { font-size: 13px; }
}
@media(prefers-reduced-motion:reduce) { .nav-section-chevron svg,.workspace .nav button { transition: none; } }

/* Readable controls, with one shared surface for the catalogue categories. */
.workspace .eco-page .eco-categories[aria-label="Категории товаров"] {
  display:flex; flex-wrap:nowrap; align-items:center; gap:5px; padding:6px;
  margin:0 0 24px; border:1px solid var(--line); border-radius:12px; background:#101010;
  overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#ffffff24 transparent;
}
.workspace .eco-page .eco-categories button[data-category] {
  position:relative; flex:0 0 auto;min-height:44px; padding:11px 13px; border:1px solid transparent;
  border-radius:8px; background:transparent; color:#bdbdc6; font-size:14px; font-weight:500;
  line-height:1.4; white-space:nowrap; cursor:pointer; transform:none;
  transition:background-color .12s,color .12s,border-color .12s;
}
.workspace .eco-page .eco-categories button[data-category]:hover {background:#ffffff07;color:#fff}
.workspace .eco-page .eco-categories button[data-category][aria-pressed=true] {
  background:color-mix(in srgb,var(--accent) 15%,#141414);
  border-color:color-mix(in srgb,var(--accent) 35%,transparent); color:#fff; font-weight:600;
}
.workspace .eco-page .eco-categories button[data-category]:focus-visible {outline:2px solid var(--accent);outline-offset:-2px}
.workspace .eco-page .eco-product h3 {font-size:20px;line-height:1.4}
.workspace .eco-page :is(.eco-product-category,.eco-stock,.eco-duration,.eco-footnote) {font-size:14px;line-height:1.6}

/* Profile: clear numbers, comfortable labels, and quiet neutral cards. */
#self-profile .profile-heading {margin-bottom:26px;gap:20px}
#self-profile .profile-avatar {width:64px;height:64px;flex-basis:64px;border-radius:16px;object-fit:cover;image-rendering:auto}
#self-profile .profile-identity {gap:16px}
#self-profile .profile-heading .eyebrow {font-size:12px;letter-spacing:1.2px}
#self-profile .profile-heading h1 {font-size:34px;line-height:1.2;margin:5px 0 7px}
#self-profile .profile-heading p {font-size:16px;line-height:1.5}
#self-profile .profile-summary {gap:14px;margin-bottom:22px}
#self-profile .profile-summary>div {
  padding:20px;min-height:142px;gap:10px;grid-template-rows:auto minmax(36px,auto) auto;
  border:1px solid var(--line);border-radius:14px;background:var(--surface);
}
#self-profile .profile-summary-label {font-size:15px;line-height:1.5;color:#d5d5dc;min-height:24px}
#self-profile .profile-summary-label :is(svg,.brand-logo) {width:21px;height:21px;flex:0 0 21px}
#self-profile .profile-summary>div>strong {font-size:34px;line-height:1.2;font-weight:650;letter-spacing:-.7px}
#self-profile .profile-summary>div>strong.profile-text-value {font-size:22px;letter-spacing:-.35px;color:var(--text)}
#self-profile .profile-summary small {font-size:14px;line-height:1.5}
#self-profile .self-profile-layout {gap:20px;align-items:start}
#self-profile .self-profile-layout>.panel {padding:24px;border-radius:14px}
#self-profile .profile-panel-title {gap:13px;min-height:46px;margin-bottom:22px;align-items:center}
#self-profile .profile-panel-title h2 {font-size:24px;font-weight:600;letter-spacing:-.5px;line-height:1.3}
#self-profile .profile-panel-title p {font-size:14px;line-height:1.5;margin-top:5px}
#self-profile .profile-panel-icon {width:44px;height:44px;flex-basis:44px;border-radius:12px}
#self-profile .profile-panel-icon svg {width:24px;height:24px}
#self-profile .reward-body,#self-profile .reward-details {gap:24px}
#self-profile .reward-payroll {padding-left:24px}
#self-profile .reward-balance {padding:19px 20px;border-radius:12px;background:var(--surface-inset);gap:18px}
#self-profile .reward-balance>div>span {font-size:14px}
#self-profile .reward-balance>div>strong {font-size:42px;margin-top:7px;font-weight:650}
#self-profile .reward-balance strong small {font-size:15px}
#self-profile .reward-balance .reward-totals>span {font-size:14px;gap:14px}
#self-profile .reward-totals {gap:10px;min-width:120px}
#self-profile .reward-rates {gap:10px;margin-top:12px}
#self-profile .reward-rates>span {padding:11px 13px;font-size:14px;border-color:var(--line);background:transparent;border-radius:9px}
#self-profile .reward-salary>div>span {font-size:15px}
#self-profile .reward-salary>div>strong {font-size:21px;line-height:1.4}
#self-profile .reward-salary small {font-size:14px}
#self-profile .reward-calendar,#self-profile .reward-calendar small {font-size:13px;line-height:1.6}
#self-profile .reward-calendar {max-width:185px;gap:9px}
#self-profile .reward-calendar>svg {width:20px;height:20px;flex-basis:20px}
#self-profile .reward-quest-line {margin-top:18px;font-size:15px;line-height:1.6;gap:12px;flex-wrap:wrap}
#self-profile .reward-quest-line small,#self-profile .reward-quest-line>strong {font-size:14px;line-height:1.5}
#self-profile :is(.reward-caption,.reward-started,.profile-updated) {font-size:13px;line-height:1.65;margin-top:12px}
#self-profile .profile-history>summary {font-size:15px;line-height:1.5;padding-block:5px}
#self-profile .profile-work-metrics>div {padding:16px}
#self-profile .profile-work-metrics span,#self-profile .profile-quota span {font-size:14px;line-height:1.5}
#self-profile .profile-work-metrics strong {font-size:30px}
#self-profile .profile-quota strong {font-size:24px}
#self-profile .profile-quota small,#self-profile .profile-week-heading>span {font-size:14px}
#self-profile .profile-week-day :is(small,strong) {font-size:12px;line-height:1.5}
#self-profile .profile-work-empty {gap:14px;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface-inset)}
#self-profile .profile-work-empty strong {font-size:18px;line-height:1.5}
#self-profile .profile-work-empty p {font-size:15px;line-height:1.7;margin-top:6px}
#self-profile .profile-connection {padding:14px 0;gap:14px}
#self-profile .profile-connection-name {gap:13px}
#self-profile .profile-connection-name>.brand-logo {width:26px;height:26px;flex-basis:26px}
#self-profile .profile-connection-name strong,#self-profile .profile-chat-row strong {font-size:16px}
#self-profile .profile-connection-name small,#self-profile .profile-chat-row small {font-size:14px;line-height:1.6}
#self-profile .profile-connection .badge {padding:5px 9px;font-size:12px}
#self-profile .profile-link-actions .button {min-height:42px;font-size:14px}
#self-profile .profile-subheading {padding-top:16px;margin-top:18px}
#self-profile .profile-subheading h3 {font-size:17px}
#self-profile .profile-subheading .button {font-size:13px;min-height:36px}
#self-profile :is(.discipline-policy,.profile-discipline p,.profile-vacation-state,.profile-vacation-line>strong) {font-size:15px;line-height:1.7}

/* Support: a readable inbox and a separate conversation pane. */
#community-root .community-tabs {gap:5px;padding:6px;border-radius:12px;background:#101010;border-color:var(--line);grid-template-columns:repeat(3,minmax(0,1fr))}
#community-root .community-tabs button {min-height:46px;font-size:15px;line-height:1.45;padding:10px 13px;border-radius:8px;gap:10px}
#community-root .community-tabs button.selected {background:color-mix(in srgb,var(--accent) 12%,#141414);color:#fff;box-shadow:none}
#community-root .community-tabs button>svg {width:23px;height:23px;flex:0 0 23px}
#community-root .inbox-summary {gap:12px;margin:20px 0}
#community-root .inbox-summary>span {min-height:72px;padding:16px 20px;border-radius:12px;font-size:15px;background:var(--surface);border-color:var(--line);gap:11px}
#community-root .inbox-summary strong {font-size:28px;line-height:1.2;letter-spacing:-.6px}
#community-root .inbox-layout {border-radius:14px;border-color:var(--line);background:var(--surface)}
#community-root .inbox-list-pane {background:#101010;border-right:1px solid var(--line)}
#community-root .inbox-filters {padding:18px;gap:12px;background:transparent;border-bottom:1px solid var(--line)}
#community-root .inbox-filters input,#community-root .inbox-filters .select-trigger {font-size:15px;min-height:44px}
#community-root .inbox-row {padding:20px 18px;border-bottom:1px solid var(--line)}
#community-root .inbox-row:hover {background:#ffffff03;transform:none}
#community-root .inbox-row.selected {background:color-mix(in srgb,var(--accent) 7%,transparent);box-shadow:inset 3px 0 var(--accent)}
#community-root .inbox-row .ticket-identity strong {font-size:18px;font-weight:600;line-height:1.5}
#community-root .inbox-row-top time {font-size:13px;line-height:1.6}
#community-root .inbox-row .inbox-category {font-size:15px;line-height:1.6;margin:9px 0 14px;color:var(--muted)}
#community-root .inbox-row-bottom {font-size:13px;gap:10px}
#community-root .inbox-row-bottom .community-status {font-size:13px;min-height:28px;padding:4px 8px}
#community-root .chat-placeholder {max-width:410px;padding:32px}
#community-root .chat-placeholder>svg {width:32px;height:32px;padding:18px;border-radius:18px;margin-bottom:20px;color:var(--accent);background:color-mix(in srgb,var(--accent) 6%,transparent);border-color:color-mix(in srgb,var(--accent) 18%,transparent)}
#community-root .chat-placeholder h2 {font-size:24px;line-height:1.35;font-weight:600;letter-spacing:-.5px}
#community-root .chat-placeholder p {font-size:16px;line-height:1.8;color:var(--muted)}
#community-root .chat-head {padding:22px;background:var(--surface);border-bottom:1px solid var(--line)}
#community-root .chat-title h2 {font-size:20px;line-height:1.4}
#community-root .chat-title p,#community-root .chat-actions>.muted {font-size:14px;line-height:1.6}
#community-root .chat-message {padding:16px 18px;border-radius:12px;font-size:16px;line-height:1.75}
#community-root .chat-message p {font-size:16px;line-height:1.75}
#community-root :is(.message-meta,.message-state,.composer-note) {font-size:13px;line-height:1.6}
#community-root .message-meta strong {font-size:13px;font-weight:600}
#community-root .chat-composer {border-top:1px solid var(--line);padding:20px}
#community-root .chat-composer textarea {font-size:16px;line-height:1.7;border-radius:10px}
@media(min-width:901px) {
  #community-root .inbox-layout {display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);height:clamp(640px,69svh,900px);min-height:0}
  #community-root .inbox-chat {display:flex;height:100%;min-height:0}
  #community-root .chat-messages {flex:1;height:auto;max-height:none;min-height:160px}
}
@media(min-width:1500px) {#community-root .community-tabs {grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px) {
  #self-profile .reward-body,#self-profile .reward-details {grid-template-columns:1fr}
  #self-profile .reward-payroll {padding:20px 0 0;border-left:0;border-top:1px solid var(--line)}
}
@media(max-width:620px) {
  .workspace .eco-page .eco-categories[aria-label="Категории товаров"] {flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#ffffff24 transparent}
  .workspace .eco-page .eco-categories button[data-category] {flex:0 0 auto;min-height:44px;font-size:14px}
  #self-profile .profile-avatar {width:56px;height:56px;flex-basis:56px;border-radius:14px}
  #self-profile .profile-heading h1 {font-size:28px}
  #self-profile .profile-heading .eyebrow {font-size:11px}
  #self-profile .profile-heading p {font-size:14px}
  #self-profile .profile-heading>.button {margin-left:0}
  #self-profile .profile-summary {gap:10px}
  #self-profile .profile-summary>div {padding:15px;min-height:142px;gap:8px}
  #self-profile .profile-summary-label {font-size:14px;flex-wrap:wrap;gap:8px}
  #self-profile .profile-summary-label :is(svg,.brand-logo) {width:18px;height:18px;flex-basis:18px}
  #self-profile .profile-summary>div>strong.profile-text-value {font-size:19px;overflow-wrap:anywhere}
  #self-profile .profile-summary small {font-size:13px}
  #self-profile .self-profile-layout {gap:14px}
  #self-profile .self-profile-layout>.panel {padding:19px}
  #self-profile .profile-panel-title {gap:11px;margin-bottom:18px}
  #self-profile .profile-panel-title h2 {font-size:21px}
  #self-profile .profile-panel-title p {font-size:13px}
  #self-profile .profile-panel-icon {width:38px;height:38px;flex-basis:38px;border-radius:10px}
  #self-profile .reward-balance {padding:16px;flex-wrap:wrap}
  #self-profile .reward-balance>div>strong {font-size:36px}
  #self-profile .reward-totals {width:100%;min-width:0;grid-template-columns:1fr 1fr;gap:12px}
  #self-profile .reward-body,#self-profile .reward-details {gap:18px}
  #self-profile .reward-rates {flex-wrap:wrap}
  #self-profile .reward-rates>span {flex:1 1 130px}
  #self-profile .profile-connection {flex-wrap:wrap;gap:10px}
  #self-profile .profile-connection .badge {margin-left:39px}
  #self-profile .profile-week-bars {gap:4px}
  #self-profile .profile-week-day :is(small,strong) {font-size:11px}
  #community-root .community-tabs {grid-template-columns:repeat(2,minmax(0,1fr))}
  #community-root .community-tabs button {padding:10px;font-size:14px;gap:8px}
  #community-root .inbox-summary {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #community-root .inbox-summary>span {padding:13px;min-height:66px;font-size:14px;gap:8px}
  #community-root .inbox-summary strong {font-size:25px}
  #community-root .inbox-list-pane {border-right:0}
  #community-root .chat-head,#community-root .chat-composer {padding:16px}
  #community-root .chat-title h2 {font-size:18px}
  #community-root .chat-actions {flex-wrap:wrap}
}

/* Manual search and reading progress need separate, aligned rows. */
.workspace .manual-page .manual-top {align-items:center;margin-bottom:20px;gap:18px}
.workspace .manual-page .manual-top h1 {margin:6px 0 0;line-height:1.25}
.workspace .manual-page .manual-search {
  width:100%;max-width:860px;min-height:52px;margin:0 0 17px;padding:0 14px;gap:12px;
  border:1px solid var(--line);border-radius:11px;background:var(--surface);
}
.workspace .manual-page .manual-search>svg {width:20px;height:20px;flex:0 0 20px;color:var(--accent)}
.workspace .manual-page .manual-search input {font-size:16px;line-height:1.5;min-height:50px}
.workspace .manual-page .manual-search kbd {font-size:12px;line-height:1.5;padding:3px 6px;border:1px solid var(--line);border-radius:5px;color:var(--muted);white-space:nowrap}
.workspace .manual-page .manual-search button {display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:6px;border-radius:7px;color:var(--muted)}
.workspace .manual-page .manual-search button svg {width:18px;height:18px}
.workspace .manual-page .manual-search button:hover {color:var(--text);background:#ffffff07}
.workspace .manual-page .manual-progress {
  display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;max-width:860px;
  padding:0;margin:0 0 25px;border:0;font-size:14px;line-height:1.6;color:var(--muted);
}
.workspace .manual-page .manual-progress>span:first-child {color:var(--text)}
.workspace .manual-page .manual-progress>span:last-child {display:block;margin-left:auto;font-size:13px;color:var(--faint)}
.workspace .manual-page .manual-progress progress {width:180px;max-width:100%;height:5px;flex:0 1 180px;border-radius:5px}

/* Compact feedback rows retain the title and its description. */
.workspace #feedback-root .feedback-item {
  grid-template-columns:minmax(0,1fr) max-content max-content;gap:12px;padding:14px 20px;
}
.workspace #feedback-root .feedback-item-main {gap:12px}
.workspace #feedback-root .feedback-item-mark {width:34px;height:34px;flex-basis:34px;border-radius:9px;margin-top:2px}
.workspace #feedback-root .feedback-item-mark svg {width:21px;height:21px}
.workspace #feedback-root .feedback-item-copy {gap:4px}
.workspace #feedback-root .feedback-preview {line-height:1.6}
.workspace #feedback-root .feedback-item-meta {font-size:12px;line-height:1.5;margin-top:1px}
.workspace #feedback-root .feedback-item-status {justify-self:end}
.workspace #feedback-root .feedback-edit {min-height:36px;padding:7px 11px}
@container feedback-list (max-width:850px) {
 .workspace #feedback-root .feedback-item {grid-template-columns:minmax(0,1fr) 145px;gap:10px 16px;padding:14px 18px}
 .workspace #feedback-root .feedback-item-main {grid-column:1;grid-row:1/3}
 .workspace #feedback-root .feedback-item-status {grid-column:2;grid-row:1;align-self:end}
 .workspace #feedback-root .feedback-edit {grid-column:2;grid-row:2;align-self:start}
}
@container feedback-list (max-width:570px) {
 .workspace #feedback-root .feedback-item {grid-template-columns:minmax(0,1fr) auto;gap:12px 10px;padding:15px 16px}
 .workspace #feedback-root .feedback-item-main {grid-column:1/-1;grid-row:1;gap:10px}
 .workspace #feedback-root .feedback-item-mark {width:31px;height:31px;flex-basis:31px}
 .workspace #feedback-root .feedback-item-status {grid-column:1;grid-row:2;align-self:center;justify-self:start;margin-left:0}
 .workspace #feedback-root .feedback-edit {grid-column:2;grid-row:2;align-self:center;padding-inline:9px}
}
@container feedback-list (max-width:330px) {
 .workspace #feedback-root .feedback-item {grid-template-columns:minmax(0,1fr)}
 .workspace #feedback-root .feedback-item-status {grid-column:1;grid-row:2;margin-left:41px}
 .workspace #feedback-root .feedback-edit {grid-column:1;grid-row:3;justify-self:start;margin-left:41px}
}

/* Keep workload values legible instead of squeezing all columns on phones. */
.workspace #weekly-workload .weekly-table {min-width:1160px}
.workspace #weekly-workload .weekly-table thead th {font-size:14px;padding:15px 10px}
.workspace #weekly-workload .weekly-table thead th:first-child {width:220px;padding-left:18px}
.workspace #weekly-workload .weekly-table thead small {font-size:13px;margin-top:5px}
.workspace #weekly-workload .weekly-table tbody th {padding:15px 18px}
.workspace #weekly-workload .weekly-table tbody td {padding:15px 10px;font-size:17px;line-height:1.5}
.workspace #weekly-workload .weekly-table td .weekly-day-value {font-size:17px;font-weight:600}
.workspace #weekly-workload .weekly-table td .weekly-norm-target {font-size:13px;margin-left:3px}
.workspace #weekly-workload .weekly-table td .weekly-day-value.weekly-day-untracked {font-size:14px;font-weight:450;line-height:1.5}
.workspace #weekly-workload .weekly-day-note {font-size:13px;margin-top:4px;line-height:1.5}
.workspace #weekly-workload .weekly-person {gap:12px}
.workspace #weekly-workload .weekly-person>.weekly-avatar {width:36px;height:36px;flex:0 0 36px;border-radius:9px;object-fit:cover;image-rendering:auto}
.workspace #weekly-workload .weekly-person strong {font-size:17px;line-height:1.45}
.workspace #weekly-workload .weekly-person small {font-size:14px;line-height:1.5;margin-top:3px}
.workspace #weekly-workload .weekly-person-modes>span {font-size:12px;line-height:1.4;padding:2px 6px}
.workspace #weekly-workload .weekly-table-footer {font-size:14px;line-height:1.7;padding:16px 18px}

/* A consistent log table for punishments outside the active team. */
.workspace #weekly-workload .other-punishments-heading {gap:16px;margin-bottom:20px;align-items:center}
.workspace #weekly-workload .other-punishments-heading h2 {font-size:26px;line-height:1.3;margin:7px 0 9px}
.workspace #weekly-workload .other-punishments-heading p {font-size:15px;line-height:1.7}
.workspace #weekly-workload .other-punishments-heading>span {padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;color:var(--muted);background:var(--surface);white-space:nowrap}
.workspace #weekly-workload .other-punishments .weekly-table-panel {border-color:var(--line);border-radius:13px;background:var(--surface)}
.workspace #weekly-workload .other-punishments .weekly-table-tools {padding:16px 18px;border-bottom:1px solid var(--line)}
.workspace #weekly-workload .other-punishments .weekly-table-tools .search {max-width:500px}
.workspace #weekly-workload .other-punishments-table {display:table;min-width:1100px;line-height:1.6}
.workspace #weekly-workload .other-punishments-table thead {display:table-header-group}
.workspace #weekly-workload .other-punishments-table tbody {display:table-row-group}
.workspace #weekly-workload .other-punishments-table tr {display:table-row;margin:0;padding:0;border:0}
.workspace #weekly-workload .other-punishments-table :is(th,td) {display:table-cell}
.workspace #weekly-workload .other-punishments-table thead th {font-size:13px;font-weight:500;color:var(--muted);padding:13px 18px;background:#161616;white-space:nowrap;border-bottom:1px solid var(--line)}
.workspace #weekly-workload .other-punishments-table tbody :is(th,td) {padding:17px 18px;font-size:15px;line-height:1.6;border-bottom:1px solid var(--line);vertical-align:middle;background:transparent}
.workspace #weekly-workload .other-punishments-table tbody tr:last-child :is(th,td) {border-bottom:0}
.workspace #weekly-workload .other-punishments-table tbody th strong {display:block;font-size:16px;font-weight:550;color:var(--text);line-height:1.5}
.workspace #weekly-workload .other-punishments-table tbody td:nth-child(2) {font-size:16px;font-weight:550;color:var(--text)}
.workspace #weekly-workload .other-punishments-table small {font-size:13px;color:var(--faint);line-height:1.6;margin-top:5px}
.workspace #weekly-workload .other-punishments-table .other-punishment-reason {font-size:15px;line-height:1.7;color:#d2d2da}
.workspace #weekly-workload .other-punishment-type {padding:5px 10px;font-size:13px;line-height:1.4;border-radius:7px;font-weight:550}
.workspace #weekly-workload .other-punishment-type.is-ban {color:#ff9aaa;background:#ff71840c;border-color:#ff718428}
.workspace #weekly-workload .other-punishment-type.is-mute {color:#ffd08a;background:#ffbd4a0c;border-color:#ffbd4a28}
.workspace #weekly-workload .other-punishment-time time {font-size:14px;color:var(--text);line-height:1.6}
.workspace #weekly-workload .other-punishment-time a {font-size:13px;line-height:1.5;color:var(--accent);margin-top:7px}
.workspace #weekly-workload .other-pagination {padding:15px 18px;border-top:1px solid var(--line);font-size:13px;background:#101010}
.workspace #weekly-workload .other-pagination .button {min-height:38px;padding:8px 13px;font-size:14px}
@media(max-width:620px) {
 .workspace .manual-page .manual-top {gap:14px;align-items:flex-start;margin-bottom:18px}
 .workspace .manual-page .manual-top h1 {font-size:28px}
 .workspace .manual-page .manual-search {padding-inline:12px;gap:9px;margin-bottom:15px}
 .workspace .manual-page .manual-search input {font-size:15px}
 .workspace .manual-page .manual-search kbd {display:none}
 .workspace .manual-page .manual-progress {display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:22px;font-size:14px}
 .workspace .manual-page .manual-progress progress {width:100%;max-width:none;height:5px}
 .workspace .manual-page .manual-progress>span:last-child {margin-left:0;font-size:12px}
 .workspace #weekly-workload .other-punishments-heading {align-items:flex-start}
 .workspace #weekly-workload .other-punishments-heading>span {white-space:normal}
 .workspace #weekly-workload .other-punishments-heading h2 {font-size:23px}
 .workspace #weekly-workload .other-pagination {gap:12px}
}

/* Give the signed-in profile a readable size at the foot of the sidebar. */
.workspace .sidebar-footer .sidebar-user {min-height:78px;gap:12px;padding:14px 4px 12px;border-top:1px solid var(--line)}
.workspace .sidebar-footer .sidebar-user>.admin-avatar {width:44px;height:44px;flex:0 0 44px;font-size:18px}
.workspace .sidebar-user .sidebar-identity strong {font-size:17px;font-weight:600;line-height:1.4;white-space:nowrap}
.workspace .sidebar-user .sidebar-identity small {display:block;margin-top:3px;font-size:14px;line-height:1.5}
.workspace .sidebar-user-actions .icon-button {width:38px;height:38px;min-height:38px;padding:9px}
.workspace .sidebar-user-actions .icon-button svg {width:20px;height:20px}
