/* Additions on top of the prototype styles: availability, sign-in code, dashboard and analytics. */
.muted{color:var(--muted)}
.type-card.unavailable{opacity:.62;cursor:default}
.type-card.unavailable:hover{transform:none;box-shadow:none}
.soon-badge{position:absolute;top:14px;right:14px;font-size:9px;font-weight:800;letter-spacing:.8px;color:#6d7481;background:#eef0f5;border-radius:999px;padding:3px 8px}
.type-card{position:relative}
.social-signin[disabled]{opacity:.55;cursor:not-allowed}
.social-signin .soon{margin-left:auto;font-size:11px;color:var(--muted);font-weight:500}
.auth-grid.auth-single{grid-template-columns:1fr;max-width:460px}
.auth-links{display:flex;gap:20px;flex-wrap:wrap;margin-top:12px}
.auth-form form{display:flex;flex-direction:column;gap:6px}
.auth-form .check-label{margin:6px 0 16px}
.code-input{letter-spacing:8px;font-size:24px!important;text-align:center;font-variant-numeric:tabular-nums}
.field-error{color:#c0352b;font-size:13px;min-height:0;margin-top:4px}
.field-error:empty{display:none}
[aria-invalid=true]{border-color:#c0352b!important}
.draft-badge.warning{background:#fff1e8;color:#a24b12}
.url-line{font-size:12px;word-break:break-all;background:#f3f4f8;border-radius:8px;padding:8px 10px;margin-top:8px}
.text-page{text-align:left}
.text-body{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);font-size:13px;max-height:340px;overflow:auto}
.success-hint{margin:6px 0 14px;font-size:14px}
.size-picker{margin-top:-6px}
.success-copy .button{margin-top:10px}
.secondary-button{background:#eef0ff;color:var(--primary);box-shadow:none}
.secondary-button:hover{background:#e2e5ff}
.feature-bullets{margin:18px 0 0;padding-left:18px;color:var(--muted);font-size:14px;line-height:1.8}

/* Dashboard */
.dash-wrap{padding-top:18px;padding-bottom:60px;min-height:60vh}
.dash-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:26px;overflow-x:auto}
.dash-tabs a{padding:12px 14px;font-weight:650;font-size:15px;color:var(--muted);border-bottom:3px solid transparent;white-space:nowrap;min-height:44px}
.dash-tabs a.active{color:var(--primary);border-color:var(--primary)}
.dash-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px;flex-wrap:wrap}
.dash-head h1{font-size:32px;letter-spacing:-1px}
.dash-head p{max-width:640px;font-size:14px}
.dash-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:20px}
.dash-filters .search-wrap{flex:1 1 240px;margin:0}
.dash-filters select,.dash-filters input[type=date]{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:0 12px;background:white}
.custom-range{display:flex;gap:8px}
.tz-note{font-size:13px}.tz-note a{color:var(--primary)}
.dash-loading{padding:30px 0;color:var(--muted)}
.dash-empty{text-align:center;padding:50px 20px;border:1px dashed #d8dbe6;border-radius:var(--radius);display:flex;flex-direction:column;align-items:center;gap:10px}
.dash-empty .empty-qr{font-size:40px;color:var(--primary)}
.dash-empty .empty-qr svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:2}
.qr-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.qr-row{display:grid;grid-template-columns:72px minmax(0,1fr) 140px auto;gap:18px;align-items:center;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}
.qr-thumb{width:72px;height:72px;display:flex;align-items:center;justify-content:center;background:var(--surface);border-radius:10px;overflow:hidden}
.qr-thumb svg{max-width:64px;max-height:64px;width:auto;height:auto}
.qr-main h3{font-size:16px;margin-bottom:4px;overflow-wrap:anywhere}
.qr-main p{font-size:13px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;line-height:1.5}
.qr-target{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block!important;max-width:100%}
.type-chip{display:inline-flex;align-items:center;gap:5px;color:var(--ink);font-weight:600}
.type-chip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.status-badge{font-size:11px;font-weight:700;border-radius:999px;padding:2px 9px;background:#eef0f5;color:#4d5563}
.status-active{background:#e5f7e9;color:#1d7a36}
.status-paused{background:#fff4df;color:#8a5a00}
.qr-scans{font-size:14px}
.qr-actions{display:flex;gap:8px;align-items:center}
.qr-actions .option-button{display:inline-flex;align-items:center;min-height:44px;padding:0 12px}
.row-menu{position:relative}
.row-menu summary{list-style:none;cursor:pointer;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;font-weight:800;letter-spacing:1px}
.row-menu summary::-webkit-details-marker{display:none}
.row-menu-list{position:absolute;right:0;top:48px;z-index:10;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #1823351f;display:flex;flex-direction:column;min-width:200px;padding:6px}
.row-menu-list a,.row-menu-list button{background:none;border:0;text-align:left;padding:11px 12px;border-radius:8px;font-size:14px;font-weight:550}
.row-menu-list a:hover,.row-menu-list button:hover{background:var(--surface)}
.danger-text{color:#c0352b!important}
.pager{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px;font-size:14px}
.pager .option-button{min-height:44px;padding:0 14px}
.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}
.dialog-actions .option-button{min-height:44px;padding:0 16px}
.button.danger{background:#c0352b}.button.danger:hover{background:#9f2a21}
#app-dialog-content .format-picker{margin-top:14px}
#app-dialog-content h2{margin-bottom:6px}

/* Analytics */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.kpi,.stat-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.kpi h3,.stat-card h3{font-size:14px;letter-spacing:0;color:var(--muted);font-weight:650;margin-bottom:8px}
.kpi strong{font-family:Manrope,sans-serif;font-size:32px;font-weight:800;letter-spacing:-1px;display:block;font-variant-numeric:tabular-nums}
.kpi strong.kpi-small{font-size:18px;letter-spacing:0;line-height:1.4}
.kpi p{font-size:12px;line-height:1.5;margin-top:4px}
.up{color:#1d7a36;font-weight:700}.down{color:#c0352b;font-weight:700}
.stat-card{margin-bottom:14px}
.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.stat-grid .stat-card{margin:0}
.stat-grid + .stat-card{margin-top:14px}
.stat-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.stat-table th,.stat-table td{padding:8px 6px;border-top:1px solid var(--line);text-align:left}
.stat-table th{font-weight:600}
.stat-table thead th{color:var(--muted);font-size:12px;border-top:0}
.stat-table a{color:var(--primary)}
.bar-cell{width:30%}
.bar-cell span{display:block;height:8px;border-radius:4px;background:var(--primary);min-width:2px}
.top-table{display:block;overflow-x:auto}
.chart{width:100%;height:auto;display:block}
.chart .grid line{stroke:var(--line)}
.chart text{font-size:11px;fill:var(--muted);font-family:'DM Sans',sans-serif}
.chart .bar{fill:var(--primary)}
.chart .bar:hover{fill:var(--primary-dark)}
.chart .bar-partial{fill:#a9abf3}
.chart-note{font-size:12px;margin-top:8px}
.last-updated{font-size:12px;margin-top:10px}
.helper-notice + .stat-card{margin-top:14px}
.settings-card{max-width:560px}
.settings-card p{margin-bottom:14px}
.settings-card select{min-height:44px}

@media(max-width:900px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat-grid{grid-template-columns:1fr}
  .qr-row{grid-template-columns:64px minmax(0,1fr);gap:12px}
  .qr-thumb{width:64px;height:64px}
  .qr-scans{grid-column:2}
  .qr-actions{grid-column:1/-1;flex-wrap:wrap}
}
@media(max-width:480px){
  .kpis{grid-template-columns:1fr 1fr;gap:8px}
  .kpi{padding:14px}.kpi strong{font-size:24px}
  .dash-head h1{font-size:26px}
  .dash-filters select{flex:1 1 45%}
  .custom-range{width:100%}.custom-range input{flex:1;min-width:0}
}
/* Uploads, link lists and page colors in the content form. */
.upload-list{display:grid;gap:8px;margin-top:6px}
.upload-list:empty{display:none}
.upload-tile{display:flex;align-items:center;gap:12px;border:1px solid #e3e6ee;border-radius:12px;padding:10px 12px;background:#fff}
.upload-tile img,.upload-tile b{width:48px;height:48px;border-radius:8px;object-fit:cover;flex:none}
.upload-tile b{display:grid;place-items:center;background:#eef0ff;color:#4b50e6;font-size:11px}
.upload-tile span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}
.upload-tile small{display:block;color:var(--muted);font-size:12px}
.upload-drop{display:flex;align-items:center;justify-content:center;min-height:64px;margin-top:8px;border:2px dashed #cfd4e2;border-radius:12px;color:#4b50e6;font-weight:700;cursor:pointer;position:relative}
.upload-drop:hover,.upload-drop:focus-within{border-color:#4b50e6;background:#f6f7ff}
.upload-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.upload-drop.busy{opacity:.6;cursor:progress}
.link-row{display:grid;grid-template-columns:1fr 1.4fr auto;gap:12px;align-items:start}
.link-row .text-button{margin-top:34px}
@media (max-width:640px){.link-row{grid-template-columns:1fr}.link-row .text-button{margin-top:0;justify-self:start}}
.color-row{display:flex;align-items:center;gap:10px}
.color-row input[type=color]{width:48px;height:40px;padding:2px;border-radius:8px}
/* Example pages inside the phone preview (catalog hover and content step). */
.phone-screen.sx-screen{display:block;padding:0;overflow:auto;border-radius:0 0 26px 26px}
.sx{min-height:100%;background:#f4f5f8;font-size:11px;color:#172132;text-align:center}
.sx-head{background:var(--sx);color:#fff;padding:22px 14px 34px}
.sx-head.dark{background:linear-gradient(180deg,#3b3f47,#5b5f66)}
.sx-head h4{font-size:17px;margin:6px 0 4px;color:inherit;letter-spacing:-.2px}
.sx-head p{font-size:10.5px;color:inherit;opacity:.9;margin:0;line-height:1.5}
.sx-body{padding:0 12px 16px;margin-top:-20px;display:flex;flex-direction:column;gap:8px}
.sx-row{background:#fff;border-radius:8px;padding:11px 12px;text-align:left;font-weight:700;font-size:11.5px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 4px #0000000f;border-bottom:2px solid var(--sx)}
.sx-row b{color:#9aa0ab;font-weight:400}
.sx-row.col{display:block;font-weight:500;border-bottom:0}.sx-row.col small{display:block;color:#7b8190;font-size:9.5px;font-weight:500}
.sx-btn{display:block;background:var(--sx);color:#fff;border-radius:8px;padding:10px;font-weight:700;font-size:11.5px;box-shadow:0 2px 6px #0000001a}
.sx-btn.ghost{background:#fff;color:var(--sx);border:1.5px solid var(--sx)}
.sx-btn.wide{background:#fff;color:#172132;border-left:4px solid var(--sx);text-align:left}
.sx-badge{display:inline-block;font-size:8.5px;letter-spacing:1.5px;font-weight:800;border:1px solid #ffffffaa;border-radius:20px;padding:3px 9px}
.sx-avatar{width:58px;height:58px;border-radius:50%;margin:0 auto;display:grid;place-items:center;background:#ffffff33;border:3px solid #fff;font-size:20px;font-weight:800;object-fit:cover}
.sx-icons{display:flex;justify-content:center;gap:10px;margin-top:10px}.sx-icons i{width:28px;height:28px;border-radius:50%;background:#ffffff2b;display:grid;place-items:center;font-style:normal}
.sx-app{width:52px;height:52px;border-radius:14px;margin:0 auto;display:grid;place-items:center;background:#fff;color:var(--sx);font-size:24px;font-weight:900;box-shadow:0 4px 10px #0003}
.sx-doc{width:48px;height:60px;margin:0 auto;background:#fff;border-radius:4px;display:grid;place-items:end center;padding-bottom:8px;box-shadow:0 4px 10px #0003}.sx-doc b{background:var(--sx);color:#fff;font-size:9px;padding:2px 5px;border-radius:3px}
.sx-photo{display:block;width:100%;aspect-ratio:1;border-radius:8px;object-fit:cover}.sx-photo.tall{aspect-ratio:16/9}
.sx-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sx-text{background:#fff;border-radius:8px;padding:12px;text-align:left;line-height:1.6;margin:0;box-shadow:0 1px 4px #0000000f;white-space:pre-wrap;overflow-wrap:anywhere}
.sx-small{font-size:9.5px;color:#7b8190;line-height:1.5;margin:4px 0 0}
.sx-video{position:relative}.sx-video b{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:30px}
.sx-wave{display:flex;align-items:center;gap:3px;height:50px;background:#fff;border-radius:8px;padding:0 10px}.sx-wave i{flex:1;background:var(--sx);border-radius:2px;height:30%}.sx-wave i:nth-child(3n){height:80%}.sx-wave i:nth-child(4n+1){height:55%}
.sx-cal{width:52px;margin:0 auto;background:#fff;color:#172132;border-radius:8px;overflow:hidden}.sx-cal small{display:block;background:#ef4444;color:#fff;font-size:9px;font-weight:800}.sx-cal b{font-size:22px}
.sx-map{height:120px;border-radius:8px;background:repeating-linear-gradient(0deg,#e5e7eb 0 1px,transparent 1px 20px),repeating-linear-gradient(90deg,#e5e7eb 0 1px,transparent 1px 20px),#f8fafc;display:grid;place-items:center}.sx-map b{font-size:30px;color:var(--sx)}
.sx-amount{background:#fff;border-radius:8px;padding:14px;font-size:22px;font-weight:800}
.sx-site{background:#fff;min-height:100%;padding:0 0 14px;display:flex;flex-direction:column;gap:10px}.sx-site .sx-bar{background:#172132;color:#fff;font-size:9px;padding:8px}.sx-site h4{font-size:15px;margin:0 12px;text-align:left}.sx-site .sx-photo{border-radius:0}.sx-site .sx-btn{margin:0 12px;--sx:#4b50e6}
.sx-lines{margin:0 12px;display:grid;gap:5px}.sx-lines i{height:6px;background:#e5e7eb;border-radius:3px}
.sx-center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:30px 16px;--sx:#4b50e6;background:#fff}.sx-center h4{font-size:16px;margin:0}.sx-center p{margin:0}.sx-center .sx-btn{align-self:stretch}
.sx-wifi{width:70px;height:70px;border-radius:50%;background:#eef0ff;color:#4b50e6;display:grid;place-items:center;font-size:32px}
.type-card.previewing{outline:2px solid var(--primary);outline-offset:-2px}
/* Repeated groups (menu sections and dishes, videos), opening hours and tag pickers */
.list-item{border:1px solid #e3e6ee;border-radius:14px;padding:4px 16px 12px;margin:10px 0;background:#fbfbfd}
.list-item.nested{background:#fff}
.list-item-head{display:flex;justify-content:space-between;align-items:center;padding:10px 0 2px;font-size:14px}
.list-add{margin:4px 0 16px}
.hours-field{display:grid;gap:6px;margin:4px 0 18px}
.hours-row{display:grid;grid-template-columns:100px 1fr 1fr auto;gap:10px;align-items:center;font-size:14px}
.hours-row input[type=time]{min-height:42px;border:1px solid #d8dce6;border-radius:10px;padding:0 10px;font:inherit;min-width:0}
.hours-row input:disabled{opacity:.45}
.hours-row .check-label{margin:0}
.tags-field{border:0;padding:0;margin:0 0 18px}.tags-field legend{font-weight:700;margin-bottom:8px;padding:0}
.tag-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px 14px}.tag-grid .check-label{margin:0}
@media (max-width:560px){.hours-row{grid-template-columns:1fr 1fr;}.hours-row>span{grid-column:1/-1;font-weight:700}}
.sx-sec{font-weight:800;font-size:12px;text-align:left;margin:6px 2px 0}
.sx-row.dish{font-weight:600;border-bottom:0}.sx-row.dish span{min-width:0}.sx-row.dish small{display:block;font-weight:400;color:#7b8190;font-size:9.5px}.sx-row.dish b{color:inherit;font-weight:700}
.sx-cap{font-size:11px;font-weight:700;text-align:left;margin:-4px 2px 4px}
.option-button.list-add,[data-add-link].option-button{flex-direction:row;min-height:42px;padding:0 16px;font-size:13px;font-weight:700;color:var(--primary);margin:6px 0 18px}
.sx-sec{background:#fff;border-radius:8px;padding:6px 10px;box-shadow:0 1px 4px #0000000f}
.sx-mono{font-family:ui-monospace,Menlo,monospace;font-size:9.5px;overflow-wrap:anywhere;word-break:break-all}
.shape-options .option-button{width:74px;gap:6px}.shape-options small{font-size:10px}
.shape-thumb{display:block;width:26px;height:26px;border:2.5px solid currentColor}
.shape-thumb.circle{border-radius:50%}.shape-thumb.rounded{border-radius:8px}
.shape-thumb.heart{border:0;background:currentColor;clip-path:path('M13 24 C-6 11 3 -2 13 6 C23 -2 32 11 13 24Z')}
.shape-thumb.badge{border-radius:6px 6px 50% 50%}
.danger-card h3{color:#b4382b}.danger-card p{margin-bottom:12px}.danger-button{background:#b4382b}.danger-button:disabled{opacity:.45;cursor:not-allowed}
.auth-legal a{font-size:10px;color:var(--primary);padding:0}

/* Sign-in window: one narrow column (a phone-sized card) unless the QR preview sits beside it;
   a bottom sheet on phones. Google comes first: one tap, no code to copy. */
#auth-dialog{max-width:440px;padding:36px 32px 26px}
#auth-dialog.auth-wide{max-width:820px}
#auth-dialog .auth-grid{max-width:none;gap:32px}
#auth-dialog.auth-wide .auth-grid{grid-template-columns:minmax(0,1fr) 300px}
#auth-dialog .auth-form h2{font-size:28px;letter-spacing:-.7px;line-height:1.15;margin:0 40px 8px 0}
#auth-dialog .auth-sub{font-size:15px;line-height:1.5;color:var(--muted);margin:0 0 24px}
#auth-dialog .auth-sub strong{color:var(--ink);overflow-wrap:anywhere}
.auth-providers{display:grid;gap:10px}
#auth-dialog .social-signin{margin:0;min-height:52px;padding:0 18px;gap:12px;border:1px solid #c9cfdb;border-radius:12px;background:#fff;color:#1f1f1f;font-size:16px;font-weight:650;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
#auth-dialog .social-signin:hover{background:#f7f8fb;border-color:#aeb6c6}
#auth-dialog .social-signin:focus-visible{outline:3px solid #4b50e666;outline-offset:2px}
#auth-dialog .social-signin svg{width:24px;height:24px;flex:none}
#auth-dialog .social-signin .provider-letter{width:24px;font-size:20px;text-align:center}
#auth-dialog .divider{margin:22px 0 18px;font-size:13px;color:var(--muted)}
#auth-dialog .field{margin:0 0 6px}
#auth-dialog .field>span{font-size:14px;margin-bottom:8px}
#auth-dialog .field input{min-height:52px;font-size:16px;border-radius:12px;padding:0 16px}
#auth-dialog .field-error:empty{display:none}
#auth-dialog .field-error{margin:0 0 6px}
#auth-dialog .auth-form form{gap:10px}
#auth-dialog .auth-form .button{min-height:52px;border-radius:12px;font-size:16px;justify-content:center}
#auth-dialog .check-label{margin:4px 0 0;font-size:14px;line-height:1.4;align-items:flex-start;color:var(--muted)}
#auth-dialog .check-label input{margin-top:1px;flex:none}
#auth-dialog .auth-legal{font-size:12px!important;line-height:1.55;color:var(--muted);text-align:center;margin:20px 0 0!important}
#auth-dialog .auth-legal a{font-size:12px;font-weight:600}
#auth-dialog .code-input{min-height:60px;font-size:28px!important;letter-spacing:10px;padding-left:26px}
#auth-dialog .auth-links{justify-content:space-between;gap:8px;margin-top:14px}
#auth-dialog .auth-links .text-button{font-size:14px;min-height:44px;padding:0}
#auth-dialog .prototype-note{font-size:13px}
#auth-dialog .dialog-close{top:14px;right:14px;width:40px;height:40px;z-index:1}
@media (max-width:760px){#auth-dialog.auth-wide{max-width:440px}}
@media (max-width:600px){
  #auth-dialog,#auth-dialog.auth-wide{width:100%;max-width:100%;margin:auto 0 0;border-radius:22px 22px 0 0;padding:30px 20px calc(22px + env(safe-area-inset-bottom));max-height:94vh;max-height:94dvh;overflow-y:auto}
  #auth-dialog::before{content:'';position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#d7dbe6}
  #auth-dialog[open]{animation:auth-sheet .22s ease-out}
  #auth-dialog .auth-form h2{font-size:24px}
  #auth-dialog .auth-sub{margin-bottom:20px}
}
@keyframes auth-sheet{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){#auth-dialog[open]{animation:none}}
#auth-dialog .social-signin span{width:auto;font-size:16px;font-weight:650}
#auth-dialog h2:focus{outline:none}
#auth-dialog .auth-links .text-button{color:var(--primary);font-weight:600}#auth-dialog .auth-links .text-button:disabled{color:var(--muted)}
#auth-dialog .code-input::placeholder{color:#d3d7e0}

/* A code disabled after an abuse review */
.status-badge.status-blocked{background:#fdecea;color:#a3261b}
.blocked-note{margin:6px 0 0;font-size:13px;color:#a3261b}
.blocked-note a{color:inherit}
