:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --panel: #ffffff;
  --panel-2: #f0fbf7;
  --text: #202521;
  --muted: #69746f;
  --line: #e9e5da;
  --brand: #00a991;
  --brand-dark: #067b70;
  --mint: #c9f5df;
  --lemon: #fff2a8;
  --peach: #ffd8c7;
  --sky: #d8edff;
  --lilac: #eadfff;
  --gold: #f4a62a;
  --red: #ef5f5f;
  --green: #25a766;
  --blue: #4b7bec;
  --shadow: 0 14px 34px rgba(53, 62, 56, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@page {
  size: A4;
  margin: 14mm 13mm 16mm 13mm;
}

@media print {
  html,
  body {
    width: auto;
    max-width: none;
    overflow: visible;
    background: white !important;
    color: #111;
  }

  body * {
    visibility: hidden;
  }

  .letter-print,
  .manual-print,
  .letter-print * {
    visibility: visible;
  }

  .manual-print * {
    visibility: visible;
  }

  .letter-print {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: auto;
    padding: 28mm 22mm;
    box-shadow: none;
  }

  .manual-print {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    background: white;
    box-shadow: none;
    color: #111;
    display: block !important;
    font-family: Inter, Arial, sans-serif;
    line-height: 1.34;
  }

  .manual-book-cover {
    display: flex !important;
    min-height: 240mm;
    flex-direction: column;
    justify-content: space-between;
    page-break-after: always;
    break-after: page;
    border: 0;
    padding: 14mm 0 8mm;
  }

  .manual-book-cover .brand-mark {
    color: #111;
    font-family: Inter, Arial, sans-serif;
    font-size: 16pt;
    margin-bottom: 24mm;
  }

  .manual-book-cover .brand-mark img {
    width: 16mm;
    height: 16mm;
  }

  .manual-book-cover h1 {
    margin: 0;
    max-width: 150mm;
    font-size: 32pt;
    line-height: 1.08;
    letter-spacing: 0;
  }

  .manual-book-cover p {
    max-width: 130mm;
    margin: 5mm 0 0;
    color: #333;
    font-size: 11pt;
  }

  .manual-book-meta {
    display: grid;
    gap: 2.3mm;
    max-width: 110mm;
    padding-top: 6mm;
    border-top: 1px solid #111;
    font-family: Inter, Arial, sans-serif;
    font-size: 8.8pt;
    color: #222;
  }

  .manual-book-overview {
    display: block !important;
    page-break-after: always;
    break-after: page;
    padding-top: 4mm;
  }

  .manual-book-overview h2 {
    margin: 0;
    font-size: 20pt;
  }

  .manual-book-overview p {
    margin: 1.5mm 0 7mm;
    color: #444;
    font-size: 9pt;
  }

  .manual-overview-table {
    display: table !important;
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    line-height: 1.35;
  }

  .manual-overview-table th,
  .manual-overview-table td {
    border: 0.7px solid #c9c9c9;
    padding: 2.4mm 2.8mm;
    text-align: left;
    vertical-align: top;
  }

  .manual-overview-table th {
    width: 38mm;
    background: #f2f2f2 !important;
  }

  .manual-book-toc {
    display: block;
    page-break-after: always;
    break-after: page;
    padding-top: 4mm;
  }

  .manual-book-toc ol {
    margin: 7mm 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 2.1mm;
  }

  .manual-book-toc li {
    display: flex;
    justify-content: space-between;
    gap: 10mm;
    border-bottom: 1px dotted #999;
    padding-bottom: 1.6mm;
    font-size: 9.2pt;
  }

  .manual-book-toc h2 {
    margin: 0;
    font-size: 20pt;
  }

  .manual-book-toc p {
    margin: 1.5mm 0 0;
    color: #444;
    font-size: 9pt;
  }

  .manual-print > .section-head {
    display: none !important;
  }

  .manual-index {
    display: none !important;
  }

  .manual-function-grid {
    display: block !important;
    grid-template-columns: 1fr !important;
    column-count: auto !important;
    gap: 0 !important;
  }

  .manual-function-card {
    display: block !important;
    page-break-before: auto;
    break-before: auto;
    break-inside: auto;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    padding: 0;
    background: white !important;
  }

  .manual-function-card:first-child {
    page-break-before: auto;
    break-before: auto;
  }

  .manual-function-card > .section-head {
    display: block;
    padding-bottom: 2.4mm;
    border-bottom: 1.5px solid #111;
    margin: 7mm 0 3.2mm;
  }

  .manual-function-card h2 {
    margin: 0.6mm 0 0.6mm;
    font-size: 15pt;
    line-height: 1.05;
  }

  .manual-function-card .section-head p {
    color: #444;
    font-size: 8.7pt;
  }

  .manual-chapter-number {
    display: block;
    color: #555;
    font-family: Inter, Arial, sans-serif;
    font-size: 7.8pt;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .manual-function-list {
    display: none !important;
  }

  .manual-print-table {
    display: table !important;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0 0 4.5mm;
    page-break-inside: auto;
    break-inside: auto;
    font-family: Inter, Arial, sans-serif;
    font-size: 8pt;
    line-height: 1.3;
  }

  .manual-print-table thead {
    display: table-header-group;
  }

  .manual-print-table tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .manual-print-table th,
  .manual-print-table td {
    border: 0.7px solid #c9c9c9;
    padding: 1.8mm 2mm;
    vertical-align: top;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
  }

  .manual-print-table th {
    background: #f2f2f2 !important;
    color: #111;
    font-weight: 800;
  }

  .manual-print-table th:nth-child(1),
  .manual-print-table td:nth-child(1) {
    width: 10mm;
    white-space: nowrap;
  }

  .manual-print-table th:nth-child(2),
  .manual-print-table td:nth-child(2) {
    width: 34mm;
    font-weight: 700;
  }

  .manual-print-table th:nth-child(3),
  .manual-print-table td:nth-child(3) {
    width: 31mm;
  }

  .manual-print-table th:nth-child(4),
  .manual-print-table td:nth-child(4) {
    width: 28mm;
  }

  .manual-print-table th:nth-child(5),
  .manual-print-table td:nth-child(5) {
    width: auto;
  }

  .manual-print .grid.two {
    display: block;
    page-break-before: always;
    break-before: page;
  }

  .manual-print .card {
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: white !important;
    padding: 0;
    margin-bottom: 8mm;
  }

  .manual-print .list-item {
    display: block;
    border: 0;
    border-bottom: 1px solid #d8d8d8;
    border-radius: 0;
    background: white !important;
    padding: 3mm 0;
  }

  .manual-print .muted,
  .manual-print .hint {
    color: #333 !important;
  }

  .manual-print button,
  .manual-print .toolbar,
  .no-print {
    display: none !important;
  }
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  max-width: 100vw;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 242, 168, 0.48), transparent 30%),
    radial-gradient(circle at top right, rgba(216, 237, 255, 0.55), transparent 34%),
    var(--bg);
  color: var(--text);
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p,
strong,
.muted {
  overflow-wrap: anywhere;
}


button {
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

button:active {
  transform: translateY(1px);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(360px, 468px);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 216, 199, 0.44), transparent 16%),
    radial-gradient(circle at 42% 86%, rgba(201, 245, 223, 0.48), transparent 20%),
    radial-gradient(circle at 64% 30%, rgba(216, 237, 255, 0.34), transparent 18%),
    radial-gradient(circle at 78% 82%, rgba(255, 242, 168, 0.68), transparent 22%),
    radial-gradient(circle at 90% 18%, rgba(201, 245, 223, 0.32), transparent 18%),
    linear-gradient(135deg, #fffdf6 0%, #f7fff9 52%, #eff8ff 100%);
  align-items: center;
  justify-content: center;
  column-gap: clamp(44px, 6vw, 96px);
  padding: clamp(28px, 5vw, 72px);
}

.login-visual {
  color: var(--text);
  padding: 0;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  background: transparent;
}

.login-visual > .brand-mark {
  position: absolute;
  top: 56px;
  left: 56px;
}

.login-visual > div:last-child {
  width: min(640px, 100%);
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  margin: 0 auto;
}

.hero-brand {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(32, 37, 33, 0.06);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 24%, rgba(201, 245, 223, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 242, 0.82));
  box-shadow: 0 10px 24px rgba(53, 62, 56, 0.05);
  backdrop-filter: blur(8px);
  font-size: clamp(58px, 4.6vw, 86px);
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  margin: 0 auto 42px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark img {
  display: block;
  width: 61px;
  height: 61px;
  flex: 0 0 auto;
}

.sidebar .brand-mark {
  gap: 8px;
  font-size: 20px;
}

.sidebar .brand-mark img {
  width: 42px;
  height: 42px;
}

.login-visual h1 {
  max-width: 650px;
  font-size: clamp(42px, 4vw, 68px);
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: 0;
  color: #202521;
  text-align: center;
  text-wrap: balance;
  margin-inline: auto;
}

.login-visual p {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.55;
  color: #4d5a54;
  text-shadow: none;
  text-align: center;
  margin: 0 auto;
}

.hero-symbol-card {
  width: min(330px, 70vw);
  min-height: 330px;
  border: 1px solid rgba(32, 37, 33, 0.08);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(53, 62, 56, 0.08);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  gap: 22px;
  padding: 42px;
  margin: 0 auto 42px;
  backdrop-filter: blur(12px);
}

.hero-symbol-card.app-icon {
  width: 154px;
  height: 154px;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(32, 37, 33, 0.08);
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(53, 62, 56, 0.1);
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
}

.hero-app-icon {
  display: block;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
}

.symbol {
  width: 96px;
  height: 96px;
  justify-self: center;
  display: block;
}

.hero-symbol-card.app-icon .symbol {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 0;
}

.hero-symbol-card.app-icon .symbol.circle {
  left: 33.5%;
  top: 32.5%;
  transform: translate(-50%, -50%);
}

.hero-symbol-card.app-icon .symbol.square {
  left: 66.5%;
  top: 32.5%;
  transform: translate(-50%, -50%);
}

.hero-symbol-card.app-icon .symbol.triangle {
  left: 33.5%;
  top: 67.5%;
  transform: translate(-50%, -50%);
}

.hero-symbol-card.app-icon .symbol.plus {
  left: 66.5%;
  top: 67.5%;
  transform: translate(-50%, -50%);
}

.hero-symbol-card.app-icon .symbol.circle,
.hero-symbol-card.app-icon .symbol.square {
  border-width: 9px;
}

.hero-symbol-card.app-icon .symbol.square {
  border-radius: 5px;
}

.hero-symbol-card.app-icon .symbol.triangle {
  width: 48px;
  height: 48px;
}

.hero-symbol-card.app-icon .symbol.plus::before,
.hero-symbol-card.app-icon .symbol.plus::after {
  width: 46px;
  height: 10px;
}

.symbol.circle {
  border: 17px solid var(--brand);
  border-radius: 50%;
}

.symbol.square {
  border: 17px solid #5c70f2;
  border-radius: 24px;
}

.symbol.triangle {
  width: 120px;
  height: 120px;
  fill: var(--gold);
}

.symbol.plus {
  position: relative;
}

.symbol.plus::before,
.symbol.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  height: 22px;
  border-radius: 999px;
  background: var(--red);
  transform: translate(-50%, -50%);
}

.symbol.plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 0;
  background: transparent;
}

.login-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 37, 33, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(53, 62, 56, 0.08);
  backdrop-filter: blur(14px);
  padding: 28px;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

@media (min-width: 961px) {
  .login-screen {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
  }

  .login-panel {
    align-self: center;
  }
}

.account-state-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 242, 168, 0.58), transparent 20%),
    radial-gradient(circle at 82% 78%, rgba(216, 237, 255, 0.8), transparent 24%),
    linear-gradient(135deg, #fffdf6 0%, #f7fff9 52%, #eff8ff 100%);
}

.account-state-card {
  width: min(460px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.account-state-card img {
  width: 74px;
  height: 74px;
}

.account-state-card h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.05;
}

.account-state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 36ch;
}

.account-state-person {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.account-state-person span {
  color: var(--muted);
  font-weight: 700;
}

.hint {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 22px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span,
.field label {
  color: #34423d;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fffefa;
  color: var(--text);
  outline: none;
}

.readonly-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #f7faf9;
  color: var(--text);
  font-weight: 800;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.primary:hover,
.secondary:hover,
.danger:hover,
.demo-users button:hover,
.nav button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--brand);
  color: white;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.secondary {
  background: var(--mint);
  color: var(--brand-dark);
}

.ghost {
  background: transparent;
  color: var(--text);
}

.ghost:hover {
  background: rgba(0, 169, 145, 0.08);
}

.danger {
  background: #ffe1dc;
  color: #a73838;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.demo-users {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.demo-users button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
}

.store-login {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.login-create-id {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
}

.sidebar {
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
}

.mobile-menu {
  display: none;
}

.nav {
  display: grid;
  gap: 3px;
}

.nav button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3f4d47;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  font-weight: 750;
  text-align: left;
  position: relative;
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  color: currentColor;
  line-height: 1;
  transition: transform 0.18s ease;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button:hover .nav-icon {
  transform: translateY(-1px);
}

.nav button strong {
  flex: 1;
  min-width: 0;
  font: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #f45d5d;
  color: white;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.nav button.active {
  background: var(--brand);
  color: white;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.workspace {
  min-width: 0;
  width: 100%;
  height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.tablet-shell {
  min-height: 100vh;
  background: var(--bg);
}

.tablet-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.tablet-topbar .brand-mark {
  font-size: 22px;
}

.tablet-topbar .brand-mark img {
  width: 42px;
  height: 42px;
}

.tablet-topbar button {
  margin-left: auto;
}

.global-reminder {
  display: none;
}

.tablet-shell .global-reminder {
  display: none;
}

.global-reminder span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-reminder-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
}

.global-reminder-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.global-reminder-icon svg path:first-child {
  fill: #fff8f8;
  stroke: none;
}

.global-reminder-icon svg path:nth-child(2),
.global-reminder-icon svg circle {
  stroke: #cf3232;
  fill: #cf3232;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 980px) {
  .global-reminder,
  .tablet-shell .global-reminder {
    position: sticky;
    top: 58px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(164, 26, 26, 0.18);
    border-left-width: 0;
    border-right-width: 0;
    background: #cf3232;
    color: #fff8f8;
    backdrop-filter: none;
  }

  .tablet-shell .global-reminder {
    top: 74px;
  }

  .global-reminder-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  .global-reminder-icon svg {
    width: 22px;
    height: 22px;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease, backdrop-filter 0.28s ease;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100vw;
  transform: translateY(0);
}

.topbar.topbar-scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(219, 229, 223, 0.95);
  box-shadow: 0 16px 30px rgba(53, 62, 56, 0.08);
  backdrop-filter: blur(20px) saturate(1.08);
}

.topbar.topbar-compact-store {
  padding: 10px 16px;
  gap: 10px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 8px 18px rgba(53, 62, 56, 0.05);
  backdrop-filter: blur(14px);
}

.topbar.topbar-compact-store.topbar-scrolled {
  background: rgba(255, 252, 246, 0.94);
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(53, 62, 56, 0.05);
  backdrop-filter: blur(14px);
}

.brand-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.brand-switcher span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.brand-switcher select {
  width: 190px;
  min-width: 150px;
  background: #fffefa;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
}

.topbar-title-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar.topbar-compact-store .topbar-title-pill {
  gap: 10px;
}

.topbar-title-copy {
  min-width: 0;
}

.topbar.topbar-compact-store h1 {
  font-size: 19px;
  line-height: 1.02;
}

.topbar.topbar-compact-store .topbar-title-copy .muted {
  font-size: 12px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar.topbar-compact-store .user-chip {
  gap: 8px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--lemon);
  color: var(--brand-dark);
  font-weight: 900;
  flex: 0 0 auto;
}

.topbar .user-chip strong {
  font-size: 15px;
  line-height: 1.05;
}

.topbar .user-chip .muted {
  font-size: 11px;
}

.topbar.topbar-compact-store .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
}

.topbar.topbar-compact-store .user-chip strong {
  font-size: 15px;
  line-height: 1.05;
}

.topbar.topbar-compact-store .user-chip .muted {
  font-size: 11px;
}

.user-profile-trigger {
  border: 1px solid rgba(32, 37, 33, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 18px rgba(53, 62, 56, 0.06);
  padding: 8px 12px;
  min-width: 0;
  min-height: 38px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--brand-dark);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.user-profile-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(4, 173, 151, 0.24);
  background: rgba(236, 255, 249, 0.9);
  box-shadow: 0 12px 24px rgba(53, 62, 56, 0.09);
}

.profile-account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(230, 255, 246, 0.78), rgba(255, 255, 255, 0.96));
  margin-bottom: 14px;
}

.profile-account-card h2 {
  margin: 0 0 4px;
}

.avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 20px;
}

.staff-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-name-cell > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.staff-name-cell strong {
  line-height: 1.15;
}

.staff-cell-copy {
  display: grid;
  gap: 4px;
}

.staff-database-table {
  table-layout: fixed;
}

.staff-database-table th:nth-child(1) {
  width: 14%;
}

.staff-database-table th:nth-child(2) {
  width: 31%;
}

.staff-database-table th:nth-child(3) {
  width: 19%;
}

.staff-database-table th:nth-child(4) {
  width: 18%;
}

.staff-database-table th:nth-child(5) {
  width: 8%;
}

.staff-database-table th:nth-child(6) {
  width: 10%;
}

.staff-database-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.staff-cell-position,
.staff-cell-hr,
.staff-cell-progress {
  line-height: 1.3;
}

.staff-cell-position strong,
.staff-cell-hr strong,
.staff-cell-progress strong {
  display: block;
}

.staff-cell-position .badge {
  margin-top: 6px;
}

.staff-cell-points {
  white-space: nowrap;
}

.staff-cell-points strong {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
}

.staff-cell-actions .toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-cell-actions .toolbar button {
  min-width: 84px;
}

.staff-photo {
  width: 46px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--lemon);
  flex: 0 0 auto;
}

.staff-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  font-weight: 900;
}

.staff-profile-photo {
  width: min(180px, 100%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffefa;
}

.staff-profile-photo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
}

.profile-photo-guide > div {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(210, 247, 231, 0.45), #fffefa);
}

.profile-photo-guide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid rgba(8, 174, 147, 0.22);
}

.profile-photo-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.bank-detail-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffefa;
}

.attachment-preview {
  gap: 12px;
}

.attachment-preview img,
.attachment-preview video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
}

.content {
  padding: 22px;
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  transition: padding 0.22s ease, transform 0.22s ease;
}

.manual-print {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.manual-book-cover {
  display: none;
}

.manual-book-toc ol {
  margin: 0;
  padding-left: 20px;
}

.manual-book-toc li {
  margin: 8px 0;
}

.manual-book-toc li strong {
  color: var(--muted);
  font-size: 12px;
}

.manual-book-overview,
.manual-overview-table {
  display: none;
}

.manual-index {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.manual-index button,
.manual-index a {
  min-height: 34px;
  text-decoration: none;
}

.manual-function-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-function-card {
  display: grid;
  gap: 14px;
  align-content: start;
  scroll-margin-top: 18px;
}

.manual-chapter-number {
  display: block;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.manual-function-list {
  display: grid;
  gap: 8px;
}

.manual-print-table {
  display: none;
}

.manual-function-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.manual-function-row strong {
  display: block;
  margin-bottom: 7px;
  line-height: 1.2;
}

.manual-function-row p {
  margin: 0;
  color: #4b5a53;
  line-height: 1.38;
  font-weight: 650;
}

.manual-function-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.manual-function-meta span {
  border-radius: 999px;
  background: rgba(210, 247, 231, 0.72);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  padding: 5px 8px;
}

.manual-card details[open] summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.section-head > *,
.grid > *,
.card > *,
.list-item > *,
.staff-name-cell > div,
.toolbar > * {
  min-width: 0;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.grid.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(53, 62, 56, 0.045);
  min-width: 0;
}

.card:nth-child(5n + 1) {
  border-top: 4px solid var(--mint);
}

.card:nth-child(5n + 2) {
  border-top: 4px solid var(--lemon);
}

.card:nth-child(5n + 3) {
  border-top: 4px solid var(--sky);
}

.card:nth-child(5n + 4) {
  border-top: 4px solid var(--peach);
}

.card:nth-child(5n) {
  border-top: 4px solid var(--lilac);
}

.metric {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px 14px;
}

.metric small {
  color: var(--muted);
  font-weight: 800;
}

.payroll-export-card {
  display: grid;
  gap: 14px;
}

.payroll-export-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.payroll-export-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.payroll-export-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.payroll-export-actions,
.payroll-export-ready {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.payroll-export-actions button,
.payroll-export-ready a,
.payroll-export-ready button {
  min-height: 40px;
}

.payroll-export-summary {
  display: grid;
  grid-template-columns: 1fr 0.55fr minmax(190px, 1.25fr) 0.55fr;
  gap: 10px;
}

.payroll-export-summary > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffefa;
  min-width: 0;
}

.payroll-export-summary span,
.payroll-export-ready span,
.payroll-run-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.payroll-export-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.1;
}

.payroll-export-summary small {
  display: block;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.payroll-export-footer {
  display: block;
}

.payroll-run-list {
  display: grid;
  gap: 5px;
}

.payroll-export-ready {
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.payroll-export-ready .payroll-export-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress-panel .section-head {
  align-items: start;
  flex-wrap: wrap;
}

.progress-panel .section-head .toolbar {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.progress-panel .section-head .toolbar button {
  white-space: nowrap;
}

.progress-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.progress-summary-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 148px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
}

.progress-summary-card small {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.progress-summary-card strong {
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
  text-wrap: balance;
}

.progress-summary-card span {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .progress-summary-grid {
    grid-template-columns: 1fr;
  }

  .progress-summary-card {
    min-height: 0;
  }
}

.metric strong {
  font-size: 24px;
  line-height: 1;
}

.metric .trend {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.quick-peek {
  display: grid;
  gap: 10px;
  min-height: 124px;
  padding: 12px;
  border: 1px solid rgba(8, 174, 147, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 244, 0.86), rgba(255, 255, 255, 0.95));
  box-shadow: 0 10px 20px rgba(53, 62, 56, 0.04);
}

.quick-peek-mint {
  background:
    radial-gradient(circle at 96% 10%, rgba(255, 242, 168, 0.52), transparent 24%),
    linear-gradient(135deg, rgba(232, 255, 244, 0.95), rgba(255, 255, 255, 0.96));
}

.quick-peek-gold {
  background:
    radial-gradient(circle at 96% 10%, rgba(255, 216, 199, 0.55), transparent 26%),
    linear-gradient(135deg, rgba(255, 250, 223, 0.96), rgba(255, 255, 255, 0.96));
}

.quick-peek-sky {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 237, 255, 0.8), transparent 28%),
    linear-gradient(135deg, rgba(240, 248, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.quick-peek-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-peek-head strong {
  font-size: 14px;
}

.quick-peek-head span {
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.quick-peek-list,
.task-stack {
  display: grid;
  gap: 8px;
}

.quick-peek-list > div,
.quick-peek-empty,
.task-stack-item {
  border: 1px solid rgba(8, 174, 147, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.quick-peek-list > div {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
}

.quick-peek-list strong {
  font-size: 13px;
}

.quick-peek-list span,
.quick-peek-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quick-peek-empty {
  padding: 10px;
}

.vendor-list {
  display: grid;
  gap: 10px;
}

.vendor-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(8, 174, 147, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 237, 255, 0.55), transparent 26%),
    linear-gradient(135deg, rgba(255, 250, 244, 0.92), rgba(255, 255, 255, 0.97));
}

.vendor-item-copy {
  display: grid;
  gap: 4px;
}

.vendor-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vendor-contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.vendor-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.vendor-item-actions a,
.vendor-item-actions button {
  text-decoration: none;
}

@media (min-width: 981px) {
  .vendor-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 8px;
  }

  .vendor-item {
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .vendor-item-copy {
    gap: 3px;
  }

  .vendor-item-head {
    gap: 6px;
  }

  .vendor-contact-meta {
    gap: 6px 12px;
    font-size: 11px;
  }

  .vendor-item-actions {
    gap: 6px;
    align-self: start;
  }

  .vendor-item-actions a,
  .vendor-item-actions button {
    min-height: 34px;
    padding: 0 10px;
  }
}

.task-stack-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
}

.task-stack-check {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff2a8, #ffd8c7);
  color: #9b650f;
  font-size: 18px;
  font-weight: 1000;
}

.task-stack-check.is-done {
  background: linear-gradient(135deg, #c9f5df, #d8edff);
  color: var(--brand-dark);
}

.task-stack-copy {
  display: grid;
  gap: 2px;
}

.task-stack-copy strong {
  font-size: 14px;
  line-height: 1.15;
}

.task-stack-copy span,
.task-stack-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

  .task-stack-meta {
    display: grid;
    gap: 2px;
    justify-items: end;
    text-align: right;
  }

  .vendor-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .vendor-item-actions {
    justify-content: stretch;
  }

  .vendor-item-actions a,
  .vendor-item-actions button {
    width: 100%;
  }

.task-stack-meta b {
  color: var(--brand-dark);
  font-size: 13px;
}

.task-group-card {
  margin-top: 16px;
}

.task-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.task-compact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.task-compact-card.is-rejected {
  border-color: rgba(229, 91, 91, 0.28);
  background: rgba(255, 241, 239, 0.82);
}

.task-compact-main {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.task-compact-main span,
.task-compact-main small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.task-compact-main strong {
  display: block;
  margin: 3px 0;
  font-size: 1rem;
  line-height: 1.1;
}

.task-compact-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 0.84rem;
}

.task-compact-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store-command {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.store-game-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.store-energy-mini,
.store-game-strip .compact-metric {
  min-height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(8, 174, 147, 0.15);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(53, 62, 56, 0.04);
}

.store-energy-mini {
  display: grid;
  gap: 7px;
  padding: 9px 12px;
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 242, 168, 0.75), transparent 35%),
    linear-gradient(135deg, rgba(201, 245, 223, 0.8), rgba(216, 237, 255, 0.58));
}

.store-energy-mini div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-energy-mini span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.store-energy-mini strong {
  font-size: 30px;
  line-height: 1;
}

.store-energy-mini i,
.store-task-track {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(32, 37, 33, 0.07);
  overflow: hidden;
}

.store-energy-mini b,
.store-task-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #6f7df2);
}

.store-alert-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.store-priority-card,
.store-energy-card,
.store-clock-card {
  border-top-width: 4px;
}

.store-priority-card {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 98% 10%, rgba(255, 242, 168, 0.42), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, rgba(245, 255, 251, 0.9) 100%);
}

.store-snapshot {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.compact-metric {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 254, 250, 0.86);
}

.compact-metric small,
.compact-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.compact-metric strong {
  font-size: 22px;
  line-height: 1;
}

.store-important-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.store-important-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(8, 174, 147, 0.15);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.74);
}

.store-important-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
}

.store-important-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.store-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.store-tablet-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.tablet-dashboard-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tablet-dashboard-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.tablet-dashboard-section {
  scroll-margin-top: 98px;
  min-width: 0;
}

.tablet-category-sidebar {
  position: sticky;
  top: 92px;
  z-index: 3;
  display: grid;
  gap: 7px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(53, 62, 56, 0.06);
  backdrop-filter: blur(14px);
}

.tablet-category-sidebar-title {
  padding: 4px 4px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tablet-category-sidebar button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 254, 250, 0.72);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.tablet-category-sidebar button:hover,
.tablet-category-sidebar button.active {
  transform: translateY(-1px);
  border-color: rgba(8, 174, 147, 0.18);
  background: rgba(236, 251, 245, 0.9);
}

.tablet-category-sidebar button.active {
  box-shadow: inset 4px 0 0 var(--brand);
}

.tablet-category-sidebar button strong,
.tablet-category-sidebar button small {
  display: block;
}

.tablet-category-sidebar button strong {
  font-size: 13px;
  line-height: 1.1;
}

.tablet-category-sidebar button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
}

.tablet-category-sidebar button b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  border-radius: 999px;
  background: #edf3ef;
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
}

.tablet-category-sidebar button.has-update {
  border-color: rgba(8, 174, 147, 0.18);
  background: linear-gradient(135deg, rgba(236, 251, 245, 0.9), rgba(255, 255, 255, 0.92));
}

.tablet-category-sidebar button.has-update b {
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 16px rgba(0, 169, 145, 0.2);
}

.tablet-dashboard-content > *,
.store-tablet-main-grid > *,
.tablet-ops-rail > *,
.store-tablet-support-grid > *,
.tablet-category-grid > * {
  display: none;
}

.tablet-active-operations #tablet-operations,
.tablet-active-missions .store-tablet-main-grid,
.tablet-active-missions #tablet-missions,
.tablet-active-team .store-tablet-main-grid,
.tablet-active-team .tablet-ops-rail,
.tablet-active-team #tablet-team,
.tablet-active-rev .store-tablet-main-grid,
.tablet-active-rev .tablet-ops-rail,
.tablet-active-rev #tablet-rev,
.tablet-active-breaks .store-tablet-support-grid,
.tablet-active-breaks #tablet-breaks,
.tablet-active-timers .store-tablet-support-grid,
.tablet-active-timers #tablet-timers,
.tablet-active-approvals .tablet-category-grid,
.tablet-active-approvals #tablet-approvals,
.tablet-active-schedule .tablet-category-grid,
.tablet-active-schedule #tablet-schedule,
.tablet-active-reports .tablet-category-grid,
.tablet-active-reports #tablet-reports,
.tablet-active-performance .tablet-category-grid,
.tablet-active-performance #tablet-performance {
  display: grid;
}

.tablet-active-missions .store-tablet-main-grid,
.tablet-active-team .store-tablet-main-grid,
.tablet-active-rev .store-tablet-main-grid,
.tablet-active-team .tablet-ops-rail,
.tablet-active-rev .tablet-ops-rail,
.tablet-active-breaks .store-tablet-support-grid,
.tablet-active-timers .store-tablet-support-grid,
.tablet-active-approvals .tablet-category-grid,
.tablet-active-schedule .tablet-category-grid,
.tablet-active-reports .tablet-category-grid,
.tablet-active-performance .tablet-category-grid {
  grid-template-columns: minmax(0, 1fr);
}

.tablet-active-missions #tablet-missions,
.tablet-active-team #tablet-team,
.tablet-active-rev #tablet-rev,
.tablet-active-breaks #tablet-breaks,
.tablet-active-timers #tablet-timers,
.tablet-active-approvals #tablet-approvals,
.tablet-active-schedule #tablet-schedule,
.tablet-active-reports #tablet-reports,
.tablet-active-performance #tablet-performance {
  width: 100%;
}

.tablet-active-performance .store-game-board-layout {
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 18px;
}

.tablet-ops-rail,
.store-tablet-support-grid,
.tablet-category-grid {
  display: grid;
  gap: 10px;
}

.store-tablet-support-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: start;
  margin-bottom: 10px;
}

.store-tablet-support-grid .store-timers-card {
  margin: 0;
}

.store-tablet-support-grid .store-timer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-tablet-support-grid .store-timer-item {
  min-height: 112px;
}

.tablet-rev-card {
  border-top: 4px solid var(--sky);
}

.tablet-rev-list {
  display: grid;
  gap: 7px;
}

.tablet-rev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 254, 250, 0.88);
}

.tablet-rev-row.has-issue {
  border-color: rgba(242, 91, 91, 0.24);
  background: #fff5f1;
}

.tablet-rev-row strong,
.tablet-rev-row span {
  display: block;
}

.tablet-rev-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tablet-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.tablet-category-drawer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(53, 62, 56, 0.045);
  overflow: hidden;
}

.tablet-category-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 11px 12px;
  list-style: none;
}

.tablet-category-summary strong,
.tablet-category-summary small {
  display: block;
}

.tablet-category-summary strong {
  font-size: 17px;
  line-height: 1.1;
}

.tablet-category-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.tablet-category-summary b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 1000;
}

.tablet-category-summary {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(236, 251, 245, 0.86), rgba(255, 255, 255, 0.92));
}

.tablet-category-content {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.tablet-weekly-compact {
  max-height: 460px;
  overflow: auto;
}

.tablet-report-expanded {
  display: grid;
  gap: 14px;
}

.tablet-report-expanded .grid.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tablet-report-expanded .card {
  box-shadow: none;
}

.store-mission-board {
  border-top: 4px solid var(--mint);
}

.store-task-board {
  display: grid;
  gap: 7px;
}

.store-task-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(210px, 0.58fr);
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 8px;
  border: 1px solid rgba(8, 174, 147, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 242, 168, 0.55), transparent 28%),
    linear-gradient(135deg, rgba(240, 251, 247, 0.72), rgba(255, 255, 255, 0.92));
}

.store-task-row.is-waiting {
  background:
    radial-gradient(circle at 96% 0%, rgba(216, 237, 255, 0.6), transparent 28%),
    linear-gradient(135deg, rgba(246, 250, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.store-task-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lemon), var(--peach));
  color: #9b650f;
  font-size: 22px;
  font-weight: 1000;
}

.store-task-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.store-task-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.store-task-title strong {
  font-size: 15px;
  line-height: 1.1;
}

.store-task-title span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e7faf3;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 950;
}

.store-task-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.store-task-track {
  height: 6px;
}

.store-task-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.store-task-action select {
  min-height: 34px;
  border-radius: 8px;
}

.task-check-btn {
  min-width: 112px;
  background: linear-gradient(135deg, var(--brand), #4b7bec);
  border: none;
  box-shadow: 0 10px 18px rgba(0, 169, 145, 0.18);
}

.task-action-state {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.task-action-state span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.task-proof-state {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.task-proof-state span,
.task-proof-state small {
  color: var(--muted);
  font-weight: 800;
}

.task-proof-state span {
  font-size: 11px;
}

.store-timers-card {
  margin: 10px 0;
  border-top: 4px solid var(--danger);
}

.store-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.store-timer-item {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 254, 250, 0.9);
}

.store-timer-item strong,
.store-timer-item span {
  display: block;
}

.store-timer-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.store-timer-item b {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 10px;
  background: rgba(8, 174, 147, 0.12);
  color: var(--brand-dark);
  font-size: 22px;
  line-height: 1;
}

.store-timer-item.is-change-now {
  border-color: rgba(242, 91, 91, 0.4);
  background: #fff0ec;
  box-shadow: 0 12px 28px rgba(242, 91, 91, 0.12);
}

.store-timer-item.is-change-now b {
  background: var(--danger);
  color: white;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.batch-timer-list {
  display: grid;
  gap: 5px;
}

.batch-timer-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.78);
}

.batch-timer-pill span,
.batch-timer-pill strong {
  font-size: 11px;
  font-weight: 900;
}

.batch-timer-pill.is-change-now {
  border-color: rgba(242, 91, 91, 0.35);
  background: #ffe4df;
}

.tiny-btn {
  min-height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 10px;
}

.tablet-clock-list {
  display: grid;
  gap: 7px;
}

.tablet-person-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
}

.tablet-person-compact strong,
.tablet-person-compact span {
  display: block;
}

.tablet-person-compact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.store-break-plan-card {
  border-top: 4px solid var(--gold);
}

.break-avoid-note {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 238, 160, 0.55);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.break-plan-list {
  display: grid;
  gap: 7px;
}

.break-plan-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(255, 254, 250, 0.9);
}

.break-plan-item > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--teal);
  font-weight: 950;
}

.break-plan-item strong,
.break-plan-item small {
  display: block;
}

.break-plan-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.break-plan-item b {
  font-size: 13px;
  white-space: nowrap;
}

.break-plan-item.needs-manual {
  border-color: rgba(242, 91, 91, 0.25);
  background: #fff3f1;
}

.status-chip.danger-soft {
  border-color: rgba(242, 91, 91, 0.22);
  background: #ffe9e5;
  color: #9e3838;
}

.small-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.tablet-clock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.today-focus-compact {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffefa;
}

.compact-dashboard-panels {
  align-items: start;
}

.compact-dashboard-panels > .card {
  grid-column: 1 / -1;
}

.compact-dashboard-panels > .store-game-board-card {
  grid-column: 1 / -1;
}

.store-game-board-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 242, 168, 0.34), transparent 22%),
    linear-gradient(135deg, rgba(255, 252, 242, 0.96), rgba(255, 255, 255, 0.98));
}

.store-game-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.inset-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.rank-panel {
  min-height: 100%;
}

.dashboard-drawers {
  display: grid;
  gap: 10px;
}

.dashboard-drawer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(53, 62, 56, 0.035);
  overflow: hidden;
}

.dashboard-drawer summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  font-weight: 950;
  list-style: none;
}

.dashboard-drawer summary::-webkit-details-marker {
  display: none;
}

.dashboard-drawer summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ecfbf5;
  color: var(--brand-dark);
  font-weight: 1000;
}

.dashboard-drawer[open] summary::after {
  content: "-";
}

.dashboard-drawer summary strong {
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff6c8;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.compact-dashboard-drawers {
  gap: 7px;
}

.compact-dashboard-drawers .dashboard-drawer summary {
  min-height: 42px;
  padding: 0 12px;
}

.drawer-content {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.drawer-content > .card {
  box-shadow: none;
}

.schedule-support-grid {
  margin-bottom: 12px;
}

.kpi-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.kpi-compact-item {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 255, 252, 0.94));
}

.kpi-compact-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.kpi-compact-item strong {
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  word-break: normal;
  overflow-wrap: anywhere;
}

.kpi-compact-item.kpi-hero {
  min-height: 88px;
}

.kpi-compact-item.kpi-hero strong {
  font-size: 22px;
}

.kpi-compact-item.kpi-wide {
  grid-column: span 2;
}

.kpi-compact-item.kpi-wide strong {
  font-size: 17px;
  line-height: 1.1;
}

.store-kpi-card-compact .section-head h2 {
  font-size: 20px;
}

.redemption-rules-card {
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 242, 168, 0.54), transparent 28%),
    linear-gradient(135deg, rgba(201, 245, 223, 0.36), rgba(255, 255, 255, 0.96));
}

.redemption-rules-head {
  align-items: start;
  margin-bottom: 10px;
}

.redemption-rules-head button {
  align-self: start;
  min-height: 40px;
  padding-inline: 16px;
  white-space: nowrap;
}

.redemption-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.redemption-rule-grid div {
  display: grid;
  gap: 4px;
  min-height: 74px;
  align-content: start;
  border: 1px solid rgba(8, 174, 147, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.redemption-rule-grid strong {
  font-size: 14px;
}

.redemption-rule-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.kpi-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card-actions button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
}

@media (max-width: 900px) {
  .kpi-card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-card-actions button {
    width: 100%;
  }
}

.toolbar input,
.toolbar select {
  width: auto;
  min-width: 180px;
}

.streak-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.streak-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(201, 245, 223, 0.55), rgba(216, 237, 255, 0.44));
}

.streak-pill strong {
  display: block;
  font-size: 26px;
}

.streak-pill span,
.reward-teaser span,
.team-energy span {
  color: var(--muted);
  font-weight: 800;
}

.micro-badges,
.kpi-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.micro-badges span,
.kpi-icons span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff6c8;
  color: #4b4b34;
  font-size: 12px;
  font-weight: 900;
}

.micro-badges.compact {
  margin-top: 6px;
}

.micro-badges.compact span {
  font-size: 10px;
  padding: 3px 7px;
}

.reward-teaser,
.team-energy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reward-teaser .reward-image {
  width: 74px;
  height: 74px;
  border-radius: 8px;
}

.reward-teaser strong,
.team-energy strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.team-energy {
  justify-content: space-between;
}

.energy-score {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--lemon), var(--mint));
  color: var(--text);
  font-size: 30px;
  font-weight: 1000;
  box-shadow: 0 12px 28px rgba(0, 169, 145, 0.14);
}

.energy-meter {
  flex: 1;
  min-width: 180px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf4f2;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(35, 45, 40, 0.08);
}

.energy-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--blue), var(--gold));
  box-shadow: 0 0 18px rgba(0, 169, 145, 0.24);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 10px;
}

.mission-panel {
  grid-column: 1 / -1;
}

.mission-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 242, 168, 0.42), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f7fffb 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(35, 45, 40, 0.045);
}

.mission-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--brand);
}

.mission-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 1000;
}

.mission-card strong,
.mission-card span,
.mission-points,
.mission-points-wrap,
.mission-status,
.mission-progress,
.mission-ring {
  position: relative;
  z-index: 1;
}

.mission-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mission-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.mission-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: normal;
}

.mission-ring {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) var(--progress), #eef4f2 0);
}

.mission-ring span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 1000;
}

.mission-points-wrap {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.mission-points {
  justify-self: end;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eaf9f5;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 1000;
}

.mission-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mission-progress {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.mission-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf4f2;
}

.mission-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--blue));
}

.mission-kitchen .mission-icon {
  background: var(--peach);
  color: var(--red);
}

.mission-kitchen::before {
  background: var(--red);
}

.mission-cashier .mission-icon {
  background: var(--sky);
  color: var(--blue);
}

.mission-cashier::before {
  background: var(--blue);
}

.mission-service .mission-icon {
  background: var(--lemon);
  color: #966514;
}

.mission-service::before {
  background: var(--gold);
}

.celebration {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(460px, calc(100vw - 28px));
  border: 1px solid rgba(0, 169, 145, 0.24);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(20, 50, 44, 0.2);
  animation: celebrationIn 5s ease both;
}

.celebration img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  animation: iconBounce 0.6s ease both;
}

.celebration strong,
.celebration span,
.celebration small {
  display: block;
}

.celebration strong {
  font-size: 22px;
}

.celebration small {
  margin-top: 4px;
  color: var(--brand-dark);
  font-weight: 900;
}

.celebration-warn {
  border-color: rgba(244, 166, 42, 0.36);
}

.celebration-late {
  border-color: rgba(239, 95, 95, 0.34);
}

.tiny-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tiny-confetti i {
  position: absolute;
  top: 8px;
  width: 8px;
  height: 14px;
  border-radius: 3px;
  background: var(--gold);
  animation: confettiDrop 1s ease-out both;
}

.tiny-confetti i:nth-child(1) { left: 12%; background: var(--brand); }
.tiny-confetti i:nth-child(2) { left: 28%; background: var(--blue); animation-delay: .06s; }
.tiny-confetti i:nth-child(3) { left: 52%; background: var(--red); animation-delay: .11s; }
.tiny-confetti i:nth-child(4) { left: 70%; background: var(--lemon); animation-delay: .04s; }
.tiny-confetti i:nth-child(5) { left: 86%; background: var(--lilac); animation-delay: .09s; }

@keyframes celebrationIn {
  0% { opacity: 0; transform: translate(-50%, -18px) scale(0.96); }
  5% { opacity: 1; transform: translate(-50%, 0) scale(1.02); }
  88% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -10px) scale(0.98); }
}

@keyframes iconBounce {
  0% { transform: scale(0.72) rotate(-5deg); }
  55% { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes confettiDrop {
  to { transform: translateY(86px) rotate(140deg); opacity: 0; }
}

.daily-targets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.daily-targets div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  background: linear-gradient(135deg, rgba(201, 245, 223, 0.52), rgba(255, 242, 168, 0.24)), #fffefa;
  min-width: 0;
  box-shadow: inset 0 3px 0 rgba(8, 174, 147, 0.16);
}

.daily-targets span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.daily-targets strong {
  display: block;
  font-size: 15px;
  line-height: 1.05;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.schedule-template table {
  min-width: 1080px;
}

.schedule-template select,
.schedule-template input {
  min-width: 140px;
}

.schedule-template input[type="number"] {
  min-width: 86px;
  width: 86px;
}

.schedule-reference {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.schedule-leaves {
  margin: 14px 0;
  box-shadow: none;
}

.schedule-reference label {
  display: grid;
  gap: 6px;
  min-width: min(320px, 100%);
  font-weight: 800;
  color: var(--ink);
}

.schedule-preview {
  margin-top: 14px;
}

.schedule-chart {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffefa;
}

.schedule-axis {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
}

.schedule-day {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--panel);
}

.schedule-axis {
  color: var(--muted);
  font-size: 12px;
}

.schedule-day-theme-0 {
  background: linear-gradient(180deg, rgba(201, 245, 223, 0.34), #fffefa 74%);
  border-color: rgba(0, 169, 145, 0.24);
}

.schedule-day-theme-1 {
  background: linear-gradient(180deg, rgba(255, 242, 168, 0.42), #fffefa 74%);
  border-color: rgba(244, 166, 42, 0.24);
}

.schedule-day-theme-2 {
  background: linear-gradient(180deg, rgba(216, 237, 255, 0.52), #fffefa 74%);
  border-color: rgba(75, 123, 236, 0.2);
}

.schedule-day-theme-3 {
  background: linear-gradient(180deg, rgba(255, 216, 199, 0.42), #fffefa 74%);
  border-color: rgba(239, 95, 95, 0.18);
}

.schedule-day-theme-4 {
  background: linear-gradient(180deg, rgba(234, 223, 255, 0.46), #fffefa 74%);
  border-color: rgba(92, 112, 242, 0.2);
}

.schedule-axis-labels {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 10px;
  min-height: 20px;
  min-width: 0;
  padding: 0 8px;
}

.schedule-axis-labels > div {
  position: relative;
  min-width: 0;
}

.schedule-axis-labels > div span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
}

.schedule-axis-labels > div span:first-child {
  transform: translateX(0);
}

.schedule-axis-labels > div span:last-child {
  transform: translateX(-100%);
}

.schedule-day-title {
  display: grid;
  align-content: start;
  gap: 2px;
}

.schedule-day-title span {
  color: var(--muted);
  font-size: 12px;
}

.schedule-bars {
  display: grid;
  gap: 3px;
  position: relative;
}

.schedule-hour-grid {
  position: absolute;
  inset: 0 0 0 0;
  pointer-events: none;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 10px;
  padding: 0 8px;
}

.schedule-hour-grid > div {
  position: relative;
  min-width: 0;
}

.schedule-hour-grid > div i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(105, 116, 111, 0.14);
}

.schedule-bar-row {
  position: relative;
  min-height: 24px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 169, 145, 0.05), rgba(92, 112, 242, 0.06)),
    rgba(255, 255, 255, 0.58);
  overflow: hidden;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.schedule-bar-row span {
  position: relative;
  left: auto;
  z-index: 2;
  display: block;
  min-height: 0;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 800;
  top: auto;
  color: var(--text);
}

.schedule-bar-track {
  position: relative;
  min-width: 0;
  height: 100%;
}

.schedule-bar-track i {
  position: absolute;
  top: 50%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #5c70f2);
  opacity: 0.78;
  transform: translateY(-50%);
}

.schedule-preview.compact .schedule-chart {
  margin-bottom: 14px;
}

.focus-list {
  display: grid;
  gap: 10px;
}

.focus-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  overflow: hidden;
}

.focus-item summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.focus-item summary::-webkit-details-marker {
  display: none;
}

.focus-detail {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.focus-detail > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.focus-detail span {
  color: var(--muted);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fffefa;
  font-weight: 800;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 242, 168, 0.32), transparent 24%),
    linear-gradient(135deg, #fffefa, rgba(248, 255, 252, 0.94));
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lemon);
  font-weight: 900;
}

.rank-track {
  width: min(180px, 100%);
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: #edf3ef;
  overflow: hidden;
}

.rank-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

@media (min-width: 1180px) {
  .store-game-board-card {
    padding: 18px;
  }

  .store-game-board-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 16px;
  }

  .store-kpi-card-compact {
    padding: 16px;
  }

  .store-kpi-card-compact .section-head {
    margin-bottom: 4px;
  }

  .store-kpi-card-compact .section-head h2 {
    font-size: 22px;
  }

  .store-kpi-card-compact .section-head p {
    font-size: 13px;
  }

  .kpi-compact-item strong {
    font-size: 18px;
  }

  .kpi-compact-item.kpi-hero strong {
    font-size: 23px;
  }

  .inset-card.rank-panel {
    padding: 16px;
  }

  .ranking-item > strong {
    font-size: 17px;
  }

  .daily-targets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rank-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.star-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--lemon);
  color: #8a5b05;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tbody tr:hover td {
  background: #fffdfa;
}

th {
  color: #42524d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  background: #fff9dc;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid rgba(32, 37, 33, 0.06);
}

.badge.approved,
.badge.active,
.badge.reviewed,
.badge.verified {
  color: #11784b;
  background: #dff8e8;
}

.badge.pending,
.badge.submitted,
.badge.draft,
.badge.scheduled,
.badge.inprogress,
.badge.notstarted {
  color: #8a5b05;
  background: #fff1b8;
}

.badge.rejected,
.badge.overdue,
.badge.inactive,
.badge.escalated,
.badge.needcorrection {
  color: #a33b3b;
  background: #ffe1dc;
}

.badge.revision,
.badge.progress {
  color: #315fb8;
  background: #dfeeff;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffefa;
}

.brand-settings-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
}

.brand-settings-copy {
  min-width: 0;
}

.brand-settings-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px;
  justify-content: end;
  flex-wrap: nowrap;
}

.brand-settings-actions button {
  min-width: 112px;
  white-space: nowrap;
}

.tablet-person {
  align-items: center;
}

.reward-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffefa;
  margin-bottom: 14px;
}

.reward-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 242, 168, 0.72), transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(216, 237, 255, 0.86), transparent 34%),
    #fffefa;
}

.reward-placeholder span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--mint);
  color: var(--brand-dark);
  font-size: 26px;
  font-weight: 900;
}

.redemption-calculator {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.redemption-calculator .field {
  margin: 0;
}

.redemption-live-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.redemption-live-summary div {
  border: 1px solid rgba(10, 129, 116, 0.14);
  border-radius: 12px;
  padding: 10px;
  background: rgba(210, 247, 231, 0.5);
}

.redemption-live-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 4px;
}

.redemption-live-summary strong {
  font-size: 15px;
}

.list-item strong {
  display: block;
  margin-bottom: 3px;
}

.application-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.application-column {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
}

.application-column > .section-head {
  min-height: 0;
  align-items: start;
}

.application-control-grid {
  margin-bottom: 14px;
}

.application-sections {
  display: grid;
  gap: 20px;
  margin-bottom: 14px;
}

.application-section {
  display: grid;
  gap: 12px;
}

.application-section-head {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 2px;
  align-items: start;
  gap: 14px;
}

.sectioned-application-board {
  margin: 0;
}

.application-action-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, max-content));
  justify-content: start;
  align-items: stretch;
  gap: 10px;
}

.application-action-toolbar .primary {
  grid-column: 1 / -1;
}

.application-action-toolbar button {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.application-summary-card .list-item {
  align-items: start;
}

.application-summary-card .toolbar {
  justify-content: flex-end;
}

.leadership-app-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.application-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(233, 255, 246, 0.7), #fffefa 55%);
  display: grid;
  gap: 9px;
}

.application-card p {
  margin: 0;
}

.application-card .section-head {
  align-items: start;
}

.application-card .toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.application-card .toolbar button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
}

.attendance-adjustment-card {
  margin-bottom: 14px;
}

.attendance-adjustment-grid {
  display: grid;
  gap: 8px;
}

.attendance-adjustment-head,
.attendance-adjustment-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) repeat(4, minmax(110px, 0.8fr));
  gap: 8px;
  align-items: center;
}

.attendance-adjustment-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.attendance-adjustment-row input {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1280px) {
  .application-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .application-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.application-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.application-meta span {
  border-radius: 999px;
  background: rgba(210, 247, 231, 0.75);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.application-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.application-type-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffefa;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  align-items: center;
  min-height: 98px;
}

.application-type-card input {
  width: auto;
  margin: 0;
  grid-row: span 2;
}

.application-type-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.application-type-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.application-type-card:has(input:checked) {
  border-color: var(--brand);
  background: rgba(210, 247, 231, 0.55);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.mobile-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 8px;
}

.mobile-check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffefa;
  color: var(--text);
  cursor: pointer;
}

.mobile-check-card input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.mobile-check-card span {
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.mobile-check-card:has(input:checked) {
  border-color: rgba(8, 174, 147, 0.42);
  background: linear-gradient(135deg, rgba(210, 247, 231, 0.72), #fffefa);
  box-shadow: inset 0 -3px 0 rgba(8, 174, 147, 0.12);
}

.compact-hint {
  margin: 4px 0 0;
  font-size: 12px;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.article-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.article-kicker > span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 0;
  line-height: 1.05;
}

.article-meta {
  color: var(--muted);
  font-weight: 750;
}

.article-card details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.article-card summary {
  cursor: pointer;
  color: #3f4d47;
  line-height: 1.45;
}

.article-card summary strong {
  color: var(--brand-dark);
  white-space: nowrap;
}

.article-preview {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.article-preview p {
  margin: 0;
  color: #3f4d47;
  line-height: 1.5;
}

.article-preview h3,
.read-gate-body h3 {
  margin: 4px 0 0;
  color: var(--brand-dark);
  font-size: 15px;
  line-height: 1.25;
}

.article-preview ul,
.read-gate-body ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.article-preview li,
.read-gate-body li {
  color: #3f4d47;
  line-height: 1.45;
}

.article-preview h3 + ul,
.read-gate-body h3 + ul {
  padding: 10px 12px 10px 28px;
  border: 1px solid rgba(8, 174, 147, 0.16);
  border-radius: 8px;
  background: rgba(210, 247, 231, 0.2);
}

.article-actions {
  margin-top: 2px;
}

.read-gate-body {
  max-height: min(46vh, 420px);
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.read-gate-body p {
  margin: 0;
  color: #334039;
  line-height: 1.58;
}

.read-gate-hint {
  margin-top: 10px;
  color: var(--brand-dark);
  font-weight: 850;
}

.read-ack-button[hidden] {
  display: none;
}

.announcement-card {
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 242, 168, 0.55), transparent 24%),
    linear-gradient(135deg, rgba(233, 255, 246, 0.78), #fffefa 58%);
}

.announcement-card p,
.announcement-read p {
  margin: 0;
  color: #3f4d47;
  line-height: 1.5;
}

.announcement-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.announcement-images.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.announcement-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffefa;
}

.announcement-images.compact img:nth-child(n + 4) {
  display: none;
}

.announcement-read {
  display: grid;
  gap: 12px;
}

.letter-print {
  background: white;
  color: #202622;
  padding: 34px;
  min-height: 900px;
  display: grid;
  align-content: start;
  gap: 22px;
  font-family: Georgia, "Times New Roman", serif;
}

.letter-print header {
  border-bottom: 2px solid #202622;
  padding-bottom: 14px;
}

.letter-print h1,
.letter-print h2,
.letter-print p {
  margin: 0;
}

.letter-print h1 {
  font-size: 24px;
}

.letter-print h2 {
  text-align: center;
  text-transform: uppercase;
  font-size: 20px;
  margin-top: 12px;
}

.letter-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.letter-body {
  line-height: 1.7;
  white-space: normal;
}

.letter-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 42px;
}

.letter-signatures div {
  border-top: 1px solid #202622;
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.rev-handover-panel .readonly-field {
  white-space: normal;
  line-height: 1.45;
  font-weight: 700;
}

.rev-section-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rev-section-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.92));
  display: grid;
  gap: 8px;
}

.rev-section-card.is-critical {
  border-color: rgba(239, 95, 95, 0.26);
  box-shadow: inset 0 0 0 1px rgba(239, 95, 95, 0.06);
}

.rev-section-card .field {
  margin-bottom: 0;
}

.rev-section-card-head {
  display: grid;
  gap: 4px;
}

.rev-section-card-head strong {
  font-size: 15px;
}

.rev-section-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rev-area-guide {
  border: 1px solid rgba(32, 37, 33, 0.08);
  border-radius: 10px;
  background: rgba(249, 252, 250, 0.9);
  padding: 0 10px;
}

.rev-area-guide summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 800;
  color: #395048;
}

.rev-area-guide summary::-webkit-details-marker {
  display: none;
}

.rev-area-guide[open] summary {
  padding-bottom: 8px;
}

.rev-area-guide div {
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rev-section-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rev-section-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f6f2;
  color: #49554f;
  font-size: 12px;
  font-weight: 800;
}

.rev-section-chip-list .is-pass {
  background: rgba(37, 167, 102, 0.12);
  color: #1f7d51;
}

.rev-section-chip-list .is-fail {
  background: rgba(239, 95, 95, 0.12);
  color: #a73838;
}

.rev-heatmap-table td .badge {
  margin-bottom: 6px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(25, 31, 28, 0.38);
  display: grid;
  place-items: end center;
  padding: 18px;
}

.modal {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.modal h3 {
  margin: 0;
  font-size: 20px;
}

.modal-body {
  padding: 16px;
}

.modal-actions {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-tabs {
  display: none;
}

.sidebar-scrim {
  display: none;
}

@media (max-width: 980px) {
  .rev-section-grid-inner {
    grid-template-columns: 1fr;
  }

  .login-screen,
  .shell,
  .grid.metrics,
  .grid.two,
  .grid.three,
  .payroll-export-head,
  .payroll-export-summary,
  .payroll-export-footer,
  .attendance-adjustment-head,
  .attendance-adjustment-row,
  .manual-function-grid,
  .store-command,
  .store-work-grid,
  .tablet-clock-grid,
  .announcement-grid,
  .article-grid,
  .application-board,
  .application-type-grid {
    grid-template-columns: 1fr;
  }

  #app,
  .shell,
  .workspace,
  .tablet-shell,
  .topbar,
  .content {
    width: 100%;
    max-width: 100vw;
  }

  .shell,
  .workspace,
  .content {
    overflow-x: clip;
  }

  .application-section-head {
    align-items: start;
  }

  .application-action-toolbar {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .redemption-live-summary {
    grid-template-columns: 1fr;
  }

  .shell {
    height: 100vh;
    overflow: hidden;
  }

  .login-visual {
    min-height: 38vh;
    padding: 28px;
    background: transparent;
  }

  .login-visual > div:last-child {
    width: min(100%, 540px);
    justify-items: center;
    align-content: center;
    margin: 0 auto;
    transform: none;
  }

  .login-screen {
    column-gap: 0;
  }

  .login-visual > .brand-mark {
    position: static;
    justify-self: start;
    align-self: start;
    margin-bottom: 26px;
  }

  .hero-brand {
    justify-self: center;
    align-self: center;
    gap: 10px;
    padding: 9px 14px 9px 12px;
    margin-bottom: 34px;
    font-size: 52px;
  }

  .hero-symbol-card.app-icon {
    width: 60px;
    height: 60px;
    min-height: 0;
    border-radius: 15px;
    padding: 0;
  }

  .hero-app-icon {
    width: 60px;
    height: 60px;
  }

  .hero-symbol-card.app-icon .symbol {
    width: 20px;
    height: 20px;
  }

  .hero-symbol-card.app-icon .symbol.circle,
  .hero-symbol-card.app-icon .symbol.square {
    border-width: 4.5px;
  }

  .hero-symbol-card.app-icon .symbol.square {
    border-radius: 4px;
  }

  .hero-symbol-card.app-icon .symbol.triangle {
    width: 23px;
    height: 23px;
  }

  .hero-symbol-card.app-icon .symbol.plus::before,
  .hero-symbol-card.app-icon .symbol.plus::after {
    width: 22px;
    height: 5.5px;
  }

  .hero-symbol-card {
    width: min(250px, 82vw);
    min-height: 250px;
    padding: 32px;
    gap: 14px;
    margin-bottom: 24px;
  }

  .symbol {
    width: 68px;
    height: 68px;
  }

  .symbol.circle,
  .symbol.square {
    border-width: 12px;
  }

  .symbol.square {
    border-radius: 17px;
  }

  .symbol.triangle {
    width: 86px;
    height: 86px;
  }

  .symbol.plus::before,
  .symbol.plus::after {
    width: 78px;
    height: 16px;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(310px, 88vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 24;
    border: 0;
    padding: 0;
    background: rgba(32, 37, 33, 0.16);
    backdrop-filter: blur(2px);
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 24px;
    line-height: 44px;
    font-weight: 1000;
    text-align: center;
  }

  .topbar .mobile-menu {
    font-size: 0;
    line-height: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .topbar .mobile-menu::before {
    content: none;
  }

  .menu-lines {
    width: 19px;
    display: grid;
    gap: 3.5px;
    place-items: center;
  }

  .menu-lines i {
    width: 19px;
    height: 2.5px;
    border-radius: 999px;
    background: currentColor;
    display: block;
  }

  .topbar {
    top: 0;
    z-index: 25;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    background: rgba(251, 250, 246, 0.96);
    box-shadow: 0 10px 24px rgba(53, 62, 56, 0.06);
  }

  .topbar.topbar-scrolled {
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 28px rgba(53, 62, 56, 0.09);
    transform: translateY(0);
  }

  .topbar.topbar-compact-store {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(53, 62, 56, 0.05);
  }

  .topbar.topbar-compact-store.topbar-scrolled {
    background: rgba(255, 252, 246, 0.94);
    box-shadow: 0 8px 18px rgba(53, 62, 56, 0.05);
  }

  .topbar-title-pill {
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar h1 {
    font-size: 17px;
    line-height: 1;
  }

  .topbar.topbar-compact-store h1 {
    font-size: 18px;
    line-height: 1;
  }

  .topbar-title-copy .muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar.topbar-compact-store .topbar-title-copy .muted {
    font-size: 11px;
  }

  .brand-switcher {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .brand-switcher span {
    width: 44px;
    flex: 0 0 auto;
  }

  .brand-switcher select {
    flex: 1;
    width: 100%;
  }

  .content {
    scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px));
    padding: 14px;
    padding-top: 16px;
    padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
  }

  .tablet-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }

  .tablet-topbar .brand-mark {
    width: 100%;
    font-size: 20px;
  }

  .tablet-topbar button {
    width: 100%;
    margin-left: 0;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar input,
  .toolbar select,
  .toolbar button {
    width: 100%;
    min-width: 0;
  }

  .brand-settings-item {
    grid-template-columns: 1fr;
  }

  .brand-settings-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .brand-settings-actions button {
    width: 100%;
    min-width: 0;
  }

  .user-chip {
    justify-content: end;
    max-width: 190px;
  }

  .user-chip .muted {
    display: none;
  }

  .user-chip strong {
    display: block;
    max-width: 62px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-profile-trigger {
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .user-chip .ghost {
    min-width: 36px;
    padding: 0;
  }

  .topbar.topbar-compact-store .avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .topbar.topbar-compact-store .user-chip {
    max-width: 188px;
    gap: 6px;
  }

  .card {
    padding: 14px;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .metric {
    min-height: 76px;
    padding: 10px 12px;
  }

  .metric strong {
    font-size: 22px;
  }

  .kpi-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .kpi-compact-item {
    min-height: 58px;
    padding: 8px 9px;
  }

  .kpi-compact-item span {
    font-size: 11px;
  }

  .kpi-compact-item strong {
    font-size: 20px;
  }

  .kpi-compact-item.kpi-wide {
    grid-column: span 2;
  }

  .store-game-board-layout {
    grid-template-columns: 1fr;
  }

  .store-tablet-main-grid,
  .tablet-dashboard-layout,
  .store-tablet-support-grid,
  .tablet-category-grid,
  .store-tablet-support-grid .store-timer-grid {
    grid-template-columns: 1fr;
  }

  .tablet-category-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .tablet-category-sidebar-title {
    grid-column: 1 / -1;
  }

  .tablet-category-summary {
    min-height: 58px;
  }

  .daily-targets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .daily-targets div {
    padding: 8px;
  }

  .daily-targets strong {
    font-size: 15px;
  }

  .redemption-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .redemption-rules-head button {
    width: 100%;
  }

  .redemption-rule-grid div {
    min-height: 66px;
    padding: 9px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 640px;
    font-size: 13px;
  }

  th,
  td {
    padding: 9px;
  }

  .staff-name-cell {
    align-items: flex-start;
  }

  .staff-photo {
    width: 38px;
    height: 48px;
  }

  .staff-table-wrap .staff-name-cell {
    gap: 9px;
  }

  .staff-table-wrap .staff-name-cell > div {
    gap: 2px;
  }

  .staff-table-wrap .staff-name-cell strong {
    font-size: 15px;
  }

  .staff-table-wrap .muted {
    font-size: 12px;
    line-height: 1.35;
  }

  .modal-backdrop {
    padding: 8px;
    place-items: end center;
  }

  .modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 12px 12px 0 0;
  }

  .modal-actions {
    position: sticky;
    bottom: 0;
    background: white;
  }

  .modal-actions button {
    flex: 1;
  }

  .mobile-tabs {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(220, 227, 221, 0.96);
    box-shadow: 0 -16px 34px rgba(35, 45, 40, 0.08);
    backdrop-filter: blur(20px) saturate(1.08);
    width: 100vw;
    max-width: 100vw;
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 5px;
  }

  .mobile-tabs button {
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 5px 2px;
    line-height: 1;
    letter-spacing: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }

  .mobile-tabs button > .mobile-tab-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 44px;
    margin: 0 auto;
    border-radius: 999px;
    line-height: 1;
    color: currentColor;
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
  }

  .mobile-tabs .nav-icon {
    width: 46px;
    height: 40px;
    flex: 0 0 46px;
  }

  .mobile-tabs .nav-icon svg {
    width: 33px;
    height: 33px;
    stroke-width: 2;
  }

  .mobile-tabs .nav-badge {
    position: absolute;
    top: -3px;
    right: -1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 9px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 12px rgba(244, 93, 93, 0.28);
  }

  .mobile-tabs button.active {
    color: var(--brand);
    background: transparent;
    box-shadow: none;
  }

  .mobile-tabs button.active > .mobile-tab-icon {
    background: transparent;
    transform: translateY(-1px);
  }

  .mobile-tabs button:not(.active):hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .mobile-tabs button:active {
    transform: translateY(1px);
  }

  .list-item {
    flex-direction: column;
  }

  .manual-function-row {
    grid-template-columns: 1fr;
  }

  .tablet-person {
    align-items: stretch;
  }

  .ranking-item {
    grid-template-columns: 34px 1fr;
    align-items: start;
  }

  .ranking-item > strong {
    grid-column: 2;
    justify-self: start;
  }

  .schedule-axis,
  .schedule-day {
    grid-template-columns: 1fr;
  }

  .schedule-axis {
    display: grid;
    margin-bottom: 2px;
  }

  .schedule-axis > span {
    display: none;
  }

  .schedule-day {
    gap: 4px;
  }

  .schedule-template table {
    min-width: 720px;
  }

  .schedule-template select,
  .schedule-template input {
    min-width: 112px;
  }

  .schedule-chart {
    padding: 10px;
    gap: 7px;
  }

  .schedule-bar-row span {
    min-height: 0;
    font-size: 10px;
    padding: 0;
  }

  .schedule-bar-row {
    min-height: 22px;
    border-radius: 6px;
    display: grid;
    align-content: center;
  }

  .schedule-bar-track i {
    top: 50%;
    height: 5px;
    bottom: auto;
  }

  .focus-detail > div {
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(circle at 20% 18%, rgba(255, 242, 168, 0.34), transparent 36%),
      var(--bg);
  }

  .topbar {
    background: rgba(251, 250, 246, 0.96);
  }

  .topbar h1 {
    font-size: 18px;
  }

  .topbar .muted {
    font-size: 12px;
  }

  .brand-switcher {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .avatar {
    width: 36px;
    height: 36px;
  }

  .schedule-axis-labels {
    display: block;
    padding: 0;
    min-height: 18px;
  }

  .schedule-axis-labels > span {
    display: none;
  }

  .schedule-axis-labels > div span {
    font-size: 10px;
  }

  .schedule-hour-grid {
    display: block;
    padding: 0;
  }

  .schedule-hour-grid > span {
    display: none;
  }

  .schedule-hour-grid > div {
    height: 100%;
  }

  .schedule-bar-row {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 28px;
    padding: 0 6px;
  }

  .schedule-bar-track {
    width: 100%;
    height: 9px;
  }

  .store-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-game-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-timer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .break-plan-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .break-plan-item .badge {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .store-energy-mini {
    grid-column: 1 / -1;
  }

  .dashboard-quick-grid {
    grid-template-columns: 1fr;
  }

  .compact-metric {
    min-height: 54px;
    padding: 8px;
  }

  .compact-metric strong {
    font-size: 20px;
  }

  .profile-photo-guide > div {
    grid-template-columns: 1fr;
  }

  .profile-photo-guide img {
    max-width: 180px;
    justify-self: center;
  }

  .store-important-item,
  .tablet-person {
    align-items: stretch;
    flex-direction: column;
  }

  .store-task-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .store-task-icon {
    width: 40px;
    height: 40px;
  }

  .store-task-action {
    grid-column: 1 / -1;
  }

  .tablet-person-compact {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tablet-person-compact .toolbar {
    grid-column: 1 / -1;
  }

  .store-important-item .badge,
  .store-important-item .small-btn,
  .tablet-person .toolbar button {
    width: 100%;
    justify-content: center;
  }

  .today-focus-compact {
    padding: 10px;
  }

  .dashboard-drawer summary {
    min-height: 50px;
    padding: 0 12px;
  }

  .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-head h2 {
    font-size: 24px;
    line-height: 1.1;
  }

  .section-head p {
    font-size: 16px;
    line-height: 1.28;
  }

  .card {
    padding: 12px;
  }

  .streak-strip,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .team-energy,
  .reward-teaser {
    align-items: flex-start;
    flex-direction: column;
  }

  .energy-score {
    width: 100%;
    height: 64px;
    border-radius: 14px;
  }

  .energy-meter {
    width: 100%;
    min-width: 0;
  }

  .mission-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .mission-icon {
    width: 46px;
    height: 46px;
  }

  .mission-points-wrap {
    grid-column: 2;
    justify-items: start;
  }

  .mission-progress {
    grid-column: 1 / -1;
  }

  .task-stack-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .task-stack-meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .celebration {
    top: 12px;
    padding: 12px;
  }

  .celebration img {
    width: 54px;
    height: 54px;
  }

  .celebration strong {
    font-size: 18px;
  }

  .card .section-head h2 {
    font-size: 22px;
  }

  .list-item {
    padding: 10px;
  }

  .table-wrap:not(.schedule-template) {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .table-wrap:not(.schedule-template) table,
  .table-wrap:not(.schedule-template) tbody,
  .table-wrap:not(.schedule-template) tr,
  .table-wrap:not(.schedule-template) td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .table-wrap:not(.schedule-template) thead {
    display: none;
  }

  .table-wrap:not(.schedule-template) tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 8px 18px rgba(53, 62, 56, 0.045);
    overflow: hidden;
  }

  .table-wrap:not(.schedule-template) td {
    display: grid;
    grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  .table-wrap:not(.schedule-template) td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .table-wrap:not(.schedule-template) td:not([data-label]) {
    display: block;
  }

  .table-wrap:not(.schedule-template) td:not([data-label])::before {
    content: none;
  }

  .table-wrap:not(.schedule-template) td:last-child {
    border-bottom: 0;
  }

  .table-wrap:not(.schedule-template) tbody tr:hover td {
    background: transparent;
  }

  .table-wrap:not(.schedule-template) .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .table-wrap:not(.schedule-template) .toolbar button {
    width: 100%;
  }

  .staff-table-wrap.table-wrap:not(.schedule-template) tr {
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .staff-table-wrap.table-wrap:not(.schedule-template) td {
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 9px 11px;
  }

  .staff-table-wrap.table-wrap:not(.schedule-template) td::before {
    padding-top: 2px;
  }

  .staff-table-wrap .staff-cell-position,
  .staff-table-wrap .staff-cell-hr,
  .staff-table-wrap .staff-cell-progress,
  .staff-table-wrap .staff-cell-points {
    align-items: start;
  }

  .staff-table-wrap .staff-cell-points strong {
    font-size: 18px;
  }

  .staff-table-wrap .staff-cell-actions .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .staff-table-wrap .staff-cell-actions .toolbar button {
    min-width: 0;
  }

  .schedule-template {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .schedule-template table,
  .schedule-template tbody,
  .schedule-template tr,
  .schedule-template td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .schedule-template thead {
    display: none;
  }

  .schedule-day-group {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    background: var(--panel);
    box-shadow: 0 8px 18px rgba(53, 62, 56, 0.045);
  }

  .schedule-day-theme-0 {
    background: linear-gradient(180deg, rgba(201, 245, 223, 0.36), #fffefa 72%);
    border-color: rgba(0, 169, 145, 0.24);
  }

  .schedule-day-theme-1 {
    background: linear-gradient(180deg, rgba(255, 242, 168, 0.42), #fffefa 72%);
    border-color: rgba(244, 166, 42, 0.24);
  }

  .schedule-day-theme-2 {
    background: linear-gradient(180deg, rgba(216, 237, 255, 0.52), #fffefa 72%);
    border-color: rgba(75, 123, 236, 0.2);
  }

  .schedule-day-theme-3 {
    background: linear-gradient(180deg, rgba(255, 216, 199, 0.42), #fffefa 72%);
    border-color: rgba(239, 95, 95, 0.18);
  }

  .schedule-day-theme-4 {
    background: linear-gradient(180deg, rgba(234, 223, 255, 0.46), #fffefa 72%);
    border-color: rgba(92, 112, 242, 0.2);
  }

  .schedule-template tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: var(--panel);
    box-shadow: none;
  }

  .schedule-template tr:last-child {
    margin-bottom: 0;
  }

  .schedule-template td {
    padding: 0;
    border: 0;
  }

  .schedule-template td:first-child,
  .schedule-template td:nth-child(3),
  .schedule-template td:nth-child(6) {
    grid-column: 1 / -1;
  }

  .schedule-template td:first-child {
    font-size: 18px;
  }

  .schedule-template input,
  .schedule-template select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 16px;
  }

  .schedule-template input[type="time"] {
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
  }

  .schedule-template td:nth-child(2)::before,
  .schedule-template td:nth-child(3)::before,
  .schedule-template td:nth-child(4)::before,
  .schedule-template td:nth-child(5)::before,
  .schedule-template td:nth-child(6)::before {
    display: block;
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .schedule-template td:nth-child(2)::before {
    content: "Needed";
  }

  .schedule-template td:nth-child(3)::before {
    content: "Staff";
  }

  .schedule-template td:nth-child(4)::before {
    content: "Start";
  }

  .schedule-template td:nth-child(5)::before {
    content: "End";
  }

  .schedule-template td:nth-child(6)::before {
    content: "Station";
  }

  @media (max-width: 430px) {
    .schedule-template tr {
      grid-template-columns: 1fr;
    }

    .schedule-template td {
      grid-column: 1 / -1;
    }
  }

  .schedule-preview {
    overflow: visible;
  }

  .schedule-preview.compact {
    margin-bottom: 24px;
  }

  .grid.metrics {
    gap: 10px;
  }

  .payroll-export-actions,
  .payroll-export-ready {
    justify-content: stretch;
  }

  .payroll-export-actions button,
  .payroll-export-ready a {
    width: 100%;
  }

  .login-panel {
    padding: 14px;
  }

  .login-card {
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }

  .login-card {
    padding: 20px;
  }

  .store-login {
    display: none;
  }

  .login-visual h1 {
    font-size: 34px;
    max-width: 11ch;
  }

  .login-visual p {
    font-size: 15px;
    max-width: 27ch;
  }
}
