/* Visite's own pages: admin, sign-in, top page.
   Editorial and quiet: warm paper, near-black ink, lots of air. Imagery (a creator's featured work) carries
   the colour; the interface itself stays in two colours. Type: Instrument Serif is the voice outside the
   product — the logo everywhere, and headings and the odd English line on the top page and sign-in. Inside
   the admin, headings are Shippori Mincho and anything the brand typed (event titles, names, numbers) is set
   in the plain UI type, Inter + Zen Kaku Gothic New. Two sizes, 13 / 22 (the logo is 26).
   Left-aligned throughout; only the logo on sign-in pages is centred. */
:root {
  --paper: #f3f0ea;
  --ink: #1b1a18;
  --ink-2: rgba(27, 26, 24, 0.58);
  --hair: rgba(27, 26, 24, 0.12);
  --soft: rgba(27, 26, 24, 0.045);
  --logo: "Instrument Serif", serif;
  --sans: "Inter", "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --head: "Instrument Serif", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --xl: 26px;
  --s: 13px;
  --l: 22px;
  --r: 10px;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--sans); font-size: var(--s); line-height: 1.8; letter-spacing: 0; font-feature-settings: "palt" 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:is(button, input, select, textarea, a):focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2 { font-family: var(--head); font-weight: 400; font-size: var(--l); line-height: 1.45; letter-spacing: 0.01em; margin: 0 0 24px; }
h2 { margin: 0 0 16px; }
h3 { font-size: var(--s); font-weight: 600; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.logo { font-family: var(--logo); font-size: 34px; font-weight: 400; letter-spacing: 0; line-height: 1; text-decoration: none; }
.lp-hero .logo { font-size: 40px; }
.gate .logo { font-size: 38px; }
.eyebrow { font-family: var(--logo); font-style: italic; font-size: var(--l); line-height: 1.3; color: var(--ink-2); margin: 0 0 12px; }
.serif { font-family: var(--logo); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); white-space: nowrap; text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: 0.86; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }
.btn.quiet { background: transparent; color: var(--ink-2); border-color: transparent; padding: 0 10px; }
.btn.quiet:hover { color: var(--ink); opacity: 1; }
.btn.small { min-height: 32px; padding: 0 14px; }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.block { width: 100%; }
.link { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
label.f, div.f { display: block; margin: 0 0 20px; }
label.f > span, div.f > .lbl { display: block; color: var(--ink-2); margin: 0 0 6px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=time], input[type=tel], select, textarea {
  display: block; width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 8px; background: rgba(255, 255, 255, 0.55); font-size: 16px; }
@media (min-width: 860px) { input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=time], input[type=tel], select, textarea { font-size: var(--s); } }
textarea { min-height: 90px; resize: vertical; line-height: 1.75; }
/* One dropdown arrow everywhere, inset from the edge (the browser's own sits flush and varies by OS). */
select { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background: rgba(255, 255, 255, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231b1a18' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 14px center; }
select:focus { background-color: #fff; }
:is(input, select, textarea):focus { outline: none; border-color: var(--ink); background: #fff; }
input[type=range] { accent-color: var(--ink); width: 100%; }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.help { display: block; color: var(--ink-2); margin: 6px 0 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; gap: 0 24px; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* featured work: a full-bleed image with its credit in the corner */
.feature { background: #3a332c center / cover no-repeat; }
.credit { font-size: 9px; letter-spacing: 0.02em; line-height: 1.4; color: rgba(243, 240, 234, 0.7); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }
.credit a { text-decoration: none; }
.credit a:hover { text-decoration: underline; }

/* sign-in: the work fills the screen, the form floats on a paper panel */
.gate { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: center; padding: 32px; }
.gate .feature { position: fixed; inset: 0; z-index: -1; }
.gate .panel { width: 100%; max-width: 400px; background: var(--paper); border-radius: 16px; padding: 44px 40px 36px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18); }
@media (min-width: 860px) { .gate { padding-left: 8vw; } }
.gate .logo { display: block; margin: 0 0 36px; }
.gate .err { min-height: 1.8em; margin-top: 12px; }
.gate .credit { position: fixed; right: 28px; bottom: 22px; }
@media (max-width: 600px) { .gate { padding: 16px; align-items: flex-end; } .gate .panel { padding: 32px 24px; } .gate .credit { top: 18px; bottom: auto; right: 18px; } }

/* admin: a quiet left rail and an open page. Headings are mincho only (no display serif); what the
   brand typed is never set in a display face. */
.shell, .overlay { --head: "Shippori Mincho", "Hiragino Mincho ProN", serif; }
h1.plain { font-family: var(--sans); font-weight: 500; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
/* No brand yet: no menu, so the page takes the full width. */
.shell:has(> .rail[hidden]) { grid-template-columns: minmax(0, 1fr); }
.shell:has(> .rail[hidden]) > main { max-width: none; padding: 0; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 28px 22px 22px; border-right: 1px solid var(--hair); }
.rail .logo { padding-left: 2px; }
.rail select { border: 0; background-color: transparent; background-position: right 4px center; padding: 0 24px 0 2px; min-height: 0; font-weight: 600; width: 100%; }
.rail select.single { display: none; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav button { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); }
.rail nav button:hover { color: var(--ink); }
.rail nav button.on { background: var(--soft); color: var(--ink); }
.rail .foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.rail .feature-card { display: block; text-decoration: none; }
.rail .feature-card .feature { aspect-ratio: 4 / 5; border-radius: var(--r); margin-bottom: 8px; }
.rail .feature-card .credit { color: var(--ink-2); text-shadow: none; }
.rail .fb { align-self: flex-start; color: var(--ink-2); padding: 0; }
.rail .fb:hover { color: var(--ink); }
.rail .who { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { min-width: 0; max-width: 1080px; padding: 44px 56px 120px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: sticky; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; background: var(--paper); border-right: 0; border-bottom: 1px solid var(--hair); }
  .rail select { width: auto; }
  .rail nav { flex-direction: row; order: 3; width: 100%; }
  .rail .foot { margin: 0 0 0 auto; }
  .rail .feature-card, .rail .who { display: none; }
  main { padding: 28px 16px 96px; }
}
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0 0 32px; }
.page-head h1 { margin: 0; }
section.block { padding: 32px 0; border-top: 1px solid var(--hair); }
section.block:first-of-type { border-top: 0; padding-top: 0; }
.banner { border-radius: var(--r); background: var(--soft); padding: 14px 18px; margin: 0 0 24px; }
.empty { color: var(--ink-2); padding: 40px 0; }

/* event list: editorial rows with the key visual */
.events { border-top: 1px solid var(--hair); }
.ev-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hair); cursor: pointer; }
.ev-row:hover .ev-title { text-decoration: underline; text-underline-offset: 4px; }
.ev-thumb { width: 72px; aspect-ratio: 4 / 5; border-radius: 6px; background: var(--soft) center / cover no-repeat; }
.ev-title { font-weight: 600; margin: 0 0 2px; }
.ev-side { text-align: right; }
@media (max-width: 600px) { .ev-row { grid-template-columns: 56px minmax(0, 1fr); } .ev-thumb { width: 56px; } .ev-side { grid-column: 2; text-align: left; } }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink-2); }
.status.on { color: var(--ink); }
.status.on::before { background: var(--ink); border-color: var(--ink); }
.meter { height: 2px; background: var(--hair); margin: 6px 0 0 auto; width: 160px; max-width: 100%; }
.meter i { display: block; height: 100%; background: var(--ink); }
@media (max-width: 600px) { .meter { margin-left: 0; } }

/* tables */
table.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.list td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.list tr.link-row { cursor: pointer; }
.list tr.link-row:hover td { background: var(--soft); }
.tablewrap { overflow-x: auto; }
.tag { display: inline-block; padding: 0 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }

/* figures at the top of an event */
.figures { display: flex; gap: 48px; flex-wrap: wrap; margin: 0 0 36px; }
.figures b { display: block; font-size: var(--l); font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.figures span { color: var(--ink-2); }

/* slot heatmap / capacity grid: dates across, hours down */
.gridwrap { overflow-x: auto; margin: 0 0 8px; }
table.hm { border-collapse: separate; border-spacing: 3px; }
.hm th { font-weight: 400; color: var(--ink-2); white-space: nowrap; padding: 0 8px 0 0; text-align: left; }
.hm th.dayh { text-align: center; padding: 0 4px; }
.hm td { min-width: 62px; height: 38px; text-align: center; font-variant-numeric: tabular-nums; border-radius: 6px; }
.hm td.cell { background: var(--soft); }
.hm td.full { background: var(--ink); color: var(--paper); }
.hm td.undecided { background: transparent; border: 1px dashed var(--hair); }
.hm td input { width: 56px; min-height: 32px; text-align: center; padding: 0 4px; margin: 0 auto; border-radius: 6px; }
.hm td input.over { border-color: var(--ink); font-weight: 600; }

/* event editor */
.richbar { display: flex; gap: 4px; margin: 0 0 6px; }
.rb { min-width: 32px; height: 28px; border: 1px solid var(--hair); border-radius: 6px; background: transparent; padding: 0 9px; color: var(--ink-2); }
.rb:hover { color: var(--ink); border-color: var(--ink); }
.days-ed { display: grid; gap: 6px; }
.day-row { display: grid; grid-template-columns: 96px 112px 16px 112px auto; gap: 8px; align-items: center; }
.day-row input[type=time] { min-height: 34px; padding: 2px 8px; }

/* slot length: a stepper plus quick picks */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--hair); border-radius: 999px; background: rgba(255, 255, 255, 0.55); }
.stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 16px; color: var(--ink-2); border-radius: 50%; }
.stepper button:hover { color: var(--ink); background: var(--soft); }
.stepper input { width: 52px; min-height: 0; padding: 0; border: 0; background: none; text-align: right; font-size: var(--l); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { background: none; }
.stepper span { margin: 0 6px 0 4px; color: var(--ink-2); }
.picks { display: flex; gap: 4px; }
.picks .pick { border: 1px solid var(--hair); border-radius: 999px; background: none; padding: 4px 12px; color: var(--ink-2); }
.picks .pick:hover { color: var(--ink); border-color: var(--ink); }

/* customer input fields: checkboxes, with settings tucked under each */
.fields { display: grid; gap: 10px; margin: 0 0 8px; }
.fields .check small { color: var(--ink-2); margin-left: 4px; }
.fields .check input:disabled { opacity: 0.6; }
.fields .sub { margin: 10px 0 4px 24px; }
.q-card { border-radius: var(--r); box-shadow: 0 0 0 1px var(--hair); padding: 18px 18px 12px; margin-top: 12px; background: rgba(255, 255, 255, 0.35); }

/* reservations: one line each */
table.res-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.res-table thead th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 6px 12px 6px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.res-table .sort { border: 0; background: none; padding: 0; color: inherit; display: inline-flex; gap: 4px; }
.res-table .sort span { opacity: 0.45; }
.res-table .sort.on { color: var(--ink); }
.res-table .sort.on span { opacity: 1; }
.res-table .when { font-variant-numeric: tabular-nums; }
.res-table td { padding: 0 12px 0 0; height: 42px; border-bottom: 1px solid var(--hair); vertical-align: middle; white-space: nowrap; }
.res-table tr[data-id] { cursor: pointer; }
.res-table tr[data-id]:hover td { background: var(--soft); }
.res-table tr.cancelled td, .res-table tr.erased td { color: var(--ink-2); }
.res-table tr.cancelled .who { text-decoration: line-through; }
.res-table .who { font-weight: 500; }
.res-table .clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.res-table .memo { width: 26%; }
.res-table .memo input { min-height: 30px; padding: 3px 8px; border-color: transparent; background: transparent; }
.res-table .memo input:hover { border-color: var(--hair); }
.res-table .memo input:focus { border-color: var(--ink); background: #fff; }
.res-table .act { text-align: right; padding-right: 0; }
.slot-head { color: var(--ink-2); margin: 32px 0 4px; }
.res { padding: 16px 0; border-top: 1px solid var(--hair); }
.res.cancelled { opacity: 0.5; }
.res .top-line { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.res .name { font-weight: 600; }
.res .note { white-space: pre-wrap; background: var(--soft); border-radius: 8px; padding: 10px 14px; margin: 10px 0 0; }
.res textarea { min-height: 44px; margin-top: 10px; }
.res .acts { margin-top: 6px; margin-left: -10px; }

/* settings */
.swatches { display: flex; gap: 20px; flex-wrap: wrap; }
.swatches label { display: flex; align-items: center; gap: 8px; }
.swatches input[type=color] { width: 32px; height: 32px; border: 1px solid var(--hair); border-radius: 50%; padding: 0; background: none; overflow: hidden; }
.swatches input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatches input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.design { display: grid; gap: 32px; }
@media (min-width: 1100px) { .design { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.preview { border-radius: var(--r); padding: 32px; box-shadow: 0 0 0 1px var(--hair); }
.publish-state { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.logo-preview img { display: block; max-height: 48px; max-width: 240px; margin: 0 0 12px; }

/* dialog + toast */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(27, 26, 24, 0.36); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: var(--paper); width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; border-radius: 16px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2); }
.dialog .hd { padding: 28px 28px 8px; font-size: var(--l); font-weight: 500; }
.dialog .bd { padding: 8px 28px; overflow-y: auto; }
.dialog .ft { padding: 16px 28px 24px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dialog .feature { aspect-ratio: 16 / 7; border-radius: 10px; margin: 0 0 16px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--paper); padding: 11px 22px; border-radius: 999px; max-width: calc(100% - 32px); }
.plans { display: grid; gap: 12px; margin: 8px 0 0; }
.plans div { border-radius: 10px; box-shadow: 0 0 0 1px var(--hair); padding: 14px 16px; }
.plans div.on { box-shadow: 0 0 0 1px var(--ink); }
.plans b { font-weight: 600; }

/* top page */
.lp-hero { position: relative; isolation: isolate; min-height: 92vh; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 32px; color: var(--paper); }
.lp-hero .feature { position: absolute; inset: 0; z-index: -1; }
.lp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 30%, rgba(0,0,0,.28)); }
.lp-hero .top { display: flex; align-items: center; gap: 16px; }
.lp-hero .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lp-hero .btn.ghost { background: transparent; color: var(--paper); border-color: rgba(243, 240, 234, 0.5); }
.lp-hero h1 { font-size: clamp(26px, 4.2vw, 52px); line-height: 1.35; max-width: 18em; margin: 0 0 20px; }
.ph { display: inline-block; } /* a phrase that wraps as a whole */
.lp .lead-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.4; margin: 0 0 20px; }
.lp .lead-text { margin: 0; line-height: 2; }
.lp-hero .bottom { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.lp-hero .credit { margin-left: auto; }
.lp-hero .beta-note { align-self: center; opacity: 0.9; }
.lp { max-width: 1080px; margin: 0 auto; padding: 96px 32px; }
.lp .cols { display: grid; gap: 40px 56px; }
@media (min-width: 860px) { .lp .cols { grid-template-columns: repeat(3, 1fr); } .lp .cols.two { grid-template-columns: 5fr 4fr; align-items: center; } }
.lp .cols h2 { margin-bottom: 10px; }
.lp .cols .feature { aspect-ratio: 4 / 5; border-radius: var(--r); }

.lp-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 28px 32px 40px; color: var(--ink-2); border-top: 1px solid var(--hair); }

/* top page: feature rows with a UI sample beside the text */
.feat { display: grid; gap: 32px 72px; align-items: center; padding: 88px 0; border-top: 1px solid var(--hair); }
@media (min-width: 860px) { .feat { grid-template-columns: 5fr 6fr; } .feat.rev > :first-child { order: 2; } }
.feat h2 { margin-bottom: 12px; }

/* UI samples: small, flat replicas of the real screens (not screenshots) */
.mock { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -30px rgba(27, 26, 24, 0.35); overflow: hidden; font-size: 11px; line-height: 1.5; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); }
.mock-body { padding: 22px 24px 26px; }
.m-title { font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.m-progress { display: flex; gap: 3px; margin: 0 0 18px; }
.m-progress i { flex: 1; height: 2px; background: var(--hair); }
.m-progress i.on { background: var(--ink); }
.m-head { display: flex; justify-content: space-between; margin: 0 0 6px; max-width: 280px; }
.m-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; max-width: 280px; }
.m-cal em { font-style: normal; text-align: center; color: var(--ink-2); font-size: 10px; }
.m-cal span { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 5px; color: rgba(27, 26, 24, 0.3); }
.m-cal span.open { background: var(--soft); color: var(--ink); font-weight: 500; }
.m-cal span.on { background: var(--ink); color: #fff; }
.m-label, .m-small { display: block; color: var(--ink-2); margin: 16px 0 6px; }
.m-small { margin-top: 10px; }
.m-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; }
.m-times span { display: flex; flex-direction: column; padding: 6px 9px; border-radius: 5px; background: var(--soft); }
.m-times b { font-weight: 500; }
.m-times small { color: var(--ink-2); font-size: 9px; }
.m-times span.on { background: var(--ink); color: #fff; }
.m-times span.on small { color: rgba(255, 255, 255, 0.7); }
.m-times span.off { background: none; box-shadow: inset 0 0 0 1px var(--hair); color: rgba(27, 26, 24, 0.35); }
.m-figures { display: flex; gap: 28px; margin: 0 0 16px; }
.m-figures b { display: block; font-size: 16px; font-weight: 500; }
.m-figures small { color: var(--ink-2); }
.m-hm { border-collapse: separate; border-spacing: 3px; width: 100%; }
.m-hm th { font-weight: 400; color: var(--ink-2); text-align: left; padding-right: 6px; }
.m-hm td { text-align: center; height: 26px; border-radius: 4px; }
.m-hm td.full { background: var(--ink); color: #fff; }
.m-field { display: flex; flex-direction: column; gap: 3px; margin: 0 0 10px; }
.m-field small { color: var(--ink-2); }
.m-field span { padding: 7px 10px; border: 1px solid var(--hair); border-radius: 6px; }
.m-field.short span { width: 64px; }
.m-radios { display: flex; gap: 14px; margin: 0 0 12px; }
.m-radios span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-2); margin-right: 5px; vertical-align: -1px; }
.m-radios span.on::before { box-shadow: inset 0 0 0 3px var(--ink); }
.m-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; }
.m-actions span { padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; }
.m-actions span.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }

/* two brands, two looks: the same booking page in different themes */
.m-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.m-theme { border-radius: 12px; padding: 26px 20px 22px; box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -30px rgba(27, 26, 24, 0.35); font-size: 11px; }
.m-theme .m-brand { margin: 0 0 22px; letter-spacing: 0.18em; font-size: 10px; height: 16px; line-height: 16px; }
.m-theme .m-ev { font-size: 19px; margin: 0 0 16px; height: 24px; line-height: 24px; white-space: nowrap; }
.m-theme .m-times { grid-template-columns: repeat(3, 1fr); margin: 0 0 16px; }
/* Fixed heights so the two brands' rows line up although their fonts differ. */
.m-theme .m-times span { height: 28px; padding: 0; align-items: center; justify-content: center; }
.m-theme .m-times b { line-height: 1; }
.m-theme .m-btn { display: flex; align-items: center; justify-content: center; height: 32px; padding: 0; line-height: 1; }
.m-theme.a { background: #f4eee4; color: #3b2f26; font-family: "EB Garamond", "Shippori Mincho", serif; }
.m-theme.a .m-times span { background: rgba(59, 47, 38, 0.07); border-radius: 0; text-align: center; }
.m-theme.a .m-times span.on, .m-theme.a .m-btn { background: #3b2f26; color: #f4eee4; }
.m-theme.b { background: #27322d; color: #e8e4d9; font-family: "Jost", "Zen Kaku Gothic New", sans-serif; }
.m-theme.b .m-brand { letter-spacing: 0.04em; font-size: 12px; }
.m-theme.b .m-times span { background: rgba(232, 228, 217, 0.1); border-radius: 999px; text-align: center; }
.m-theme.b .m-times span.on, .m-theme.b .m-btn { background: #e8e4d9; color: #27322d; }
.m-theme.b .m-btn { border-radius: 999px; }

/* pricing */
.pricing { padding: 88px 0; border-top: 1px solid var(--hair); }
.price-grid { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 860px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price { display: flex; flex-direction: column; border-radius: 16px; padding: 28px 26px; box-shadow: 0 0 0 1px var(--hair); }
.price.on { box-shadow: 0 0 0 1px var(--ink); background: rgba(255, 255, 255, 0.5); }
.p-name { font-family: var(--logo); font-size: var(--xl); margin: 0 0 4px; }
.p-amount { font-family: var(--logo); font-size: 40px; line-height: 1.1; margin: 0; }
.p-amount small { font-family: var(--sans); font-size: var(--s); margin-left: 4px; color: var(--ink-2); }
.p-note { color: var(--ink-2); margin: 4px 0 20px; }
.p-price { margin: 0 0 16px; }
.p-price .p-amount { white-space: nowrap; }
.p-sub { color: var(--ink-2); margin: 6px 0 0; }
.p-fine { color: var(--ink-2); font-size: 11px; line-height: 1.6; margin: -12px 0 16px; }
.price ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price li { padding: 7px 0; border-top: 1px solid var(--hair); }
.price .soon { margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-family: var(--sans); font-size: 11px; vertical-align: middle; }
.soon-card .btn { color: var(--ink-2); cursor: default; }
.soon-card .btn:hover { border-color: var(--hair); }

/* sample: an event page told with a key visual and a few lines */
.m-story { display: grid; grid-template-columns: 5fr 6fr; min-height: 300px; }
.m-visual { background: url("/features/greenhouse-s.jpg") center / cover; }
.m-copy { padding: 26px 24px; }
.m-brand-s { letter-spacing: 0.14em; color: var(--ink-2); font-size: 10px; margin: 0 0 18px; }
.m-lead { color: var(--ink-2); margin: 0 0 10px; }
.m-text { margin: 0 0 4px; }
.m-list { list-style: none; padding: 0; margin: 0 0 14px; }
.m-list li::before { content: "・"; }
.m-meta { margin: 0; padding-top: 10px; border-top: 1px solid var(--hair); }
.m-meta div { display: flex; gap: 10px; margin-top: 4px; }
.m-meta dt { color: var(--ink-2); min-width: 2.5em; }
.m-meta dd { margin: 0; }

/* which side of the service a sample shows: the customer's page or the admin */
.shot { margin: 0; }
.shot-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--ink-2); }
.shot-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-2); }
.shot-tag.admin::before { background: var(--ink); border-color: var(--ink); }
.mock-bar { align-items: center; }
.mock-bar .url { margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 10px; flex: 1; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock.admin { background: var(--paper); }
.mock-app { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
.m-rail { display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; border-right: 1px solid var(--hair); color: var(--ink-2); }
.m-rail .m-logo { font-family: var(--logo); font-size: 17px; color: var(--ink); margin: 0 0 12px; }
.m-rail span.on { color: var(--ink); background: var(--soft); border-radius: 5px; padding: 2px 6px; margin: 0 -6px; }
.mock.admin .m-field span { background: rgba(255, 255, 255, 0.6); }
.m-row { display: flex; gap: 8px; }
.m-row .m-field { flex: 1; }
.m-field span.sel::after { content: "⌄"; float: right; color: var(--ink-2); }
.m-cap { border-collapse: separate; border-spacing: 3px; }
.m-cap th { font-weight: 400; color: var(--ink-2); text-align: left; padding-right: 8px; }
.m-cap td span { display: inline-block; width: 46px; padding: 4px 0; text-align: center; border: 1px solid var(--hair); border-radius: 5px; background: rgba(255, 255, 255, 0.6); }
.m-cap td span.over { border-color: var(--ink); font-weight: 600; }
.m-cap td span.zero { color: var(--ink-2); background: transparent; border-style: dashed; }
.m-note { color: var(--ink-2); margin: 8px 0 0; font-size: 10px; }

/* phones: the reservation list keeps name, party and the time button; contact, wishes and memo open from the row */
@media (max-width: 600px) {
  .figures { gap: 16px 28px; }
  table.res-table { min-width: 0; }
  .res-table :is(th, td):nth-child(n+4):nth-child(-n+7) { display: none; }
  .res-table .act .btn { min-height: 28px; padding: 0 10px; }
  .res-table td { padding-right: 10px; }
  .page-head { margin-bottom: 24px; }
  main { padding-top: 24px; }
}

/* event editor: the form beside a live preview of the real booking page */
main:has(.editor) { max-width: none; }
.ed-top { display: flex; align-items: center; gap: 8px; margin: 0 0 18px -10px; }
.editor { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1180px) { .editor { grid-template-columns: minmax(0, 1fr) 400px; } }
.ed-card { background: rgba(255, 255, 255, 0.4); border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); padding: 26px 28px 22px; margin: 0 0 16px; }
.ed-card h2 { margin: 0 0 20px; }
.fld { margin: 0 0 20px; }
.fld-l { display: block; color: var(--ink); font-weight: 600; margin: 0 0 7px; }
.fld .help { margin-top: 6px; }
.ed-card > .help { display: block; margin: 8px 0 0; }

.kv { display: block; cursor: pointer; }
.kv-img { display: flex; align-items: center; justify-content: center; min-height: 160px; max-width: 360px; border-radius: 12px; background: var(--soft); overflow: hidden; border: 1px dashed var(--hair); }
.kv-img img { display: block; width: 100%; height: auto; }
.kv:hover .kv-img { border-color: var(--ink-2); }

.ed-preview { position: sticky; top: 24px; display: none; flex-direction: column; height: calc(100vh - 48px); border-radius: 18px; box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -36px rgba(27, 26, 24, 0.4); overflow: hidden; background: #fff; }
@media (min-width: 1180px) { .ed-preview { display: flex; } .ed-preview:not(.open) #pvClose { display: none; } }
.ed-preview.open { display: flex; position: fixed; inset: 16px; z-index: 45; height: auto; top: 16px; }
.icon-only { width: 40px; padding: 0; }
.pv-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--hair); background: var(--paper); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); }
.seg button { border: 0; background: none; padding: 4px 14px; border-radius: 999px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.pv-frame { flex: 1; min-height: 0; }
.pv-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* formatting bar: appears above selected text */
.fmt { position: fixed; z-index: 60; display: flex; gap: 2px; padding: 4px; border-radius: 10px; background: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.fmt[hidden] { display: none; }
.fmt button { min-width: 34px; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--paper); padding: 0 10px; }
.fmt button:hover { background: rgba(255, 255, 255, 0.14); }

/* paid features on the current plan: a small mark before anyone presses them */
.paid { margin-left: 6px; font-size: 11px; line-height: 1; color: #a87a2a; vertical-align: 1px; }
.btn:not(.ghost):not(.quiet) .paid { color: #f1dfb8; }

/* the description box carries its own image button */
.rich-box { position: relative; }
.rich-box textarea { padding-bottom: 40px; }
.icon-btn { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: none; color: var(--ink-2); }
.icon-btn:hover { background: var(--soft); color: var(--ink); }

/* plan purchase */
.plan-buy { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 620px; }
.plan-buy > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.plan-buy .amount { font-family: var(--logo); font-size: 30px; line-height: 1.1; }
.plan-buy .amount small { font-family: var(--sans); font-size: var(--s); color: var(--ink-2); }
.plan-buy .btn { margin-top: 8px; }

/* terms, privacy, 特商法: one readable column */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 32px 0; }
.legal header { padding-bottom: 56px; }
.legal main { padding: 0 0 72px; max-width: none; }
.legal h2 { font-family: var(--sans); font-weight: 600; font-size: var(--s); margin: 40px 0 8px; }
.legal ol, .legal ul { padding-left: 1.6em; margin: 0 0 12px; }
.legal li { margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); }
.legal th { font-weight: 500; white-space: nowrap; }
.legal table.kv th { width: 12em; white-space: normal; }
@media (max-width: 600px) {
  .legal { padding: 24px 16px 0; }
  .legal table.kv th, .legal table.kv td { display: block; width: auto; padding: 0; border: 0; }
  .legal table.kv tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hair); }
  .legal th { white-space: normal; }
}
.legal .lp-foot { padding-left: 0; padding-right: 0; flex-wrap: wrap; }

/* operator overview (/ops) */
.ops { max-width: 1280px; margin: 0 auto; padding: 28px 32px 80px; }
.ops header { gap: 14px; margin-bottom: 40px; align-items: baseline; }
.ops .block { margin-bottom: 56px; }
.ops-table th, .ops-table td { white-space: nowrap; padding-right: 16px; }
.ops-fb { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.ops-fb p { margin: 0 0 4px; }
@media (max-width: 760px) { .ops { padding: 20px 16px 60px; } }

/* first event: three steps and template buttons */
.first { max-width: 760px; padding: 8px 0 40px; }
.first h2 { margin-bottom: 20px; }
.first-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.first-steps li { counter-increment: step; display: grid; grid-template-columns: 28px 6em 1fr; gap: 10px; align-items: baseline; }
.first-steps li::before { content: counter(step); font-family: var(--logo); font-size: var(--l); line-height: 1; }
.first-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 16px; }
.tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 16px 18px; border: 0; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--hair); }
.tpl:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.tpl b { font-weight: 600; }
@media (max-width: 600px) { .first-steps li { grid-template-columns: 24px 1fr; } .first-steps li .muted { grid-column: 2; } }

/* top page: FAQ */
.faq { max-width: 760px; padding-top: 96px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); margin-bottom: 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 14px; color: var(--ink-2); font-size: 16px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 40em; }

/* phones: let the copy flow as one paragraph (the line breaks are for wide screens), and give the
   UI samples room — the admin samples drop their side menu and the story sample stacks. */
@media (max-width: 760px) {
  .lp p br, .lead-text br { display: none; }
  .lead-text .ph { display: inline; }
  .feat p > small { display: block; margin-top: 6px; }
  .mock-app { grid-template-columns: minmax(0, 1fr); }
  .m-rail { display: none; }
  .m-story { grid-template-columns: minmax(0, 1fr); }
  .m-visual { height: 150px; }
  .m-figures { gap: 18px; }
  .m-figures b { white-space: nowrap; }
}

.buy-terms { margin: 14px 0 0; padding-left: 1.2em; max-width: 620px; }
.buy-terms li { margin: 4px 0; }
.legal .table-wrap { overflow-x: auto; }
.legal table:not(.kv) th { white-space: normal; min-width: 7em; }
@media (max-width: 600px) {
  .legal table.stack tr.head { display: none; }
  .legal table.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .legal table.stack td { display: block; border: 0; padding: 2px 0; }
  .legal table.stack td::before { content: attr(data-label); display: block; color: var(--ink-2); font-size: 11px; margin-top: 6px; }
}
