@font-face {
  font-family: Thai;
  src: url("../assets/fonts/noto-sans-thai.ttf") format("truetype");
}
* {
  box-sizing: border-box;
}
:root {
  --bg: #18201d;
  --panel: #242e28;
  --line: #404a3c;
  --muted: #a0aa94;
  --text: #edead5;
  --yellow: #dfd486;
  --green: #a6bc89;
  --red: #e58b70;
  --paper: #e6dfc5;
  --ink: #333a31;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    calc(14px * var(--text-scale, 1)) Thai,
    "Tahoma",
    sans-serif;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #f5d974;
  outline-offset: 4px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button {
  transition:
    background 0.15s,
    transform 0.15s;
}
button:active:not(:disabled) {
  transform: translateY(2px);
}
.shell {
  height: 100dvh;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 901px) {
  html,
  body {
    height: 100%;
  }
  body:not(.in-menu) {
    overflow: hidden;
  }
}
.eyebrow {
  font: calc(10px * var(--text-scale, 1)) monospace;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
h1 {
  font-size: 25px;
  line-height: 1.4;
  margin: 2px 0 0;
  font-weight: 600;
  letter-spacing: -0.7px;
}
h1 span {
  color: var(--yellow);
}
.small-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: calc(12px * var(--text-scale, 1));
}
.small-button:hover {
  background: #3d493b;
}
.room-hud {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.hud-chip {
  padding: 4px 8px;
  background: #141d18d9;
  border: 1px solid #35402f;
  font:
    10.5px Thai,
    monospace;
  letter-spacing: 0.5px;
  color: #cfd6ba;
  white-space: nowrap;
}
.hud-sub {
  margin-right: auto;
}
.hud-chip b {
  color: var(--yellow);
  font-weight: 400;
}
.hud-chip b span {
  color: #97a286;
  font-size: 9px;
}
.hud-day b {
  font-size: 13px;
  margin-right: 6px;
}
.hud-day span {
  font: 10px Thai;
  color: var(--text);
}
.hud-clock {
  color: var(--yellow);
  border-color: #5a6144;
}
.hud-rec {
  color: #e7bfae;
}
.hud-rec::before {
  content: "\25CF";
  color: var(--red);
  margin-right: 5px;
  animation: rec-blink 1.6s steps(2, jump-none) infinite;
}
@keyframes rec-blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
  100% {
    opacity: 1;
  }
}
.hud-rec::first-letter {
  color: var(--red);
}
.hud-btn {
  pointer-events: auto;
  width: 30px;
  height: 24px;
  padding: 0;
  background: #141d18d9;
  border: 1px solid #46523c;
  color: #cfd6ba;
  font:
    12px Thai,
    monospace;
  display: grid;
  place-items: center;
}
.hud-btn:hover {
  background: #2c3826;
  color: var(--yellow);
  border-color: #6b7752;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  display: inline-block;
  margin-right: 7px;
  box-shadow: 0 0 7px #a6bc8930;
}
.board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 26vw, 410px);
  gap: 14px;
  align-items: stretch;
}
.interview,
.fileshelf {
  min-width: 0;
}
.interview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.room-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    120% 90% at 50% 40%,
    #26322a 0%,
    #18211b 62%,
    #101812 100%
  );
  border: 1px solid #4b5542;
  box-shadow:
    inset 0 0 46px #0a120d,
    0 4px 0 #101911;
  overflow: hidden;
}
.room-frame.secret-room {
  outline: 2px solid #e6d48a;
  outline-offset: -4px;
}
.fileshelf.wake-fileshelf {
  position: relative;
  overflow: hidden;
}
.fileshelf.wake-fileshelf > :not(#wakePanel) {
  display: none !important;
}
.fileshelf.wake-fileshelf > .wake-panel {
  position: absolute;
  inset: 0;
  z-index: 50;
  width: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  background: #10160f;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  pointer-events: auto;
}
.wake-panel > .eyebrow {
  flex: none;
  color: #c4cba8;
}
.wake-composure-paper {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.room-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    transparent 0px,
    transparent 3px,
    #0000000b 3px,
    #0000000b 4px
  );
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.namebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: #303b30;
  border: 1px solid var(--line);
}
.who-tags {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.who-tags small + small {
  font: calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
  color: #8b9878;
}
.namebar strong {
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 500;
}
.namebar small {
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--muted);
}
.mood {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mood-label {
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--muted);
}
.mood-track {
  width: 56px;
  height: 5px;
  background: #1b251e;
}
.mood-track i {
  display: block;
  height: 100%;
  background: var(--yellow);
  transition: width 0.3s;
}
.dialogue {
  flex: none;
  min-height: 86px;
  max-height: clamp(96px, 24vh, 210px);
  overflow-y: auto;
  padding: 13px 16px;
  position: relative;
  border-left: 3px solid var(--yellow);
  background: #222d26;
  scrollbar-width: thin;
  scrollbar-color: #4a573f #1b241d;
}
.quote {
  font-size: calc(15px * var(--text-scale, 1));
  line-height: 1.85;
  margin: 0;
}
.speaker {
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--yellow);
  margin-bottom: 5px;
  display: block;
}
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#actions.action-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
  background: var(--paper);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #635c3710 4px
  );
  border: 1px solid #b9b191;
  box-shadow: 3px 4px 0 #101813aa;
  padding: 6px 12px;
  position: relative;
}
#actions.action-grid:before {
  content: "";
  width: 46px;
  height: 10px;
  position: absolute;
  top: -6px;
  left: calc(50% - 23px);
  background: #aeb392b0;
  border-radius: 2px;
  transform: rotate(-2deg);
}
#actions .action {
  min-height: 50px;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 9px 4px;
}
#actions .action + .action {
  border-top: 1px dashed #a89f7f99;
}
#actions .action:hover {
  background: #635c3714;
  border-color: #a89f7f99;
}
#actions .action .symbol {
  color: #8d543f;
}
#actions .action small {
  color: #6b705e;
}
#actions .action.prank {
  background: transparent;
  border-color: #a89f7f99;
}
#actions .action.prank .symbol {
  color: #a95042;
}
#actions .action.prank:hover {
  background: #635c3714;
}
#paneActions #actions {
  flex: 1 0 auto;
  max-height: none;
  overflow-y: visible;
}
.action {
  border: 1px solid #46513f;
  background: #2a352b;
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  min-height: 64px;
  font-size: calc(12px * var(--text-scale, 1));
  display: flex;
  gap: 9px;
  align-items: center;
}
.action:hover {
  background: #3b4735;
  border-color: #83906b;
}
.action .symbol {
  font: calc(17px * var(--text-scale, 1)) monospace;
  color: var(--yellow);
}
.game-icon {
  display: inline-grid;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.22em;
  place-items: center;
  color: currentColor;
}
.game-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.action .symbol .game-icon {
  vertical-align: -0.28em;
}
.action small {
  display: block;
  font-size: calc(9px * var(--text-scale, 1));
  color: var(--muted);
  margin-top: 3px;
}
.action.prank {
  border-color: #66513c;
  background: #352f26;
}
.action.prank .symbol {
  color: var(--red);
}
.action.prank:hover {
  background: #494031;
}
.action-note {
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--muted);
  margin: 11px 0 0;
}
.desk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.conversation-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.decision-hint {
  flex: 1;
  min-width: 120px;
  margin: 0;
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--muted);
  line-height: 1.6;
}
.tell-line {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  margin: 0;
  min-height: 0;
  padding: 5px 9px;
  width: fit-content;
  max-width: calc(100% - 24px);
  background: #141d18d9;
  border: 1px solid #4a503c;
  color: #d7c98a;
  font-size: calc(12px * var(--text-scale, 1));
  pointer-events: none;
}
.scandal-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: calc(11px * var(--text-scale, 1));
}
.scandal-line.hot {
  color: var(--red);
}
.leak-note {
  border-left: 3px solid var(--red);
  padding-left: 10px;
  color: #f0c7b8 !important;
}
.room-frame.quake #scene {
  animation: quake-shake 0.28s linear infinite;
}
@keyframes quake-shake {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2px, 1px);
  }
  50% {
    transform: translate(2px, -1px);
  }
  75% {
    transform: translate(-1px, 1px);
  }
}
.paper-tabs {
  display: flex;
  gap: 0;
  margin-top: 12px;
}
.paper-tabs button {
  padding: 8px 10px;
  font-size: calc(11px * var(--text-scale, 1));
  background: #3e4839;
  color: #b9c1a7;
  border: 1px solid #505c47;
  border-bottom: 0;
  flex: 1;
}
.paper-tabs button.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.paper {
  min-height: 429px;
  background: var(--paper);
  color: var(--ink);
  padding: 23px 23px 15px;
  position: relative;
  box-shadow: 4px 5px 0 #19241c6b;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #635c3710 4px
  );
  transform: rotate(-0.5deg);
}
.paper:before {
  content: "";
  position: absolute;
  width: 28px;
  height: 8px;
  border: 2px solid #88927c;
  border-radius: 6px;
  right: 20px;
  top: -5px;
  transform: rotate(-15deg);
}
.paper-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #58614c;
  padding-bottom: 12px;
}
.paper h2 {
  margin: 5px 0 0;
  font-size: calc(20px * var(--text-scale, 1));
  font-weight: 600;
}
.paper .tiny {
  font: calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
  color: #69715f;
}
.paper .seal {
  border: 1px solid #777e69;
  border-radius: 50%;
  padding: 8px;
  font: calc(15px * var(--text-scale, 1)) monospace;
  transform: rotate(-12deg);
  opacity: 0.65;
}
.paper-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 19px 0 14px;
}
.portrait {
  width: 64px;
  height: 72px;
  background: #a5ac90;
  border: 3px solid #bbc0a7;
  image-rendering: pixelated;
}
.paper-person h3 {
  font-size: calc(15px * var(--text-scale, 1));
  margin: 0 0 5px;
}
.paper-person p {
  font-size: calc(10px * var(--text-scale, 1));
  margin: 0;
  color: #707662;
}
.paper-row {
  width: 100%;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: calc(12px * var(--text-scale, 1));
  border: 0;
  border-bottom: 1px dashed #a9ac92;
  background: transparent;
  color: var(--ink);
}
.paper-row .field-name {
  color: #6c735f;
  font-size: calc(11px * var(--text-scale, 1));
}
.paper-row .field-value {
  text-align: right;
  font-weight: 600;
}
.paper-row:hover {
  background: #ced0b3;
}
.paper-row.marked {
  background: #d5bea0;
}
.paper-row.marked .field-value {
  color: #984b35;
  text-decoration: underline wavy;
}
.paper-note {
  font-size: calc(10px * var(--text-scale, 1));
  line-height: 1.8;
  color: #767b65;
  margin: 14px 0 0;
}
.signature {
  font-size: calc(20px * var(--text-scale, 1));
  opacity: 0.65;
  transform: rotate(-7deg);
  text-align: right;
  margin-top: 16px;
  font-style: italic;
}
.doc-tip {
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--muted);
  margin-top: 12px;
}
.evidence {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 12px;
  min-height: 22px;
}
.evidence span {
  font-size: calc(9px * var(--text-scale, 1));
  border: 1px solid #6c7955;
  padding: 3px 6px;
  color: var(--green);
}
#paneOrders .rule-card {
  margin-top: 12px;
  background: var(--paper);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #635c3710 4px
  );
  color: var(--ink);
  border: 1px solid #b9b191;
  box-shadow: 3px 4px 0 #101813aa;
  padding: 15px 13px 13px;
  position: relative;
}
.rule-card:before {
  content: "";
  width: 46px;
  height: 10px;
  position: absolute;
  top: -6px;
  left: calc(50% - 23px);
  background: #aeb392b0;
  border-radius: 2px;
  transform: rotate(-3deg);
}
.rule-card .eyebrow {
  font-size: calc(8px * var(--text-scale, 1));
  color: #7a7f68;
  letter-spacing: 1px;
}
.rule-card h3 {
  font-size: calc(16px * var(--text-scale, 1));
  margin: 6px 0 3px;
  color: #38402f;
}
.rule-card .job {
  font-size: calc(11px * var(--text-scale, 1));
  color: #6b705e;
  margin: 0 0 10px;
}
.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.rules li {
  display: flex;
  gap: 9px;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.6;
  padding: 9px 2px 9px 1px;
  color: var(--ink);
}
.rules li + li {
  border-top: 1px dashed #a89f7f99;
}
.rules li b {
  font: calc(10px * var(--text-scale, 1)) monospace;
  color: #8d543f;
  border: 1px solid #b3836f;
  padding: 1px 4px;
  height: fit-content;
  margin-top: 1px;
}
.rules strong {
  font-weight: 600;
}
.rules li span small {
  display: block;
  margin-top: 4px;
  color: #6b705e;
  font-size: calc(8px * var(--text-scale, 1));
  line-height: 1.55;
}
.rules li.attitude-rule {
  box-shadow: inset 0 0 0 1px #a9504266;
}
.rules li.attitude-rule b {
  color: #a95042;
  border-color: #a9504288;
}
.rules li.security-rule {
  box-shadow: inset 0 0 0 1px #82622c77;
}
.rules li.security-rule b {
  color: #76551f;
  border-color: #9b753688;
}
.rule-foot {
  font-size: calc(9px * var(--text-scale, 1));
  border: 1px dashed #8a8468;
  color: #6b705e;
  padding: 8px;
  line-height: 1.7;
  margin-top: 11px;
}
.queue-panel {
  margin-top: 25px;
}
.queue-title {
  display: flex;
  justify-content: space-between;
  font-size: calc(11px * var(--text-scale, 1));
}
.queue-title small {
  color: var(--muted);
  font-size: calc(10px * var(--text-scale, 1));
}
.queue-people {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}
.queue-person {
  height: 48px;
  flex: 1;
  background: #2c362b;
  border: 1px solid #424d3c;
  display: grid;
  place-items: center;
  color: #849476;
  font: calc(17px * var(--text-scale, 1)) monospace;
}
.queue-person.current {
  border-color: var(--yellow);
  background: #424831;
  color: var(--yellow);
}
.queue-person.secret {
  color: #e7d48a;
  border-color: #a89255;
}
.queue-person.done {
  opacity: 0.35;
}
.queue-person.coworker {
  color: #c8a7d8;
  border-color: #72577e;
  background: #332b38;
}
.feed {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 13px;
}
.feed .eyebrow {
  font-size: calc(9px * var(--text-scale, 1));
  margin-bottom: 12px;
}
.feed-line {
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--muted);
  line-height: 1.7;
  padding-left: 10px;
  border-left: 1px solid #59614b;
  margin: 0 0 11px;
}
.feed-line b {
  color: #bcc4a9;
  font-weight: 500;
}
.policy {
  font-size: calc(10px * var(--text-scale, 1));
  color: #88977c;
  line-height: 1.8;
  margin-top: 17px;
}
.decision-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.stamp {
  min-width: 148px;
  border: 2px solid;
  padding: 9px 18px;
  text-align: center;
  font-size: calc(14px * var(--text-scale, 1));
  position: relative;
  box-shadow: 3px 3px 0 #142017;
}
.stamp small {
  font: calc(8px * var(--text-scale, 1)) monospace;
  display: block;
  letter-spacing: 2px;
  margin-top: 3px;
}
.stamp.reject {
  color: #edaa8c;
  background: #503e30;
  border-color: #b4775d;
}
.stamp.hire {
  color: #d2deb1;
  background: #40553b;
  border-color: #94a975;
}
.stamp.reject:hover {
  background: #70503a;
}
.stamp.hire:hover {
  background: #576e49;
}
.stamp.bribe {
  color: #f0d7a2;
  background: #5a4630;
  border-color: #c4a36a;
}
.stamp.bribe:hover {
  background: #74603f;
}
.bribe-envelope {
  margin: 12px 0;
  padding: 14px 16px;
  background: #6a5034;
  color: #f3e2bc;
  border: 2px dashed #e6c98a;
  text-align: center;
}
.bribe-envelope span {
  display: block;
  font-size: calc(10px * var(--text-scale, 1));
  letter-spacing: 1px;
}
.bribe-envelope strong {
  font-size: 28px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0c1713df;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  backdrop-filter: blur(4px);
}
.modal {
  width: min(530px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #758062;
  background: #273328;
  padding: 30px;
  box-shadow: 9px 9px 0 #101912;
  position: relative;
}
.modal .eyebrow {
  color: var(--yellow);
}
.modal h2 {
  font-weight: 500;
  font-size: 25px;
  margin: 12px 0;
}
.modal p {
  color: #b8c1a6;
  line-height: 1.9;
  font-size: calc(13px * var(--text-scale, 1));
}
.modal .big-icon {
  font: 35px monospace;
  color: var(--yellow);
  margin-bottom: 18px;
}
.avatar-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}
.avatar-choice {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  text-align: left;
  color: var(--text);
  background: #303d31;
  border: 1px solid #63715e;
}
.avatar-choice:hover {
  background: #3d4c3d;
}
.avatar-choice.selected {
  color: #253020;
  background: var(--yellow);
  border-color: #f6e796;
  box-shadow: inset 0 0 0 2px #5e684b;
}
.avatar-choice-preview {
  flex: 0 0 68px;
  width: 68px;
  height: 72px;
  border: 1px solid #758065;
  image-rendering: pixelated;
}
.avatar-choice span {
  min-width: 0;
}
.avatar-choice b,
.avatar-choice small {
  display: block;
}
.avatar-choice b {
  font-size: calc(13px * var(--text-scale, 1));
}
.avatar-choice small {
  margin-top: 4px;
  color: #b7c1a4;
  font-size: calc(10px * var(--text-scale, 1));
  line-height: 1.45;
}
.avatar-choice.selected small {
  color: #435037;
}
.avatar-selection-note {
  min-height: 20px;
  margin: 12px 0 -5px;
  color: var(--yellow) !important;
  font-size: calc(11px * var(--text-scale, 1)) !important;
}
.rejection-case-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 10px;
  padding: 9px 11px;
  color: #c5cdb5;
  background: #1d281f;
  border: 1px solid #526047;
  font: calc(10px * var(--text-scale, 1)) monospace;
}
.rejection-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.rejection-reason {
  min-height: 70px;
  padding: 11px 12px;
  color: #d9ddcc;
  background: #273328;
  border: 1px solid #5e6d53;
  text-align: left;
}
.rejection-reason:hover {
  background: #344334;
  border-color: #9aa87c;
}
.rejection-reason.selected {
  color: #222d23;
  background: #d9d39a;
  border-color: #f1e39a;
  box-shadow: inset 0 0 0 2px #697254;
}
.rejection-reason b,
.rejection-reason small {
  display: block;
}
.rejection-reason b {
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.55;
}
.rejection-reason small {
  margin-top: 5px;
  color: #9eaa91;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.45;
}
.rejection-reason.selected small {
  color: #4e5c47;
}
.rejection-report-note {
  margin: 11px 0 0 !important;
  color: #8f9b82 !important;
  font-size: calc(10px * var(--text-scale, 1)) !important;
}
.rejection-other-toggle {
  width: 100%;
  margin-top: 9px;
  padding: 12px 14px;
  color: #d9ddcc;
  background: #202b22;
  border: 1px dashed #768260;
  text-align: left;
}
.rejection-other-toggle.open {
  color: #272f25;
  background: #b7b78f;
  border-style: solid;
}
.rejection-other-toggle b,
.rejection-other-toggle small {
  display: block;
}
.rejection-other-toggle small {
  margin-top: 4px;
  color: #9eaa91;
  font-size: calc(9px * var(--text-scale, 1));
}
.rejection-other-toggle.open small {
  color: #4e5c47;
}
.rejection-other-panel {
  padding: 9px;
  background: #1b251d;
  border: 1px solid #58654e;
  border-top: 0;
}
.memo-sheet {
  position: relative;
  margin: 15px 0 4px;
  padding: 26px 28px 22px;
  color: var(--ink);
  background: var(--paper);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #635c3710 4px
  );
  border: 1px solid #b9b191;
  box-shadow: 6px 7px 0 #10191280;
  transform: rotate(-0.35deg);
}
.memo-sheet:before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 28px;
  height: 9px;
  border: 2px solid #88927c;
  border-radius: 6px;
  transform: rotate(-14deg);
}
.memo-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 3px double #4d5646;
}
.memo-org {
  display: block;
  color: #2f4b5e;
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 700;
  letter-spacing: 0.3px;
}
.memo-org-sub {
  display: block;
  margin-top: 3px;
  color: #6d7461;
  font: calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
}
.memo-class {
  flex: none;
  padding: 5px 9px;
  color: #8a4436;
  border: 1px solid #a9655a;
  font-size: calc(9px * var(--text-scale, 1));
  letter-spacing: 1px;
}
.memo-title {
  margin: 16px 0 12px;
  color: #2f4b5e;
  font-size: calc(21px * var(--text-scale, 1));
  font-weight: 600;
  letter-spacing: 3px;
  text-align: center;
}
.memo-meta {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  background: #ded6ba;
  border: 1px solid #a9ac92;
}
.memo-meta > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  font-size: calc(12px * var(--text-scale, 1));
}
.memo-meta span {
  color: #6c735f;
  font-size: calc(11px * var(--text-scale, 1));
}
.memo-meta b {
  font-weight: 600;
}
.memo-meta-split {
  grid-template-columns: 38px 1fr 46px 1fr;
}
.memo-block {
  margin-top: 18px;
}
.memo-block h3 {
  margin: 0 0 9px;
  padding-bottom: 5px;
  color: #2f4b5e;
  font-size: calc(13px * var(--text-scale, 1));
  border-bottom: 1px solid #a9ac92;
}
.memo-block h3 small {
  display: block;
  margin-top: 4px;
  color: #767b65;
  font-size: calc(9px * var(--text-scale, 1));
  font-weight: 400;
  line-height: 1.55;
}
.memo-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 18px;
}
.memo-fact {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed #a9ac92;
  font-size: calc(11px * var(--text-scale, 1));
}
.memo-fact span {
  color: #6c735f;
}
.memo-fact b {
  text-align: right;
  font-weight: 600;
}
.memo-flag {
  margin: 10px 0 0;
  padding: 7px 9px;
  color: #8a4436;
  background: #e2cdbb;
  border: 1px dashed #b3836f;
  font-size: calc(10px * var(--text-scale, 1));
  line-height: 1.6;
}
.rejection-reasons.memo-checks {
  grid-template-columns: 1fr;
  gap: 6px;
}
.memo-checks .rejection-reason {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 0;
  padding: 10px 11px;
  color: var(--ink);
  background: #ddd5b9;
  border: 1px solid #a9ac92;
}
.memo-checks .rejection-reason:hover {
  background: #d2c8a6;
  border-color: #7b8367;
}
.memo-checks .rejection-reason.selected {
  color: #23301f;
  background: #ceddab;
  border-color: #7d8f5c;
  box-shadow: inset 0 0 0 1px #7d8f5c;
}
.memo-check-text {
  display: block;
}
.memo-checks .rejection-reason b {
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.55;
}
.memo-checks .rejection-reason small {
  margin-top: 4px;
  color: #6c735f;
  font-size: calc(9px * var(--text-scale, 1));
}
.memo-checks .rejection-reason.selected small {
  color: #4e5c47;
}
.memo-box {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  background: #efe9d2;
  border: 2px solid #6f7760;
}
.rejection-reason.selected .memo-box {
  background: #f4f6e4;
  border-color: #4f5c3c;
}
.rejection-reason.selected .memo-box:after {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 4px;
  height: 8px;
  border-right: 2.5px solid #3d4a2c;
  border-bottom: 2.5px solid #3d4a2c;
  transform: rotate(40deg);
}
.memo-opinion {
  margin: 0;
  padding: 10px 12px;
  color: #57604c;
  background: #e8e1c8;
  border: 1px solid #a9ac92;
  font-size: calc(10px * var(--text-scale, 1));
  line-height: 1.75;
}
.memo-sign {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #a9ac92;
}
.memo-sign > span {
  color: #57604c;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.6;
}
.memo-signature {
  flex: none;
  min-width: 190px;
  text-align: center;
}
.memo-signature small {
  display: block;
  color: #6c735f;
  font-size: calc(9px * var(--text-scale, 1));
}
.memo-signature b {
  display: block;
  margin: 5px 0;
  color: #57604c;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1px;
}
.rejection-report-modal .modal-actions {
  margin-top: 18px;
}
@media (max-width: 700px) {
  .memo-sheet {
    padding: 18px 15px 16px;
    transform: none;
  }
  .memo-facts,
  .memo-meta-split {
    grid-template-columns: 44px 1fr;
  }
  .memo-meta-split {
    grid-template-columns: 1fr;
  }
  .memo-sign {
    flex-direction: column;
    align-items: flex-start;
  }
}
.employment-heading {
  margin: 20px 0 8px;
  color: #48513f;
  font-size: calc(12px * var(--text-scale, 1));
}
.employment-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0;
}
.employment-summary span {
  padding: 3px 6px;
  color: #505947;
  background: #d4d0b4;
  border: 1px solid #a5aa8e;
  font-size: calc(8px * var(--text-scale, 1));
}
.employment-timeline {
  display: grid;
  gap: 6px;
}
.employment-entry {
  padding: 8px 9px;
  background: #dad6bd;
  border-left: 3px solid #7e896d;
}
.employment-entry div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.employment-entry b,
.employment-entry span {
  font-size: calc(9px * var(--text-scale, 1));
}
.employment-entry span,
.employment-entry small {
  color: #68705e;
}
.employment-entry p {
  margin: 6px 0 4px;
  color: #3f4739;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.55;
}
.employment-entry small {
  font-size: calc(8px * var(--text-scale, 1));
  line-height: 1.45;
}
.supervisor-report-result {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 13px 15px;
  border-left: 4px solid;
  background: #202b22;
}
.supervisor-report-result.accepted {
  border-color: #9bae7d;
}
.supervisor-report-result.rejected {
  border-color: #d67d6a;
}
.supervisor-report-result.reprimand {
  border-color: #d6b45c;
}
.supervisor-report-result small,
.supervisor-report-result span {
  color: #9eaa91;
  font-size: calc(9px * var(--text-scale, 1));
}
.supervisor-report-result strong {
  color: #e3dfbd;
  font-size: calc(13px * var(--text-scale, 1));
}
.comparison-counter {
  margin: 13px 0 8px;
  padding: 8px 11px;
  color: #d9dba8;
  background: #1c271e;
  border: 1px solid #58654e;
  font: calc(10px * var(--text-scale, 1)) monospace;
  text-align: right;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.comparison-card {
  padding: 12px;
  background: #202c23;
  border: 1px solid #5d6c53;
}
.comparison-card.selected {
  border-color: #e3d982;
  box-shadow: inset 0 0 0 2px #6f744e;
}
.comparison-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid #465440;
}
.comparison-card h3 {
  margin: 2px 0 0;
  color: #e5e2c6;
  font-size: calc(14px * var(--text-scale, 1));
}
.comparison-card header small,
.comparison-card header span {
  color: #9aa78b;
  font: calc(8px * var(--text-scale, 1)) monospace;
}
.comparison-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin: 9px 0;
}
.comparison-facts span {
  padding: 6px;
  color: #9eaa91;
  background: #19231b;
  font-size: calc(8px * var(--text-scale, 1));
}
.comparison-facts b {
  display: block;
  margin-top: 2px;
  color: #d9ddc7;
}
.comparison-card .employment-summary span,
.comparison-document-grid .employment-summary span {
  color: #aab69c;
  background: #1a241c;
  border-color: #4f5d47;
}
.comparison-card .employment-entry,
.comparison-document-grid .employment-entry {
  background: #263329;
  border-color: #78856a;
}
.comparison-card .employment-entry b,
.comparison-card .employment-entry span,
.comparison-document-grid .employment-entry b,
.comparison-document-grid .employment-entry span {
  color: #cdd4bd;
}
.comparison-card .employment-entry p,
.comparison-document-grid .employment-entry p {
  color: #b8c1aa;
}
.comparison-card .employment-entry small,
.comparison-document-grid .employment-entry small {
  color: #8f9b82;
}
.comparison-actions {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 6px;
  margin-top: 10px;
}
.comparison-actions button {
  padding: 8px;
  color: #d2d8c5;
  background: #344235;
  border: 1px solid #68765c;
  font-size: calc(9px * var(--text-scale, 1));
}
.comparison-actions .primary {
  color: #253025;
  background: #d9d39a;
}
.comparison-document-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  margin: 13px 0;
}
.comparison-document-grid section {
  padding: 12px;
  background: #1e2921;
  border: 1px solid #53604a;
}
.comparison-document-grid h3 {
  margin-top: 0;
  color: #e2dfc2;
}
.comparison-document-grid p,
.comparison-document-grid li {
  font-size: calc(10px * var(--text-scale, 1));
  line-height: 1.7;
}
.comparison-transcript {
  max-height: 280px;
  overflow: auto;
}
@media (max-width: 760px) {
  .comparison-grid,
  .comparison-document-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .rejection-case-line {
    flex-direction: column;
  }
  .rejection-reasons {
    grid-template-columns: 1fr;
  }
}
.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 23px;
}
.modal-actions button {
  padding: 13px 16px;
  color: var(--text);
  background: #3b4934;
  border: 1px solid #768260;
  text-align: left;
}
.modal-actions button:hover {
  background: #506044;
}
.modal-actions .primary {
  color: #232f24;
  background: var(--yellow);
  border-color: var(--yellow);
  text-align: center;
  font-weight: 600;
}
.modal-actions .primary:hover {
  background: #eee3a0;
}
.modal-actions small {
  display: block;
  color: #aeb99c;
  font-size: calc(10px * var(--text-scale, 1));
  margin-top: 4px;
}
.modal ul {
  color: #c6ccb5;
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 2.1;
  padding-left: 20px;
}
.verdict-seal {
  display: inline-block;
  border: 3px double;
  padding: 9px 19px;
  transform: rotate(-5deg);
  font-size: 25px;
  margin: 5px 0 12px;
  letter-spacing: 2px;
}
.good {
  color: var(--green);
}
.bad {
  color: var(--red);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 23px 0;
}
.result-grid div {
  background: #1f2a21;
  padding: 14px 7px;
  text-align: center;
}
.result-grid strong {
  display: block;
  font: 25px monospace;
  color: var(--yellow);
}
.result-grid small {
  color: var(--muted);
  font-size: calc(10px * var(--text-scale, 1));
}
.toast {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  background: #dfd486;
  color: #263123;
  padding: 12px 20px;
  font-size: calc(12px * var(--text-scale, 1));
  z-index: 50;
  box-shadow: 4px 4px 0 #16221a;
  max-width: 90%;
  text-align: center;
}
.hidden {
  display: none !important;
}
.shake {
  animation: shake 0.35s steps(3) 2;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
.interview-desk {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fileshelf {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #232d25;
  border: 1px solid #3d4839;
  box-shadow: 0 4px 0 #101911;
}
.shelf {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 12px 12px 0;
  background: linear-gradient(#2e3a2d, #232d25 62%, #1d271f);
  border-bottom: 7px solid #4a3b28;
  box-shadow:
    0 8px 0 #2c2216,
    0 9px 0 #141b14;
  position: relative;
}
.shelf::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: #6a5738;
}
.spine {
  width: clamp(40px, 3.4vw, 52px);
  height: clamp(88px, 15vh, 126px);
  border: 1px solid #17201a;
  border-radius: 4px 4px 2px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 7px 0 9px;
  color: #f0ecd8;
  box-shadow:
    inset -3px 0 0 #00000033,
    inset 1px 0 0 #ffffff22,
    2px 0 0 #101911;
  position: relative;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.spine i {
  font: 12px monospace;
  font-style: normal;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: #00000038;
  border-radius: 3px;
  border: 1px solid #ffffff2b;
}
.spine span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  flex: 1;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.spine:hover {
  transform: translateY(-4px);
  filter: brightness(1.12);
}
.spine.active {
  transform: translateY(-9px);
  filter: brightness(1.18);
  box-shadow:
    inset -3px 0 0 #00000033,
    inset 1px 0 0 #ffffff2e,
    3px 0 0 #101911,
    0 0 14px #dfd4863d;
}
.spine.active::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top: 7px solid var(--yellow);
}
.spine-docs {
  background: linear-gradient(#b3a87f, #9a8f68);
  color: #2e3325;
}
.spine-docs i {
  background: #00000018;
  border-color: #00000022;
}
.spine-orders {
  background: linear-gradient(#7d4a3c, #66392e);
}
.spine-ask {
  background: linear-gradient(#5d714b, #4a5c3b);
}
.spine-test {
  background: linear-gradient(#4f6472, #3e515e);
}
.spine-prank {
  background: linear-gradient(#8a5a33, #71462a);
}
.spine-calendar {
  background: linear-gradient(#77785d, #60614a);
}
.shelf-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px 14px 16px;
  scrollbar-width: thin;
  scrollbar-color: #4a573f #1b241d;
}
.pane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: calc(12px * var(--text-scale, 1));
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.pane-head small {
  font: calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
}
#paneOrders .rule-card {
  margin-top: 2px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-head {
  color: #9aa78b;
  font: calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
  text-align: center;
}
.cal-head.off {
  color: #a96f60;
}
.calendar-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9b191;
  box-shadow: 3px 4px 0 #10181366;
}
.calendar-detail b {
  color: #a95042;
  font: calc(12px * var(--text-scale, 1)) monospace;
}
.calendar-detail span {
  font-size: calc(11px * var(--text-scale, 1));
}
.calendar-detail small {
  color: #767b65;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.5;
}
button.cal-day {
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cal-day.weekend {
  background: #c8c4a8;
  opacity: 0.8;
}
.cal-day.weekend.past {
  opacity: 0.5;
}
.cal-day.selected {
  outline: 2px solid #4f7a8a;
}
.cal-day {
  position: relative;
  border: 1px solid #b9b191;
  background: var(--paper);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #635c3710 4px
  );
  color: var(--ink);
  padding: 5px 5px 4px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 2px 3px 0 #10181366;
}
.cal-day:nth-child(odd) {
  transform: rotate(0.5deg);
}
.cal-day:nth-child(even) {
  transform: rotate(-0.5deg);
}
.cal-day:before {
  content: "";
  position: absolute;
  top: -4px;
  right: 4px;
  width: 12px;
  height: 6px;
  background: #aeb392b0;
  transform: rotate(6deg);
}
.cal-day b {
  font: calc(13px * var(--text-scale, 1)) monospace;
  color: #4c5642;
}
.cal-day span {
  font-size: calc(10px * var(--text-scale, 1));
  color: #5c6450;
  line-height: 1.4;
}
.cal-day small {
  font-size: calc(8.5px * var(--text-scale, 1));
  color: #767b65;
  margin-top: auto;
  letter-spacing: 0.5px;
}
.cal-day.past {
  opacity: 0.55;
}
.cal-day.past b::after {
  content: " \2713";
  color: #4e6b3f;
  font-size: calc(11px * var(--text-scale, 1));
}
.cal-day.today {
  border-color: #a95042;
  background: #efe0c2;
  box-shadow:
    0 0 0 2px #a9504255,
    2px 3px 0 #10181366;
}
.cal-day.today b {
  color: #a95042;
}
.cal-day.today small {
  color: #a95042;
}

.shell.home-mode .interview {
  gap: 0;
}
.shell.home-mode .room-frame {
  border-color: #5c685f;
  background: radial-gradient(
    120% 90% at 50% 40%,
    #273744 0%,
    #19252d 62%,
    #101820 100%
  );
}
.shell.home-mode .room-frame.secret-room {
  outline: 0;
}
.shell.home-mode .hud-rec,
.shell.home-mode .hud-cam {
  display: none;
}
.shell.home-mode .fileshelf {
  background: linear-gradient(160deg, #28343a, #202b2d 55%, #1b2524);
  border-color: #465750;
}
.home-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: #56685d #1b2524;
  background:
    linear-gradient(#ffffff05, transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 4px, #00000009 4px 5px);
}
.home-panel-head {
  color: #b8c7bd;
}
.home-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  background: #243336;
  border: 1px solid #475c59;
  box-shadow: 4px 5px 0 #101918;
}
.home-status-icon {
  flex: none;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #e4d58b;
  border: 1px solid #75806d;
  background: #303f3e;
  font: 25px monospace;
}
.home-status h2 {
  margin: 5px 0 6px;
  color: var(--text);
  font-size: calc(21px * var(--text-scale, 1));
  font-weight: 500;
}
.home-status p {
  margin: 0;
  color: #aab8ae;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.85;
}
.home-clock-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 12px;
  padding: 13px 15px;
  border-left: 3px solid #dfd486;
  background: #182629;
}
.home-clock-card span {
  color: #a9b7ad;
  font-size: calc(10px * var(--text-scale, 1));
}
.home-clock-card strong {
  grid-row: span 2;
  font: 24px monospace;
  color: var(--yellow);
}
.home-clock-card small {
  color: #7f9288;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.5;
}
.home-choice-list {
  display: grid;
  gap: 10px;
  margin-top: 3px;
}
.home-action {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
  color: #273229;
  background: var(--yellow);
  border: 1px solid #f0e6a3;
  box-shadow: 4px 5px 0 #101918;
}
.home-action:hover {
  background: #f0e6a3;
  border-color: #fff4b0;
}
.home-action-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #e4d58b;
  background: #33433a;
  border: 1px solid #526255;
  font: calc(21px * var(--text-scale, 1)) monospace;
}
.home-action b {
  display: block;
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 600;
}
.home-action small {
  display: block;
  color: #5f674c;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.6;
  margin-top: 4px;
}
.home-action i {
  font: 24px monospace;
  font-style: normal;
}
.home-future-note {
  margin: auto 0 0;
  padding-top: 15px;
  color: #7f9087;
  border-top: 1px dashed #43524d;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.7;
}

.shell.restaurant-mode .room-frame {
  border-color: #55664c;
  background: radial-gradient(
    120% 90% at 50% 42%,
    #26322a 0%,
    #18211b 62%,
    #101812 100%
  );
}
.shell.restaurant-mode .room-frame.secret-room {
  outline: 0;
}
.shell.restaurant-mode .hud-rec,
.shell.restaurant-mode .hud-cam {
  display: none;
}
.shell.restaurant-mode .fileshelf {
  background: linear-gradient(160deg, #2b382f, #202d25 55%, #18211b);
  border-color: #526449;
}
.shell.restaurant-mode .namebar,
.shell.restaurant-mode .desk-row {
  display: none;
}
.shell.restaurant-mode .interview-desk {
  display: block;
}

.shell.park-mode .namebar,
.shell.park-mode .desk-row {
  display: none;
}
.shell.park-mode .interview-desk {
  display: block;
}
.shell.park-mode .dialogue {
  min-height: 108px;
  max-height: 150px;
  border-left-color: #8fb5c9;
  background: #1f2b33;
  box-shadow: inset 0 0 24px #0c1318;
}
.shell.park-mode .speaker {
  color: #b9d6e4;
}
.shell.park-mode .quote {
  font-size: calc(16px * var(--text-scale, 1));
}

.hud-probation {
  border-color: #a95042;
  color: var(--red);
}
.hud-probation b {
  color: var(--red);
}
.shell.fired-mode .fileshelf,
.shell.fired-mode .interview .namebar,
.shell.fired-mode .interview .dialogue,
.shell.fired-mode .interview .desk-row,
.shell.fired-mode .room-hud,
.shell.fired-mode .room-hotspots {
  display: none;
}
.shell.fired-mode .interview {
  gap: 0;
  padding: 0;
}
.shell.fired-mode .room-frame {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  border-radius: 0;
  background: #000;
}
.shell.fired-mode #scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#lastChanceOverlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 4vh;
  pointer-events: none;
}
.lc-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #0c1713e6;
  color: var(--red);
  font: calc(10px * var(--text-scale, 1)) monospace;
  letter-spacing: 2px;
  border-bottom: 1px solid #a9504266;
}
.lc-sheet {
  pointer-events: auto;
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--paper);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #635c3710 4px
  );
  border: 1px solid #b9b191;
  box-shadow:
    0 0 0 4px #0c171388,
    6px 8px 0 #00000088;
  color: var(--ink);
  padding: 18px 20px 16px;
  position: relative;
}
.lc-sheet:before {
  content: "";
  width: 56px;
  height: 11px;
  position: absolute;
  top: -6px;
  left: calc(50% - 28px);
  background: #aeb392b0;
  border-radius: 2px;
  transform: rotate(-2deg);
}
.lc-sheet .eyebrow {
  color: #7a7f68;
  font-size: calc(8px * var(--text-scale, 1));
  letter-spacing: 1px;
}
.lc-sheet h2 {
  margin: 6px 0 8px;
  font-size: calc(20px * var(--text-scale, 1));
  color: #7d3b2e;
}
.lc-reason {
  font-size: calc(11px * var(--text-scale, 1));
  color: #6b705e;
  border-left: 3px solid #a9504288;
  padding-left: 8px;
  margin: 0;
}
.lc-boss {
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 1.8;
  margin: 10px 0;
}
.lc-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.lc-choices button {
  border: 1px solid #8a8468;
  background: #efe8cf;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  font-size: calc(13px * var(--text-scale, 1));
  min-height: 64px;
}
.lc-choices button small {
  display: block;
  font-size: calc(9px * var(--text-scale, 1));
  color: #6b705e;
  margin-top: 3px;
}
.lc-choices button:hover:not(:disabled) {
  background: #e6dcbf;
  border-color: #a95042;
}
.lc-choices button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.lc-note {
  font-size: calc(9px * var(--text-scale, 1));
  color: #7a7f68;
  margin: 10px 0 0;
  border-top: 1px dashed #a89f7f99;
  padding-top: 8px;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .lc-choices {
    grid-template-columns: 1fr;
  }
}
.shell.restaurant-mode .dialogue {
  min-height: 108px;
  max-height: 150px;
  border-left-color: #a6bc89;
  background: #202d25;
  box-shadow: inset 0 0 24px #101a14;
}
.shell.restaurant-mode .quote {
  font-size: calc(16px * var(--text-scale, 1));
}
.shell.restaurant-mode .dialogue.restaurant-dialogue-sequence {
  height: auto;
  max-height: clamp(150px, 40dvh, 360px);
}
.shell.restaurant-mode .dialogue.restaurant-dialogue-sequence > #speaker {
  display: none;
}
.shell.restaurant-mode .dialogue.restaurant-dialogue-sequence:focus-visible {
  outline: 2px solid #a6bc89;
  outline-offset: -3px;
}
.shell.restaurant-mode .quote.restaurant-conversation {
  display: flex;
  flex-direction: column;
  gap: calc(14px * var(--text-scale, 1));
  white-space: normal;
}
.shell.restaurant-mode .restaurant-dialogue-turn,
.shell.restaurant-mode .restaurant-dialogue-text {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.shell.restaurant-mode .restaurant-dialogue-speaker {
  position: static;
  margin: 0 0 calc(6px * var(--text-scale, 1));
  padding: 0;
  background: transparent;
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 1.5;
}
.restaurant-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: #55664c #18211b;
  background:
    linear-gradient(#a6bc8909, transparent 32%),
    repeating-linear-gradient(0deg, transparent 0 4px, #0000000d 4px 5px);
}
.restaurant-panel-head {
  color: #c3cdb4;
}
.restaurant-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  background: #29392e;
  border: 1px solid #526449;
  box-shadow: 4px 5px 0 #101a14;
}
.restaurant-status-icon {
  flex: none;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #d2deb1;
  border: 1px solid #647258;
  background: #304432;
}
.restaurant-status-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.restaurant-status h2 {
  margin: 5px 0 6px;
  color: var(--text);
  font-size: calc(21px * var(--text-scale, 1));
  font-weight: 500;
}
.restaurant-status p {
  margin: 0;
  color: #b8c5a8;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.85;
}
.restaurant-choice-list {
  display: grid;
  gap: 11px;
}
.restaurant-question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}
.restaurant-question {
  min-height: 66px;
  padding: 9px 10px;
  text-align: left;
  color: #e3e6cf;
  background: #2f3a33;
  border: 1px solid #526449;
}
.restaurant-question:hover:not(:disabled) {
  background: #3e4c42;
  border-color: #94a975;
}
.restaurant-question b,
.restaurant-question small {
  display: block;
}
.restaurant-question b {
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.45;
}
.restaurant-question small {
  margin-top: 4px;
  color: #a0aa94;
  font-size: calc(8px * var(--text-scale, 1));
  line-height: 1.45;
}
.restaurant-question.asked {
  background: #202a23;
  border-color: #404f3c;
}
.restaurant-question.asked b,
.restaurant-question.asked small {
  color: #8b9a80;
}
.restaurant-toast-prompt {
  padding: 15px;
  color: #e3e6cf;
  background: #2d4031;
  border: 1px solid #8a987c;
  border-left: 4px solid #a6bc89;
  box-shadow: 4px 5px 0 #101a14;
}
.restaurant-toast-prompt h3 {
  margin: 7px 0 5px;
  color: #d2deb1;
  font-size: calc(18px * var(--text-scale, 1));
}
.restaurant-toast-prompt p {
  margin: 0;
  color: #b8c5a8;
  font-size: calc(10px * var(--text-scale, 1));
  line-height: 1.7;
}
.restaurant-toast-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.restaurant-toast-buttons button {
  padding: 11px 8px;
  color: #e3e6cf;
  background: #40553b;
  border: 1px solid #94a975;
  font-size: calc(11px * var(--text-scale, 1));
}
.restaurant-toast-buttons button + button {
  color: #e3e6cf;
  background: #24322a;
  border-color: #526449;
}
.restaurant-action {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
  color: #e3e6cf;
  background: #2f3a33;
  border: 1px solid #55664c;
  box-shadow: 4px 5px 0 #101a14;
}
.restaurant-action:hover:not(:disabled) {
  background: #3e4c42;
  border-color: #8a987c;
}
.restaurant-action.coworker-drink {
  color: #e3e6cf;
  background: #405449;
  border-color: #7d9b7c;
}
.restaurant-action.coworker-drink:hover:not(:disabled) {
  background: #506956;
  border-color: #afca98;
}
.restaurant-action.drink {
  color: #e3e6cf;
  background: #40553b;
  border-color: #94a975;
}
.restaurant-action.drink:hover:not(:disabled),
.restaurant-action.outcome:hover:not(:disabled) {
  background: #576e49;
}
.restaurant-action-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #d2deb1;
  background: #25392b;
  border: 1px solid #647258;
  font: calc(21px * var(--text-scale, 1)) monospace;
}
.restaurant-action-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.restaurant-action.coworker-drink .restaurant-action-icon {
  color: #dce8c9;
  background: #2d4035;
  border-color: #647f66;
}
.coworker-progress {
  border-left-color: #9cbb8a;
}
.coworker-progress i,
.coworker-progress strong {
  color: #c7dda9;
}
.restaurant-action b {
  display: block;
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 600;
}
.restaurant-action small {
  display: block;
  color: #b8c5a8;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.6;
  margin-top: 4px;
}
.restaurant-action.drink small,
.restaurant-action.outcome small {
  color: #b8c5a8;
}
.restaurant-action i {
  font: 24px monospace;
  font-style: normal;
}
.restaurant-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 13px;
  border-left: 3px solid #a6bc89;
  background: #1c2a21;
  color: #b8c5a8;
  font-size: calc(10px * var(--text-scale, 1));
}
.restaurant-progress i {
  color: #b7c99e;
  font-style: normal;
}
.restaurant-progress strong {
  color: #d2deb1;
  font: calc(16px * var(--text-scale, 1)) monospace;
}
.restaurant-outcome {
  padding: 17px 15px;
  border: 1px solid #526449;
  background: #23342a;
  box-shadow: 4px 5px 0 #101a14;
}
.restaurant-outcome h3 {
  margin: 7px 0 8px;
  color: var(--green);
  font-size: calc(19px * var(--text-scale, 1));
}
.restaurant-outcome p {
  color: #b8c5a8;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.8;
}
.restaurant-action.outcome {
  margin-top: 14px;
  color: #e3e6cf;
  background: #40553b;
  border-color: #94a975;
}
.restaurant-note {
  margin: auto 0 0;
  padding-top: 15px;
  color: #a0aa94;
  border-top: 1px dashed #43543e;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.7;
}

@media (min-width: 1450px) {
  .spine {
    width: 52px;
    height: 128px;
  }
  .paper {
    min-height: 470px;
  }
}
@media (max-width: 1150px) {
  .shell {
    padding: 8px 10px 10px;
  }
  .board {
    grid-template-columns: minmax(0, 1fr) clamp(305px, 30vw, 355px);
    gap: 10px;
  }
}
@media (max-width: 900px) {
  html,
  body {
    height: auto;
  }
  body:not(.in-menu) {
    overflow-x: hidden;
  }
  .shell {
    height: auto;
    min-height: 100dvh;
    padding: 8px 10px 14px;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .room-frame {
    flex: none;
    height: min(58vw, 320px);
  }
  .fileshelf.wake-fileshelf {
    height: min(72dvh, 540px);
    min-height: 400px;
  }
  .fileshelf.wake-fileshelf > .wake-panel {
    padding: 10px;
  }
  .hud-sub,
  .hud-cam {
    display: none;
  }
  .namebar {
    padding: 7px 10px;
  }
  .dialogue {
    max-height: 150px;
  }
  .shelf {
    overflow-x: auto;
    padding-top: 8px;
  }
  .spine {
    width: 42px;
    height: 92px;
    flex: none;
  }
  .spine span {
    font-size: 10px;
  }
  .shelf-body {
    display: block;
  }
  .pane {
    overflow: visible;
  }
  .paper {
    min-height: 380px;
  }
  .desk-row {
    gap: 8px;
  }
  .decision-hint {
    display: none;
  }
  .decision-buttons {
    width: 100%;
    margin-left: 0;
  }
  .stamp {
    min-width: 0;
    flex: 1;
    padding: 8px 10px;
    font-size: calc(13px * var(--text-scale, 1));
  }
  .stamp small {
    font-size: calc(7px * var(--text-scale, 1));
  }
  .queue-panel {
    margin-top: 14px;
  }
}
@media (max-width: 520px) {
  .fileshelf.wake-fileshelf {
    height: min(78dvh, 500px);
    min-height: 380px;
  }
  .fileshelf.wake-fileshelf > .wake-panel {
    padding: 7px;
    gap: 5px;
  }
  .wake-composure-paper {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 901px) and (max-height: 820px) {
  .shell {
    padding: 6px 10px 8px;
  }
  .spine {
    height: 78px;
  }
  .spine span {
    font-size: 10px;
  }
  .dialogue {
    min-height: 70px;
    max-height: 130px;
  }
  .namebar {
    padding: 6px 10px;
  }
  .pane {
    padding: 10px 12px 12px;
  }
  .paper {
    min-height: 300px;
  }
}
.portrait {
  height: 77px;
}
.identity-hint {
  color: var(--muted);
  font-size: calc(9px * var(--text-scale, 1));
  margin-top: 3px;
  line-height: 1.5;
}
.identity-hint.secret {
  color: #e7d48a;
}
.paper-note.secret-note {
  color: #6d5a28;
  border-top: 1px dashed #c4b27a;
  padding-top: 8px;
}
.scene-character-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--yellow);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.room-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.room-hotspot {
  position: absolute;
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 3px;
}
.room-hotspot.watch:hover,
.room-hotspot.watch:focus-visible {
  outline: 2px dashed #dfd48699;
  outline-offset: 2px;
}
.room-hotspot.watch:hover::after {
  content: "จับตาดูอาการ";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -4px);
  white-space: nowrap;
  font-size: calc(11px * var(--text-scale, 1));
  padding: 2px 8px;
  background: #1a241cdd;
  color: var(--yellow);
  border: 1px solid #6a7456;
}
.room-hotspot.event {
  outline: 2px dashed var(--yellow);
  outline-offset: 1px;
  background: #f1e39a14;
  animation: hotspot-pulse 0.9s ease-in-out infinite;
}
.room-hotspot.event:hover,
.room-hotspot.event:focus-visible {
  background: #f1e39a33;
  outline-style: solid;
}
.room-hotspot.event span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: calc(11px * var(--text-scale, 1));
  font-weight: bold;
  color: #1a241c;
  background: var(--yellow);
  padding: 1px 7px;
  pointer-events: none;
  white-space: nowrap;
}
@keyframes hotspot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 #f1e39a55;
  }
  50% {
    box-shadow: 0 0 0 6px #f1e39a00;
  }
}
.interrupt-notice .event-timer {
  height: 5px;
  background: #1b251d;
  border: 1px solid #56624a;
  margin: 8px 0 6px;
}
.interrupt-notice .event-timer i {
  display: block;
  height: 100%;
  background: var(--yellow);
}
.interrupt-notice.aftermath {
  border-color: #b9c79f;
  border-left-color: #e0a36e;
}
.interrupt-notice .outcome-quote {
  margin: 8px 0;
  padding: 6px 9px;
  border-left: 3px solid var(--yellow);
  background: #1d281f;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.7;
}
.interrupt-notice .outcome-stats {
  color: #b9c79f;
  border-top: 1px dashed #56624a;
  padding-top: 6px;
}
.interrupt-notice .outcome-extra {
  color: #f0d9a0;
}
.interrupt-notice .ignored-tag {
  display: inline-block;
  margin-top: 4px;
  color: #e0a36e;
}
.interrupt-notice .interrupt-close {
  display: block;
  margin-top: 6px;
  margin-left: auto;
  padding: 4px 10px;
  background: #45573b;
  color: var(--text);
  border: 1px solid #7c8a65;
  cursor: pointer;
}
.room-hud {
  z-index: 3;
  pointer-events: none;
}
.room-hud > * {
  pointer-events: auto;
}
.action.prank.hangover-prank {
  border-color: #9aa64a;
  background: #3a4526;
}
.action.prank.hangover-prank .symbol {
  font-size: calc(15px * var(--text-scale, 1));
}

.home-customization-menu {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}
.home-action-secondary {
  min-height: 66px;
  color: #dce7da;
  background: #2d403b;
  border-color: #587268;
  box-shadow: 3px 4px 0 #101918;
}
.home-action-secondary:hover:not(:disabled) {
  color: #253229;
  background: #d9d38b;
  border-color: #f0e6a3;
}
.home-action-secondary small {
  color: #aabdb0;
}
.home-action-secondary:hover:not(:disabled) small {
  color: #5f674c;
}
.home-action-secondary .home-action-icon {
  color: #d9d38b;
  background: #253530;
  border-color: #6a8576;
}
.home-salon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.salon-home-button {
  min-height: 76px;
  grid-template-columns: 35px 1fr auto;
  gap: 8px;
  padding: 10px;
}
.salon-home-button .home-action-icon {
  width: 34px;
  height: 34px;
  font-size: calc(17px * var(--text-scale, 1));
}
.salon-home-button b {
  font-size: calc(12px * var(--text-scale, 1));
}
.salon-home-button small {
  font-size: calc(8px * var(--text-scale, 1));
}
.salon-home-button:disabled {
  opacity: 0.4;
  color: #90a097;
  background: #202c2b;
  border-color: #3c4a47;
  box-shadow: none;
  cursor: not-allowed;
}
.home-customization-status {
  margin: 0;
  padding: 7px 10px;
  border-left: 2px solid #8f9b72;
  color: #9eafa1;
  background: #1e2d2d;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.6;
}
.customization-modal {
  width: min(900px, 100%);
}
.customization-modal > p {
  margin-bottom: 14px;
}
.customization-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(280px, 1.18fr);
  gap: 18px;
  align-items: start;
}
.customization-preview-block {
  position: sticky;
  top: 0;
  display: grid;
  gap: 9px;
  align-content: start;
}
#playerCustomizationPreview {
  width: 100%;
  max-width: 240px;
  height: auto;
  image-rendering: pixelated;
  border: 1px solid #627361;
  background: #192a2b;
}
.camera-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 240px;
}
.camera-toggle button {
  padding: 8px 5px;
  color: #b9c9ba;
  background: #1d2926;
  border: 1px solid #53665a;
  font-size: calc(10px * var(--text-scale, 1));
}
.camera-toggle button.active {
  color: #293528;
  background: var(--yellow);
  border-color: var(--yellow);
}
.customization-options {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.custom-section-label {
  margin: 4px 0 3px;
  padding-bottom: 6px;
  border-bottom: 1px solid #52604f;
  color: var(--yellow);
  font: calc(10px * var(--text-scale, 1)) monospace;
  letter-spacing: 0.5px;
}
.hair-color-heading {
  margin-top: 11px;
}
.custom-card {
  width: 100%;
  min-height: 57px;
  display: grid;
  grid-template-columns: 25px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  text-align: left;
  color: #dbe5d6;
  background: #1e2b26;
  border: 1px solid #4c5f52;
}
.custom-card:hover {
  background: #30453a;
  border-color: #8d9a72;
}
.custom-card.equipped {
  background: #4a4d31;
  border-color: var(--yellow);
  box-shadow: inset 3px 0 0 var(--yellow);
}
.custom-card > span:nth-child(2) {
  min-width: 0;
}
.custom-card b,
.custom-card small {
  display: block;
}
.custom-card b {
  color: #e8ead6;
  font-size: calc(11px * var(--text-scale, 1));
  font-weight: 600;
}
.custom-card small {
  margin-top: 3px;
  color: #9bad9f;
  font-size: calc(8px * var(--text-scale, 1));
  line-height: 1.5;
}
.custom-card strong {
  color: var(--yellow);
  font: calc(9px * var(--text-scale, 1)) monospace;
  white-space: nowrap;
}
.custom-card.equipped strong {
  color: #f0e9ae;
}
.custom-card-swatch,
.hair-swatch,
.accessory-swatch {
  width: 23px;
  height: 30px;
  display: block;
  border: 1px solid #9ba68a;
  background: linear-gradient(135deg, var(--swatch), #17201c);
}
.hair-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--swatch);
}
.accessory-swatch {
  width: 22px;
  height: 22px;
  display: block;
  border: 2px solid color-mix(in srgb, var(--swatch) 70%, #e7dfbd);
  background:
    linear-gradient(45deg, transparent 38%, #ffffff44 39% 48%, transparent 49%),
    var(--swatch);
  box-shadow: inset 0 0 0 3px #18211e55;
  transform: rotate(3deg);
}
.accessory-heading {
  margin-top: 14px;
}
.salon-locks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 7px 0 2px;
}
.salon-lock {
  min-height: 55px;
  padding: 8px 10px;
  text-align: left;
  color: #a6b3a6;
  background: #1e2926;
  border: 1px solid #3c4e47;
  opacity: 0.58;
}
.salon-lock.open {
  color: #263327;
  background: var(--yellow);
  border-color: var(--yellow);
  opacity: 1;
}
.salon-lock b,
.salon-lock small {
  display: block;
}
.salon-lock b {
  font-size: calc(11px * var(--text-scale, 1));
}
.salon-lock small {
  margin-top: 4px;
  font-size: calc(8px * var(--text-scale, 1));
  line-height: 1.45;
}
.lock-note {
  margin: 0 0 8px;
  color: #a9b8a9 !important;
  font-size: calc(10px * var(--text-scale, 1)) !important;
}
.lock-note strong {
  color: var(--yellow);
}
.customization-money {
  margin-top: 17px;
  padding: 10px 12px;
  color: #aab9aa;
  border-top: 1px solid #52604f;
  font-size: calc(10px * var(--text-scale, 1));
  text-align: right;
}
.customization-money strong {
  margin-left: 5px;
  color: var(--yellow);
  font: calc(16px * var(--text-scale, 1)) monospace;
}
@media (max-width: 620px) {
  .home-salon-grid,
  .salon-locks {
    grid-template-columns: 1fr;
  }
  .customization-layout {
    grid-template-columns: 1fr;
  }
  .customization-preview-block {
    position: static;
    justify-items: center;
  }
  .customization-options {
    width: 100%;
  }
  .customization-modal {
    padding: 20px 16px;
  }
}

.shell.customization-mode {
  --custom-accent: #b7c5a5;
  --custom-accent-bright: #e9e2a6;
  --custom-frame: #71806c;
  --custom-panel-a: #24302d;
  --custom-panel-b: #192321;
  --custom-card: #202c28;
  --custom-card-hover: #2c3b34;
  --custom-muted: #9eaea3;
}
.shell.clothing-store-mode.player-gender-masculine {
  --custom-accent: #d8aa60;
  --custom-accent-bright: #f1cb75;
  --custom-frame: #9d774c;
  --custom-panel-a: #243c46;
  --custom-panel-b: #17262d;
  --custom-card: #1d3038;
  --custom-card-hover: #29444d;
  --custom-muted: #a5bac0;
}
.shell.clothing-store-mode.player-gender-feminine {
  --custom-accent: #d29ab0;
  --custom-accent-bright: #f2bdcf;
  --custom-frame: #b47a96;
  --custom-panel-a: #54384d;
  --custom-panel-b: #2b2130;
  --custom-card: #3c2938;
  --custom-card-hover: #53384a;
  --custom-muted: #c4a9b7;
}
.shell.hair-salon-mode.player-gender-masculine {
  --custom-accent: #72b6b3;
  --custom-accent-bright: #a2dad5;
  --custom-frame: #6a9b96;
  --custom-panel-a: #27454a;
  --custom-panel-b: #14272c;
  --custom-card: #1c3337;
  --custom-card-hover: #294a4e;
  --custom-muted: #9dbdba;
}
.shell.hair-salon-mode.player-gender-feminine {
  --custom-accent: #d498af;
  --custom-accent-bright: #f2bdd0;
  --custom-frame: #bf839d;
  --custom-panel-a: #63445d;
  --custom-panel-b: #2b2030;
  --custom-card: #3e2b3c;
  --custom-card-hover: #573c50;
  --custom-muted: #c7a9b9;
}
.shell.customization-mode .room-frame {
  border-color: var(--custom-frame);
  box-shadow:
    0 0 0 1px #0008,
    0 0 26px color-mix(in srgb, var(--custom-accent) 15%, transparent);
}
.shell.customization-mode .interview {
  gap: 0;
}
.shell.customization-mode .hud-rec,
.shell.customization-mode .hud-cam {
  display: none;
}
.shell.customization-mode .fileshelf {
  border-color: var(--custom-frame);
  background:
    linear-gradient(
      135deg,
      transparent 0 78%,
      #ffffff08 78% 79%,
      transparent 79%
    ),
    linear-gradient(160deg, var(--custom-panel-a), var(--custom-panel-b) 63%);
}
.customization-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 15px 14px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--custom-accent) var(--custom-panel-b);
}
.custom-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 0 12px 9px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--custom-accent) 52%, transparent);
  border-left: 3px solid var(--custom-accent);
}
.custom-panel-header h2 {
  margin: 5px 0 5px;
  color: #f0eadf;
  font-size: calc(19px * var(--text-scale, 1));
  font-weight: 500;
  line-height: 1.25;
}
.custom-panel-header p {
  max-width: 410px;
  margin: 0;
  color: var(--custom-muted);
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.7;
}
.custom-panel-header .eyebrow,
.store-section-title {
  color: var(--custom-accent-bright);
}
.store-header-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  flex: none;
}
.store-money {
  padding: 4px 6px;
  color: var(--custom-accent-bright);
  background: #0d141677;
  border: 1px solid color-mix(in srgb, var(--custom-accent) 45%, transparent);
  font: calc(14px * var(--text-scale, 1)) monospace;
  white-space: nowrap;
}
.store-back-button {
  padding: 8px 9px;
  color: #e3e5dc;
  background: #182425;
  border: 1px solid var(--custom-frame);
  font-size: calc(9px * var(--text-scale, 1));
  white-space: nowrap;
}
.store-back-button:hover {
  color: #172126;
  background: var(--custom-accent-bright);
  border-color: var(--custom-accent-bright);
}
.store-camera {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 6px;
  align-items: center;
  margin: 10px 0 4px;
  padding: 7px;
  color: var(--custom-muted);
  background: #10191a99;
  border-left: 2px solid var(--custom-accent);
  font: calc(9px * var(--text-scale, 1)) monospace;
}
.store-camera button {
  padding: 7px 5px;
  color: #cbd5ce;
  background: #223031;
  border: 1px solid color-mix(in srgb, var(--custom-accent) 45%, #24302d);
  font-size: calc(9px * var(--text-scale, 1));
}
.store-camera button.active {
  color: #182126;
  background: var(--custom-accent-bright);
  border-color: var(--custom-accent-bright);
}
.store-options {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.store-section-title {
  margin: 6px 0 1px;
  padding: 0 0 6px 8px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--custom-accent) 38%, transparent);
  border-left: 2px solid var(--custom-accent);
  font: calc(10px * var(--text-scale, 1)) monospace;
  letter-spacing: 0.4px;
}
.store-section-title.hair-color-heading {
  margin-top: 12px;
}
.shop-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: stretch;
  min-height: 53px;
  border: 1px solid color-mix(in srgb, var(--custom-accent) 35%, #273432);
  background: var(--custom-card);
  transition:
    border-color 120ms ease,
    background 120ms ease,
    transform 120ms ease;
}
.shop-item:hover,
.shop-item.previewing {
  border-color: var(--custom-accent-bright);
  background: var(--custom-card-hover);
  transform: translateX(2px);
}
.shop-item.equipped {
  border-color: var(--custom-accent-bright);
  box-shadow: inset 3px 0 0 var(--custom-accent-bright);
}
.shop-preview-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 8px 7px 8px 10px;
  text-align: left;
  color: #e3e7e1;
  background: transparent;
  border: 0;
}
.shop-preview-button:hover {
  color: #fff6dc;
}
.shop-preview-button > span:nth-child(2) {
  min-width: 0;
}
.shop-preview-button b,
.shop-preview-button small {
  display: block;
}
.shop-preview-button b {
  font-size: calc(10px * var(--text-scale, 1));
  font-weight: 600;
}
.shop-preview-button small {
  margin-top: 3px;
  color: var(--custom-muted);
  font-size: calc(8px * var(--text-scale, 1));
  line-height: 1.45;
}
.shop-buy-button {
  align-self: center;
  min-width: 75px;
  margin-right: 7px;
  padding: 8px 5px;
  color: #1e2929;
  background: var(--custom-accent-bright);
  border: 1px solid #fff1c9;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.3;
}
.shop-buy-button:hover {
  filter: brightness(1.12);
}
.store-footer-note {
  margin: 15px 0 0;
  padding-top: 11px;
  border-top: 1px dashed
    color-mix(in srgb, var(--custom-accent) 45%, transparent);
  color: var(--custom-muted);
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.6;
}

@media (max-width: 720px) {
  .custom-panel-header {
    display: grid;
  }
  .store-header-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
  }
  .store-money {
    align-self: center;
  }
  .store-back-button {
    text-align: center;
  }
}
.action.prank.document-destruction-action {
  grid-column: 1 / -1;
  border-color: #9c5c45;
  background: linear-gradient(90deg, #3b2d26, #352f26);
}
.action.prank.document-destruction-action:not(:disabled):hover {
  border-color: #e08b6c;
  background: #4d382d;
}
.destruction-choices {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}
.destruction-choice {
  display: block;
  width: 100%;
  min-height: 68px;
  padding: 11px 13px;
  color: var(--text);
  background: #352f26;
  border: 1px solid #765947;
  text-align: left;
}
.destruction-choice:hover,
.destruction-choice:focus-visible {
  background: #4a392e;
  border-color: #df8f70;
}
.destruction-choice b,
.destruction-choice small {
  display: block;
}
.destruction-choice b {
  color: #f0b18f;
  font-size: calc(13px * var(--text-scale, 1));
}
.destruction-choice small {
  margin-top: 5px;
  color: #b9c1aa;
  font-size: calc(10px * var(--text-scale, 1));
  line-height: 1.55;
}
.test-disclaimer {
  padding: 9px 11px;
  border-left: 3px solid #e08b6c;
  background: #1d281f;
  color: #d4c6a8 !important;
  font-size: calc(10px * var(--text-scale, 1)) !important;
}
.room-frame.impact-shake {
  animation: impact-room-shake 0.13s steps(2) infinite;
}
@keyframes impact-room-shake {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  25% {
    transform: translate(-5px, 2px) rotate(-0.35deg);
  }
  75% {
    transform: translate(5px, -2px) rotate(0.35deg);
  }
}
.interrupt-notice .shelter-status {
  margin: 7px 0;
  padding: 6px 8px;
  color: #f1e39a;
  background: #1d281f;
  border-left: 3px solid #dfc865;
}

@media (max-width: 620px) {
  .action.prank.document-destruction-action {
    grid-column: auto;
  }
}

.recruitment-race-hud {
  position: absolute;
  z-index: 18;
  left: 12px;
  bottom: 10px;
  width: min(390px, calc(100% - 24px));
  padding: 7px 9px;
  color: #edf0d3;
  background: #18241fe8;
  border: 1px solid #d8c96d;
  box-shadow: 3px 3px 0 #101813aa;
  pointer-events: none;
}
.race-hud-head,
.race-hud-scores {
  display: flex;
  align-items: center;
  gap: 8px;
}
.race-hud-head {
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid #66705a;
  color: #eadb82;
  font: 700 9px/1.2 monospace;
  letter-spacing: 0.08em;
}
.race-hud-head small {
  color: #bdc5a9;
  font:
    9px/1.2 Thai,
    sans-serif;
  letter-spacing: 0;
}
.race-hud-scores {
  flex-wrap: wrap;
  padding-top: 5px;
  font-size: 10px;
}
.race-hud-scores span {
  color: #cbd2b6;
}
.race-hud-scores b {
  color: #fff2a5;
  font-size: 12px;
}
.race-hud-scores i {
  color: #df866e;
  font: 800 8px monospace;
}
.recruitment-race-letter p,
.security-warning-letter p,
.onboarding-letter p {
  margin: 8px 0;
}
.onboarding-step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin: 12px 0;
}
.onboarding-step-grid span {
  position: relative;
  min-height: 70px;
  padding: 10px 10px 9px 42px;
  background: #202b24;
  border: 1px solid #68745f;
}
.onboarding-step-grid i {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #85783f;
  font: 700 calc(16px * var(--text-scale, 1))/1 monospace;
}
.onboarding-step-grid b,
.onboarding-step-grid small {
  display: block;
}
.onboarding-step-grid b {
  color: #eadb82;
}
.onboarding-step-grid small {
  margin-top: 4px;
  color: #aeb9a1;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.5;
}
.race-rules-grid,
.security-warning-grid,
.race-final-score {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.race-rules-grid,
.security-warning-grid {
  grid-template-columns: repeat(3, 1fr);
}
.race-rules-grid span,
.security-warning-grid span,
.race-day-summary {
  padding: 9px;
  background: #202b24;
  border: 1px solid #68745f;
  text-align: center;
}
.race-rules-grid b,
.race-rules-grid small,
.security-warning-grid b,
.security-warning-grid small,
.race-day-summary b,
.race-day-summary span,
.race-day-summary small {
  display: block;
}
.race-rules-grid b,
.security-warning-grid b,
.race-day-summary b {
  color: #eadb82;
}
.race-rules-grid small,
.security-warning-grid small,
.race-day-summary small {
  margin-top: 3px;
  color: #aeb9a1;
  font-size: calc(9px * var(--text-scale, 1));
}
.race-day-summary {
  margin: 12px 0;
  text-align: left;
  border-left: 4px solid #d8c96d;
}
.race-day-summary span {
  margin-top: 4px;
  color: #e1e5ce;
}
.race-final-score {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.race-final-score span {
  padding: 12px;
  background: #202b24;
  border: 1px solid #6c755f;
  text-align: center;
}
.race-final-score b {
  display: block;
  margin-top: 3px;
  color: #f1d779;
  font-size: 25px;
}
.race-final-score i {
  color: #df866e;
  font: 800 calc(14px * var(--text-scale, 1)) monospace;
}

@media (max-width: 620px) {
  .recruitment-race-hud {
    left: 6px;
    bottom: 6px;
    width: calc(100% - 12px);
  }
  .race-hud-head small {
    display: none;
  }
  .onboarding-step-grid,
  .race-rules-grid,
  .security-warning-grid {
    grid-template-columns: 1fr;
  }
}

html,
body,
body * {
  cursor:
    url("../assets/cursor-after-hours.svg") 2 2,
    default !important;
}

.hud-btn .game-icon,
.spine i .game-icon,
.home-action-icon .game-icon,
.menu-arrow .game-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
}
.queue-person .game-icon {
  width: 1em;
  height: 1em;
}

.home-customization-menu {
  position: static;
  display: grid;
  gap: 9px;
  padding: 4px 0 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.home-customization-menu::before {
  content: none;
  display: none;
}
.home-customization-menu .eyebrow {
  padding-bottom: 0;
  border-bottom: 0;
}
.home-customization-menu .home-customization-status {
  display: none;
}

.audio-settings {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.audio-settings button {
  padding: 13px 16px;
  color: var(--text);
  background: #3b4934;
  border: 1px solid #768260;
  text-align: left;
}
.audio-settings button:hover {
  background: #506044;
}
.audio-settings button[aria-pressed="false"] {
  color: var(--muted);
  background: #2a332a;
}
.audio-volume {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.audio-volume input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--yellow);
  cursor: pointer;
}
.audio-volume input[type="range"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.audio-volume output {
  color: var(--yellow);
  font-weight: bold;
}
.test-score {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border: 2px solid #6f7a68;
  background: #1d281f;
}
.test-score b {
  color: #f1e39a;
  font-size: calc(15px * var(--text-scale, 1));
}
.test-score small {
  color: #b9c1aa;
  font-size: calc(11px * var(--text-scale, 1));
}
.test-score.pass {
  border-color: #8fae6f;
}
.test-score.fail {
  border-color: #e08b6c;
}
.test-score-bar {
  display: block;
  height: 10px;
  background: #0d120f;
  border: 1px solid #4b5546;
}
.test-score-bar i {
  display: block;
  height: 100%;
  background: #a6bc89;
}
.test-score.fail .test-score-bar i {
  background: #e58b70;
}

.modal.weekend-intro-modal {
  width: min(600px, 100%);
}
.weekend-intro-sheet {
  position: relative;
  margin: 18px 0 6px;
  padding: 24px 24px 18px;
  color: var(--ink);
  background: var(--paper);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    #635c3710 4px
  );
  border: 1px solid #b9b191;
  box-shadow: 6px 7px 0 #10191280;
  transform: rotate(-0.4deg);
}
.weekend-intro-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 92px;
  height: 20px;
  margin-left: -46px;
  background: #c9c6a0cc;
  border: 1px solid #a9a685;
  transform: rotate(2deg);
}
.weekend-intro-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 3px double #4d5646;
}
.weekend-intro-head b {
  display: block;
  color: #2f4b5e;
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 700;
}
.weekend-intro-head small {
  display: block;
  margin-top: 3px;
  color: #6d7461;
  font: calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
}
.weekend-intro-stamp {
  flex: none;
  padding: 5px 10px;
  color: #a8463a;
  border: 2px solid #a8463a;
  font: bold calc(12px * var(--text-scale, 1)) monospace;
  letter-spacing: 2px;
  transform: rotate(-8deg);
  opacity: 0.85;
}
.modal .weekend-intro-sheet > p {
  color: var(--ink);
  margin: 12px 0 0;
  font-size: calc(13px * var(--text-scale, 1));
  line-height: 1.7;
}
.weekend-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.weekend-intro-tile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 4px 10px;
  text-align: center;
  background: #f3edd6;
  border: 1px solid #b9b191;
  box-shadow: 2px 3px 0 #9d957450;
}
.weekend-intro-tile:nth-child(odd) {
  transform: rotate(-1deg);
}
.weekend-intro-tile:nth-child(even) {
  transform: rotate(1.2deg);
}
.weekend-intro-tile canvas {
  width: 100px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 100 / 84;
  image-rendering: pixelated;
  background: #dcd5b6;
  border: 1px solid #b9b191;
}
.weekend-intro-tile b {
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.4;
  color: #333a31;
}
.weekend-intro-no {
  position: absolute;
  top: 4px;
  left: 6px;
  color: #8c8259;
  font: calc(9px * var(--text-scale, 1)) monospace;
}
.modal .weekend-intro-sheet .weekend-intro-tip {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #b5aa84;
  color: #6d7461;
  font-size: calc(11px * var(--text-scale, 1));
}
@media (max-width: 620px) {
  .weekend-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shell.customization-mode .fileshelf {
  background: #232d25;
  border-color: #3d4839;
}
.customization-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px;
  scrollbar-color: #56685d #1b2524;
  background:
    linear-gradient(#ffffff05, transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 4px, #00000009 4px 5px);
}
.store-status .home-status-icon .game-icon,
.store-back-button .home-action-icon {
  font-size: 22px;
}
.store-status .eyebrow {
  color: var(--custom-accent-bright, var(--yellow));
}
.store-wallet strong.store-money {
  padding: 0;
  background: none;
  border: 0;
  font: 22px monospace;
  color: var(--yellow);
}
.store-wallet small {
  max-width: 280px;
}
.store-back-button.home-action {
  min-height: 58px;
  padding: 10px 14px;
}
.store-back-button.home-action b {
  font-size: calc(14px * var(--text-scale, 1));
}
.store-camera {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 9px;
  align-items: center;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
.store-camera .eyebrow {
  padding-right: 4px;
}
.store-camera button {
  min-height: 40px;
  padding: 8px;
  color: #dce7da;
  background: #2d403b;
  border: 1px solid #587268;
  box-shadow: 3px 4px 0 #101918;
  font-size: calc(12px * var(--text-scale, 1));
}
.store-camera button:hover {
  background: #36504a;
}
.store-camera button.active {
  color: #273229;
  background: var(--yellow);
  border-color: #f0e6a3;
}
.store-options {
  display: grid;
  gap: 10px;
  margin-top: 0;
}
.store-options .eyebrow.store-section-title {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  color: var(--yellow);
  font: inherit;
  font-size: calc(10px * var(--text-scale, 1));
  letter-spacing: 0.32em;
}
.store-options .eyebrow.store-section-title:first-child {
  margin-top: 0;
}
.shop-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 66px;
  padding: 0;
  color: #dce7da;
  background: #2d403b;
  border: 1px solid #587268;
  box-shadow: 3px 4px 0 #101918;
  transition:
    background 120ms ease,
    border-color 120ms ease;
}
.shop-item:hover,
.shop-item.previewing {
  background: #36504a;
  border-color: #8aa596;
  transform: none;
}
.shop-item.equipped {
  border-color: var(--yellow);
  box-shadow:
    inset 4px 0 0 var(--yellow),
    3px 4px 0 #101918;
}
.shop-preview-button {
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0 11px 12px;
  color: #dce7da;
}
.shop-preview-button > span:first-child {
  width: 43px;
  height: 43px;
  margin: 0;
  border: 1px solid #6a8576;
  box-shadow: inset 0 0 0 4px #253530;
  transform: none;
}
.shop-preview-button b {
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 600;
}
.shop-preview-button small {
  margin-top: 4px;
  color: #aabdb0;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.6;
}
.shop-buy-button {
  min-width: 86px;
  margin-right: 12px;
  padding: 9px 8px;
  color: #273229;
  background: var(--yellow);
  border: 1px solid #f0e6a3;
  box-shadow: 2px 3px 0 #101918;
  font-size: calc(11px * var(--text-scale, 1));
  font-weight: 600;
}
.shop-item.equipped .shop-buy-button {
  color: var(--yellow);
  background: #253530;
  border-color: var(--yellow);
}
.salon-locks {
  gap: 10px;
  margin: 0;
}
.salon-lock {
  min-height: 62px;
  padding: 11px 12px;
  color: #90a097;
  background: #202c2b;
  border: 1px solid #3c4a47;
}
.salon-lock.open {
  color: #273229;
  background: var(--yellow);
  border-color: #f0e6a3;
  box-shadow: 3px 4px 0 #101918;
}
.salon-lock b {
  font-size: calc(13px * var(--text-scale, 1));
}
.salon-lock small {
  font-size: calc(9px * var(--text-scale, 1));
}
.salon-home-button {
  min-height: 66px;
  grid-template-columns: 45px 1fr auto;
  gap: 12px;
  padding: 14px;
}
.salon-home-button .home-action-icon {
  width: 43px;
  height: 43px;
  font-size: calc(21px * var(--text-scale, 1));
}
.salon-home-button b {
  font-size: calc(15px * var(--text-scale, 1));
}
.salon-home-button small {
  font-size: calc(9px * var(--text-scale, 1));
}

.demo-mode #prankTab,
.demo-mode #calendarTab,
.demo-mode .home-customization-menu,
.demo-mode .home-future-note {
  display: none !important;
}
.modal-actions a.button-link {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--yellow);
  text-decoration: none;
}
.modal .demo-end-sheet > p {
  color: var(--ink);
  margin: 12px 0 0;
  font-size: calc(13px * var(--text-scale, 1));
  line-height: 1.7;
}
.demo-end-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}
.demo-end-grid > div {
  color: var(--ink);
  background: #f3edd6;
  border: 1px solid #b9b191;
}
.demo-end-grid small {
  color: #6d7461;
}
@media (max-width: 620px) {
  .demo-end-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.demo-end-grid strong {
  color: #2f4b5e;
}

.tutorial-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}
.tutorial-shade {
  position: fixed;
  background: #0b100dc4;
  pointer-events: auto;
}
.tutorial-ring {
  position: fixed;
  border: 3px dashed var(--yellow);
  box-shadow:
    0 0 0 3px #0b100d,
    0 0 22px #dfd48699;
  pointer-events: none;
  animation: tutorialPulse 1.1s ease-in-out infinite;
}
.tutorial-click-step .tutorial-ring {
  border-style: dashed;
  border-color: #f2e48f;
}
@keyframes tutorialPulse {
  50% {
    box-shadow:
      0 0 0 3px #0b100d,
      0 0 34px #dfd486cc;
  }
}
.tutorial-arrow {
  position: fixed;
  width: 34px;
  height: 34px;
  color: var(--yellow);
  filter: drop-shadow(3px 3px 0 #0b100d);
  pointer-events: none;
}
.tutorial-arrow svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.tutorial-arrow[data-side="bottom"] svg {
  transform: rotate(180deg);
  animation: tutorialBobUp 0.8s steps(2) infinite;
}
.tutorial-arrow[data-side="top"] svg {
  animation: tutorialBobDown 0.8s steps(2) infinite;
}
.tutorial-arrow[data-side="left"] svg {
  transform: rotate(-90deg);
  animation: tutorialBobRight 0.8s steps(2) infinite;
}
.tutorial-arrow[data-side="right"] svg {
  transform: rotate(90deg);
  animation: tutorialBobLeft 0.8s steps(2) infinite;
}
@keyframes tutorialBobDown {
  50% {
    translate: 0 5px;
  }
}
@keyframes tutorialBobUp {
  50% {
    translate: 0 -5px;
  }
}
@keyframes tutorialBobRight {
  50% {
    translate: 5px 0;
  }
}
@keyframes tutorialBobLeft {
  50% {
    translate: -5px 0;
  }
}
.tutorial-card {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  padding: 18px 20px 16px;
  color: var(--ink);
  background: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, #635c3710 4px);
  border: 1px solid #b9b191;
  border-top: 5px solid var(--yellow);
  box-shadow: 7px 8px 0 #0b100dcc;
  pointer-events: auto;
}
.tutorial-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6d7461;
  font: calc(10px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tutorial-card h3 {
  margin: 6px 0 6px;
  color: #2f4b5e;
  font-size: calc(19px * var(--text-scale, 1));
}
.tutorial-body {
  margin: 0;
  font-size: calc(13px * var(--text-scale, 1));
  line-height: 1.65;
}
.tutorial-hint {
  margin: 10px 0 0;
  padding: 7px 9px;
  color: #6b5a1e;
  background: #f3e9b0;
  border: 1px dashed #b39b3c;
  font-size: calc(12px * var(--text-scale, 1));
}
.tutorial-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.tutorial-skip {
  padding: 6px 2px;
  color: #6d7461;
  background: none;
  border: 0;
  font-size: calc(12px * var(--text-scale, 1));
  text-decoration: underline;
}
.tutorial-next {
  padding: 9px 14px;
  color: #232f24;
  background: var(--yellow);
  border: 1px solid #b39b3c;
  box-shadow: 2px 3px 0 #0b100d55;
  font-weight: 600;
}
.tutorial-next:hover {
  background: #eee3a0;
}
@media (prefers-reduced-motion: reduce) {
  .tutorial-ring,
  .tutorial-arrow svg {
    animation: none !important;
  }
}
