/* DinkDinkDink screens, built on the Modernist tokens in modernist.css.
   One phone-width column: strong 2px rules between sections, 1px rules
   between rows, labels flush left, no rounded corners. */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-neutral-300); }
button { font-family: inherit; }

.app {
  max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  background: var(--color-bg); color: var(--color-text); font-family: var(--font-body);
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom);
}
.grow { flex: 1; }
.page { padding-bottom: 24px; }

/* — shared text — */
.kicker { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); }
.label { font-size: 12px; color: var(--color-neutral-700); margin-bottom: 6px; }
.note { font-size: 12px; color: var(--color-neutral-700); }
.strong { font-weight: 600; color: var(--color-text); }
.link { font-weight: 600; }
.link:hover { color: var(--color-accent-700); }
.right { margin-left: auto; }
.nowrap { white-space: nowrap; }
.fill { flex: 1; min-width: 0; }
.b { display: block; }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* — buttons: labels start at the left edge — */
.btn-left { justify-content: flex-start; text-align: left; }
.btn-tall { min-height: 44px; }
.btn-sm { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.btn-wide { width: 100%; }
.btn-fixed { min-width: 64px; }

/* — the word about a session — two colors, so they are never mixed up:
   green says "will play", red says "absent". Outlined while it is only an
   offer, filled once it has been said. */
:root { --color-go: #137738; --color-go-600: #03642b; }
.btn-go { border-color: var(--color-go); color: var(--color-go); }
.btn-go:hover { background: color-mix(in srgb, var(--color-go) 10%, transparent); }
.btn-go[aria-pressed='true'] { background: var(--color-go); color: var(--color-bg); }
.btn-go[aria-pressed='true']:hover { background: var(--color-go-600); }
.btn-away { border-color: var(--color-accent-700); color: var(--color-accent-700); }
.btn-away:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-away[aria-pressed='true'] { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-bg); }
.btn-away[aria-pressed='true']:hover { background: var(--color-accent-600); }
.tag-go { border: 1px solid var(--color-go); color: var(--color-go); }
.tag-away { background: var(--color-accent-100); color: var(--color-accent-800); }
.self-start { align-self: flex-start; }

/* — header — */
.top { position: sticky; top: 0; z-index: 5; background: var(--color-bg); border-bottom: 2px solid var(--color-divider); }
.top-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.back {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  margin-left: -8px; color: var(--color-text); text-decoration: none;
}
.back:hover { background: var(--color-neutral-200); }
.top-title, .brand {
  font-family: var(--font-heading); font-weight: 800; margin-right: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-title { font-size: 17px; }
.brand { font-size: 18px; letter-spacing: -0.01em; }
.top-month { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); white-space: nowrap; }
.logout {
  height: 36px; padding: 0 10px; border: 1px solid var(--color-divider); background: transparent;
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--color-text); white-space: nowrap;
}
.logout:hover { background: var(--color-neutral-200); }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 8px 9px; margin-bottom: -2px;
  border-bottom: 3px solid transparent; color: var(--color-neutral-800);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.tab[aria-current='page'] { border-bottom-color: var(--color-accent); color: var(--color-accent); }

/* — sign in, create group, register, waiting — */
.auth { flex: 1; margin: 0; padding: 28px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.auth h3 { margin: 2px 0 0; }
.lead { font-size: 13px; color: var(--color-neutral-700); margin: 6px 0 0; }
.form-error { font-size: 12px; color: var(--color-accent-700); }
.choices { display: flex; flex-direction: column; border-top: 2px solid var(--color-divider); margin-top: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--color-divider); color: inherit; text-decoration: none;
}
.choice-title { font-size: 15px; font-weight: 600; }
.section-label { padding-top: 6px; border-top: 2px solid var(--color-divider); }
.section-label.roomy { padding-top: 12px; }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.day-pick {
  min-width: 44px; height: 40px; padding: 0 10px; border: 1px solid var(--color-divider);
  background: transparent; color: var(--color-text); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.day-pick[aria-pressed='true'] { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-bg); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* the week: its days, and a row of hours for each picked day */
.week { display: flex; flex-direction: column; gap: 8px; }
.week .label { margin-bottom: 0; }
.slot-row { display: grid; grid-template-columns: 72px 1fr auto 1fr; gap: 8px; align-items: center; }
.slot-day { font-size: 13px; font-weight: 600; }
.slot-dash { color: var(--color-neutral-600); }
.upper { text-transform: uppercase; }
.auth-foot { font-size: 13px; color: var(--color-neutral-700); padding-top: 12px; border-top: 2px solid var(--color-divider); }
.auth.waiting { gap: 12px; }
.auth.waiting h3 { margin: 0; }
.auth.waiting p { font-size: 14px; color: var(--color-neutral-700); margin: 0; }
.rule-top { padding-top: 12px; border-top: 2px solid var(--color-divider); }
.linkbox { padding: 14px; background: var(--color-surface); display: flex; flex-direction: column; gap: 8px; }
.auth.waiting .linkbox { margin-top: 8px; }
.linkbox-url { font-size: 13px; font-weight: 600; word-break: break-all; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* — big number blocks — */
.hero { padding: 20px 16px 16px; }
.hero-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 40px; line-height: 1.05;
  letter-spacing: -0.02em; margin-top: 4px;
}
.hero-sub { font-size: 13px; color: var(--color-neutral-700); margin-top: 6px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider); }
.stat { padding: 14px 16px; }
.stat + .stat { border-left: 1px solid var(--color-divider); }
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: 26px; margin-top: 2px; }
.stat-num small { font-size: 15px; color: var(--color-neutral-600); }
.stats.tight .stat { padding: 12px 16px; }
.stats.tight .stat-num { font-size: 20px; margin-top: 0; }
.out { color: var(--color-accent-700); }

/* — section heads — */
.sec-head { padding: 20px 16px 8px; display: flex; align-items: baseline; gap: 8px; }
.sec-head.gap { padding-top: 24px; }
.sec-head.snug { padding-bottom: 4px; }
.sec-head h4, .sec-head h5 { margin: 0; }
.sec-head h5, .h5 { font-size: 16px; }
.sec-note { padding: 0 16px 10px; font-size: 12px; color: var(--color-neutral-700); }
.more { margin-left: auto; font-size: 13px; font-weight: 600; text-decoration: none; }
.more:hover { color: var(--color-accent-700); }

/* — overview — */
.next-card {
  margin: 0 16px; background: var(--color-surface); padding: 14px;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  color: inherit; text-decoration: none;
}
.next-card:hover { background: var(--color-neutral-300); }
.next-date { border-right: 2px solid var(--color-divider); padding-right: 12px; }
.next-dow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.next-day { font-family: var(--font-heading); font-weight: 800; font-size: 28px; line-height: 1; }
.next-time { font-weight: 600; font-size: 15px; }
.sub { font-size: 13px; color: var(--color-neutral-700); }
.next-count { text-align: right; font-size: 13px; color: var(--color-neutral-700); white-space: nowrap; }
.note-box { margin: 0 16px; padding: 14px; background: var(--color-surface); font-size: 13px; color: var(--color-neutral-700); }
.inset { margin: 0 16px; }
.progress-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.progress { height: 8px; background: var(--color-neutral-300); position: relative; }
.progress-fill { position: absolute; inset: 0 auto 0 0; background: var(--color-accent); }
.progress + .note { margin-top: 6px; }

/* — fund rows — */
.tx-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--color-divider); }
.tx-bar { width: 3px; align-self: stretch; background: var(--color-text); }
.tx-row.is-out .tx-bar { background: var(--color-accent-700); }
.tx-title { font-size: 14px; font-weight: 600; }
.tx-amount { font-weight: 600; font-size: 14px; white-space: nowrap; }
.tx-row.is-out .tx-amount { color: var(--color-accent-700); }
.fund-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; }
.fund-form { margin: 0 16px 16px; padding: 14px; background: var(--color-surface); display: flex; flex-direction: column; gap: 10px; }
.fund-form-title { font-family: var(--font-heading); font-weight: 800; font-size: 15px; }
.add-form { margin-top: 12px; }
/* payments out of the bank account, waiting for a category */
.bank-out { margin: 0 16px 20px; }
.bank-out > .note { padding-bottom: 10px; }
.bank-out-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 12px; border-top: 1px solid var(--color-divider); }
.bank-out-what { display: flex; align-items: flex-start; gap: 12px; }
.bank-out-what .tx-title { overflow-wrap: anywhere; }
.bank-out-what .tx-amount { color: var(--color-accent-700); }
.notice {
  display: flex; align-items: center; gap: 8px; margin: 16px 16px 0; padding: 10px 12px;
  border-left: 3px solid var(--color-accent); background: var(--color-surface);
  font-size: 13px; font-weight: 600; color: inherit; text-decoration: none;
}
.list-head { padding: 0 16px 6px; }
.list-head h5 { margin: 0; }
.list-head.alone { padding-top: 20px; }
.empty { padding: 14px 16px; border-top: 1px solid var(--color-divider); font-size: 13px; color: var(--color-neutral-700); }

/* — calendar — */
.cal-head { padding: 20px 16px 12px; display: flex; align-items: baseline; gap: 8px; }
.cal-head h4 { margin: 0; }
.cal-dows {
  display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 16px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700);
}
.cal-dows div { padding: 4px 0; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); margin: 0 16px;
  border-top: 2px solid var(--color-divider); border-left: 1px solid var(--color-divider);
}
.cell {
  aspect-ratio: 1; border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
  padding: 4px 5px; font-size: 13px; position: relative; color: inherit; text-decoration: none;
}
.cell.is-past { color: var(--color-neutral-500); }
.cell.is-today { background: var(--color-neutral-200); font-weight: 700; }
.cell.is-session { background: var(--color-accent); color: var(--color-bg); font-weight: 700; }
.cell.is-played { background: var(--color-neutral-900); color: var(--color-bg); font-weight: 700; }
.cell-dot { position: absolute; right: 5px; bottom: 5px; width: 6px; height: 6px; background: currentColor; }
.legend { display: flex; gap: 16px; padding: 10px 16px 0; font-size: 11px; color: var(--color-neutral-700); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; display: inline-block; background: var(--color-accent); }
.legend i.played { background: var(--color-neutral-900); }

/* — session rows (calendar list, member schedule) — */
.sess-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--color-divider); color: inherit; text-decoration: none;
}
a.sess-row:hover { background: var(--color-neutral-200); }
.sess-count { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
/* men and women among the players: "3 nam · 2 nữ" */
.mix { font-size: 12px; white-space: nowrap; color: var(--color-neutral-700); }
.mix b { font-weight: 600; color: var(--color-text); }
.sess-row.mine { padding: 10px 16px; }
.sess-row.is-past.mine { opacity: 0.6; }
.sess-dow { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
a.sess-row.is-past .sess-dow { color: var(--color-neutral-600); }
.sess-day { font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1; }
.sess-row.mine .sess-day { font-size: 20px; }
.sess-time { font-size: 14px; font-weight: 600; }

/* — attendance sheet — */
.sheet-head { padding: 20px 16px 16px; border-bottom: 2px solid var(--color-divider); }
.sheet-title { font-family: var(--font-heading); font-weight: 800; font-size: 28px; line-height: 1.1; }
.sheet-court { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.court-form { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 0; }
.sheet-count { padding: 14px 16px 4px; display: flex; align-items: baseline; font-size: 13px; }
.sheet-count b { font-weight: 600; }
.sheet-count span { margin-left: auto; color: var(--color-neutral-700); }
.check-row { display: flex; align-items: center; gap: 12px; padding-right: 16px; border-top: 1px solid var(--color-divider); }
.check-row:hover { background: var(--color-neutral-200); }
/* the wide part of a row: tap it to tick who came */
.check-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0 12px 16px;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.check-box {
  width: 22px; height: 22px; border: 1.5px solid var(--color-divider); background: transparent;
  display: grid; place-items: center; color: var(--color-bg); flex: none;
}
.check-main[aria-pressed='true'] .check-box, .check-row.is-present .check-box { border-color: var(--color-accent); background: var(--color-accent); }
/* the read-only sheet: the same rows, but nothing to tap */
.check-row.is-fixed { padding: 12px 16px; }
.check-row.is-fixed:hover { background: transparent; }
.row-name { font-size: 14px; font-weight: 600; }
.row-name.big { font-size: 15px; }
.sheet-foot { padding: 16px; border-top: 2px solid var(--color-divider); display: flex; flex-direction: column; gap: 8px; }

/* — members — */
.code { font-family: var(--font-heading); font-weight: 800; color: var(--color-text); letter-spacing: 0.06em; }
.subtabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 16px; border: 1px solid var(--color-divider); }
.subtab { padding: 9px 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--color-text); }
.subtab + .subtab { border-left: 1px solid var(--color-divider); }
.subtab[aria-current='page'] { background: var(--color-accent); color: var(--color-bg); }
.pending { margin: 16px 16px 0; border-top: 2px solid var(--color-accent); }
.pending-head { display: flex; align-items: baseline; padding: 10px 0 4px; }
.pending-head .eyebrow { color: var(--color-accent); }
.pending-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--color-divider); }
.plan-stats {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 16px 16px 0;
  border-top: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider);
}
.plan-stat { padding: 10px 0 10px 10px; border-right: 1px solid var(--color-divider); }
.plan-stat-num { font-family: var(--font-heading); font-weight: 800; font-size: 22px; }
.plan-stat-label { font-size: 11px; color: var(--color-neutral-700); line-height: 1.3; }
.member-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--color-divider); color: inherit; text-decoration: none;
}
a.member-row:hover { background: var(--color-neutral-200); }
.avatar {
  width: 36px; height: 36px; background: var(--color-neutral-900); color: var(--color-bg);
  display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 14px; flex: none;
}
.row-side { text-align: right; font-size: 12px; color: var(--color-neutral-700); white-space: nowrap; }
.row-amount { font-weight: 600; font-size: 14px; white-space: nowrap; }
.pad { padding: 12px 16px; }
.tag-fixed { min-width: 64px; justify-content: flex-start; white-space: nowrap; }
.fee-sum {
  margin: 16px 16px 0; padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider);
}
.fee-sum-num { font-family: var(--font-heading); font-weight: 800; font-size: 22px; }
.fee-note { padding: 12px 16px 4px; font-size: 12px; color: var(--color-neutral-700); }

/* — one member (admin) — */
.edit { padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.opts { display: flex; flex-direction: column; border-top: 1px solid var(--color-divider); }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--color-divider); background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.opt.desc { align-items: flex-start; }
.opt-dot {
  width: 16px; height: 16px; border-radius: 50%; flex: none; border: 1.5px solid var(--color-divider);
  background: transparent; box-shadow: inset 0 0 0 4px var(--color-bg);
}
.opt.desc .opt-dot { margin-top: 3px; }
.opt[aria-checked='true'] .opt-dot { border-color: var(--color-accent); background: var(--color-accent); }
.opt-label { flex: 1; font-size: 14px; font-weight: 600; }
.opt-rate { font-size: 13px; white-space: nowrap; }
.opt.desc .opt-rate { font-weight: 600; font-size: 14px; }
/* the days of a fixed member: a block of its own above the plan options */
.block .pick-days { margin-bottom: 14px; }
.dows { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--color-divider); white-space: nowrap; }
.dow {
  padding: 8px 18px; border: 0; border-left: 1px solid var(--color-divider); margin-left: -1px;
  font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--color-text);
}
.dow[aria-pressed='true'] { background: var(--color-accent); color: var(--color-bg); }
.next-note { font-size: 12px; color: var(--color-neutral-700); padding: 10px 0; border-top: 1px solid var(--color-divider); }
.edit-foot { padding: 12px 0; border-top: 2px solid var(--color-divider); display: flex; gap: 8px; }

/* — member page — */
.hello { padding: 20px 16px 8px; }
.hello h3 { margin: 2px 0 0; }
.block { padding: 16px; border-top: 2px solid var(--color-divider); }
.block.row { display: flex; align-items: center; gap: 12px; }
.block.surface { background: var(--color-surface); }
.block-value { font-size: 16px; font-weight: 600; margin-top: 2px; }
.block-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.block-head h5 { margin: 0; font-size: 16px; }
.block-lead { font-size: 12px; color: var(--color-neutral-700); margin: 0 0 10px; }
.fee-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 32px;
  letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px;
}
.fee-formula { font-size: 13px; color: var(--color-neutral-700); margin-top: 4px; }
.fee-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.spacer { height: 24px; }

/* — who is looking — */
.picks { display: flex; flex-direction: column; border-top: 2px solid var(--color-divider); }
.member-row.pick {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--color-divider);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.member-row.pick:hover { background: var(--color-neutral-200); }
.not-you { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 20px; }

/* — paying by bank transfer — */
.pay { margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--color-divider); display: flex; flex-direction: column; gap: 10px; }
.pay-qr { width: 100%; max-width: 260px; height: auto; align-self: center; background: #fff; border: 1px solid var(--color-divider); }
.pay-rows { margin: 0; border-top: 1px solid var(--color-divider); }
.pay-rows > div { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 0; border-bottom: 1px solid var(--color-divider); }
.pay-rows dt { width: 104px; flex: none; font-size: 12px; color: var(--color-neutral-700); }
.pay-rows dd { margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; word-break: break-all; }

/* — settings — */
.settings { margin: 0; padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }
.call { display: inline-block; margin-top: 8px; font-size: 13px; }

/* — confirm and messages — */
.dialog-backdrop { z-index: 20; }
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translateX(-50%); width: max-content; max-width: min(398px, calc(100vw - 32px));
  padding: 10px 14px; background: var(--color-neutral-900); color: var(--color-bg);
  font-size: 13px; box-shadow: var(--shadow-lg);
}
.toast[hidden] { display: none; }

/* iOS zooms the page when a focused field is under 16px. */
@supports (-webkit-touch-callout: none) {
  .input { font-size: 16px; }
}

/* — bills: a member's proof of a transfer, and the admin's list of them — */
.hidden { display: none; }
.bill { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-divider); }
.bill-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bill-problems { padding: 10px 12px; background: var(--color-accent-100); display: flex; flex-direction: column; gap: 6px; }
.bill-problems ul, .bill-list { margin: 0; padding-left: 18px; font-size: 13px; }
.bill-pick { position: relative; cursor: pointer; justify-content: center; }
.bill-pick input, .file-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bill-pick[aria-disabled='true'], .file-pick[aria-disabled='true'] { opacity: 0.6; cursor: progress; }
.file-pick { position: relative; cursor: pointer; }
.bills { margin-bottom: 16px; }
.bill-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--color-divider); align-items: flex-start; }
.bill-thumb { flex: none; width: 72px; height: 112px; background: var(--color-neutral-200); border: 1px solid var(--color-divider); overflow: hidden; }
.bill-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bill-info { display: flex; flex-direction: column; gap: 6px; }
.bill-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.bill-form .input { width: 120px; flex: 1; min-width: 100px; }

/* — the admin's groups — */
.brand-link { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.brand-link svg { flex: none; color: var(--color-neutral-600); }
.note.pad { padding-top: 0; }

/* — friends brought along — */
/* on the session sheet: under the member who brings them, in line with the names */
.guest-row { display: flex; align-items: center; gap: 12px; padding: 6px 16px 10px 50px; }
.guest-row .row-name { font-weight: 500; }
.guest-form { margin-top: 12px; }
/* on a member's page: "Rủ bạn" sits left of the member's own button, in one
   row. Where a phone is too narrow for both, it drops under that button. The
   friends are listed under the session, in line with its hours */
.sess-acts { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 6px; }
.sess-acts .btn { padding-inline: 7px; gap: 3px; }
.sess-acts .btn svg { width: 12px; height: 12px; }
.sess-row.mine .sess-time { white-space: nowrap; }
.sess-guests { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 16px 10px 76px; }
.sess-guests.is-past { opacity: 0.6; }
.guest-chip {
  display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 8px;
  background: var(--color-neutral-100); font-size: 12px; font-weight: 600;
}
.chip-x {
  width: 24px; height: 28px; margin-right: -8px; border: 0; background: transparent;
  color: var(--color-neutral-700); font-size: 16px; line-height: 1; cursor: pointer;
}
.chip-x:hover { color: var(--color-accent-700); }
.settings .check-main.switch { padding: 0; align-items: flex-start; }
.settings .check-main.switch .check-box { margin-top: 2px; }

/* — what is still owed from last month — */
.member-row.has-debt { border-bottom: 0; padding-bottom: 6px; }
.member-row.debt-row { padding-top: 0; }
.debt-label { font-size: 12px; font-weight: 600; color: var(--color-accent-700); }
.fee-debt { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 6px; }
.fee-debt-row { display: flex; align-items: center; gap: 8px; font-size: 15px; }

/* — a member's own picture — */
img.avatar { object-fit: cover; display: block; }
.avatar.big { width: 56px; height: 56px; font-size: 22px; }
.me-head { display: flex; align-items: center; gap: 14px; }
.avatar-acts { display: flex; flex-wrap: wrap; margin: 2px 0 0 -10px; }
.avatar-row { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--color-divider); }
.avatar-row .label { margin-bottom: 0; }
/* a member's own details: the same column of fields as the admin's page of a member */
.profile { margin: 0; display: flex; flex-direction: column; gap: 14px; }

/* — the fee sheet: the amount above what can be done about it, and "Đóng hộ" — */
.fee-row { align-items: flex-start; }
.fee-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fee-acts { display: flex; align-items: center; gap: 6px; }
.pay-for { margin: 0 16px 14px; padding: 10px 14px 14px; background: var(--color-surface); display: flex; flex-direction: column; gap: 6px; }
.pay-for-head { display: flex; align-items: center; gap: 8px; }
.pay-for .pay { margin-top: 4px; padding-top: 12px; }
