:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --surface: #fffdf8;
  --ink: #292037;
  --muted: #665d70;
  --purple: #563b82;
  --line: #ded6e4;
  --radius: 20px;
  font-family: system-ui, "Noto Sans Thai", Thonburi, "Leelawadee UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #8662b5; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 5; inset: 10px auto auto 10px; background: white; padding: 10px; border-radius: 8px; }
.shell { width: min(100% - 32px, 1120px); margin-inline: auto; }
.site-header { border-bottom: 1px solid #e9e2d7; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 790; letter-spacing: -.035em; }
.header-inner .brand { font-size: clamp(1rem, 4vw, 1.2rem); }
.beta { font-size: .75rem; font-weight: 750; padding: 4px 11px; border-radius: 40px; background: #e9dff6; color: #4c316c; white-space: nowrap; }
.hero { position: relative; display: grid; align-items: center; isolation: isolate; overflow: hidden; margin-top: 20px; padding: 30px 23px 121px; min-height: 330px; border-radius: 24px; background: #2b1944; color: #fff7ee; }
.hero-copy { z-index: 1; }
.eyebrow, .kicker { font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #dfcbf7; }
.eyebrow span { width: 13px; height: 2px; background: #efc0a7; }
.hero h1 { margin-block: 10px 14px; font-size: clamp(2rem, 6.8vw, 3.7rem); line-height: 1.15; font-weight: 820; letter-spacing: -.045em; }
.hero h1 span { color: #efc0a7; }
.hero-description { color: #e8dcef; font-size: .97rem; max-width: 37ch; }
.wide-only { display: none; }
.hero-art { position: absolute; width: min(77%, 310px); height: auto; right: -3%; bottom: -6%; opacity: .85; }
.button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: 11px; padding: 9px 15px; font-weight: 750; text-decoration: none; text-align: center; line-height: 1.35; }
.button:disabled { opacity: .58; cursor: wait; }
.hero-button { margin-top: 20px; background: #edc0ab; color: #2c1b3e; }
.hero-button:hover { background: #f9d6c4; }
.directory { padding-block: 34px 42px; scroll-margin-top: 12px; }
.section-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: end; margin-bottom: 16px; }
.kicker { color: var(--purple); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.25rem); line-height: 1.2; letter-spacing: -.04em; margin-top: 5px; }
.time-zone { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.time-zone span { font-size: 1rem; margin-right: 3px; }
.demo-notice { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border: 1px solid #e1ca94; border-radius: 12px; background: #fff0cb; color: #564318; font-size: .85rem; }
.demo-notice p { margin-top: 2px; }
.notice-symbol { display: grid; place-items: center; flex: 0 0 20px; height: 20px; border: 1px solid; border-radius: 50%; font-size: .75rem; font-weight: 800; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(92px, auto); gap: 8px; margin-block: 15px 12px; }
.search-field { display: flex; gap: 8px; align-items: center; padding: 0 10px; }
.search-field, .day-field select, .form-field input, .form-field select, .form-field textarea, .schedule-row select, .schedule-row input { width: 100%; border: 1px solid #d7ceda; background: var(--surface); border-radius: 10px; min-height: 46px; }
.search-field:focus-within { outline: 3px solid #8662b5; outline-offset: 2px; }
.search-field svg { flex: 0 0 18px; fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; }
.search-field input { width: 100%; min-width: 0; padding: 8px 0; border: 0; outline: none; background: transparent; }
.day-field select { padding-inline: 8px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.category-filters button { min-height: 42px; border: 1px solid #ddd2e5; background: transparent; border-radius: 30px; padding: 7px 12px; font-size: .84rem; color: #514260; }
.category-filters button:hover { background: #f1e7fb; }
.category-filters button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: white; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 17px 0 9px; color: var(--muted); font-size: .83rem; }
.results-bar p:first-child { font-weight: 750; }
.seller-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); gap: 15px; }
.seller-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e1d8e0; border-radius: var(--radius); background: var(--surface); }
.seller-art { --art: #eadff5; --art-ink: #563b82; position: relative; isolation: isolate; overflow: hidden; height: 100px; background: var(--art); color: var(--art-ink); }
.seller-art[data-palette="food"] { --art: #f5dbc9; --art-ink: #7c4536; }
.seller-art[data-palette="home"] { --art: #dfe8cd; --art-ink: #425936; }
.seller-art[data-palette="beauty"] { --art: #f3dbe8; --art-ink: #7a4464; }
.seller-art[data-palette="other"] { --art: #d7e7e9; --art-ink: #375b60; }
.seller-art::before, .seller-art::after { content: ""; position: absolute; z-index: -1; border: 1px solid currentColor; border-radius: 50%; opacity: .29; width: 210px; height: 80px; left: 38%; top: 11px; transform: rotate(-29deg); }
.seller-art::after { transform: rotate(27deg); }
.art-label { position: absolute; left: 15px; bottom: 12px; font-size: .68rem; font-weight: 850; letter-spacing: .19em; }
.art-mark { position: absolute; left: 61%; top: 50%; transform: translate(-50%, -50%); font-size: 62px; line-height: 1; }
.demo-tag { position: absolute; right: 10px; top: 10px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 20px; background: var(--art); font-size: .72rem; font-weight: 800; }
.seller-body { display: flex; flex: 1; flex-direction: column; align-items: stretch; padding: 15px; }
.seller-category { color: var(--purple); font-size: .76rem; font-weight: 780; }
.seller-name { margin-top: 2px; font-size: 1.2rem; line-height: 1.32; overflow-wrap: anywhere; }
.seller-description { margin-top: 5px; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.seller-schedule { padding: 10px 12px; margin-block: 12px; border-radius: 11px; background: #f4eef8; color: #443352; font-size: .83rem; }
.schedule-title { font-weight: 760; }
.seller-schedule ul { margin: 5px 0; padding-left: 19px; }
.next-show { margin-top: 5px; font-weight: 750; color: var(--purple); }
.facebook-button { justify-content: space-between; margin-top: auto; color: #fff; background: var(--purple); font-size: .89rem; }
.facebook-button:hover, .primary:hover { background: #412865; }
.schedule-note { margin-top: 16px; font-size: .82rem; color: var(--muted); }
.empty-state { padding: 24px 16px; text-align: center; border: 1px dashed #d8c9e2; border-radius: 13px; background: var(--surface); }
.empty-state .button { margin-top: 10px; }
.site-footer { border-top: 1px solid #e9e2d7; }
.footer-inner .brand { font-size: .89rem; }
.admin-link { color: var(--purple); font-size: .86rem; text-underline-offset: 3px; }

.admin-main { max-width: 900px; padding-block: 30px 42px; }
.admin-main h1 { font-size: clamp(1.8rem, 5.5vw, 2.55rem); line-height: 1.2; margin: 5px 0 8px; letter-spacing: -.04em; }
.admin-intro { color: var(--muted); margin-bottom: 20px; }
.panel { padding: 17px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.login-panel { max-width: 460px; }
.stack { display: grid; gap: 14px; }
.form-field { display: grid; gap: 5px; min-width: 0; font-weight: 720; }
.form-field input, .form-field select, .form-field textarea, .schedule-row select, .schedule-row input { padding: 8px 10px; font-weight: 450; }
.form-field textarea { resize: vertical; }
.help { color: var(--muted); font-weight: 450; font-size: .82rem; }
.primary { background: var(--purple); color: white; }
.secondary { background: #efe7f6; border-color: #e1d4ea; color: #4c316c; }
.secondary:hover { background: #e6d9f0; }
.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-tools, .list-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.admin-tools { margin-bottom: 12px; }
.form-title { font-size: 1.3rem; }
.form-columns { display: grid; gap: 12px; }
.form-status { min-height: 1.5em; font-size: .9rem; font-weight: 700; color: #2f633a; overflow-wrap: anywhere; }
.form-status[data-error="true"] { color: #8a2d35; }
.schedule-inputs { display: grid; gap: 8px; }
.schedule-fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 11px; min-width: 0; }
.schedule-fieldset legend { font-weight: 720; padding-inline: 4px; }
.schedule-fieldset .help { margin-bottom: 8px; }
.schedule-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 5px; }
.schedule-row input { min-width: 0; }
.remove-slot { padding: 5px 8px; font-size: .82rem; }
.add-slot { margin-top: 8px; }
.check-field { display: flex; gap: 8px; align-items: center; width: fit-content; min-height: 42px; }
.check-field input { width: 18px; height: 18px; accent-color: var(--purple); }
.admin-list { margin-top: 14px; }
.list-heading { margin-bottom: 9px; }
.admin-rows { display: grid; gap: 8px; }
.admin-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.admin-row-title { font-weight: 740; overflow-wrap: anywhere; }
.admin-row-meta { color: var(--muted); font-size: .83rem; }
.admin-row .button { font-size: .84rem; }

@media (min-width: 660px) {
  .shell { width: min(100% - 64px, 1120px); }
  .header-inner { min-height: 72px; }
  .hero { margin-top: 26px; min-height: 345px; padding: 30px 6%; border-radius: 30px; }
  .hero-art { width: 54%; bottom: 50%; right: -2%; transform: translateY(50%); opacity: 1; }
  .wide-only { display: inline; }
  .hero-description { font-size: 1.02rem; max-width: 44ch; }
  .directory { padding-top: 40px; }
  .filters { grid-template-columns: minmax(0, 1fr) 166px; gap: 12px; }
  .search-field, .day-field select { padding-inline: 13px; }
  .category-filters { gap: 8px; }
  .category-filters button { padding-inline: 15px; }
  .seller-grid { gap: 18px; }
  .seller-art { height: 112px; }
  .seller-body { padding: 17px; }
  .panel { padding: 21px; }
  .form-columns { grid-template-columns: 1fr 1fr; }
  .schedule-inputs { max-width: 460px; }
}
