:root {
  --bg: #F6F3EC;
  --card: #FFFFFF;
  --line: #E8E2D6;
  --line-soft: #F1EDE5;
  --text: #1C1917;
  --muted: #57534E;
  --green: #166534;
  --green-dark: #14532D;
  --green-soft: #E6F2EA;
  --gold: #A07A1E;
  --gold-soft: #FBF5E6;
  --gold-line: #E9D9AE;
  --gold-text: #6B4E10;
  --red-soft: #FCE8E6;
  --red-text: #9F1D1D;
  --blue-soft: #EEF2FA;
  --blue-text: #1E3A6E;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px rgba(28, 25, 23, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: 16px; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }

#app { max-width: 560px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) 20px 14px; background: rgba(246, 243, 236, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.top h1 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.logo-mark { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--serif); font-weight: 700; font-size: 17px; flex-shrink: 0; overflow: hidden; box-shadow: 0 2px 8px rgba(28, 25, 23, .12); }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text); }
.icon-btn svg, .row svg, .tab svg { pointer-events: none; }

main { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 18px 20px calc(100px + env(safe-area-inset-bottom)); }
main.flow { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }

.hint { display: flex; gap: 12px; align-items: center; padding: 13px 16px; background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--gold-text); line-height: 1.4; }
.hint svg { flex-shrink: 0; color: var(--gold); }
.note { padding: 13px 16px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-text); font-size: 14px; line-height: 1.5; }
.ok-note { padding: 13px 16px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); font-size: 14px; font-weight: 600; line-height: 1.5; }
.err-note { padding: 13px 16px; border-radius: 14px; background: var(--red-soft); color: var(--red-text); font-size: 14px; font-weight: 600; line-height: 1.5; }

.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.card h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.card h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; }
.small { font-size: 13px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 16px; border: none; font-size: 17px; font-weight: 700; letter-spacing: .01em; text-decoration: none; text-align: center; transition: transform .08s ease; }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 8px 20px rgba(22, 101, 52, .28); }
.btn.green { background: var(--green-dark); color: #fff; box-shadow: 0 8px 20px rgba(20, 83, 45, .22); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn.small { min-height: 44px; font-size: 15px; border-radius: 12px; padding: 0 14px; }
.btn:disabled { background: #B8B2A7; box-shadow: none; color: #fff; }
.btn.big { min-height: 132px; flex-direction: column; gap: 6px; font-family: var(--serif); font-size: 23px; }
.btn.big .sub { font-family: var(--font); font-size: 14px; font-weight: 500; opacity: .9; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card); box-shadow: var(--shadow); text-align: left; color: var(--text); }
.choice .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.choice .tx { display: flex; flex-direction: column; gap: 2px; }
.choice .tx b { font-size: 17px; }
.choice .tx span { font-size: 13px; color: var(--muted); }

.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; border: none; border-top: 1px solid var(--line-soft); background: transparent; text-align: left; width: 100%; color: var(--text); text-decoration: none; }
.row:first-child { border-top: none; }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row .t { font-size: 16px; font-weight: 600; }
.row .s { font-size: 13px; color: var(--muted); }
.slot { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.price { font-family: var(--serif); font-size: 17px; font-weight: 700; flex-shrink: 0; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; flex-shrink: 0; letter-spacing: .01em; }
.tag.yes { background: var(--green-soft); color: var(--green-dark); }
.tag.no { background: var(--red-soft); color: var(--red-text); }
.tag.info { background: var(--blue-soft); color: var(--blue-text); }
.tag.wait { background: var(--gold-soft); color: var(--gold-text); border: 1px solid var(--gold-line); }
.tag.off { background: var(--bg); color: var(--muted); }
.sold .t { text-decoration: line-through; opacity: .55; }

.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.day-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.day-btn b { font-size: 15px; }
.day-btn span { font-size: 11px; font-weight: 500; opacity: .8; }
.day-btn.on { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(22, 101, 52, .25); }
.dot { width: 7px; height: 7px; border-radius: 4px; }

.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.weeknav .label { text-align: center; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.weeknav .label .muted { display: block; font-family: var(--font); font-weight: 500; font-size: 13px; }

.daycard { display: flex; flex-direction: column; gap: 5px; padding: 15px 16px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; width: 100%; color: var(--text); }
.daycard .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; }
.daycard .head b { font-family: var(--serif); font-size: 18px; }
.daycard .dish-line { font-size: 14px; color: #44403C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.field textarea { min-height: 230px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(22, 101, 52, .18); border-color: var(--green); }
.field .help { font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 15px; font-weight: 600; }
.check input { width: 24px; height: 24px; accent-color: var(--green); }

.switch { width: 52px; height: 31px; border-radius: 16px; background: #CFC9BD; display: flex; align-items: center; padding: 3px; flex-shrink: 0; transition: background .15s; }
.switch i { width: 25px; height: 25px; border-radius: 13px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: margin .15s; }
.switch.on { background: var(--green); }
.switch.on i { margin-left: 21px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; color: var(--text); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.al-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.al { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; text-align: left; color: var(--text); }
.al b { width: 26px; height: 26px; border-radius: 13px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.al.on { border-color: var(--green); background: var(--green-soft); }
.al.on b { background: var(--green); color: #fff; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 46px; height: 46px; border-radius: 23px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch.on { box-shadow: 0 0 0 3px var(--text); }

.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tpl { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; border: 2px solid transparent; background: var(--card); box-shadow: var(--shadow); text-align: left; color: var(--text); }
.tpl-lock { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 999px; background: rgba(28,25,23,.8); color: #fff; font-size: 12px; font-weight: 800; font-style: normal; }
.tpl-lock svg { width: 12px; height: 12px; fill: currentColor; }
.tpl canvas { width: 100%; height: auto; border-radius: 10px; display: block; }
.tpl span { font-size: 14px; font-weight: 700; padding: 0 4px 2px; }
.tpl.on { border-color: var(--green); }

.issue { display: flex; flex-direction: column; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.issue:first-of-type { border-top: none; }
.issue .k { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.issue .m { font-size: 15px; font-weight: 500; line-height: 1.45; }
.issue .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.issues-box { border: 1px solid var(--gold-line); }
.issues-box h2 { color: var(--gold-text); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar .inner { width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; border: none; background: transparent; color: #78716C; font-size: 12px; font-weight: 600; position: relative; }
.tab.on { color: var(--green); font-weight: 700; }
.tab.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--green); }
.footer-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
.footer-bar .inner { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }

.modal-back { position: fixed; inset: 0; z-index: 20; background: rgba(28, 25, 23, .42); display: flex; align-items: flex-end; justify-content: center; }
.modal { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.modal .head { display: flex; justify-content: space-between; align-items: center; }
.modal .head h2 { margin: 0; font-family: var(--serif); font-size: 21px; }

.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; max-width: 90vw; padding: 12px 18px; border-radius: 14px; background: #1C1917; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.busy { position: fixed; inset: 0; z-index: 40; background: rgba(246, 243, 236, .86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-size: 17px; font-weight: 600; text-align: center; padding: 24px; }
.spinner { width: 44px; height: 44px; border-radius: 22px; border: 4px solid var(--green-soft); border-top-color: var(--green); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.center { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 28px 24px; }
.center h1 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.brand-mark { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--green-dark); }
.brand-mark img { width: 40px; height: 40px; border-radius: 11px; }
.steps { display: flex; gap: 6px; }
.steps i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--green); }
.pin-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; }

.how { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.how b.n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 15px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px; }
.qr-box { display: flex; gap: 14px; align-items: center; }
.qr-box img { width: 120px; height: 120px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.url { font-size: 14px; font-weight: 600; word-break: break-all; }
.poster-wrap { display: flex; justify-content: center; }
.poster-wrap canvas { width: 100%; max-width: 380px; height: auto; border-radius: 14px; box-shadow: 0 14px 34px rgba(28, 25, 23, .18); }
.big-success { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 0 6px; text-align: center; }
.big-success .circle { width: 76px; height: 76px; border-radius: 38px; background: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(22, 101, 52, .3); }
.big-success h2 { margin: 0; font-family: var(--serif); font-size: 26px; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .btn { transition: none; } }

/* sign-up and login */
.center.auth { gap: 14px; }
.pw { position: relative; display: flex; }
.pw input { flex: 1; padding-right: 54px; }
.pw .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.pw .eye svg { pointer-events: none; }
.check { align-items: flex-start; }
.check input { flex-shrink: 0; margin-top: 2px; }
.btn.link { min-height: 44px; background: transparent; color: var(--green); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.btn.link.inline { display: inline; min-height: 0; padding: 0; font-size: inherit; }
.auth-alt { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.btn.danger { color: var(--red-text); border-color: #F1C4C0; }
.small { font-size: 14px; line-height: 1.5; }

/* plans */
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-head b { font-size: 18px; white-space: nowrap; }
ul.feat { margin: 4px 0 2px; padding-left: 20px; line-height: 1.6; font-size: 15px; color: var(--text); }
.card.founder { border: 2px solid var(--gold-line); background: linear-gradient(180deg, var(--gold-soft), var(--card) 70%); }
.tag.gold { align-self: flex-start; background: var(--gold); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-box svg { width: 140px; height: 140px; flex-shrink: 0; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 6px; }
.qr-box .url { word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* admin overview */
.dash-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dash-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.dash-tile .dash-k { font-size: 13px; color: var(--muted); font-weight: 600; }
.dash-tile .dash-v { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.15; }
.dash-tile .dash-s { font-size: 13px; color: var(--muted); }
.dash-chart svg { width: 100%; height: auto; display: block; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dash-head h3 { margin: 0; }
.dash-head b { font-size: 15px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.dash-grid { stroke: var(--line-soft); stroke-width: 1; }
.dash-base { stroke: #CFC8BA; stroke-width: 1; }
.dash-ax { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.dash-hit { cursor: default; outline: none; }
.dash-hit:focus { fill: rgba(31, 122, 69, .08); }
.dash-bars { display: flex; flex-direction: column; gap: 8px; }
.dash-bar { display: grid; grid-template-columns: minmax(0, 9em) 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.dash-bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.dash-track { height: 14px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.dash-track i { display: block; height: 100%; background: #1F7A45; border-radius: 0 4px 4px 0; }
.dash-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.dash-table table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 640px; }
.dash-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.dash-table td { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.dash-table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.dash-tip { position: fixed; z-index: 50; display: none; padding: 7px 10px; border-radius: 10px; background: #1C1917; color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }

.oauth { display: flex; flex-direction: column; gap: 10px; }
.oauth .btn { gap: 12px; }
.btn.apple { background: #000; color: #fff; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* what Menullo brings */
.welcome { text-align: center; padding: 6px 4px 2px; }
.welcome h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; }
.value-list { display: flex; flex-direction: column; }
.vi { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.vi:last-child { border-bottom: none; }
.vi .ic { flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.vi .ic svg { width: 22px; height: 22px; }
.vi .tx { display: flex; flex-direction: column; gap: 3px; }
.vi .tx b { font-size: 16px; }
.vi .tx span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.card.roi { border: 2px solid var(--gold-line); background: linear-gradient(180deg, var(--gold-soft), var(--card) 75%); }
.card.roi p { margin: 0; font-size: 16px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--bg); }
.stat b { font-family: var(--serif); font-size: 26px; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.plan-value { margin: 6px 0 2px; font-size: 15px; line-height: 1.45; color: var(--text); }
