:root {
  color-scheme: light;
  --canvas:#f7f3ed;
  --paper:#fffcf8;
  --ink:#2b1d21;
  --faint:#695a60;
  --accent:#79233e;
  --accent-dark:#59172c;
  --border:#e6dcd5;
  --tint:#f5e8ed;
  --dark:#281c22;
  --serif: Georgia, "Times New Roman", serif;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color:var(--ink);
  background:var(--canvas);
}
*,*::before,*::after { box-sizing:border-box }
body { margin:0 }
[hidden] { display:none !important }
button,input,select,textarea { font:inherit }
button,select { cursor:pointer }
button:disabled { opacity:.64; cursor:wait }
a { color:inherit }
:focus-visible { outline:2px solid #aa4e6d; outline-offset:3px }
h1,h2,h3,p { margin:0 }
h1,h2 { font-family:var(--serif); font-weight:400; letter-spacing:-.05em }
h1 { font-size:clamp(35px, 5vw, 56px); line-height:1 }
h2 { font-size:27px; line-height:1.13 }
h3 { font-size:15px }
p { line-height:1.55 }
.brand { display:inline-flex; gap:9px; align-items:center; text-decoration:none; font-size:24px; letter-spacing:-.07em; font-weight:650; white-space:nowrap }
.brand-dot { color:#b75071 }
.icon { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round }
.muted { color:var(--faint); font-size:14px }
.auth { min-height:100dvh; display:grid; grid-template-columns: minmax(340px, .7fr) minmax(0, 1fr) }
.auth-form { width:min(440px, calc(100% - 64px)); margin:auto; padding:35px 0; min-width:0 }
.auth-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:clamp(32px, 7vh, 85px) }
.auth-form h1 { margin-bottom:10px }
.auth-form form { margin-top:27px }
.auth-hero { position:relative; isolation:isolate; display:grid; align-content:end; padding:clamp(36px,7vw,100px); background:#2e1e21; min-height:540px; color:#fff9ef }
.auth-hero::before,.auth-hero::after { position:absolute; inset:0; content:""; z-index:-1 }
.auth-hero::before { background:center/cover url("maison-lune.webp") }
.auth-hero::after { background:linear-gradient(180deg,#2716200f 30%, #26191fed 100%) }
.auth-hero h2 { font-size:clamp(38px, 7vw, 83px); line-height:.97; max-width:9ch }
.auth-hero p { color:#f3dccd; margin-top:21px; max-width:32ch }
.auth-footer { margin-top:30px; display:flex; gap:14px; flex-wrap:wrap; color:var(--faint); font-size:12px }
.auth-footer a,.text-link { color:var(--accent); text-decoration:none }
.auth-footer a:hover,.text-link:hover { text-decoration:underline }
.workspace { display:grid; grid-template-columns:235px minmax(0, 1fr); min-height:100dvh }
.sidebar { position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; gap:20px; padding:23px 15px 17px; color:#f7ebe5; background:var(--dark) }
.sidebar .brand { margin:0 6px 12px }
.sidebar .brand-dot { color:#eb97ac }
.workspace-label { padding:13px 10px 11px; border-block:1px solid #ffffff21; display:grid; gap:3px; overflow-wrap:anywhere; font-size:14px; font-weight:700 }
.workspace-label small { color:#cfbfc3; font-weight:500; font-size:11px }
.nav { display:grid; gap:5px }
.nav button,.side-exit { color:#e7d5da; border:0; min-height:43px; padding:8px 10px; border-radius:8px; background:transparent; display:flex; text-decoration:none; align-items:center; gap:11px; font-size:13px; font-weight:650; text-align:left }
.nav button[aria-current="page"],.nav button:hover,.side-exit:hover { color:#fff; background:#ffffff19 }
.aside-bottom { display:grid; gap:3px; margin-top:auto }
.surface { min-width:0; padding:30px clamp(22px,4vw,63px) 48px; width:100%; max-width:1540px; margin-inline:auto }
.toolbar,.split,.page-head { display:flex; justify-content:space-between; align-items:center; gap:15px; flex-wrap:wrap }
.toolbar { padding-bottom:19px; margin-bottom:25px; border-bottom:1px solid var(--border) }
.toolbar-brand { color:var(--faint); font-size:13px }
.user { font-size:13px; font-weight:670; display:flex; gap:9px; align-items:center }
.toolbar-actions { display:flex; gap:12px; align-items:center }
.avatar { width:30px; height:30px; background:var(--tint); color:var(--accent-dark); border-radius:50%; display:grid; place-items:center; font-size:12px }
.page-head { margin-bottom:20px }
.page-head p { margin-top:8px }
.button,.button-secondary,.text-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:41px; padding:8px 14px; border-radius:8px; border:1px solid transparent; font-size:13px; font-weight:720; text-decoration:none; white-space:normal }
.button { background:var(--accent); color:#fff }
.button:hover { background:var(--accent-dark) }
.button-secondary { background:var(--paper); color:var(--ink); border-color:var(--border) }
.button-secondary:hover { border-color:var(--accent); color:var(--accent) }
.text-button { border:0; background:transparent; color:var(--accent) }
.text-button:hover { text-decoration:underline }
.auth-form .button { width:100% }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px }
.stat,.card { min-width:0; border:1px solid var(--border); border-radius:12px; background:var(--paper) }
.stat { display:grid; gap:12px; padding:17px }
.stat strong { font:400 36px/.95 var(--serif); letter-spacing:-.045em }
.stat span { color:var(--faint); font-size:13px; font-weight:650 }
.card { padding:19px; margin-bottom:16px }
.card h2 { margin-bottom:13px }
.card .split h2 { margin-bottom:0 }
.card h2 + .muted,.subhead { margin-bottom:16px }
.filter-row,.field-grid,.actions,.weekday-grid { display:flex; flex-wrap:wrap; align-items:end; gap:10px }
.filter-row { margin:12px 0 }
.filter-row label { display:grid; gap:4px; min-width:125px }
.filter-row .search { flex:1 }
.field-grid > label { flex:1 1 165px; min-width:0 }
.field-grid > label.wide { flex-basis:100% }
form,.fields { display:grid; gap:15px }
label > span,.field-label,legend { display:block; font-size:13px; font-weight:680; margin-bottom:6px }
input:not([type=checkbox]),select,textarea { background:#fffdf9; color:var(--ink); border:1px solid #ded2cf; border-radius:8px; min-height:41px; width:100%; min-width:0; padding:8px 10px; font-size:14px }
input[type=color] { padding:3px }
input[type=checkbox] { accent-color:var(--accent); width:17px; height:17px }
label.check { display:inline-flex; align-items:center; gap:6px; font-size:13px }
fieldset { border:0; padding:0; margin:0; min-width:0 }
.weekday-grid { align-items:center }
textarea { min-height:90px; resize:vertical }
.table-wrap { overflow:auto; max-width:100% }
table { width:100%; border-collapse:collapse; text-align:left; font-size:13px }
th { color:var(--faint); font-weight:680 }
th,td { padding:12px 8px; border-bottom:1px solid #eee6df; white-space:nowrap }
td:first-child, th:first-child { padding-left:0 }
td:last-child, th:last-child { padding-right:0 }
td a { color:var(--accent); font-weight:700 }
td .text-button { min-height:31px; padding:4px 7px }
.empty { padding:28px 5px 18px; color:var(--faint); text-align:center; font-size:14px }
.tag { display:inline-block; padding:5px 8px; border-radius:30px; font-size:11px; font-weight:720; color:#53424b; background:#eee5e6 }
.tag.confirmed,.tag.on,.tag.sent { color:#1e5741; background:#e4efe8 }
.tag.cancelled,.tag.off,.tag.expired { color:#842946; background:#f4e3e9 }
.tag.pending_payment,.tag.pending { color:#6f4a1f; background:#f7edda }
.notice { padding:12px 14px; margin-bottom:14px; border-radius:8px; background:var(--tint); color:var(--accent-dark); font-size:14px; overflow-wrap:anywhere }
.notice:empty { display:none }
.form-message { color:#942043; font-size:13px; line-height:1.5 }
.form-message:empty { display:none }
.stack { display:grid; gap:10px }
.code { display:block; background:#f2e9e9; padding:13px; border-radius:7px; font-size:12px; overflow-wrap:anywhere; white-space:pre-wrap }
dialog { width:min(640px, calc(100% - 28px)); padding:25px; border:1px solid var(--border); border-radius:13px; background:var(--paper); color:var(--ink); max-height:88dvh; overflow:auto }
dialog::backdrop { background:#291b23a8 }
dialog h2 { margin-bottom:15px }
dialog .actions { justify-content:flex-end }
.noscript { padding:14px }
.legal { width:min(720px,calc(100% - 40px)); margin:35px auto; padding:25px; background:var(--paper); border:1px solid var(--border); border-radius:12px }
.legal h1 { margin:25px 0 }
.legal h2 { margin-top:25px }
.legal p { margin-top:10px }
@media (max-width:980px) {
  .workspace { grid-template-columns:190px minmax(0,1fr) }
  .sidebar { padding-inline:10px }
}
@media (max-width:720px) {
  .workspace { grid-template-columns:minmax(0,1fr) }
  .sidebar { position:relative; height:auto; gap:8px; padding:12px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center }
  .sidebar .brand { margin:0 }
  .workspace-label { display:none }
  .nav { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:4px; grid-row:2 }
  .nav button { min-height:35px; padding:6px 8px; gap:6px; font-size:12px }
  .nav .icon { width:16px; height:16px }
  .aside-bottom { display:flex; grid-column:2; grid-row:1; margin:0 }
  .aside-bottom a { display:none }
  .side-exit { min-height:35px }
  .surface { padding:16px 13px 32px }
  .toolbar { padding-bottom:12px; margin-bottom:18px }
  .stats { gap:6px }
  .stat { padding:11px 8px; gap:6px }
  .stat span { font-size:11px }
  .stat strong { font-size:27px }
  .card { padding:12px }
  .auth { grid-template-columns:1fr }
  .auth-hero { display:none }
}
[data-upload] { flex:1 1 200px; min-width:0 }
.brand-preview { width:100%; max-width:225px; height:80px; object-fit:contain; object-position:left center; border-radius:6px }
