/* Taste achromatic-ledger: koetabi type and blue-grey ground, real balances. */
#rewards-panel,.rewards-shop-panel {color:var(--ink);padding:28px 32px;background:var(--surface);border-radius:var(--journey-radius,20px);}
#rewards-panel {margin:0 0 32px;}
.rewards-head,.points-shop-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;}
#rewards-panel h1,.points-shop-heading h1 {font-size:24px;font-weight:600;margin:0;line-height:1.4;}
:is(#rewards-panel,#points-shop-content) h2 {font-size:18px;font-weight:600;margin:0;line-height:1.5;}
:is(#rewards-panel,#points-shop-content) h3 {font-size:17px;font-weight:600;margin:0 0 6px;line-height:1.5;}
:is(#rewards-panel,#points-shop-content) p {margin:0;line-height:1.65;}
.rewards-muted,.points-shop-heading a,.rewards-product p {color:var(--muted);font-size:14px;}
.points-shop-heading {align-items:center;margin-bottom:24px;}
.points-shop-heading a {min-height:44px;display:inline-flex;align-items:center;text-decoration:none;}
:is(#rewards-panel,#points-shop-content) a {color:var(--accent);text-decoration:none;}
:is(#rewards-panel,#points-shop-content) a:hover,.points-shop-heading a:hover {text-decoration:underline;}
.rewards-number {font-variant-numeric:tabular-nums;white-space:nowrap;}
.rewards-task-wallet {display:grid;gap:4px;text-align:right;padding:4px 0;min-height:48px;background:transparent;border:0;box-shadow:none;color:var(--ink);font:inherit;white-space:nowrap;cursor:pointer;}
.rewards-task-wallet>span:last-child {font-size:13px;color:var(--muted);}
.rewards-task-wallet:hover>span:last-child {color:var(--ink);text-decoration:underline;}
.rewards-daily-progress {display:flex;gap:6px;max-width:240px;height:5px;margin-top:16px;}
.rewards-daily-progress span {flex:1;border-radius:4px;background:var(--line);}
.rewards-daily-progress .is-done {background:var(--accent);}
#rewards-panel .rewards-feedback {color:var(--accent);font-size:14px;margin-top:12px;}
#rewards-panel .rewards-feedback:empty {display:none;}
.rewards-task-progress,.rewards-shop-wallet progress {display:block;appearance:none;width:100%;height:5px;border:0;border-radius:4px;background:var(--line);color:var(--accent);overflow:hidden;}
.rewards-task-progress {max-width:180px;margin-top:7px;}
:is(.rewards-task-progress,.rewards-shop-wallet progress)::-webkit-progress-bar {background:var(--line);}
:is(.rewards-task-progress,.rewards-shop-wallet progress)::-webkit-progress-value {background:var(--accent);}
:is(.rewards-task-progress,.rewards-shop-wallet progress)::-moz-progress-bar {background:var(--accent);}
.rewards-tasks {list-style:none;padding:0;margin:16px 0 0;}
.rewards-tasks li {display:flex;gap:16px;align-items:center;min-height:78px;border-bottom:1px solid var(--line);}
.rewards-tasks li:last-child {border-bottom:0;}
.rewards-check {color:var(--muted);width:22px;height:22px;display:grid;place-items:center;flex-shrink:0;}
.rewards-check::after {content:'';width:14px;height:14px;border:1px solid currentColor;border-radius:50%;}
.rewards-check.is-done::after {width:7px;height:13px;border:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;border-radius:0;transform:rotate(40deg);}
.rewards-check.is-done {color:var(--accent);}
.rewards-task-label {flex:1;min-width:0;font-size:16px;}
.rewards-task-label small {display:block;font-size:13px;color:var(--muted);margin-top:3px;}
.rewards-award {font-size:16px;min-width:34px;text-align:right;}
.rewards-task-done {width:80px;text-align:center;font-size:14px;color:var(--muted);}
:is(#rewards-panel,#points-shop-content,.rewards-dialog) .journey-button {min-height:44px;border-radius:10px;min-width:80px;box-shadow:none;white-space:nowrap;}
:is(#rewards-panel,#points-shop-content) .journey-button:disabled {cursor:default;opacity:1;color:var(--muted);background:var(--surface-muted);}
#view-points-shop {max-width:1120px;width:100%;}
/* Available canvas = 1fr catalogue + 24px gutter + 280px wallet. Same edges below. */
.points-shop-layout {display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start;}
.rewards-shop-wallet {grid-column:2;grid-row:1;padding:28px;align-self:start;}
.rewards-shop-main {grid-column:1;grid-row:1;min-width:0;display:grid;gap:24px;}
#points-shop-content .rewards-total {font-size:36px;font-weight:500;line-height:1.2;margin:16px 0 26px;letter-spacing:-.025em;}
.rewards-total small {font-size:14px;font-weight:400;margin-left:8px;color:var(--muted);letter-spacing:0;}
.rewards-wallet-today {display:flex;justify-content:space-between;gap:16px;font-size:14px;}
.rewards-shop-wallet progress {margin:12px 0;}
.rewards-shop-wallet>.journey-button {margin-top:20px;width:100%;}
.rewards-text-button {display:block;background:transparent;color:var(--muted);border:0;box-shadow:none;font:inherit;font-size:14px;min-height:44px;padding:10px 0;margin:4px auto 0;cursor:pointer;}
.rewards-text-button.quiet-action { padding:8px 14px; border-radius:7px; }
.rewards-text-button.quiet-action:is(:hover,:focus-visible) { background:var(--surface-muted); color:var(--ink); }
.rewards-text-button.quiet-action:active { background:var(--accent-soft); color:var(--ink); }
.rewards-products {display:flex;flex-direction:column;}
.rewards-product {display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:24px;align-items:center;padding:24px 0;border-bottom:1px solid var(--line);}
.rewards-product:last-child {border-bottom:0;padding-bottom:4px;}
.rewards-product-copy {min-width:0;}
.rewards-product-state {display:block;margin-top:12px;font-size:13px;color:var(--muted);}
.rewards-product-unavailable {display:block;margin-top:4px;font-size:13px;color:var(--muted);}
.rewards-product-action {display:flex;flex-direction:column;align-items:flex-end;gap:12px;}
.rewards-price {font-size:20px;font-weight:500;}
.rewards-price small {font-size:13px;color:var(--muted);font-weight:400;}
.rewards-product-action .journey-button {width:132px;padding-inline:8px;font-size:14px;}
#points-shop-content .rewards-membership-heading {padding-top:28px;margin-top:24px;border-top:1px solid var(--line);}
.rewards-message:empty {display:none;}
:is(#rewards-panel,#points-shop-content) .rewards-message {color:var(--muted);line-height:1.65;font-size:14px;}
#rewards-panel .rewards-message:not(:empty) {margin-top:16px;}
.rewards-pending {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;}
.rewards-ledger {padding-block:8px;}
.rewards-ledger summary {min-height:48px;padding:12px 0;cursor:pointer;font-size:15px;}
.rewards-ledger ul {list-style:none;margin:4px 0 0;padding:0;}
.rewards-ledger li {display:flex;justify-content:space-between;gap:24px;padding:14px 0;border-top:1px solid var(--line);font-size:14px;}
.rewards-ledger time {display:block;margin-top:3px;color:var(--muted);font-size:13px;}
#points-shop-content .rewards-receipt {font-size:14px;padding:12px 0;color:var(--muted);}
.rewards-guest {display:flex;gap:24px;align-items:center;flex-wrap:wrap;}
.rewards-dialog {max-width:480px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:28px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);}
.rewards-dialog::backdrop {background:rgb(0 0 0 / .35);}
.rewards-dialog h2 {font-size:22px;margin:0 0 16px;line-height:1.4;}
.rewards-dialog p {font-size:15px;line-height:1.75;color:var(--muted);}
.rewards-dialog dl {margin:24px 0;}
.rewards-dialog dl>div {display:flex;justify-content:space-between;gap:16px;margin:12px 0;}
.rewards-dialog dd {margin:0;}
.rewards-dialog-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;}
:is(#rewards-panel,#points-shop-content,.rewards-dialog) :focus-visible {outline:2px solid var(--accent);outline-offset:3px;}
.member-utilities #rewards-balance-toggle {height:auto;min-height:48px;gap:2px;}
#rewards-balance-value {font-size:11px;line-height:1.3;}
@media(min-width:1280px) {
  html[data-design='focus'] .member-utilities #rewards-balance-toggle {gap:10px;min-height:48px;}
  #rewards-balance-toggle .member-utility-label {font-size:14px;}
  #rewards-balance-value {margin-left:auto;font-size:13px;}
}
@media(max-width:1000px) {
  .points-shop-layout {grid-template-columns:minmax(0,1fr) 240px;gap:20px;}
  .rewards-shop-panel {padding-inline:24px;}
  .rewards-shop-main {gap:20px;}
}
@media(max-width:800px) {
  #rewards-panel {padding:24px;}
  .points-shop-layout {grid-template-columns:minmax(0,1fr);gap:20px;}
  .rewards-shop-wallet,.rewards-shop-main {grid-column:1;grid-row:auto;}
  .rewards-shop-wallet {display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 16px;}
  #points-shop-content .rewards-total {margin:0;grid-column:1;grid-row:2;}
  .rewards-shop-wallet>.journey-button {grid-column:2;grid-row:1 / 3;margin:0;}
  .rewards-shop-wallet .rewards-wallet-today,.rewards-shop-wallet progress,.rewards-shop-wallet>.rewards-muted {display:none;}
  .rewards-shop-wallet .rewards-text-button {display:none;}
  .rewards-shop-wallet>[data-reserved] {display:block;grid-column:1 / -1;}
}
@media(max-width:480px) {
  #rewards-panel {padding:20px 16px;margin-bottom:20px;}
  #rewards-panel h1,.points-shop-heading h1 {font-size:22px;}
  .points-shop-heading {margin-bottom:16px;}
  .rewards-head {gap:12px;}
  .rewards-tasks li {gap:8px;min-height:88px;}
  .rewards-check {width:18px;}
  .rewards-task-label {font-size:15px;}
  .rewards-award {font-size:14px;min-width:29px;}
  #rewards-panel .journey-button {min-width:68px;padding:8px 10px;font-size:13px;}
  .rewards-task-done {width:68px;font-size:13px;}
  .rewards-shop-panel {padding:20px;}
  .rewards-shop-wallet {padding-bottom:20px;}
  .rewards-product {grid-template-columns:minmax(0,1fr) 108px;gap:16px;padding:22px 0;}
  .rewards-product-action .journey-button {width:108px;font-size:13px;}
  .rewards-product p {font-size:13px;}
  .rewards-product-state {font-size:12px;}
  #points-shop-content h3 {font-size:16px;}
  .rewards-price {font-size:18px;}
  .rewards-ledger {padding-block:6px;}
  .rewards-pending {align-items:flex-start;flex-direction:column;}
  .rewards-dialog {padding:24px;}
}
@media(max-width:360px) {
  .rewards-product {grid-template-columns:minmax(0,1fr);gap:16px;}
  .rewards-product-action {flex-direction:row;align-items:center;justify-content:space-between;}
}

#home-agenda { min-width: 0; grid-column: 9 / 13; }
#home-agenda[hidden], #journey-discovery[hidden], #home-agenda [hidden] { display: none; }
#home-agenda .agenda-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#home-agenda h2 { margin:0; color:var(--ink); font:600 18px/1.4 var(--font-interface); }
#home-agenda .agenda-calendar-toggle, #home-agenda .agenda-go { min-height:44px; padding:0 4px; border:0; box-shadow:none; background:transparent; color:var(--accent); font:500 14px/1.4 var(--font-interface); }
#home-agenda .agenda-calendar-toggle { color:var(--muted); }
#home-agenda :is(.agenda-calendar-toggle,.agenda-go):is(:hover,:focus-visible) { color:var(--accent); text-decoration:underline; text-underline-offset:.22em; }
#home-agenda #rewards-panel { margin:0; padding:0; background:transparent; border:0; }
#home-agenda .rewards-tasks { margin:4px 0; }
#home-agenda .rewards-tasks li { display:grid; grid-template-columns:16px minmax(0,1fr) auto; gap:10px; min-height:64px; }
#home-agenda .rewards-check { width:16px; }
#home-agenda .rewards-task-label { font-size:15px; }
#home-agenda .rewards-task-label small { color:var(--muted); font-size:13px; }
#home-agenda .agenda-claim { min-height:40px; min-width:54px; padding:6px 12px; border:0; border-radius:7px; box-shadow:none; background:var(--accent-soft); color:var(--accent); font:600 14px/1.4 var(--font-interface); }
#home-agenda .rewards-task-done { width:auto; color:var(--muted); text-align:end; }
#home-agenda .agenda-total { display:flex; justify-content:space-between; gap:8px; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; }
#home-agenda .rewards-message:empty { display:none; }
.checkin-week {
  display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); list-style:none;
  margin:4px 0 6px; padding:8px 0 13px; border-bottom:1px solid var(--line);
}
.checkin-week time { display:grid; justify-items:center; gap:5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.checkin-week small { font:500 12px/1.4 var(--font-interface); }
.checkin-week time > span {
  display:grid; place-items:center; position:relative; width:28px; height:28px; border:1px solid transparent;
  border-radius:50%; color:var(--ink); font:500 14px/1 var(--font-interface);
  font-variant-numeric:tabular-nums;
}
.checkin-week .is-checked time > span { background:var(--accent-soft); color:var(--accent); }
.checkin-week .is-checked time > span::after {
  content:''; position:absolute; right:-3px; bottom:-1px; width:12px; height:12px; border-radius:50%;
  background:var(--journey-primary);
}
.checkin-week .is-checked time > span::before {
  content:''; position:absolute; z-index:1; right:0; bottom:3px; width:5px; height:3px;
  border:solid var(--journey-on-primary); border-width:0 0 1.5px 1.5px; transform:rotate(-45deg);
}
.checkin-week .is-today time { color:var(--accent); }
.checkin-week .is-today time > span { border-color:var(--accent); color:var(--accent); font-weight:700; }
#checkin-calendar {
  box-sizing:border-box; width:min(360px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow:auto;
  margin:auto; padding:18px 22px 14px; border:1px solid var(--line); border-radius:18px;
  background:var(--surface); color:var(--ink); box-shadow:var(--popover-shadow); font-family:var(--font-interface);
}
#checkin-calendar::backdrop { background:var(--modal-scrim); }
.checkin-dialog-heading,.calendar-month-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.checkin-dialog-heading { border-bottom:1px solid var(--line); padding-bottom:8px; }
.checkin-dialog-heading h2 { margin:0; font-size:16px; font-weight:600; }
.calendar-month-heading { margin:10px 0 6px; }
.calendar-month-heading strong { font-size:20px; font-weight:600; font-variant-numeric:tabular-nums; }
#checkin-calendar .calendar-icon {
  display:grid; place-items:center; height:44px; width:44px; min-height:44px; padding:0;
  border-radius:8px; background:transparent; color:var(--muted);
}
#checkin-calendar .calendar-icon:not(:disabled):is(:hover,:focus-visible) { background:var(--surface-muted); color:var(--ink); }
#checkin-calendar .calendar-icon:not(:disabled):active { background:var(--accent-soft); }
.calendar-icon::before {
  content:''; width:17px; height:17px; background:currentColor;
  mask:url('../vendor/lucide/x.svg') center / contain no-repeat;
}
.calendar-icon[data-calendar-step="-1"]::before { mask-image:url('../vendor/lucide/chevron-left.svg'); }
.calendar-icon[data-calendar-step="1"]::before { mask-image:url('../vendor/lucide/chevron-right.svg'); }
#checkin-calendar .calendar-day { display:grid; place-items:center; }
#checkin-calendar .calendar-day.is-checked { background:var(--accent-soft); color:var(--accent); }
#checkin-month-total { margin:10px 0 0; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; }
@media(max-width:600px) {
  #checkin-calendar { width:min(390px,calc(100% - 20px)); margin:auto auto max(10px,env(safe-area-inset-bottom)); padding-inline:18px; }
}
@media(min-width:1151px) {
  html[data-design='focus'] #view-daily .journey-grid { grid-template-rows:auto 1fr; }
  html[data-design='focus'] #view-daily .journey-grid > .journey-secondary-column { grid-row:1 / span 2; }
  html[data-design='focus'] #view-daily #journey-discovery:not([hidden]) { grid-column:1/9; grid-row:2; }
}
@media(min-width:601px) and (max-width:1150px) {
  html[data-design='focus'] #view-daily #home-agenda { grid-column:2; grid-row:1 / span 2; }
  html[data-design='focus'] #view-daily .journey-secondary-column > .journey-own { grid-column:1; }
}
@media(max-width:600px) {
  #view-daily #home-agenda { grid-column:auto; }
}
