/* Toronto Coffee Pass - account site. Mirrors the app's utils/theme.ts */
:root {
  --navy: #18269b;
  --navy-pin: #202ea9;
  --checker: #202ea9;
  --cream: #ffffe5;
  --white: #ffffff;
  --green: #1e7e34;
  --green-light: #e6f4ea;
  --red: #c0392b;
  --grey-border: #eee;
  --grey-text: #666;
  --grey-text-light: #999;

  --f-regular: "DM Mono", ui-monospace, monospace;
  --f-medium: "DM Mono", ui-monospace, monospace;
  --f-bold: "IBM Plex Mono", ui-monospace, monospace;
  --f-heading: "Instrument Serif", Georgia, serif;

  --content-max: 480px;
  /* Checkerboard square: about 3 squares across a phone, capped at phone size */
  --sq: calc(min(100vw, 430px) * 0.325);
  --tabbar-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--f-regular);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
ion-icon { display: block; }
.hidden { display: none !important; }

/* Text weights used by the app */
.t-medium { font-family: var(--f-medium); font-weight: 500; }
.t-bold { font-family: var(--f-bold); font-weight: 700; }

/* Layout helpers */
.content { width: 100%; max-width: var(--content-max); margin: 0 auto; }
.centered { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; }
.cream { background: var(--cream); }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(24, 38, 155, 0.2); border-top-color: var(--navy);
  animation: spin 0.8s linear infinite;
}
.spinner.white { border-color: rgba(255,255,255,0.35); border-top-color: #fff; }
.spinner.small { width: 16px; height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

.checkerboard {
  background-color: var(--white);
  /* One 2x2 tile of squares, drawn with crisp edges so no hairlines show between squares */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' viewBox='0 0 2 2' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Crect width='2' height='2' fill='%23ffffff'/%3E%3Crect width='1' height='1' fill='%23202ea9'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23202ea9'/%3E%3C/svg%3E");
  background-size: calc(var(--sq) * 2) calc(var(--sq) * 0.93 * 2);
}

/* Buttons (pill shapes, radius 55 in the app) */
.btn-primary, .btn-secondary, .btn-white {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border-radius: 55px; font-family: var(--f-medium); font-weight: 500;
  font-size: 13px; letter-spacing: 0.2px; text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; padding: 15px; min-height: 48px; }
.btn-secondary { border: 1px solid var(--navy); color: var(--navy); padding: 13px; min-height: 46px; background: transparent; }
.btn-white { background: #fff; color: var(--navy); padding: 13px; letter-spacing: 0.5px; }
button:disabled { opacity: 0.75; cursor: default; }

/* ---------- Landing ---------- */
.landing { min-height: 100vh; min-height: 100dvh; background: var(--cream); padding: 24px; padding-top: calc(env(safe-area-inset-top) + 24px); padding-bottom: calc(env(safe-area-inset-bottom) + 24px); display: flex; }
.landing-col { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: var(--content-max); margin: 0 auto; }
.landing-card { flex: 1; min-height: 520px; position: relative; background: #fff; border-radius: 28px; padding: 24px; margin-bottom: 34px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.landing-logo { position: absolute; top: 18px; right: 18px; width: 120px; height: 88px; object-fit: contain; }
.landing-title { margin: 104px 0 0 12px; font-family: var(--f-bold); font-weight: 700; font-size: 28px; line-height: 34px; color: var(--navy); }
.date-row { display: flex; margin-top: 28px; }
.date-text { margin-left: 12px; font-family: var(--f-bold); font-weight: 700; font-size: 13px; line-height: 16px; color: var(--navy); }
.date-range { margin-left: 8px; }
.landing-cup { position: absolute; right: 20px; top: 49%; width: 190px; height: 190px; object-fit: contain; }
.landing-tagline { margin: 0 0 20px 12px; font-family: var(--f-bold); font-weight: 700; font-size: 20px; line-height: 26px; color: var(--navy); position: relative; }
.landing-col .btn-primary { margin-bottom: 12px; }
.fine-print { font-size: 11px; color: #666; text-align: center; margin: 16px 0 0; line-height: 16px; }
.fine-print a { text-decoration: underline; }

/* ---------- Auth forms (signup / login / reset / verify) ---------- */
.auth { min-height: 100vh; min-height: 100dvh; background: var(--cream); display: flex; flex-direction: column; justify-content: center; padding: 24px; padding-top: calc(env(safe-area-inset-top) + 24px); padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
.auth.bottom { justify-content: flex-end; padding-bottom: calc(env(safe-area-inset-bottom) + 48px); }
.auth-title { font-family: var(--f-heading); font-style: italic; font-weight: 400; font-size: 35px; color: var(--navy); margin: 0 0 24px; text-align: center; }
.auth-sub { font-size: 14px; color: var(--grey-text); text-align: center; letter-spacing: 0.2px; line-height: 20px; margin: -8px 0 28px; }
.name-row { display: flex; gap: 12px; }
.name-row > * { flex: 1; min-width: 0; }
.pill-input {
  display: block; width: 100%; background: #fff; border: 1px solid #ccc; border-radius: 55px;
  margin-bottom: 16px; padding: 14px 20px; color: var(--navy); font-family: var(--f-medium); font-weight: 500;
  font-size: 13px; letter-spacing: 0.5px; outline: none;
}
.pill-input::placeholder { color: #bbb; }
.pill-input:focus { border-color: var(--navy); }
.hint { font-size: 11px; color: #666; margin: -8px 0 12px; line-height: 16px; padding-left: 13px; }
.auth-fine { font-size: 11px; color: #666; margin: 0 0 20px 13px; }
.forgot { display: block; margin: 0 10px 17px auto; font-size: 11px; color: var(--grey-text); }
.auth .btn-primary { padding: 14px; margin-top: 8px; }
.auth .btn-primary.signup { margin-top: 23px; }
.auth-link { display: block; margin-top: 20px; text-align: center; font-size: 11px; color: var(--grey-text); }
.code-input { text-align: center; font-family: var(--f-bold); font-weight: 700; font-size: 18px; letter-spacing: 8px; }

/* ---------- Modals / alerts ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 32px; animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } }
.alert-card { width: 100%; max-width: 340px; background: #fff; border-radius: 20px; padding: 22px 20px 16px; text-align: center; }
.alert-title { font-family: var(--f-bold); font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.alert-body { font-size: 12.5px; line-height: 18px; color: #444; letter-spacing: 0.2px; margin-bottom: 18px; white-space: pre-line; }
.alert-buttons { display: flex; gap: 8px; }
.alert-btn { flex: 1; border-radius: 55px; padding: 11px 10px; background: var(--navy); color: #fff; font-family: var(--f-medium); font-weight: 500; font-size: 13px; }
.alert-btn.cancel { background: #fff; color: var(--grey-text); border: 1px solid #ccc; }
.alert-btn.destructive { background: var(--red); }
.bday-card { background: var(--cream); border-radius: 55px; padding: 28px; width: 100%; max-width: 420px; text-align: center; }
.bday-emoji { font-size: 22px; margin-bottom: 12px; }
.bday-title { font-family: var(--f-bold); font-weight: 700; font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.bday-body { font-size: 13px; line-height: 19px; color: var(--navy); margin-bottom: 20px; }
.bday-btn { background: var(--navy); color: #fff; border-radius: 55px; padding: 11px 40px 13px; margin-top: 7px; font-family: var(--f-medium); font-weight: 500; font-size: 13px; letter-spacing: 0.2px; }

/* ---------- Tab bar ---------- */
.with-tabs { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff;
  border-top: 1px solid #e6e6e6; display: flex; justify-content: center;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { display: flex; width: 100%; max-width: var(--content-max); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #999; font-family: var(--f-regular); font-size: 10px; }
.tab ion-icon { font-size: 24px; }
.tab.active { color: var(--navy); }

/* ---------- Shared screen bits ---------- */
.screen { min-height: 100vh; min-height: 100dvh; background: var(--cream); }
.screen.white { background: #fff; }
.pad { padding: 0 24px; padding-top: calc(env(safe-area-inset-top) + 16px); }
.header-row { padding: 10px; }
.eyebrow { font-family: var(--f-medium); font-weight: 500; font-size: 11px; color: var(--grey-text-light); letter-spacing: 1px; margin: 15px 0 4px; }
.screen-title { font-family: var(--f-heading); font-style: italic; font-weight: 400; font-size: 36px; color: var(--navy); margin: 0; line-height: 1.15; }
.top-button { position: fixed; right: 20px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px); width: 35px; height: 35px; border-radius: 22px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.2); z-index: 40; }
.round-btn { width: 35px; height: 35px; border-radius: 20px; background: #fff; display: flex; align-items: center; justify-content: center; color: #000; }

/* Café card (cafés list, saved, home) */
.cafe-card { display: block; background: #fff; border: 1px solid #666; border-radius: 16px; overflow: hidden; margin-bottom: 20px; cursor: pointer; }
.cafe-img { position: relative; height: 280px; background: var(--grey-border); }
.cafe-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge-row { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { background: #fff; border-radius: 20px; padding: 4px 10px; font-family: var(--f-bold); font-weight: 700; font-size: 12px; letter-spacing: 0.5px; color: var(--navy); white-space: nowrap; }
.badge.closed { background: #dcdcdc; color: #555; letter-spacing: 0; }
.badge.open { color: #202ea9; letter-spacing: 0; }
.heart-btn { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 100px; background: #fff; display: flex; align-items: center; justify-content: center; color: #e0245e; }
.cafe-name-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff; font-family: var(--f-bold); font-weight: 700; font-size: 20px; text-shadow: 0 0 6px rgba(0,0,0,0.6); }
.cafe-desc { font-size: 12.5px; line-height: 18px; letter-spacing: 0.2px; color: #444; padding: 15px 15px 0; margin: 0; }
.more-link { font-style: italic; }
.action-section { margin: 25px 10px 20px; }
.offer-label { font-family: var(--f-medium); font-weight: 500; font-size: 10px; color: var(--navy); letter-spacing: 0.5px; margin: 0 0 14px 6px; }
.action-row { display: flex; gap: 5px; }
.action-btn { flex: 1; background: var(--navy); border-radius: 55px; padding: 9px 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--f-bold); font-weight: 700; font-size: 12px; letter-spacing: 0.5px; text-align: center; }
.action-btn.offer { flex: 1.3; }
.cafes-list .action-btn { padding: 12px 8px; }

/* ---------- My Pass (home) ---------- */
.welcome-banner { background: var(--green-light); color: var(--green); border-radius: 8px; padding: 12px; margin-bottom: 25px; text-align: center; font-family: var(--f-bold); font-weight: 700; }
.pass-img { width: 100%; aspect-ratio: 1081 / 1350; border-radius: 25px; object-fit: contain; box-shadow: 0 6px 10px rgba(0,0,0,0.2); margin-bottom: 16px; background: var(--cream); }
.greeting-block { margin: 8px 8px 16px; }
.greeting { font-family: var(--f-heading); font-weight: 400; font-size: 35px; margin: 4px 4px -10px; color: var(--navy); line-height: 1.2; }
.greeting-sub { font-family: var(--f-heading); font-style: italic; font-weight: 400; font-size: 32px; margin: 4px; color: var(--navy); line-height: 1.2; }
.main-card { background: var(--navy); border-radius: 25px; padding: 22px; color: #fff; }
.status-row { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 3px; }
.status-label { font-family: var(--f-medium); font-weight: 500; font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.5px; margin-bottom: 10px; }
.status-value { font-family: var(--f-bold); font-weight: 700; font-size: 20px; }
.status-value.inactive { color: #ff8a80; }
.status-date { font-family: var(--f-bold); font-weight: 700; font-size: 15px; }
.status-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 16px 0; }
.progress-label { padding-top: 4px; font-family: var(--f-bold); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.progress-track { height: 10px; background: rgba(255,255,255,0.15); border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: #fff; border-radius: 5px; }
.progress-sub { font-family: var(--f-medium); font-weight: 500; font-size: 13px; color: rgba(255,255,255,0.7); margin: 10px 0 20px; letter-spacing: 0.5px; }
.stats-row { display: flex; align-items: center; margin-bottom: 24px; }
.stat-box { flex: 1; text-align: center; color: #fff; }
.stat-number { font-family: var(--f-bold); font-weight: 700; font-size: 22px; }
.stat-label { font-family: var(--f-medium); font-weight: 500; font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; letter-spacing: 0.5px; padding-bottom: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.next-sheet { padding-top: 16px; }
.section-header { margin: 7px 10px 20px; }
.section-header .eyebrow { margin-left: 4px; margin-right: 4px; }
.section-header .screen-title { font-size: 35px; margin: 0 4px; }
.view-more { margin: 8px 0 44px; padding: 12px; background: #fff; }

/* ---------- Cafés list ---------- */
.search-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 22px; }
.search-wrap { flex: 1; display: flex; align-items: center; border: 1px solid #666; border-radius: 55px; padding-left: 14px; color: #666; }
.search-wrap input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 11px; font-size: 12px; color: #000; }
.circle-btn { width: 40px; height: 40px; border: 1px solid #666; border-radius: 100px; display: flex; align-items: center; justify-content: center; color: #333; flex-shrink: 0; }
.circle-btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.sort-menu { background: #fff; border: 1px solid var(--grey-border); border-radius: 10px; margin-bottom: 25px; overflow: hidden; }
.sort-option { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 0.5px solid var(--grey-border); font-size: 12px; color: #333; text-align: left; }
.sort-option.active { font-family: var(--f-bold); font-weight: 700; }
.no-results { font-size: 12px; color: var(--grey-text-light); margin: 10px 14px 20px; }

/* ---------- Saved ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.empty-text { font-size: 13px; color: #666; letter-spacing: 0.2px; line-height: 20px; margin: 0 0 30px; }
.browse-btn { border: 1px solid var(--navy); border-radius: 55px; padding: 12px 28px; font-size: 12px; color: var(--navy); }

/* ---------- Café detail ---------- */
.detail { background: var(--cream); min-height: 100vh; padding-bottom: 40px; }
.detail-img { position: relative; height: 430px; background: var(--grey-border); }
.detail-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-img .round-btn { position: absolute; top: calc(env(safe-area-inset-top) + 8px); }
.detail-img .back { left: 16px; }
.detail-img .heart { right: 16px; color: #e0245e; }
.sheet { background: #fff; border-radius: 28px; margin: -48px 12px 0; padding: 18px 20px 54px; position: relative; }
.handle { width: 36px; height: 2px; border-radius: 2px; background: var(--navy); margin: 0 auto 18px; }
.name-row-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.detail-name { font-family: var(--f-bold); font-weight: 700; font-size: 22px; color: var(--navy); margin: 0; }
.open-border { border: 1px solid var(--navy); border-radius: 55px; overflow: hidden; flex-shrink: 0; }
.open-border.no-border { border-color: transparent; }
.offer-wrap { margin: 3px 0 16px; }
.offer-wrap .offer-label { margin-bottom: 10px; }
.offer-pill { display: inline-block; background: var(--navy); border-radius: 55px; padding: 10px 23px; color: #fff; font-family: var(--f-medium); font-weight: 500; font-size: 12.5px; letter-spacing: 0.5px; }
.offer-desc { font-size: 11px; color: #444; margin: 8px 0 0 8px; }
.redeemed-box { background: var(--cream); border-radius: 20px; padding: 16px; margin: 7px 0 18px; color: var(--navy); font-size: 12.5px; letter-spacing: 0.3px; text-align: center; line-height: 18px; }
.detail-desc { font-size: 12.5px; line-height: 18px; letter-spacing: 0.2px; color: #444; margin: 8px 0 19px; white-space: pre-line; }
.block { margin-bottom: 18px; }
.info-label { font-family: var(--f-medium); font-weight: 500; font-size: 12.5px; line-height: 18px; color: #444; margin-bottom: 4px; letter-spacing: 0.2px; }
.info-text { font-size: 12.5px; line-height: 18px; letter-spacing: 0.2px; color: #444; }
.info-row { display: flex; align-items: flex-start; gap: 10px; }
.copy-btn { margin-top: 3px; color: var(--navy); }
.chip-row { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 35px; }
.link-chip { display: flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 13px; color: var(--navy); word-break: break-all; }
.pin-section { border: 1px solid var(--grey-border); border-radius: 20px; padding: 27px 15px 35px; }
.pin-title { font-family: var(--f-bold); font-weight: 700; font-size: 17px; color: var(--navy); text-align: center; margin: 0 0 4px; line-height: 1.35; }
.pin-fine { font-size: 12px; color: #666; text-align: center; margin: 10px 0 24px; }
.pin-row, .code-row { display: flex; align-items: stretch; gap: 10px; }
.pin-input, .code-field {
  flex: 1; min-width: 0; border: 1px solid #e3e3e3; border-radius: 55px; padding: 12px; background: #fff; color: #000;
  font-family: var(--f-bold); font-weight: 700; font-size: 15px; text-align: center; outline: none;
}
.pin-input { letter-spacing: 10px; padding-left: 22px; }
.pin-input::placeholder { color: var(--grey-text-light); letter-spacing: 10px; }
.pin-input:focus, .code-field:focus { border-color: var(--navy); }
.redeem-btn { background: var(--navy); color: #fff; border-radius: 55px; padding: 0 20px; min-height: 46px; display: flex; align-items: center; justify-content: center; font-family: var(--f-medium); font-weight: 500; font-size: 13px; letter-spacing: 0.2px; white-space: nowrap; }
.reviews-title { font-family: var(--f-heading); font-weight: 400; font-size: 28px; color: var(--navy); margin: 46px 0 10px; }

/* Redemption confirmation */
.confirm { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--cream); }
.confirm-top { flex: 1.1; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(env(safe-area-inset-top) + 24px) 36px 44px; }
.confirm-title { font-family: var(--f-heading); font-style: italic; font-weight: 400; font-size: 37px; line-height: 43px; margin: 0 30px 0 0; color: var(--navy); }
.confirm-hint { font-size: 13.5px; letter-spacing: 0.2px; color: #444; padding-top: 30px; margin: 0; }
.confirm-bottom { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.clock-card { width: 100%; max-width: var(--content-max); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; padding: 14px 14px 14px 20px; border-radius: 15px; }
.clock-date { font-family: var(--f-heading); font-weight: 400; font-size: 30px; color: var(--navy); line-height: 1.15; }
.clock-time { font-family: var(--f-medium); font-weight: 500; font-size: 24px; line-height: 30px; color: var(--navy); font-variant-numeric: tabular-nums; }
.done-btn { background: var(--navy); color: #fff; border-radius: 55px; padding: 13px 34px; font-family: var(--f-bold); font-weight: 700; font-size: 13px; }

/* Reviews */
.average-row { display: flex; align-items: center; margin-bottom: 16px; }
.average-star { font-size: 18px; color: #f59e0b; margin-right: 6px; }
.average-text { font-family: var(--f-bold); font-weight: 700; font-size: 13px; color: #333; }
.no-reviews { font-size: 13px; color: #666; }
.review-row { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 0.5px solid var(--navy); }
.signature-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.reviewer { font-family: var(--f-bold); font-weight: 700; font-size: 14px; color: #333; }
.verified { background: #e6f4ea; border-radius: 20px; padding: 2px 8px; font-family: var(--f-medium); font-weight: 500; font-size: 10px; color: #1e7e34; }
.stars { display: flex; margin-bottom: 4px; font-size: 14px; color: #ddd; }
.stars .on, .star-pick.on { color: #f59e0b; }
.review-text { font-size: 13px; letter-spacing: 0.2px; color: #444; white-space: pre-line; }
.action-links { display: flex; align-items: baseline; gap: 18px; }
.report-link { font-size: 11px; color: #999; margin-top: 10px; }
.reported { font-size: 11px; color: #999; margin-top: 6px; font-style: italic; }
.form-box { margin-top: 19px; padding: 4px; }
.form-heading { font-family: var(--f-bold); font-weight: 700; font-size: 15px; color: #666; margin: 10px 0 6px; }
.star-picker { display: flex; margin-bottom: 4px; }
.star-pick { font-size: 26px; color: #ddd; margin-right: 4px; line-height: 1.2; }
.question { font-family: var(--f-bold); font-weight: 700; font-size: 14px; color: #666; margin: 16px 0 8px; }
.question-row { display: flex; align-items: baseline; gap: 6px; margin: 23px 0 11px; }
.question-row .question { margin: 0; }
.optional { font-size: 12px; color: #999; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #ccc; border-radius: 20px; padding: 8px 14px; background: #fff; font-size: 13px; color: #333; }
.chip.on { background: #222ea9; border-color: #222ea9; color: #fff; font-family: var(--f-bold); font-weight: 700; }
.text-area { display: block; width: 100%; border: 0.5px solid #ccc; border-radius: 8px; padding: 10px; font-size: 13px; min-height: 60px; background: #fff; resize: vertical; outline: none; color: #222; }
.submit-review { width: 100%; border: 1px solid; border-radius: 25px; padding: 12px; margin-top: 20px; color: #666; font-family: var(--f-bold); font-weight: 700; font-size: 13px; }
.see-you { font-family: var(--f-heading); font-style: italic; font-size: 25px; color: #202ea9; text-align: center; margin-top: 16px; }
.redeem-first { font-size: 12.5px; letter-spacing: 0.2px; color: #666; margin-top: 12px; }

/* ---------- Map ---------- */
.map-screen { position: fixed; inset: 0; background: var(--cream); }
#map { position: absolute; inset: 0; background: #eef2f5; }
.map-back { position: absolute; left: 16px; top: calc(env(safe-area-inset-top) + 8px); z-index: 500; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.map-header { position: absolute; left: 68px; top: calc(env(safe-area-inset-top) + 2px); z-index: 500; background: #fff; border-radius: 25px; padding: 8px 21px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.map-header .e { font-family: var(--f-bold); font-weight: 700; font-size: 12px; color: #999; letter-spacing: 1px; }
.map-header .t { font-family: var(--f-bold); font-weight: 700; font-size: 17px; color: var(--navy); }
.popup-card { font-family: var(--f-bold); min-width: 220px; }
.popup-card .badge-row { position: static; margin-bottom: 8px; }
.popup-card .badge { font-size: 12px; padding: 3px 10px; }
.popup-card .badge.available { background: #202ea9; color: #fff; }
.popup-card .badge.open { border: 1px solid #eee; }
.p-name { font-size: 17px; font-weight: 700; color: #202ea9; }
.p-meta { font-size: 12px; color: #666; margin-bottom: 4px; font-weight: 500; }
.p-hours-label { font-size: 12px; font-weight: 700; color: #444; margin-bottom: 2px; }
.p-hours div { font-size: 12px; color: #666; line-height: 18px; font-weight: 500; }
.p-offer { background: #1e2a78; border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.p-offer-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.7); }
.p-offer-title { font-size: 13px; font-weight: 700; color: #fff; margin-top: 2px; }
.p-btn { width: 100%; background: #1e2a78; color: #fff; border-radius: 8px; padding: 10px; font-family: var(--f-bold); font-size: 13px; font-weight: 700; margin-top: 6px; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.3); box-sizing: border-box; }
.pin img { width: 26px; height: 26px; transform: rotate(45deg); object-fit: contain; }
.pin.available { background: #202ea9; }
.pin.visited { background: #fff; border: 2px solid #202ea9; }

/* ---------- More (profile) ---------- */
.more { min-height: 100vh; background: #fff; position: relative; }
.more-bg { position: absolute; top: 0; left: 0; right: 0; height: 67vh; overflow: hidden; background-position: calc(var(--sq) * -0.35) calc(var(--sq) * 0.93 * -0.32); }
.more-spacer { position: relative; height: calc(67vh - 28px); display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 10px 34px; }
.identity-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 25px; padding: 14px; width: 100%; max-width: var(--content-max); margin: 0 auto; }
.avatar { width: 52px; height: 52px; border-radius: 100px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-bold); font-weight: 700; font-size: 17px; flex-shrink: 0; }
.identity-name { font-family: var(--f-heading); font-style: italic; font-size: 32px; color: var(--navy); line-height: 1.15; }
.identity-email { font-size: 13px; letter-spacing: 0.2px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-sheet { position: relative; background: #fff; border-radius: 25px 25px 0 0; padding: 12px 24px 0; min-height: calc(33vh + 28px); }
.link-row { display: flex; width: 100%; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--grey-border); font-family: var(--f-bold); font-weight: 700; font-size: 14px; letter-spacing: 0.2px; color: var(--navy); text-align: left; }
.link-row span { flex: 1; }
.link-row ion-icon { color: #ccc; font-size: 16px; }
.logout { margin-top: 32px; }
.delete-link { display: block; margin: 16px auto 0; padding: 10px; font-family: var(--f-medium); font-weight: 500; font-size: 11px; color: #999; text-decoration: underline; }
.delete-card { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 420px; }
.delete-card h3 { font-family: var(--f-bold); font-weight: 700; font-size: 18px; color: var(--navy); margin: 0 0 12px; }
.delete-card p { font-size: 13.5px; color: #666; letter-spacing: 0.2px; margin: 0 0 18px; line-height: 1.45; }
.delete-card label { display: block; font-family: var(--f-bold); font-weight: 700; font-size: 13.5px; color: var(--navy); margin-bottom: 10px; }
.delete-card input { width: 100%; border: 1px solid #666; border-radius: 5px; padding: 13px; font-family: var(--f-bold); font-weight: 700; font-size: 13.5px; color: var(--navy); margin-bottom: 20px; outline: none; }
.delete-card input::placeholder { color: #bbb; }
.btn-row { display: flex; gap: 10px; }
.btn-row button { flex: 1; border-radius: 55px; padding: 12px; font-size: 12px; letter-spacing: 0.2px; }
.btn-cancel { border: 1px solid #666 !important; color: #666; font-family: var(--f-medium); }
.btn-delete { background: var(--red); color: #fff; font-family: var(--f-bold); font-weight: 700; }
.btn-delete:disabled { background: #e0b3ac; opacity: 1; }

/* Simple list screens (blocked reviewers, my reviews) */
.back-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.back-row .round-btn { border: 1px solid var(--grey-border); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--grey-border); }
.list-row .grow { flex: 1; min-width: 0; }
.list-title { font-family: var(--f-bold); font-weight: 700; font-size: 14px; color: var(--navy); }
.list-sub { font-size: 12px; color: #666; margin-top: 2px; }
.small-pill { border: 1px solid var(--navy); border-radius: 55px; padding: 8px 14px; font-size: 12px; color: var(--navy); flex-shrink: 0; }
.my-review { display: block; padding: 16px 0; border-bottom: 0.5px solid var(--navy); }

/* ---------- Admin (plain styles, like the app) ---------- */
.admin { background: #fff; min-height: 100vh; color: #000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.admin .wrap { max-width: var(--content-max); margin: 0 auto; padding: calc(env(safe-area-inset-top) + 16px) 24px 40px; }
.admin h1 { font-size: 26px; font-weight: 700; margin: 0 0 20px; }
.admin h2 { font-size: 22px; font-weight: 700; margin: 0; }
.toggle-row { display: flex; background: #f0f0f0; border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.toggle-row button { flex: 1; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #666; }
.toggle-row button.on { background: #fff; color: #000; }
.admin-add { width: 100%; background: #000; color: #fff; border-radius: 8px; padding: 14px; font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.admin-search { width: 100%; border: 1px solid #ccc; border-radius: 10px; padding: 12px; font-size: 14px; margin-bottom: 16px; outline: none; }
.admin-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 0.5px solid #eee; cursor: pointer; }
.thumb { width: 48px; height: 48px; border-radius: 8px; margin-right: 12px; background: #eee; object-fit: cover; flex-shrink: 0; }
.admin-row .n { font-size: 15px; font-weight: 600; }
.admin-row .h { font-size: 12px; color: #999; margin-top: 2px; }
.admin-row .s { font-size: 12px; color: #666; margin-top: 4px; }
.inactive-badge { background: #f0f0f0; border-radius: 20px; padding: 3px 8px; font-size: 11px; color: #999; font-weight: 600; }
.flag-card { border: 0.5px solid #eee; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.flag-card .c { font-size: 14px; font-weight: 700; }
.flag-card .stars { margin: 4px 0; }
.flag-card .r { font-size: 12px; color: #666; margin-bottom: 6px; }
.flag-card .t { font-size: 14px; color: #333; margin-bottom: 12px; white-space: pre-line; }
.flag-card .t.empty { font-size: 13px; color: #999; font-style: italic; }
.flag-actions { display: flex; gap: 10px; }
.flag-actions button { flex: 1; border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 600; }
.btn-dismiss { border: 1px solid #ccc !important; color: #333; }
.btn-hide { background: #c0392b; color: #fff; }
.admin-empty { font-size: 14px; color: #999; text-align: center; margin-top: 30px; }
.form-header { display: flex; align-items: center; margin-bottom: 20px; }
.form-header .round-btn { width: 36px; height: 36px; border: 1px solid #eee; margin-right: 12px; }
.view-link { display: inline-block; font-size: 13px; color: #0066cc; font-weight: 600; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label, .field-label { display: block; font-size: 13px; color: #666; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; border: 0.5px solid #ccc; border-radius: 8px; padding: 12px; font-size: 14px; outline: none; font-family: inherit; }
.field textarea { min-height: 70px; resize: vertical; }
.row-fields { display: flex; gap: 12px; }
.row-fields .field { flex: 1; margin-bottom: 4px; }
.hint-text { font-size: 11px; color: #999; margin-bottom: 14px; }
.section-label { font-size: 15px; font-weight: 700; margin: 12px 0 10px; }
.hours-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 0.5px solid #eee; flex-wrap: wrap; gap: 6px; }
.hours-row .d { width: 90px; font-size: 14px; }
.hours-row input[type="time"] { border: 0.5px solid #ccc; border-radius: 6px; padding: 6px; font-size: 13px; }
.hours-row .closed { color: #999; font-size: 13px; margin-left: 6px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #ccc; border-radius: 24px; transition: 0.15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(18px); }
.active-row { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; font-size: 14px; }
.yes-no { border: 1px solid #ccc; border-radius: 8px; padding: 8px 16px; font-weight: 600; color: #333; }
.yes-no.on { background: #1e7e34; border-color: #1e7e34; color: #fff; }
.save-btn { width: 100%; background: #000; color: #fff; border-radius: 8px; padding: 16px; font-weight: 600; font-size: 16px; display: flex; justify-content: center; }
.not-authorized { min-height: 60vh; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #666; text-align: center; padding: 24px; }

/* ---------- Activate ---------- */
.activate { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--cream); }
.activate-top { flex: 1.1; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(env(safe-area-inset-top) + 24px) 36px 64px; }
.activate-title { font-family: var(--f-bold); font-weight: 700; font-size: 26px; line-height: 30px; margin: 0 0 0 8px; color: var(--navy); }
.activate-bottom { flex: 1; min-height: 340px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0 16px calc(env(safe-area-inset-bottom) + 36px); background-position: calc(var(--sq) * -0.45) calc(var(--sq) * 0.93 * -0.22); }
.confirm-bottom { background-position: calc(var(--sq) * -0.45) calc(var(--sq) * 0.93 * -0.22); }
.code-card { width: 100%; max-width: var(--content-max); background: #fff; padding: 20px; margin-top: 20px; text-align: center; }
.code-card .ttl { font-family: var(--f-bold); font-weight: 700; font-size: 13px; color: var(--navy); opacity: 0.85; margin-bottom: 6px; }
.code-card .body { font-family: var(--f-medium); font-weight: 500; font-size: 12px; color: var(--navy); line-height: 17px; opacity: 0.7; margin: 0 0 24px; }
.code-field { padding: 13px; letter-spacing: 3px; text-transform: uppercase; }
.code-field::placeholder { color: var(--grey-text-light); letter-spacing: 3px; }
.code-row .redeem-btn { min-width: 104px; }
.later-link { display: block; margin: 16px auto 0; font-size: 11px; color: var(--navy); opacity: 0.6; text-decoration: underline; }

/* ---------- Computers and tablets ----------
   Shows the site as a phone-width column in the middle of the screen
   (like the app on an iPad), so photos and patterns don't stretch. */
@media (min-width: 700px) {
  html { background: #fffff4; }
  body { background: #fffff4; }
  #app {
    max-width: var(--content-max);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--cream);
    box-shadow: 0 0 0 1px rgba(24, 38, 155, 0.05), 0 10px 40px rgba(24, 38, 155, 0.06);
    position: relative;
  }
  .tabbar { left: 50%; right: auto; width: var(--content-max); transform: translateX(-50%); }
  .top-button { right: calc(50% - (var(--content-max) / 2) + 20px); }
  .map-screen { left: 50%; right: auto; width: var(--content-max); transform: translateX(-50%); }
  .more-bg { height: 520px; }
  .more-spacer { height: 492px; }
  .more-sheet { min-height: 0; padding-bottom: 24px; }
}

/* ---------- Verify email (app/verify-email.tsx) ---------- */
.verify-title { margin-bottom: 20px; }
.verify-sub { font-size: 14px; color: #000; text-align: center; letter-spacing: 0.2px; line-height: 20px; margin: 0 0 32px; }
.verify-sub strong { font-family: var(--f-bold); font-weight: 700; }
.otp-input {
  display: block; width: 100%; background: #fff; border: 1px solid #ccc; border-radius: 55px;
  padding: 7px 7px 7px 17px; margin-bottom: 14px; font-family: var(--f-bold); font-weight: 700; font-size: 20px;
  color: #000; text-align: center; letter-spacing: 10px; outline: none; min-height: 46px;
}
.otp-input::placeholder { color: #bbb; letter-spacing: 0; }
.otp-input:focus { border-color: var(--navy); }
.auth .btn-primary.verify-btn { padding: 14px; }
.verify-link { display: block; width: 100%; margin-top: 28px; font-size: 12px; letter-spacing: 0.2px; color: #666; text-align: center; }
.verify-link:disabled { opacity: 1; }
.verify-link-small { display: block; margin-top: 16px; font-size: 12px; letter-spacing: 0.2px; color: #666; text-align: center; }

/* ---------- Blocked reviewers (profile/blocked-users.tsx) ---------- */
.blocked-sub { font-size: 12.5px; line-height: 18px; letter-spacing: 0.2px; color: var(--grey-text); margin: 10px 0 0; }
.blocked-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #666; border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; }
.blocked-name { font-family: var(--f-bold); font-weight: 700; font-size: 14px; color: var(--navy); }
.blocked-meta { font-size: 11.5px; color: var(--grey-text); margin-top: 3px; }
.unblock-btn { border: 1px solid var(--navy); border-radius: 55px; padding: 8px 16px; min-width: 92px; display: flex; justify-content: center; font-family: var(--f-medium); font-weight: 500; font-size: 12px; color: var(--navy); letter-spacing: 0.2px; flex-shrink: 0; }
.blocked-page .empty-state { min-height: 50vh; }

/* ---------- Reviews written (app/my-reviews.tsx) ---------- */
.my-reviews-page { padding: calc(env(safe-area-inset-top) + 40px) 24px 0; }
.mr-empty { font-size: 14px; color: var(--grey-text); text-align: center; margin-top: 40px; }
.mr-card { padding: 20px 10px; border-bottom: 1px solid var(--navy); }
.mr-view-row { display: flex; align-items: center; }
.mr-thumb { width: 72px; height: 72px; border-radius: 5px; overflow: hidden; background: var(--grey-border); margin-right: 14px; flex-shrink: 0; }
.mr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mr-cafe { display: block; font-family: var(--f-bold); font-weight: 700; font-size: 13px; color: var(--navy); margin-bottom: 4px; }
.mr-stars { display: flex; margin-bottom: 8px; }
.mr-star { font-size: 15px; color: #ddd; margin-right: 4px; line-height: 1.3; }
.mr-star.on { color: #f59e0b; }
button.mr-star { font-size: 22px; }
.mr-edit { border: 1px solid var(--navy); border-radius: 55px; padding: 9px 25px; margin: 13px 0 0 12px; font-family: var(--f-medium); font-weight: 500; font-size: 12px; letter-spacing: 0.3px; color: var(--navy); flex-shrink: 0; }
.mr-text { font-size: 13px; line-height: 18px; letter-spacing: 0.2px; color: #444; margin: 14px 0 0; white-space: pre-line; }
.mr-input { display: block; width: 100%; border: 1px solid #666; border-radius: 15px; padding: 14px; font-size: 13px; letter-spacing: 0.2px; min-height: 60px; background: #fff; margin: 12px 0; resize: vertical; outline: none; color: #222; }
.mr-buttons { display: flex; gap: 10px; }
.mr-cancel, .mr-save { flex: 1; padding: 11px; border-radius: 25px; font-family: var(--f-medium); font-weight: 500; letter-spacing: 0.2px; }
.mr-cancel { border: 1px solid #666 !important; color: #666; font-size: 12px; }
.mr-save { background: var(--navy); color: #fff; font-size: 13px; }

.buy-link { display: block; margin: 18px auto 0; font-family: var(--f-medium); font-weight: 500; font-size: 12px; color: var(--navy); text-decoration: underline; }
.code-card .later-link { margin-top: 10px; }

/* ---------- Admin reports ---------- */
.reports-btn { border: 1px solid #000; border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: #000; white-space: nowrap; }
@media (min-width: 700px) {
  body.wide #app { max-width: 1120px; }
}
.reports { background: var(--cream); min-height: 100vh; color: #222; }
.r-wrap { max-width: 1080px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 20px) 20px 40px; }
.r-wrap.r-narrow { max-width: 820px; }
.reports .screen-title { font-size: 40px; }
.r-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.r-back { font-size: 13px; color: var(--navy); }
.r-print, .r-apply { border: 1px solid var(--navy); border-radius: 55px; padding: 8px 16px; font-size: 12px; color: var(--navy); background: #fff; }
.r-apply { background: var(--navy); color: #fff; }
.r-range { font-size: 13px; color: #555; margin: 4px 0 18px; }
.r-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 24px; }
.r-filters select, .r-filters input { border: 1px solid #bbb; border-radius: 55px; padding: 8px 14px; font-size: 12px; background: #fff; color: #222; }
.r-custom { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.r-h2 { font-family: var(--f-bold); font-weight: 700; font-size: 15px; color: var(--navy); margin: 34px 0 10px; }
.r-h2-note { font-family: var(--f-regular); font-weight: 400; font-size: 11px; color: #777; margin-left: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.r-note { font-size: 11.5px; color: #666; margin: -4px 0 12px; line-height: 1.5; }
.r-note code { font-size: 11px; background: #fff; padding: 1px 5px; border-radius: 4px; }
.r-empty { font-size: 12.5px; color: #777; margin: 8px 0; }
.r-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.r-tile-value { word-break: break-word; }
.r-tile { background: #fff; border: 1px solid #e6e6d0; border-radius: 16px; padding: 14px 16px; }
.r-tile-alert { border-color: #e8b4ad; }
.r-tile-label { font-size: 11px; letter-spacing: 0.4px; color: #666; text-transform: uppercase; }
.r-tile-value { font-family: var(--f-bold); font-weight: 700; font-size: 28px; color: var(--navy); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.r-tile-sub { font-size: 11.5px; color: #555; line-height: 1.4; }
.r-tile-sub input { width: 80px; border: 1px solid #bbb; border-radius: 6px; padding: 3px 6px; font-size: 12px; margin-left: 4px; }
.r-warn { color: var(--red) !important; font-weight: 600; }
.r-bars { display: flex; flex-direction: column; gap: 6px; }
.r-bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 12px; }
.r-bar-label { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-bar-track { height: 12px; background: rgba(24, 38, 155, 0.07); border-radius: 4px; overflow: hidden; }
.r-bar-fill { height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.r-bar-value { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: #222; }
.r-bar-value em, .r-table em { font-style: normal; color: #777; margin-left: 4px; font-size: 11px; }
.r-flag { display: inline-block; font-size: 9.5px; border: 1px solid var(--red); color: var(--red); border-radius: 20px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.r-two { display: grid; grid-template-columns: 1fr; gap: 0 32px; }
@media (min-width: 820px) { .r-two { grid-template-columns: 1fr 1fr; } }
.r-table-scroll { overflow-x: auto; background: #fff; border: 1px solid #e6e6d0; border-radius: 16px; }
.r-table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; }
.r-two .r-table { border: 1px solid #e6e6d0; border-radius: 12px; overflow: hidden; }
.r-table th { text-align: left; font-weight: 600; color: #555; font-size: 11px; padding: 10px 10px; border-bottom: 1px solid #eee; white-space: nowrap; }
.r-table td { padding: 10px; border-bottom: 1px solid #f2f2f2; font-variant-numeric: tabular-nums; vertical-align: top; }
.r-table tr:last-child td { border-bottom: none; }
.r-cafes td:not(:first-child), .r-cafes th:not(:first-child) { text-align: right; }
.r-sub { font-size: 11px; color: #888; }
.r-link { color: var(--navy); white-space: nowrap; text-decoration: underline; }
.r-heat { display: grid; gap: 3px; align-items: center; background: #fff; border: 1px solid #e6e6d0; border-radius: 16px; padding: 14px; overflow-x: auto; }
.r-heat-h { font-size: 9.5px; color: #777; text-align: left; white-space: nowrap; }
.r-heat-d { font-size: 11px; color: #555; }
.r-heat-c { height: 20px; border-radius: 4px; background: rgba(24, 38, 155, 0.05); }
.r-heat-key { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: #666; margin-top: 8px; }
.r-heat-key i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.cr-head { display: flex; align-items: center; gap: 20px; margin: 10px 0 8px; }
.cr-logo { width: 110px; height: auto; flex-shrink: 0; }
.cr-intro { font-size: 13px; color: #333; line-height: 1.6; margin: 0 0 20px; }
.cr-callout { background: #fff4f2; border: 1px solid #f0c9c3; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: #7a2a20; margin: 20px 0 0; }
.cr-quote { margin: 0 0 10px; background: #fff; border-left: 3px solid var(--navy); border-radius: 0 12px 12px 0; padding: 12px 14px; font-size: 13px; color: #333; line-height: 1.5; }
.cr-quote.private { border-left-color: #999; }
.cr-quote .stars { margin-bottom: 4px; }
.cr-foot { margin-top: 40px; font-size: 11px; color: #777; text-align: center; }

@media print {
  .no-print, .tabbar { display: none !important; }
  html, body, .reports { background: #fff !important; }
  #app { max-width: none !important; box-shadow: none !important; }
  .r-wrap { padding: 0; max-width: none; }
  .r-tile, .r-table-scroll, .r-heat, .cr-quote, .r-two .r-table { break-inside: avoid; }
  .r-bar-fill, .r-heat-c, .r-heat-key i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 14mm; }
}
.r-table + .r-note, .r-bars + .r-note, .r-empty + .r-note { margin-top: 10px; }
.r-cafes td strong { white-space: nowrap; }
.r-small { max-width: 520px; border: 1px solid #e6e6d0; border-radius: 12px; overflow: hidden; }
