
:root {
  --burgundy: #801302;
  --burgundy-deep: #5c0e02;
  --ink: #231f20;
  --text: #252525;
  --muted: #707070;
  --taupe: #a49e8d;
  --sand: #d2cfc7;
  --paper: #f7f5f2;
  --white: #ffffff;
  --line: #e4e0d8;
  --hero: #231f20;
  color-scheme: light;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--text);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--burgundy); }

button, input, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 2px;
}

.staging {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0;
  background: var(--burgundy);
  color: var(--white);
  text-align: center;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 10px 12px;
}

.login-page {
  padding: 20px 16px 32px;
}

.login-card {
  width: min(100%, 440px);
  margin: 0 auto;
}

.login-logo {
  width: min(240px, 70%);
  margin: 8px auto 20px;
}

h1, h2, h3 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
}

.login-card h1 {
  font-size: 2rem;
  line-height: 1.1;
}

.lede {
  margin: 6px 0 18px;
  color: var(--muted);
}

.card, .form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.form-card { padding: 18px 16px 16px; }

label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}

label:first-child { margin-top: 0; }

input[type="checkbox"], input[type="radio"] {
  width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
}

input, select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}

select { appearance: auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: var(--burgundy);
  color: var(--white);
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.button:active { background: var(--burgundy-deep); }

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

.form-error {
  margin: 14px 0 0;
  color: var(--burgundy);
  font-weight: 600;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}

.top-logo { width: 120px; flex: 0 0 auto; }

.signout {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  width: auto;
  padding: 0 14px;
  background: transparent;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
  font-size: 1rem;
}

.page {
  padding: 16px 16px calc(84px + env(safe-area-inset-bottom));
}

.welcome h1 {
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  line-height: 1.05;
}

.welcome p, .section-note, .help p, .doc p, .how-to p {
  margin: 4px 0 0;
  color: var(--muted);
}

.stack { display: grid; gap: 14px; margin-top: 16px; }

.pay-hero {
  background: var(--hero);
  color: var(--white);
  border-radius: 16px;
  padding: 18px 16px 16px;
}

.pay-hero h2, .eyebrow {
  color: var(--sand);
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0;
}

.period { margin: 8px 0 0; color: var(--white); }

.amount {
  margin: 8px 0 12px;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: clamp(2.6rem, 14vw, 3.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.pill {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
}

.card h2 { font-size: 1.45rem; }

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

.action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}

.action strong { display: block; color: var(--ink); }

.action small { color: var(--muted); }

.action-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--white);
  color: var(--burgundy);
}

.action-icon svg { width: 22px; height: 22px; fill: currentColor; }

.pay-wrap { margin-top: 12px; }

.pay-table, .pay-table tbody { display: block; width: 100%; }
.pay-table { border-collapse: collapse; }

.pay-table th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 8px;
}

.pay-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.pay-table tr {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.pay-table td {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border: 0;
}

.pay-table td::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 0.85rem;
  flex: 0 0 auto;
  text-align: left;
}

.pay-table td[data-label="Period"],
.pay-table td[data-label="Amount"] {
  justify-content: flex-start;
  text-align: left;
  font-weight: 700;
}

.pay-table td[data-label="Period"]::before,
.pay-table td[data-label="Amount"]::before {
  content: none;
}

.pay-table td[data-label="Note"] {
  align-items: flex-start;
}

.pay-table td[data-label="Note"] > span,
.pay-table td {
  text-align: right;
}

.money {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  color: var(--ink);
}

.empty {
  margin: 12px 0 0;
  padding: 16px;
  border: 1px dashed var(--sand);
  border-radius: 14px;
  color: var(--muted);
}

.docs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }

.docs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
}

.docs li.installer {
  flex-direction: column;
  align-items: stretch;
}

.view-as {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 14px;
}

.preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--burgundy);
  border-radius: 12px;
  background: var(--paper);
}

.preview-bar p { margin: 0; }

.preview-bar .button {
  width: auto;
  min-height: 44px;
  margin-top: 0;
  padding: 8px 14px;
}

.docs strong, .docs small { display: block; }
.docs small { color: var(--muted); font-weight: 400; }

.docs span {
  flex: 0 0 auto;
  color: var(--burgundy);
  font-weight: 700;
  font-size: 0.85rem;
}

.how-to ol { margin: 12px 0 0; padding-left: 1.2rem; }

.how-to li { margin: 8px 0; }

.profile-list { margin: 12px 0 0; padding: 0; list-style: none; }

.profile-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.profile-list li:first-child { border-top: 0; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.64rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.tabbar a[aria-current="page"] { color: var(--burgundy); }

.tabbar svg { width: 22px; height: 22px; fill: currentColor; }

.help-title {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.help p { margin: 0 0 8px; }

.help-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.help-actions .button { flex: 1 1 0; min-width: 0; text-align: center; }

.announcement { border-left: 4px solid var(--burgundy); }

.announcement p { margin: 0; }

textarea {
  font: inherit;
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}

.label { font-weight: 600; margin: 14px 0 6px; }

.radio-row .check { align-items: flex-start; }

.radio-row .check small { display: block; font-weight: 400; color: var(--muted); }

.radio-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 12px; }

.doc-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--line);
}

.doc-thumb-icon { display: flex; align-items: center; justify-content: center; }

.doc-thumb-icon svg { width: 26px; height: 26px; fill: var(--burgundy); }

.docs .doc-text { flex: 1 1 auto; min-width: 0; }

.installer details { width: 100%; }

.installer summary, .add-installer summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.installer summary::-webkit-details-marker, .add-installer summary::-webkit-details-marker { display: none; }

.installer summary::after, .add-installer summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--burgundy);
  border-bottom: 2px solid var(--burgundy);
  transform: rotate(45deg);
  margin: 0 6px 4px 0;
  transition: transform 0.15s;
}

.installer details[open] > summary::after, .add-installer[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }

.installer .who { min-width: 0; }

.installer .who strong { display: inline; }

.range-set input::placeholder { text-transform: none; }

.add-installer summary h2 { margin: 0; }

.installer-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.pill.admin { background: var(--ink); color: var(--white); font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; display: inline-block; vertical-align: middle; }

.week { border-radius: 12px; background: var(--paper); margin-top: 10px; padding: 12px 14px; }

.week summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

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

.week summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--burgundy);
  border-bottom: 2px solid var(--burgundy);
  transform: rotate(45deg);
  margin: 0 4px 4px 4px;
}

.week[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }

.week summary strong, .week summary small { display: block; }

.week summary small { color: var(--muted); }

.week-total { font-family: Oswald, "Arial Narrow", sans-serif; font-size: 1.25rem; color: var(--ink); white-space: nowrap; }

.jobs { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }

.jobs li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

.jobs li:last-child { border-bottom: 0; }

.jobs strong, .jobs small { display: block; }

.jobs small { color: var(--muted); }

.jobs .job-note { color: var(--burgundy); font-weight: 600; }

.jobs .money { white-space: nowrap; font-weight: 600; }

.job-group { display: flex; justify-content: space-between; margin: 14px 0 0; font-size: 1rem; color: var(--burgundy); }

.stack > *, .main, .page, #pay, .week { min-width: 0; }

.week { overflow: hidden; }

.grid-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }

.grid-nav.all-fit { display: none; }

.grid-nav button { width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--burgundy); background: var(--white); color: var(--burgundy); font-size: 1.4rem; line-height: 1; cursor: pointer; }

.grid-nav button:disabled { opacity: 0.35; cursor: default; }

.grid-count { font-size: 0.9rem; color: var(--muted); min-width: 110px; text-align: center; }

.sheet-wrap { cursor: grab; scroll-snap-type: x proximity; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }

.sheet-wrap.dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }

.sheet-table thead th:not(:first-child) { scroll-snap-align: start; }

.sheet-wrap { max-width: 100%; overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); -webkit-overflow-scrolling: touch; }

.sheet-table { border-collapse: separate; border-spacing: 0; font-size: 0.88rem; min-width: 100%; }

.sheet-table th, .sheet-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: right; white-space: nowrap; }

.sheet-table thead th { background: #e8eef8; font-weight: 600; text-align: center; white-space: normal; min-width: 110px; max-width: 160px; vertical-align: bottom; }

.sheet-table tbody th { text-align: left; font-weight: 600; }

.sheet-table th:first-child { position: sticky; left: 0; z-index: 1; background: #e8eef8; text-align: left; min-width: 150px; max-width: 170px; white-space: normal; }

.sheet-table tbody th:first-child { background: #f3f6fb; }

.sheet-table tbody tr:nth-child(even) td { background: #fafaf8; }

.sheet-table td { min-width: 96px; }

.sheet-table tr.payout td, .sheet-table tr.payout th { font-weight: 700; }

.sheet-table tr.issues td { color: var(--burgundy); font-weight: 600; text-align: center; white-space: normal; }

.sheet-table tr.section th, .sheet-table tr.section td { background: #e8eef8; font-weight: 600; text-align: left; color: var(--muted); }

.sheet-table tr.total td, .sheet-table tr.total th { font-weight: 700; background: #fdf3d0; border-bottom: 0; }

.sheet-table tr.total th:first-child { background: #fbe9a8; }

@media (max-width: 600px) {
  .sheet-table { font-size: 0.82rem; }
  .sheet-table th:first-child { min-width: 92px; max-width: 96px; font-size: 0.78rem; }
  .sheet-table thead th { min-width: 92px; max-width: 104px; }
  .sheet-table td { min-width: 84px; }
}

.pay-view { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 8px 0 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }

.pay-view .check { min-height: 32px; font-weight: 500; font-size: 0.92rem; margin: 0; }

.pay-view-label { font-weight: 700; color: var(--burgundy); }

.pay-view-apply { min-height: 32px; padding: 4px 12px; font-size: 0.85rem; }

.pay-view.js .pay-view-apply { display: none; }

.pw-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff4d6; border: 1px solid #e8c25a; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }

.pw-alert p { margin: 0; flex: 1 1 260px; }

.pw-alert.expired { background: #fbe4e1; border-color: var(--burgundy); }

.pw-alert .button { min-height: 38px; padding: 6px 14px; }

.pw-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }

.pw-item { padding: 10px 12px; border-radius: 12px; background: var(--paper); }

.pw-item > small { display: block; color: var(--muted); margin-top: 2px; }

.pw-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.pw-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }

.pw-ok { background: #e2f3e6; color: #1d6b34; }

.pw-soon { background: #fff0c2; color: #8a5a00; }

.pw-expired { background: var(--burgundy); color: var(--white); }

.pw-missing { background: #ecebe7; color: var(--muted); }

.pw-upload { margin-top: 8px; }

.pw-upload summary { cursor: pointer; color: var(--burgundy); font-weight: 600; }

.pw-upload form { margin-top: 6px; }

.pw-office .pw-item { background: var(--white); border: 1px solid var(--line); }

#paperwork h3 { font-size: 1rem; margin: 12px 0 0; color: var(--burgundy); }

.admin-shell { min-height: 100vh; }

.scale-grid { display: grid; gap: 12px; }

.es { display: block; font-size: 0.85em; font-weight: 400; color: var(--muted); }

.section-note .es { display: inline; }

.lede .es { margin-top: 4px; }

.button .es { display: inline; color: inherit; opacity: 0.85; margin-left: 4px; }

.no-phone { color: var(--burgundy); font-weight: 600; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.85rem; }

.lang-switch a { padding: 5px 10px; color: var(--ink); text-decoration: none; font-weight: 600; }

.lang-switch a[aria-current] { background: var(--burgundy); color: var(--white); }

.auth-lang { display: flex; justify-content: flex-end; margin: 0 0 6px; }

.top-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }

.lang-short { display: none; }

@media (max-width: 959px) {
  .top-actions .lang-long { display: none; }
  .top-actions .lang-short { display: inline; }
  .top-actions .signout { min-height: 38px; padding: 6px 10px; font-size: 0.9rem; width: auto; }
  .top-actions .lang-switch a { padding: 6px 8px; }
}

.top-admin { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; width: auto; }

.top-admin svg { width: 18px; height: 18px; fill: currentColor; }

.add-person .staff-only { display: none; }

.add-person:has(input[name="role"][value="staff"]:checked) .staff-only { display: inline; }

.add-person:has(input[name="role"][value="staff"]:checked) .staff-block { display: block; }

.view-only-bar { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #eef3fb; border: 1px solid #b9cbe6; }

.admin-shell.view-only .super-only, .admin-shell.view-only .super-forms form, .admin-shell.view-only .super-forms details.pw-upload, .admin-shell.view-only .super-forms .add-new, .admin-shell.view-only .super-forms details.admin-edit { display: none !important; }

.remove-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff4e5; border: 1px solid #f0c98a; }

.danger-zone form .check { margin-bottom: 12px; }

.pill.admin.view { background: #3b5b8c; }

.access-set .check-row { margin-top: 4px; }

.add-person:has(input[name="role"][value="staff"]:checked) .installer-only { display: none; }

.role-pick .check span small { display: block; color: var(--muted); font-weight: 400; }

.people-head { margin: 14px 0 4px; font-size: 1.05rem; }

.person-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }

.person-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; }

.person-row:hover { border-color: var(--burgundy); background: var(--white); }

.person-row .who { flex: 1 1 auto; min-width: 0; }

.person-row .who small { display: block; color: var(--muted); font-size: 0.82rem; }

.person-row .muted, .muted { color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.person-row .flags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

.person-row .chev { font-size: 1.6rem; color: var(--burgundy); line-height: 1; }

.person-head { margin-bottom: 16px; }

.back-link { display: inline-block; margin-bottom: 8px; color: var(--burgundy); font-weight: 700; text-decoration: none; }

.person-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }

.person-title h2 { margin: 0; font-size: 1.6rem; }

.person-title p { margin: 4px 0 0; }

.person-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.person-actions form { margin: 0; }

.person-actions .button { width: auto; }

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

@media (min-width: 760px) { .form-cols { grid-template-columns: 1fr 1fr; } .form-cols.three { grid-template-columns: repeat(3, 1fr); } }

.check-row { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0; }

.card > .range-set.pw-office { border: 0; padding: 0; margin: 0; }

.card > .range-set.pw-office > legend { font-size: 1.3rem; font-family: Oswald, "Arial Narrow", sans-serif; padding: 0; margin-bottom: 8px; }

.person-actions .button { padding: 8px 14px; white-space: nowrap; }

.biz-name { margin: 2px 0 0; font-weight: 600; color: var(--ink); }

.danger-zone { border-color: #e7c1bb; }

.overview { margin-bottom: 16px; }

.overview h2 { margin-bottom: 10px; }

.overview h3 { margin: 16px 0 6px; font-size: 1.05rem; }

.ov-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }

.ov-stats li { background: var(--paper); border-radius: 12px; padding: 10px 14px; }

.ov-stats span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

.ov-stats strong { display: block; font-size: 1.5rem; }

.ov-stats small { color: var(--muted); }

.ov-list { list-style: none; margin: 0; padding: 0; }

.ov-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.ov-list li small { color: var(--muted); margin-left: 4px; }

.ov-list time { float: right; color: var(--muted); font-size: 0.85rem; }

.last-seen { display: block; color: var(--muted); font-size: 0.8rem; }

.person-log { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }

.person-log li { display: grid; grid-template-columns: 150px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }

.person-log li.flagged { color: var(--burgundy); }

.person-log time { color: var(--muted); white-space: nowrap; }

.person-log small { display: block; color: var(--muted); }

.tax-year { font-weight: 700; font-size: 0.85rem; color: var(--burgundy); }

.button.small { min-height: 30px; padding: 4px 10px; font-size: 0.85rem; width: auto; }

.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }

.res-head h2 { margin-bottom: 2px; }

.res-search { width: 260px; max-width: 100%; min-height: 40px; padding: 8px 12px 8px 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23777' d='M10 4a6 6 0 1 0 3.7 10.7l4.8 4.8 1.4-1.4-4.8-4.8A6 6 0 0 0 10 4zm0 2a4 4 0 1 1 0 8 4 4 0 0 1 0-8z'/%3E%3C/svg%3E") no-repeat 10px center / 18px; }

.res-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }

.res-grid li[hidden] { display: none; }

.res-card { display: flex; gap: 12px; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }

.res-card:hover { border-color: var(--burgundy); box-shadow: 0 4px 14px rgb(0 0 0 / 8%); }

.res-thumb { position: relative; flex: 0 0 120px; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--paper); display: flex; align-items: center; justify-content: center; }

.res-thumb img { width: 100%; height: 100%; object-fit: cover; }

.res-icon svg { width: 40px; height: 40px; fill: var(--burgundy); }

.res-badge { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: var(--burgundy); color: var(--white); font-size: 0.7rem; font-weight: 700; text-align: center; letter-spacing: 0.04em; }

.res-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.res-text strong { font-family: Oswald, "Arial Narrow", sans-serif; font-size: 1.1rem; line-height: 1.2; }

.res-text small { color: var(--muted); font-size: 0.88rem; line-height: 1.3; }

.res-kind { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; }

.res-kind svg { width: 18px; height: 18px; fill: var(--burgundy); }

.res-grid li { position: relative; }

.res-dl { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-decoration: none; background: var(--paper); }

.res-dl:hover { color: var(--burgundy); }

.res-dl svg { width: 14px; height: 14px; fill: currentColor; }

.res-more-wrap { text-align: center; margin: 14px 0 0; }

.res-more { border: 0; background: none; color: var(--burgundy); font-weight: 700; font-size: 1rem; cursor: pointer; }

.res-none { color: var(--muted); margin-top: 10px; }

@media (max-width: 520px) { .res-thumb { flex-basis: 92px; width: 92px; height: 92px; } .res-search { width: 100%; } }

.res-page { max-width: 760px; margin: 0 auto; padding: 16px; }

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

.res-hero { width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: var(--paper); margin: 8px 0; }

.res-body { font-size: 1.05rem; line-height: 1.55; }

.res-body ul { padding-left: 1.2rem; }

.forgot-link { text-align: center; margin: 14px 0 0; }

.forgot-link a { color: var(--burgundy); font-weight: 600; }

.forgot-link span { display: block; font-weight: 400; font-size: 0.9em; color: var(--muted); }

@media (min-width: 760px) { .scale-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.scale-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.scale-table th, .scale-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }

.scale-table thead th { background: var(--paper); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

.scale-table tbody th { font-weight: 600; }

.scale-table .num { text-align: right; white-space: nowrap; }

.scale-block h3 { margin: 12px 0 6px; }

.scale-img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }

.admin-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 10px 20px; background: var(--white); border-bottom: 1px solid var(--line); }

.admin-brand { display: flex; align-items: center; gap: 12px; }

.admin-brand img { width: 110px; height: auto; }

.admin-brand h1 { margin: 0; font-size: 1.35rem; }

.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1 1 auto; }

.admin-nav a { padding: 6px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }

.admin-nav a:hover { background: var(--paper); color: var(--burgundy); }

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

.admin-actions form { margin: 0; display: flex; }

.admin-actions .button, .admin-actions .signout { min-height: 38px; margin: 0; line-height: 1.2; box-sizing: border-box; padding: 6px 14px; font-size: 0.95rem; white-space: nowrap; width: auto; }

.admin-actions .signout { padding: 6px 14px; font-size: 0.95rem; }

.docs .pw-pill.pw-expired { color: var(--white); }

.docs .pw-pill.pw-soon { color: #8a5a00; }

.admin-page { max-width: 1280px; margin: 0 auto; padding: 16px 16px 40px; }

.admin-grid { display: grid; gap: 16px; align-items: start; }

.admin-side > *, .admin-main > * { scroll-margin-top: 80px; }

@media (min-width: 1100px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr) 400px; }
}

@media (max-width: 700px) {
  .admin-top { padding: 10px 12px; }
  .admin-nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .admin-nav a { white-space: nowrap; }
}

.admin-alerts { margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: #fff4d6; border: 1px solid #e8c25a; }

.admin-alerts p { margin: 4px 0; }

.admin-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.admin-facts li { padding: 8px 10px; border-radius: 10px; background: var(--paper); }

.admin-facts span { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.admin-facts strong { font-size: 0.98rem; }

.admin-edit { margin-top: 10px; }

.admin-edit > summary { cursor: pointer; color: var(--burgundy); font-weight: 700; padding: 6px 0; }

.add-new { margin: 6px 0 10px; padding: 8px 12px; border: 1px dashed var(--sand); border-radius: 12px; }

h2 .count { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-left: 6px; }

.wp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.wp-head h2 { margin: 0; }

.wp-status { font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.wp-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.wp-status.ok { color: #1d6b34; }

.wp-status.off { color: var(--burgundy); }

.wp-latest { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: var(--hero); color: var(--white); }

.wp-latest small { display: block; color: var(--sand); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }

.wp-latest strong { display: block; font-size: 1.05rem; }

.wp-latest span { display: block; color: var(--sand); font-size: 0.85rem; }

.wp-latest b { font-family: Oswald, "Arial Narrow", sans-serif; font-size: 1.7rem; font-weight: 500; white-space: nowrap; }

.wp-weeks { display: grid; gap: 8px; }

.wp-week { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }

.wp-week > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; }

.wp-week > summary::-webkit-details-marker { display: none; }

.wp-week > summary strong, .wp-week > summary small { display: block; }

.wp-week > summary small { color: var(--muted); font-size: 0.85rem; }

.wp-week > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy); transform: rotate(45deg); margin: 0 4px 4px; flex: 0 0 auto; }

.wp-week[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }

.wp-week[open] > summary { border-bottom: 1px solid var(--line); }

.wp-total { margin-left: auto; font-family: Oswald, "Arial Narrow", sans-serif; font-size: 1.15rem; white-space: nowrap; }

.wp-body { padding: 10px 14px 12px; }

.wp-locs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.wp-loc { padding: 6px 12px; border-radius: 10px; background: var(--paper); }

.wp-loc small { display: block; color: var(--muted); font-size: 0.75rem; }

.wp-loc strong { font-size: 1rem; }

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

.wp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.wp-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }

.wp-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }

.wp-table td small { display: block; color: var(--muted); font-size: 0.8rem; }

.wp-table .wp-money { font-weight: 700; white-space: nowrap; }

.wp-meta { margin: 8px 0 0; color: var(--muted); font-size: 0.8rem; }

.wp-older, .wp-help { margin-top: 10px; }

.wp-older > summary, .wp-help > summary { cursor: pointer; color: var(--burgundy); font-weight: 600; padding: 6px 0; }

.ytd-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0; padding: 12px 14px; border-radius: 12px; background: var(--hero); color: var(--white); }

.ytd-stat span { color: var(--sand); font-family: Oswald, "Arial Narrow", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; }

.ytd-stat strong { font-family: Oswald, "Arial Narrow", sans-serif; font-size: 1.6rem; }

.week.year { background: var(--white); border: 1px solid var(--sand); }

.week.year > summary .week-total { color: var(--burgundy); font-size: 1.4rem; }

.week.month { background: var(--paper); }

.week.month > .week { background: var(--white); border: 1px solid var(--line); }

.week-actions { margin: 10px 0 0; display: flex; justify-content: flex-end; }

.week-actions .button { min-height: 38px; padding: 6px 14px; font-size: 0.9rem; }

.print-page { background: var(--white); max-width: 1100px; margin: 0 auto; padding: 16px; }

.print-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; }

.print-head { display: flex; align-items: center; gap: 20px; border-bottom: 3px solid var(--burgundy); padding-bottom: 12px; margin-bottom: 14px; flex-wrap: wrap; }

.print-head img { width: 170px; height: auto; }

.print-head h1 { margin: 0; font-size: 1.5rem; }

.print-head p { margin: 2px 0; }

.print-total { margin-left: auto; text-align: right; }

.print-total span { display: block; color: var(--muted); font-size: 0.85rem; }

.print-total strong { font-family: Oswald, "Arial Narrow", sans-serif; font-size: 1.8rem; }

.print-group h2 { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 16px 0 6px; color: var(--burgundy); }

.print-block { margin-bottom: 14px; }

.print-foot { color: var(--muted); font-size: 0.8rem; margin-top: 18px; }

.print-content { max-width: 100%; }

.print-content.measuring { width: 975px; max-width: none; }

.print-page .sheet-wrap { overflow: visible; border: 1px solid #999; border-radius: 0; }

.print-page .sheet-table { font-size: 8.5pt; line-height: 1.15; width: 100%; table-layout: auto; }

.print-page .sheet-table th:first-child { position: static; min-width: 0; max-width: none; width: 1.5in; }

.print-page .sheet-table th, .print-page .sheet-table td { padding: 2px 4px; border-color: #bbb; min-width: 0; }

.print-page .sheet-table td { white-space: nowrap; }

.print-page .sheet-table thead th, .print-page .sheet-table tbody th { white-space: normal; overflow-wrap: normal; hyphens: none; }

.print-page .sheet-table thead th { min-width: 0; max-width: none; }

.print-page .print-head img { width: 120px; }

@media screen {
  .print-content { overflow-x: auto; }
}

@media print {
  @page { size: letter landscape; margin: 0.4in; }
  .no-print, .staging { display: none !important; }
  .print-page { max-width: none; padding: 0; margin: 0; }
  .print-content { width: 975px; max-width: none; zoom: var(--fit, 1); }
  .print-block { break-inside: avoid; }
  .print-head { padding-bottom: 6px; margin-bottom: 8px; }
  .print-head h1 { font-size: 14pt; }
  .print-head p { font-size: 9pt; }
  .print-total strong { font-size: 16pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.key-box { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; background: var(--paper); border: 1px solid var(--sand); border-radius: 12px; padding: 14px; font-size: 1.05rem; }

.sheet-key { margin-top: 14px; }

.sheet-key summary h3 { margin: 0; font-size: 1rem; }

.range-set { border: 1px solid var(--sand); border-radius: 12px; padding: 8px 12px 12px; margin: 12px 0; }

.range-set legend { font-weight: 600; padding: 0 6px; }

.range-set input { min-height: 44px; text-transform: uppercase; }

.thumb-form { margin-top: 8px; }

.thumb-form label { margin-top: 4px; font-size: 0.85rem; }

.thumb-form input[type="file"] { min-height: 0; padding: 8px; font-size: 0.85rem; }

.thumb-form .button { margin-top: 6px; min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }

.pill.locked { background: var(--burgundy); color: var(--white); font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; display: inline-block; vertical-align: middle; }

.log-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.log-table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }

.log-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

.log-table td small { display: block; color: var(--muted); }

.log-table tr.flagged td { background: #fbefec; }
.log-filter { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 12px; }
.log-who-row { display: flex; flex-wrap: wrap; gap: 6px; }
.log-who { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 0.88rem; cursor: pointer; }
.log-who:has(input:checked) { border-color: var(--burgundy); background: #fbefec; }
.log-who input { margin: 0; accent-color: var(--burgundy); }
.log-who small { color: var(--muted); }
.log-who.all { font-weight: 700; }
.log-who.warn { border-style: dashed; }
.log-times { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.log-more { margin-top: 10px; }
.log-more summary { cursor: pointer; font-weight: 700; color: var(--burgundy); }

@media (max-width: 959px) {
  .log-table thead { display: none; }
  .log-table, .log-table tbody, .log-table tr, .log-table td { display: block; width: 100%; }
  .log-table tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .log-table td { border: 0; padding: 2px 8px; }
  .log-table td[data-label="When"] { font-weight: 600; }
}

.view-footer { padding: 8px 16px 24px; }

.page .view-footer { padding: 4px 0 0; }

.view-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.view-switch span { margin-right: 4px; }

.view-switch a {
  padding: 6px 12px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
}

.view-switch a[aria-current="true"] {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
  font-weight: 600;
}

.phone-preview {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-preview-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  color: var(--white);
  font-family: Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
}

.phone-preview-bar .view-switch { color: var(--sand); font-family: "Source Sans 3", sans-serif; letter-spacing: 0; }

.phone-shell {
  width: min(414px, 100%);
  height: min(860px, calc(100vh - 80px));
  padding: 12px;
  border-radius: 44px;
  background: #000;
  box-shadow: 0 0 0 2px #444, 0 20px 60px rgb(0 0 0 / 50%);
  margin-bottom: 16px;
}

.phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 32px;
  background: var(--paper);
}

.sidebar { display: none; }

.narrow-note { display: none; }

#pay, #documents, #resources, #pay-scale, #paperwork, #profile { scroll-margin-top: 52px; }

@media (min-width: 960px) {
  .tabbar { display: none; }

  .app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    min-height: calc(100vh - 42px);
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 42px;
    height: calc(100vh - 42px);
    overflow: auto;
    padding: 22px 16px 16px;
    background: var(--ink);
    color: var(--white);
  }

  .brand-name {
    margin: 0;
    font-family: Oswald, "Arial Narrow", sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.03em;
  }

  .brand-sub {
    margin: 2px 0 0;
    color: var(--sand);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .side-nav { display: grid; gap: 4px; }

  .side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
  }

  .side-nav a[aria-current="page"] {
    background: var(--white);
    color: var(--burgundy);
  }

  .side-nav svg { width: 18px; height: 18px; fill: currentColor; }

  .side-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    margin-top: 6px;
    border-radius: 10px;
    background: var(--white);
    color: var(--burgundy);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 0 rgb(0 0 0 / 15%);
  }

  .side-admin svg { width: 20px; height: 20px; fill: currentColor; }

  .side-admin:hover { background: var(--sand); }

  .top-admin { display: none; }

  .side-foot { margin-top: auto; display: grid; gap: 12px; }

  .logo-plate {
    background: var(--white);
    border-radius: 12px;
    padding: 10px;
  }

  .sidebar .help {
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 12px;
    padding: 12px;
  }

  .sidebar .help p, .sidebar .help .help-title { color: var(--sand); margin: 0; }

  .help-card { display: none; }

  .sidebar .help .help-title {
    color: var(--white);
    font-family: Oswald, "Arial Narrow", sans-serif;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }

  .topbar { padding: 22px 32px 0; }

  .page { padding: 8px 32px 40px; }

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

  .hero-grid .actions { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

  .lower {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 16px;
    align-items: start;
  }

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

  .pay-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

  .pay-table { display: table; width: 100%; }
  .pay-table tbody { display: table-row-group; }

  .pay-table tr { display: table-row; border: 0; border-radius: 0; padding: 0; margin: 0; }

  .pay-table td, .pay-table th {
    display: table-cell;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
  }

  .pay-table td::before { content: none; }
  .pay-table td[data-label="Period"],
  .pay-table td[data-label="Amount"],
  .pay-table td[data-label="Status"] { white-space: nowrap; font-weight: 400; }
  .pay-table td[data-label="Amount"] { font-weight: 500; }

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

/* Crew showcase */
.sc-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 12px 0 4px; align-items: start; }
.sc-leaders h3 { margin: 0 0 8px; }
.sc-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sc-board li { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: "rank name pts" "rank meta pts"; align-items: center; column-gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.sc-board li:first-child { border-color: #e7c66b; background: #fffaeb; }
.sc-board li.me { box-shadow: inset 3px 0 0 var(--burgundy); }
.sc-rank { grid-area: rank; font-size: 1.25rem; text-align: center; font-weight: 700; color: var(--muted); }
.sc-board strong { grid-area: name; }
.sc-board small { grid-area: meta; color: var(--muted); }
.sc-points { grid-area: pts; font-weight: 700; color: var(--burgundy); }
.sc-rules { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.sc-upload { border: 1px dashed var(--taupe); border-radius: 14px; padding: 10px 14px; background: var(--paper); }
.sc-upload summary { cursor: pointer; font-weight: 700; color: var(--burgundy); display: flex; align-items: center; gap: 6px; }
.sc-upload summary svg { width: 20px; height: 20px; fill: currentColor; }
.sc-upload form { margin-top: 10px; }
.sc-upload .sc-thumbs { display: none !important; }
.sc-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sc-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.sc-card.mine { border-color: var(--taupe); }
.sc-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sand); }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-noprev { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); text-align: center; padding: 8px; }
.sc-noprev svg { width: 36px; height: 36px; fill: currentColor; }
.sc-bin .sc-card { opacity: 0.92; }
.sc-bin .sc-meta small em { color: var(--burgundy); font-style: normal; font-weight: 600; }
.sc-pick, .sc-new { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: #e7c66b; color: var(--ink); }
.sc-new { left: auto; right: 8px; background: var(--burgundy); color: var(--white); }
.sc-meta { padding: 8px 10px 0; display: grid; gap: 2px; }
.sc-meta small { color: var(--muted); }
.sc-you { font-size: 0.72rem; font-weight: 700; color: var(--burgundy); text-transform: uppercase; letter-spacing: 0.03em; }
.sc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px 10px; margin-top: auto; }
.sc-actions form { margin: 0; }
.sc-like { font: inherit; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; }
.sc-like.on { background: #fde8e6; border-color: #f2b8b0; color: var(--burgundy); }
.sc-like.static { cursor: default; }
.sc-remove, .sc-pick-btn { font: inherit; font-size: 0.85rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.sc-pick-btn.on { background: #fffaeb; border-color: #e7c66b; color: var(--ink); font-weight: 700; }
.sc-dl { font-size: 0.85rem; font-weight: 600; }
.sc-more { margin-top: 12px; }
.sc-more summary { cursor: pointer; font-weight: 700; color: var(--burgundy); }
.sc-mini { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sc-carousel { padding-bottom: 14px; }
.sc-car-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-car-head h2 { margin: 0; }
.sc-car-nav { display: flex; align-items: center; gap: 8px; }
.sc-car-nav a { font-weight: 600; font-size: 0.9rem; margin-left: 4px; }
.sc-car-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.sc-car-btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.sc-track { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.sc-track::-webkit-scrollbar { display: none; }
.sc-slide { scroll-snap-align: start; }
.sc-slide a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--sand); color: var(--white); text-decoration: none; }
.sc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: end; }
.sc-cap strong { grid-column: 1; }
.sc-cap small { grid-column: 1; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-cap-likes { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; }
@media (max-width: 720px) {
  .sc-track { grid-auto-columns: 82%; }
  .sc-car-btn { display: none; }
}
.logo-link { display: inline-block; line-height: 0; border-radius: 8px; }
a.logo-plate { display: block; }
.logo-link:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.sc-job-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sc-job-form select { flex: 1 1 100%; padding: 4px 6px; font-size: 0.85rem; border: 1px solid var(--line); border-radius: 8px; }
.sc-job-form input { flex: 1; min-width: 0; padding: 4px 8px; font-size: 0.85rem; border: 1px solid var(--line); border-radius: 8px; }
.sc-job { color: var(--ink) !important; font-weight: 600; }
.sc-erase { flex-basis: 100%; }
.sc-erase summary { cursor: pointer; font-size: 0.85rem; color: var(--burgundy); display: inline-block; }
.sc-erase form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 0.85rem; }
.sc-erase textarea { width: 100%; font: inherit; font-size: 0.85rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.sc-note-label { flex-basis: 100%; font-size: 0.8rem; color: var(--muted); }
.sc-notes { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.sc-notes li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border: 1px solid #f0c98a; background: #fff4e5; border-radius: 12px; }
.sc-notes p { margin: 2px 0 0; }
.sc-notes form { margin: 0; flex-shrink: 0; }
.notice-ok { margin: 8px 0 12px; padding: 10px 14px; border-radius: 12px; background: #eaf5ec; border: 1px solid #b6dcbd; color: #1f5a2b; font-weight: 600; }
.sc-everyone { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 6px; padding: 10px 14px; border-radius: 12px; background: #eef3fb; border: 1px solid #b9cbe6; }
.sc-everyone svg { width: 22px; height: 22px; fill: var(--burgundy); flex-shrink: 0; margin-top: 1px; }
.sc-car-note { margin: 0; flex-basis: 100%; order: 3; font-size: 0.85rem; color: var(--muted); }
.sc-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 0.9rem; margin-left: 4px; text-decoration: none; }
.sc-share-btn span { font-size: 1.2rem; line-height: 1; font-weight: 700; }
.sc-add a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; border: 2px dashed var(--taupe); border-radius: 14px; background: var(--paper); color: var(--burgundy); text-decoration: none; height: 100%; min-height: 160px; box-sizing: border-box; }
.sc-slide.sc-add a { aspect-ratio: 4 / 3; }
.sc-add a:hover, .sc-add a:focus-visible { border-color: var(--burgundy); background: #fbefec; }
.sc-plus { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--burgundy); color: var(--white); font-size: 2rem; font-weight: 700; line-height: 1; }
.sc-add small { color: var(--muted); }
.sc-card.sc-add { border: 0; background: transparent; }
.hero-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.hero-body .amount { margin-bottom: 0; }
.hero-side { display: grid; gap: 6px; justify-items: end; text-align: right; }
.hero-ytd { margin: 0; display: grid; }
.hero-ytd span { color: var(--sand); font-size: 0.85rem; }
.hero-ytd strong { font-family: Oswald, "Arial Narrow", sans-serif; font-weight: 500; font-size: 1.5rem; }
.hero-link { color: var(--white); font-weight: 600; font-size: 0.92rem; }
@media (max-width: 720px) { .hero-side { justify-items: start; text-align: left; } }
.sc-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.sc-fields:disabled { opacity: 0.55; }
.sc-preview-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #eef3fb; border: 1px solid #b9cbe6; font-size: 0.88rem; }
.sc-mini-heic { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 10px; background: var(--sand); color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.sc-empty { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sc-upload select { width: 100%; }
.sc-mini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 720px) {
  .sc-top { grid-template-columns: 1fr; }
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
