/* ASITA STAR design system: quiet surfaces, readable data, deliberate hierarchy. */
:root {
  --ink: #182822;
  --muted: #617068;
  --green: #24634e;
  --green-dark: #184c3b;
  --green-soft: #eef5ef;
  --gold: #b48a45;
  --paper: #f6f7f4;
  --white: #ffffff;
  --border: #dde4dc;
  --border-strong: #c2cdc2;
  --control-border: #84978a;
  --sidebar: #183c34;
  --sidebar-muted: #bed0c5;
  --danger: #a43c32;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 2px 6px rgb(24 40 34 / 3%);
  --shadow-raised: 0 8px 28px rgb(24 40 34 / 7%);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --text-small: 12px;
  --text-label: 14px;
  --text-body: 15px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: var(--text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.public { display: flex; flex-direction: column; min-height: 100vh; }
main.container { flex: 1; }
a { color: var(--green); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0 0 var(--space-3); }
h1 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 650; letter-spacing: -1.15px; line-height: 1.2; }
h2 { font-size: 22px; letter-spacing: -.5px; line-height: 1.35; font-weight: 650; }
h3 { font-size: 17px; letter-spacing: -.25px; line-height: 1.4; font-weight: 600; }
small, .hint { font-size: var(--text-small); color: var(--muted); line-height: 1.65; }
.muted { color: var(--muted); }
.centered { text-align: center; }
.eyebrow { display: block; font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin-right: 7px; flex-shrink: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #457963; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: 8px; background: var(--green); color: white; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.skip-link:focus { clip-path: none; opacity: 1; pointer-events: auto; }
/* Shared layout and components. */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 40px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 750; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.brand-symbol { font-size: 32px; line-height: 1; color: var(--gold); }
.brand-word { font-size: 11px; letter-spacing: .14em; font-weight: 600; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 40px; border-bottom: 1px solid var(--border); }
.topbar nav { display: flex; align-items: center; gap: 24px; }
.topbar nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 0; }
.topbar nav > a:hover { color: var(--green); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.footer a { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 18px; border: 1px solid var(--green); border-radius: var(--radius-small); background: var(--green); color: white; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.secondary { background: var(--white); border-color: var(--border-strong); color: var(--ink); }
.btn.secondary:hover { border-color: #9aaf9f; background: var(--green-soft); }
.btn.compact { padding: 9px 14px; min-height: 42px; font-size: 13px; }
.btn:disabled { opacity: .65; cursor: wait; }
.text-button, .text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; line-height: 1.5; color: var(--green); }
.text-button { min-height: 44px; border: 0; background: transparent; padding: 8px 0; text-align: left; }
.text-link { text-decoration: none; min-height: 36px; }
.text-link:hover, .text-button:hover { text-decoration: underline; }
.full-width { width: 100%; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.card { min-width: 0; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; overflow-wrap: anywhere; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading p { color: var(--muted); margin: 10px 0 0; font-size: 15px; max-width: 680px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2, .section-heading h3 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 6px; }
.avatar { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 650; }
.avatar.large { width: 64px; height: 64px; border-radius: 14px; font-size: 27px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #d8e7dc; border-radius: 6px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; line-height: 1.5; font-weight: 550; white-space: nowrap; }
.badge.inactive { color: #735728; border-color: #e9dfc8; background: #faf5e9; }
.count-pill { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--muted); font-size: 17px; letter-spacing: 0; vertical-align: middle; }
.flash, .notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.flash { border: 1px solid #cfe4d5; background: #f0f7f1; color: #28543b; margin-bottom: 16px; }
.flash .icon { margin-top: 2px; }
.flash-error { border-color: #eed3cd; background: #fdf2f0; color: var(--danger); }
.notice { display: block; margin-bottom: 24px; border: 1px solid #e6dfc9; background: #fbf8ed; color: #705b32; }
.notice strong { font-weight: 650; }
.notice .qr-loopback-warning { color: var(--danger); }
.notice.info { border-color: var(--border); background: #f0f4ec; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 10px; background: var(--ink); color: white; box-shadow: var(--shadow-raised); font-size: 14px; }
/* Forms: readable labels and comfortable touch targets. */
.field, .password-field { display: flex; flex-direction: column; min-width: 0; gap: 8px; margin: 18px 0; }
.field > span, .field > label { font-size: 14px; font-weight: 550; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid var(--control-border); border-radius: var(--radius-small); background: white; color: var(--ink); font-size: 15px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); }
/* Explicit height keeps native Safari selects touch-friendly. */
select:not([multiple]) { height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 3px #24634e1c; }
textarea { min-height: 84px; resize: vertical; }
input[readonly], textarea[readonly] { background: #f8faf7; }
input[type=file] { font-size: 13px !important; }
input[type=file]::file-selector-button { border: 0; border-right: 1px solid var(--border); padding: 3px 12px 3px 0; margin-right: 12px; background: transparent; color: var(--green); font: inherit; font-weight: 550; cursor: pointer; }
.required { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 24px; }
.full { grid-column: 1 / -1; }
.form-section + .form-section { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 28px; }
.form-section h3 { margin-bottom: 4px; }
.form-section > p { color: var(--muted); font-size: 13px; }
.form-footer { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 28px; }
.check-label { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; font-size: 13px; color: var(--muted); }
.check-label input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--green); }
.password-control { position: relative; min-width: 0; }
.password-control input { padding-right: 76px !important; }
.password-toggle { position: absolute; top: 1px; bottom: 1px; right: 2px; min-width: 64px; border: 0; border-radius: 7px; background: transparent; color: var(--green); font-size: 13px; font-weight: 550; }
.password-toggle:hover { background: var(--green-soft); }
.password-guidance { display: flex; flex-direction: column; gap: 5px; }
.password-guidance meter { width: 100%; height: 8px; accent-color: var(--green); }
.password-guidance meter::-webkit-meter-bar { border: 0; border-radius: 4px; background: #eaf0e8; }
.password-guidance meter::-webkit-meter-optimum-value { background: var(--green); }
.password-guidance small { min-height: 20px; }
/* Workspace shell. */
.workspace { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; display: flex; flex-direction: column; padding: 30px 20px 20px; background: var(--sidebar); color: white; z-index: 10; overflow-y: auto; }
.sidebar .brand { padding: 0 12px; color: white; }
.sidebar .brand-word { color: #d1d9c9; }
.sidebar :focus-visible, .auth-intro :focus-visible { outline-color: #dce7d5; }
.shop-switch { display: flex; align-items: center; gap: 12px; padding: 16px 12px; border: 1px solid #ffffff21; border-radius: 10px; margin: 32px 0 28px; background: #ffffff05; }
.shop-switch > div { min-width: 0; }
.shop-switch .avatar { background: #d9e6d6; color: var(--sidebar); }
.shop-switch strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-switch small { display: block; margin-top: 2px; font-size: 12px; color: var(--sidebar-muted); }
.nav-label { margin: 0 12px 12px; font-size: 12px; color: var(--sidebar-muted); }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar nav > a { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 46px; border-radius: 8px; text-decoration: none; color: #d3e1d8; font-size: 14px; transition: background .15s, color .15s; }
.sidebar nav > a:hover { background: #ffffff0d; color: white; }
.sidebar nav > a.active { background: #dce7d5; color: var(--sidebar); font-weight: 650; }
.sidebar-foot { margin-top: auto; padding: 28px 12px 0; }
.sidebar-foot form { padding-top: 12px; margin-top: 10px; border-top: 1px solid #ffffff21; }
.sidebar-foot .text-button, .sidebar-privacy { display: flex; align-items: center; gap: 10px; color: var(--sidebar-muted); font-size: 13px; text-decoration: none; }
.sidebar-privacy { min-height: 40px; }
.sidebar-foot .icon { width: 18px; height: 18px; }
.sidebar-foot .text-button:hover, .sidebar-privacy:hover { color: white; }
.workspace-main { display: flex; flex-direction: column; flex: 1; min-width: 0; margin-left: 248px; }
.workspace-header { display: flex; align-items: center; gap: 20px; height: 76px; padding: 0 40px; border-bottom: 1px solid var(--border); background: #fcfdfb; }
.breadcrumb { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 13px; color: var(--muted); }
.breadcrumb > span:first-of-type { color: var(--ink); font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.breadcrumb-divider { color: #a1aca2; }
.header-link { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--green); font-size: 13px; font-weight: 550; text-decoration: none; white-space: nowrap; min-height: 44px; }
.owner-avatar { width: 34px; height: 34px; border: 1px solid var(--border); background: white; }
.workspace .container { max-width: 1480px; padding: 32px 40px 48px; }
/* Dashboard: one metric surface, no decorative card clutter. */
.overview-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.overview-strip [data-live-status] { margin-left: auto; }
.overview-strip .text-button, .overview-strip .text-link { font-size: 12px; min-height: 24px; padding: 0; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: white; overflow: hidden; }
.metric { padding: 22px 24px; border: 0; border-radius: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: none; background: transparent; }
.metric:nth-child(3n) { border-right: 0; }
.metric:nth-last-child(-n+3) { border-bottom: 0; }
.metric > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric > div > span:first-child { color: var(--muted); font-size: 13px; font-weight: 550; }
.metric-icon { color: #879b8b; }
.metric-icon .icon { width: 18px; height: 18px; }
.metric strong { display: block; font-size: 32px; font-weight: 600; letter-spacing: -1px; line-height: 1.2; margin: 12px 0 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric strong [data-counter-value] { font: inherit; color: inherit; }
.metric small { font-size: 12px; }
.profile-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.profile-metrics .metric { border-bottom: 0; border-right: 1px solid var(--border); }
.profile-metrics .metric:last-child { border-right: 0; }
.profile-metrics .metric > span { color: var(--muted); font-size: 13px; }
.profile-metrics .metric strong { font-size: 23px; margin-bottom: 0; }
.chart-grid, .activity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-bottom: 28px; }
.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.chart-heading h3 { font-size: 16px; margin-bottom: 4px; }
.chart-heading .hint { margin: 0; }
.chart-key { color: var(--muted); font-size: 12px; white-space: nowrap; }
.chart { display: block; width: 100%; height: 208px; }
.chart-data { margin-top: 16px; }
.chart-data summary { color: var(--muted); font-size: 12px; font-weight: 500; }
.chart-data .table-wrap { max-height: 260px; }
.quick-actions { background: #edf3e9; border-color: #d7e2d0; display: flex; flex-direction: column; justify-content: center; }
.quick-actions > p { color: var(--muted); font-size: 14px; }
.quick-actions > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--green-dark); font-size: 14px; font-weight: 550; padding: 16px 0; border-top: 1px solid #d7e2d0; text-decoration: none; }
.quick-actions > a:last-child { padding-bottom: 0; }
.activity-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px 0; border-bottom: 1px solid #edf0e9; color: var(--ink); text-decoration: none; }
.activity-item:last-child { border-bottom: 0; }
.activity-item > div { flex: 1; min-width: 0; }
.activity-item strong { display: block; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.activity-item small { display: block; margin-top: 2px; }
.activity-item .amount { flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity-dot { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.live-event { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #cfe0d0; border-radius: 10px; background: var(--green-soft); margin-bottom: 24px; }
.live-event strong { font-size: 14px; overflow-wrap: anywhere; }
.live-event p { margin: 4px 0 0; }
/* Tables, customer activity and follow-ups. */
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
th { padding: 14px 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #f7f9f4; color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; }
td { padding: 16px 12px; border-bottom: 1px solid #edf0e9; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdf9; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.pagination a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
details { margin-top: 20px; }
summary { cursor: pointer; color: var(--green); font-size: 14px; font-weight: 550; padding: 8px 0; }
details[open] > summary { margin-bottom: 16px; }
.empty-state { text-align: center; grid-column: 1 / -1; padding: 48px 24px; }
.empty-state p { max-width: 460px; margin: 8px auto 0; color: var(--muted); font-size: 14px; }
.empty-symbol { display: inline-flex; justify-content: center; align-items: center; width: 52px; height: 52px; border: 1px solid var(--border); border-radius: 14px; background: #f7f9f4; color: var(--green); margin-bottom: 20px; font-size: 26px; }
.empty-symbol .icon { width: 25px; height: 25px; }
.empty-inline { color: var(--muted); text-align: center; padding: 32px 12px; font-size: 14px; }
.empty-inline p { margin-bottom: 6px; }
.empty-inline > span { display: block; color: var(--green); font-size: 26px; margin-bottom: 8px; }
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.search-field { flex: 1; }
.filter-bar select { width: auto; min-width: 185px; }
.customer-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.customer-link strong { display: block; font-size: 14px; font-weight: 550; }
.customer-link small { display: block; white-space: nowrap; margin-top: 2px; }
.add-customer { margin-top: 24px; }
.add-customer > summary { display: flex; align-items: center; justify-content: space-between; padding: 0; min-height: 28px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-size: 13px; margin-bottom: 18px; }
.customer-heading { display: flex; align-items: center; gap: 18px; min-width: 0; }
.customer-heading > div { min-width: 0; }
.customer-heading p { font-size: 13px; }
.customer-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,1fr); gap: 24px; }
.customer-edit { align-self: start; }
.customer-layout h2 { font-size: 20px; }
.customer-layout .table-wrap { margin-top: 18px; }
.loyalty-note { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; }
.loyalty-note > span { color: var(--muted); font-size: 13px; }
.loyalty-note strong { font-size: 28px; font-weight: 600; }
.feedback-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.feedback-item:last-child { border: 0; }
.feedback-item small { margin-left: 12px; }
.feedback-item p { margin: 10px 0 0; font-size: 14px; }
.rating-text { display: inline-flex; align-items: center; gap: 6px; color: #79591f; white-space: nowrap; font-size: 13px; font-weight: 550; }
.feedback-grid, .reminder-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.feedback-grid p { color: var(--muted); }
.tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin: 24px 0; border-bottom: 1px solid var(--border); }
.tabs > a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; text-decoration: none; }
.tabs > a.active { border-color: var(--green); color: var(--green); font-weight: 600; }
.tabs > span { margin-left: auto; font-size: 12px; }
.reminder-grid h3 { margin: 8px 0 12px; }
.reminder-grid .actions { margin-bottom: 0; }
.festival-card { margin-top: 28px; display: block; background: #f0f4ec; }
/* Public discovery: business-specific, without decorative fake metrics. */
.hero { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr); align-items: center; gap: 64px; padding: 48px 0 64px; }
.hero h1 { font-size: clamp(42px,5vw,64px); letter-spacing: -2.5px; max-width: 620px; line-height: 1.08; margin: 18px 0 24px; }
.hero h1 > span { color: var(--green); }
.hero-copy > p:not(.hint) { max-width: 510px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero .actions { margin: 28px 0 16px; }
.hero-panel { padding: 32px; border: 1px solid #d5e1cf; border-radius: 16px; background: #eef3e8; }
.hero-panel-heading { display: flex; gap: 14px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid #d5e1cf; }
.hero-panel-heading > .icon { width: 36px; height: 36px; color: var(--green); }
.hero-panel-heading strong { display: block; font-size: 19px; }
.hero-panel-heading small { display: block; }
.hero-feature { display: flex; align-items: flex-start; gap: 14px; padding-top: 24px; }
.hero-feature > .icon { color: var(--green); margin-top: 2px; }
.hero-feature strong { display: block; font-size: 15px; font-weight: 600; }
.hero-feature p { font-size: 13px; color: var(--muted); margin: 5px 0 0; }
.connection-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; margin-bottom: 48px; }
.connection-flow > div > span { display: block; color: var(--green); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.connection-flow h3 { font-size: 16px; margin-bottom: 6px; }
.connection-flow p { color: var(--muted); font-size: 13px; margin: 0; }
.search-box { display: flex; gap: 10px; max-width: 660px; margin-bottom: 28px; }
.search-box input { flex: 1; }
.shop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.shop-card { padding: 0; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.shop-card:hover { border-color: #a9bbab; box-shadow: var(--shadow-raised); }
.shop-photo { display: block; width: 100%; height: 184px; object-fit: cover; background: #ecf1e8; }
.placeholder { display: flex; align-items: center; justify-content: center; color: #6a846d; font-size: 52px; font-weight: 500; }
.shop-card-body { padding: 24px; }
.shop-card-body .eyebrow { font-size: 11px; letter-spacing: .07em; }
.shop-card-body h3 { font-size: 20px; }
.shop-card-body .muted { font-size: 14px; min-height: 44px; }
.shop-card-body .text-link { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 18px; }
.public-shop, .privacy-card { max-width: 780px; margin: 20px auto; padding: 36px; }
.public-shop h1 { margin: 10px 0 20px; }
.shop-cover { width: 100%; height: 260px; object-fit: cover; border-radius: 10px; margin-bottom: 28px; }
.shop-monogram { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 16px; background: var(--green-soft); color: var(--green); font-size: 32px; margin-bottom: 24px; flex-shrink: 0; }
.shop-monogram.small { width: 52px; height: 52px; border-radius: 12px; font-size: 24px; margin: 0; }
.privacy-card h2 { font-size: 20px; margin-top: 32px; }
.privacy-card p { color: var(--muted); }
/* Account screens and shop settings. */
.auth-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 48px; max-width: 1020px; margin: 20px auto 40px; align-items: start; }
.auth-intro { padding: 40px 36px; border-radius: 16px; color: white; background: var(--sidebar); }
.auth-intro .eyebrow { color: #cedccf; }
.auth-intro h1 { font-size: 42px; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 24px; }
.auth-intro > p { color: #d4dfd5; font-size: 15px; }
.auth-intro a { color: #e1c084; }
.auth-card { padding: 32px; box-shadow: var(--shadow-raised); }
.auth-card h2 { font-size: 24px; }
.auth-card .btn { margin: 12px 0 24px; }
.auth-card > .muted { font-size: 14px; }
.auth-assurance { display: flex; align-items: flex-start; gap: 10px; padding-top: 24px; border-top: 1px solid #ffffff29; margin-top: 32px; color: #d4dfd5; font-size: 13px; }
.auth-assurance .icon { margin-top: 2px; }
.onboarding-steps { list-style: none; padding: 0; margin: 32px 0; }
.onboarding-steps li { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #e2eae1; font-size: 14px; }
.onboarding-steps li > span { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid #ffffff42; border-radius: 50%; font-size: 12px; }
.settings-card { max-width: 940px; padding: 32px; }
.settings-card > .hint { padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: #f7f9f4; margin: 20px 0 28px; }
.profile-logo { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; margin-bottom: 24px; border: 1px solid var(--border); }
/* QR and customer registration. */
.qr-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 28px; align-items: start; }
.qr-print { text-align: center; padding: 32px; }
.print-brand { font-size: 14px; margin-bottom: 28px; }
.print-brand .brand-symbol { font-size: 24px; }
.qr-print h2 { font-size: 26px; }
.qr-print > p { color: var(--muted); }
.qr-image { display: block; width: 100%; max-width: 348px; height: auto; margin: 24px auto; }
.print-url { font-size: 12px; overflow-wrap: anywhere; }
.qr-unconfigured { padding: 28px 0; }
.qr-unconfigured > span { display: block; font-size: 56px; color: #8d9e8b; margin-bottom: 20px; }
.qr-completion { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--green); padding-top: 12px; }
.qr-layout .actions { margin: 20px 0; }
.registration-layout { display: flex; justify-content: center; padding: 16px 0 40px; }
.registration-card { width: 100%; max-width: 500px; padding: 32px; box-shadow: var(--shadow-raised); }
.registration-shop { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.registration-shop > div { min-width: 0; }
.registration-shop h2 { font-size: 21px; margin-bottom: 0; }
.registration-shop .eyebrow { font-size: 11px; margin-bottom: 4px; }
.shop-avatar { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.registration-card h1 { font-size: 27px; letter-spacing: -.7px; }
.shop-description { max-height: 110px; overflow: auto; font-size: 14px; }
.rating-field { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.rating-field legend { font-size: 14px; font-weight: 550; margin-bottom: 12px; }
.star-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.star-options label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68px; gap: 3px; border: 1px solid var(--border-strong); border-radius: 8px; background: white; color: #82927f; cursor: pointer; }
.star-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-options label > span[aria-hidden] { font-size: 24px; line-height: 1; }
.star-options .icon { width: 24px; height: 24px; }
.star-options label small { font-size: 12px; }
.star-options label:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.star-options label:has(input:checked) .icon { fill: #24634e14; }
.star-options label:has(input:focus-visible) { outline: 3px solid #457963; outline-offset: 3px; }
.forget-form { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 24px; }
.success-card { text-align: center; padding: 40px 32px; }
.success-card .btn { margin: 16px 0 24px; }
/* Data assistant: a useful workspace tool, without sparkle/robot decoration. */
.assistant-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 24px; align-items: start; }
.assistant-welcome { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.assistant-welcome h2 { font-size: 22px; }
.assistant-welcome p { font-size: 14px; margin: 8px 0 0; }
.assistant-form textarea { min-height: 120px; }
.assistant-card > .hint { margin: 24px 0 0; }
.assistant-suggestions h2 { font-size: 18px; margin-bottom: 6px; }
.assistant-suggestions > .muted { font-size: 13px; margin-bottom: 16px; }
.suggestion { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 14px 0; width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--ink); text-align: left; font-size: 14px; }
.suggestion:hover { color: var(--green); }
.suggestion .icon { width: 16px; height: 16px; color: var(--muted); }
.assistant-suggestions > .hint { margin: 24px 0 0; }
.chat-question { padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: #f7f9f4; margin-bottom: 16px; }
.chat-question > span { color: var(--muted); font-size: 12px; font-weight: 550; }
.chat-question p { margin: 6px 0 0; font-size: 14px; }
.chat-answer { padding: 20px; border-left: 3px solid var(--green); background: #f1f6ef; border-radius: 0 8px 8px 0; }
.chat-answer strong { font-size: 14px; color: var(--green-dark); }
.chat-answer p { line-height: 1.75; margin: 10px 0 0; font-size: 15px; }
.error-card { max-width: 620px; text-align: center; padding: 40px; margin: 48px auto; }
.error-card p { color: var(--muted); margin: 20px 0 24px; }
/* Brand confirmations: flat, finite and contained. */
.star-scene { position: relative; display: inline-block; width: 64px; height: 64px; margin: 0 auto 24px; flex-shrink: 0; }
.star-core { position: absolute; inset: 12px; }
.star-core > span { position: absolute; inset: 0; clip-path: polygon(50% 0,63% 35%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 35%); }
.star-face { background: var(--gold); }
.star-back, .star-facet, .star-orbit, .connection-ray { display: none; }
.registration-mark { width: 32px; height: 32px; margin: 0 0 20px; }
.registration-mark .star-core { inset: 5px; }
.connection-success { display: block; width: 72px; height: 72px; padding: 12px; border: 1px solid #d8e7dc; border-radius: 18px; background: var(--green-soft); }
.connection-success .star-core { inset: 18px; }
.dashboard-star, .qr-star { width: 32px; height: 32px; margin: 0; }
.dashboard-star .star-core, .qr-star .star-core { inset: 7px; }
.flash-star { width: 20px; height: 20px; margin: 2px 0 0; }
.flash-star .star-core { inset: 3px; }
.star-scene:is([data-star-state=NEW_CUSTOMER],[data-star-state=SUCCESS]) .star-core { animation: star-connect .8s ease-out both; }
.star-scene:is([data-star-state=RETURNING_CUSTOMER],[data-star-state=QR_SUCCESS]) .star-core { animation: star-return .7s ease-out both; }
.star-scene[data-star-state=ERROR] .star-core { animation: star-error .25s ease-out both; }
.star-scene[data-star-state=ERROR] .star-face { background: var(--danger); }
@keyframes star-connect { 0% { opacity: 0; transform: scale(.85); } 100% { opacity: 1; transform: scale(1); } }
@keyframes star-return { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes star-error { 0%,100% { transform: translateX(0); } 35% { transform: translateX(-2px); } 70% { transform: translateX(2px); } }
@keyframes busy-spin { to { transform: rotate(360deg); } }
form[aria-busy=true] button[type=submit]::after { content: ''; flex-shrink: 0; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: busy-spin .7s linear infinite; }
/* Responsive: full functionality at phone, tablet and desktop sizes. */
@media (min-width:1600px) { .workspace .container { padding: 40px 48px 56px; } .workspace-header { padding: 0 48px; } }
@media (max-width:1200px) {
  .sidebar { width: 220px; padding: 28px 16px 20px; }
  .workspace-main { margin-left: 220px; }
  .workspace .container { padding: 28px; }
  .workspace-header { padding: 0 28px; }
  .breadcrumb > span:last-child, .breadcrumb-divider { display: none; }
  .chart-key { display: none; }
  .metric { padding: 20px; }
  .hero { gap: 36px; }
  .customer-layout { grid-template-columns: minmax(0,1fr); }
  .customer-edit { max-width: none; }
  .auth-layout { gap: 28px; }
}
@media (max-width:900px) {
  .workspace { display: flex; flex-direction: column; }
  .sidebar { position: relative; width: 100%; padding: 20px 24px 12px; overflow: visible; }
  .sidebar .brand { padding: 0; }
  .shop-switch, .nav-label, .sidebar-privacy { display: none; }
  .sidebar nav { flex-direction: row; gap: 6px; overflow-x: auto; margin-top: 20px; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #577366 transparent; }
  .sidebar nav > a { flex-shrink: 0; white-space: nowrap; min-height: 44px; padding: 10px 12px; gap: 8px; font-size: 13px; }
  .sidebar nav .icon { width: 18px; height: 18px; }
  .sidebar-foot { position: absolute; top: 16px; right: 24px; margin: 0; padding: 0; }
  .sidebar-foot form { border: 0; padding: 0; margin: 0; }
  .workspace-main { margin: 0; }
  .workspace-header { height: 64px; }
  .container { padding: 32px 28px; }
  .topbar { padding: 22px 28px; }
  .footer { padding: 24px 28px; }
  .hero { padding: 28px 0 48px; gap: 28px; }
  .hero h1 { font-size: 46px; }
  .hero-panel { padding: 24px; }
  .hero-copy > p:not(.hint) { font-size: 16px; }
  .shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auth-layout { grid-template-columns: minmax(0,1fr); max-width: 560px; gap: 24px; margin-top: 0; }
  .auth-intro { padding: 28px; }
  .auth-intro h1 { font-size: 32px; margin-bottom: 16px; }
  .auth-intro h1 br { display: none; }
  .auth-assurance, .auth-intro .onboarding-steps { display: none; }
  .auth-intro p:last-child { margin-bottom: 0; }
  .assistant-layout { grid-template-columns: minmax(0,1fr); }
  .profile-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-metrics .metric:nth-child(2n) { border-right: 0; }
  .profile-metrics .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width:600px) {
  body { font-size: 14px; }
  .container, .workspace .container { padding: 24px 16px 36px; }
  .topbar { padding: 18px 16px; gap: 12px; flex-wrap: wrap; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-symbol { font-size: 27px; }
  .brand-word { font-size: 10px; }
  .topbar nav { gap: 16px; flex-wrap: wrap; }
  .topbar nav > a:not(.btn) { font-size: 13px; }
  .topbar .btn { font-size: 12px; padding: 9px 12px; min-height: 42px; }
  .footer { padding: 24px 16px; font-size: 12px; }
  .footer > span:nth-child(2) { display: none; }
  .sidebar { padding: 18px 16px 8px; }
  .sidebar-foot { top: 12px; right: 16px; }
  .sidebar nav { margin-top: 16px; }
  .sidebar-foot .text-button { font-size: 12px; }
  .workspace-header { padding: 0 16px; height: 60px; gap: 12px; }
  .breadcrumb { font-size: 12px; gap: 8px; }
  .breadcrumb .icon { display: none; }
  .breadcrumb > span:first-of-type { max-width: 130px; }
  .header-link { font-size: 12px; gap: 6px; }
  .header-link .icon { width: 16px; height: 16px; }
  .owner-avatar { width: 30px; height: 30px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 14px; }
  .page-heading .eyebrow { font-size: 11px; }
  .page-heading > .btn { width: auto; }
  .card, .settings-card, .auth-card { padding: 20px; }
  .card h2 { font-size: 20px; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading .text-link { font-size: 12px; white-space: nowrap; min-height: 28px; }
  .form-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .field { margin: 16px 0; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
  .field > span, .field > label { font-size: 14px; }
  .overview-strip { font-size: 12px; gap: 8px 12px; }
  .overview-strip [data-live-status] { margin-left: 0; }
  .overview-strip [data-live-date] { flex-basis: 100%; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 18px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .metric:nth-child(3n) { border-right: 1px solid var(--border); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: 0; border-right: 0; grid-column: 1 / -1; }
  .metric > div > span:first-child { font-size: 12px; }
  .metric-icon { display: none; }
  .metric strong { font-size: 28px; margin-top: 10px; }
  .metric small { font-size: 12px; }
  .profile-metrics .metric:nth-child(3) { border-bottom: 0; }
  .profile-metrics .metric:last-child { grid-column: auto; }
  .profile-metrics .metric strong { font-size: 21px; }
  .chart-grid, .activity-grid, .qr-layout, .feedback-grid, .reminder-grid, .assistant-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .chart { height: 200px; }
  .chart-heading { margin-bottom: 18px; }
  .chart-heading h3 { font-size: 16px; }
  .activity-item strong { font-size: 13px; }
  .activity-item .badge { font-size: 11px; padding: 4px 7px; }
  .filter-bar { flex-wrap: wrap; gap: 10px; }
  .search-field { flex-basis: 100%; }
  .filter-bar > label:not(.search-field) { flex: 1; min-width: 0; }
  .filter-bar select { width: 100%; min-width: 0; font-size: 14px; }
  .customer-table { min-width: 690px; }
  table { font-size: 13px; }
  th { font-size: 12px; }
  .customer-layout table { min-width: 380px; }
  .customer-heading { gap: 12px; }
  .customer-heading .avatar.large { width: 48px; height: 48px; font-size: 22px; }
  .customer-heading h1 { font-size: 26px; }
  .customer-heading p { font-size: 12px; }
  .tabs { gap: 20px; }
  .tabs > span { flex-basis: 100%; margin: 0 0 12px; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 32px; padding: 24px 0 36px; }
  .hero h1 { font-size: 43px; letter-spacing: -1.8px; margin-top: 16px; }
  .hero-copy > p:not(.hint) { font-size: 16px; }
  .hero-panel { padding: 24px; }
  .connection-flow { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding: 28px 0; margin-bottom: 36px; }
  .shop-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .shop-card { padding: 0; }
  .shop-card-body { padding: 20px; }
  .search-box { gap: 8px; }
  .search-box .btn { padding: 10px 14px; }
  .auth-intro { padding: 24px; }
  .auth-intro h1 { font-size: 30px; }
  .auth-intro > p { font-size: 14px; }
  .auth-card h2 { font-size: 23px; }
  .public-shop, .privacy-card { padding: 24px; margin: 0; }
  .shop-cover { height: 200px; }
  .qr-print { padding: 28px 20px; }
  .qr-print .qr-image { max-width: 300px; }
  .qr-layout .actions .btn { flex: 1 1 calc(50% - 10px); font-size: 13px; }
  .registration-layout { padding: 8px 0 24px; }
  .registration-card { padding: 24px 20px; }
  .registration-card h1 { font-size: 26px; }
  .registration-shop h2 { font-size: 20px; }
  .success-card { padding: 32px 24px; }
  .success-card h1 { font-size: 27px; }
  .error-card { margin: 24px 0; padding: 32px 24px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html.no-js { scroll-behavior: auto; }
.no-js *, .no-js *::before, .no-js *::after { animation: none !important; transition: none !important; }
.no-js [data-copy-target], .no-js [data-share-target], .no-js [data-print], .no-js [data-question] { display: none; }
@media print {
  body { background: white !important; }
  .sidebar, .workspace-header, .topbar, .footer, .page-heading, .flash-list, .qr-layout > .stack, .toast, .skip-link, .notice { display: none !important; }
  .workspace-main { margin: 0 !important; }
  .container { padding: 0 !important; max-width: none !important; }
  .qr-layout { display: block; }
  .qr-print { max-width: 600px; margin: 24px auto; border: 0; box-shadow: none; break-inside: avoid; }
  .qr-image { max-width: 400px; width: 100%; }
  .qr-print h2 { font-size: 30px; }
  a { color: black; text-decoration: none; }
  *, *::before, *::after { animation: none !important; }
}
/* Subscription and messaging surfaces reuse the established SaaS design tokens. */
.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.plan-price { font-size: 2.25rem; font-weight: 700; letter-spacing: -.04em; margin: 20px 0 8px; }
.plan-price .muted { font-size: 1rem; font-weight: 400; letter-spacing: normal; }
.feature-list { padding-left: 22px; margin: 24px 0; }
.feature-list li { margin: 12px 0; }
.usage-number { font-size: 1.3rem; font-weight: 600; }
.usage-meter { width: 100%; height: 24px; accent-color: #28594b; }
.recipient-list { max-height: 480px; overflow-y: auto; padding: 4px; }
.check-label small { display: block; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-history-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.message-history-item:last-of-type { border-bottom: 0; }
.festival-list details { border-top: 1px solid var(--border); padding: 12px 0; }
.festival-list summary { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.plan-trial-note { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.plan-trial-note a { color: var(--green); font-weight: 600; }
button:disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 700px) { .grid.two { grid-template-columns: minmax(0, 1fr); gap: 16px; } .topbar { flex-wrap: wrap; gap: 12px; } .topbar nav { flex-wrap: wrap; } }
/* Keep secondary actions as usable as primary actions on every viewport. */
.btn.compact, .text-link, .overview-strip .text-button, .overview-strip .text-link,
.section-heading .text-link, .add-customer > summary, summary, .back-link,
.header-link, .pagination a, .footer a, .sidebar-privacy, .check-label { min-height: 44px; }
summary, .back-link, .header-link, .pagination a, .footer a, .sidebar-privacy { align-items: center; }
.back-link, .footer a, .pagination a { display: inline-flex; }
.check-label { align-items: center; }
.topbar nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.btn.secondary { border-color: var(--control-border); }
.text-button, .btn.compact, .text-link, .overview-strip .text-button, .overview-strip .text-link,
.section-heading .text-link, .add-customer > summary, summary, .check-label { min-height: 46px; }
.field-error { color: var(--danger); font-weight: 500; }
[aria-invalid="true"] { border-color: var(--danger); }
/* Persistent, native language controls remain usable without JavaScript. */
.language-switch{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 24px;flex-wrap:wrap}.language-switch label{font-size:13px}.language-switch select{width:auto;max-width:180px;min-height:46px;height:46px}.language-switch button{min-height:46px}html[lang="te"] body{font-family:"Noto Sans Telugu","Telugu Sangam MN",system-ui,sans-serif;line-height:1.7}html[lang="hi"] body{font-family:"Noto Sans Devanagari","Kohinoor Devanagari",system-ui,sans-serif;line-height:1.65}html[lang="te"] .btn,html[lang="hi"] .btn{white-space:normal}html[lang="te"] .eyebrow,html[lang="hi"] .eyebrow{letter-spacing:normal}@media(max-width:600px){.language-switch{padding:10px 16px;justify-content:flex-start}}@media print{.language-switch{display:none}}
.activation-card progress{width:100%;height:10px;accent-color:var(--green)}.activation-card ol{display:flex;gap:12px;flex-wrap:wrap;padding-left:20px}.activation-card li{flex:1 1 180px}.qr-poster{max-width:720px;background:#fff;padding:48px;text-align:center;border:1px solid var(--border);margin:auto}.poster-face img{display:block;width:min(100%,320px);height:auto;margin:24px auto}.fold-line{border-top:1px dashed #777;padding:16px}.poster-tent{padding:24px}.qr-poster h1,.qr-poster h2{overflow-wrap:anywhere}@page asita-a4{size:A4;margin:15mm}@page asita-a5{size:A5;margin:10mm}@media print{.qr-poster{border:0;padding:0;width:100%;max-width:none;break-inside:avoid}.poster-a4,.poster-tent{page:asita-a4}.poster-a5{page:asita-a5}.qr-poster img{display:block!important}.no-print{display:none!important}.poster-tent .second-face{transform:rotate(180deg)}.poster-tent .poster-face img{max-width:180px}}@media(max-width:600px){.qr-poster{padding:24px 16px}.qr-poster h1{font-size:28px}}

/* Monthly Customer Growth uses the existing typography, controls and surfaces. */
.growth-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.growth-controls select { width: auto; min-width: 120px; }
.growth-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.growth-summary strong { overflow-wrap: anywhere; }
.growth-summary small { line-height: 1.7; }
.growth-up { color: var(--green-dark); }
.growth-down { color: var(--danger); }
.growth-insight { padding: 16px 20px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 0 8px 8px 0; }
.growth-charts { display: grid; gap: 24px; margin-bottom: 24px; min-width: 0; }
.growth-charts > .card { min-width: 0; }
.growth-canvas { position: relative; height: 310px; width: 100%; min-width: 0; margin: 20px 0; }
.growth-legend { display: flex; flex-wrap: wrap; gap: 20px; padding: 0; list-style: none; font-size: 14px; }
.growth-legend li { display: inline-flex; align-items: center; gap: 8px; }
.growth-key { display: inline-block; height: 14px; width: 18px; border: 2px solid var(--green); background: var(--green); }
.growth-key.retained { border-style: dashed; background: var(--green-soft); }
.growth-key.total { height: 4px; background: var(--ink); border-color: var(--ink); transform: rotate(-8deg); }
.growth-drill-link { display: inline-flex; align-items: center; min-height: 46px; padding: 6px 2px; font-weight: 600; }
.growth-charts th, .growth-charts td { white-space: normal; }
.growth-charts caption { text-align: left; font-weight: 600; padding: 16px 0; }
.growth-charts .table-wrap { margin-top: 16px; }
.growth-drill { margin-bottom: 24px; }
.growth-drill h2 { overflow-wrap: anywhere; }
.growth-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.growth-definitions dt { font-weight: 650; margin-top: 16px; }
.growth-definitions dd { margin: 6px 0 0; color: var(--muted); }
.growth-skeleton { display: grid; gap: 12px; padding: 24px 0; }
.growth-skeleton span { display: block; height: 110px; background: var(--border); border-radius: var(--radius); animation: growth-loading 1s ease-in-out 2 alternate; }
@keyframes growth-loading { from { opacity: .6; } to { opacity: 1; } }
@media(max-width:768px) { .growth-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .growth-canvas { height: 260px; } }
@media(max-width:480px) { .growth-summary { grid-template-columns: 1fr; } .growth-controls { align-items: stretch; } .growth-controls label { flex-basis: 100%; } .growth-charts th,.growth-charts td { padding: 10px 6px; font-size: 12px; } .growth-canvas { height: 250px; } .growth-legend { gap: 14px; } .growth-drill .section-heading { flex-wrap: wrap; } }
@media(prefers-reduced-motion:reduce) { .growth-skeleton span { animation: none; } }
.no-js .growth-canvas { display: none; }
.growth-summary small { display: block; }
/* Keep complete words readable; wide tables scroll inside their keyboard-focusable region. */
.growth-charts table { min-width: 460px; }
.growth-charts th, .growth-charts td { overflow-wrap: normal; word-break: normal; }
/* Verified loyalty uses existing surfaces and dark text on configurable badges. */
.loyalty-tier-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.loyalty-tier-grid .card{min-width:0}
.loyalty-tier-stat{display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-decoration:none;color:var(--ink,#182822)}
.loyalty-tier-stat>strong{font-size:32px;line-height:1.2}
.loyalty-tier-stat>span:last-child{font-size:13px}
.loyalty-badge{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:8px 14px;border:2px solid var(--tier-color,#cd7f32);border-radius:24px;background:#fff;color:#182822;font-weight:700;overflow-wrap:anywhere}
.loyalty-badge--0{--tier-color:#CD7F32}.loyalty-badge--1{--tier-color:#C0C0C0}.loyalty-badge--2{--tier-color:#FFD700}.loyalty-badge--3{--tier-color:#B9F2FF}
.loyalty-main-card~.card td,.loyalty-main-card~.card th{white-space:nowrap;overflow-wrap:normal}
.loyalty-card-history th,.loyalty-card-history td{white-space:nowrap;overflow-wrap:normal}
.loyalty-card-history table{min-width:520px}
.loyalty-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:16px}
.loyalty-main-card{max-width:720px;margin:0 auto 24px}
.loyalty-visit-number{font-size:18px}.loyalty-visit-number strong{font-size:42px}
.loyalty-main-card progress{display:block;width:100%;height:18px;margin:12px 0;accent-color:#24634e}
.loyalty-pending{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #dbe2dc;padding:12px 0}
.loyalty-celebration{text-align:center;max-width:720px;margin:0 auto 24px}
.loyalty-celebration-mark{display:inline-block;font-size:42px;color:#24634e;animation:loyalty-upgrade .65s ease-out both}
@keyframes loyalty-upgrade{from{transform:scale(.75) translateY(8px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}
@media(max-width:1100px){.loyalty-tier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.loyalty-tier-grid{gap:12px}.loyalty-tier-grid .card{padding:16px}.loyalty-tier-grid:has(input){grid-template-columns:1fr}.loyalty-pending form{width:100%}.loyalty-pending button{width:100%}}
@media(prefers-reduced-motion:reduce){.loyalty-celebration-mark{animation:none}}
.private-link-sharing{max-width:800px;margin:0 auto}.private-card-qr{display:block;width:min(100%,320px);height:auto;margin:24px auto}.private-loyalty-page .topbar{gap:16px;flex-wrap:wrap}.private-loyalty-page .grid{max-width:900px;margin-left:auto;margin-right:auto}
.private-link-sharing .inline-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0}
