
/* Minimal Streamlit-like look */
:root {
  --bg: #0e1117;
  --panel: #111827;
  --accent: #00c2a8; /* Streamlit-ish teal */
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #ef4444;
  --ok: #10b981;
  --card: #1f2937;
  --input: #111827;
  --border: #30363d;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}
.theme-light{
  --bg:#f8fafc;
  --panel:#ffffff;
  --card:#ffffff;
  --input:#ffffff;
  --text:#0f172a;
  --muted:#4b5563;
  --border:#e5e7eb;
  --accent:#0ea5e9;
  --shadow:0 12px 36px rgba(15,23,42,.08);
  background:
    radial-gradient(1200px 800px at 18% -10%, rgba(14,165,233,.10), transparent 60%),
    radial-gradient(1000px 700px at 110% 120%, rgba(14,165,233,.08), transparent 60%),
    var(--bg);
  color:var(--text);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 10% -10%, rgba(0,194,168,.10), transparent 60%),
              radial-gradient(1000px 600px at 120% 120%, rgba(0,194,168,.08), transparent 60%),
              var(--bg);
  color:var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}
.container{
  display:grid;
  grid-template-columns: minmax(0,1fr);
  min-height:100%;
}
.header{
  display:flex; gap:12px; align-items:center; justify-content:center;
  padding:20px 16px 8px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.02em;
}
.brand .dot{
  width:14px; height:14px; border-radius:999px; background:var(--accent); box-shadow:0 0 0 4px rgba(0,194,168,.2);
}
.theme-light .brand .dot{ box-shadow:0 0 0 4px rgba(14,165,233,.16); }
.brand h1{ margin:0; font-size:20px}
.main{
  display:grid; place-items:center;
  padding:24px 16px 64px;
}
.card{
  width:100%;
  max-width:720px;
  margin:0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)) , var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
}
.theme-light .card{
  background:var(--card);
  border-color:var(--border);
}
.card--wide{
  width:100%;
  max-width:1100px;
  margin:0 auto;
}
.card .row{
  display:grid; gap:20px;
  grid-template-columns: 1.2fr .8fr; /* main form + side */
}
@media (max-width: 860px){
  .card .row{ grid-template-columns: 1fr }
}
.h2{
  margin:0 0 8px; font-size: clamp(18px, 2.5vw, 22px); font-weight:800;
}
.p{ color:var(--muted); margin: 0 0 18px }
.form{
  display:grid; gap:14px;
}
label{ font-size:14px; color:var(--muted) }
.input, .select{
  width:100%; padding:12px 12px;
  background:var(--input);
  border:1px solid var(--border);
  color:var(--text);
  border-radius:10px;
  outline:none;
}
.input:focus{ border-color: var(--accent); box-shadow:0 0 0 4px rgba(0,194,168,.1) }
.theme-light .input:focus,
.theme-light .select:focus{
  box-shadow:0 0 0 4px rgba(14,165,233,.14);
}
.mobile-white .input,
.mobile-white .select{
  background:#fff;
  border:1px solid #d1d5db;
  color:#0f172a;
}
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:12px }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding:12px 14px; border-radius:10px; border:1px solid transparent; cursor:pointer;
  background:linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,0)) , var(--accent);
  color:#002b26; font-weight:800; letter-spacing:.02em;
  transition: transform .02s ease, filter .2s ease, box-shadow .2s ease;
}
.theme-light .btn{
  color:#0b1f2f;
  box-shadow:0 10px 30px rgba(14,165,233,.18);
}
.btn:hover{ filter:brightness(1.03) }
.btn:active{ transform: translateY(1px) }
.btn.secondary{
  background:transparent; color:var(--text); border-color:var(--border);
}
.alert{ padding:10px 12px; border-radius:10px; border:1px solid var(--border); background:#101418; color:var(--muted) }
.theme-light .alert{
  background:#f1f5f9;
  border-color:#e5e7eb;
  color:#0f172a;
}
.mobile-white .alert{
  background:#f1f5f9;
  border-color:#e5e7eb;
  color:#0f172a;
}
.link{ color:var(--accent); text-decoration:none }
.mobile-white .link{ color:#0ea5e9; }
.theme-light .hr{
  background:linear-gradient(90deg, transparent, rgba(15,23,42,.08), transparent);
}
.hr{ height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); margin: 14px 0 }
.kv{
  display:grid; gap:8px; font-size:14px; color:var(--muted)
}
.badge{
  display:inline-flex; align-items:center; gap:.45em;
  font-size:12px; color:#88f7e9; background:rgba(0,194,168,.1); border:1px solid rgba(0,194,168,.25);
  padding:6px 8px; border-radius:999px;
}
.theme-light .badge{
  color:#0f172a;
  background:rgba(14,165,233,.12);
  border-color:rgba(14,165,233,.24);
}
.footer{
  max-width:720px; margin:14px auto 0; text-align:center; color:var(--muted); font-size:12px
}
.small{ font-size:12px; color:var(--muted) }

.card-header{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
  align-items:flex-start;
}
.card-actions{ display:flex; gap:10px; flex-wrap:wrap }
.quick-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
}
.quick-link{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
  transition:background .2s ease, border-color .2s ease, transform .1s ease;
}
.quick-link:hover{
  background:rgba(0,194,168,.12);
  border-color:rgba(0,194,168,.4);
}
.quick-link:focus{
  outline:none;
  box-shadow:0 0 0 2px rgba(0,194,168,.35);
}
.quick-links [data-open-tab="tab-calendar"]{
  display:none !important;
}
.profile-headline{ font-size:20px; display:flex; align-items:center; gap:8px; margin-top:6px }
.muted{ color:var(--muted) }
.small-meta{ font-size:13px; margin-top:4px }
.tab-nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.tab-btn{
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  transition:all .2s ease;
}
.tab-btn.is-active{
  color:#002b26;
  background:var(--accent);
  border-color:transparent;
}
.tab-panels{ display:grid }
.tab-panel{ display:none }
.tab-panel.is-active{ display:block }

.calendar-layout{
  display:grid;
  grid-template-columns:1fr minmax(0,380px);
  gap:24px;
}
@media (max-width: 960px){
  .calendar-layout{
    grid-template-columns:1fr;
  }
}
.mobile-white{
  background:#f7fafc;
  color:#1f2937;
}
.mobile-white body{
  background:#f7fafc;
}
.mobile-white .main{
  padding:16px 8px 32px;
}
.mobile-white .card,
.mobile-white .card,
.mobile-white .calendar-card,
.mobile-white .slots-card{
  background:#fff;
  border:1px solid #e5e7eb;
}
.mobile-white .schedule-table{
  background:#fff;
  color:#1f2937;
}
.mobile-white .schedule-table__head,
.mobile-white .schedule-table__time{
  color:#4b5563;
  border-color:#e5e7eb;
}
.mobile-white .schedule-table__cell{
  border-color:#e5e7eb;
  color:#111827;
}
.mobile-white .slot-link,
.mobile-white .slot-mark{
  color:#0f172a;
}
.mobile-white .slot-link{
  background:#fff;
  border:1px solid #38bdf8;
}
.mobile-white .slot-link:hover{
  background:#e0f2fe;
}
.mobile-white .slot-mark--full{
  background:#fee2e2;
  color:#b91c1c;
  border-color:#fecdd3;
}
.mobile-white .btn{
  background:#38bdf8;
  color:#0b1f2f;
  border-color:#0ea5e9;
}
.mobile-white .btn.secondary{
  background:#fff;
  color:#1f2937;
  border-color:#d1d5db;
}
.mobile-white .chip,
.mobile-white .quick-link,
.mobile-white .tab-btn{
  background:#e5e7eb;
  border:1px solid #d1d5db;
  color:#1f2937;
}
.mobile-white .chip.is-active,
.mobile-white .tab-btn.is-active{
  background:#38bdf8;
  border-color:#0ea5e9;
  color:#0b1f2f;
}
.mobile-white .badge,
.mobile-white .panel-title,
.mobile-white .calendar-range,
.mobile-white .schedule-table__time,
.mobile-white .schedule-table__head--day{
  color:#1f2937;
}
.mobile-white a,
.mobile-white .link{
  color:#0ea5e9;
}
.calendar-card, .slots-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  background:rgba(255,255,255,.02);
  min-height:280px;
}
.unified .slots-flash{
  color:#b91c1c;
}
.admin-card .admin-grid--2col{
  display:grid;
  gap:20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.reservation-table{
  margin-top:18px;
  display:grid;
  gap:10px;
}
.resv-row{
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  display:grid;
  gap:6px;
  grid-template-columns: 1fr auto;
  align-items:center;
}
.resv-row--compact{
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.resv-meta{ color:var(--muted); font-size:12px }
.resv-time{ font-weight:700; color:var(--text) }
.resv-user{ font-size:14px }
.resv-name{ font-weight:700 }
.resv-status{ font-weight:700; color:#a5f3fc }
.resv-note{ grid-column:1/-1; font-size:12px; color:var(--muted); }
@media (max-width: 640px){
  .resv-row{ grid-template-columns:1fr; }
}
.reservation-calendar{
  margin-top:18px;
  overflow-x:auto;
}
.tag-list{ display:flex; flex-wrap:wrap; gap:6px; }
.tag{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:8px;
  background:rgba(239,68,68,.12);
  color:#fecdd3;
  border:1px solid rgba(239,68,68,.3);
  font-size:12px;
}
.calendar-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:12px;
}
.calendar-header--range{
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
.calendar-range{ color:var(--text); }
.mobile-white .calendar-range{ color:#0f172a; }
@media (max-width:520px){
  .calendar-header{ margin-bottom:8px; }
}
.calendar-range{
  font-size:18px;
  font-weight:700;
}
.calendar-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.calendar-month{ font-size:20px; font-weight:700 }
.calendar-subline{ display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:var(--muted); margin-bottom:12px }
.legend-item{ display:flex; align-items:center; gap:6px }
.legend{
  width:14px; height:14px; border-radius:4px; display:inline-block;
}
.legend--available{ background:rgba(16,185,129,.7) }
.legend--full{ background:rgba(239,68,68,.7) }
.legend--closed{ background:rgba(107,114,128,.5) }
.icon-btn{
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  width:34px; height:34px;
  border-radius:8px;
  cursor:pointer;
}
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
}
.calendar-table{
  overflow-x:auto;
  max-width:100%;
  width:100%;
  padding-left:4px;
  padding-right:4px;
}
.calendar-table::-webkit-scrollbar{
  height:8px;
}
.calendar-table::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,.6);
  border-radius:999px;
}
.calendar-unified{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  box-sizing:border-box;
}
.calendar-unified .calendar-table{
  width:100%;
  background:transparent;
}
.unified .calendar-table{
  padding-left:0;
  padding-right:0;
}
.calendar-unified .slots-panel{
  background:transparent;
  border:0;
  border-radius:0;
  padding:12px 0 0;
  box-shadow:none;
  width:100%;
  box-sizing:border-box;
}
.calendar-unified .slots-panel .muted,
.calendar-unified .panel-title,
.calendar-unified .calendar-range{
  color:#1f2937;
}
.calendar-unified .slots-note textarea{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  color:#111827;
  width:100%;
  box-sizing:border-box;
}
.unified-panel{
  padding:12px 0 0;
}
.schedule-table{
  width:100%;
  border-collapse:collapse;
  min-width:100%;
  table-layout:fixed;
  font-size:14px;
}
.schedule-table__head{
  padding:10px 6px;
  border-bottom:1px solid var(--border);
  text-align:center;
  color:var(--muted);
  font-weight:700;
}
.schedule-table__head--time{
  text-align:left;
  width:64px;
  padding-left:6px;
  padding-right:2px;
}
.schedule-table__head--day.is-selected .day-button{
  border-color:rgba(0,194,168,.5);
  background:rgba(0,194,168,.12);
}
.schedule-table__head--day.is-today .day-button{
  box-shadow:0 0 0 1px rgba(0,194,168,.35);
}
.schedule-table__head--day.is-holiday .day-button{
  border-color:rgba(239,68,68,.6);
  color:#fecdd3;
}
.schedule-table__time{
  padding:8px 4px 8px 8px;
  border-bottom:1px solid var(--border);
  font-weight:700;
  text-align:left;
  color:var(--text);
  width:80px;
}
.unified .schedule-table__time{
  color:var(--text);
}
.mobile-white .schedule-table__time{
  color:#1f2937;
}
.mobile-white .muted{
  color:#4b5563;
}
.schedule-table__head--time{
  text-align:left;
  width:64px;
  padding-left:6px;
  padding-right:2px;
}
@media (max-width: 520px){
  .schedule-table__time,
  .schedule-table__head--time{
    width:40px !important;
    padding-left:2px;
    padding-right:2px;
    font-size:12px;
  }
  .calendar-header--range{ padding-left:0; padding-right:0; }
  .calendar-table{ padding-left:0; padding-right:0; }
}
.schedule-table__cell{
  padding:8px 6px;
  border-bottom:1px solid var(--border);
  text-align:center;
  min-width:80px;
}
@media (max-width: 520px){
  .schedule-table__cell{
    min-width:80px;
    padding:8px 6px;
    font-size:14px;
  }
}
.schedule-table__cell{
  padding:8px 6px;
  border-bottom:1px solid var(--border);
  text-align:center;
  min-width:80px;
}
.schedule-table__cell.is-selected{
  background:rgba(16,185,129,.15);
  box-shadow:inset 0 0 0 2px rgba(16,185,129,.9);
  border-radius:10px;
}
.schedule-table__cell.is-selected .slot-link,
.schedule-table__cell.is-selected .slot-mark{
  background:rgba(16,185,129,.2);
  border-color:rgba(16,185,129,.8);
  color:var(--text);
}
.mobile-white .schedule-table__cell.is-selected{
  background:#e0f2fe;
  box-shadow:inset 0 0 0 2px #0ea5e9;
}
.mobile-white .schedule-table__cell.is-selected .slot-link,
.mobile-white .schedule-table__cell.is-selected .slot-mark{
  background:#e0f2fe;
  border-color:#0ea5e9;
  color:#0b1f2f;
}
.schedule-table__cell.is-today{
  
}
.day-button{
  display:grid;
  gap:2px;
  width:100%;
  background:rgba(17,24,39,.6);
  border:1px solid var(--border);
  color:var(--text);
  padding:6px 4px;
  border-radius:10px;
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease;
  line-height:1.2;
}
.day-button:hover{
  border-color:rgba(0,194,168,.4);
}
.unified .day-button{
  color:var(--text);
  border-color:var(--border);
  background:rgba(17,24,39,.7);
}
.mobile-white .day-button{
  background:#ffffff;
  border-color:#d1d5db;
  color:#111827;
}
.mobile-white .day-button__week,
.mobile-white .day-button__date{
  color:#0f172a;
}
.mobile-white .day-button__holiday{
  color:#b91c1c;
}
.day-button__date{
  font-weight:700;
  font-size:14px;
}
.day-button__week{
  font-size:11px;
  color:var(--muted);
}
.mobile-white .calendar-header--range .calendar-toolbar .chip,
.mobile-white .calendar-header--range .calendar-range{
  color:#0f172a;
}
.day-button__holiday{
  display:inline-block;
  margin-top:2px;
  font-size:11px;
  color:#fca5a5;
}
@media (max-width: 520px){
  .day-button{
    padding:6px 3px;
    min-height:58px;
  }
  .day-button__date{ font-size:12px; }
  .day-button__week{ font-size:10px; }
}
.slot-stack{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
}
.slot-link,
.slot-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:32px;
  border-radius:999px;
  font-weight:700;
  font-size:16px;
  line-height:32px;
  transition:background .2s ease, border-color .2s ease, transform .1s ease, color .2s ease;
}
.slot-link{
  border:1px solid rgba(16,185,129,.55);
  background:rgba(16,185,129,.18);
  color:var(--text);
  text-decoration:none;
}
.mobile-white .slot-link{
  color:#0b1f2f;
}
.schedule-table__cell.is-selected .slot-link,
.schedule-table__cell.is-selected .slot-mark{
  background:rgba(16,185,129,.28);
  border-color:rgba(16,185,129,.85);
  color:var(--text);
}
.resv-slot .slot-link{
  background:rgba(16,185,129,.22);
  color:#e5f6f3;
  border-color:rgba(16,185,129,.6);
  padding:0 12px;
}
.resv-slot .slot-link:hover{
  background:rgba(16,185,129,.3);
}
.slot-link:hover{
  background:rgba(16,185,129,.28);
}
.slot-link.is-selected{
  background:rgba(0,194,168,.3);
  box-shadow:0 0 0 1px rgba(0,194,168,.6);
}
.slot-mark{
  border:1px solid rgba(255,255,255,.12);
  color:var(--muted);
}
.slot-mark--full{
  border-color:rgba(239,68,68,.5);
  color:#fca5a5;
}
.slot-mark--booked{
  border-color:rgba(16,185,129,.6);
  color:#34d399;
}
.slot-mark--empty{
  border-color:transparent;
  opacity:.6;
}
.is-hidden{ display:none !important }
.calendar-cell{
  border-radius:10px;
  padding:10px 6px;
  text-align:center;
  font-size:14px;
  background:rgba(17,24,39,.7);
  border:1px solid rgba(255,255,255,.05);
  color:var(--muted);
}
.calendar-cell--head{
  font-weight:700;
  background:transparent;
  border:none;
  color:var(--text);
}
.calendar-cell--spacer{
  background:transparent;
  border:none;
}
.calendar-cell--day{
  background:rgba(17,24,39,.85);
  color:var(--text);
  cursor:pointer;
  transition:all .2s ease;
}
.calendar-cell--day.is-available{
  border-color:rgba(16,185,129,.4);
}
.calendar-cell--day.is-full{
  border-color:rgba(239,68,68,.4);
  color:#fca5a5;
}
.calendar-cell--day.is-closed{
  color:var(--muted);
}
.calendar-cell--day.is-selected{
  box-shadow:0 0 0 2px rgba(0,194,168,.45);
}
.calendar-cell--day.is-today{
  position:relative;
}
.calendar-cell--day.is-today::after{
  content:'';
  position:absolute;
  left:50%; bottom:6px;
  transform:translateX(-50%);
  width:6px; height:6px;
  border-radius:999px;
  background:var(--accent);
}
.slots-card{ display:flex; flex-direction:column; gap:16px }
.slots-card .panel-title{ margin:0; font-size:18px }
.reservation-summary{
  display:grid;
  gap:16px;
}
.reservation-summary dt,
.reservation-summary dd{
  color:var(--text);
}
.reservation-summary [data-confirm-date],
.reservation-summary [data-confirm-time],
.reservation-summary [data-confirm-kind]{
  color:var(--text);
}
.mobile-white .slots-panel{
  background:#ffffff;
  border:1px solid #e5e7eb;
  color:#0f172a;
}
.mobile-white .slots-panel .muted,
.mobile-white .slots-panel dt,
.mobile-white .slots-panel dd,
.mobile-white .slots-panel label{
  color:#0f172a;
}
.mobile-white .slots-panel .panel-title{
  color:#0f172a;
}
.mobile-white .slots-note textarea{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  color:#0f172a;
}
.mobile-white .slots-panel .btn{
  color:#0b1f2f;
}

.reservation-summary__list{
  display:grid;
  gap:12px;
}
.reservation-summary__list div{
  display:grid;
  grid-template-columns:80px 1fr;
  gap:12px;
}
.reservation-summary__list dt{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.reservation-summary__list dd{
  margin:0;
  font-weight:700;
  color:var(--text);
}
.reservation-confirm-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.slots-note textarea{
  width:100%;
  min-height:68px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--input);
  color:var(--text);
  padding:10px;
  resize:vertical;
}
.slots-flash{
  display:none;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  font-size:14px;
  font-weight:700;
  line-height:1.4;
}
.slots-flash.is-visible{
  display:flex;
}
.slots-flash__icon{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  font-size:14px;
}
.mobile-white .slots-flash{
  color:#0f172a;
}
.slots-flash--success{
  color:var(--ok);
  border-color:rgba(16,185,129,.5);
  background:rgba(16,185,129,.08);
}
.slots-flash--success .slots-flash__icon{
  background:rgba(16,185,129,.18);
}
.slots-flash--error{
  color:var(--danger);
  border-color:rgba(239,68,68,.45);
  background:rgba(239,68,68,.08);
}
.slots-flash--error .slots-flash__icon{
  background:rgba(239,68,68,.18);
}
.slots-flash--info{
  color:#60a5fa;
  border-color:rgba(96,165,250,.45);
  background:rgba(96,165,250,.08);
}
.slots-flash--info .slots-flash__icon{
  background:rgba(96,165,250,.18);
}
.slots-flash--warning{
  color:#f97316;
  border-color:rgba(249,115,22,.4);
  background:rgba(249,115,22,.08);
}
.slots-flash--warning .slots-flash__icon{
  background:rgba(249,115,22,.18);
}
.slots-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.slot-row{
  display:grid;
  grid-template-columns:120px 1fr auto;
  gap:12px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  align-items:center;
}
@media (max-width:700px){
  .slot-row{
    grid-template-columns:1fr;
    text-align:left;
  }
}
.slot-row.is-full{ opacity:.6 }
.slot-row.is-booked{ border-color:rgba(16,185,129,.5) }
.slot-time{ font-weight:700 }
.slot-meta{ font-size:13px; color:var(--muted) }
.slot-actions{ display:flex; gap:10px; align-items:center; justify-content:flex-end }
.chip{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:12px;
  color:var(--text);
  cursor:pointer;
  background:rgba(255,255,255,.08);
  transition:all .2s ease;
}
.chip.is-active{
  background:var(--accent);
  border-color:transparent;
  color:#0f172a;
}
.chip:hover{
  background:rgba(255,255,255,.14);
}
.btn.danger{
  background:linear-gradient(180deg, rgba(239,68,68,.18), rgba(239,68,68,.08));
  color:#b91c1c; /* 赤系の文字色 */
  border-color:#fca5a5;
}
.reservations-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}
.toolbar-buttons{ display:flex; gap:8px; flex-wrap:wrap }
.reservation-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.reservation-card{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px 16px;
  background:#f8fafc;
  color:#0f172a;
  display:grid;
  gap:12px;
}
.unified .reservation-card{
  background:#ffffff;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.reservation-card.is-cancelled{
  opacity:.6;
}
.reservation-card.is-pending-reschedule{
  box-shadow:0 0 0 2px rgba(96,165,250,.5);
}
.reservation-card__header{
  display:flex;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}
.reservation-card__title{ font-weight:700; color:#0f172a; }
.unified .reservation-card__title{ color:#0f172a; }
.reservation-card__kind{ color:#475569; font-size:13px }
.unified .reservation-card__kind{ color:#4b5563; }
.reservation-card__body{ display:grid; gap:6px; font-size:14px; color:#0f172a; }
.unified .reservation-card__body{ color:#0f172a; }
.reservation-card__actions{ display:flex; gap:10px; flex-wrap:wrap }

.profile-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
}
.form-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:14px;
  color:var(--muted);
}
.form-field.wide{
  grid-column: span 2;
}
.form-field input,
.form-field select{
  padding:12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  color:var(--text);
}
.form-field select[name="reservation_type_id"],
.form-field select[data-proxy-type]{
  background:var(--input);
  color:var(--text);
}
.form-field input:focus,
.form-field select:focus{
  border-color:var(--accent);
  outline:none;
  box-shadow:0 0 0 4px rgba(0,194,168,.12);
}
.mobile-white .form-field input,
.mobile-white .form-field select{
  background:#fff;
  border:1px solid #d1d5db;
  color:#0f172a;
}
.mobile-white .form-field select[name="reservation_type_id"],
.mobile-white .form-field select[data-proxy-type]{
  background:#fff;
  color:#0f172a;
}
.form-switches{ font-size:14px; color:var(--muted) }
.profile-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.profile-status{
  font-size:13px;
}
.profile-status--success{ color:var(--ok) }
.profile-status--error{ color:var(--danger) }
.profile-status--info{ color:#60a5fa }

.admin-card{
  display:flex;
  flex-direction:column;
  gap:24px;
}
.admin-form{
  display:flex;
  flex-direction:column;
  gap:28px;
}
.admin-section{
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  padding:18px;
  margin:0;
}
.admin-section legend{
  padding:0 6px;
  font-size:14px;
  color:#88f7e9;
}
.admin-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  margin-top:10px;
}
.weekday-checks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}
.weekday-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  font-size:13px;
  color:var(--muted);
}
.weekday-item input{
  accent-color:var(--accent);
}

.unified .calendar-card{border:none;padding:0;margin:0;background:transparent;box-shadow:none;border-radius:0;}
.unified .calendar-table{padding:8px 0;background:transparent;}
.unified .calendar-header--range{padding:0 4px 8px;}
.unified-card{
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  padding:20px;
}
.mobile-white .unified-card{
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
}
.unified .slots-panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  box-shadow:none;
  width:100%;
  box-sizing:border-box;
  color:var(--text);
}
.unified .slots-panel .muted,
.unified .calendar-range,
.unified .panel-title{
  color:var(--text);
}
.unified .slots-panel label,
.unified .slots-panel dt,
.unified .slots-panel dd{
  color:var(--text);
}
.unified .slots-note textarea{
  background:var(--input);
  border:1px solid var(--border);
  color:var(--text);
  width:100%;
  box-sizing:border-box;
}
.unified .slots-flash{
  color:var(--text);
}
.mobile-white .unified .slots-panel{
  background:#ffffff;
  border:1px solid #e5e7eb;
  color:#0f172a;
}
.mobile-white .unified .slots-panel .muted,
.mobile-white .unified .panel-title,
.mobile-white .unified .slots-panel label,
.mobile-white .unified .slots-panel dt,
.mobile-white .unified .slots-panel dd{
  color:#0f172a;
}
.mobile-white .unified .slots-note textarea{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  color:#0f172a;
}
.mobile-white .unified .slots-flash{
  color:#0f172a;
}
