:root{--bg:#f6f3ec;--paper:#fffefa;--ink:#272d28;--muted:#72756e;--line:#dedfd5;--green:#263e33;--gold:#ac8652;--red:#8a3535;--bg-luxury:#F4F2EE;--paper-luxury:#FFFFFF;--ink-luxury:#26231F;--muted-luxury:#77716A;--gold-luxury:#A49178;--gold-light:#C4B5A0;--line-luxury:#E5E1DA;--font-serif-en:"EB Garamond",Garamond,Georgia,serif;--font-serif-ja:"Noto Serif JP","Yu Mincho",serif;--font-sans-ja:"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Yu Gothic",Meiryo,sans-serif;font-size:14px;line-height:1.8}.test-banner{text-align:center;background:#e9dfcb;color:#675131;font-size:11px;letter-spacing:1.6px;padding:7px 16px}.test-banner span{margin-left:20px;letter-spacing:.3px}header{max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:24px 44px;border-bottom:1px solid var(--line)}.brand{color:var(--ink);text-decoration:none;font-family:Georgia,serif;font-size:13px;line-height:1.3}.brand strong{display:block;font-size:29px;letter-spacing:5px}.brand strong span{display:block;font-family:sans-serif;font-size:9px;letter-spacing:7px;margin-top:7px}.header-right{display:flex;align-items:center;gap:25px;font-size:10px;letter-spacing:2px}main{max-width:1192px;margin:0 auto;padding:38px 24px 70px;min-height:75vh}h1,h2,p{margin-top:0}h1{font-family:"Yu Mincho",Georgia,serif;font-weight:500;font-size:34px;line-height:1.65;margin-bottom:12px}h2{font-size:18px;font-weight:600;margin-bottom:18px}.eyebrow{font-size:10px;letter-spacing:2.4px;color:var(--gold);margin-bottom:12px}.muted{color:var(--muted)}.small{font-size:12px}.login-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:100px;align-items:center;max-width:960px;margin:25px auto}.intro{position:relative;padding:30px 0}.intro h1{font-size:40px}.intro>p:not(.eyebrow){color:var(--muted);line-height:2}.motif{margin-top:30px;width:155px;height:155px;border:1px solid #b8bfae;border-radius:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;font:70px Georgia;color:#75836e;outline:1px solid #d3d7ca;outline-offset:7px}.motif span{font:8px sans-serif;letter-spacing:2px;margin-top:6px}.card{background:var(--paper);border:1px solid var(--line);border-radius:5px;padding:30px;margin-bottom:20px;box-shadow:0 3px 12px #2d3a2e03}.page-title{display:flex;justify-content:space-between;align-items:center;margin:4px 0 26px}.page-title h1{margin:0}.pill{background:#e8eddf;color:#4e6848;padding:5px 12px;font-size:11px;border-radius:30px}nav{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:32px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:3px;font-weight:600;transition:background .15s}button:disabled{opacity:.5;cursor:not-allowed}nav button{background:none;border-radius:0;padding:12px 4px 16px;color:var(--muted);border-bottom:2px solid transparent}nav button.active{color:var(--green);border-bottom-color:var(--green)}.two-column{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}label{display:block;font-size:12px;font-weight:600;margin-bottom:18px}input,select,textarea{display:block;width:100%;margin-top:7px;padding:11px 12px;background:#fff;border:1px solid #d7dbd2;border-radius:3px;color:var(--ink);font-size:14px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #bacbb9;outline-offset:1px}.primary,.secondary,.danger{padding:12px 20px}.primary{background:var(--green);color:white}.primary:hover{background:#355640}.secondary{background:#e8ecdf;color:var(--green)}.danger{background:#f4e6e1;color:var(--red)}.subtle{padding:8px 10px;background:transparent;color:var(--muted);font-size:11px}.section-heading{display:flex;align-items:center;gap:12px;margin-bottom:24px}.section-heading h2{margin:0}.step{color:var(--gold);font-family:Georgia;font-size:19px}.divided{border-top:1px solid var(--line);padding-top:25px;margin-top:26px}.accent-card{background:#edf0e6;border-color:#d7decb}.accent-card dl{margin:24px 0}.accent-card dt{color:var(--muted);font-size:11px}.accent-card dd{margin:0 0 15px;font-size:15px}.notice{padding:13px 16px;background:#f4eddd;border-left:3px solid #b39360;font-size:12px;line-height:1.9}.success{border-color:#a9b99d}.success a{word-break:break-all;color:var(--green)}.toolbar{display:flex;align-items:center;gap:16px;margin-bottom:24px}.toolbar label{margin:0}.toolbar button{align-self:flex-end}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.stats .card{padding:22px 28px}.stats span{font-size:12px;color:var(--muted);display:block}.stats strong{font-size:32px;font-family:Georgia;font-weight:400;color:var(--green)}.reservation{display:grid;grid-template-columns:90px 1fr 160px;gap:20px;border-top:1px solid var(--line);padding:22px 0}.reservation .time{font-size:21px;font-family:Georgia;color:var(--green)}.reservation h3{font-size:15px;margin:0 0 4px}.reservation p{margin-bottom:4px;font-size:12px;overflow-wrap:anywhere}.reservation label{margin:0}.reservation select{margin-bottom:10px}.reservation textarea{font-size:12px}.empty{text-align:center;padding:50px 10px;color:var(--muted)}.settings-card{max-width:760px}.actions{display:flex;gap:14px;flex-wrap:wrap}#message{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#263e33;color:white;max-width:90vw;width:max-content;padding:15px 24px;border-radius:5px;box-shadow:0 5px 25px #0002;z-index:5}#message.error{background:#823d34}footer{max-width:1192px;margin:0 auto;border-top:1px solid var(--line);padding:24px;color:var(--muted);font-family:Georgia;font-size:12px;display:flex;justify-content:space-between}footer span{font:10px sans-serif;letter-spacing:.6px}[hidden]{display:none!important}@media(max-width:760px){header{padding:20px}.test-banner span{display:block;margin:0}.header-right{letter-spacing:0}main{padding:26px 16px 50px}.login-layout,.two-column{grid-template-columns:1fr;gap:20px}.login-layout{margin:0}.intro{padding:15px}.intro h1{font-size:30px}.motif{display:none}.card{padding:22px}.form-grid{gap:0 12px}nav{gap:14px;overflow-x:auto}nav button{white-space:nowrap;font-size:12px}.stats{gap:8px}.stats .card{padding:15px}.reservation{grid-template-columns:65px 1fr;gap:12px}.reservation>div:last-child{grid-column:2}.page-title h1{font-size:27px}footer{display:block}footer span{display:block;margin-top:10px}}
/* Separate customer and staff pages; touch-friendly mobile controls. */
a.primary,a.secondary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:48px}button{min-height:44px}input,select,textarea{font-size:16px;min-height:48px}label{font-size:13px}.toolbar{flex-wrap:wrap}.header-right{overflow-wrap:anywhere}#admin-identity{overflow-wrap:anywhere}.reservation p{white-space:pre-wrap}#demo-notice{border-color:#55764a;background:#eaf0e4}nav{position:sticky;top:0;background:var(--bg);z-index:2;padding-top:6px}#booking-form .primary{width:100%}#parse-form .primary{width:100%}.actions a{flex:1}
@media(max-width:600px){.form-grid{grid-template-columns:1fr}header{gap:12px}.brand strong{font-size:25px}.header-right{font-size:11px}main{padding:22px 14px 45px}.card{padding:20px 16px}.two-column{gap:8px}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.stats .card{padding:12px 10px}.stats span{font-size:10px}.stats strong{font-size:28px}.toolbar>*{max-width:100%}nav{gap:4px;scrollbar-width:thin}nav button{padding:12px 10px;font-size:13px}.reservation{grid-template-columns:1fr;gap:10px}.reservation>div:last-child{grid-column:1;display:flex;gap:10px}.reservation select{margin:0;flex:1}.reservation .time{font-size:23px}.actions{flex-direction:column}.actions>*{width:100%}.page-title{gap:12px}.pill{white-space:nowrap}.test-banner{font-size:10px}.test-banner span{line-height:1.7}}
/* Configurable booking screens share the existing brand CSS variables. */
.calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:8px}.calendar-nav button{padding:8px 10px}.calendar-weekday{text-align:center;color:var(--muted);font-size:12px}.calendar-grid button[aria-pressed=true]{background:var(--green);color:white}.booking-confirm{border:1px solid var(--line);border-radius:16px;max-width:560px;width:calc(100% - 28px);max-height:90dvh;padding:24px;box-sizing:border-box;background:var(--bg);color:var(--ink)}.booking-confirm::backdrop{background:#142c2566}.booking-confirm dl{overflow-wrap:anywhere}.booking-confirm dt{font-size:12px;color:var(--muted);margin-top:12px}.booking-confirm dd{margin:3px 0 14px}.menu-description p{margin:6px 0}.reservation>div:last-child{flex-wrap:wrap}.reservation .edit-form{display:block!important;grid-column:1/-1}.reservation .edit-form input[type=checkbox]{width:24px;min-height:24px;margin-right:8px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:12px 0 22px}.calendar-grid button{padding:8px 2px;font-size:13px}.config-editor details{border-top:1px solid var(--line);padding:18px 0}.config-editor summary{cursor:pointer;font-size:17px;font-weight:600;min-height:44px}.config-editor .item{border:1px solid var(--line);padding:16px;margin:12px 0}.config-editor fieldset{border:1px solid var(--line);margin:12px 0;padding:14px}.config-editor input[type=checkbox]{width:24px;min-height:24px;display:inline-block;vertical-align:middle}.configuration-note{white-space:pre-line}.reservation .actions{grid-column:1/-1}.timeline{overflow:auto;max-height:300px}.timeline p{border-left:4px solid var(--green);padding-left:10px}

.edit-booking{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.edit-booking input[type=checkbox]{width:24px;min-height:24px;vertical-align:middle}.occupancy-row{display:grid;grid-template-columns:110px 1fr 40px;gap:8px;align-items:center;font-size:13px;margin:10px 0}.occupancy-row meter{width:100%;height:16px}@media(max-width:600px){.edit-booking{grid-template-columns:1fr}.calendar-grid button{font-size:12px}}
@media(max-width:600px){nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}nav button{width:100%;min-height:44px}.calendar-grid{margin-left:-4px;margin-right:-4px;gap:2px}}
/* ===== Store Settings & Menu Management UI ===== */
.cfg-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cfg-ready {
  background: #fbf6ec;
  border: 1px solid #e2d2b4;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.7;
}
.cfg-ready strong {
  display: block;
  color: #634b25;
  margin-bottom: 6px;
}
.cfg-ready ul {
  margin: 0;
  padding-left: 20px;
}
.cfg-ready li {
  margin: 4px 0;
}
.cfg-section {
  padding: 0;
  overflow: hidden;
}
.cfg-section summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  cursor: pointer;
  background: #fdfcf8;
  border-bottom: 1px solid transparent;
  user-select: none;
  transition: background 0.15s;
}
.cfg-section summary:hover {
  background: #f7f5ed;
}
.cfg-section[open] summary {
  border-bottom-color: var(--line);
}
.cfg-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.cfg-badge {
  background: #d9534f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}
.cfg-sum {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}
.cfg-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cfg-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: #faf8f2;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.cfg-status {
  font-size: 13px;
  color: var(--muted);
}
.cfg-status.ok {
  color: #2e6930;
  font-weight: 600;
}
.cfg-status.err {
  color: #b32d2e;
  font-weight: 600;
}

/* Grids and form fields */
.cfg-grp {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cfg-grp h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.cfg-grid {
  display: grid;
  gap: 12px 16px;
}
.cfg-grid.c1 {
  grid-template-columns: 1fr;
}
.cfg-grid.c2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cfg-grid.c3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cfg-grid.pair {
  grid-template-columns: 2fr 1fr;
}
.cfg-full {
  grid-column: 1 / -1;
}

.cfg-f {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 600;
}
.cfg-l {
  color: var(--ink);
  font-size: 12px;
}
.cfg-in {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cfg-in input,
.cfg-in select {
  margin-top: 0;
  flex: 1;
}
.cfg-u {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.cfg-h {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}
.cfg-span input {
  max-width: 120px;
}
.cfg-span select {
  max-width: 120px;
}

/* Time windows */
.cfg-win {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cfg-win-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cfg-win-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #faf8f2;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.cfg-win-row .cfg-f {
  flex: 1;
}
.cfg-win-row .cfg-f select {
  margin-top: 0;
}
.cfg-rm {
  align-self: flex-end;
  color: #b32d2e;
  font-size: 16px;
  line-height: 1;
  padding: 8px 10px;
}

/* Day row */
.cfg-day {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cfg-dayname {
  padding-top: 10px;
  font-size: 14px;
  color: var(--ink);
}
.cfg-exrow {
  grid-template-columns: 160px 1fr auto;
}

/* Policy fieldset */
.cfg-policy {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0;
}
.cfg-policy legend {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 6px;
}

/* Chips, Checks, Radios */
.cfg-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
}
.cfg-check input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin: 0;
  cursor: pointer;
}
.cfg-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cfg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  transition: all 0.15s;
}
.cfg-chip input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  margin: 0;
}
.cfg-chip:has(input:checked) {
  background: #eef3eb;
  border-color: var(--green);
  color: var(--green);
}
.cfg-states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cfg-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 0;
  transition: border-color 0.15s, background 0.15s;
}
.cfg-radio input[type="radio"] {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  cursor: pointer;
}
.cfg-radio:has(input:checked) {
  border-color: var(--green);
  background: #f7faf5;
}
.cfg-radio strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.cfg-radio small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Menu list (compact table format) */
.cfg-menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}
.cfg-count {
  font-size: 13px;
  color: var(--muted);
}
.cfg-menu-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.cfg-menu-row {
  display: grid;
  grid-template-columns: 56px 2fr 1.3fr 1.3fr 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.cfg-menu-row:last-child {
  border-bottom: none;
}
.cfg-menu-head {
  background: #faf8f2;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px;
}
.cfg-menu-row.is-editing {
  background: #f4f7f1;
}

/* Reorder Handle & Accessibility Buttons */
.reorder-col {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}
.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  padding: 0;
  background: #f4f2ea;
  border: 1px solid var(--line, #ddd);
  border-radius: 4px;
  cursor: grab;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted, #666);
  touch-action: none;
}
.drag-handle:active {
  cursor: grabbing;
  background: #ebe7dc;
}
.drag-handle:hover,
.drag-handle:focus-visible {
  color: var(--green, #234b35);
  border-color: var(--green, #234b35);
}
.reorder-btns {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.btn-reorder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 16px;
  padding: 0;
  font-size: 8px;
  line-height: 1;
  border-radius: 2px;
  background: #f4f2ea;
  border: 1px solid var(--line, #ddd);
  color: var(--muted, #666);
  cursor: pointer;
  min-height: unset;
}
.btn-reorder:hover:not(:disabled),
.btn-reorder:focus-visible:not(:disabled) {
  background: #e6e2d3;
  color: var(--ink, #222);
  border-color: var(--ink, #222);
}
.btn-reorder:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .reorder-btns {
    display: none !important;
  }
  .reorder-col {
    width: 36px;
    justify-content: center;
  }
  .drag-handle {
    width: 34px;
    height: 36px;
    font-size: 20px;
  }
}

/* Dragging & Placeholder States */
.is-dragging {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.12);
  background: #ffffff !important;
  border: 1px solid #7ea383 !important;
  opacity: 0.95;
  border-radius: 6px;
}
.drag-placeholder {
  box-sizing: border-box;
  background: #f3f7f1;
  border: 2px dashed #59855e;
  border-radius: 6px;
  margin: 4px 0;
  min-height: 44px;
}
body.is-reordering {
  user-select: none;
  -webkit-user-select: none;
}
.cfg-name strong {
  font-size: 14px;
  color: var(--ink);
}
.cfg-state {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.cfg-state.s-public {
  background: #e1efe2;
  color: #215e29;
}
.cfg-state.s-hidden {
  background: #ebebe6;
  color: #63665e;
}
.cfg-state.s-paused {
  background: #fde8e4;
  color: #a43828;
}

/* Menu editor (inline/card) */
.cfg-editor-box:not(:empty) {
  margin-bottom: 16px;
}
.cfg-editor {
  background: #faf8f2;
  border: 2px solid var(--green);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.cfg-editor h3 {
  margin: 0;
  font-size: 17px;
  color: var(--green);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

/* Resources (tables) */
.cfg-res-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cfg-res-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #faf8f2;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.cfg-res-row .cfg-f {
  margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 760px) {
  .cfg-grid.c2,
  .cfg-grid.c3,
  .cfg-grid.pair {
    grid-template-columns: 1fr;
  }
  .cfg-day {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cfg-dayname {
    padding-top: 0;
  }
  .cfg-exrow {
    grid-template-columns: 1fr;
  }
  .cfg-states {
    grid-template-columns: 1fr;
  }
  .cfg-menu-head {
    display: none;
  }
  .cfg-menu-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px;
  }
  .cfg-menu-row .cfg-cell:not(.cfg-name):not(.cfg-act)::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }
  .cfg-menu-row .cfg-act {
    width: 100%;
    margin-top: 6px;
  }
  .cfg-menu-row .cfg-act button {
    width: 100%;
  }
  .cfg-res-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cfg-res-row .cfg-f:first-child {
    grid-column: 1 / -1;
  }
}

/* ===== Customer Name / Furigana 2-Column Grid & Inline Field Errors ===== */
.field-group {
  margin-bottom: 18px;
}
.group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.req,
.opt {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}
.req {
  background: #f4e6e1;
  color: var(--red);
}
.opt {
  background: #ebebe6;
  color: var(--muted);
}
.name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.name-grid label {
  margin-bottom: 0;
  font-size: 12px;
}
.field-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.4;
}
input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--red);
  background: #fffafa;
}
@media (max-width: 600px) {
  .name-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ===== Booking Cutoff Editor (Relative Minutes/Hours & Calendar Day HH:mm) ===== */
.cfg-cutoff {
  background: #faf8f2;
}
.cfg-cutoff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.cfg-cutoff-mode {
  flex: 1 1 280px;
  min-width: 220px;
}
.cfg-cutoff-rel {
  flex: 0 1 240px;
}
.cfg-cutoff-daysel {
  flex: 0 1 160px;
  min-width: 130px;
}
.cfg-cutoff-custom {
  flex: 0 1 140px;
  min-width: 120px;
}
.cfg-cutoff-time {
  flex: 0 1 160px;
  min-width: 135px;
}
.cfg-cutoff-time input[type="time"] {
  margin-top: 0;
}
.cfg-cutoff-preview {
  margin: 8px 0 0;
  color: var(--green);
  font-weight: 600;
}
@media (max-width: 600px) {
  .cfg-cutoff-mode {
    flex: 1 1 100%;
  }
  .cfg-cutoff-daysel,
  .cfg-cutoff-custom,
  .cfg-cutoff-time {
    flex: 1 1 45%;
  }
}

/* Explicit tables and combinations: compact lists with one editor. */
.table-readiness {
  margin-bottom: 18px;
  border-left: 4px solid #b47c2a;
}
.table-readiness p {
  margin: 0 0 10px;
}
.table-list {
  margin: 12px 0 22px;
}
.table-summary {
  display: grid;
  grid-template-columns: 56px minmax(100px, 1fr) 54px minmax(100px, 1.4fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #ddd);
  font-size: 0.9rem;
}
.table-summary strong,
.table-summary span {
  overflow-wrap: anywhere;
}
.table-summary button {
  min-height: 44px;
  padding: 8px 12px;
}
.table-flags,
.table-members {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.table-members label {
  min-height: 44px;
}
.intake-range.c2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .table-summary {
    grid-template-columns: 38px minmax(75px, 1fr) 44px auto auto;
    gap: 8px;
  }
  .table-summary > .table-summary-desc,
  .table-summary > span:nth-child(4) {
    grid-column: 2/4;
    grid-row: 2;
    font-size: 0.8rem;
  }
  .table-summary > .reorder-col {
    grid-row: 1/3;
    align-self: center;
    justify-self: center;
  }
  .table-summary > button {
    grid-row: 1/3;
  }
  .intake-range .cfg-l {
    font-size: 0.8rem;
  }
  .intake-range select {
    padding-left: 8px;
    padding-right: 4px;
    font-size: 0.85rem;
  }
}

/* ===== Instant & Request Booking Modes, Pending Ledger & Email Preview ===== */
.request-mode-notice {
  margin: 0 0 16px;
  background: #fbf5e6;
  border-left: 4px solid #b88328;
  color: #5a4214;
  font-weight: 600;
}
.request-pending-message {
  background: #fbf5e6;
  border-left: 4px solid #b88328;
  color: #5a4214;
  margin-bottom: 14px;
}
.request-result {
  border-color: #dec89a;
}

.pending-banner {
  margin-bottom: 24px;
  background: #fdfbf7;
  border: 1px solid #e8dec8;
  border-left: 5px solid #b88328;
  border-radius: 6px;
  padding: 18px 20px;
}
.pending-banner-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.pending-banner-head strong {
  color: #4a3410;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pending-banner-sub {
  color: #7d6b52;
  font-size: 12px;
  margin: 0;
}
.pending-requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pending-request-card {
  background: #ffffff;
  border: 1px solid #e8e2d5;
  border-left: 4px solid #b88328;
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(43, 33, 27, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}
.pending-request-card:hover {
  border-color: #d6cbba;
  box-shadow: 0 2px 6px rgba(43, 33, 27, 0.07);
}
.pending-request-card.pending-card-warning {
  border-left-color: #c97f18;
  background: #fffdfa;
}
.pending-request-card.pending-card-alert {
  border-left-color: #a94438;
  background: #fffbfa;
}
.pending-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f2ede4;
  font-size: 12px;
}
.pending-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.pending-badge.badge-status {
  background: #f6eedb;
  color: #7a5412;
  border: 1px solid #deb868;
}
.pending-badge.badge-elapsed {
  background: #f4efe6;
  color: #5c4e3c;
  border: 1px solid #ddd3c1;
}
.pending-badge.badge-elapsed.badge-warning {
  background: #fdf2de;
  color: #8f560e;
  border: 1px solid #e8b668;
}
.pending-badge.badge-elapsed.badge-alert {
  background: #fcedeb;
  color: #9c3328;
  border: 1px solid #e09d94;
}
.request-reception-time {
  color: #756a5d;
  font-size: 12px;
}
.request-reception-time .meta-label {
  color: #8c8173;
  margin-right: 4px;
}
.pending-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.pending-card-info {
  flex: 1;
  min-width: 0;
}
.pending-visit-datetime {
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.pending-visit-datetime .datetime-label {
  font-size: 11px;
  font-weight: 700;
  color: #855514;
  background: #faf4e6;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.pending-visit-datetime .datetime-value {
  font-size: 16px;
  font-weight: 700;
  color: #2b211b;
  letter-spacing: 0.02em;
}
.pending-customer-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}
.pending-customer-name {
  font-weight: 600;
  color: #2b211b;
}
.pending-party-size {
  font-weight: 600;
  color: #423528;
  background: #f2ede4;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
}
.pending-menu-tag {
  color: #5c4e3c;
  background: #faf7f2;
  border: 1px solid #e8e2d8;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
}
.pending-note-box {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
}
.pending-note-box.has-note {
  background: #fbf7ee;
  border: 1px solid #eedec0;
  color: #4a3828;
}
.pending-note-box.no-note {
  background: #faf8f5;
  border: 1px dashed #e8e2d5;
  color: #8a7e70;
  font-size: 12px;
}
.pending-note-label {
  font-weight: 600;
  margin-right: 6px;
  color: #7a5a22;
}
.pending-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}
.pending-card-actions button {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.pending-card-actions .approve-btn {
  background: #2b211b;
  color: #ffffff;
  border: 1px solid #2b211b;
}
.pending-card-actions .approve-btn:hover {
  background: #42352b;
}
.pending-card-actions .decline-btn {
  background: #fff8f7;
  color: #9c3328;
  border: 1px solid #deb8b4;
}
.pending-card-actions .decline-btn:hover {
  background: #fcedeb;
  border-color: #9c3328;
}
.pending-card-actions .detail-btn {
  background: #ffffff;
  color: #4a3e33;
  border: 1px solid #cfc7bc;
}
.pending-card-actions .detail-btn:hover {
  background: #f8f6f2;
}
.pending-request-card.is-processing {
  opacity: 0.6;
  pointer-events: none;
}

/* Detail & Confirm Modal Dialogs */
.booking-detail-dialog {
  max-width: 580px;
  width: calc(100% - 24px);
  padding: 24px 24px 20px;
  border: 1px solid #e0d8cc;
  border-radius: 6px;
  background: #ffffff;
  color: #2b211b;
  box-shadow: 0 12px 36px rgba(43, 33, 27, 0.15);
}
.booking-detail-dialog h2 {
  font-size: 18px;
  font-weight: 700;
  color: #2b211b;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee8de;
}
.booking-detail-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.booking-detail-grid dt {
  color: #7a6e5e;
  font-weight: 600;
  border-bottom: 1px solid #f6f3ee;
  padding: 6px 0;
}
.booking-detail-grid dd {
  color: #2b211b;
  border-bottom: 1px solid #f6f3ee;
  padding: 6px 0;
  margin: 0;
  overflow-wrap: break-word;
}
.booking-detail-dialog .actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee8de;
}
.approve-confirm-dialog .confirm-booking-info {
  background: #fbf5e6;
  border-left: 4px solid #b88328;
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.approve-confirm-dialog .confirm-booking-info p {
  margin: 4px 0;
  font-size: 13px;
}

.small-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .pending-banner {
    padding: 14px 12px;
  }
  .pending-request-card {
    padding: 12px;
  }
  .pending-card-body {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pending-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-self: stretch;
  }
  .pending-card-actions .detail-btn {
    grid-column: span 2;
  }
  .pending-card-actions button {
    min-height: 44px;
    font-size: 14px;
  }
  .booking-detail-dialog {
    padding: 18px 14px;
  }
  .booking-detail-grid {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .booking-detail-grid dt {
    padding-top: 8px;
    padding-bottom: 2px;
    border-bottom: none;
    font-size: 12px;
  }
  .booking-detail-grid dd {
    padding-bottom: 8px;
  }
  .booking-detail-dialog .actions {
    flex-direction: column;
  }
  .booking-detail-dialog .actions button {
    width: 100%;
    min-height: 44px;
  }
}

.stats:has(.stat-pending) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-pending {
  border-color: #e2ca99;
  background: #fdfaf2;
}
.stat-pending strong {
  font-size: 20px;
  color: #8f6214;
}

.ledger-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.reservation {
  grid-template-columns: 90px 1fr 200px;
}
.reservation.status-pending {
  background: #fdfaf2;
  border-left: 4px solid #c28b2c;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.reservation.status-declined,
.reservation.status-cancelled {
  opacity: 0.82;
}
.reservation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.reservation-head h3 {
  margin: 0;
}
.reservation-meta {
  font-weight: 600;
  color: var(--ink);
}
.customer-note {
  background: #f6f4ed;
  padding: 6px 10px;
  border-radius: 3px;
}
.pending-table-note {
  color: #8a5d14;
  font-weight: 600;
  font-size: 12px;
}
.reservation-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.reservation-actions button,
.reservation-actions select {
  width: 100%;
  margin: 0;
}

.status-badge,
.mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.status-badge.s-pending {
  background: #f8e7c1;
  color: #7c510d;
}
.status-badge.s-confirmed {
  background: #dfeee2;
  color: #1f5c28;
}
.status-badge.s-seated {
  background: #dbe8f4;
  color: #1c4e78;
}
.status-badge.s-completed {
  background: #e9ebe6;
  color: #4b5048;
}
.status-badge.s-declined,
.status-badge.s-cancelled,
.status-badge.s-no_show {
  background: #f3e1dc;
  color: #8a3535;
}
.mode-badge.m-request {
  background: #f5ebd6;
  color: #795516;
  border: 1px solid #e2cca2;
}
.mode-badge.m-instant {
  background: #ebf0e8;
  color: #365242;
  border: 1px solid #ced9c8;
}
.cfg-name .mode-badge {
  margin-left: 8px;
  font-size: 10px;
  padding: 1px 7px;
}
.calendar-grid button.has-pending {
  border: 1px solid #c28b2c;
  background: #fbf3e0;
  color: #6e4a0e;
}

/* Email template preview section */
.email-preview-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.email-preview-section h4 {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.email-preview-toolbar {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 10px;
  align-items: center;
}
.email-preview-toolbar select {
  margin-top: 0;
}
.email-preview-meta {
  background: #faf8f2;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 16px;
}
.email-preview-meta p {
  margin: 2px 0;
  font-size: 13px;
}
.email-subject-line {
  font-weight: 700;
  color: var(--green);
}
.email-preview-host {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ece9e0;
  padding: 16px;
  display: flex;
  justify-content: center;
}
.email-html-frame {
  width: 100%;
  max-width: 680px;
  height: 560px;
  border: 1px solid #d5d2c8;
  border-radius: 4px;
  background: #f6f3ec;
}
.email-html-frame.is-mobile {
  max-width: 375px;
}
.email-text-preview {
  width: 100%;
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  background: #fffefa;
  border: 1px solid #d5d2c8;
  border-radius: 4px;
  font-family: Consolas, "Yu Gothic", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .stats:has(.stat-pending) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reservation {
    grid-template-columns: 1fr;
  }
  .email-preview-toolbar {
    grid-template-columns: 1fr;
  }
}

/* ===== Resend Email Test Section ===== */
.email-test-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.email-test-section h4 {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.email-test-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.test-target-badge {
  background: #f0ede4;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink);
}
.test-target-badge strong {
  color: var(--green);
  font-family: Consolas, monospace;
  margin-left: 4px;
}
.email-test-result {
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
}
.email-test-result.is-success {
  background: #eef6f0;
  border: 1px solid #c2e2cb;
  color: #1f6f43;
}
.email-test-result.is-error {
  background: #fdf2f2;
  border: 1px solid #f5c6cb;
  color: #a32727;
}
.test-result-heading {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.test-result-detail {
  font-size: 12px;
  opacity: 0.9;
}
.test-result-id {
  font-family: Consolas, monospace;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}
.test-result-notice {
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted);
}

/* ===== Customer Reservation Confirmation Page ===== */
.manage-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.manage-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.manage-title-row h2 {
  margin: 0;
  font-size: 22px;
}
.manage-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-confirmed {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}
.badge-pending {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #feefc3;
}
.badge-cancelled {
  background: #f1f3f4;
  color: #5f6368;
  border: 1px solid #dadce0;
}
.badge-declined {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}
.manage-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}
.manage-detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0eee6;
  font-size: 14px;
  line-height: 1.6;
}
.manage-detail-row:last-child {
  border-bottom: none;
}
.manage-detail-row dt {
  font-weight: 600;
  color: var(--muted, #665c52);
}
.manage-detail-row dd {
  margin: 0;
  color: var(--ink, #231f1c);
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: pre-wrap;
}
@media (max-width: 600px) {
  .manage-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ===== Batch Operating Hours & Unconfigured Hours Warning ===== */
.unconfigured-hours-warning {
  background: #fff8e6;
  border-left: 4px solid #b45309;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.unconfigured-hours-warning strong {
  display: block;
  font-size: 15px;
  color: #92400e;
  margin-bottom: 4px;
}
.unconfigured-hours-warning p {
  margin: 0;
  font-size: 13px;
  color: #78350f;
}
.cfg-batch-hours {
  background: #faf8f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  margin: 16px 0 28px;
}
.cfg-batch-hours h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.cfg-batch-days {
  margin-top: 16px;
}
.cfg-batch-checkgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 10px;
}
.cfg-quick-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cfg-batch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .unconfigured-hours-warning div {
    flex-direction: column;
    align-items: flex-start;
  }
  .unconfigured-hours-warning button {
    width: 100%;
  }
  .cfg-batch-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cfg-batch-actions button {
    width: 100%;
  }
}

/* ===== Menu Booking Start Time Calculation Display ===== */
.cfg-menu-time-summary {
  background: #fcfbf7;
  border: 1px solid var(--line);
  border-left: 3px solid #1f6f43;
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 12px;
}
.cfg-menu-time-summary-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.cfg-menu-time-summary-list li {
  margin-bottom: 4px;
}
.cfg-menu-time-summary-list li:last-child {
  margin-bottom: 0;
}
.cfg-menu-time-summary-list strong {
  color: var(--ink);
}
.cfg-menu-time-summary-list .highlight-end {
  color: #1f6f43;
  font-weight: 700;
  font-size: 14px;
}

/* Menu Slot Settings (＋ 詳細設定: 予約開始時刻の個別指定・時刻別上限組数) */
.cfg-advanced-section {
  margin-top: 14px;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 8px;
  background: #fdfdfc;
  overflow: hidden;
}
.cfg-advanced-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink, #1f1d1a);
  background: #faf8f4;
  user-select: none;
  transition: background 0.15s;
}
.cfg-advanced-summary:hover {
  background: #f4f0e8;
}
.cfg-advanced-section[open] .cfg-advanced-summary {
  border-bottom: 1px solid var(--line, #e6e3da);
}
.cfg-advanced-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cfg-slot-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #e6e3da);
}

/* Independent Cards for Normal & Exception Settings */
.cfg-slot-card {
  border: 1px solid var(--line, #e6e3da);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(39, 45, 40, 0.03);
}
.cfg-normal-card {
  background: #ffffff;
  border-color: #dedfd5;
}
.cfg-exceptions-card {
  background: #faf8f5;
  border-color: #ded8cb;
}
.cfg-card-head {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line, #e6e3da);
}
.cfg-normal-card .cfg-card-head {
  border-bottom-color: #ebe8df;
}
.cfg-exceptions-card .cfg-card-head {
  border-bottom-color: #e5dfd2;
}
.cfg-card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #272d28);
  letter-spacing: 0.02em;
}
.cfg-card-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted, #72756e);
  line-height: 1.5;
}
.cfg-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cfg-slot-section-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cfg-slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 10px;
}
.cfg-slot-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 6px;
}
.cfg-slot-row select {
  width: auto;
  min-width: 180px;
  max-width: 240px;
  padding: 6px 10px;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 4px;
  background: #fff;
  font-size: 13.5px;
}
.cfg-slot-row .cfg-slot-limit,
.cfg-exc-slot-row .cfg-slot-limit {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cfg-slot-row .cfg-slot-limit input,
.cfg-exc-slot-row .cfg-slot-limit input {
  width: 60px;
  text-align: right;
  padding: 6px 8px;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 4px;
}
.cfg-slot-row .cfg-rm {
  margin-left: auto;
}

/* Date Exceptions in Menu Slot Settings */
.cfg-exceptions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cfg-exceptions-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cfg-exceptions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 4px;
}
.cfg-exc-empty-note {
  padding: 12px 14px;
  background: #f3efe6;
  border: 1px dashed #d6cfbf;
  border-radius: 6px;
  color: var(--muted, #72756e);
  font-size: 12.5px;
  line-height: 1.5;
}
.cfg-exception-card {
  border: 1px solid #ded8cb;
  border-radius: 6px;
  background: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(39, 45, 40, 0.03);
}
.cfg-exc-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0ede4;
}
.cfg-exc-date-input {
  font-size: 14px;
  font-weight: 600;
  padding: 5px 8px;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 4px;
}
.cfg-exc-weekday {
  font-weight: 600;
  color: var(--muted, #666);
}
.cfg-exc-rm {
  margin-left: auto;
  font-size: 12px;
  color: #c62828;
}
.cfg-exc-daily-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0ede4;
}
.cfg-exc-slots-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cfg-exc-slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.cfg-exc-slot-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: #faf8f5;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 6px;
}
.cfg-exc-slot-row.is-stopped {
  background: #fdf2f2;
  border-color: #f5c6cb;
  opacity: 0.9;
}
.cfg-exc-slot-row select {
  width: auto;
  min-width: 100px;
  max-width: 180px;
  padding: 6px 10px;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 4px;
  background: #fff;
  font-size: 13.5px;
}
.cfg-exc-slot-row .cfg-slot-limit input {
  width: 60px;
  text-align: right;
  padding: 6px 8px;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 4px;
}
.cfg-exc-slot-row .cfg-rm {
  margin-left: auto;
}
.cfg-diff-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}
.pill-inherit {
  background: #f0ede6;
  color: #666;
}
.pill-changed {
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #bbdefb;
}
.pill-stopped {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.pill-added {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}
@media (max-width: 640px) {
  .cfg-slot-card {
    padding: 14px 12px;
  }
  .cfg-card-head {
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  .cfg-card-title {
    font-size: 14px;
  }
  .cfg-card-desc {
    font-size: 12px;
  }
  .cfg-slot-row {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 10px;
  }
  .cfg-slot-row select {
    min-width: 130px;
    flex: 1 1 130px;
  }
  .cfg-exception-card {
    padding: 12px 10px;
  }
  .cfg-exc-card-head {
    gap: 8px;
  }
  .cfg-exc-rm {
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
  .cfg-exc-slot-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }
  .cfg-exc-slot-row select {
    min-width: 90px;
    flex: 1 1 90px;
  }
}

/* ==========================================================================
   POLSKA Customer Reservation Experience (Modern European Boutique Hotel)
   Brand Anchor: Official Logo Deep Sapphire Blue (#1F3C82)
   ========================================================================== */
.customer-site {
  /* Brand Tokens (Official Logo: #1F3C82) */
  --polska-brand-primary: #1F3C82;
  --polska-brand-strong: #152A5C;
  --polska-brand-accent: #2E52A3;
  --polska-brand-tint: #F0F4FA;
  --polska-brand-subtle: #E4ECF7;

  --polska-accent-bronze: #987C69;
  --polska-accent-bronze-text: #806653;
  --polska-champagne: #F1EBE5;

  /* Surfaces & Backgrounds */
  --polska-bg: #F7F5F2;
  --polska-surface: #FFFFFF;
  --polska-surface-muted: #F8F6F3;
  --polska-border: #DED9D3;
  --polska-border-light: #ECE7E1;

  /* Typography / Text Colors */
  --polska-text-primary: #252830;
  --polska-text-secondary: #605D59;
  --polska-text-muted: #6D6862;
  --polska-warning-text: #795013;
  --polska-warning-bg: #F8F4EC;
  --polska-input-border: #8A8178;
  --polska-shadow: rgba(24, 34, 48, 0.04);
  --polska-focus-glow: rgba(31, 60, 130, 0.14);

  /* Interactive & States */
  --polska-selected-bg: #F5F6F8;
  --polska-selected-border: #1F3C82;
  --polska-btn-primary-bg: #1F3C82;
  --polska-btn-primary-hover: #152A5C;
  --polska-btn-primary-text: #FFFFFF;
  --polska-focus-ring: #1F3C82;

  /* Notice / Request Badges (Yellowish-beige eliminated) */
  --polska-notice-bg: #F1EBE5;
  --polska-notice-border: #DED4CA;
  --polska-notice-accent: #987C69;
  --polska-notice-text: #3F3934;

  --polska-request-bg: #F1EBE5;
  --polska-request-border: #DED4CA;
  --polska-request-accent: #1F3C82;
  --polska-request-text: #3F3934;

  --polska-error-text: #991B1B;
  --polska-error-bg: #FEF2F2;
  --polska-error-border: #FCA5A5;

  --polska-success-text: #065F46;
  --polska-success-bg: #ECFDF5;
  --polska-success-border: #A7F3D0;

  /* Component mappings */
  --bg-luxury: var(--polska-bg);
  --paper-luxury: var(--polska-surface);
  --ink-luxury: var(--polska-text-primary);
  --muted-luxury: var(--polska-text-secondary);
  --gold-luxury: var(--polska-brand-primary);
  --line-luxury: var(--polska-border);

  /* Unified 2-System Typography Tokens (Scoped to Customer Site) */
  --font-serif-en: "EB Garamond", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", Garamond, Georgia, serif;
  --font-serif-ja: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "EB Garamond", Georgia, serif;
  --font-sans-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Yu Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --polska-font-serif-en: var(--font-serif-en);
  --polska-font-serif: var(--font-serif-ja);
  --polska-font-sans: var(--font-sans-ja);
}

body.customer-site {
  background-color: var(--polska-bg);
  color: var(--polska-text-primary);
  font-family: var(--polska-font-sans);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.customer-site h1 {
  font-family: var(--polska-font-serif);
}
.customer-site h2,
.customer-site h3 {
  font-family: var(--polska-font-sans);
}
.customer-site dialog {
  font-family: var(--polska-font-sans);
}

/* Test Environment Banner */
.customer-site .test-banner {
  background: var(--polska-surface-muted);
  color: var(--polska-brand-primary);
  border-bottom: 1px solid var(--polska-border);
  font-weight: 500;
}
.customer-site .test-banner span {
  color: var(--polska-text-secondary);
}

/* Header */
.customer-site .luxury-brand-header {
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 28px;
  background: var(--polska-surface);
  border-bottom: 1px solid var(--polska-border);
}
.customer-site .brand-sub {
  font-family: var(--polska-font-serif-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--polska-text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.4;
}
.customer-site .brand-logo {
  display: inline-block;
  font-family: var(--polska-font-serif-en);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--polska-brand-primary);
  text-decoration: none;
  line-height: 1.2;
  margin-bottom: 12px;
  transition: opacity 0.15s ease;
}
.customer-site .brand-logo:hover {
  opacity: 0.85;
}
.customer-site .brand-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 160px;
  margin: 0 auto 12px;
}
.customer-site .ornament-line {
  flex: 1;
  height: 1px;
  background: var(--polska-border);
}
.customer-site .ornament-diamond {
  font-family: var(--polska-font-serif);
  font-size: 9px;
  color: var(--polska-accent-bronze);
  line-height: 1;
}
.customer-site .brand-caption {
  font-family: var(--polska-font-serif-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--polska-brand-accent);
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.4;
}
.customer-site .brand-title {
  font-family: var(--polska-font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--polska-text-primary);
  margin: 0;
  line-height: 1.4;
}

/* Layout */
.customer-site .luxury-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  min-height: 70vh;
}
.customer-site .page-lead {
  text-align: center;
  font-family: var(--polska-font-sans);
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--polska-text-secondary);
  margin: 0 0 32px;
}
.customer-site .page-lead-main {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--polska-text-secondary);
}
.customer-site .page-lead-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--polska-text-muted);
}
.customer-site .two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.customer-site .luxury-card {
  background: var(--polska-surface);
  border: 1px solid var(--polska-border);
  border-radius: 4px;
  padding: 36px 32px;
  box-shadow: 0 2px 16px var(--polska-shadow);
  margin-bottom: 24px;
}

/* Steps */
.customer-site .section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
}
.customer-site .section-heading.divided {
  border-top: 1px solid var(--polska-border);
  padding-top: 28px;
  margin-top: 32px;
}
.customer-site .step-num {
  font-family: var(--polska-font-serif-en);
  font-variant-numeric: lining-nums;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--polska-accent-bronze-text);
}
.customer-site .step-sep {
  color: var(--polska-border);
  font-size: 13px;
}
.customer-site .section-title {
  font-family: var(--polska-font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--polska-text-primary);
  margin: 0;
}

/* Luxury Menu Cards */
.customer-site .luxury-menu-cards-wrap {
  margin-bottom: 24px;
}
.customer-site .menu-cards-heading {
  margin-bottom: 12px;
}
.customer-site .menu-cards-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--polska-text-secondary);
  text-transform: uppercase;
}
.customer-site .luxury-menu-container,
.customer-site .luxury-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.customer-site .luxury-menu-card {
  padding: 12px 18px;
  border: 1px solid var(--polska-border);
  border-radius: 4px;
  background: var(--polska-surface);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}
.customer-site .luxury-menu-card:hover {
  border-color: var(--polska-brand-accent);
  background: var(--polska-surface-muted);
}
.customer-site .luxury-menu-select-label {
  display: none !important;
}
.customer-site .luxury-menu-card.selected,
.customer-site .luxury-menu-card.active {
  border-color: var(--polska-selected-border);
  background: var(--polska-selected-bg);
  box-shadow: 0 0 0 1.5px var(--polska-selected-border);
}
.customer-site .luxury-menu-card:focus-visible {
  outline: 2px solid var(--polska-focus-ring);
  outline-offset: 2px;
}

/* Menu Row Header */
.customer-site .menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.customer-site .menu-card-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  flex: 1 1 260px;
  min-width: 0;
}
.customer-site .menu-card-indicator {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--polska-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.customer-site .luxury-menu-card.selected .menu-card-indicator {
  color: var(--polska-brand-primary);
  font-weight: 700;
}
.customer-site .menu-card-name,
.customer-site .menu-card-title {
  font-family: var(--polska-font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--polska-text-primary);
  letter-spacing: 0.03em;
  margin: 0;
  line-height: 1.4;
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.customer-site .menu-card-short-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}
.customer-site .menu-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}
.customer-site .menu-card-price {
  font-family: var(--polska-font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--polska-brand-strong);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.customer-site .menu-card-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--polska-brand-primary);
  background: var(--polska-surface);
  border: 1px solid var(--polska-border);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
}
.customer-site .menu-card-detail-btn:hover {
  color: var(--polska-brand-strong);
  border-color: var(--polska-brand-primary);
  background: var(--polska-brand-tint);
}
.customer-site .luxury-menu-card.detail-expanded .menu-card-detail-btn {
  color: var(--polska-surface);
  border-color: var(--polska-brand-primary);
  background: var(--polska-brand-primary);
}

/* Collapsible Detail Drawer */
.customer-site .menu-card-detail-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--polska-border);
}
.customer-site .menu-card-detail-body:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.customer-site .menu-card-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--polska-text-secondary);
  margin: 0;
  white-space: pre-wrap;
}
.customer-site .menu-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11.5px;
  color: var(--polska-text-secondary);
}
.customer-site .menu-badge,
.customer-site .menu-card-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  background: var(--polska-surface-muted);
  color: var(--polska-text-secondary);
  border: 1px solid var(--polska-border-light);
  border-radius: 2px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.customer-site .menu-badge.mode-request {
  background: var(--polska-champagne);
  color: var(--polska-notice-text);
  border: 1px solid var(--polska-request-border);
  font-weight: 600;
}

/* Notice & Reservation Conditions (Yellowish-beige replaced with boutique sapphire/slate) */
.customer-site .notice,
.customer-site .menu-description,
.customer-site .luxury-notice {
  background: var(--polska-notice-bg);
  border: 1px solid var(--polska-notice-border);
  border-left: 3px solid var(--polska-notice-accent);
  color: var(--polska-notice-text);
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  margin: 12px 0 16px;
}
.customer-site .notice.small,
.customer-site .menu-description p {
  margin: 0;
  font-size: 12px;
  color: var(--polska-notice-text);
}
.customer-site .menu-description-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--polska-notice-text);
  margin-bottom: 4px;
}
.customer-site .menu-description-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--polska-notice-text);
}
.customer-site .menu-description-item {
  white-space: nowrap;
}

/* Availability Calendar */
.customer-site .availability-calendar {
  margin: 16px 0 22px;
}
.customer-site .calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.customer-site button.cal-nav-btn,
.customer-site .cal-nav-btn {
  background: transparent;
  border: 1px solid var(--polska-border);
  border-radius: 2px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--polska-brand-primary);
  cursor: pointer;
  min-height: 36px;
  transition: all 0.15s;
}
.customer-site button.cal-nav-btn:hover:not(:disabled),
.customer-site .cal-nav-btn:hover:not(:disabled) {
  border-color: var(--polska-brand-primary);
  background: var(--polska-brand-tint);
}
.customer-site button.cal-nav-btn:disabled,
.customer-site .cal-nav-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  color: var(--polska-text-muted);
  border-color: var(--polska-border-light);
}
.customer-site .cal-month-title,
.customer-site .calendar-month-heading {
  font-family: var(--polska-font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--polska-brand-strong);
}
.customer-site .calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  font-size: 11px;
  color: var(--polska-text-secondary);
  margin-bottom: 8px;
}
.customer-site .calendar-horizon-note {
  margin: 0;
  font-size: 11px;
  color: var(--polska-text-muted);
  text-align: right;
  line-height: 1.5;
}
.customer-site .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 48px;
  gap: 4px;
  margin: 8px 0 16px;
}
.customer-site .calendar-pad {
  height: 48px;
}
.customer-site .calendar-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--polska-text-secondary);
  padding: 4px 0;
}
.customer-site button.calendar-day-btn,
.customer-site .calendar-day-btn {
  aspect-ratio: auto;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 44px;
  max-height: 52px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--polska-surface);
  border: 1px solid var(--polska-border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--polska-text-primary);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin: 0;
}
.customer-site button.calendar-day-btn:hover:not(:disabled):not([aria-pressed="true"]),
.customer-site .calendar-day-btn:hover:not(:disabled):not([aria-pressed="true"]) {
  border-color: var(--polska-brand-primary);
  background: var(--polska-brand-tint);
  color: var(--polska-text-primary);
}
.customer-site button.calendar-day-btn[aria-pressed="true"],
.customer-site .calendar-day-btn[aria-pressed="true"],
.customer-site button.calendar-day-btn[aria-pressed="true"]:hover,
.customer-site .calendar-day-btn[aria-pressed="true"]:hover,
.customer-site button.calendar-day-btn[aria-pressed="true"]:focus,
.customer-site .calendar-day-btn[aria-pressed="true"]:focus,
.customer-site button.calendar-day-btn[aria-pressed="true"]:active,
.customer-site .calendar-day-btn[aria-pressed="true"]:active {
  background: #1F3C82 !important;
  color: #FFFFFF !important;
  border-color: #1F3C82 !important;
  font-weight: 600;
  box-shadow: none;
  outline: none;
}
.customer-site button.calendar-day-btn:disabled,
.customer-site .calendar-day-btn:disabled,
.customer-site button.calendar-day-btn:disabled[aria-pressed="true"],
.customer-site .calendar-day-btn:disabled[aria-pressed="true"],
.customer-site button.calendar-day-btn:disabled[aria-pressed="true"]:hover,
.customer-site button.calendar-day-btn:disabled[aria-pressed="true"]:focus,
.customer-site button.calendar-day-btn:disabled[aria-pressed="true"]:active {
  opacity: 0.35;
  background: var(--polska-surface-muted) !important;
  cursor: not-allowed;
  border-color: var(--polska-border) !important;
  color: var(--polska-text-muted) !important;
  font-weight: 500;
  box-shadow: none;
}
.customer-site button.calendar-day-btn.is-before-open,
.customer-site .calendar-day-btn.is-before-open,
.customer-site button.calendar-day-btn.is-before-open:disabled,
.customer-site .calendar-day-btn.is-before-open:disabled,
.customer-site button.calendar-day-btn.is-before-open:disabled[aria-pressed="true"],
.customer-site .calendar-day-btn.is-before-open:disabled[aria-pressed="true"] {
  opacity: 1;
  background: #f1f2f4 !important;
  color: #b2b7c0 !important;
  border-color: #e4e6ea !important;
  font-weight: 400;
  box-shadow: none;
  cursor: not-allowed;
}
.customer-site .calendar-day-main {
  line-height: 1.15;
}
.customer-site button.calendar-day-btn.is-today,
.customer-site .calendar-day-btn.is-today {
  background: var(--polska-surface);
  color: var(--polska-text-primary);
  border: 1.5px solid #B89356;
}
.customer-site button.calendar-day-btn.is-today:hover:not(:disabled):not([aria-pressed="true"]),
.customer-site .calendar-day-btn.is-today:hover:not(:disabled):not([aria-pressed="true"]) {
  border-color: #B89356;
  background: var(--polska-brand-tint);
}
.customer-site button.calendar-day-btn.is-today:disabled,
.customer-site .calendar-day-btn.is-today:disabled,
.customer-site button.calendar-day-btn.is-today:disabled[aria-pressed="true"],
.customer-site .calendar-day-btn.is-today:disabled[aria-pressed="true"] {
  opacity: 1;
  background: var(--polska-surface-muted) !important;
  color: var(--polska-text-muted) !important;
  border: 1.5px solid rgba(184, 147, 86, 0.55) !important;
  font-weight: 500;
  box-shadow: none;
}
.customer-site button.calendar-day-btn.is-today:disabled .calendar-day-main,
.customer-site .calendar-day-btn.is-today:disabled .calendar-day-main {
  opacity: 0.38;
}
.customer-site button.calendar-day-btn.is-today[aria-pressed="true"]:not(:disabled),
.customer-site .calendar-day-btn.is-today[aria-pressed="true"]:not(:disabled),
.customer-site button.calendar-day-btn.is-today[aria-pressed="true"]:not(:disabled):hover,
.customer-site .calendar-day-btn.is-today[aria-pressed="true"]:not(:disabled):hover,
.customer-site button.calendar-day-btn.is-today[aria-pressed="true"]:not(:disabled):focus,
.customer-site .calendar-day-btn.is-today[aria-pressed="true"]:not(:disabled):focus,
.customer-site button.calendar-day-btn.is-today[aria-pressed="true"]:not(:disabled):active,
.customer-site .calendar-day-btn.is-today[aria-pressed="true"]:not(:disabled):active {
  background: var(--polska-surface) !important;
  color: #1F3C82 !important;
  border: 2px solid #B89356 !important;
  box-shadow: inset 0 0 0 1.5px #1F3C82;
  font-weight: 700;
  outline: none;
}

/* Form Inputs, Selects, Labels */
.customer-site label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--polska-text-secondary);
  margin-bottom: 18px;
}
.customer-site button,
.customer-site input,
.customer-site select,
.customer-site textarea,
.customer-site optgroup,
.customer-site option {
  font-family: var(--polska-font-sans);
}
.customer-site input,
.customer-site select,
.customer-site textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--polska-surface);
  border: 1px solid var(--polska-border);
  border-radius: 2px;
  color: var(--polska-text-primary);
  font-size: 16px;
  font-family: var(--polska-font-sans);
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.customer-site select:disabled {
  background: var(--polska-surface-muted);
  color: var(--polska-text-muted);
  cursor: not-allowed;
  opacity: 0.78;
}
.customer-site input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  line-height: 1.4;
  min-height: 48px;
}
.customer-site input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  padding: 0;
  min-height: 1.4em;
}
.customer-site input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  margin: 0;
}
.customer-site .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.customer-site .form-grid label {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.customer-site input:focus,
.customer-site select:focus,
.customer-site textarea:focus {
  outline: none;
  border-color: var(--polska-focus-ring);
  box-shadow: 0 0 0 3px var(--polska-focus-glow);
}
.customer-site .field-group {
  margin-bottom: 18px;
}
.customer-site .group-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--polska-text-secondary);
  margin-bottom: 8px;
}
.customer-site .name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.customer-site .name-grid label {
  margin-bottom: 0;
}
.customer-site .req {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--polska-brand-primary);
  border: 1px solid var(--polska-brand-primary);
  background: var(--polska-brand-tint);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.customer-site .opt {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--polska-text-muted);
  border: 1px solid var(--polska-border);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.customer-site #availability-note:empty {
  display: none;
  margin: 0;
  padding: 0;
}
.customer-site .field-error {
  color: var(--polska-error-text);
  font-size: 12px;
  margin: 4px 0 10px;
}

/* Buttons */
.customer-site button.primary,
.customer-site .primary {
  background: var(--polska-btn-primary-bg);
  color: var(--polska-btn-primary-text);
  border: 1px solid var(--polska-btn-primary-bg);
  border-radius: 2px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  min-height: 48px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.customer-site button.primary:hover,
.customer-site .primary:hover {
  background: var(--polska-btn-primary-hover);
  border-color: var(--polska-btn-primary-hover);
}
.customer-site button.secondary:not(.calendar-day-btn):not(.cal-nav-btn),
.customer-site .secondary:not(.calendar-day-btn):not(.cal-nav-btn) {
  background: transparent;
  color: var(--polska-brand-primary);
  border: 1px solid var(--polska-brand-primary);
  border-radius: 2px;
  padding: 13px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  min-height: 48px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.customer-site button.secondary:not(.calendar-day-btn):not(.cal-nav-btn):hover,
.customer-site .secondary:not(.calendar-day-btn):not(.cal-nav-btn):hover {
  background: var(--polska-brand-tint);
}
.customer-site button.danger,
.customer-site .danger {
  background: transparent;
  color: var(--polska-error-text);
  border: 1px solid var(--polska-error-border);
  border-radius: 2px;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 600;
  min-height: 48px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.customer-site button.danger:hover,
.customer-site .danger:hover {
  background: var(--polska-error-bg);
  border-color: var(--polska-error-text);
}
.customer-site button.subtle,
.customer-site .subtle {
  background: transparent;
  color: var(--polska-text-secondary);
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 10px 14px;
  min-height: 44px;
}
.customer-site button.subtle:hover,
.customer-site .subtle:hover {
  color: var(--polska-text-primary);
}

/* Aside Summary */
.customer-site .luxury-aside .card {
  background: var(--polska-surface-muted);
  border: 1px solid var(--polska-border);
  padding: 28px 24px;
}
.customer-site .eyebrow {
  font-family: var(--polska-font-serif-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--polska-brand-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.customer-site .aside-title {
  font-family: var(--polska-font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--polska-brand-strong);
  margin-bottom: 14px;
}
.customer-site .luxury-policy-dl dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--polska-text-secondary);
  margin-top: 14px;
}
.customer-site .luxury-policy-dl dd {
  font-size: 13px;
  color: var(--polska-text-primary);
  margin: 3px 0 12px;
  line-height: 1.6;
}
.customer-site .policy-note {
  color: var(--polska-text-muted);
}

/* Confirmation Dialog */
.customer-site .booking-confirm {
  border: 1px solid var(--polska-border);
  border-radius: 4px;
  background: var(--polska-surface);
  color: var(--polska-text-primary);
  max-width: 540px;
  width: calc(100% - 32px);
  padding: 36px 32px;
  box-shadow: 0 12px 48px rgba(24, 34, 48, 0.16);
}
.customer-site .booking-confirm::backdrop {
  background: rgba(24, 34, 48, 0.55);
  backdrop-filter: blur(3px);
}
.customer-site .booking-confirm h2 {
  font-family: var(--polska-font-serif);
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  color: var(--polska-brand-strong);
  margin-bottom: 18px;
}
.customer-site .booking-confirm dt {
  color: var(--polska-text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--polska-border-light);
  padding-top: 10px;
}
.customer-site .booking-confirm dd {
  color: var(--polska-text-primary);
  font-size: 14px;
  margin: 3px 0 10px;
}
.customer-site .booking-confirm .actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--polska-border);
  padding-top: 20px;
}

/* Manage View & Status Badges */
.customer-site .manage-header {
  border-bottom: 1px solid var(--polska-border);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.customer-site .manage-title {
  font-family: var(--polska-font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--polska-brand-strong);
  letter-spacing: 0.04em;
  margin: 0;
}
.customer-site .manage-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
}
.customer-site .manage-badge.badge-confirmed {
  color: var(--polska-brand-primary);
  border: 1px solid var(--polska-brand-primary);
  background: var(--polska-brand-tint);
}
.customer-site .manage-badge.badge-pending {
  color: var(--polska-brand-accent);
  border: 1px solid var(--polska-brand-accent);
  background: var(--polska-brand-tint);
}
.customer-site .manage-badge.badge-cancelled,
.customer-site .manage-badge.badge-declined {
  color: var(--polska-text-muted);
  border: 1px solid var(--polska-border);
  background: transparent;
}
.customer-site .manage-detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--polska-border);
  font-size: 14px;
}
.customer-site .manage-detail-row:last-child {
  border-bottom: none;
}
.customer-site .manage-detail-row dt {
  color: var(--polska-text-secondary);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.customer-site .manage-detail-row dd {
  color: var(--polska-text-primary);
}

/* Footer */
.customer-site .luxury-footer {
  border-top: 1px solid var(--polska-border);
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 1160px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--polska-text-secondary);
  text-align: center;
}
.customer-site .footer-brand {
  font-family: var(--polska-font-serif-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--polska-brand-primary);
  text-transform: uppercase;
}
.customer-site .footer-powered {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35em;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--polska-text-muted);
}
.customer-site .luxury-footer .footer-powered span {
  display: inline;
  margin-top: 0;
  font-family: var(--polska-font-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.customer-site .luxury-footer .footer-powered-prefix {
  font-weight: 400;
  color: var(--polska-text-muted);
}
.customer-site .luxury-footer .footer-powered-brand,
.customer-site .luxury-footer .footer-powered-link {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--polska-text-secondary);
  text-decoration: none;
}
.customer-site .luxury-footer .footer-powered-link:hover {
  color: var(--polska-brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile Responsive Adjustments (320px - 768px) */
@media (max-width: 768px) {
  .customer-site .two-column {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .customer-site .luxury-brand-header {
    padding: 36px 16px 24px;
  }
  .customer-site .brand-logo {
    font-size: 28px;
  }
  .customer-site .brand-title {
    font-size: 20px;
  }
  .customer-site .luxury-main {
    padding: 24px 14px 60px;
  }
  .customer-site .luxury-card {
    padding: 24px 18px;
  }
  .customer-site .calendar-grid {
    grid-auto-rows: auto;
    gap: 2px;
  }
  .customer-site .calendar-pad {
    aspect-ratio: 1;
    height: auto;
  }
  .customer-site button.calendar-day-btn,
  .customer-site .calendar-day-btn {
    aspect-ratio: 1;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 38px;
    max-height: none;
    font-size: 11px;
    padding: 2px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin: 0;
    letter-spacing: 0;
    line-height: 1.2;
  }
  .customer-site .manage-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .customer-site .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .customer-site .luxury-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .customer-site .luxury-menu-card {
    padding: 12px 14px;
  }
  .customer-site .menu-card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .customer-site .menu-card-left {
    flex-wrap: wrap;
    gap: 6px 8px;
    width: 100%;
  }
  .customer-site .menu-card-right {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    border-top: 1px solid var(--polska-border-light);
    padding-top: 8px;
    margin-top: 2px;
  }
  .customer-site .menu-photo-frame {
    max-height: 210px;
  }
  .customer-site .menu-photo-lightbox {
    padding: 10px;
  }
  .customer-site .menu-photo-lightbox-surface {
    max-width: 96vw;
    padding: 10px 10px 12px;
  }
  .customer-site .menu-photo-lightbox-img {
    max-height: 70vh;
  }
  .customer-site .booking-confirm {
    padding: 24px 18px;
  }
  .customer-site .booking-confirm .actions {
    margin-top: 18px;
    padding-top: 16px;
  }
}
@media (max-width: 360px) {
  .customer-site .name-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .customer-site .form-grid {
    grid-template-columns: 1fr;
  }
  .customer-site .calendar-grid {
    gap: 1px;
  }
  .customer-site button.calendar-day-btn,
  .customer-site .calendar-day-btn {
    font-size: 10px;
    min-height: 32px;
    padding: 1px 0;
  }
}

/* ==========================================================================
   Admin & Customer UI Improvements (10-point update)
   ========================================================================== */

/* 1. Customer booking result clean luxury layout */
.customer-site .luxury-result-card {
  padding: 24px 20px;
  background: var(--polska-surface);
  border: 1px solid var(--polska-border);
  border-radius: 4px;
}
.customer-site .luxury-result-card .result-title {
  font-family: var(--polska-font-serif);
  font-size: 22px;
  letter-spacing: 0.05em;
  margin: 6px 0 16px;
  color: var(--polska-brand-strong);
}
.customer-site .request-pending-notice {
  background: var(--polska-request-bg);
  border: 1px solid var(--polska-request-border);
  border-left: 4px solid var(--polska-brand-primary);
  padding: 14px 18px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.customer-site .request-pending-lead {
  font-size: 15px;
  font-weight: 700;
  color: var(--polska-request-text);
  margin: 0 0 4px;
}
.customer-site .request-pending-sub {
  font-size: 13px;
  color: var(--polska-text-secondary);
  margin: 0;
  line-height: 1.6;
}
.customer-site .result-confirmed-lead {
  font-size: 14px;
  color: var(--polska-text-secondary);
  margin-bottom: 16px;
}
.customer-site .result-summary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--polska-surface-muted);
  border: 1px solid var(--polska-border);
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.customer-site .result-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dashed var(--polska-border-light);
  font-size: 14px;
}
.customer-site .result-summary-row:last-child {
  border-bottom: none;
}
.customer-site .result-summary-row dt {
  color: var(--polska-text-secondary);
  font-weight: 500;
  min-width: 90px;
}
.customer-site .result-summary-row dd {
  color: var(--polska-text-primary);
  font-weight: 600;
  margin: 0;
  text-align: right;
  word-break: break-all;
}
.customer-site .result-mail-status {
  background: var(--polska-brand-tint);
  border: 1px solid var(--polska-border);
  border-left: 3px solid var(--polska-brand-primary);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--polska-brand-strong);
  border-radius: 2px;
  margin: 0 0 16px;
}
.customer-site .result-manage-box {
  margin: 18px 0 12px;
  text-align: center;
}
.customer-site .result-manage-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.customer-site .result-id-subdued {
  font-size: 11px;
  color: var(--polska-text-muted);
  margin-top: 14px;
  text-align: center;
  word-break: break-all;
}


.luxury-result-card {
  padding: 24px 20px;
  background: #ffffff;
  border: 1px solid #e5e1da;
  border-radius: 4px;
}
.luxury-result-card .result-title {
  font-family: 'EB Garamond', 'Noto Serif JP', 'Yu Mincho', serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  margin: 6px 0 16px;
  color: #26231f;
}
.request-pending-notice {
  background: #fbf7ee;
  border-left: 4px solid #b88328;
  padding: 14px 16px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.request-pending-lead {
  font-size: 15px;
  font-weight: 700;
  color: #855d14;
  margin: 0 0 4px;
}
.request-pending-sub {
  font-size: 13px;
  color: #5c4e36;
  margin: 0;
  line-height: 1.6;
}
.result-confirmed-lead {
  font-size: 14px;
  color: #5c5245;
  margin-bottom: 16px;
}
.result-summary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: #faf8f5;
  border: 1px solid #eee8de;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.result-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dashed #e8e2d8;
  font-size: 14px;
}
.result-summary-row:last-child {
  border-bottom: none;
}
.result-summary-row dt {
  color: #77716a;
  font-weight: 500;
  min-width: 90px;
}
.result-summary-row dd {
  color: #26231f;
  font-weight: 600;
  margin: 0;
  text-align: right;
  word-break: break-all;
}
.result-mail-status {
  background: #f4f7f2;
  border-left: 3px solid #5a7d51;
  padding: 10px 14px;
  font-size: 13px;
  color: #2c4228;
  border-radius: 2px;
  margin: 0 0 16px;
}
.result-manage-box {
  margin: 18px 0 12px;
  text-align: center;
}
.result-manage-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.result-id-subdued {
  font-size: 11px;
  color: #9c9488;
  margin-top: 14px;
  text-align: center;
  word-break: break-all;
}

/* 2. Approve/Decline modal fields styling */
.modal-field-group {
  margin: 14px 0;
}
.modal-field-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #26231f;
  margin-bottom: 6px;
}
.modal-field-help {
  font-size: 12px;
  margin: 0 0 6px;
  line-height: 1.5;
}
.modal-field-help.customer-help {
  color: #b88328;
  font-weight: 500;
}
.modal-field-help.internal-help {
  color: #77716a;
}
.customer-message-input {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 12px;
  border: 1px solid #d9d2c5;
  border-radius: 4px;
  background: #ffffff;
  color: #26231f;
  box-sizing: border-box;
}
.customer-message-input:focus {
  border-color: #b88328;
  outline: none;
  box-shadow: 0 0 0 2px rgba(184, 131, 40, 0.18);
}
.modal-field-divider {
  height: 1px;
  background: #e8e2d5;
  margin: 16px 0 12px;
}
.internal-memo-group {
  background: #faf8f5;
  border: 1px dashed #ded7ca;
  border-radius: 4px;
  padding: 10px 12px;
}
.internal-memo-input {
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
  padding: 6px 10px;
  border: 1px solid #dcd5c8;
  border-radius: 3px;
  background: #fdfcf9;
  color: #554e44;
  box-sizing: border-box;
}

/* 4. Ledger calendar day button styling */
.ledger-calendar-card {
  margin-bottom: 20px;
  padding: 18px 20px;
}
.calendar-month-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #26231f;
}
.ledger-calendar-grid {
  gap: 4px;
  margin-top: 10px;
}
.ledger-calendar-day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 4px;
  border: 1px solid #e0d8cb;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.ledger-calendar-day:hover {
  background: #fbf7ee;
  border-color: #b88328;
}
.ledger-calendar-day.is-selected {
  border: 2px solid #b88328 !important;
  background: #fcf6ea !important;
  font-weight: 700;
  box-shadow: 0 0 0 1px #b88328;
}
.ledger-calendar-day.has-pending {
  border-left: 3px solid #b88328;
}
.ledger-day-num {
  font-size: 13px;
  font-weight: 600;
  color: #26231f;
}
.ledger-day-count {
  font-size: 11px;
  color: #77716a;
  margin-top: 2px;
  white-space: nowrap;
}
.ledger-calendar-day.has-booking .ledger-day-count {
  color: #855d14;
  font-weight: 600;
}
.ledger-calendar-day.has-pending .ledger-day-count {
  color: #b88328;
  font-weight: 700;
}
.ledger-calendar-day.zero-booking .ledger-day-count {
  color: #a89f92;
}

/* 6. Subdued styling for cancelled & declined reservations */
.reservation.status-cancelled,
.reservation.status-declined,
.reservation.status-no_show {
  opacity: 0.65;
  background: #faf8f5;
  border-color: #e5e1da;
  border-left-color: #b5ada3;
}
.reservation.status-cancelled:hover,
.reservation.status-declined:hover,
.reservation.status-no_show:hover {
  opacity: 0.95;
}

/* 8. Top-right Header Account Menu & Space Tightening */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: #26231f;
  color: #f7f5f0;
  position: relative;
  gap: 12px;
}
.admin-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.admin-header .header-badge {
  font-size: 11px;
  color: #b88328;
  letter-spacing: 0.1em;
  border: 1px solid rgba(184, 131, 40, 0.35);
  padding: 2px 6px;
  border-radius: 2px;
}
.header-public-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #f7f5f0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.header-public-link:hover, .header-public-link:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(197, 160, 89, 0.75);
  color: #ffffff;
}
.header-public-link .external-link-icon {
  flex-shrink: 0;
  opacity: 0.9;
}
.header-account {
  position: relative;
}
.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: #f7f5f0;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.account-menu-trigger:hover, .account-menu-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}
.account-email {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-caret {
  font-size: 10px;
  color: #c9c1b3;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  color: #26231f;
  border: 1px solid #e5e1da;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  padding: 12px 14px;
  z-index: 1000;
}
.account-dropdown-user {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.account-dropdown-label {
  display: block;
  font-size: 11px;
  color: #77716a;
}
.account-dropdown-email {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #26231f;
  word-break: break-all;
}
.account-logout-btn {
  display: block;
  padding: 8px 12px;
  background: #faf4f4;
  color: #992b2b;
  text-align: center;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.account-logout-btn:hover {
  background: #f4e8e8;
}

/* Page title margin reduction */
.page-title {
  margin: 14px 0 10px;
}
.page-title .eyebrow {
  margin-bottom: 2px;
}
#page-heading {
  margin: 0;
  font-size: 22px;
}

@media (max-width: 768px) {
  .admin-header {
    padding: 8px 14px;
  }
  .account-email {
    display: none;
  }
  .account-menu-trigger {
    padding: 6px 10px;
  }
  .ledger-calendar-day {
    min-height: 44px;
    padding: 2px;
  }
  .ledger-day-num {
    font-size: 12px;
  }
  .ledger-day-count {
    font-size: 10px;
  }
}

/* 9. POLSKA Admin Header & Contrast */
.admin-header .brand {
  color: #f7f5f0;
  text-decoration: none;
  font-family: Georgia, serif;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  letter-spacing: 0.04em;
}
.admin-header .brand strong {
  color: #ffffff;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.admin-header .brand strong span {
  color: #c5a059;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-family: sans-serif;
  margin-left: 4px;
}
.test-banner {
  background: #3e3321;
  color: #f0ddb9;
  padding: 5px 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.test-banner span {
  font-weight: 400;
  margin-left: 8px;
  color: #dfcdab;
}

/* 10. Admin Navigation 4-Item Tab UI */
.admin-tabs, #navigation {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #ece8df;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #dcd4c5;
  margin-bottom: 24px;
  position: static;
}
.admin-tabs button, #navigation button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  background: transparent;
  color: #635b50;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.admin-tabs button:hover, #navigation button:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #26231f;
}
.admin-tabs button.active, #navigation button.active {
  background: #ffffff;
  color: #1f3a2c;
  font-weight: 700;
  border-color: #c9bea8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 11. Booking Admin View Single Column Up-shifted */
.booking-admin-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.booking-admin-wrap #booking-form {
  margin-top: 0;
}

/* 12. Ledger Search Box */
.ledger-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ledger-search-box input[type="search"] {
  min-width: 240px;
  padding: 8px 12px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}
.ledger-search-box button {
  min-height: 40px;
  padding: 8px 14px;
  white-space: nowrap;
}

/* 13. Dialog Top Display & Action Buttons */
.booking-detail-dialog {
  max-width: 600px;
  width: calc(100% - 28px);
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.booking-detail-dialog h2 {
  outline: none;
}
.booking-detail-dialog .actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Responsive adjustments for SP */
@media (max-width: 680px) {
  .test-banner {
    padding: 4px 10px;
    font-size: 10px;
    line-height: 1.45;
  }
  .test-banner span {
    display: block;
    margin: 2px 0 0;
    font-size: 9.5px;
  }
  .admin-header {
    padding: 8px 12px;
    gap: 6px 8px;
    flex-wrap: wrap;
  }
  .admin-header .header-left {
    order: 1;
    gap: 6px;
    flex: 1 1 calc(100% - 64px);
    min-width: 0;
    margin-right: 0;
  }
  .admin-header .brand {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-header .brand strong {
    font-size: 15px;
  }
  .admin-header .brand strong span {
    display: none;
  }
  .admin-header .header-badge {
    font-size: 9.5px;
    padding: 1px 4px;
    white-space: nowrap;
  }
  .admin-header .header-account {
    order: 2;
    flex-shrink: 0;
  }
  .admin-header .header-public-link {
    order: 3;
    margin-left: auto;
    padding: 5px 10px;
    font-size: 12px;
    gap: 5px;
  }
  .account-menu-trigger {
    padding: 6px 8px;
    font-size: 12px;
  }
  .admin-tabs, #navigation {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
  }
  .admin-tabs button, #navigation button {
    min-height: 48px;
    font-size: 13px;
    padding: 12px 6px;
  }
  .ledger-search-box {
    margin-left: 0;
    width: 100%;
  }
  .ledger-search-box input[type="search"] {
    flex: 1;
    min-width: 0;
  }
  .booking-detail-dialog .actions {
    flex-direction: column;
    gap: 8px;
  }
  .booking-detail-dialog .actions button {
    width: 100%;
    min-height: 48px;
  }
}


/* ===== Ledger v5: calendar first -> day list -> compact summary ===== */
.ledger-calendar-card {
  margin-bottom: 12px;
  padding: 12px 14px 12px;
}
.ledger-calendar-card .calendar-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.ledger-calendar-card .calendar-nav-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.ledger-calendar-card .calendar-month-title {
  font-size: 16px;
  white-space: nowrap;
}
.ledger-calendar-card .calendar-nav button {
  min-height: 36px;
  padding: 6px 10px;
  white-space: nowrap;
}
.ledger-calendar-card .calendar-back {
  margin-top: 8px;
  min-height: 34px;
}
.ledger-calendar-grid {
  margin-top: 8px;
  gap: 4px;
}
.ledger-calendar-day.is-today .ledger-day-num {
  color: #b88328;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ledger-pending-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.ledger-pending-strip[hidden] {
  display: none;
}
.pending-strip-label {
  font-weight: 700;
  color: #855d14;
}
.pending-strip-more {
  color: #77716a;
}
.pending-strip-chip {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #b88328;
  border-radius: 999px;
  background: #fff;
  color: #855d14;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pending-strip-chip.is-selected {
  background: #fcf6ea;
  box-shadow: 0 0 0 1px #b88328;
}
.ledger-list-card {
  margin-bottom: 12px;
  padding: 14px 16px;
  scroll-margin-top: 8px;
}
.ledger-list-card #ledger-reservations-heading {
  margin: 0 0 4px;
  font-size: 18px;
  scroll-margin-top: 8px;
}
.ledger-list-card #ledger-reservations-sub {
  margin: 0 0 10px;
  font-size: 12px;
}
.ledger-search-card {
  margin-bottom: 12px;
  padding: 10px 14px;
}
.ledger-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ledger-search-title {
  font-size: 13px;
  font-weight: 700;
  color: #554e44;
  white-space: nowrap;
}
.ledger-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ledger-search-input-wrap input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}
.ledger-search-input-wrap button {
  min-height: 36px;
  padding: 6px 12px;
  white-space: nowrap;
  font-size: 13px;
}
.ledger-search-results-area {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ledger-search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ledger-search-results-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #855d14;
}
.ledger-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}
.ledger-search-result-card {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fdfcf9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-result-date {
  font-size: 13px;
  color: #26231f;
}
.search-result-name {
  font-size: 14px;
  font-weight: 700;
  color: #26231f;
}
.search-result-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: #77716a;
}
.search-result-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.ledger-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 4px;
}
.ledger-header-row #ledger-reservations-heading {
  margin: 0;
  font-size: 18px;
  scroll-margin-top: 8px;
}
.ledger-day-counts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ledger-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ledger-count-pill strong {
  font-size: 14px;
  font-weight: 700;
}
.pill-confirmed {
  background: #fcf6ea;
  color: #855d14;
  border: 1px solid #d4c4a8;
}
.pill-pending {
  background: #fdf5eb;
  color: #b88328;
  border: 1px solid #e2c99b;
}
.ledger-list-card {
  margin-bottom: 12px;
  padding: 14px 16px;
  scroll-margin-top: 8px;
}
.ledger-list-card #ledger-reservations-sub {
  margin: 0 0 10px;
  font-size: 12px;
}
.ledger-list-card .ledger-filter-bar {
  margin: 0 0 10px;
}
details.pending-banner > summary {
  cursor: pointer;
  list-style: none;
}
details.pending-banner > summary::-webkit-details-marker {
  display: none;
}
.page-title {
  margin: 8px 0 8px;
}
@media (max-width: 768px) {
  .page-title {
    margin: 6px 0 6px;
  }
  #page-heading {
    font-size: 20px;
  }
  .ledger-search-card {
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  .ledger-search-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .ledger-search-title {
    font-size: 12px;
    width: 100%;
  }
  .ledger-search-input-wrap {
    width: 100%;
  }
  .ledger-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ledger-day-counts {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  .ledger-count-pill {
    padding: 2px 8px;
    font-size: 11px;
  }
  .ledger-count-pill strong {
    font-size: 13px;
  }
  .ledger-calendar-card {
    padding: 10px 8px;
    margin-bottom: 10px;
  }
  .ledger-calendar-card .calendar-nav button {
    min-height: 34px;
    padding: 4px 8px;
    font-size: 12px;
  }
  .ledger-calendar-grid {
    gap: 3px;
    margin-top: 6px;
  }
  .ledger-calendar-day {
    min-height: 44px;
    padding: 2px 1px;
  }
  .ledger-day-num {
    font-size: 13px;
  }
  .ledger-day-count {
    font-size: 9.5px;
    margin-top: 1px;
    letter-spacing: -0.02em;
  }
  .ledger-list-card {
    padding: 12px 10px;
  }
  .ledger-list-card #ledger-reservations-heading {
    font-size: 17px;
  }
}

/* Customer-only state, feedback and accessible controls. */
.customer-site [data-customer-state]:not([data-customer-state="ready"]) > .view,
.customer-site [data-customer-state]:not([data-customer-state="ready"]) > .page-lead { display: none !important; }
.customer-site .luxury-main[data-customer-state="loading"] { min-height: 45vh; }
.customer-site .time-field { margin-top: 4px; }
.customer-site .note-field { margin-top: 14px; }
.customer-site .form-submit-actions { margin-top: 26px; }
.customer-site #manage-summary-actions { margin-top: 24px; }
.customer-site #manage-expired-note { margin-top: 16px; }
.customer-site #manage-form { margin-top: 24px; }
.customer-site .manage-form-actions { margin-top: 20px; }
.customer-site { --bg: var(--polska-bg); --paper: var(--polska-surface); --ink: var(--polska-text-primary); --muted: var(--polska-text-secondary); --line: var(--polska-border); --green: var(--polska-brand-primary); --gold: var(--polska-brand-primary); --red: var(--polska-error-text); }
.customer-site .customer-startup { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.customer-site .customer-startup[hidden] { display: none !important; }
.customer-site .customer-startup.customer-startup-slow {
  padding: 28px 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.customer-site .customer-startup.customer-startup-slow .customer-startup-message {
  margin: 0;
  font-size: 14px;
  color: var(--polska-text-secondary);
  letter-spacing: 0.04em;
}
.customer-site .customer-startup.customer-startup-error,
.customer-site .customer-startup.customer-startup-noscript {
  margin: 0 auto 32px;
}
.customer-site .customer-startup p:last-child { margin-bottom: 0; }
.customer-site input, .customer-site select, .customer-site textarea { border-color: var(--polska-input-border); }
.customer-site button:focus-visible, .customer-site a:focus-visible { outline: 2px solid var(--polska-focus-ring); outline-offset: 3px; }
.customer-site .invalid { border-color: var(--polska-error-text); }
.customer-site #message { background: var(--polska-brand-strong); color: var(--polska-surface); }
.customer-site #message.error { background: var(--polska-error-text); }
.customer-site .booking-confirm { background: var(--polska-surface); border-color: var(--polska-border); }
.customer-site .booking-confirm::backdrop { background: #18223066; }
.customer-site .success { border-color: var(--polska-success-border); }
.customer-site .calendar-day-btn:disabled[aria-pressed="true"] { background: var(--polska-surface-muted) !important; color: var(--polska-text-muted) !important; border-color: var(--polska-border); }
.customer-site .calendar-day-btn.is-today:disabled[aria-pressed="true"] { background: var(--polska-surface-muted) !important; color: var(--polska-text-muted) !important; border-color: rgba(184, 147, 86, 0.55) !important; }
.customer-site .menu-field-error { margin: 8px 0 0; }

/* Menu photo inside "+ 詳細" drawer (unified 16:9 landscape frame + lightbox) */
.customer-site .menu-photo-wrap {
  margin: 0 0 10px;
}
.customer-site .menu-photo-wrap:last-child {
  margin-bottom: 0;
}
.customer-site .menu-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: min(100%, 460px);
  aspect-ratio: 16 / 9;
  max-height: 260px;
  padding: 0;
  border: 1px solid #e1d9cb;
  border-radius: 6px;
  background: #f4f1ea;
  overflow: hidden;
  cursor: zoom-in;
}
.customer-site .menu-photo-frame:hover {
  border-color: #b89356;
}
.customer-site .menu-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.customer-site .menu-photo-zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(24, 34, 48, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.customer-site .menu-photo-lightbox {
  padding: 16px;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  margin: auto;
  overflow: visible;
}
.customer-site .menu-photo-lightbox::backdrop {
  background: rgba(16, 22, 30, 0.84);
}
.customer-site .menu-photo-lightbox[open]:not(:modal) {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(16, 22, 30, 0.84);
}
.customer-site .menu-photo-lightbox-surface {
  position: relative;
  margin: 0 auto;
  max-width: min(92vw, 960px);
  background: #ffffff;
  border-radius: 8px;
  padding: 14px 14px 12px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.customer-site .menu-photo-lightbox-close {
  align-self: flex-end;
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #d5cebf;
  background: #faf8f3;
  color: #26231f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.customer-site .menu-photo-lightbox-close:hover {
  background: #efeae0;
}
.customer-site .menu-photo-lightbox-stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f1ea;
  border-radius: 6px;
  overflow: hidden;
}
.customer-site .menu-photo-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.customer-site .menu-photo-lightbox-caption {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #26231f;
  text-align: center;
  word-break: break-word;
}
.customer-site .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;
}
.customer-site .booking-date-field {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
}
.customer-site .booking-date-field label {
  margin-bottom: 0;
  cursor: pointer;
}
.customer-site .booking-date-field.is-guarded label {
  cursor: default;
}
.customer-site .booking-date-control {
  position: relative;
  margin-top: 6px;
  width: 100%;
  min-width: 0;
}
.customer-site .booking-date-control input[type="date"] {
  margin-top: 0;
}
.customer-site button.booking-date-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  background: var(--polska-surface);
  border: 1px solid var(--polska-input-border);
  border-radius: 2px;
  color: var(--polska-text-primary);
  font-size: 16px;
  font-family: var(--polska-font-sans);
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.customer-site button.booking-date-display:hover:not(:disabled) {
  border-color: var(--polska-focus-ring);
}
.customer-site button.booking-date-display:focus,
.customer-site button.booking-date-display:focus-visible {
  outline: none;
  border-color: var(--polska-focus-ring);
  box-shadow: 0 0 0 3px var(--polska-focus-glow);
}
.customer-site button.booking-date-display.is-empty .booking-date-display-text {
  color: var(--polska-text-muted);
}
.customer-site button.booking-date-display.invalid {
  border-color: var(--polska-error-text);
}
.customer-site .booking-date-field.is-guarded button.booking-date-display,
.customer-site button.booking-date-display:disabled {
  background: var(--polska-surface-muted);
  color: var(--polska-text-muted);
  cursor: not-allowed;
  opacity: 0.78;
}
.customer-site button.booking-date-display:disabled .booking-date-display-icon {
  opacity: 0.55;
}
.customer-site .booking-date-display-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-site .booking-date-display-icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-top-width: 4px;
  border-radius: 2px;
  opacity: 0.68;
  box-sizing: border-box;
  margin-top: 2px;
}
.customer-site .booking-date-display-icon::before,
.customer-site .booking-date-display-icon::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 1.5px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}
.customer-site .booking-date-display-icon::before {
  left: 2.5px;
}
.customer-site .booking-date-display-icon::after {
  right: 2.5px;
}
.customer-site .availability-calendar.is-guided {
  border-color: var(--polska-focus-ring);
  box-shadow: 0 0 0 3px var(--polska-focus-glow);
}
.customer-site #booking-form .availability-calendar {
  margin: 16px 0 20px;
}
.customer-site #booking-form .calendar-grid:last-child {
  margin-bottom: 0;
}
.customer-site #booking-form .child-order-fields {
  margin: 0 0 18px;
  gap: 14px;
}
.customer-site #booking-form .child-order-fields label {
  margin-bottom: 0;
}
.customer-site #booking-form .child-order-summary {
  margin: 0;
  font-family: var(--polska-font-sans);
}
.customer-site #booking-form .child-order-summary.is-compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--polska-border);
}
.customer-site #booking-form .child-order-summary-count {
  font-family: var(--polska-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--polska-text-secondary);
  line-height: 1.5;
  padding-top: 2px;
  white-space: nowrap;
}
.customer-site #booking-form .child-order-summary-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
  min-width: 0;
}
.customer-site #booking-form .child-order-summary-total {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  color: var(--polska-brand-strong);
}
.customer-site #booking-form .child-order-summary-amount {
  font-family: var(--polska-font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--polska-brand-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.customer-site #booking-form .child-order-summary-tax {
  font-family: var(--polska-font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--polska-text-secondary);
  white-space: nowrap;
}
.customer-site #booking-form .child-order-summary-breakdown {
  font-family: var(--polska-font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--polska-text-muted);
  line-height: 1.4;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.customer-site #booking-form .child-order-summary.is-prompt {
  font-family: var(--polska-font-sans);
  font-size: 12px;
  color: var(--polska-text-muted);
  line-height: 1.6;
}
.customer-site .booking-confirm .confirm-policy-dd {
  margin-bottom: 4px;
}
.customer-site .booking-confirm .confirm-policy-box {
  background: var(--polska-surface-muted);
  border: 1px solid var(--polska-border-light);
  border-left: 2.5px solid var(--polska-brand-accent);
  border-radius: 2px;
  padding: 10px 14px;
}
.customer-site .booking-confirm .confirm-policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.customer-site .booking-confirm .confirm-policy-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--polska-font-sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--polska-text-primary);
}
.customer-site .booking-confirm .confirm-policy-row + .confirm-policy-row {
  padding-top: 6px;
  border-top: 1px solid var(--polska-border-light);
}
.customer-site .booking-confirm .confirm-policy-when {
  min-width: 0;
}
.customer-site .booking-confirm .confirm-policy-rate {
  font-family: var(--polska-font-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--polska-brand-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}
.customer-site .booking-confirm .confirm-policy-empty {
  margin: 0;
  font-family: var(--polska-font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--polska-text-secondary);
}
.customer-site .booking-confirm .policy-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-family: var(--polska-font-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--polska-text-primary);
  cursor: pointer;
}
.customer-site .booking-confirm .policy-consent input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--polska-brand-primary);
  cursor: pointer;
}
