@font-face {
  font-family: "GameX SC";
  src: url("../fonts/notosans-regular.7a69138dad92.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GameX SC";
  src: url("../fonts/notosans-semibold.92d766383715.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --ink: #17211f;
  --ink-soft: #53605d;
  --line: #dbe2df;
  --surface: #ffffff;
  --canvas: #f4f7f5;
  --teal: #17786b;
  --teal-dark: #105c53;
  --teal-soft: #e3f1ed;
  --coral: #c85643;
  --coral-dark: #9f3f31;
  --coral-soft: #fae9e5;
  --amber: #bc7b16;
  --amber-soft: #fff1d7;
  --shadow: 0 16px 45px rgba(19, 39, 34, 0.09);
  --sidebar: 244px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
@font-face {
  font-family: "GameX BN";
  src: url("../fonts/notosans-bengali-regular.e76717b416a6.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GameX BN";
  src: url("../fonts/notosans-bengali-semibold.a3d0fc6abcc3.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "GameX SC", "GameX BN", "Microsoft YaHei", "Nirmala UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; background: white; padding: 10px; }
.skip-link:focus { top: 12px; }

.tri-text { display: inline-flex; max-width: 100%; min-width: 0; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.tri-secondary { max-width: 100%; color: var(--ink-soft); font-size: 0.76em; font-weight: 400; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.tri-light, .tri-light .tri-secondary { color: #fff; }
.tri-display > span:first-child { font-size: 34px; font-weight: 600; }
.tri-display .tri-secondary { margin-top: 9px; font-size: 15px; color: rgba(255,255,255,.78); }
.tri-heading > span:first-child { font-size: 28px; font-weight: 700; }
.tri-heading .tri-secondary { margin-top: 4px; font-size: 14px; }
.tri-heading-small > span:first-child { font-size: 20px; font-weight: 650; }
.tri-page-title > span:first-child { font-size: 30px; font-weight: 700; }
.tri-page-title .tri-secondary { margin-top: 4px; font-size: 14px; }
.tri-body > span:first-child { font-size: 14px; }
.tri-body .tri-secondary { margin-top: 2px; font-size: 12px; }
.tri-label > span:first-child { font-size: 13px; font-weight: 600; }
.tri-label .tri-secondary { font-size: 10px; margin-top: 1px; }
.tri-button { align-items: center; }
.tri-button > span:first-child { font-size: 13px; font-weight: 650; }
.tri-button .tri-secondary { font-size: 9px; line-height: 1.1; color: inherit; opacity: .75; }
.tri-nav > span:first-child { font-size: 13px; font-weight: 600; }
.tri-nav .tri-secondary { font-size: 9px; color: inherit; opacity: .62; }
.tri-nav-sub > span:first-child { font-size: 11px; font-weight: 600; }
.tri-nav-sub .tri-secondary { font-size: 8px; color: inherit; opacity: .62; }
.tri-table > span:first-child { font-size: 12px; font-weight: 650; }
.tri-table .tri-secondary { margin-top: 2px; font-size: 9px; }
.tri-metric > span:first-child { font-size: 12px; font-weight: 600; }
.tri-metric .tri-secondary { font-size: 9px; }
.tri-value > span:first-child { font-size: 18px; font-weight: 700; }
.tri-value .tri-secondary { font-size: 9px; }
.tri-count { align-items: center; }
.tri-count > span:first-child { font-size: 11px; font-weight: 600; }
.tri-count .tri-secondary { font-size: 8px; }
.tri-user-role > span:first-child { font-size: 8px; }
.tri-user-role .tri-secondary { font-size: 6px; line-height: 1.2; }

.brand, .auth-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1;
}
.brand-main { font-size: 23px; }
.brand-sub { margin-top: 5px; color: var(--coral); font-size: 10px; font-weight: 700; }

.auth-body { background: #dfe5e2; }
.auth-stage { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 48%) minmax(500px, 52%); }
.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #283d37;
  background-image: url("../images/studio-team.a23ba26e6ff6.webp");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  color: white;
}
.auth-visual::after { content: ""; position: absolute; inset: 0; background: rgba(11, 31, 26, .18); }
.visual-copy { position: absolute; left: clamp(32px, 6%, 74px); right: 42px; bottom: 14%; z-index: 1; max-width: 560px; }
.visual-eyebrow { display: block; margin-bottom: 22px; }
.visual-eyebrow .tri-text > span:first-child { font-size: 11px; text-transform: uppercase; }
.visual-eyebrow .tri-secondary { color: rgba(255,255,255,.65); font-size: 9px; }
.auth-brand { margin-bottom: 22px; color: white; }
.auth-brand .brand-main { font-size: 52px; }
.auth-brand .brand-sub { margin-top: 8px; color: #ffc766; font-size: 18px; }
.visual-copy h1 { margin: 0; }
.visual-index { position: absolute; z-index: 1; left: clamp(32px, 6%, 74px); right: 42px; top: 48px; display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,.72); }
.auth-panel { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #fbfcfb; padding: 34px 54px; overflow-y: auto; }
.auth-panel-inner { width: min(100%, 570px); }
.auth-panel-brand { display: none; margin-bottom: 32px; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); height: 62px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.auth-tabs a { position: relative; min-width: 0; padding: 0 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #6c7774; }
.auth-tabs a::after { content: ""; position: absolute; height: 3px; left: 0; right: 0; bottom: -1px; background: transparent; }
.auth-tabs a.active { color: var(--ink); }
.auth-tabs a.active::after { background: var(--teal); }
.tri-tab { align-items: center; text-align: center; }
.tri-tab > span:first-child { font-size: 14px; font-weight: 650; }
.tri-tab .tri-secondary { color: inherit; font-size: 10px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading.compact { margin-bottom: 20px; }
.auth-heading h2 { margin: 0 0 10px; }
.auth-heading p { margin: 0; color: var(--ink-soft); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.registration-form { gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-span-2 { grid-column: 1 / -1; }
.form-field { min-width: 0; }
.form-field label { display: block; margin-bottom: 7px; }
.control-wrap { position: relative; }
.control-wrap > svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; color: #7a8582; transform: translateY(-50%); pointer-events: none; }
.form-control {
  width: 100%;
  height: 48px;
  border: 1px solid #cfd8d4;
  border-radius: 6px;
  padding: 0 13px 0 42px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
select.form-control { cursor: pointer; }
.form-control:hover { border-color: #a6b3ae; }
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,120,107,.12); }
.has-error .form-control { border-color: var(--coral); }
.field-errors, .form-alert { color: var(--coral-dark); font-size: 11px; line-height: 1.45; }
.field-errors { margin-top: 5px; display: flex; flex-direction: column; }
.form-alert { padding: 11px 13px; background: var(--coral-soft); border-left: 3px solid var(--coral); border-radius: 4px; }

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { background: white; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: #eef3f0; border-color: #bdcac5; }
.button-danger { background: var(--coral); color: white; }
.button-danger:hover { background: var(--coral-dark); }
.button-wide { width: 100%; margin-top: 4px; }
.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.icon-button:hover { background: #e7ece9; color: var(--ink); }
.icon-button.outlined { border: 1px solid var(--line); }
.success-state, .empty-state, .error-state { display: flex; flex-direction: column; align-items: center; text-align: center; }
.success-state { padding: 54px 0; }
.success-state h2, .empty-state h2 { margin: 20px 0 10px; }
.success-state p, .empty-state p { margin: 0 0 28px; color: var(--ink-soft); }
.state-icon { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--teal); background: var(--teal-soft); }
.state-icon.danger { color: var(--coral); background: var(--coral-soft); }

.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 18px 20px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.sidebar > .brand { margin-left: 14px; }
.primary-nav { min-height: 0; display: flex; flex-direction: column; gap: 6px; margin-top: 34px; overflow-y: auto; scrollbar-width: thin; }
.nav-item { min-height: 52px; padding: 8px 13px; border-radius: 6px; display: flex; align-items: center; gap: 12px; color: #65716d; }
.nav-item:hover { color: var(--ink); background: #f1f5f3; }
.nav-item.active { color: var(--teal-dark); background: var(--teal-soft); }
.nav-section-label { min-height: 42px; padding: 8px 13px; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.nav-section-label > svg { color: var(--teal); }
.game-navigation { padding: 0 6px 4px 18px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); margin-left: 22px; }
.nav-game summary { min-height: 35px; padding: 5px 7px; display: flex; align-items: center; justify-content: space-between; border-radius: 5px; color: var(--ink-soft); cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; }
.nav-game summary::-webkit-details-marker { display: none; }
.nav-game summary:hover { color: var(--ink); background: #f1f5f3; }
.nav-game summary svg { width: 14px; height: 14px; transition: transform .15s; }
.nav-game[open] summary svg { transform: rotate(180deg); }
.nav-subitem { min-height: 35px; margin-top: 2px; padding: 5px 7px 5px 13px; display: flex; align-items: center; border-radius: 5px; color: #76817e; }
.nav-subitem:hover { color: var(--ink); background: #f1f5f3; }
.nav-subitem.active { color: var(--teal-dark); background: var(--teal-soft); }
.sidebar-user { margin-top: auto; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 36px minmax(0, 1fr) 38px; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-weight: 700; }
.user-copy { min-width: 0; display: flex; flex-direction: column; }
.user-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-copy > .tri-user-role { margin-top: 2px; color: var(--ink-soft); }
.mobile-header, .mobile-menu { display: none; }
.main-content { min-height: 100vh; margin-left: var(--sidebar); padding: 0; }
.page-shell { width: min(100%, 1440px); margin: 0 auto; padding: 54px 50px; }
.page-header { min-height: 132px; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 8px 0 9px; }
.dashboard-greeting { display: flex; align-items: flex-start; gap: 13px; }
.greeting-name { padding-top: 0; font-size: 30px; font-weight: 700; line-height: 1.25; }
.page-header p { margin: 0; color: var(--ink-soft); }
.page-kicker { color: var(--teal); font-size: 10px; font-weight: 700; }
.date-mark { color: #86918e; font-size: 12px; margin-top: 25px; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.metric-card { min-height: 116px; padding: 20px; display: flex; align-items: center; gap: 15px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.metric-card > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.metric-icon { width: 44px; height: 44px; border-radius: 6px; display: grid; place-items: center; }
.metric-icon.mint { color: var(--teal); background: var(--teal-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.coral { color: var(--coral); background: var(--coral-soft); }
.metric-card .number { font-size: 25px; }
.metric-action .icon-button { margin-left: auto; }
.count-badge { min-width: 90px; padding: 12px 16px; border: 1px solid #edd3a7; border-radius: 7px; background: var(--amber-soft); display: flex; align-items: center; gap: 9px; }
.count-badge strong { color: var(--amber); font-size: 24px; }
.search-bar { height: 54px; margin: 26px 0 16px; padding: 5px 6px 5px 15px; display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.search-bar > svg { color: #84908c; }
.search-bar input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-bar .button { min-height: 42px; }
.data-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th { height: 62px; padding: 10px 14px; text-align: left; background: #f8faf9; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.data-table td { height: 72px; padding: 12px 14px; border-bottom: 1px solid #e8edeb; vertical-align: middle; font-size: 13px; word-break: break-word; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfb; }
.data-table th:nth-child(1) { width: 17%; }
.data-table th:nth-child(2) { width: 15%; }
.data-table th:nth-child(3) { width: 18%; }
.data-table th:nth-child(4) { width: 17%; }
.data-table th:nth-child(5) { width: 19%; }
.data-table th:nth-child(6) { width: 14%; }
.username { display: block; margin-bottom: 6px; }
.status-chip { display: inline-block; max-width: 100%; padding: 2px 6px; border-radius: 4px; font-size: 8px; line-height: 1.3; }
.status-chip.pending { color: #795116; background: var(--amber-soft); }
.status-chip.approved { color: var(--teal-dark); background: var(--teal-soft); }
.status-chip.departed { color: #5d6670; background: #e8ecef; }
.status-chip.danger { color: var(--coral-dark); background: var(--coral-soft); }
.phone-value, time { color: var(--ink-soft); font-size: 12px; }
.dot { padding: 0 6px; color: #abb5b1; }
.actions-cell { text-align: right !important; white-space: nowrap; }
td.actions-cell { display: table-cell; }
td.actions-cell form { display: inline-flex; }
.icon-button.approve { color: var(--teal); background: var(--teal-soft); }
.icon-button.reject { color: var(--coral); background: var(--coral-soft); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; }
.pagination > span { color: var(--ink-soft); font-size: 12px; }
.empty-state { min-height: 300px; justify-content: center; background: white; border: 1px dashed #cbd5d1; border-radius: 8px; }
.confirm-shell { min-height: calc(100vh - 100px); display: grid; place-items: center; padding: 40px; }
.confirm-panel { width: min(100%, 560px); padding: 38px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.confirm-panel h1 { margin: 20px 0 12px; }
.confirm-panel > p { margin: 0; color: var(--ink-soft); }
.confirm-summary { margin: 26px 0; border-top: 1px solid var(--line); }
.confirm-summary > div { display: grid; grid-template-columns: 45% 55%; padding: 12px 0; border-bottom: 1px solid var(--line); }
.confirm-summary dt { color: var(--ink-soft); font-size: 11px; }
.confirm-summary dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.message-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.message { padding: 11px 14px; border-radius: 5px; border-left: 3px solid var(--teal); background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; }
.message.warning, .message.error { border-left-color: var(--coral); background: var(--coral-soft); color: var(--coral-dark); }
.error-state { min-height: 70vh; justify-content: center; padding: 30px; }
.error-state.standalone { min-height: 100vh; }
.error-state > strong { color: #ccd4d1; font-size: 72px; line-height: 1; }
.error-state h1 { margin: 20px 0 10px; }
.error-state p { margin: 0 0 28px; color: var(--ink-soft); }
.employee-table th:nth-child(1) { width: 14%; }
.employee-table th:nth-child(2) { width: 14%; }
.employee-table th:nth-child(3) { width: 16%; }
.employee-table th:nth-child(4) { width: 16%; }
.employee-table th:nth-child(5) { width: 14%; }
.employee-table th:nth-child(6) { width: 17%; }
.employee-table th:nth-child(7) { width: 9%; }
.employee-count { border-color: #bcd9d1; background: var(--teal-soft); }
.employee-count strong { color: var(--teal); }
.employee-edit-shell { max-width: 1040px; }
.back-link { min-height: 38px; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.back-link:hover { color: var(--teal); }
.compact-header { min-height: 118px; align-items: center; }
.avatar.large { width: 54px; height: 54px; font-size: 18px; }
.employee-edit-form { margin-top: 24px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.employee-edit-form .form-grid { gap: 20px; }
.qualification-editor { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.qualification-editor-heading h2 { margin: 5px 0 6px; }
.qualification-editor-heading p { margin: 0; }
.qualification-list { margin-top: 18px; display: grid; gap: 12px; }
.qualification-row { min-width: 0; margin: 0; padding: 16px; display: grid; grid-template-columns: minmax(140px, .8fr) repeat(2, minmax(190px, 1fr)) minmax(180px, .8fr); align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 8px; }
.qualification-row legend { float: left; width: 100%; padding: 0; font-size: 16px; font-weight: 750; }
.qualification-option { min-width: 0; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.qualification-checkbox { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--teal); }
.qualification-option span { min-width: 0; display: grid; gap: 3px; }
.qualification-option strong { font-size: 12px; }
.qualification-option small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.qualification-access-state { min-width: 0; display: flex; align-items: center; gap: 8px; color: #795116; font-size: 11px; font-weight: 700; }
.qualification-access-state svg { width: 17px; height: 17px; flex: 0 0 auto; }
.qualification-access-state.is-unlocked { color: var(--teal-dark); }
.edit-actions { margin-top: 26px; padding-top: 20px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.status-filters { margin-top: 24px; display: flex; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; background: #e9efec; border-radius: 7px; }
.status-filter { min-width: 92px; min-height: 48px; padding: 6px 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); border-radius: 5px; white-space: nowrap; }
.status-filter:hover { color: var(--ink); background: rgba(255,255,255,.55); }
.status-filter.active { color: var(--teal-dark); background: white; box-shadow: 0 1px 3px rgba(25,44,38,.1); }
.tri-filter { align-items: center; text-align: center; }
.departure-action { margin-top: 18px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: white; border: 1px solid #efc9c1; border-radius: 8px; }
.departure-action p { max-width: 660px; margin: 7px 0 0; color: var(--ink-soft); }
.employment-summary { margin-top: 18px; padding: 20px 24px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.employment-summary dl { margin: 15px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.employment-summary dl div { min-width: 0; }
.employment-summary dt { color: var(--ink-soft); font-size: 11px; }
.employment-summary dd { margin: 4px 0 0; font-weight: 600; word-break: break-word; }
.manual-shell, .work-shell { max-width: 1180px; }
.manual-mark, .game-monogram { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 7px; color: var(--teal); background: var(--teal-soft); font-weight: 800; }
.manual-sections { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.manual-section { min-height: 172px; padding: 25px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 17px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manual-section-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 6px; }
.manual-section h2, .manual-section p { margin: 0; }
.manual-section p { margin-top: 11px; color: var(--ink-soft); }
.game-page-tabs { min-height: 58px; margin-top: 22px; display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.game-page-tabs a { position: relative; min-width: 150px; padding: 8px 4px 12px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink-soft); }
.game-page-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.game-page-tabs a.active { color: var(--teal-dark); }
.game-page-tabs a.active::after { background: var(--teal); }
.local-recorder { margin-top: 28px; display: grid; grid-template-columns: minmax(340px, .78fr) minmax(0, 1.22fr); background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.recorder-controls { min-width: 0; padding: 30px; background: #f9fbfa; border-right: 1px solid var(--line); }
.local-only-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.local-only-heading h2, .local-only-heading p { margin: 0; }
.local-only-heading p { margin-top: 8px; color: var(--ink-soft); }
.local-only-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; color: var(--teal); background: var(--teal-soft); }
.recording-instructions { margin: 26px 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.recording-instructions li { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 9px; color: var(--ink-soft); }
.recording-instructions li > span:first-child { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-dark); background: var(--teal-soft); font-size: 10px; font-weight: 700; }
.recording-instructions .tri-body > span:first-child { font-size: 11px; }
.recording-instructions .tri-body .tri-secondary { font-size: 8px; }
.recorder-runtime { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recorder-status { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; overflow-wrap: anywhere; }
.recorder-status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #a7b3af; box-shadow: 0 0 0 5px #edf1ef; }
.recorder-status.is-busy { color: var(--teal-dark); }
.recorder-status.is-busy .recorder-status-dot { background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }
.recorder-status.is-recording { color: var(--coral-dark); }
.recorder-status.is-recording .recorder-status-dot { background: var(--coral); box-shadow: 0 0 0 5px var(--coral-soft); animation: recorder-pulse 1.5s ease-in-out infinite; }
.recorder-status.is-error { color: var(--coral-dark); }
.recorder-status.is-error .recorder-status-dot { background: var(--coral); box-shadow: 0 0 0 5px var(--coral-soft); }
.recorder-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.recorder-clock .tri-label { align-items: flex-end; text-align: right; }
.recorder-clock strong { font: 700 22px/1 Consolas, "Courier New", monospace; color: var(--ink); font-variant-numeric: tabular-nums; }
.recorder-actions { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recorder-actions .button { width: 100%; min-height: 50px; }
.recorder-preview-panel { min-width: 0; padding: 30px; display: flex; flex-direction: column; }
.recorder-preview-head { min-height: 44px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.recorder-preview-head h2 { margin: 0; }
.recorder-preview-head .status-chip { display: inline-flex; align-items: center; gap: 6px; }
.recorder-preview-head .status-chip svg { width: 14px; height: 14px; }
.recorder-preview-stage { width: 100%; margin-top: 18px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: #101513; border: 1px solid #28332f; border-radius: 6px; }
.recorder-preview-stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #080b0a; }
.recorder-preview-empty { width: min(360px, 82%); display: flex; flex-direction: column; align-items: center; gap: 15px; color: #aebbb6; text-align: center; }
.recorder-preview-empty > svg { width: 34px; height: 34px; color: #7e918a; }
.recorder-preview-empty .tri-body { align-items: center; }
.recorder-result-actions { min-height: 50px; margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
@keyframes recorder-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .42; } }
.work-console { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.work-console.is-active { border-color: #edc9c1; }
.mobile-work-notice { min-height: 240px; margin-top: 24px; padding: 28px; display: none; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.mobile-work-notice.is-server-blocked { display: grid; }
.mobile-work-notice h2, .mobile-work-notice p { margin: 0; }
.mobile-work-notice p { margin-top: 9px; color: var(--ink-soft); }
.work-status-panel { min-height: 330px; padding: 36px; display: flex; flex-direction: column; justify-content: center; background: #f9fbfa; border-right: 1px solid var(--line); }
.work-status-label { margin-bottom: 18px; color: var(--ink-soft); }
.work-live-indicator, .work-ready-indicator { display: flex; align-items: center; gap: 12px; }
.work-live-indicator > .work-live-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 6px var(--coral-soft); }
.work-ready-indicator > svg { color: var(--teal); }
.work-status-panel > p { max-width: 480px; margin: 18px 0 0; color: var(--ink-soft); }
.work-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work-facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.work-facts dt { color: var(--ink-soft); font-size: 10px; }
.work-facts dd { margin: 6px 0 0; font-weight: 700; }
.work-progress { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.work-progress.is-due { border-color: #e5ad9f; background: var(--coral-soft); }
.work-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-progress-head strong { color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.work-progress.is-due .work-progress-head strong { color: var(--coral-dark); font-size: 11px; text-align: right; }
.work-progress-track { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 4px; background: #e6ece9; }
.work-progress-track span { height: 100%; display: block; background: var(--teal); transition: width .3s linear; }
.work-progress.is-due .work-progress-track span { background: var(--coral); }
.work-progress p { margin: 10px 0 0; color: var(--ink-soft); }
.screenshot-form { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.capture-section-label { margin-bottom: 9px; }
.work-action-switch { margin-bottom: 16px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); }
.work-action-switch button { min-height: 46px; padding: 7px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.work-action-switch button.is-active { background: white; color: var(--teal-dark); box-shadow: 0 1px 4px rgba(19, 39, 34, .1); }
.work-action-switch .tri-button { align-items: center; }
.capture-instructions { margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; list-style: none; }
.capture-instructions li { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 7px; color: var(--ink-soft); }
.capture-instructions li > span:first-child { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 10px; font-weight: 700; }
.capture-instructions .tri-body > span:first-child { font-size: 11px; }
.capture-instructions .tri-body .tri-secondary { font-size: 8px; }
.capture-actions { display: grid; }
.capture-button { min-height: 126px; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--teal); border-radius: 7px; background: var(--teal-soft); color: var(--ink); text-align: left; cursor: pointer; }
.capture-button:hover, .capture-button:focus-visible { background: #d7ebe5; border-color: var(--teal-dark); }
.capture-button:disabled { cursor: wait; opacity: .62; }
.capture-button > svg { width: 27px; height: 27px; color: var(--teal); }
.capture-status { min-height: 34px; margin-top: 8px; padding: 6px 9px; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 10px; }
.capture-status svg { width: 15px; height: 15px; }
.capture-status.is-error { color: var(--coral-dark); }
.capture-status.is-busy { color: var(--teal-dark); }
.capture-result { margin: 3px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }
.capture-result img { width: 100%; height: 150px; display: block; object-fit: contain; background: #18201e; }
.capture-result figcaption { min-height: 38px; padding: 7px 10px; display: flex; align-items: center; gap: 7px; color: var(--teal-dark); }
.capture-result figcaption svg { width: 17px; height: 17px; }
.capture-result .tri-value > span:first-child { font-size: 11px; }
.capture-dialog { width: min(920px, calc(100vw - 36px)); max-height: calc(100vh - 36px); padding: 0; overflow: hidden auto; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; box-shadow: 0 24px 80px rgba(12, 29, 25, .28); }
.capture-dialog::backdrop { background: rgba(13, 25, 22, .72); }
.capture-dialog-head { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.capture-dialog-head h2 { margin: 4px 0 0; }
.capture-steps { min-height: 44px; padding: 8px 22px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.capture-steps span { padding: 5px 9px; color: var(--ink-soft); font-size: 10px; }
.capture-steps .is-done { color: var(--teal-dark); }
.capture-steps .is-current { border-radius: 4px; background: var(--teal); color: white; }
.capture-editor, .capture-preview-stage { padding: 18px 22px 10px; }
.capture-crop-stage { height: min(56vh, 510px); display: grid; place-items: center; overflow: hidden; background: #111816; }
.capture-crop-stage > img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; }
.capture-crop-stage .cropper-container { width: 100% !important; height: 100% !important; }
.capture-help, .capture-preview-stage p { margin: 10px 0 0; color: var(--ink-soft); }
.capture-preview-stage img { width: 100%; height: min(54vh, 490px); display: block; object-fit: contain; background: #111816; }
.capture-dialog-actions { padding: 12px 22px 18px; display: flex; justify-content: flex-end; gap: 10px; }
.capture-dialog-actions .button { margin: 0; }
.screenshot-form .button { margin-top: 18px; }
.screenshot-form .button > [data-action-copy] { display: inline-flex; align-items: center; gap: 8px; }
.screenshot-form .button:disabled { cursor: not-allowed; opacity: .45; }
.work-blocked-state { min-height: 210px; margin-top: 28px; padding: 30px; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 22px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.work-blocked-state h2, .work-blocked-state p { margin: 0; }
.work-blocked-state p { margin-top: 8px; color: var(--ink-soft); }
.work-search { margin-top: 24px; }
.work-records-wrap { margin-top: 24px; }
.work-records-table th:nth-child(1) { width: 16%; }
.work-records-table th:nth-child(2) { width: 16%; }
.work-records-table th:nth-child(3) { width: 16%; }
.work-records-table th:nth-child(4) { width: 10%; }
.work-records-table th:nth-child(5) { width: 13%; }
.work-records-table th:nth-child(6) { width: 14%; }
.work-records-table th:nth-child(7) { width: 15%; }
.work-record-filters { margin-top: 20px; display: grid; grid-template-columns: minmax(210px, 280px) minmax(240px, 1fr) auto auto; gap: 10px; align-items: center; }
.work-record-filters select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; }
.performance-summary { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.performance-summary-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; font-weight: 700; }
.performance-summary-title svg { width: 18px; height: 18px; color: var(--teal-dark); }
.performance-period { padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.performance-period h2 { margin: 0 0 12px; font-size: 14px; }
.performance-period dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.performance-period dt { color: var(--ink-soft); font-size: 10px; }
.performance-period dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.points-breakdown { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 10px; font-variant-numeric: tabular-nums; }
.points-total { padding-top: 3px; border-top: 1px solid var(--line); color: var(--ink); }
.points-negative { color: var(--coral-dark); }
.record-username { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.record-status { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.screenshot-thumbnails { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.screenshot-thumbnails a { width: 62px; height: 42px; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--canvas); }
.screenshot-cell img { width: 100%; height: 100%; display: block; object-fit: cover; }
.work-facts dd small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 9px; font-weight: 400; }
.work-review-shell { max-width: 1280px; }
.work-review-filters { margin-top: 24px; padding: 14px; display: grid; grid-template-columns: minmax(240px, 1fr) 180px 210px auto 38px; gap: 10px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 8px; }
.work-review-filters input, .work-review-filters select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; }
.work-review-filters select { cursor: pointer; font-size: 11px; }
.filter-search { position: relative; }
.filter-search svg { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.filter-search input { padding-left: 40px; }
.work-review-filters .button { min-height: 44px; }
.work-review-table-wrap { margin-top: 18px; }
.work-review-table th:nth-child(1) { width: 14%; }
.work-review-table th:nth-child(2) { width: 9%; }
.work-review-table th:nth-child(3) { width: 14%; }
.work-review-table th:nth-child(4) { width: 10%; }
.work-review-table th:nth-child(5) { width: 16%; }
.work-review-table th:nth-child(6) { width: 12%; }
.work-review-table th:nth-child(7) { width: 14%; }
.work-review-table th:nth-child(8) { width: 11%; }
.button-compact { min-height: 40px; padding: 6px 10px; }
.review-detail-header > .status-chip { align-self: center; }
.review-summary, .review-timeline-section, .review-assessment { margin-top: 22px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.review-summary h2, .review-timeline-section h2, .review-assessment h2 { margin: 0; }
.review-summary dl { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 30px; }
.review-summary dt, .approved-review dt { color: var(--ink-soft); font-size: 10px; }
.review-summary dd, .approved-review dd { margin: 6px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.review-summary dd small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 10px; font-weight: 400; }
.review-summary dd .status-chip { margin-top: 6px; width: fit-content; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading p { margin: 8px 0 0; color: var(--ink-soft); }
.screenshot-timeline { margin: 24px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.screenshot-timeline li { position: relative; min-height: 126px; padding: 14px 18px 14px 58px; display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.timeline-index { position: absolute; left: 17px; top: 50%; width: 25px; height: 25px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%; color: white; background: var(--teal); font-size: 11px; font-weight: 700; }
.timeline-image { width: 180px; height: 98px; overflow: hidden; display: block; border-radius: 5px; background: #18201e; }
.timeline-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.timeline-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.timeline-copy strong { font-size: 14px; }
.timeline-copy time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.timeline-copy span { display: inline-flex; align-items: center; gap: 7px; color: var(--teal-dark); font-size: 11px; font-weight: 650; }
.timeline-copy span svg { width: 16px; height: 16px; }
.work-review-form { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 20px; align-items: start; }
.work-review-form .review-note-field { grid-column: 1 / -1; }
.work-review-form textarea { min-height: 128px; resize: vertical; padding-top: 12px; }
.review-submit { grid-column: 1 / -1; padding-top: 18px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
.approved-review { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 30px; }
.approved-review .review-note-display { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.review-note-display dd { white-space: pre-wrap; font-weight: 400; }

.device-shell { max-width: 1440px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.device-table th:nth-child(1) { width: 10%; }
.device-table th:nth-child(2) { width: 11%; }
.device-table th:nth-child(3) { width: 13%; }
.device-table th:nth-child(4) { width: 15%; }
.device-table th:nth-child(5) { width: 18%; }
.device-table th:nth-child(6) { width: 17%; }
.device-table th:nth-child(7) { width: 11%; }
.device-table th:nth-child(8) { width: 5%; }
.device-table td { vertical-align: top; }
.device-table td > small { display: block; margin-top: 5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.device-table em { color: var(--ink-soft); font-size: 11px; font-style: normal; }
.device-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.device-tags span { padding: 4px 7px; border-radius: 4px; background: var(--teal-soft); color: var(--teal-dark); font-size: 10px; }
.device-credential-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.device-credential-summary > strong { min-width: 24px; padding: 2px 6px; border-radius: 4px; color: white; background: var(--teal); text-align: center; font-size: 10px; }
.device-credential-summary > span { max-width: 100%; color: var(--ink-soft); font-size: 10px; overflow-wrap: anywhere; }
.device-address { overflow-wrap: anywhere; }
.device-proxy-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.device-proxy-summary > strong { min-width: 24px; padding: 2px 6px; border-radius: 4px; color: white; background: var(--amber); text-align: center; font-size: 10px; }
.device-proxy-summary span { max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
.device-proxy-summary b { font-size: 10px; }
.device-proxy-summary small { color: var(--ink-soft); font-size: 9px; overflow-wrap: anywhere; }
.device-monogram { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--teal); background: white; }
.device-monogram svg { width: 25px; height: 25px; }
.device-form { display: flex; flex-direction: column; gap: 18px; }
.device-form-section { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.device-form-section > h2 { margin: 0 0 20px; }
.device-form input[type="text"], .device-form input[type="password"], .device-form select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #cfd8d4; border-radius: 6px; color: var(--ink); background: white; }
.device-form input:focus, .device-form select:focus { outline: 2px solid rgba(23, 120, 107, .22); border-color: var(--teal); }
.employee-selector { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.section-field-label { margin-bottom: 10px; }
.employee-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.employee-choice { min-height: 42px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; overflow-wrap: anywhere; }
.employee-choice:hover { border-color: #aebdb8; background: var(--canvas); }
.employee-choice input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--teal); }
.employee-choice span { min-width: 0; overflow-wrap: anywhere; }
.credential-section .section-heading { align-items: center; }
.proxy-section .section-heading { align-items: center; }
.proxy-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.proxy-row { padding: 16px; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.4fr) 48px; align-items: start; gap: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.proxy-tools { min-height: 46px; padding-top: 24px; display: flex; justify-content: flex-end; }
.proxy-errors { grid-column: 1 / -1; }
.credential-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.credential-row { position: relative; padding: 16px; display: grid; grid-template-columns: minmax(150px, .8fr) minmax(190px, 1fr) minmax(220px, 1.2fr) 96px; align-items: start; gap: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.credential-tools { min-height: 46px; padding-top: 24px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.credential-delete-field { display: none; }
.credential-revealed { position: absolute; z-index: 2; right: 16px; top: calc(100% - 6px); max-width: min(460px, calc(100% - 32px)); padding: 9px 12px; border: 1px solid #a9c9c1; border-radius: 5px; color: var(--ink); background: white; box-shadow: 0 10px 30px rgba(19, 39, 34, .14); font-family: Consolas, monospace; overflow-wrap: anywhere; }
.credential-revealed.is-error { color: var(--coral-dark); border-color: #e5ad9f; font-family: inherit; }
.credential-errors { grid-column: 1 / -1; }
.field-help { margin: 6px 0 0; color: var(--ink-soft); font-size: 9px; line-height: 1.4; }
.device-form .edit-actions { margin-top: 0; }
.credential-reveal-panel { width: min(640px, 100%); margin: 0 auto; }
.credential-reveal-panel dl { margin: 22px 0; display: grid; gap: 12px; }
.credential-reveal-panel dl div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.credential-reveal-panel dt { color: var(--ink-soft); font-size: 10px; }
.credential-reveal-panel dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.launcher-binding-list { display: flex; flex-direction: column; gap: 10px; }
.launcher-binding-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(180px, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.launcher-binding-row > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.launcher-binding-row strong { overflow-wrap: anywhere; }
.revealed-password { padding: 10px; border-radius: 5px; background: var(--canvas); font-family: Consolas, monospace; }

.exam-shell { max-width: 1280px; }
.tri-en-primary > span:first-child { font-weight: 650; }
.exam-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.exam-section { margin-top: 28px; }
.exam-section > h2, .section-heading-row h2 { margin: 0 0 16px; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading-row > a { color: var(--teal); }
.exam-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.exam-card { min-width: 0; padding: 24px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 8px; }
.exam-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--teal); }
.game-badge { padding: 4px 7px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 4px; font-size: 10px; font-weight: 700; }
.exam-title-en { margin-top: 20px; font-size: 23px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.exam-title-secondary { margin-top: 5px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.exam-description-en { margin: 18px 0 0; color: var(--ink); line-height: 1.55; }
.exam-description-secondary { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.exam-card-facts { margin: 22px 0; padding: 15px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exam-card-facts div { min-width: 0; }
.exam-card-facts dt { min-height: 32px; }
.exam-card-facts dd { margin: 7px 0 0; font-size: 18px; font-weight: 750; }
.exam-attempt-table th:nth-child(n), .exam-attempt-table td:nth-child(n) { width: auto; }
.exam-attempt-table th:first-child { width: 25%; }
.exam-attempt-table td small { margin-top: 4px; display: block; color: var(--ink-soft); font-size: 10px; }
.exam-attempt-table td:last-child { width: 56px; }
.exam-page-title { margin: 8px 0 9px; display: flex; flex-direction: column; font-size: 30px; line-height: 1.25; }
.exam-page-title small, .exam-result-header h1 small { margin-top: 5px; display: block; color: var(--ink-soft); font-size: 13px; font-weight: 400; line-height: 1.45; }
.exam-score-mark { min-width: 112px; padding: 15px; display: flex; flex-direction: column; align-items: center; border: 1px solid #bcd9d1; border-radius: 7px; background: var(--teal-soft); }
.exam-score-mark strong { color: var(--teal-dark); font-size: 27px; }
.exam-score-mark .tri-text { align-items: center; text-align: center; }
.exam-integrity-warning { margin-top: 20px; padding: 16px 18px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 13px; border: 1px solid #d85f53; border-left-width: 5px; border-radius: 6px; color: #7b211b; background: #fff2f0; }
.exam-integrity-warning > svg { width: 24px; height: 24px; margin-top: 2px; color: #bd3e34; }
.exam-integrity-warning h2, .exam-integrity-warning p { margin: 0; }
.exam-integrity-warning h2 { font-size: 15px; }
.exam-integrity-warning p { margin-top: 6px; line-height: 1.55; }
.exam-form { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.exam-question { display: grid; grid-template-columns: 54px minmax(0, 1fr); background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.exam-question > .exam-question-number { padding-top: 25px; background: #f2f6f4; color: var(--teal-dark); text-align: center; font: 750 16px/1 Consolas, monospace; }
.exam-question-main { min-width: 0; padding: 24px; }
.exam-question-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.exam-question-heading h2 { margin: 0; font-size: 17px; line-height: 1.45; }
.exam-question-heading p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.question-points { flex: 0 0 auto; color: var(--amber); font-size: 11px; font-weight: 700; }
.exam-question-main > label { margin: 20px 0 7px; display: block; }
.exam-question-parts { margin-top: 20px; }
.exam-question-parts.is-split { display: flex; flex-direction: column; gap: 16px; }
.exam-question-part > label { display: block; margin: 0 0 7px; }
.exam-question-parts.is-split .exam-question-part { padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf9; }
.exam-part-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 12px; margin-bottom: 14px; }
.exam-part-number { min-height: 30px; display: grid; place-items: center; color: var(--teal-dark); background: var(--teal-soft); border-radius: 5px; font: 750 12px/1 Consolas, monospace; }
.exam-part-heading h3 { margin: 0; font-size: 14px; line-height: 1.45; }
.exam-part-heading p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.exam-answer-control { width: 100%; min-height: 118px; resize: vertical; padding: 13px; border: 1px solid #cfd8d4; border-radius: 6px; color: var(--ink); background: white; outline: 0; line-height: 1.55; }
.exam-answer-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,120,107,.12); }
.exam-question.has-error { border-color: var(--coral); }
.exam-submit-bar { position: sticky; z-index: 5; bottom: 0; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(244,247,245,.96); border-top: 1px solid var(--line); }
.exam-submit-bar p { margin: 0; color: var(--ink-soft); }
.exam-filter-bar { margin-top: 24px; padding: 18px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; background: white; border: 1px solid var(--line); border-radius: 8px; }
.exam-filter-bar label { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.exam-filter-bar input, .exam-filter-bar select { width: 100%; height: 44px; padding: 0 11px; border: 1px solid #cfd8d4; border-radius: 6px; background: white; color: var(--ink); }
.muted { color: var(--ink-soft); }
.stat-badge { min-width: 112px; padding: 12px 16px; display: flex; flex-direction: column; align-items: flex-end; border-left: 3px solid var(--teal); background: white; }
.stat-badge strong { font-size: 25px; line-height: 1; }
.stat-badge span { margin-top: 7px; color: var(--ink-soft); }
.work-header h1 small { margin-top: 5px; display: block; color: var(--ink-soft); font-size: 13px; font-weight: 400; line-height: 1.45; }
.practical-evidence-section { margin-top: 26px; }
.practical-evidence-section .section-heading h2, .practical-evidence-section .section-heading p { margin: 0; }
.practical-evidence-section .section-heading p { margin-top: 7px; color: var(--ink-soft); }
.practical-screenshot-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.practical-screenshot-grid article { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 8px; }
.practical-screenshot-grid article > a { display: block; background: #111816; }
.practical-screenshot-grid img { width: 100%; height: 330px; display: block; object-fit: contain; }
.practical-screenshot-heading { min-height: 68px; padding: 13px 15px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 3px 10px; border-bottom: 1px solid var(--line); }
.practical-screenshot-heading > span { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; color: var(--teal-dark); background: var(--teal-soft); font: 750 12px/1 Consolas, monospace; }
.practical-screenshot-heading strong { min-width: 0; font-size: 13px; }
.practical-screenshot-heading time { color: var(--ink-soft); font-size: 10px; }
.empty-screenshot { height: 330px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-soft); background: var(--canvas); }
.practical-review-form { margin-top: 18px; display: grid; gap: 18px; }
.practical-review-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.practical-review-form legend { margin-bottom: 9px; }
.practical-result-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.practical-result-options label { min-width: 0; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.practical-result-options label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.practical-result-options input { flex: 0 0 auto; }
.practical-review-form .button { justify-self: start; }
.practical-result-status > svg { color: var(--teal-dark); }
.exam-section.filtered-results { margin-top: 16px; }
.exam-result-header { min-height: 150px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.exam-result-header h1 { margin: 8px 0 0; font-size: 28px; }
.exam-result-header p { margin: 9px 0 0; color: var(--ink-soft); }
.exam-result-score { min-width: 160px; display: flex; flex-direction: column; align-items: flex-end; }
.exam-result-score > strong { font-size: 36px; }
.exam-result-score > span { color: var(--ink-soft); font-size: 12px; }
.exam-result-score > em { margin-top: 8px; padding: 4px 8px; border-radius: 4px; font-size: 9px; font-style: normal; }
.exam-result-score > em.passed { color: var(--teal-dark); background: var(--teal-soft); }
.exam-result-score > em.failed { color: var(--coral-dark); background: var(--coral-soft); }
.exam-result-score > svg { margin-bottom: 8px; color: var(--coral); width: 30px; height: 30px; }
.exam-corrections-control { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: white; border: 1px solid var(--line); border-left: 3px solid var(--ink-soft); border-radius: 8px; }
.exam-corrections-control.is-released { border-left-color: var(--teal); }
.exam-corrections-status { min-width: 0; display: flex; align-items: flex-start; gap: 13px; }
.exam-corrections-status > svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--ink-soft); }
.exam-corrections-control.is-released .exam-corrections-status > svg { color: var(--teal-dark); }
.exam-corrections-status h2, .exam-corrections-status p { margin: 0; }
.exam-corrections-status p { margin-top: 6px; color: var(--ink-soft); }
.exam-corrections-status small { margin-top: 7px; display: block; color: var(--ink-soft); font-size: 11px; }
.exam-grading-failure { margin-top: 16px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--coral-soft); border-left: 3px solid var(--coral); border-radius: 5px; }
.exam-grading-failure h2, .exam-grading-failure p { margin: 0; }
.exam-grading-failure p { margin-top: 6px; color: var(--coral-dark); font-size: 12px; }
.exam-grading-failure.exam-grading-pending { background: var(--amber-soft); border-left-color: var(--amber); }
.exam-grading-failure.exam-grading-pending p { color: #795116; }
.exam-success-dialog { width: min(92vw, 520px); padding: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; box-shadow: 0 24px 70px rgba(19,39,34,.22); text-align: center; }
.exam-success-dialog::backdrop { background: rgba(23,33,31,.48); }
.exam-success-dialog .state-icon { margin: 0 auto; }
.exam-success-dialog h1 { margin: 18px 0 10px; }
.exam-success-dialog h1 .tri-text, .exam-success-dialog p .tri-text { align-items: center; }
.exam-success-dialog p { margin: 0 auto 24px; color: var(--ink-soft); }
.exam-success-dialog .button { min-width: 150px; }
.employee-result-summary { margin-top: 16px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.employee-result-summary h2 { margin: 0; }
.wrong-number-list { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.wrong-number-list > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--coral-dark); background: var(--coral-soft); border-radius: 5px; font-weight: 750; }
.wrong-number-list p { margin: 0; color: var(--teal-dark); }
.exam-answer-review { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.exam-reviewed-answer { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 8px; }
.exam-reviewed-answer.is-wrong { border-left: 3px solid var(--coral); }
.exam-reviewed-answer.is-correct { border-left: 3px solid var(--teal); }
.exam-reviewed-answer > header { padding: 18px 20px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 14px; border-bottom: 1px solid var(--line); }
.exam-reviewed-answer > header .exam-question-number { width: 38px; height: 38px; display: grid; place-items: center; color: var(--teal-dark); background: var(--teal-soft); border-radius: 5px; font: 750 14px/1 Consolas, monospace; }
.review-answer-parts { display: flex; flex-direction: column; gap: 12px; }
.review-answer-parts > div + div { padding-top: 12px; border-top: 1px solid var(--line); }
.review-answer-parts strong { font-size: 12px; line-height: 1.45; }
.review-answer-parts p { margin: 5px 0 0; }
.exam-reviewed-answer > header h2 { margin: 0; font-size: 15px; line-height: 1.45; }
.exam-reviewed-answer > header p { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.review-answer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; }
.review-answer-grid section, .employee-answer-only { min-width: 0; padding: 18px 20px; }
.review-answer-grid section + section { border-left: 1px solid var(--line); }
.review-answer-grid h3, .admin-feedback-grid h3, .employee-answer-only h3 { margin: 0; }
.review-answer-grid p, .employee-answer-only p { margin: 9px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.admin-feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff9f7; border-top: 1px solid #f0d8d2; }
.admin-feedback-grid section { min-width: 0; padding: 20px; }
.admin-feedback-grid section + section { border-left: 1px solid #f0d8d2; }
.admin-feedback-grid p { margin: 8px 0 0; color: var(--coral-dark); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.employee-correction { min-width: 0; padding: 18px 20px; background: var(--teal-soft); border-top: 1px solid var(--line); }
.employee-correction h3, .employee-correction p { margin: 0; }
.employee-correction p { margin-top: 8px; color: var(--teal-dark); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.employee-part-feedback { padding: 18px 20px; border-top: 1px solid var(--line); background: #f7faf9; }
.part-feedback-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.part-feedback-heading h3, .part-feedback-heading p { margin: 0; }
.part-feedback-heading p { max-width: 680px; color: var(--ink-soft); font-size: 10px; text-align: right; }
.part-feedback-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.part-feedback-item { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.part-feedback-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; background: #e8ecef; color: var(--ink-soft); font: 750 11px/1 Consolas, monospace; }
.part-feedback-copy { min-width: 0; }
.part-feedback-copy h4, .part-feedback-copy p { margin: 0; overflow-wrap: anywhere; }
.part-feedback-copy h4 { font-size: 12px; line-height: 1.45; }
.part-feedback-copy p { margin-top: 3px; color: var(--ink-soft); font-size: 9px; line-height: 1.45; }
.part-feedback-item small, .part-feedback-status { display: block; overflow-wrap: anywhere; }
.part-feedback-item small { color: var(--ink-soft); font-size: 9px; }
.part-feedback-status { font-size: 11px; text-align: right; }
.part-feedback-item.is-correct { border-color: #b9ddd5; }
.part-feedback-item.is-correct .part-feedback-number { color: var(--teal-dark); background: var(--teal-soft); }
.part-feedback-item.is-partial { border-color: #ead5a5; }
.part-feedback-item.is-partial .part-feedback-number { color: #795116; background: var(--amber-soft); }
.part-feedback-item.is-incorrect, .part-feedback-item.is-unanswered { border-color: #f0d0c9; }
.part-feedback-item.is-incorrect .part-feedback-number, .part-feedback-item.is-unanswered .part-feedback-number { color: var(--coral-dark); background: var(--coral-soft); }

.training-shell { max-width: 1280px; }
.training-header > div { max-width: 760px; }
.training-catalog { display: grid; gap: 18px; }
.training-course-card { min-height: 370px; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 8px; }
.training-course-visual { position: relative; min-height: 370px; overflow: hidden; background: #18201d; border-right: 1px solid #34413c; }
.training-course-visual::before, .training-course-visual::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; background: #4b5751; border-inline: 2px solid #7b8981; }
.training-course-visual::before { left: 34px; }
.training-course-visual::after { right: 34px; }
.training-course-visual > svg { position: absolute; z-index: 3; left: 50%; top: 50%; width: 48px; height: 48px; color: #d8eee7; transform: translate(-50%, -50%); }
.training-tower-line { position: absolute; z-index: 2; left: calc(50% - 9px); top: 24px; bottom: 24px; width: 18px; border-left: 3px solid #9b805b; border-right: 3px solid #9b805b; }
.training-tower-line::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 18px, #9b805b 18px 21px); }
.training-platform { position: absolute; z-index: 1; height: 13px; background: #93a099; border-top: 2px solid #d0d8d3; box-shadow: 0 8px 0 #3f4a45; }
.training-platform.p1 { left: 56px; right: 50%; top: 75px; }
.training-platform.p2 { left: 50%; right: 56px; top: 150px; }
.training-platform.p3 { left: 56px; right: 50%; top: 230px; }
.training-platform.p4 { left: 50%; right: 56px; top: 305px; }
.training-course-copy { min-width: 0; padding: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.training-course-copy h2 { margin: 28px 0 0; font-size: 27px; }
.training-title-secondary { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }
.training-course-copy > p:not(.training-title-secondary) { margin: 24px 0 0; line-height: 1.55; }
.training-description-secondary { color: var(--ink-soft); font-size: 11px; }
.training-key-preview { margin: auto 0 20px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 7px; }
kbd { min-width: 29px; height: 29px; padding: 0 8px; display: inline-grid; place-items: center; border: 1px solid #aebbb5; border-bottom-width: 3px; border-radius: 4px; background: #f8faf9; color: #24322e; font: 700 11px/1 Consolas, monospace; }
.training-attempt-table td small { margin-top: 4px; display: block; color: var(--ink-soft); font-size: 10px; }
.training-play-shell { width: min(100%, 1540px); max-width: 1540px; padding-left: 36px; padding-right: 36px; }
.training-play-header h1 small { margin-top: 6px; display: block; color: var(--ink-soft); font-size: 13px; font-weight: 400; }
.training-play-header > div { max-width: 850px; }
.training-description-secondary { display: block; }
.training-video-section { margin-top: 28px; padding: 25px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.training-video-section .section-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.training-video-section h2, .training-video-section p { margin: 0; }
.training-video-section p { margin-top: 6px; color: var(--ink-soft); }
.training-video-section .section-heading > svg { width: 27px; height: 27px; color: var(--teal); }
.training-video-section video { width: min(100%, 980px); max-height: 70vh; margin-top: 18px; display: block; background: #080b0a; }
.training-video-placeholder { min-height: 160px; margin-top: 18px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--ink-soft); background: #edf1ef; border: 1px dashed #aebbb5; }
.training-video-placeholder svg { width: 30px; height: 30px; }
.training-game-section { margin-top: 34px; }
.training-game-head { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; }
.training-game-head h2, .training-game-head p { margin: 0; }
.training-game-head p { margin-top: 6px; color: var(--ink-soft); }
.training-key-strip { max-width: 760px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 13px; }
.training-key-strip span { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.training-game-layout { width: min(100%, 1200px); margin-inline: auto; background: #101614; border: 1px solid #2b3733; }
.training-canvas-wrap { position: relative; min-width: 0; aspect-ratio: 30 / 19; overflow: hidden; background: #050706; }
#maplestory-training-game, #maplestory-training-game canvas { width: 100% !important; height: 100% !important; display: block; }
#maplestory-training-game { outline: 0; }
.training-launch-overlay, .training-result-overlay { position: absolute; z-index: 15; inset: 0; padding: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; background: rgba(7, 12, 10, .9); text-align: center; }
.training-launch-overlay[hidden], .training-result-overlay[hidden] { display: none; }
.training-launch-overlay h2, .training-result-overlay h2 { margin: 13px 0 5px; color: white; font-size: 32px; }
.training-launch-overlay p, .training-result-overlay p { margin: 0 0 25px; color: #b9c8c1; }
.training-launch-overlay small { margin-top: 14px; color: #91a29a; }
.training-overline { color: #78d7bd; font: 700 10px/1.2 Consolas, monospace; }
.training-result-overlay > strong { margin: 6px 0 14px; color: #f5d56a; font-size: 68px; line-height: 1; }
.training-result-overlay > div { display: flex; gap: 10px; }
.training-hud { min-width: 0; padding: 14px 16px 0; display: grid; grid-template-columns: 130px minmax(420px, 1fr) 170px 230px; align-items: stretch; gap: 0 16px; color: #e8efeb; background: #171f1c; border-top: 1px solid #35423d; }
.training-hud-top { padding-right: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; border-right: 1px solid #35423d; }
.training-hud-top span { color: #7bd6bc; font: 700 10px/1 Consolas, monospace; }
.training-hud-top strong { font: 700 21px/1 Consolas, monospace; }
.training-finish-button { width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; color: #dce8e2; background: #2a3732; border: 1px solid #52635b; cursor: pointer; }
.training-finish-button svg { width: 12px; height: 12px; }
.training-finish-button:disabled { opacity: .38; cursor: default; }
.training-hud dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(74px, 1fr)); }
.training-hud dl > div { min-height: 66px; padding: 7px 12px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border-right: 1px solid #2a3531; }
.training-hud dt { display: flex; flex-direction: column; font-size: 12px; }
.training-hud dt small { margin-top: 3px; color: #8fa099; font-size: 8px; }
.training-hud dd { margin: 7px 0 0; color: #93ddc8; font: 700 18px/1 Consolas, monospace; }
.training-hud dd span { color: #75857e; font-size: 10px; }
.training-pet-meter { padding: 8px 0 8px 16px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #35423d; }
.training-pet-meter > span { color: #a9b8b1; font-size: 9px; }
.training-pet-meter > div { height: 7px; margin: 8px 34px 0 0; overflow: hidden; background: #303b37; }
.training-pet-meter i { width: 72%; height: 100%; display: block; background: #f0b95e; transition: width .2s ease; }
.training-pet-meter > strong { float: right; margin-top: -11px; color: #f4cc82; font: 700 12px/1 Consolas, monospace; }
.training-position-status { padding: 8px 0; display: grid; align-content: center; gap: 4px; }
.training-position-status span { color: #8fa099; font-size: 9px; }
.training-position-status strong { color: #9adfc9; font-size: 10px; line-height: 1.35; }
.training-position-status[data-tone="danger"] strong { color: #ffad9e; }
.training-position-status[data-tone="muted"] strong { color: #b7c2bd; }
.training-live-feedback { grid-column: 1 / -1; min-height: 42px; margin: 0 -16px; padding: 10px 16px; display: flex; align-items: center; color: #bed0c8; background: #202a26; border-top: 1px solid #35423d; font-size: 9px; line-height: 1.4; }
.training-live-feedback[data-tone="danger"] { color: #ffc2b7; background: #422923; }
.training-live-feedback[data-tone="success"] { color: #b8f1df; background: #1c3730; }
.training-live-feedback[data-tone="muted"] { color: #9aa7a1; }
.training-mobile-block { display: none; }
.training-final-score { min-width: 170px; display: flex; flex-direction: column; align-items: flex-end; }
.training-final-score > span { color: var(--ink-soft); font-size: 10px; }
.training-final-score > strong { font-size: 44px; }
.training-final-score > em { padding: 4px 8px; border-radius: 4px; font-size: 9px; font-style: normal; }
.training-final-score > em.passed { color: var(--teal-dark); background: var(--teal-soft); }
.training-final-score > em.failed { color: var(--coral-dark); background: var(--coral-soft); }
.training-result-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.training-result-grid article { min-width: 0; min-height: 130px; padding: 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.training-result-grid article svg { width: 21px; height: 21px; color: var(--teal); }
.training-result-grid article span { margin-top: auto; color: var(--ink-soft); font-size: 10px; }
.training-result-grid article strong { margin-top: 6px; font-size: 22px; overflow-wrap: anywhere; }
.training-result-actions { margin-top: 20px; display: flex; gap: 10px; }

.schedule-shell { max-width: 1440px; }
.schedule-header { align-items: flex-start; }
.schedule-header-actions { display: flex; align-items: stretch; gap: 10px; }
.schedule-header-actions > .button { min-height: 64px; }
.schedule-summary { min-width: 118px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: white; border-left: 3px solid var(--teal); }
.schedule-summary strong { color: var(--teal-dark); font-size: 30px; line-height: 1; }
.schedule-date-bar { min-height: 76px; padding: 12px 0; display: grid; grid-template-columns: 38px minmax(330px, 1fr) auto auto 38px; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.schedule-date-form { min-width: 0; display: grid; grid-template-columns: auto minmax(145px, 190px) auto; align-items: center; gap: 10px; }
.schedule-date-form > label { color: var(--ink-soft); }
.schedule-date-form input { height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.schedule-copy-form { margin: 0; }
.schedule-date-heading { min-height: 82px; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 16px; }
.schedule-date-heading > time { font-size: 26px; font-weight: 700; }
.schedule-date-heading .status-chip { gap: 6px; }
.schedule-date-heading .status-chip svg { width: 15px; height: 15px; }
.schedule-locked-chip { color: #5b6670; background: #edf0f2; }
.schedule-lock-notice { margin-bottom: 18px; padding: 14px 16px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 10px; color: #46515a; background: #f2f4f5; border-left: 3px solid #7a858d; }
.schedule-lock-notice > svg { width: 19px; height: 19px; margin-top: 2px; }
.schedule-warning { margin-bottom: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; color: var(--coral-dark); background: var(--coral-soft); border-left: 3px solid var(--coral); }
.schedule-game-section { margin-bottom: 28px; background: white; border: 1px solid var(--line); }
.schedule-game-header { min-height: 70px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.schedule-game-header > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.schedule-game-header h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.schedule-game-header > span { color: var(--ink-soft); font-size: 11px; text-align: right; }
.schedule-game-index { width: 34px; height: 34px; display: grid; place-items: center; color: var(--teal-dark); background: var(--teal-soft); font-size: 11px; font-weight: 800; }
.schedule-eligible-strip { min-height: 76px; padding: 14px 18px; display: grid; grid-template-columns: 125px minmax(0, 1fr); align-items: start; gap: 16px; background: #f8faf9; border-bottom: 1px solid var(--line); }
.schedule-person-list { min-width: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.schedule-person-chip { min-height: 34px; padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; background: white; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.schedule-person-chip svg { width: 14px; height: 14px; color: var(--teal); }
.schedule-person-chip small { color: var(--ink-soft); font-size: 9px; }
.schedule-empty-inline { color: var(--ink-soft); }
.schedule-table-wrap { border: 0; border-radius: 0; }
.schedule-table th:first-child, .schedule-table td:first-child { width: 28%; }
.schedule-table td { min-height: 68px; }
.schedule-table select { width: 100%; min-width: 170px; height: 42px; padding: 0 34px 0 11px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 5px; }
.schedule-table select:focus { outline: 2px solid rgba(23, 120, 107, .22); border-color: var(--teal); }
.schedule-table select.has-conflict { color: var(--coral-dark); border-color: var(--coral); background: var(--coral-soft); }
.schedule-device { display: flex; flex-direction: column; gap: 3px; }
.schedule-device strong { font-size: 13px; }
.schedule-device span { color: var(--ink-soft); font-size: 10px; }
.schedule-shift-cell { min-width: 0; padding: 7px 0; display: flex; flex-direction: column; gap: 8px; }
.schedule-readonly-assignment { min-height: 42px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; color: var(--ink); background: #f5f7f6; border: 1px solid var(--line); border-radius: 5px; }
.schedule-readonly-assignment > svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--teal); }
.schedule-readonly-assignment > span { min-width: 0; display: flex; flex-direction: column; }
.schedule-readonly-assignment strong, .schedule-readonly-assignment small { overflow-wrap: anywhere; }
.schedule-readonly-assignment small { color: var(--ink-soft); font-size: 9px; }
.schedule-performance { padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; background: #f8faf9; border-left: 2px solid var(--teal); }
.schedule-performance-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.schedule-performance-heading > span { min-width: 0; }
.schedule-performance-heading a { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; color: var(--teal-dark); border-radius: 4px; }
.schedule-performance-heading a:hover { background: var(--teal-soft); }
.schedule-performance-heading svg { width: 14px; height: 14px; }
.schedule-performance dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.schedule-performance dl > div { min-width: 0; padding-right: 5px; border-right: 1px solid var(--line); }
.schedule-performance dl > div:last-child { padding-right: 0; border-right: 0; }
.schedule-performance dt { color: var(--ink-soft); font-size: 8px; overflow-wrap: anywhere; }
.schedule-performance dd { margin: 2px 0 0; font-size: 12px; font-weight: 700; }
.schedule-no-performance { color: var(--ink-soft); font-size: 10px; }
.schedule-pending-performance { display: inline-flex; align-items: center; gap: 5px; color: var(--amber-dark); font-size: 9px; }
.schedule-pending-performance svg { width: 12px; height: 12px; }
.schedule-no-devices { min-height: 118px; padding: 24px 18px; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-content: center; gap: 15px; }
.schedule-no-devices > svg { color: var(--amber); }
.schedule-no-devices h3, .schedule-no-devices p { margin: 0; }
.schedule-no-devices p { margin-top: 6px; color: var(--ink-soft); }
.schedule-rest-section { margin-top: 34px; border-top: 3px solid var(--amber); background: white; }
.schedule-rest-section > header { min-height: 72px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.schedule-rest-section > header > div { display: flex; align-items: center; gap: 11px; }
.schedule-rest-section > header h2 { margin: 0; }
.schedule-rest-section > header svg { color: var(--amber); }
.schedule-rest-section > header > strong { min-width: 36px; text-align: right; font-size: 25px; }
.schedule-rest-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.schedule-rest-list > article { min-width: 0; min-height: 88px; padding: 14px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.schedule-rest-list > article > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.schedule-rest-list > article strong, .schedule-rest-list > article span { overflow-wrap: anywhere; }
.schedule-rest-list > article span { color: var(--ink-soft); font-size: 9px; }
.schedule-game-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; }
.schedule-game-tags small { padding: 3px 5px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 3px; font-size: 8px; }
.schedule-rest-list > p { grid-column: 1 / -1; margin: 0; padding: 22px 18px; color: var(--ink-soft); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.schedule-save-bar { position: sticky; z-index: 8; bottom: 0; min-height: 76px; margin-top: 22px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(19,39,34,.07); }
.schedule-save-bar > span { color: var(--ink-soft); }
.schedule-export-dialog { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px rgba(18, 34, 29, .24); }
.schedule-export-dialog::backdrop { background: rgba(18, 29, 26, .64); }
.schedule-export-dialog > header { min-height: 78px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.schedule-export-dialog > header h2 { margin: 4px 0 0; }
.schedule-export-preview { max-height: calc(100vh - 210px); padding: 18px; overflow: auto; background: #e9eeeb; }
.schedule-export-preview img { width: 100%; height: auto; display: block; background: white; box-shadow: 0 8px 28px rgba(19,39,34,.12); }
.schedule-export-dialog > footer { min-height: 72px; padding: 12px 18px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }

@media (min-width: 761px) and (max-width: 1350px) {
  .training-hud { grid-template-columns: 105px minmax(0, 1fr); gap: 0 10px; }
  .training-hud dl { min-width: 0; }
  .training-hud dl > div { min-width: 0; padding-inline: 8px; overflow: hidden; }
  .training-hud dt, .training-hud dd { max-width: 100%; overflow-wrap: anywhere; }
  .training-pet-meter { grid-column: 1; grid-row: 2; padding: 10px 0; border-top: 1px solid #35423d; border-left: 0; }
  .training-position-status { grid-column: 2; grid-row: 2; padding-left: 10px; border-top: 1px solid #35423d; }
}

@media (max-width: 1050px) {
  .exam-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --sidebar: 210px; }
  .page-shell { padding-left: 30px; padding-right: 30px; }
  .auth-stage { grid-template-columns: minmax(320px, 40%) minmax(480px, 60%); }
  .auth-panel { padding-left: 36px; padding-right: 36px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .work-console { grid-template-columns: 1fr; }
  .training-game-head { align-items: flex-start; flex-direction: column; }
  .training-key-strip { justify-content: flex-start; }
  .training-hud { grid-template-columns: 105px minmax(0, 1fr); gap: 0 10px; }
  .training-hud dl { min-width: 0; }
  .training-hud dl > div { min-width: 0; padding-inline: 8px; overflow: hidden; }
  .training-hud dt, .training-hud dd { max-width: 100%; overflow-wrap: anywhere; }
  .training-pet-meter { grid-column: 1; grid-row: 2; padding: 10px 0; border-top: 1px solid #35423d; border-left: 0; }
  .training-position-status { grid-column: 2; grid-row: 2; padding-left: 10px; border-top: 1px solid #35423d; }
  .training-play-shell { padding-left: 24px; padding-right: 24px; }
  .local-recorder { grid-template-columns: 1fr; }
  .recorder-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .work-status-panel { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .work-review-filters { grid-template-columns: minmax(220px, 1fr) 160px 190px auto; }
  .work-review-filters > .icon-button { display: none; }
  .employee-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proxy-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proxy-tools { padding-top: 0; justify-content: flex-start; }
  .credential-tools { padding-top: 0; justify-content: flex-start; }
  .schedule-date-bar { grid-template-columns: 38px minmax(300px, 1fr) auto 38px; }
  .schedule-today { display: none; }
  .schedule-rest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .auth-stage { display: block; }
  .auth-visual { min-height: 220px; height: 28vh; max-height: 290px; background-position: center 34%; }
  .visual-copy { left: 24px; right: 24px; bottom: 25px; }
  .visual-eyebrow, .visual-copy h1, .visual-index { display: none; }
  .auth-brand { margin: 0; }
  .auth-brand .brand-main { font-size: 38px; }
  .auth-brand .brand-sub { font-size: 14px; }
  .auth-panel { min-height: 72vh; padding: 26px 20px 40px; align-items: flex-start; }
  .auth-tabs { margin-bottom: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .sidebar { display: none; }
  .mobile-header { position: sticky; z-index: 30; top: 0; height: 64px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
  .mobile-menu { position: fixed; z-index: 29; top: 64px; left: 0; right: 0; padding: 12px 18px 18px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu a, .mobile-menu button { width: 100%; min-height: 48px; padding: 8px 10px; display: flex; align-items: center; border: 0; border-radius: 5px; background: transparent; text-align: left; }
  .mobile-menu { max-height: calc(100vh - 64px); overflow-y: auto; }
  .mobile-workspace-label { padding: 10px; color: var(--teal-dark); }
  .mobile-game { border-left: 1px solid var(--line); margin-left: 10px; padding-left: 10px; }
  .mobile-game summary { min-height: 42px; padding: 10px; cursor: pointer; font-weight: 700; }
  .mobile-game a { padding-left: 24px; }
  .main-content { margin-left: 0; }
  .page-shell { padding: 30px 18px; }
  .page-header { min-height: 0; padding-bottom: 24px; }
  .page-header .date-mark { display: none; }
  .review-header { align-items: flex-end; }
  .count-badge { min-width: 86px; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
  .count-badge .tri-count { align-items: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .search-bar { height: auto; min-height: 52px; flex-wrap: wrap; }
  .search-bar input { min-width: calc(100% - 38px); height: 40px; }
  .search-bar .button { width: 100%; }
  .data-table-wrap { overflow: visible; border: 0; background: transparent; }
  .data-table, .data-table tbody { display: block; }
  .data-table thead { display: none; }
  .data-table tr { display: block; margin-bottom: 12px; padding: 10px 14px; background: white; border: 1px solid var(--line); border-radius: 8px; }
  .data-table td, td.actions-cell { min-height: 44px; height: auto; padding: 10px 0; display: grid; grid-template-columns: minmax(115px, 42%) 1fr; align-items: center; border-bottom: 1px solid #edf1ef; text-align: right !important; }
  .data-table td::before { content: attr(data-label); color: var(--ink-soft); font-size: 9px; text-align: left; white-space: normal; }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td > * { justify-self: end; }
  td.actions-cell { display: flex; justify-content: flex-end; gap: 8px; }
  td.actions-cell::before { margin-right: auto; align-self: center; }
  .confirm-shell { min-height: calc(100vh - 64px); padding: 20px; }
  .confirm-panel { padding: 26px 20px; }
  .employee-edit-form { padding: 20px 16px; }
  .qualification-row { grid-template-columns: 1fr; align-items: start; }
  .qualification-row legend { margin-bottom: 2px; }
  .status-filters { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .status-filter { min-width: 0; width: 100%; }
  .compact-header .avatar { display: none; }
  .edit-actions { flex-direction: column-reverse; }
  .edit-actions .button { width: 100%; }
  .departure-action { padding: 20px 16px; align-items: stretch; flex-direction: column; }
  .departure-action .button { width: 100%; }
  .employment-summary dl { grid-template-columns: 1fr; }
  .manual-sections { grid-template-columns: 1fr; }
  .manual-section { min-height: 0; padding: 20px 16px; }
  .game-page-tabs { gap: 4px; }
  .game-page-tabs a { min-width: 0; min-height: 78px; padding-left: 2px; padding-right: 2px; flex: 1; flex-direction: column; }
  .game-page-tabs a > svg { flex: 0 0 auto; }
  .game-page-tabs .tri-button { align-items: center; text-align: center; }
  .work-console { margin-top: 20px; }
  .local-recorder { margin-top: 20px; }
  .recorder-controls, .recorder-preview-panel { padding: 22px 16px; }
  .recorder-runtime { grid-template-columns: 1fr; }
  .recorder-clock { align-items: flex-start; }
  .recorder-clock .tri-label { align-items: flex-start; text-align: left; }
  .recorder-actions, .recorder-result-actions { grid-template-columns: 1fr; flex-direction: column; }
  .recorder-result-actions .button { width: 100%; }
  .work-status-panel, .screenshot-form { padding: 24px 18px; }
  .work-facts { grid-template-columns: 1fr; }
  .work-blocked-state { grid-template-columns: 1fr; align-items: start; }
  .work-blocked-state .button { width: 100%; }
  .desktop-work-content { display: none; }
  .mobile-work-notice { min-height: 280px; display: grid; grid-template-columns: 1fr; align-content: center; text-align: center; }
  .mobile-work-notice .state-icon, .mobile-work-notice .tri-text { justify-self: center; align-items: center; }
  .capture-button { min-height: 92px; justify-content: flex-start; }
  .capture-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .capture-dialog-head, .capture-editor, .capture-preview-stage { padding-left: 14px; padding-right: 14px; }
  .capture-steps { padding-left: 10px; padding-right: 10px; gap: 2px; justify-content: space-between; }
  .capture-steps span { padding-left: 5px; padding-right: 5px; font-size: 8px; text-align: center; }
  .capture-crop-stage { height: 43vh; }
  .capture-preview-stage img { height: 42vh; }
  .capture-dialog-actions { padding: 10px 14px 14px; display: grid; grid-template-columns: 1fr 1.3fr; }
  .capture-dialog-actions .button { width: 100%; }
  .work-review-filters { padding: 12px; grid-template-columns: 1fr; }
  .work-review-filters .button { width: 100%; }
  .work-review-filters > .icon-button { display: flex; justify-self: center; }
  .review-summary, .review-timeline-section, .review-assessment { padding: 20px 16px; }
  .review-summary dl, .approved-review { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; }
  .screenshot-timeline li { padding: 14px; grid-template-columns: 1fr; }
  .timeline-index { left: 24px; top: 24px; transform: none; z-index: 1; }
  .timeline-image { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .work-review-form { grid-template-columns: 1fr; }
  .work-review-form .review-note-field { grid-column: auto; }
  .work-record-filters, .performance-summary { grid-template-columns: 1fr; }
  .work-record-filters .button, .work-record-filters .icon-button { width: 100%; }
  .review-submit { grid-column: auto; }
  .review-submit .button { width: 100%; }
  .header-actions { width: 100%; align-items: stretch; }
  .header-actions .button { flex: 1; }
  .device-shell .review-header { flex-direction: column; align-items: stretch; gap: 18px; }
  .device-shell .header-actions { min-height: 64px; }
  .device-shell .header-actions .count-badge,
  .device-shell .header-actions .button { height: auto; min-height: 64px; }
  .device-form-section { padding: 20px 16px; }
  .employee-choice-grid, .credential-row, .proxy-row { grid-template-columns: 1fr; }
  .launcher-binding-row { grid-template-columns: 1fr; align-items: stretch; }
  .credential-section .section-heading, .proxy-section .section-heading { align-items: stretch; }
  .credential-section .section-heading .button, .proxy-section .section-heading .button { width: 100%; }
  .proxy-tools { min-height: 38px; justify-content: flex-end; }
  .credential-tools { min-height: 38px; justify-content: flex-end; }
  .credential-revealed { left: 16px; right: 16px; max-width: none; }
  .device-table .device-tags, .device-table .device-credential-summary, .device-table .device-proxy-summary { align-items: flex-end; }
  .device-table .device-proxy-summary span { align-items: flex-end; }
  .exam-header-actions { width: 100%; justify-content: stretch; }
  .exam-header-actions .button { flex: 1; }
  .training-course-card { min-height: 0; grid-template-columns: 1fr; }
  .training-course-visual { min-height: 220px; border-right: 0; border-bottom: 1px solid #34413c; }
  .training-course-copy { padding: 24px 18px; }
  .training-course-copy h2 { margin-top: 22px; font-size: 22px; }
  .training-key-preview { margin-top: 24px; }
  .training-play-shell { padding-left: 18px; padding-right: 18px; }
  .training-play-header { align-items: stretch; flex-direction: column; }
  .training-play-header .button { width: 100%; }
  .training-video-section video { max-height: none; }
  .training-game-head { display: none; }
  .training-game-layout { display: none; }
  .training-mobile-block { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 11px; background: white; border: 1px solid var(--line); text-align: center; }
  .training-mobile-block svg { width: 38px; height: 38px; color: var(--teal); }
  .training-mobile-block h2, .training-mobile-block p { margin: 0; }
  .training-mobile-block p { max-width: 320px; color: var(--ink-soft); }
  .training-final-score { min-width: 0; align-items: flex-start; }
  .training-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .training-result-actions { flex-direction: column; }
  .training-result-actions .button { width: 100%; }
  .exam-catalog { grid-template-columns: 1fr; }
  .exam-card { padding: 20px 16px; }
  .exam-card-facts { gap: 8px; }
  .exam-card-facts dt { min-height: 44px; }
  .exam-taking-header { align-items: stretch; flex-direction: column; }
  .exam-score-mark { width: 100%; }
  .exam-question { grid-template-columns: 40px minmax(0, 1fr); }
  .exam-question > .exam-question-number { padding-top: 21px; font-size: 13px; }
  .exam-question-main { padding: 20px 14px; }
  .exam-question-heading { flex-direction: column; gap: 8px; }
  .exam-question-heading h2 { font-size: 15px; }
  .exam-part-heading { grid-template-columns: 36px minmax(0, 1fr); }
  .exam-part-heading > .question-points { grid-column: 2; }
  .exam-submit-bar { align-items: stretch; flex-direction: column; }
  .exam-submit-bar .button { width: 100%; }
  .exam-filter-bar { grid-template-columns: 1fr; padding: 14px; }
  .stat-badge { width: 100%; align-items: flex-start; border-left-width: 3px; }
  .practical-screenshot-grid { grid-template-columns: 1fr; }
  .practical-screenshot-grid img, .empty-screenshot { height: 230px; }
  .practical-result-options { grid-template-columns: 1fr; }
  .practical-review-form .button { width: 100%; }
  .exam-result-header { padding: 20px 16px; align-items: stretch; flex-direction: column; }
  .exam-result-score { min-width: 0; align-items: flex-start; }
  .exam-corrections-control { padding: 16px 12px; align-items: stretch; flex-direction: column; }
  .exam-corrections-control form, .exam-corrections-control .button { width: 100%; }
  .exam-grading-failure { align-items: stretch; flex-direction: column; }
  .exam-grading-failure .button { width: 100%; }
  .exam-reviewed-answer > header { padding: 16px 12px; grid-template-columns: 36px minmax(0, 1fr); }
  .exam-reviewed-answer > header > .status-chip { grid-column: 2; justify-self: start; }
  .review-answer-grid, .admin-feedback-grid { grid-template-columns: 1fr; }
  .review-answer-grid section + section, .admin-feedback-grid section + section { border-left: 0; border-top: 1px solid var(--line); }
  .part-feedback-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .part-feedback-heading p { text-align: left; }
  .part-feedback-item { grid-template-columns: 34px minmax(0, 1fr); }
  .part-feedback-status { grid-column: 2; text-align: left; }
  .schedule-header { align-items: stretch; flex-direction: column; }
  .schedule-header-actions { flex-direction: column; }
  .schedule-header-actions > .button { width: 100%; min-height: 54px; }
  .schedule-summary { width: 100%; }
  .schedule-date-bar { grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: stretch; }
  .schedule-date-form { grid-column: 2; grid-template-columns: 1fr; }
  .schedule-date-form > label { display: none; }
  .schedule-date-form input, .schedule-date-form .button { width: 100%; }
  .schedule-date-bar > .icon-button:first-child { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 1px; }
  .schedule-date-bar > .icon-button:last-child { grid-column: 3; grid-row: 1; align-self: end; margin-bottom: 1px; }
  .schedule-copy-form { grid-column: 1 / -1; }
  .schedule-copy-form .button { width: 100%; }
  .schedule-date-heading { align-items: flex-start; flex-direction: column; }
  .schedule-game-header { align-items: flex-start; gap: 8px; }
  .schedule-game-header > div { flex: 1; gap: 8px; }
  .schedule-game-header h2 { font-size: 17px; white-space: nowrap; }
  .schedule-game-header > span { flex: 0 1 105px; }
  .schedule-game-index { width: 30px; height: 30px; flex: 0 0 30px; }
  .schedule-eligible-strip { grid-template-columns: 1fr; }
  .schedule-person-list { flex-direction: column; }
  .schedule-person-chip { width: 100%; }
  .schedule-table tr { padding: 12px 14px; }
  .schedule-table td:first-child { width: auto; }
  .schedule-table td { min-height: 56px; grid-template-columns: minmax(82px, 30%) minmax(0, 1fr); }
  .schedule-table td select { min-width: 0; width: 100%; justify-self: stretch; }
  .schedule-table .schedule-shift-cell { width: 100%; justify-self: stretch; text-align: left; }
  .schedule-readonly-assignment, .schedule-performance { text-align: left; }
  .schedule-rest-list { grid-template-columns: 1fr; }
  .schedule-save-bar { position: static; align-items: stretch; flex-direction: column; }
  .schedule-save-bar .button { width: 100%; }
  .schedule-export-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .schedule-export-dialog > header { align-items: flex-start; }
  .schedule-export-preview { max-height: calc(100vh - 250px); padding: 10px; }
  .schedule-export-dialog > footer { align-items: stretch; flex-direction: column-reverse; }
  .schedule-export-dialog > footer .button { width: 100%; }
}

@media (max-width: 380px) {
  .auth-panel { padding-left: 15px; padding-right: 15px; }
  .tri-page-title > span:first-child { font-size: 25px; }
  .count-badge { min-width: 74px; padding: 9px 10px; }
  .page-shell { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* XIAYIN NETWORK troubleshooting page */
.troubleshooting-shell { max-width: 1240px; }
.troubleshooting-header { align-items: center; }
.troubleshooting-ask-section, .troubleshooting-latest, .troubleshooting-history { margin-top: 24px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.troubleshooting-ask-section .section-heading, .troubleshooting-latest > header, .troubleshooting-history > header { margin: 0 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.troubleshooting-ask-section h2, .troubleshooting-latest h2, .troubleshooting-history h2 { margin: 5px 0 0; }
.troubleshooting-form { display: grid; gap: 18px; }
.troubleshooting-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.troubleshooting-form textarea { min-height: 150px; resize: vertical; }
.troubleshooting-form input[type="file"], .troubleshooting-form select { min-height: 44px; width: 100%; }
.troubleshooting-form .button { justify-self: start; }
.troubleshooting-question { padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.troubleshooting-question p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.troubleshooting-images { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.troubleshooting-images figure { min-width: 0; margin: 0; }
.troubleshooting-images img { width: 100%; max-height: 440px; object-fit: contain; display: block; background: #eef2f0; border: 1px solid var(--line); }
.troubleshooting-images figcaption { margin-top: 7px; color: var(--ink-soft); font-size: 10px; }
.troubleshooting-answer-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.troubleshooting-answer-grid article { min-width: 0; padding: 18px; background: #f8faf9; border-left: 3px solid var(--teal); }
.troubleshooting-answer-grid article:nth-child(2) { border-left-color: var(--amber); }
.troubleshooting-answer-grid article:nth-child(3) { border-left-color: var(--coral); }
.troubleshooting-answer-grid h3 { margin: 0; font-size: 13px; }
.troubleshooting-answer-grid p { margin: 10px 0 0; line-height: 1.65; overflow-wrap: anywhere; }
.troubleshooting-table td small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.history-answer { min-width: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.history-answer strong { color: var(--ink); font-size: 10px; }
.tri-caption { font-size: 10px; }

@media (max-width: 760px) {
  .troubleshooting-ask-section, .troubleshooting-latest, .troubleshooting-history { padding: 20px 16px; }
  .troubleshooting-form-grid, .troubleshooting-images, .troubleshooting-answer-grid { grid-template-columns: 1fr; }
  .troubleshooting-form .button { width: 100%; }
  .troubleshooting-latest > header, .troubleshooting-history > header { align-items: flex-start; flex-direction: column; }
}

.mhxy-game-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mhxy-game-tabs a { min-width: 0; }
.mhxy-game-tabs .tri-button { text-align: center; overflow-wrap: anywhere; }
@media (min-width: 761px) and (max-width: 1100px) {
  .mhxy-game-tabs a { flex-direction: column; }
}

@media (max-width: 760px) {
  .operation-guide-entry { display: none !important; }
}
