:root {
  color-scheme: light;
  --ink: #1c1c18;
  --muted: #625e54;
  --surface: #fffefa;
  --background: #f4f2ec;
  --line: #ddd8ca;
  --gold: #e3bd58;
  --gold-deep: #664b14;
  --radius: 16px;
  --font: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--background); min-height: 100vh; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); font-weight: 830; }
h2 { font-size: clamp(1.15rem, 2.6vw, 1.52rem); font-weight: 780; }
h3 { font-size: 1.15rem; }
p + p { margin-top: .45rem; }
form { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #94721f; outline-offset: 3px; }
.wrap { width: min(100% - 36px, 1080px); margin-inline: auto; }
.topbar { background: #171715; color: #fffdf6; }
.top-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; }
.brand-mark { width: 45px; height: 45px; object-fit: contain; }
.brand strong { letter-spacing: .14em; }
.brand small { display: block; color: #dbd3bf; margin-top: 3px; font-size: .77rem; }
.identity { display: flex; align-items: center; gap: clamp(9px, 2vw, 23px); font-size: .88rem; }
.account { color: #f4e9cc; text-decoration: none; max-width: min(29vw, 240px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account:hover { text-decoration: underline; }
.link-button { border: 0; color: #ded8c7; background: transparent; padding: .55rem 0; }
.link-button:hover { color: #fff; }
.tabs { background: var(--surface); border-bottom: 1px solid var(--line); }
.tab-inner { display: flex; gap: clamp(14px, 3vw, 30px); overflow-x: auto; }
.tabs a { color: var(--muted); text-decoration: none; font-size: .91rem; font-weight: 720; white-space: nowrap; padding: .9rem .05rem .7rem; border-bottom: 3px solid transparent; }
.tabs a:hover, .tabs a[aria-current] { color: var(--ink); border-color: #ae8a36; }
.content { padding-top: clamp(23px, 5vw, 49px); }
.guest { padding-top: clamp(38px, 10vw, 100px); }
.footer { color: var(--muted); padding: 36px 0 24px; font-size: .83rem; }
.card { padding: clamp(16px, 3.4vw, 25px); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); min-width: 0; }
.auth { max-width: 490px; }
.auth.solo { margin: 0 auto; }
.auth h1, .auth h2 { margin-bottom: 15px; }
.auth p { margin-block: 12px; }
.auth .small { margin: 16px 0 0; }
.stack { display: grid; gap: 13px; align-items: start; }
.stack > .button { justify-self: start; }
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 680; min-width: 0; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; padding: .64rem .7rem; border: 1px solid #bdb6a6; border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px; font-size: 1rem; }
textarea { resize: vertical; }
label small, .muted { color: var(--muted); font-weight: 500; }
.small, small { font-size: .83rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; text-decoration: none; background: #fffefa; color: var(--ink); padding: .54rem .8rem; border-radius: 9px; border: 1px solid #c5beac; font-size: .87rem; font-weight: 750; text-align: center; }
.button:hover { background: #f1eee5; }
.button.primary { background: var(--gold); border-color: #d9ac3d; color: #231a06; }
.button.primary:hover { background: #edca69; }
.button.danger { color: #862729; border-color: #d8a3a0; }
.login-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.hero { color: #fff9eb; background: #20201b; border: 1px solid #26231b; border-radius: var(--radius); position: relative; isolation: isolate; overflow: hidden; padding: clamp(21px, 5vw, 42px); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 410px; height: 270px; right: -133px; top: -95px; transform: rotate(-22deg); border: 1px solid #9c7e38; border-radius: 45%; opacity: .28; box-shadow: 0 0 0 24px #6d5b2c, 0 0 0 25px #a98a43, 0 0 0 50px #4f4328, 0 0 0 51px #a98a43; }
.login-hero { min-height: 290px; display: flex; flex-direction: column; justify-content: center; }
.login-hero p:last-child { margin-top: 13px; color: #ded5c0; max-width: 33ch; }
.eyebrow { font-size: .74rem; line-height: 1.4; font-weight: 820; letter-spacing: .11em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.hero .eyebrow { color: #ead18e; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 21px; }
.season-select { flex: 0 1 230px; }
.season-select label { font-size: .8rem; color: var(--muted); }
.score { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; }
.score-number { line-height: .98; display: flex; align-items: baseline; gap: .2em; font-variant-numeric: tabular-nums; margin: 6px 0; }
.score-number strong { font-size: clamp(3.5rem, 9vw, 6.3rem); letter-spacing: -.1em; margin-right: .09em; font-weight: 850; }
.score-number span { font-size: clamp(1.4rem, 4vw, 2.3rem); color: #dfd4b7; }
progress { display: block; width: min(100%, 340px); height: 8px; margin-top: 13px; overflow: hidden; border-radius: 10px; border: 0; background: #514a37; color: var(--gold); }
progress::-webkit-progress-bar { background: #514a37; }
progress::-webkit-progress-value { background: var(--gold); }
progress::-moz-progress-bar { background: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-block: 14px; }
.stat { display: grid; gap: 4px; }
.stat span { color: var(--muted); font-size: .88rem; }
.stat strong { font-size: clamp(1.7rem, 5vw, 2.7rem); line-height: 1.1; font-weight: 810; letter-spacing: -.055em; }
.stat small { color: var(--muted); }
.section-title { margin-top: 23px; margin-bottom: 11px; }
.list { display: grid; gap: 10px; }
.list-item, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-item > div:first-child { min-width: 0; }
.list-item h2, .list-item h3 { margin-block: 5px 3px; }
.item-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 13px; }
.task-card { display: flex; flex-direction: column; gap: 9px; }
.task-tags { display: flex; align-items: center; justify-content: flex-start; gap: 7px; flex-wrap: wrap; }
.task-tags .points { margin-left: auto; }
.badge, .points { display: inline-block; width: fit-content; padding: .2rem .51rem; border-radius: 5px; background: #eee9dc; font-size: .76rem; color: #51492f; font-weight: 730; }
.points, .status-booked { background: #f6e9bd; color: #5d4715; }
.status-confirmed { background: #e1edd9; color: #344e25; }
.status-absent, .status-cancelled { background: #f0e4e2; color: #73383b; }
.task-time { font-weight: 650; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.task-bottom { margin-top: auto; padding-top: .85rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); }
.notice { border: 1px solid #a6b89b; background: #edf3e8; color: #294521; border-radius: 9px; padding: .65rem .8rem; margin-bottom: 16px; }
.notice.error { border-color: #cf9d96; background: #f7e9e6; color: #78262b; }
.empty { color: var(--muted); }
.disclosure { margin-bottom: 11px; }
.list .disclosure { margin: 0; }
.disclosure summary { cursor: pointer; font-size: 1.05rem; font-weight: 750; overflow-wrap: anywhere; }
.disclosure summary .small { margin-left: 6px; }
.form-panel { max-width: 760px; margin-top: 13px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checks { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px 10px; display: flex; flex-wrap: wrap; gap: 7px 13px; min-width: 0; margin: 0; }
.checks legend { font-size: .87rem; font-weight: 690; padding-inline: 4px; }
.check { display: flex; gap: 5px; align-items: center; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: #80621f; }
.back { display: inline-block; margin-bottom: 9px; font-weight: 680; }
.details { margin-bottom: 11px; }
.details h2, .details p { margin-top: 7px; }
.share { margin-bottom: 14px; }
.share p, .share label { margin-block: 9px; }
.accounting .section-head { margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 450px; }
th, td { padding: .6rem .45rem; text-align: left; border-top: 1px solid var(--line); }
thead th { color: var(--muted); }
td { white-space: nowrap; }
th small { color: var(--muted); font-weight: 500; }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .login-layout, .score { grid-template-columns: 1fr; }
  .login-hero { min-height: 180px; }
  .page-head { flex-wrap: wrap; }
  .season-select { flex: 0 1 195px; }
  .list-item { flex-wrap: wrap; }
}
@media (max-width: 390px) {
  .fields { grid-template-columns: 1fr; }
  .stat { padding-inline: 11px; }
}

#app-install-button[hidden] { display: none; }
