:root {
  --bg: #fff4f8;
  --bg-deep: #f3efe6;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-dark: #173a35;
  --text: #282024;
  --muted: #71646a;
  --primary: #e92b8f;
  --primary-dark: #b8176b;
  --primary-soft: rgba(233, 43, 143, 0.12);
  --accent: #16a085;
  --accent-soft: rgba(22, 160, 133, 0.14);
  --warning: #f1a84f;
  --warning-soft: rgba(241, 168, 79, 0.16);
  --danger: #b64f3d;
  --border: rgba(40, 32, 36, 0.11);
  --shadow: 0 18px 45px rgba(118, 36, 81, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(150deg, var(--bg), #fffdf9 46%, var(--bg-deep));
}

button,
input,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.public-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.public-topbar-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-top-logo {
  width: clamp(130px, 16vw, 190px);
  height: auto;
  display: block;
}

.hero-brand-logo {
  width: clamp(190px, 24vw, 310px);
  height: auto;
  display: block;
  margin-bottom: 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-hero-dashboard {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 240, 248, 0.9));
  box-shadow: var(--shadow);
}

.admin-hero-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-hero-topline h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.admin-hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  min-width: min(100%, 430px);
}

.mini-stat {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(233, 43, 143, 0.96), rgba(184, 23, 107, 0.94));
  color: #f6fff8;
}

.mini-stat.negative {
  background: linear-gradient(180deg, rgba(173, 68, 55, 0.96), rgba(126, 41, 31, 0.94));
}

.mini-stat span {
  display: block;
  margin-bottom: 8px;
  color: rgba(246, 255, 248, 0.8);
  font-size: 0.84rem;
}

.mini-stat strong {
  font-size: 2rem;
}

.admin-hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.admin-balance-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(46, 36, 28, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 26px rgba(87, 62, 33, 0.08);
}

.admin-balance-card.positive {
  background: linear-gradient(180deg, rgba(239, 253, 246, 0.96), rgba(249, 255, 251, 0.92));
}

.admin-balance-card.negative {
  background: linear-gradient(180deg, rgba(255, 241, 239, 0.96), rgba(255, 250, 249, 0.92));
}

.admin-balance-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(20, 56, 47, 0.18);
}

.admin-balance-identity strong,
.admin-balance-meta strong {
  display: block;
}

.admin-balance-identity span,
.admin-balance-meta small,
.admin-balance-meta span {
  color: var(--muted);
}

.admin-balance-chart {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.admin-balance-ring {
  --ring-color: #e92b8f;
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fffaf3 57%, transparent 58%),
    conic-gradient(var(--ring-color) var(--progress), rgba(46, 36, 28, 0.08) 0);
}

.admin-balance-ring.negative {
  --ring-color: #c55345;
}

.admin-balance-ring span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffdf9;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(46, 36, 28, 0.06);
}

.admin-balance-meta {
  display: grid;
  gap: 6px;
}

.admin-empty-hero {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.hero-copy,
.clock-card,
.status-card,
.panel,
.stat-card,
.card-surface,
.modal-card,
.notice-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-copy,
.panel,
.card-surface,
.notice-card {
  backdrop-filter: blur(18px);
  background: var(--surface);
}

.hero-copy {
  padding: 28px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.94;
}

.hero-copy p:last-child {
  max-width: 62ch;
}

.hero-side {
  display: grid;
  gap: 20px;
}

.clock-card,
.status-card {
  padding: 24px;
  color: #f8fff8;
}

.clock-card {
  background: linear-gradient(160deg, #e92b8f, #7f164d);
}

.status-card {
  background: linear-gradient(160deg, #173a35, #0f2522);
}

.clock-card span,
.status-card span,
.clock-card p,
.status-card p {
  opacity: 0.84;
}

.clock-card strong,
.status-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.layout-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.3fr;
  gap: 20px;
  align-items: start;
}

.layout-grid.public-mode {
  grid-template-columns: 1fr;
}

.layout-grid.public-mode .capture-column {
  width: 100%;
}

.layout-grid.public-mode .capture-column {
  gap: 0;
}

.layout-grid.admin-mode {
  grid-template-columns: 1fr;
}

.layout-grid.admin-mode .admin-column {
  width: 100%;
}

.capture-column,
.admin-column {
  display: grid;
  gap: 20px;
}

.layout-grid.public-mode .capture-column .panel:first-child {
  min-height: calc(100vh - 110px);
  display: grid;
  align-content: start;
}

.panel {
  padding: 24px;
}

.admin-column .panel {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(248, 240, 229, 0.88));
}

.panel-header,
.section-title,
.header-actions,
.action-row,
.capture-tabs,
.admin-tabs {
  display: flex;
  gap: 12px;
}

.kiosk-header {
  align-items: center;
}

.kiosk-subcopy {
  max-width: 40ch;
}

.kiosk-clock-card {
  min-width: 250px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, #173a35, #0f2522);
  color: #f8fff8;
  box-shadow: 0 14px 28px rgba(118, 36, 81, 0.16);
}

.kiosk-clock-card span,
.kiosk-clock-card p {
  color: rgba(248, 255, 248, 0.78);
}

.kiosk-clock-card strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.panel-header,
.section-title {
  justify-content: space-between;
  align-items: flex-start;
}

.header-actions,
.action-row,
.capture-tabs,
.admin-tabs {
  flex-wrap: wrap;
}

.inline-action {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.form-title-row {
  align-items: flex-start;
  margin-bottom: 6px;
}

.employee-photo-editor {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(46, 36, 28, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.employee-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  background: linear-gradient(160deg, rgba(15, 125, 100, 0.18), rgba(241, 168, 79, 0.16));
  box-shadow: 0 10px 20px rgba(20, 56, 47, 0.12);
}

.employee-photo-input {
  display: grid;
  gap: 8px;
}

.employee-photo-input input[type="file"] {
  min-height: auto;
  padding: 12px;
}

.top-gap {
  margin-top: 18px;
}

.report-filters {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.punch-adjust-grid {
  margin-top: 20px;
}

.danger-button {
  background: #b64f3d;
  color: #fff8f6;
}

.danger-button:hover {
  background: #923b2d;
}

.capture-tabs,
.admin-tabs {
  margin: 18px 0;
}

.admin-sticky-header {
  position: sticky;
  top: 14px;
  z-index: 8;
  display: grid;
  gap: 14px;
  margin: 4px 0 22px;
  padding: 18px;
  border: 1px solid rgba(46, 36, 28, 0.08);
  border-radius: 22px;
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 28px rgba(87, 62, 33, 0.08);
}

.admin-sticky-copy {
  display: grid;
  gap: 4px;
}

.admin-sticky-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
}

.admin-sticky-copy strong {
  font-size: 1.05rem;
  color: var(--text);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
}

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

p,
.feedback,
.section-title p,
.panel-header p,
.notice-card p,
.plain-list {
  color: var(--muted);
}

.tab-button,
button {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

button {
  min-height: 48px;
  padding: 0 18px;
  background: var(--primary);
  color: #f4fff9;
  font-weight: 700;
}

button:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.secondary-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.55);
}

.tab-button {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

.tab-button.active {
  background: var(--primary);
  color: #f8fff8;
}

.capture-box,
.split-grid,
.reports-grid {
  display: grid;
  gap: 18px;
}

.capture-box {
  grid-template-columns: 1fr;
}

.layout-grid.public-mode .capture-box {
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  align-items: stretch;
  min-height: 44vh;
}

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

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

.field-span-2 {
  grid-column: 1 / -1;
}

.workdays-fieldset {
  margin: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.workdays-fieldset legend {
  padding: 0 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.weekly-minutes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}

.weekly-minutes-grid label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-weight: 600;
}

.workdays-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
}

.top-gap {
  margin-top: 8px;
}

.reports-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.individual-sheet-card {
  display: grid;
  gap: 18px;
}

.employee-report-panel {
  display: grid;
  gap: 18px;
}

.employee-report-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.employee-report-form button {
  min-height: 48px;
}

.employee-report-actions {
  display: flex;
  justify-content: flex-end;
}

.employee-report-preview {
  overflow-x: auto;
}

.individual-sheet-preview {
  padding: 24px;
  border: 1px solid rgba(46, 36, 28, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 242, 0.96)),
    radial-gradient(circle at top right, rgba(15, 125, 100, 0.08), transparent 28%);
}

.empty-sheet-copy {
  margin: 0;
  color: var(--muted);
}

.individual-sheet-print-area {
  display: grid;
  gap: 18px;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(46, 36, 28, 0.14);
}

.sheet-kicker {
  margin: 0 0 6px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.sheet-header h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.sheet-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.sheet-balance-summary {
  min-width: 210px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(46, 36, 28, 0.12);
  text-align: right;
}

.sheet-balance-summary span,
.sheet-meta-grid span,
.sheet-total-chip span,
.sheet-signature-block span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.sheet-balance-summary strong {
  font-size: 1.6rem;
}

.sheet-balance-summary strong.positive,
.sheet-balance-cell.positive strong {
  color: var(--primary);
}

.sheet-balance-summary strong.negative,
.sheet-balance-cell.negative strong {
  color: var(--danger);
}

.sheet-balance-summary strong.neutral,
.sheet-balance-cell.neutral strong {
  color: var(--muted);
}

.sheet-meta-grid,
.sheet-total-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sheet-meta-grid article,
.sheet-total-chip {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(46, 36, 28, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.sheet-total-chip.positive {
  background: rgba(15, 125, 100, 0.08);
}

.sheet-total-chip.negative {
  background: rgba(182, 79, 61, 0.08);
}

.sheet-total-chip.neutral {
  background: rgba(46, 36, 28, 0.05);
}

.sheet-meta-grid strong,
.sheet-total-chip strong {
  font-size: 1.05rem;
}

.sheet-table-wrapper {
  overflow-x: auto;
}

.sheet-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  overflow: hidden;
}

.sheet-table th,
.sheet-table td {
  padding: 12px 10px;
  border: 1px solid rgba(46, 36, 28, 0.1);
  vertical-align: middle;
  text-align: left;
}

.sheet-table thead th {
  background: rgba(22, 53, 47, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.sheet-day-cell strong,
.sheet-day-cell span,
.sheet-balance-cell strong,
.sheet-balance-cell span {
  display: block;
}

.sheet-day-cell span,
.sheet-balance-cell span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.sheet-row.positive td {
  background: rgba(15, 125, 100, 0.04);
}

.sheet-row.negative td {
  background: rgba(182, 79, 61, 0.05);
}

.sheet-signature-cell {
  min-width: 150px;
}

.sheet-footer {
  display: grid;
  gap: 12px;
}

.sheet-signature-line {
  height: 1px;
  margin-top: 44px;
  background: rgba(46, 36, 28, 0.8);
}

.sheet-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.layout-grid.admin-mode .split-grid {
  grid-template-columns: minmax(460px, 1fr) minmax(520px, 1.45fr);
  align-items: start;
  gap: 20px;
}

.layout-grid.admin-mode .employee-split-grid {
  grid-template-columns: minmax(520px, 1.05fr) minmax(620px, 1.55fr);
}

.layout-grid.admin-mode .reports-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.layout-grid.admin-mode .panel {
  padding: 30px;
}

.layout-grid.admin-mode .admin-tabs {
  margin: 0;
}

.layout-grid.admin-mode .card-surface {
  min-height: 100%;
}

.layout-grid.admin-mode .table-wrapper {
  min-height: 260px;
}

.layout-grid.admin-mode .section-title {
  margin-bottom: 16px;
}

.layout-grid.admin-mode label {
  font-weight: 500;
}

.layout-grid.admin-mode input,
.layout-grid.admin-mode select {
  min-height: 50px;
  background: rgba(255, 255, 255, 0.88);
}

.layout-grid.admin-mode .stack-form {
  align-content: start;
}

.layout-grid.admin-mode .stats-grid {
  gap: 18px;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(46, 36, 28, 0.1);
  background: var(--surface-strong);
  color: var(--text);
}

.card-surface {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 239, 0.82));
  box-shadow: 0 10px 26px rgba(87, 62, 33, 0.08);
}

.notice-card {
  margin-bottom: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(241, 168, 79, 0.14), rgba(255, 255, 255, 0.78));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.stat-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.stat-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.stat-card strong {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(46, 36, 28, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(46, 36, 28, 0.08);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(244, 235, 221, 0.9);
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:nth-child(even) {
  background: rgba(255, 252, 247, 0.72);
}

tbody tr:hover {
  background: rgba(15, 125, 100, 0.06);
}

.compact-table th,
.compact-table td {
  padding: 12px 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.status-pill.break {
  background: var(--accent-soft);
  color: #8c5815;
}

.status-pill.absent {
  background: rgba(182, 79, 61, 0.12);
  color: var(--danger);
}

.status-pill.done {
  background: rgba(20, 73, 54, 0.12);
  color: #1e5641;
}

.qr-preview {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(245, 235, 220, 0.7));
  border: 1px solid rgba(46, 36, 28, 0.08);
}

.layout-grid.public-mode .qr-preview {
  height: 100%;
  align-content: center;
  padding: 24px;
  border-radius: 28px;
}

.qr-frame {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(233, 43, 143, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(233, 43, 143, 0.14) 1px, transparent 1px),
    #fffefb;
  background-size: 24px 24px;
  border: 2px solid rgba(233, 43, 143, 0.26);
  overflow: hidden;
}

.layout-grid.public-mode .qr-frame {
  width: min(100%, 520px);
  min-height: 34vh;
  max-height: 420px;
  aspect-ratio: auto;
  margin: 0 auto;
}

.layout-grid.public-mode .capture-tabs {
  margin: 22px 0 18px;
}

.layout-grid.public-mode .stack-form {
  align-content: center;
}

.layout-grid.public-mode .panel {
  padding: 28px;
}

.layout-grid.public-mode .feedback {
  margin-top: 18px;
  font-size: 1rem;
}

.qr-camera-shell {
  display: grid;
  place-items: center;
}

.qr-reader {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.qr-reader,
.qr-reader > div,
.qr-reader section {
  width: 100% !important;
  height: 100% !important;
}

.qr-reader > div,
.qr-reader section {
  position: absolute !important;
  inset: 0;
}

.qr-reader video,
.qr-reader canvas {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: 26px;
}

.qr-reader #qr-shaded-region {
  border-width: 0 !important;
}

.qr-reader__dashboard_section,
.qr-reader__dashboard_section_csr {
  display: none !important;
}

.scan-line {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(233, 43, 143, 0.82), transparent);
  animation: scan 2.4s linear infinite;
  z-index: 1;
}

.feedback {
  min-height: 22px;
  margin: 14px 0 0;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li + li {
  margin-top: 8px;
}

.qr-sheet-header {
  margin-top: 20px;
}

.employee-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.qr-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(46, 36, 28, 0.1);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.qr-card-photo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(46, 36, 28, 0.08);
  box-shadow: 0 10px 20px rgba(87, 62, 33, 0.12);
}

.qr-card strong {
  font-size: 1rem;
}

.qr-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.qr-card-code {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 125, 100, 0.1);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 24, 20, 0.52);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.modal-card {
  width: min(420px, 100%);
  padding: 24px;
  background: var(--surface-strong);
}

.modal-copy {
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15, 125, 100, 0.1);
  color: var(--primary-dark);
}

@keyframes scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(100% - 4px));
  }
}

@media (max-width: 1120px) {
  .layout-grid,
  .hero,
  .reports-grid,
  .split-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero-topline,
  .admin-hero-mini-stats,
  .admin-balance-chart {
    grid-template-columns: 1fr;
  }

  .admin-hero-topline {
    display: grid;
  }

  .admin-sticky-header {
    position: static;
  }

  .layout-grid.public-mode .capture-box {
    grid-template-columns: 1fr;
  }

  .layout-grid.public-mode .qr-frame {
    min-height: 360px;
  }

  .employee-form-grid,
  .employee-report-form,
  .workdays-grid,
  .weekly-minutes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet-header,
  .sheet-meta-grid,
  .sheet-total-chips {
    grid-template-columns: 1fr;
  }

  .sheet-header {
    display: grid;
  }

  .sheet-balance-summary {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .employee-report-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .panel,
  .hero-copy,
  .clock-card,
  .status-card,
  .card-surface,
  .notice-card {
    animation: rise 420ms ease both;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero,
  .capture-column,
  .admin-tabs,
  .panel-header,
  #adminFeedback,
  .stack-form,
  .table-wrapper,
  .action-row,
  .header-actions,
  .notice-card,
  .card-surface > .section-title:first-child:not(.qr-sheet-header) {
    display: none !important;
  }

  .app-shell,
  .layout-grid,
  .admin-column,
  .panel,
  .card-surface {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: 0;
    background: #fff;
  }

  .employee-qr-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .qr-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    background: #fff;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
