:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #191815;
  --muted: #6d6a63;
  --line: #e7e3da;
  --paper: #fffdf8;
  --surface: #f5f1e8;
  --surface-strong: #ece5d8;
  --brand: #b53d2e;
  --brand-dark: #7e291f;
  --brand-soft: #f5ded7;
  --green: #25745b;
  --green-soft: #dff1e9;
  --amber: #a66510;
  --amber-soft: #fff0cf;
  --red: #a62e2e;
  --red-soft: #f9dddd;
  --shadow: 0 18px 50px rgba(45, 37, 24, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

body {
  min-height: 100dvh;
  overscroll-behavior: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(181, 61, 46, 0.28);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.app-shell {
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 56px;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.95);
  border-bottom: 1px solid rgba(231, 227, 218, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  background: var(--ink);
  color: white;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.brand small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-time {
  display: grid;
  text-align: right;
}

.topbar-time strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.topbar-time span {
  color: var(--muted);
  font-size: 13px;
  text-transform: capitalize;
}

.icon-button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  cursor: pointer;
  font-size: 22px;
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.kiosk-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0 48px;
}

.kiosk-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

.kiosk-intro h1,
.flow-panel h1,
.admin-page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
}

.kiosk-intro p:last-child,
.flow-panel > p:not(.eyebrow),
.admin-page-heading p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.presence-pill,
.soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b8b3aa;
}

.presence-live .status-dot,
.status-dot-large {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(37, 116, 91, 0.12);
}

.status-dot-large {
  width: 11px;
  height: 11px;
  margin-right: 8px;
}

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

.employee-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 116px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 7px 24px rgba(45, 37, 24, 0.045);
  cursor: pointer;
  text-align: left;
  transition: 170ms ease;
}

.employee-card:hover {
  border-color: #cfc6b7;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.employee-card-live {
  border-color: rgba(37, 116, 91, 0.28);
  background: linear-gradient(145deg, #fffdf8, var(--green-soft));
}

.avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.avatar-large {
  width: 76px;
  height: 76px;
  margin: 0 auto 19px;
  border-radius: 24px;
  background: var(--ink);
  color: white;
  font-size: 23px;
}

.avatar-small {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 12px;
}

.employee-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.employee-card-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.employee-card-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-card-arrow {
  color: #a9a39a;
  font-size: 34px;
}

.kiosk-footnote {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 13px;
}

.kiosk-footnote strong {
  color: var(--ink);
}

.flow-panel {
  position: relative;
  width: min(590px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.flow-panel h1 {
  font-size: clamp(36px, 5vw, 52px);
}

.back-link {
  position: absolute;
  top: 24px;
  left: 24px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--brand);
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 28px 0;
}

.pin-dots span {
  width: 16px;
  height: 16px;
  border: 2px solid #bbb3a6;
  border-radius: 999px;
  transition: 120ms ease;
}

.pin-dots span.filled {
  border-color: var(--ink);
  background: var(--ink);
  transform: scale(1.08);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  justify-content: center;
  gap: 12px;
}

.keypad button {
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
  cursor: pointer;
  font-size: 23px;
  font-weight: 750;
  transition: 100ms ease;
}

.keypad button:active {
  background: var(--surface-strong);
  transform: scale(0.96);
}

.keypad .keypad-secondary {
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
}

.helper-text,
.form-help {
  margin: 22px auto 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.shift-ticket {
  display: grid;
  gap: 7px;
  margin: 28px 0 18px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
}

.shift-ticket span,
.shift-ticket small {
  color: var(--muted);
  font-size: 13px;
  text-transform: capitalize;
}

.shift-ticket strong {
  font-size: 31px;
  font-variant-numeric: tabular-nums;
}

.clocked-info {
  display: grid;
  gap: 3px;
  margin: 15px 0;
  padding: 16px 20px;
  border-radius: 17px;
  background: var(--green-soft);
}

.clocked-info span,
.clocked-info small {
  color: #3f6e5d;
  font-size: 12px;
}

.clocked-info strong {
  font-size: 25px;
}

.primary-action,
.approve-button,
.reject-button,
.secondary-button {
  border: 0;
  border-radius: 17px;
  cursor: pointer;
  font-weight: 800;
  transition: 150ms ease;
}

.primary-action:hover,
.approve-button:hover,
.reject-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.primary-action {
  display: grid;
  width: 100%;
  gap: 5px;
  margin-top: 21px;
  padding: 22px;
  background: var(--green);
  color: white;
  box-shadow: 0 12px 28px rgba(37, 116, 91, 0.2);
}

.primary-action span {
  font-size: 19px;
}

.primary-action small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.danger-action {
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(181, 61, 46, 0.2);
}

.secondary-button,
.reject-button,
.approve-button {
  min-height: 48px;
  padding: 12px 17px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: white;
}

.secondary-button.compact,
.approve-button.compact {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 13px;
}

.approve-button {
  background: var(--green);
  color: white;
}

.reject-button {
  background: var(--red-soft);
  color: var(--red);
}

.full-width {
  width: 100%;
}

.receipt-check {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 38px;
  font-weight: 800;
}

.receipt-detail {
  margin: 24px 0;
  padding: 17px 20px;
  border-radius: 17px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.admin-login {
  display: grid;
  min-height: calc(100dvh - 92px);
  place-items: center;
  padding: 40px 20px;
}

.admin-lock {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 22px;
  background: var(--surface-strong);
  font-size: 27px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100dvh - 92px);
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  height: calc(100dvh - 92px);
  flex-direction: column;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 24px;
  border-bottom: 1px solid var(--line);
}

.admin-user > span:last-child {
  display: grid;
  gap: 2px;
}

.admin-user small {
  color: var(--muted);
  font-size: 12px;
}

.admin-nav {
  display: grid;
  gap: 5px;
  margin-top: 22px;
}

.admin-nav-button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.admin-nav-button:hover {
  background: var(--surface);
  color: var(--ink);
}

.admin-nav-button.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.admin-nav-button strong {
  font-size: 14px;
}

.admin-nav-button em {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 99px;
  background: var(--brand);
  color: white;
  font-size: 11px;
  font-style: normal;
}

.sidebar-logout {
  margin-top: auto;
  padding: 13px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.admin-content {
  min-width: 0;
  padding: clamp(26px, 4vw, 52px);
}

.admin-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.admin-page-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 50px);
}

.admin-page-heading p:last-child {
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 19px;
}

.metric-card,
.panel-card,
.validation-card,
.notice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 5px 20px rgba(45, 37, 24, 0.035);
}

.metric-card {
  display: grid;
  gap: 5px;
  min-height: 140px;
  align-content: center;
  padding: 22px;
}

.metric-card > span,
.metric-card small {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
}

.metric-live {
  border-color: rgba(37, 116, 91, 0.22);
  background: linear-gradient(145deg, var(--paper), var(--green-soft));
}

.metric-warning {
  border-color: rgba(166, 101, 16, 0.22);
  background: linear-gradient(145deg, var(--paper), var(--amber-soft));
}

.metric-danger {
  border-color: rgba(166, 46, 46, 0.2);
  background: linear-gradient(145deg, var(--paper), var(--red-soft));
}

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

.panel-card {
  min-width: 0;
  padding: 23px;
}

.panel-heading,
.planning-day-heading,
.validation-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2,
.planning-day-heading h2,
.validation-person h2 {
  margin: 0;
  font-size: 24px;
}

.panel-heading .eyebrow,
.planning-day-heading .eyebrow,
.validation-person .eyebrow {
  margin-bottom: 4px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.live-list,
.compact-shifts,
.request-rows,
.team-list,
.planning-shift-list {
  display: grid;
}

.live-row,
.compact-shift-row,
.request-row,
.team-row,
.planning-shift-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.live-row:first-child,
.compact-shift-row:first-child,
.request-row:first-child,
.team-row:first-child,
.planning-shift-row:first-child {
  border-top: 0;
}

.live-row {
  grid-template-columns: 52px 1fr auto;
}

.live-row > div:nth-child(2),
.compact-shift-row > div,
.request-row > div,
.team-row > div,
.planning-shift-row > div {
  display: grid;
  gap: 2px;
}

.live-row small,
.compact-shift-row small,
.request-row small,
.team-row small,
.planning-shift-row small,
.attendance-table small {
  color: var(--muted);
  font-size: 11px;
}

.live-shift {
  text-align: right;
}

.live-shift span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.compact-shift-row {
  grid-template-columns: 48px 38px minmax(0, 1fr) auto;
}

.compact-time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.table-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-live,
.status-ok {
  background: var(--green-soft);
  color: var(--green);
}

.status-warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-alert {
  background: var(--red-soft);
  color: var(--red);
}

.status-future {
  background: var(--surface);
  color: var(--muted);
}

.dashboard-validation,
.history-card,
.audit-card {
  margin-top: 19px;
}

.request-row {
  grid-template-columns: 38px 1fr auto;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 38px 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 99px;
  background: var(--surface);
  font-size: 28px;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state p {
  max-width: 370px;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.validation-stack {
  display: grid;
  gap: 18px;
}

.validation-card {
  padding: 25px;
}

.validation-person {
  justify-content: flex-start;
}

.validation-person > div {
  flex: 1;
}

.validation-person > div > span {
  color: var(--muted);
  font-size: 12px;
}

.minutes-badge {
  padding: 10px 13px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 17px;
}

.time-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 22px 0;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
}

.time-comparison > div {
  display: grid;
  gap: 4px;
}

.time-comparison > div:last-child {
  text-align: right;
}

.time-comparison span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.time-comparison strong {
  font-size: 28px;
}

.comparison-arrow {
  font-size: 23px !important;
}

.validation-rule {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.validation-actions {
  display: grid;
  grid-template-columns: auto minmax(130px, 180px) auto auto;
  align-items: end;
  gap: 10px;
}

.custom-minutes {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.custom-minutes > span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.custom-minutes input {
  width: 86px;
  height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-weight: 800;
}

.attendance-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.attendance-toolbar > label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.attendance-toolbar input,
.form-stack input,
.form-stack select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
}

.attendance-total {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 10px;
  margin-left: auto;
}

.attendance-total span,
.attendance-total small {
  color: var(--muted);
  font-size: 11px;
}

.attendance-total strong {
  font-size: 22px;
}

.attendance-total small {
  grid-column: 1 / -1;
  text-align: right;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.attendance-table-wrap {
  overflow-x: auto;
}

.attendance-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.attendance-table th,
.attendance-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.attendance-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.attendance-table td {
  font-size: 13px;
}

.attendance-table td > strong,
.attendance-table td > small {
  display: block;
}

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

.planning-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.planning-form-card {
  position: sticky;
  top: 116px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.planning-days {
  display: grid;
  gap: 14px;
}

.planning-day-heading {
  margin-bottom: 8px;
}

.planning-shift-row {
  grid-template-columns: 38px minmax(0, 1fr) auto 34px;
}

.planning-hours {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.row-delete {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
}

.row-delete:hover:not(:disabled) {
  background: var(--red-soft);
  color: var(--red);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 18px;
}

.team-add-card {
  position: sticky;
  top: 116px;
}

.team-row {
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
}

.team-row-inactive {
  opacity: 0.58;
}

.notice-card {
  margin-bottom: 18px;
  padding: 18px 20px;
}

.notice-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.warning-notice {
  border-color: rgba(166, 101, 16, 0.25);
  background: var(--amber-soft);
}

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

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

.action-list .secondary-button {
  display: grid;
  justify-items: start;
  text-align: left;
}

.action-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.danger-card {
  border-color: rgba(166, 46, 46, 0.18);
}

.danger-card > p,
.audit-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 44px));
  padding: 15px 18px;
  border-radius: 15px;
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 750;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  background: var(--red);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

  .validation-actions {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 76px;
    padding: 11px 16px;
  }

  .topbar-time {
    display: none;
  }

  .icon-button {
    width: 48px;
    height: 48px;
  }

  .brand-mark {
    width: 47px;
    height: 47px;
  }

  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    position: sticky;
    top: 76px;
    z-index: 10;
    display: block;
    width: 100%;
    height: auto;
    padding: 8px 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-user,
  .sidebar-logout {
    display: none;
  }

  .admin-nav {
    display: flex;
    width: max-content;
    margin: 0;
  }

  .admin-nav-button {
    display: flex;
    min-width: max-content;
  }

  .admin-content {
    padding: 28px 18px;
  }

  .dashboard-grid,
  .planning-layout,
  .team-layout {
    grid-template-columns: 1fr;
  }

  .planning-form-card,
  .team-add-card {
    position: static;
  }

  .attendance-toolbar {
    flex-wrap: wrap;
  }

  .attendance-total {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .kiosk-content {
    width: min(100% - 24px, 1120px);
    padding-top: 28px;
  }

  .kiosk-intro {
    display: grid;
    align-items: start;
  }

  .employee-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .employee-card {
    min-height: 96px;
    padding: 17px;
  }

  .kiosk-footnote {
    display: grid;
    text-align: center;
  }

  .flow-panel {
    padding: 30px 18px;
    border-radius: 24px;
  }

  .back-link {
    position: static;
    display: block;
    margin: 0 auto 22px 0;
  }

  .keypad {
    grid-template-columns: repeat(3, minmax(62px, 76px));
  }

  .admin-page-heading {
    display: grid;
  }

  .validation-person {
    flex-wrap: wrap;
  }

  .minutes-badge {
    margin-left: 64px;
  }

  .time-comparison {
    gap: 10px;
    padding: 15px;
  }

  .time-comparison strong {
    font-size: 23px;
  }

  .validation-actions {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 46px 1fr auto;
  }

  .team-row .secondary-button {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
