:root {
  --bg: #f7f2e6;
  --surface: #fffdf7;
  --line: #e6ddca;
  --text: #3f3327;
  --muted: #7a6a57;
  --brand: #9f6a2e;
  --brand-deep: #7e4f1f;
  --brand-soft: #fff4df;
  --ok: #4f7e38;
  --mid: #5f7894;
  --low: #9c7616;
  --none: #9a5b3f;
  --shadow-lg: 0 20px 48px rgba(101, 76, 43, 0.14);
  --shadow-sm: 0 4px 14px rgba(111, 85, 52, 0.1);
  --flower-petal: rgba(255, 251, 240, 0.72);
  --flower-petal-alt: rgba(248, 238, 217, 0.7);
  --flower-center: rgba(220, 182, 119, 0.72);
  --leaf-soft: rgba(188, 204, 168, 0.34);
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-y: auto;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 0%, #fff9ef 0%, var(--bg) 54%, #efe6d6 100%);
  line-height: 1.45;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: -8%;
  pointer-events: none;
}

.ambient::before {
  z-index: 0;
  opacity: 0.52;
  background-image:
    radial-gradient(circle at 26px 10px, var(--flower-petal) 0 9px, transparent 10px),
    radial-gradient(circle at 12px 24px, var(--flower-petal) 0 9px, transparent 10px),
    radial-gradient(circle at 40px 24px, var(--flower-petal) 0 9px, transparent 10px),
    radial-gradient(circle at 26px 38px, var(--flower-petal) 0 9px, transparent 10px),
    radial-gradient(circle at 26px 24px, var(--flower-center) 0 5px, transparent 6px),
    radial-gradient(circle at 118px 96px, var(--flower-petal-alt) 0 8px, transparent 9px),
    radial-gradient(circle at 106px 108px, var(--flower-petal-alt) 0 8px, transparent 9px),
    radial-gradient(circle at 130px 108px, var(--flower-petal-alt) 0 8px, transparent 9px),
    radial-gradient(circle at 118px 120px, var(--flower-petal-alt) 0 8px, transparent 9px),
    radial-gradient(circle at 118px 108px, rgba(214, 171, 101, 0.62) 0 4px, transparent 5px);
  background-size: 180px 180px;
}

.ambient::after {
  z-index: 0;
  opacity: 0.42;
  background-image:
    radial-gradient(ellipse 10px 7px at 54px 52px, var(--leaf-soft) 0 100%, transparent 100%),
    radial-gradient(ellipse 8px 6px at 66px 64px, var(--leaf-soft) 0 100%, transparent 100%),
    radial-gradient(ellipse 10px 7px at 148px 34px, rgba(193, 205, 171, 0.28) 0 100%, transparent 100%),
    radial-gradient(ellipse 9px 6px at 160px 46px, rgba(193, 205, 171, 0.28) 0 100%, transparent 100%);
  background-size: 180px 180px;
  filter: blur(0.2px);
}

.blob {
  position: absolute;
  border-radius: 999px;
  z-index: 1;
  filter: blur(3px);
  opacity: 0.22;
}

.blob-a {
  width: 320px;
  height: 320px;
  top: -120px;
  right: 4%;
  background: radial-gradient(circle at 32% 30%, #f8ebcd, #e7d4ab);
}

.blob-b {
  width: 260px;
  height: 260px;
  top: 30%;
  left: -120px;
  background: radial-gradient(circle at 50% 40%, #fbf3e1, #e6dbc0);
}

.blob-c {
  width: 220px;
  height: 220px;
  bottom: -100px;
  right: 20%;
  background: radial-gradient(circle at 42% 50%, #f3ebd9, #ddd1b3);
}

.masthead {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.brand-sub {
  margin: 0;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
}

.brand-main {
  margin: 2px 0 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.02;
  color: var(--brand-deep);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
}

.brand-link:hover {
  opacity: 0.88;
}

.brand-link:focus-visible {
  outline: 2px solid #bd945f;
  outline-offset: 4px;
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.build-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e1d4b9;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: #7b5d3d;
  background: #fff6df;
}

.ghost-refresh {
  border: 1px solid #dbcdb4;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  color: #6a4f33;
  background: #fffcf5;
  cursor: pointer;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbcdb4;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  color: #6a4f33;
  background: #fffcf5;
  text-decoration: none;
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 36px;
}

.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid #e5d9c0;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(255, 249, 237, 0.96), rgba(245, 233, 205, 0.92));
  box-shadow: var(--shadow-lg);
}

.hero-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #85613c;
}

.hero h2 {
  margin: 8px 0;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.2;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: #3f2d20;
}

.hero-desc {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

.hero-stats {
  display: grid;
  gap: 10px;
}

.hero-stats article {
  border: 1px solid #e6dcc6;
  border-radius: 14px;
  background: rgba(255, 254, 249, 0.92);
  padding: 12px 14px;
}

.hero-stats p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  color: var(--brand-deep);
  line-height: 1;
}

.search-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e5dbc8;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.search-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.search-layout.search-layout-single {
  grid-template-columns: 1fr;
}

.calendar-panel {
  border: 1px solid #e3d8bf;
  border-radius: 14px;
  background: #fff8ea;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero + .calendar-panel {
  margin-top: 14px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-nav {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d7c7aa;
  background: #fffdf7;
  color: #6f4c25;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.calendar-month {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #614324;
}

.calendar-week {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-week span {
  text-align: center;
  font-size: 11px;
  color: #8c7b67;
}

.calendar-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-day {
  min-height: 42px;
  border: 1px solid #e0d2b6;
  border-radius: 10px;
  background: #fffdf8;
  color: #5f4730;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.calendar-day:disabled {
  opacity: 0.45;
  cursor: default;
}

.calendar-day:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: #c8a777;
}

.calendar-day.outside {
  background: #faf4e6;
  color: #ab9a82;
}

.calendar-day.today {
  border-color: #b68a53;
}

.calendar-day.active {
  border-color: #a56c2e;
  background: linear-gradient(180deg, #ffefd1 0%, #f8ddb0 100%);
  color: #633d18;
}

.calendar-day.sun .calendar-day-num {
  color: #a35f4a;
}

.calendar-day.sat .calendar-day-num {
  color: #4f6586;
}

.calendar-day-num {
  font-size: 14px;
  font-weight: 700;
}

.native-date-field {
  margin-top: 10px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  justify-items: center;
  overflow-x: clip;
}

.native-date-field > span {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.native-date-field input {
  background: #fffbf1;
}

.native-date-field input[type="date"] {
  box-sizing: border-box;
  width: 80%;
  max-width: 80%;
  min-width: 0;
  inline-size: 80%;
  max-inline-size: 80%;
  min-inline-size: 0;
  -webkit-min-logical-width: 0;
  field-sizing: fixed;
  margin: 0;
  margin-inline: auto;
  padding-inline-end: 36px;
  display: block;
  overflow: clip;
  text-align: center;
}

.native-date-field input[type="date"]::-webkit-date-and-time-value {
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-date-field input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
}

.native-date-field input[type="date"]::-webkit-datetime-edit,
.native-date-field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-filter-column {
  min-width: 0;
}

.search-reviews-panel {
  margin-top: 0;
  padding: 12px;
}

.search-reviews-panel .reviews-grid {
  grid-template-columns: 1fr;
}

.panel-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-top h3 {
  margin: 0;
  font-size: 20px;
}

.result-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}

.single-shop-hidden {
  display: none !important;
}

.field > span {
  font-size: 12px;
  color: var(--muted);
}

input,
select,
textarea,
button {
  font: inherit;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #dbcdb5;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 11px;
  background: #fffdf8;
  color: var(--text);
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.quick-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.quick-row > * {
  min-width: 0;
  max-width: 100%;
}

.date-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-chip {
  border: 1px solid #dacdb5;
  border-radius: 999px;
  background: #fffdf7;
  color: #6f5335;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.date-chip.active {
  background: #ffefcf;
  border-color: #bc8e5f;
  color: #845223;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #695740;
}

.check-inline input {
  width: 16px;
  height: 16px;
}

.feature-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-pill {
  border: 1px solid #d8ccb4;
  border-radius: 999px;
  min-height: 32px;
  padding: 6px 12px;
  background: #fff9ec;
  color: #6a5237;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.feature-pill.active {
  border-color: #aa7a45;
  background: #ffe7bc;
  color: #70461f;
}

.panel-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-btn,
.sub-btn {
  border-radius: 10px;
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
}

.primary-btn {
  border: 1px solid #8b5d2d;
  color: #ffffff;
  background: linear-gradient(180deg, #c98c4a 0%, #99602a 100%);
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sub-btn {
  border: 1px solid #d6c8b0;
  color: #5f4930;
  background: #fffcf4;
}

.flash-message {
  min-height: 20px;
  margin: 12px 2px 0;
  border-radius: 10px;
  color: transparent;
  font-size: 13px;
}

.flash-message.info,
.flash-message.error,
.flash-message.success {
  padding: 8px 10px;
  color: #ffffff;
}

.flash-message.info {
  background: #6d5437;
}

.flash-message.error {
  background: #9e5d3e;
}

.flash-message.success {
  background: #567d42;
}

.content-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 14px;
  align-items: start;
}

.content-layout.no-shop-info {
  grid-template-columns: 1fr;
}

.results-column-hidden {
  display: none;
}

.timeline-section {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.reviews-section {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.reviews-bottom-panel {
  margin-top: 14px;
}

.review-post-panel {
  margin-top: 10px;
  border: 1px solid #e4d7c0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffcf4 0%, #fff6e5 100%);
  padding: 12px;
}

.review-post-panel h4 {
  margin: 0;
  font-size: 16px;
  color: #4e3721;
}

.review-post-help {
  margin: 6px 0 0;
  font-size: 13px;
  color: #725d45;
}

.review-post-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.review-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.review-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.review-post-actions .primary-btn {
  min-width: 170px;
}

.review-post-actions .summary-text {
  margin: 0;
}

.reviews-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-card {
  border: 1px solid #e4d8c3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffcf4 0%, #fff8ea 100%);
  padding: 11px;
  display: grid;
  gap: 7px;
}

.review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.review-user {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #56381d;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.review-date {
  margin: 0;
  color: #8a785f;
  font-size: 12px;
}

.review-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-stars {
  letter-spacing: 0.06em;
  color: #a16a2f;
  font-size: 12px;
}

.review-rating {
  font-size: 13px;
  font-weight: 700;
  color: #6c4825;
}

.review-menu {
  margin: 0;
  font-size: 12px;
  color: #7c6142;
}

.review-title {
  margin: 0;
  font-size: 15px;
  color: #4a3420;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.review-comment {
  margin: 0;
  color: #5f503e;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.review-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-tag {
  border: 1px solid #e0d1b4;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff3d8;
  color: #6f512f;
  font-size: 11px;
  font-weight: 700;
}

.review-empty-card {
  border: 1px dashed #dccfb8;
  border-radius: 12px;
  background: #fffcf5;
  padding: 16px;
  text-align: center;
  grid-column: 1 / -1;
}

.review-empty-card h4 {
  margin: 0;
  font-size: 16px;
}

.review-empty-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.timeline-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.timeline-card {
  border: 1px solid #e3d6be;
  border-radius: 12px;
  background: #fffaf0;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.timeline-card.ok {
  border-color: #b8d0a8;
}

.timeline-card.mid {
  border-color: #b9cadb;
}

.timeline-card.low {
  border-color: #dfc898;
}

.timeline-card.none {
  border-color: #dfc2ad;
}

.timeline-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-time {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #5d4226;
}

.timeline-count {
  margin: 0;
  font-size: 12px;
  color: #7a654b;
}

.timeline-shop-list {
  display: grid;
  gap: 6px;
}

.timeline-shop-btn {
  border: 1px solid #ddcfb8;
  border-radius: 9px;
  min-height: 34px;
  padding: 6px 8px;
  background: #fffdf7;
  color: #5d442a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.timeline-shop-btn.ok {
  border-color: #b9cfa8;
}

.timeline-shop-btn.mid {
  border-color: #b9cadb;
}

.timeline-shop-btn.low {
  border-color: #dfc898;
}

.timeline-shop-btn.none {
  border-color: #dfc2ad;
}

.timeline-shop-name {
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline-shop-remaining {
  font-size: 12px;
  flex-shrink: 0;
}

.timeline-empty-card {
  border: 1px dashed #dccdb4;
  border-radius: 12px;
  background: #fffcf5;
  padding: 14px;
  text-align: center;
}

.timeline-empty-card h4 {
  margin: 0;
  font-size: 16px;
}

.timeline-empty-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.timeline-skeleton {
  min-height: 138px;
  position: relative;
  overflow: hidden;
}

.timeline-skeleton-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #faf3e3 0%, #fffdf8 50%, #faf3e3 100%);
  background-size: 220% 100%;
  animation: shimmer 1.2s infinite;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.section-head h3 {
  margin: 0;
  font-size: 20px;
  color: #4d3926;
}

.summary-text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shop-grid {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.shop-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: card-fade 0.5s ease forwards;
  opacity: 0;
}

.shop-card.skeleton {
  min-height: 280px;
  position: relative;
}

.shop-card.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #faf3e3 0%, #fffdf8 50%, #faf3e3 100%);
  background-size: 220% 100%;
  animation: shimmer 1.2s infinite;
}

.shop-cover {
  background: linear-gradient(140deg, var(--cover-a), var(--cover-b));
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.shop-cover p {
  margin: 0;
  font-size: 12px;
  color: #634d34;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.85);
}

.status-badge.ok {
  color: var(--ok);
}

.status-badge.mid {
  color: var(--mid);
}

.status-badge.low {
  color: var(--low);
}

.status-badge.none {
  color: var(--none);
}

.shop-body {
  padding: 14px;
}

.shop-body h3 {
  margin: 0;
  font-size: 22px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.meta li {
  font-size: 13px;
  color: #5c4c3a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta strong {
  color: #3c2c1f;
}

.tag-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list li {
  border: 1px solid #e3d5bf;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff9ed;
  color: #6a5135;
  font-size: 11px;
}

.slot-preview {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-slot {
  border: 1px solid #dbcdb7;
  border-radius: 8px;
  min-height: 30px;
  padding: 0 8px;
  background: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

.mini-slot.ok {
  color: var(--ok);
}

.mini-slot.mid {
  color: var(--mid);
}

.mini-slot.low {
  color: var(--low);
}

.no-slot {
  font-size: 12px;
  color: var(--muted);
}

.shop-actions {
  padding: 0 14px 14px;
  display: flex;
  gap: 8px;
}

.detail-btn,
.reserve-btn {
  min-height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

.detail-btn {
  flex: 1;
  border: 1px solid #d6c6ae;
  background: #fffcf5;
  color: #5e462b;
}

.reserve-btn {
  flex: 1.2;
  border: 1px solid #8d5d2f;
  background: linear-gradient(180deg, #ca8f4f 0%, #9b622d 100%);
  color: #ffffff;
}

.reserve-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.empty-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 20px;
  text-align: center;
}

.empty-card h3 {
  margin: 0;
}

.empty-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.booking-board {
  position: sticky;
  top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-head h3 {
  margin: 0;
}

.count-badge {
  border-radius: 999px;
  background: #ffefd0;
  color: #835627;
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid #e0c79c;
}

.board-caption {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.booking-list {
  display: grid;
  gap: 8px;
}

.booking-item {
  border: 1px solid #e8dcc6;
  border-radius: 12px;
  padding: 10px;
  background: #fffcf4;
}

.booking-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-top p {
  margin: 0;
  font-size: 12px;
  color: #5f4b56;
}

.small-status {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #d9ccb5;
  padding: 3px 8px;
  font-size: 11px;
  background: #fffdf8;
}

.small-status.ok {
  color: var(--ok);
}

.small-status.mid {
  color: var(--mid);
}

.small-status.none {
  color: var(--none);
}

.booking-item h4 {
  margin: 8px 0 2px;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.booking-item p {
  margin: 2px 0;
  color: #624f5a;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.booking-actions {
  margin-top: 8px;
}

.booking-actions button {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid #d5c5ac;
  background: #fffdf6;
  color: #6b5035;
  cursor: pointer;
}

.booking-muted {
  color: #8f7d85;
  font-size: 12px;
}

.booking-empty {
  margin: 0;
  border: 1px dashed #dccdd4;
  border-radius: 10px;
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

.detail-dialog {
  width: min(920px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  border: none;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.detail-dialog::backdrop {
  background: rgba(26, 16, 24, 0.62);
}

.detail-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fffdf7;
  min-width: 0;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  align-content: start;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.detail-head > div {
  min-width: 0;
}

.detail-area {
  margin: 0;
  font-size: 12px;
  color: #7d5b6a;
}

.detail-head h3 {
  margin: 2px 0 0;
  font-size: 28px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.icon-close {
  border: 1px solid #d9c8ae;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  background: #fffdf7;
  color: #6e5131;
  font-size: 18px;
  cursor: pointer;
}

.detail-lead {
  margin: 0;
  color: #5f4b57;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #4d3926;
}

.menu-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.menu-pill {
  border: 1px solid #deceb4;
  border-radius: 10px;
  background: #fffdf7;
  min-height: 50px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.menu-pill span {
  display: block;
  font-weight: 700;
  color: #4b2f3f;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.menu-pill small {
  color: #755566;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.menu-pill.active {
  border-color: #ad7b44;
  background: #ffefd3;
}

.staff-slot-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
}

.detail-block {
  border: 1px solid #e4d7c0;
  border-radius: 12px;
  background: #fffaf0;
  padding: 10px;
  min-width: 0;
}

.staff-select-block {
  display: grid;
  gap: 8px;
  align-content: start;
}

.detail-help {
  margin: 0;
  color: #7c6950;
  font-size: 12px;
  line-height: 1.5;
}

.staff-select-wrap {
  position: relative;
  display: block;
}

.staff-select-wrap::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-52%);
  color: #7c5a35;
  font-size: 14px;
  pointer-events: none;
}

#staffSelect {
  width: 100%;
  border: 1px solid #dbcdb5;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 36px 0 12px;
  background: #fffdf8;
  color: #5f4730;
  appearance: none;
}

#staffSelect:focus-visible {
  outline: 2px solid #b78854;
  outline-offset: 2px;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 56px;
}

.slot-loading,
.slot-empty {
  margin: 0;
  color: #6f5d49;
  font-size: 13px;
}

.slot-btn {
  border: 1px solid #dbcbb1;
  border-radius: 10px;
  min-height: 46px;
  background: #fffdf7;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #5e472f;
}

.slot-btn strong {
  font-size: 14px;
  line-height: 1;
}

.slot-btn span {
  font-size: 12px;
}

.slot-btn.active {
  border-color: #ad7a42;
  background: #ffedcc;
  color: #7d4f20;
}

.booking-inputs {
  display: grid;
  gap: 8px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: 340px;
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: #547a3f;
}

.toast.info {
  background: #6d5539;
}

.toast.error {
  background: #9f6141;
}

@keyframes card-fade {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 1040px) {
  .search-layout {
    grid-template-columns: 1fr;
  }

  .calendar-panel {
    order: -1;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-board {
    position: static;
  }
}

@media (max-width: 880px) {
  .controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .staff-slot-grid {
    grid-template-columns: 1fr;
  }

  .detail-block {
    padding: 10px;
  }

  .slot-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-post-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .ambient::before {
    opacity: 0.46;
    background-size: 150px 150px;
  }

  .ambient::after {
    opacity: 0.32;
    background-size: 150px 150px;
  }

  .masthead {
    padding: 14px 12px 8px;
    flex-direction: column;
  }

  .shell {
    padding: 0 10px 22px;
  }

  .brand-main {
    font-size: 34px;
  }

  .search-panel {
    padding: 12px;
  }

  .detail-dialog {
    width: min(920px, calc(100% - 12px));
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
  }

  .detail-card {
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    padding: 14px;
  }

  .controls-grid {
    grid-template-columns: 1fr;
  }

  .date-quick {
    width: 100%;
  }

  .calendar-panel {
    padding: 10px;
  }

  .native-date-field input[type="date"] {
    font-size: 16px;
  }

  .calendar-day {
    min-height: 38px;
  }

  .calendar-day-num {
    font-size: 13px;
  }

  .panel-actions {
    flex-direction: column;
  }

  .review-post-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .review-post-actions .primary-btn {
    min-width: 0;
  }

  .primary-btn,
  .sub-btn,
  .detail-btn,
  .reserve-btn,
  .booking-actions button {
    width: 100%;
    min-height: 44px;
  }

  .shop-actions {
    flex-direction: column;
  }

  .slot-preview {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    flex-direction: column;
  }

  .toast-stack {
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: 0;
    max-width: 100%;
  }
}
