/* Café et Otium – style.css (v3: warmer, more decorative, photo menu pages) */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;1,400&family=Karla:wght@400;600&display=swap");

:root {
  --bg: #e6ede1;
  --paper: #fbf8f3;
  --cream: #f3ece1;
  --ink: #3a2b24;
  --soft: #7a6a5f;
  --line: #ddd0c0;
  --matcha: #5e7a58;
  --sage: #8aa583;
  --latte: #d9bfa3;
  --shadow: 0 10px 28px rgba(58, 43, 36, .10);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

/* ---------- page background: soft glows + coffee-bean pattern ---------- */
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(217, 191, 163, .55), transparent 38%),
    radial-gradient(circle at 95% 55%, rgba(138, 165, 131, .35), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%238a7560' stroke-opacity='.22' stroke-width='1.6'%3E%3Cg transform='translate(30 34) rotate(-28)'%3E%3Cellipse rx='11' ry='16'/%3E%3Cpath d='M0-14C-5-5 5 5 0 14'/%3E%3C/g%3E%3Cg transform='translate(100 98) rotate(35)'%3E%3Cellipse rx='11' ry='16'/%3E%3Cpath d='M0-14C-5-5 5 5 0 14'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, .brand, legend, caption {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: 2.1rem; margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 0 0 12px; }
h3 { font-size: 1.2rem; margin: 10px 0 4px; }
a { color: var(--matcha); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- header and navigation (Flexbox) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 4px double var(--latte);
}
.brand { font-size: 1.7rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand em { color: var(--matcha); font-style: italic; }

.main-nav ul, .subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.main-nav a, .subnav a {
  display: block;
  padding: 6px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.main-nav a:hover, .main-nav a.active { background: var(--matcha); border-color: var(--matcha); color: #fff; }
.subnav { margin-bottom: 28px; }
.subnav a { border-color: var(--line); background: var(--paper); font-size: .95rem; box-shadow: 0 2px 6px rgba(58, 43, 36, .06); }
.subnav a:hover, .subnav a.active { background: var(--latte); border-color: var(--latte); transform: translateY(-1px); }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 28px 20px 80px; }

/* page titles: centered with a wavy underline */
main > h1 { text-align: center; font-size: 2.3rem; }
main > h1::after {
  content: "";
  display: block;
  width: 130px;
  height: 14px;
  margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='14' viewBox='0 0 130 14'%3E%3Cpath d='M0 7 Q8 0 16 7 T32 7 T48 7 T64 7 T80 7 T96 7 T112 7 T128 7' fill='none' stroke='%235e7a58' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}
main > h1 + p { text-align: center; color: var(--soft); max-width: 52ch; margin: 14px auto 28px; }

/* section headings get a small latte bar */
h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--latte);
  margin-top: 8px;
}
.highlights > h2 { text-align: center; }
.highlights > h2::after { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 6px solid var(--paper);
  outline: 1.5px solid var(--latte);
}
.hero-text { padding: 24px; }
.hero-text h1 { font-size: 2.2rem; }
.hero-text p { color: var(--soft); font-size: 1.1rem; }

.button {
  display: inline-block;
  padding: 11px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--matcha);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(94, 122, 88, .35);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.button:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 18px rgba(58, 43, 36, .25); }
.button.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.button.ghost:hover { background: var(--latte); }

/* ---------- card grid (CSS Grid) ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
.card {
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  padding-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(58, 43, 36, .16); }
.card img { width: 100%; transition: transform .5s; }
.card:hover img { transform: scale(1.06); }
.card h3, .card p, .card a, .card h2, .card ul { margin-left: 20px; margin-right: 20px; }
.text-card { padding-top: 20px; }
.text-card .price { font-family: var(--serif); font-size: 1.5rem; color: var(--matcha); margin-top: 0; }

/* ---------- menu-card style panels ---------- */
.two-col { display: grid; grid-template-columns: 1fr; gap: 30px; }
.two-col > article, .two-col > aside, .two-col > section, .two-col > figure, .two-col > form {
  position: relative;
  background: var(--paper);
  border-radius: 24px;
  padding: 30px;
  margin: 0;
  box-shadow: var(--shadow);
  outline: 1.5px dashed var(--latte);
  outline-offset: -12px;
}

/* ---------- quote band and feature strip (home page) ---------- */
.quote-band {
  position: relative;
  margin: 0 0 48px;
  padding: 48px 28px;
  text-align: center;
  color: var(--cream);
  border-radius: 26px;
  background-color: var(--ink);
  background-image: radial-gradient(circle at 85% 20%, rgba(138, 165, 131, .35), transparent 45%);
  box-shadow: var(--shadow);
}
.quote-band p { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin: 0 auto; max-width: 30ch; }
.quote-band span { display: block; margin-top: 14px; font-size: .95rem; color: var(--latte); }
.quote-band::before { content: "\201C"; display: block; font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--sage); }

.features { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; text-align: center; }
.features div { padding: 8px 12px; }
.features .icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  font-size: 1.7rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--latte);
  box-shadow: 0 0 0 6px rgba(217, 191, 163, .3);
}
.features h3 { margin-top: 0; }
.features p { margin: 0; color: var(--soft); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-size: 1.2rem; padding: 4px 4px 12px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink); color: var(--cream); font-weight: 600; }
thead th:first-child { border-top-left-radius: 12px; }
thead th:last-child { border-top-right-radius: 12px; }
tbody tr:nth-child(even) { background: rgba(217, 191, 163, .16); }
tbody tr:hover { background: rgba(138, 165, 131, .2); }
td.price { white-space: nowrap; font-weight: 600; color: var(--matcha); }
.hours thead th { background: var(--latte); color: var(--ink); }
.hours th, .hours td { padding: 9px 8px; }

/* ---------- forms ---------- */
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 1.4rem; padding: 0; margin-bottom: 8px; }
label, .label { display: block; margin: 14px 0 5px; font-weight: 600; }
label.inline { display: inline-block; margin: 6px 16px 6px 0; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--matcha); box-shadow: 0 0 0 4px rgba(94, 122, 88, .2); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-row > div { min-width: 0; }
iinput[type="date"], input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  overflow: hidden;
  text-align: left;
}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value { text-align: left; }
/* date box sits in a frame that draws the border, so Safari cannot push it past the edge */
.date-wrap { width: 100%; overflow: hidden; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.date-wrap:focus-within { border-color: var(--matcha); box-shadow: 0 0 0 4px rgba(94, 122, 88, .2); }
.date-wrap input[type="date"] { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.date-wrap input[type="date"]:focus { border: 0; box-shadow: none; }
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- misc ---------- */
.branch-list { list-style: none; padding: 0; margin: 0; }
.branch-list li { padding: 14px 0; border-bottom: 1px dotted var(--soft); }
.branch-list li:last-child { border-bottom: 0; }
.branch-list li:target { background: var(--latte); padding-left: 14px; border-radius: 10px; }
figure img { border-radius: 14px; }
figure figcaption { color: var(--soft); font-size: .92rem; margin-top: 10px; text-align: center; }
dt { font-family: var(--serif); font-size: 1.15rem; margin-top: 14px; color: var(--matcha); }
dd { margin: 2px 0 0; color: var(--soft); }
address { font-style: normal; }
ol, ul { padding-left: 22px; }
li::marker { color: var(--matcha); }

/* ---------- footer: espresso with a wavy top edge ---------- */
.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  padding: 36px 20px 30px;
  background: var(--ink);
  color: #e9dfd2;
  text-align: center;
  font-size: .95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C100 4 200 4 300 22S500 40 600 22 800 4 900 22 1100 40 1200 22V40Z' fill='%233a2b24'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}
.site-footer a { color: var(--latte); }
.site-footer p { margin: 0; color: var(--sage); }

/* ---------- tablet: 768px and up ---------- */
@media (min-width: 768px) {
  .site-header { flex-direction: row; justify-content: space-between; padding: 14px 40px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 3fr 2fr; align-items: start; }
  .hero { display: grid; }
  .hero img, .hero-text { grid-area: 1 / 1; }
  .hero-text {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 62%;
    padding: 40px 48px;
    background: linear-gradient(90deg, rgba(251, 248, 243, .95) 55%, rgba(251, 248, 243, 0));
  }
  .site-footer { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; padding: 36px 40px 30px; }
}

/* ---------- desktop: 1024px and up ---------- */
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.5rem; }
  main > h1 { font-size: 2.7rem; }
  .hero-text h1 { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- menu pages: photo banner ---------- */
.menu-hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; margin-bottom: 44px; }
.menu-photo {
  position: relative;
  margin: 0 8px;
  padding: 10px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 18px 36px rgba(58, 43, 36, .22);
  transform: rotate(-1.5deg);
}
.menu-photo img { width: 100%; border-radius: 2px; }
.menu-photo::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 28px;
  margin-left: -55px;
  background: rgba(217, 191, 163, .78);
  transform: rotate(3deg);
  box-shadow: 0 2px 4px rgba(58, 43, 36, .12);
}
.menu-intro .badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--latte);
  font-weight: 600;
  font-size: .9rem;
}
.menu-intro h1 { font-size: 2.6rem; margin-bottom: 10px; }
.menu-intro h1::after { content: ""; display: block; width: 60px; height: 3px; border-radius: 3px; background: var(--latte); margin-top: 12px; }
.menu-intro p { color: var(--soft); margin: 0; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 14px; border: 1.5px dashed var(--matcha); border-radius: 999px; color: var(--matcha); font-size: .92rem; }

/* menu board: linen texture + serif item names */
.menu-table tbody th, .menu-table td.price { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.menu-table td.price { font-weight: 600; }
.table-wrap { background-image: repeating-linear-gradient(45deg, rgba(217, 191, 163, .12) 0 2px, transparent 2px 9px); }
.menu-note { color: var(--soft); font-size: .92rem; text-align: center; margin: 16px 0 0; }

.menu-cta { margin-top: 44px; padding: 34px 24px; text-align: center; border-radius: 26px; background: var(--ink); color: var(--cream); box-shadow: var(--shadow); }
.menu-cta p { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 16px; }
.menu-cta .button { background: var(--sage); color: var(--ink); box-shadow: none; }
.menu-cta .button:hover { background: var(--latte); }

@media (min-width: 768px) {
  .menu-hero { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .menu-hero.flip .menu-photo { order: 2; transform: rotate(1.5deg); }
  .menu-intro h1 { font-size: 3rem; }
}
/* ---------- forms: spam trap + thank-you receipt ---------- */
.hp { display: none; }

.thanks { max-width: 640px; margin: 0 auto; text-align: center; }
.thanks > h1 { text-align: center; }
.thanks > h1::after {
  content: "";
  display: block;
  width: 130px;
  height: 14px;
  margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='14' viewBox='0 0 130 14'%3E%3Cpath d='M0 7 Q8 0 16 7 T32 7 T48 7 T64 7 T80 7 T96 7 T112 7 T128 7' fill='none' stroke='%235e7a58' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}
.thanks > p { color: var(--soft); }

.receipt {
  margin: 28px 0;
  padding: 26px 24px;
  text-align: left;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow);
  outline: 1.5px dashed var(--latte);
  outline-offset: -12px;
}
.receipt[hidden] { display: none; }
.receipt h2 { margin-bottom: 4px; }
.receipt-time { margin: 0 0 12px; color: var(--soft); font-size: .92rem; }
.receipt-table th, .receipt-table td { padding: 9px 6px; border-bottom: 1px dotted var(--soft); vertical-align: top; }
.receipt-table th { width: 36%; font-weight: 600; }
.receipt-table tr:last-child th, .receipt-table tr:last-child td { border-bottom: 0; }
.receipt-note { margin: 14px 0 0; color: var(--soft); font-size: .9rem; text-align: center; }
/* ---------- notice shown if someone tries to send a form while offline ---------- */
.form-offline { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--latte); color: var(--ink); font-size: .95rem; }
.form-offline[hidden] { display: none; }
/* ---------- reservation policy page + link in the booking form ---------- */
.policy { max-width: 720px; margin: 0 auto; }
.policy h1 { margin-bottom: 4px; }
.policy h2 { margin-top: 28px; font-size: 1.25rem; }
.policy-updated { color: var(--soft); margin-top: 0; }
.policy-actions { margin-top: 32px; }
label.inline a { color: var(--matcha); font-weight: 600; text-decoration: underline; }
.new-tab { color: var(--soft); font-size: .85rem; }

/* ---------- "we also emailed you" line on the thank-you page ---------- */
.email-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--cream); color: var(--ink); font-size: .95rem; text-align: center; }
.email-note[hidden] { display: none; }

/* ---------- staff reservation page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin { max-width: 1100px; margin: 0 auto; }
.admin [hidden] { display: none !important; }
.admin-card { max-width: 440px; margin: 20px auto; padding: 26px 24px; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); }
.admin-card h2 { margin-top: 0; }
.admin input[type="password"], .admin input[type="search"] {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
}
.admin input:focus { outline: none; border-color: var(--matcha); box-shadow: 0 0 0 4px rgba(94, 122, 88, .2); }
.admin-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #f6dcd6; color: #7a2e22; font-size: .95rem; }
.admin-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--latte); font-size: .95rem; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.admin-summary { margin: 0; color: var(--soft); }
.admin-bar-buttons { display: flex; gap: 10px; }
.admin-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.admin-controls label { margin-top: 0; }
.admin-controls select { width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .95rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin-table thead th { background: var(--latte); position: sticky; top: 0; }
.admin-table .col-date { white-space: nowrap; font-weight: 600; }
.admin-table .col-notes { min-width: 140px; }
.admin-table .chip { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--matcha); color: #fff; font-size: .78rem; font-weight: 600; }
.admin-empty { text-align: center; color: var(--soft); padding: 24px 0; }
/* ---------- quiet staff link in the footer ---------- */
.staff-link { margin-left: 10px; font-size: .8rem; color: var(--soft); opacity: .6; text-decoration: none; }
.staff-link:hover, .staff-link:focus { opacity: 1; text-decoration: underline; }
/* ---------- booking rules: messages, QR pass, ticket page ---------- */
.hint { margin: 6px 0 0; color: var(--soft); font-size: .92rem; min-height: 1.2em; }
.form-error { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #f6dcd6; color: #7a2e22; font-size: .98rem; }
.form-error[hidden] { display: none; }

.pass { margin: 28px 0; padding: 26px 24px; text-align: center; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); }
.pass h2 { margin-top: 0; }
.qr { display: flex; justify-content: center; margin: 16px 0; min-height: 40px; }
.qr[hidden] { display: none; }
.qr img, .qr canvas { background: #fff; padding: 10px; border-radius: 12px; }

.ticket { margin: 24px auto; max-width: 380px; padding: 26px 22px; text-align: center; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); border-top: 8px solid var(--matcha); }
.ticket[hidden] { display: none; }
.ticket-status { margin: 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--matcha); }
.ticket-when { margin: 6px 0 0; font-weight: 600; }
.ticket-missed { border-top-color: #b5483a; }
.ticket-missed .ticket-status { color: #b5483a; }
.ticket-cancelled { border-top-color: var(--soft); }
.ticket-cancelled .ticket-status { color: var(--soft); }

/* ---------- staff page: tabs, status marks, buttons, records ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 8px 18px; font: inherit; font-weight: 600; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.tab.active { background: var(--latte); border-color: var(--latte); }
.tab[hidden] { display: none; }

.col-status { white-space: nowrap; font-weight: 700; font-size: 1.15rem; }
.st-checked_in { color: #2f7a3a; }
.st-missed { color: #b5483a; }
.st-cancelled { color: var(--soft); font-size: .9rem; font-weight: 600; text-decoration: line-through; }
.st-booked { color: var(--soft); }
.chip-soft { display: block; margin: 4px 0 0; background: var(--cream); color: var(--ink); font-size: .72rem; font-weight: 600; }
.admin-table .chip-soft { margin-left: 0; }

.col-actions { white-space: nowrap; }
.mini { margin: 0 6px 6px 0; padding: 5px 12px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.mini:hover:not(:disabled) { background: var(--latte); border-color: var(--latte); }
.mini.danger { color: #7a2e22; }
.mini.danger:hover:not(:disabled) { background: #f6dcd6; border-color: #f6dcd6; }
.mini:disabled { opacity: .45; cursor: not-allowed; }
.mini-note { display: block; color: var(--soft); font-size: .8rem; }

.checkin-result { margin: 0 0 18px; padding: 18px 20px; border-radius: 18px; text-align: center; border: 2px solid var(--line); background: var(--paper); }
.checkin-result[hidden] { display: none; }
.checkin-title { margin: 0 0 4px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.checkin-ok { border-color: #2f7a3a; background: #e3f1e2; }
.checkin-bad { border-color: #b5483a; background: #f6dcd6; }
.checkin-warn { border-color: #c79a3a; background: #f7ecd2; }

.report-banner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 18px; padding: 14px 18px; border-radius: 18px; background: var(--latte); }
.report-banner[hidden] { display: none; }
.report-banner p { margin: 0; font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 20px; }
.stat { min-width: 0; padding: 14px 12px; text-align: center; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); }
.stat-value { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.stat-value.word { font-size: 1.35rem; padding-top: 6px; }
.stat-label { margin: 4px 0 0; color: var(--soft); font-size: .9rem; }
.stat.good .stat-value { color: #2f7a3a; }
.stat.bad .stat-value { color: #b5483a; }
.sat-box { padding: 16px 18px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); }
.sat-title { margin: 0 0 6px; font-weight: 700; }
.neg-list { margin: 10px 0 0; padding-left: 20px; }
.neg-list li { margin: 6px 0; }
#record-card h2 { margin-top: 4px; }

.move-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; color: var(--ink); background: var(--paper); border: 0; border-radius: 24px; box-shadow: 0 20px 60px rgba(58, 43, 36, .35); }
.move-dialog::backdrop { background: rgba(58, 43, 36, .45); }
.move-dialog h2 { margin-top: 0; }
.move-dialog input[type="date"], .move-dialog input[type="time"] {
  width: 100%; padding: 10px 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
}

/* ---------- staff table: fit more on the screen ---------- */
.admin { max-width: 1400px; }
.admin-table { font-size: .9rem; }
.admin-table th, .admin-table td { padding: 8px 8px; }
.admin-table thead th { color: var(--ink); }
.admin-table .col-date { white-space: normal; min-width: 130px; }
.admin-table .col-contact { word-break: break-word; }
.admin-table .col-notes { min-width: 90px; }
.admin-table .col-actions { min-width: 150px; white-space: normal; }
.admin-table .col-status { min-width: 70px; }

/* Disable text selection on iPhone and other devices */
body {
    -webkit-user-select: none; /* Safari on iPhone */
    user-select: none;
    -webkit-touch-callout: none; /* Disable iOS text selection popup */
}
