:root {
  color-scheme: light;
  --paper: #f7f3e8;
  --ink: #24392d;
  --muted: #64665d;
  --line: #deddd2;
  --orange: #a83c12;
  --leaf: #426846;
  --serif: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  font: 16px/1.6 "DM Sans", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box }
body, form, p, h1, h2, h3, dl, dd { margin: 0 }
body { min-height: 100vh }
a { color: var(--orange); text-underline-offset: 4px }
button, input { font: inherit }
button, a, summary { touch-action: manipulation }
:focus-visible { outline: 3px solid #27634e; outline-offset: 3px }
.skip { position: absolute; left: 8px; top: -80px; padding: 8px 16px; background: white; z-index: 2 }
.skip:focus { top: 4px }
header { border-bottom: 1px solid var(--line) }
.bar, main { width: min(calc(100% - 72px), 1112px); margin-inline: auto }
.bar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px }
.brand, .card-head, .timestamp, .notice, .quiet { display: flex; align-items: center; gap: 12px }
.brand { color: var(--ink); text-decoration: none }
.wordmark { font-family: var(--serif); font-weight: 900; font-size: 29px; line-height: .95; letter-spacing: -.045em }
.wordmark span { display: block; margin-top: 4px; font: 700 11px/1.2 "Microsoft JhengHei", sans-serif; letter-spacing: .08em }
main { padding-block: clamp(28px,6vh,64px) 64px }
h1, h2 { overflow-wrap: anywhere; line-height: 1.25 }
h1 { font-family: var(--serif); font-weight: 850; font-size: clamp(32px,4.5vw,51px); letter-spacing: -.045em }
h2 { font-size: clamp(21px,2.2vw,27px); letter-spacing: -.035em }
.icon { width: 22px; height: 22px; flex: none }
.tile { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; color: var(--orange); background: #ffead8; border-radius: 14px }
.tile.leaf { color: var(--leaf); background: #e7eee3 }
button { min-height: 46px; border: 1px solid transparent; border-radius: 9px; padding: 9px 18px; color: white; background: var(--orange); font-weight: 700; cursor: pointer }
button:hover { background: #8c3311 }
button:active { transform: translateY(1px) }
.secondary, .quiet { color: var(--ink); background: transparent; border-color: var(--line) }
.secondary:hover, .quiet:hover { background: #efede4 }
.quiet { gap: 7px; min-height: 44px; padding: 6px 14px; font-size: 14px }
.quiet .icon { width: 17px }
label { min-width: 0; display: grid; gap: 6px; font-weight: 680; font-size: 15px }
input { min-width: 0; max-width: 100%; width: 100%; min-height: 46px; padding: 9px 13px; background: #fff; color: var(--ink); border: 1px solid #a9aca0; border-radius: 8px; font-size: 16px; line-height: 1.35 }
input::placeholder { color: #777a72; font-weight: 400 }
input[type="number"] { width: 8rem }
.access-layout { display: grid; grid-template-columns: 1fr 1.12fr; grid-template-areas: "form photo"; overflow: hidden; background: #fffefa; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px #3a2c1a08 }
.access-form { grid-area: form; padding: clamp(32px,5.4vw,80px); margin-block: auto; width: 100% }
.access-form h1 { margin-block: 20px 12px }
.access-form form { display: grid; gap: 18px; margin-top: 27px }
.access-form input { min-height: 50px }
.access-form button { width: 100%; margin-top: 6px; min-height: 50px }
.primary { display: flex; justify-content: center; align-items: center; gap: 12px }
.lead, .note, .timing, .timestamp, .empty { color: var(--muted) }
.door { position: relative; grid-area: photo; min-height: 570px; overflow: hidden; isolation: isolate; background: #6c4629 }
.door img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 43% }
.door::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#201609f5,transparent 49%) }
.door-caption { position: absolute; inset: auto clamp(20px,3vw,40px) 30px; color: white }
.door-caption h2 { font-size: 20px; margin-bottom: 14px }
.hours { display: flex; justify-content: space-between; border-top: 1px solid #ffffff70; padding-top: 12px; gap: 8px }
.hours dt { font-size: 13px; font-weight: 600 }
.hours dd, .numbers dd, .amount, .timestamp { font-variant-numeric: tabular-nums }
.hours dd { font-size: clamp(14px,1.3vw,18px); font-weight: 720; white-space: nowrap }
.desk-heading, .pay-head, .entry { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap }
.desk-heading { margin-bottom: 26px }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 650; margin-bottom: 4px }
.desk-heading .eyebrow { color: var(--orange); margin-bottom: 8px }
.timestamp { font-size: 14px; gap: 7px }
.timestamp .icon { width: 18px }
.properties { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px }
.properties span { color: var(--muted); font-size: 14px }
.properties a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; text-decoration: none }
.properties a[aria-current] { color: #fff; background: var(--leaf) }
.work-grid, .settings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px }
.card, .message { min-width: 0; padding: clamp(20px,2.7vw,34px); background: #fffefa; border: 1px solid var(--line); border-radius: 16px }
.work-grid .card:first-child { border-top: 4px solid #d35a27; padding-top: calc(clamp(20px,2.7vw,34px) - 3px) }
.timing { margin-top: 16px; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line) }
.empty { margin-top: 14px; padding-block: 10px }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 16px }
.numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding-block: 20px 6px }
.numbers dt, .note { font-size: 14px }
.numbers dt { color: var(--muted) }
.numbers dd, .amount { font-size: clamp(27px,3vw,38px); font-weight: 750; line-height: 1.3; letter-spacing: -.04em }
.numbers div:last-child dd { color: var(--orange) }
.entry { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; gap: 6px 14px }
.shift .entry { border: 0; padding-top: 2px }
.shift + .shift { border-top: 1px solid var(--line); margin-top: 16px }
.payroll, details { margin-top: 18px }
.pay-head .row { margin: 0 }
.amount { margin-top: 20px }
details summary { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; cursor: pointer; list-style: none }
summary::-webkit-details-marker { display: none }
summary::after { content: ""; width: 9px; height: 9px; border-bottom: 2px solid; border-right: 2px solid; transform: rotate(45deg); margin-inline: auto 3px }
details[open] summary::after { transform: rotate(225deg) }
.settings { margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--line) }
.note { margin-top: 6px }
.notice, .alert { padding: 12px 16px; border-radius: 8px; margin-block: 12px }
.notice { color: #2c5336; background: #e5efdf }
.alert { color: #802d11; background: #ffe8de }
.message { max-width: 610px; margin: 5vh auto }
.message p, .message label { margin-block: 14px }
@media(max-width: 760px) {
  .bar, main { width: min(calc(100% - 32px), 610px) }
  .bar { min-height: 65px }
  main { padding-top: 22px }
  .access-layout { grid-template-columns: 1fr; grid-template-areas: "form" "photo" }
  .access-form { padding: 24px clamp(20px,5vw,34px) 30px }
  .access-form h1 { margin-top: 12px }
  .access-form form { margin-top: 20px; gap: 14px }
  .door { min-height: 185px }
  .door img { object-position: 50% 56% }
  .door::after { background: linear-gradient(0deg,#211608f5,transparent 115%) }
  .door-caption { bottom: 17px }
  .door-caption h2 { font-size: 17px; margin-bottom: 6px }
  .hours { padding-top: 7px }
  .work-grid, .settings { grid-template-columns: 1fr; gap: 14px }
  .desk-heading { margin-bottom: 18px; gap: 10px }
  .card-head { gap: 10px }
  .pay-head { align-items: flex-start }
  .pay-head .row { width: 100% }
}
@media(max-width: 360px) {
  .door-caption { inset-inline: 12px }
  .hours dd { font-size: 13px }
  .row input { max-width: 100% }
}

.wordmark small {font: 650 12px/1.2 sans-serif; color: var(--orange); letter-spacing: .08em}
.door img {object-position: 50% 35%}
.numbers > div {background:#f7f3e8;border-radius:10px;padding:9px}
