@charset "UTF-8";

:root {
  --theme: #3f8570;
  --theme-deep: #2d6555;
  --theme-tint: #edf5f2;

  --ink: #21302c;
  --ink-soft: #5f6f6a;
  --ink-mute: #97a6a1;

  --line: #e9efec;
  --line-strong: #dbe4e0;
  --surface: #f6f9f7;
  --white: #ffffff;

  --warn: #c98828;
  --warn-tint: #fdf5e7;
  --danger: #d0503a;

  /* Capped at a 6.1" logical screen, leaving room for stage padding + bezel. */
  --screen-w: 375px;
  --screen-h: min(812px, calc(100dvh - 74px));
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #101917;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

button {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.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;
}

/* STAGE */

.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 5.5vw, 104px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 26px 20px;
  background:
    radial-gradient(900px 620px at 22% 24%, rgba(76, 138, 118, 0.3) 0%, rgba(16, 25, 23, 0) 62%),
    radial-gradient(760px 520px at 88% 84%, rgba(58, 96, 86, 0.34) 0%, rgba(16, 25, 23, 0) 60%),
    #101917;
}

/* showcase panel (desktop widths only) */

.showcase {
  display: none;
  flex: 0 1 480px;
  max-width: 480px;
  color: #e9f2ef;
}

.showcase__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #7fb8a5;
}

.showcase__title {
  margin-top: 14px;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.18;
}

.showcase__brand {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #9ccbba;
}

.showcase__lead {
  margin-top: 26px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 2.05;
  color: rgba(233, 242, 239, 0.76);
}

.showcase__points {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase__points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(233, 242, 239, 0.9);
}

.showcase__points span {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(156, 203, 186, 0.42);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9ccbba;
}

.showcase__note {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(156, 203, 186, 0.22);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.95;
  color: rgba(233, 242, 239, 0.46);
}

@media (min-width: 1024px) {
  .showcase {
    display: block;
  }
}

/* HANDSET */

.device {
  position: relative;
  flex: 0 0 auto;
  padding: 11px;
  border-radius: 56px;
  background: #0a0a0a;
  box-shadow: 0 0 0 2px #2b2b2d, 0 30px 70px rgba(0, 0, 0, 0.55);
}

.device__btn {
  position: absolute;
  width: 3px;
  background: #2b2b2d;
}

.device__btn--mute {
  left: -2px;
  top: 112px;
  height: 30px;
  border-radius: 3px 0 0 3px;
}

.device__btn--up {
  left: -2px;
  top: 168px;
  height: 54px;
  border-radius: 3px 0 0 3px;
}

.device__btn--down {
  left: -2px;
  top: 234px;
  height: 54px;
  border-radius: 3px 0 0 3px;
}

.device__btn--power {
  right: -2px;
  top: 196px;
  height: 90px;
  border-radius: 0 3px 3px 0;
}

.device__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: var(--screen-w);
  height: var(--screen-h);
  border-radius: 46px;
  background: var(--white);
}

.statusbar {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 26px 6px;
  color: #1a1a1a;
}

.statusbar__time {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.statusbar__icons {
  width: 66px;
  height: 12px;
  fill: currentColor;
}

.island {
  position: absolute;
  z-index: 10;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 33px;
  border-radius: 20px;
  background: #000;
}

.liff {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.liff__mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--theme);
}

.liff__name {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
}

.liff__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #a9b5b1;
}

.home-indicator {
  position: absolute;
  z-index: 30;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #111;
  opacity: 0.9;
}

/* APP SHELL */

.app {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--surface);
}

.screen.is-active {
  display: flex;
}

/* Only on navigation, so the home screen doesn't slide in over itself on first paint. */
.screen.is-entering {
  animation: slideIn 0.26s ease;
}

.appbar {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
}

.appbar__back {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.appbar__back svg {
  width: 10px;
  height: 18px;
}

.appbar__title {
  font-size: 16px;
  font-weight: 700;
}

.appbar__step {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.appbody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 22px;
}

.appbody--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 24px;
  text-align: center;
}

.appfoot {
  flex: 0 0 auto;
  padding: 12px 16px 24px;
  background: var(--white);
  border-top: 1px solid var(--line-strong);
}

.appfoot--stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-primary {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--theme);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(63, 133, 112, 0.28);
  transition: transform 0.16s ease;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:disabled {
  background: #e3eae7;
  color: #a9b5b1;
  box-shadow: none;
  cursor: default;
}

.btn-primary:disabled:active {
  transform: none;
}

.btn-ghost {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.16s ease;
}

.btn-ghost:active {
  opacity: 0.5;
}

.lede {
  margin-bottom: 14px;
  padding: 0 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.note {
  margin-top: 10px;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: #a9b5b1;
}

.section-label {
  margin: 24px 2px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.section-label:first-child {
  margin-top: 0;
}

/* MENU TILE — the stand-in for photography */

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--tone, #4f8f78);
  background-image:
    linear-gradient(150deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.34) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.tile__glyph {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: 60%;
  height: auto;
  fill: #fff;
  opacity: 0.26;
}

.tile--row {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
}

.tile--sm {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.tile--card {
  width: 100%;
  height: 96px;
  border-radius: 12px 12px 0 0;
}

.tile--card .tile__glyph {
  right: 2%;
  bottom: -22%;
  width: 40%;
}

/* Used only when a menu is given a real photo in main.js. */
.tile--photo {
  background-size: cover;
  background-position: center;
  box-shadow: none;
}

/* HOME */

.homebody {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 30px;
  scrollbar-width: none;
}

.homebody::-webkit-scrollbar {
  display: none;
}

/* `background-color` is the catch basin if the hot-linked photo fails to load. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 58px;
  background-color: #2c5b4d;
  background-image:
    radial-gradient(120% 90% at 84% 6%, rgba(178, 214, 199, 0.34) 0%, rgba(178, 214, 199, 0) 60%),
    linear-gradient(200deg, rgba(77, 148, 128, 0.66) 0%, rgba(30, 68, 56, 0.86) 100%),
    url("https://images.unsplash.com/photo-1776886099265-6366478b341b?auto=format&fit=crop&w=750&q=70");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero__hello {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

.hero__name {
  margin-top: 4px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__name small {
  margin-left: 5px;
  font-size: 14px;
  font-weight: 500;
}

.hero__avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.hero__avatar svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.hero__badges {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 600;
}

.hero__badges svg {
  width: 13px;
  height: 13px;
  fill: #f2cf7a;
}

/* Positioned so it paints above the (also positioned) hero, not underneath. */
.homecards {
  position: relative;
  z-index: 1;
  margin-top: -44px;
  padding: 0 16px;
}

.nextcard {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 56, 46, 0.1);
}

.nextcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nextcard__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--theme);
}

.nextcard__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme);
}

.nextcard__count {
  padding: 4px 11px;
  border-radius: 12px;
  background: var(--theme-tint);
  color: var(--theme-deep);
  font-size: 11.5px;
  font-weight: 700;
}

.nextcard__when {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nextcard__when small {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.nextcard__menu {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface);
}

.nextcard__menu-body {
  flex: 1;
  min-width: 0;
}

.nextcard__menu-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
}

.nextcard__menu-staff {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
}

.nextcard__acts {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.nextcard__acts button {
  flex: 1;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.nextcard__acts button:active {
  transform: scale(0.97);
}

.nextcard__acts button.is-primary {
  border-color: var(--theme);
  color: var(--theme);
}

.nextcard--empty {
  text-align: center;
}

.nextcard__empty {
  padding: 12px 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
}

.cta {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  border-radius: 15px;
  background: var(--theme);
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(63, 133, 112, 0.3);
  transition: transform 0.16s ease;
}

.cta:active {
  transform: scale(0.98);
}

.cta svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.quick button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 2px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: transform 0.16s ease;
}

.quick button:active {
  transform: scale(0.95);
}

.quick__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--theme-tint);
}

.quick__icon svg {
  width: 16px;
  height: 16px;
  fill: var(--theme);
}

.quick__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.home-section {
  margin-top: 26px;
  padding: 0 16px;
}

.home-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.home-section__title {
  font-size: 15.5px;
  font-weight: 700;
}

.home-section__more {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
}

.reco {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 2px 16px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reco::-webkit-scrollbar {
  display: none;
}

.reco button {
  flex: 0 0 auto;
  width: 152px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  scroll-snap-align: start;
  text-align: left;
  transition: transform 0.16s ease;
}

.reco button:active {
  transform: scale(0.97);
}

.reco__body {
  display: block;
  padding: 10px 11px 12px;
}

.reco__name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.reco__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.reco__time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-mute);
}

.reco__time svg {
  width: 11px;
  height: 11px;
  fill: var(--ink-mute);
}

.reco__price {
  font-size: 14px;
  font-weight: 800;
  color: var(--theme);
}

.history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.history__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  text-align: left;
}

.history__body-wrap {
  display: block;
  flex: 1;
  min-width: 0;
}

.history__date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
}

.history__name {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
}

.history__chev {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  color: #b6c2be;
  transition: transform 0.24s ease;
}

.history__item.is-open .history__chev {
  transform: rotate(180deg);
}

.history__detail {
  padding: 0 14px 14px;
  animation: fadeIn 0.22s ease;
}

.history__detail-inner {
  padding: 12px 13px;
  border-radius: 11px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-soft);
}

.shopfoot {
  margin: 26px 16px 0;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.shopfoot__name {
  font-size: 15px;
  font-weight: 700;
}

.shopfoot__line {
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
}

.shopfoot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme);
}

.shopfoot__link svg {
  width: 13px;
  height: 13px;
  fill: var(--theme);
}

.homenote {
  margin: 16px 18px 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  color: #b0bcb8;
}

/* PICKERS — menu / staff selection rows */

.picks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pick {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  transition: all 0.18s ease;
}

.pick.is-on {
  border-color: var(--theme);
  background: var(--theme-tint);
}

.pick:active {
  transform: scale(0.98);
}

.pick__body {
  display: block;
  flex: 1;
  min-width: 0;
}

.pick__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pick__name {
  font-size: 15px;
  font-weight: 700;
}

.pick__dur {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pick.is-on .pick__dur {
  background: rgba(255, 255, 255, 0.75);
}

.pick__desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-mute);
}

.pick__price {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--theme);
}

.pick__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #cfdad6;
  border-radius: 50%;
  background: var(--white);
  transition: all 0.18s ease;
}

.pick__check svg {
  width: 11px;
  height: 11px;
  fill: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pick.is-on .pick__check {
  border-color: var(--theme);
  background: var(--theme);
}

.pick.is-on .pick__check svg {
  opacity: 1;
}

.avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tone, #4f8f78);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.avatar--sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--warn);
}

.rating svg {
  width: 12px;
  height: 12px;
  fill: var(--warn);
}

/* DATE & TIME */

.daterail {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.daterail::-webkit-scrollbar {
  display: none;
}

.datechip {
  flex: 0 0 auto;
  width: 52px;
  padding: 8px 0 9px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  scroll-snap-align: center;
  text-align: center;
  transition: all 0.18s ease;
}

.datechip__dow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
}

.datechip__day {
  display: block;
  margin-top: 2px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.datechip--sat .datechip__dow,
.datechip--sat .datechip__day {
  color: #3d7aa8;
}

.datechip--sun .datechip__dow,
.datechip--sun .datechip__day {
  color: #cc5b52;
}

.datechip.is-on,
.datechip.is-on .datechip__dow,
.datechip.is-on .datechip__day {
  border-color: var(--theme);
  background: var(--theme);
  color: #fff;
}

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 2px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--white);
}

.legend i.is-few {
  border-color: #edd6a8;
  background: var(--warn-tint);
}

.legend i.is-full {
  border-color: #e2e8e5;
  background: #eef1f0;
}

.slot-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 10px;
  font-size: 13.5px;
  font-weight: 700;
}

.slot-head svg {
  width: 14px;
  height: 14px;
  fill: var(--theme);
}

.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.slot {
  padding: 10px 2px;
  border: 1.5px solid #cde0d9;
  border-radius: 11px;
  background: var(--white);
  color: var(--theme);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
}

.slot:active {
  transform: scale(0.95);
}

.slot--few {
  border-color: #edd6a8;
  background: var(--warn-tint);
  color: var(--warn);
}

.slot__few {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 700;
}

.slot--full {
  border-color: #e6ebe9;
  background: #eef1f0;
  color: #b4c0bc;
  cursor: default;
}

.slot--full:active {
  transform: none;
}

.slot.is-on {
  border-color: var(--theme);
  background: var(--theme);
  color: #fff;
}

/* CARDS / SUMMARY rows */

.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.card + .card {
  margin-top: 14px;
}

.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kv + .kv {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.kv__k {
  flex: 0 0 auto;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.kv__v {
  text-align: right;
  font-size: 15px;
  font-weight: 600;
}

.kv__v--accent {
  font-size: 20px;
  font-weight: 800;
  color: var(--theme);
}

.field {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.field + .field {
  margin-top: 10px;
}

.field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
}

.field__value {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field__note {
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
}

.textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.7;
  resize: none;
}

.textarea::placeholder {
  color: #b0bcb8;
}

.textarea:focus {
  outline: none;
  border-color: var(--theme);
  background: var(--white);
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--theme-tint);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-soft);
}

.callout svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  fill: var(--theme);
}

/* MAP — a CSS stand-in for an embedded map */

.map {
  position: relative;
  overflow: hidden;
  height: 108px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 2px, rgba(0, 0, 0, 0) 2px 46px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 2px, rgba(0, 0, 0, 0) 2px 38px),
    linear-gradient(150deg, #eef1ee 0%, #e4eae6 100%);
}

.map::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 46%;
  width: 130%;
  height: 12px;
  background: #fff;
  transform: rotate(-7deg);
}

.map::after {
  content: "";
  position: absolute;
  left: 58%;
  top: -20%;
  width: 10px;
  height: 140%;
  background: #fff;
  transform: rotate(9deg);
}

.map__pin {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(63, 133, 112, 0.16);
}

.map__pin svg {
  width: 17px;
  height: 17px;
  fill: var(--theme);
}

.map__tag {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* COMPLETE */

.done__check {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--theme);
  animation: checkPop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.done__check svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.done__title {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 700;
}

.done__sub {
  margin-bottom: 22px;
  font-size: 13.5px;
  font-weight: 400;
  color: #8b9a95;
}

.slip {
  width: 100%;
  padding: 16px;
  border: 1px solid #cfe3db;
  border-radius: 18px;
  background: var(--theme-tint);
  text-align: left;
}

.slip__when {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.slip__menu {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.slip__staff {
  margin-top: 3px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-soft);
}

.remind {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft);
}

.remind svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: var(--theme);
}

/* LINE TALK */

.screen--talk {
  background: #8caace;
}

.talkbar {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #3a4a5a;
  color: #fff;
}

.talkbar__back {
  width: 30px;
  height: 30px;
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.talkbar__back svg {
  width: 10px;
  height: 18px;
}

.talkbar__avatar,
.msg__avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.talkbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.talkbar__name {
  font-size: 16px;
  font-weight: 600;
}

.talkbody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px;
}

.talkfoot {
  padding-top: 8px;
  padding-bottom: 16px;
}

.talk__day {
  margin-bottom: 16px;
  text-align: center;
}

.talk__day span {
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 12px;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.msg__avatar {
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border-radius: 50%;
}

.msg__body {
  min-width: 0;
  max-width: 78%;
}

.msg__from {
  margin: 0 0 4px 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.msg__bubble {
  padding: 12px 14px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  animation: msgPop 0.3s ease;
}

.msg__time {
  margin: 5px 0 0 4px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.8);
}

.typing {
  display: flex;
  gap: 5px;
  align-items: center;
  width: max-content;
  padding: 14px 16px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c2ccc8;
  animation: dotBounce 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.typing span:nth-child(3) {
  animation-delay: 0.36s;
}

.bcard {
  width: 216px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  animation: msgPop 0.3s ease;
}

.bcard__head {
  padding: 13px 14px 12px;
}

.bcard__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--theme);
}

.bcard__when {
  margin-top: 6px;
  font-size: 15.5px;
  font-weight: 800;
}

.bcard__menu {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3c4a46;
}

.bcard__staff {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

.bcard__map {
  height: 74px;
  border-radius: 0;
}

.bcard__acts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.bcard__acts button {
  padding: 11px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme);
}

.bcard__acts button + button {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

/* BOTTOM SHEETS */

.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
}

.sheet-layer[hidden] {
  display: none;
}

.sheet-layer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  animation: fadeIn 0.2s ease;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: 90%;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  animation: sheetUp 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-layer.is-closing .sheet {
  animation: sheetDown 0.24s ease forwards;
}

.sheet-layer.is-closing .sheet-layer__scrim {
  animation: fadeOut 0.24s ease forwards;
}

.sheet__grip {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 10px 0 2px;
}

.sheet__grip span {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #dde5e2;
}

.sheet__title {
  flex: 0 0 auto;
  padding: 8px 20px 4px;
  font-size: 17px;
  font-weight: 700;
}

.sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 20px 4px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-soft);
}

.sheet__foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 24px;
  border-top: 1px solid var(--line);
}

.btn-danger {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--danger);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  transition: transform 0.16s ease;
}

.btn-danger:active {
  transform: scale(0.97);
}

/* ticket sheet */

.ticket {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(150deg, #4d9480 0%, #2c5b4d 100%);
  color: #fff;
}

.ticket::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -46px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.ticket__label {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.82);
}

.ticket__count {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.ticket__count strong {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.ticket__count span {
  font-size: 14px;
  font-weight: 600;
}

.ticket__meta {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.sheet-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sheet-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.75;
}

.sheet-list svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  fill: var(--theme);
}

/* LOADING */

.loading {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  animation: fadeIn 0.2s ease;
}

.loading[hidden] {
  display: none;
}

.loading__spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2ebe7;
  border-top-color: var(--theme);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading__text {
  font-size: 15px;
  font-weight: 600;
  color: #8b9a95;
}

/* KEYFRAMES */

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes sheetDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes msgPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dotBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes checkPop {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  60% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* FULL-BLEED — how the app opens on a real handset, without the mock frame. */

@media (max-width: 520px) {
  :root {
    --screen-w: 100%;
    --screen-h: 100dvh;
  }

  .stage {
    padding: 0;
    background: var(--surface);
  }

  .device {
    width: 100%;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .device__btn,
  .island,
  .home-indicator {
    display: none;
  }

  .device__screen {
    border-radius: 0;
  }

  .statusbar {
    height: 38px;
    padding-bottom: 4px;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .appfoot,
  .sheet__foot {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
