/* Zu Petro's — shared visual layer for the existing management and guest flows. */
:root {
  --ink: #382b23;
  --forest: #4d3729;
  --sage: #eee4d5;
  --paper: #faf7f1;
  --white: #fffdfa;
  --muted: #786758;
  --line: #e4d9cb;
  --clay: #85613c;
  --gold: #b88a50;
  --danger: #9b3e32;
  --radius: 18px;
  --shadow: 0 8px 28px #50362308, 0 1px 2px #50362304;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
}
body { background: radial-gradient(ellipse at 100% 0, #eddec527, transparent 52rem), var(--paper); }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid #6e492a;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--white);
}
h1, h2 { text-wrap: balance; }
h2 { font-size: 1.75rem; line-height: 1.18; }
h3 { color: var(--ink); }
p { line-height: 1.7; }
.container { max-width: 1200px; padding-inline: 40px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--clay); letter-spacing: .17em; font-size: .65rem; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .65; }
.brand { gap: 0; }
.brand > div { display: none; }
.brand-logo { width: 100px; height: 88px; object-fit: contain; }
.topbar { height: 104px; border-color: var(--line); }
.clock { letter-spacing: .015em; font-size: .69rem; }
.btn { border-radius: 10px; padding: 12px 18px; min-height: 46px; letter-spacing: .005em; box-shadow: 0 2px 3px #382b2308; }
.btn.secondary { background: #f0e6d8; border: 1px solid #e4d3bc; color: #68492d; }
.btn.outline { background: #ffffff77; border-color: #d9cbb9; }
.btn.text { box-shadow: none; }
.btn.danger { border: 1px solid #ebc8bc; background: #fff1eb; }
.card, .metric { box-shadow: var(--shadow); border-color: var(--line); }
.card { padding: 28px; }
.card h2 { margin-bottom: 16px; }
.card > p, .card > form > p { color: var(--muted); font-size: .88rem; }
.info-icon { width: 42px; height: 42px; background: #f4ebde; color: #8b663f; border: 1px solid #eadbc7; border-radius: 13px; }
.note { border: 1px solid #e8d9bd; border-left: 3px solid var(--gold); background: #f9f1e2; color: #725638; padding: 14px 16px; border-radius: 10px; }
.error { border: 1px solid #e8c4b7; background: #fff0ea; color: #934131; padding: 14px 16px; border-radius: 10px; }
.success { border: 1px solid #d8ccb7; background: #f1eadb; color: #664b2f; border-radius: 10px; }
.pill, .status-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; width: fit-content; padding: 5px 10px; border-radius: 7px; background: #f0e5d5; color: #765336; font-size: .66rem; line-height: 1.35; font-weight: 700; letter-spacing: .01em; }
.pill::before, .status-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill.clay, .status-tag[data-tone="warning"] { background: #f8edda; color: #8c601f; }
.pill.gray, .status-tag[data-tone="neutral"] { background: #f0ece7; color: #7c7267; }
.status-tag[data-tone="danger"] { background: #fbeae2; color: #9b4434; }
.status-tag[data-tone="success"] { background: #eee6d7; color: #6b4f30; }
.field input, .field textarea, .field select,
#direct-settings-form input:not([type="checkbox"]), #direct-settings-form textarea, #direct-settings-form select,
#direct-refund-form input:not([type="checkbox"]), #direct-refund-form textarea,
#direct-release-form textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 13px 14px; border: 1px solid #dacebe;
  border-radius: 10px; color: var(--ink); background: #fff; box-shadow: inset 0 1px 2px #50362303;
}
.field input::placeholder, .field textarea::placeholder { color: #9a8978; }
.field > span { color: #675445; font-size: .76rem; font-weight: 700; }
.field { gap: 9px; margin-bottom: 20px; }
.field textarea, #direct-settings-form textarea, #direct-refund-form textarea, #direct-release-form textarea { line-height: 1.6; resize: vertical; }
#direct-settings-form > label:not(.check), #direct-settings-form .form-grid > label,
#direct-refund-form > label:not(.check), #direct-release-form > label:not(.check) {
  display: grid; gap: 9px; margin-bottom: 20px; font-size: .76rem; font-weight: 700; line-height: 1.55; color: #675445;
}
.check { color: #6f5c4c; font-size: .8rem; gap: 11px; }
.check input { accent-color: var(--forest); }
.form-grid { column-gap: 22px; row-gap: 0; }
.actions { gap: 12px; border-top: 1px solid #eee5d8; padding-top: 22px; margin-top: 24px; }
.actions .btn { flex-shrink: 0; }
.login-layout { gap: 90px; padding-block: 68px; min-height: calc(100vh - 195px); }
.login-layout h1 { font-size: clamp(3.1rem, 5vw, 4.6rem); line-height: 1.07; letter-spacing: -.055em; margin-bottom: 24px; }
.login-layout > section:first-child > p { max-width: 440px; font-size: .94rem; }
.login-card { padding: 38px; border-radius: 24px; box-shadow: 0 24px 70px #6246280b, 0 2px 3px #62462803; }
.login-card .info-icon { width: 48px; height: 48px; margin-bottom: 24px; }
.login-card h2 { font-size: 1.9rem; margin-bottom: 10px; }
.login-card > p { margin-bottom: 26px; }
.login-foot { margin-top: 26px; padding-top: 20px; border-color: #eee5d8; font-size: .71rem; }
.login-foot .icon { width: 17px; height: 17px; color: #a17e53; }
.login-art { height: 205px; width: 330px; background: #f0e7d8; border-color: #ddc8aa; opacity: .86; }
.arch { border-color: #baa17e; box-shadow: 0 0 0 20px #f0e7d8,0 0 0 21px #c6b08d,0 0 0 40px #f0e7d8,0 0 0 41px #c6b08d; }
.sun { background: #c7a173; width: 42px; height: 42px; }
.branch { color: #98764e; font-size: 72px; }
.welcome { gap: 48px; grid-template-columns: 1fr 340px; padding: 54px 0 44px; }
.welcome h1 { font-size: clamp(3rem, 4.5vw, 4.3rem); margin-bottom: 21px; }
.welcome p { max-width: 540px; font-size: .94rem; }
.stay { gap: 0; margin: 28px 0 20px; padding: 17px 22px; width: fit-content; max-width: 100%; border: 1px solid #e9ddcc; background: #fffcf6; border-radius: 13px; }
.stay .date { padding-right: 25px; font-size: .83rem; font-weight: 600; }
.stay .date + .date { padding-left: 25px; padding-right: 0; border-left: 1px solid var(--line); }
.stay .date span { font-size: .6rem; font-weight: 400; margin-bottom: 4px; }
.door-card { position: relative; background: linear-gradient(145deg,#62462e,#493323); border: 1px solid #6f5134; padding: 30px; border-radius: 22px; box-shadow: 0 14px 35px #4933231c; }
.door-card h2 { color: #fff8ee; font-size: 1.95rem; }
.door-card p { color: #e1d0b8; line-height: 1.65; }
.door-card .eyebrow { color: #d8b480; }
.door-symbol { width: 50px; height: 50px; border: 1px solid #b799713b; background: #ffffff09; color: #e0bf8c; border-radius: 15px; }
.door-card .btn { background: #f8efdf; color: #61462b; border: 1px solid #e7d6bb; }
.door-card .small { font-size: .75rem; margin-top: 15px; margin-bottom: 0; }
.door-card .btn:disabled { opacity: .58; }
.nav { gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: #f2eade; margin-bottom: 34px; width: fit-content; max-width: 100%; }
.nav button { padding: 12px 22px; border: 0; border-radius: 9px; font-size: .79rem; }
.nav button.active { background: var(--white); color: var(--forest); box-shadow: 0 2px 6px #64482d0a; }
.section-head { gap: 20px; align-items: center; margin: 0 0 24px; }
.section-head h2 { font-size: 1.8rem; margin-bottom: 8px; }
.section-head p { max-width: 680px; font-size: .83rem; line-height: 1.65; }
.guide-card { gap: 17px; }
.guide-card .eyebrow::before { display: none; }
.guide-card h3 { font-size: 1.19rem; }
.guide-card p { font-size: .86rem; }
.wifi { background: linear-gradient(135deg,#f7f0e2,#f0e5d4); }
.help-card { background: #f1e8d9; border: 1px solid #e3d3bc; border-radius: 16px; margin-top: 35px; padding: 25px 28px; }
.help-card strong { font-family: Georgia,serif; font-size: 1.2rem; font-weight: 400; color: var(--ink); }
.help-card p { font-size: .79rem; color: var(--muted); }
.footer { margin-top: 24px; border-top: 1px solid var(--line); padding-block: 27px; font-size: .71rem; }
.admin-layout { grid-template-columns: 252px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #9e7f5a #493626; background: linear-gradient(175deg,#4d3829,#3d2c21); padding: 28px 18px 22px; gap: 30px; }
.sidebar .brand { padding: 0 8px; justify-content: center; }
.sidebar .brand-logo { padding: 10px; width: 152px; height: 136px; background: #f6eddf; border: 1px solid #d9bd92; border-radius: 20px; }
.admin-navigation { width: 100%; }
.admin-navigation > summary { display: none; }
.sidebar nav { gap: 4px; }
.sidebar nav button { min-height: 43px; border: 1px solid transparent; padding: 11px 13px; gap: 13px; color: #d4c3ae; font-size: .78rem; line-height: 1.4; border-radius: 10px; }
.sidebar nav button .icon { width: 18px; height: 18px; color: #bfa17a; }
.sidebar nav button.active { background: #a8845030; border-color: #b2936045; color: #fff5e6; }
.sidebar nav button.active .icon { color: #e6c89b; }
.sidebar .foot { font-size: .68rem; color: #bca58c; padding-inline: 8px; margin-top: auto; }
.sidebar .divider { background: #b8977138; margin-block: 18px; }
.sidebar .foot .btn { min-height: 42px; font-size: .73rem; background: #ffffff0a; border-color: #b8977140; color: #e2ccb0; box-shadow: none; }
.admin-main { padding: 38px clamp(24px,3.8vw,58px) 48px; }
.admin-top { border-color: #dfd0bc; padding-bottom: 26px; margin-bottom: 30px; gap: 24px; }
.admin-top h1 { font-size: clamp(2.1rem,3vw,2.8rem); line-height: 1.16; letter-spacing: -.04em; margin-bottom: 10px; }
.admin-top .eyebrow { margin-bottom: 13px; }
.admin-top p { font-size: .73rem; letter-spacing: .01em; }
.admin-top > .stack { justify-items: end; gap: 13px; }
.admin-top .btn { font-size: .74rem; min-height: 37px; padding: 9px 17px; }
.admin-top h1:focus { outline: none; }
#admin-content { max-width: 1300px; }
#admin-content > .card:first-child { margin-top: 0; }
.metrics { gap: 18px; margin-bottom: 32px; }
.metric { position: relative; overflow: hidden; border-radius: 16px; padding: 23px 25px; background: #fffdf9; }
.metric::after { content: ''; position: absolute; top: 22px; right: 23px; width: 25px; height: 25px; border: 1px solid #d9bc914a; border-radius: 9px 9px 3px 3px; background: #f9f2e7; }
.metric b { font-size: 2.7rem; color: #65462a; margin-top: 14px; }
.metric span { font-size: .7rem; letter-spacing: .025em; }
.table-wrap { border-color: #dfd0bd; border-radius: 15px; box-shadow: var(--shadow); overscroll-behavior-inline: contain; }
table { font-size: .8rem; }
th { padding: 17px 20px; background: #f2eade; color: #8b7056; font-size: .6rem; letter-spacing: .12em; font-weight: 700; }
td { padding: 20px; border-color: #eee4d7; line-height: 1.55; overflow-wrap: anywhere; }
td strong { font-size: .82rem; }
td small { margin-top: 3px; font-size: .68rem; color: #8a7765; }
td .btn { min-height: 38px; padding: 9px 13px; font-size: .7rem; }
tbody tr:hover { background: #fcf6ec; }
.content-row { padding: 22px 25px; border-radius: 14px; border-color: var(--line); box-shadow: var(--shadow); }
.content-row h3 { font-size: 1rem; margin-bottom: 7px; }
.empty { background: #fbf7f0; border-color: #d6c4aa; padding: 45px 25px; font-size: .85rem; }
.empty h3 { font-family: Georgia,serif; font-size: 1.4rem; font-weight: 400; }
.empty .info-icon { margin-inline: auto; }
.calendar-toolbar { padding: 17px 20px; border: 1px solid #e4d4bf; background: #f4ecdf; border-radius: 14px; margin: 24px 0 18px; }
.calendar-toolbar .row { gap: 15px; }
.calendar-toolbar strong { font-family: Georgia,serif; font-size: 1.18rem; font-weight: 400; color: #6a4c2e; }
.calendar-toolbar select { background: #fffdfa; border-color: #dbc8ad; color: #6b5036; min-height: 44px; padding-inline: 13px; border-radius: 9px; }
.calendar-scroll { border-color: #dfd0bd; border-radius: 15px; background: #fffdfa; overscroll-behavior-inline: contain; }
.calendar-grid { background: #fffdfa; }
.calendar-weekday { background: #f0e6d7; padding: 14px 10px; font-size: .7rem; letter-spacing: .04em; color: #876849; }
.calendar-day { min-height: 135px; padding: 11px; border-color: #eee5d8; }
.calendar-day > strong { display: inline-grid; place-items: center; width: 25px; height: 25px; font-size: .75rem; font-weight: 400; color: #8a7158; }
.calendar-day.blank { background: #f8f3eb; }
.calendar-day.conflict { background: #fff2db; }
.calendar-event { min-height: 34px; padding: 8px 9px; background: #eee0cb; border-left: 3px solid #b08a55; border-radius: 5px; color: #725131; font-size: .7rem; line-height: 1.5; }
.calendar-event:hover { background: #e4ceac; }
.calendar-day small { color: #96671e; font-size: .62rem; line-height: 1.4; margin-top: 8px; }
.guest-fields { border-color: #e1d1bb; background: #fffdfa; }
.guest-fields legend { color: #7b5b37; font-size: .87rem; }
.checkin-container details { background: #f2e9da; }
dialog { padding: 32px; border: 1px solid #d8c2a4; border-radius: 22px; background: #fffcf6; box-shadow: 0 30px 100px #2f1f1940; }
dialog::backdrop { background: #30241e6b; backdrop-filter: blur(5px); }
dialog h2 { padding-right: 42px; font-size: 1.95rem; margin: 3px 0 20px; }
dialog .close { width: 44px; height: 44px; display: grid; place-items: center; margin: -12px -12px 0 0; border: 1px solid #eadccc; border-radius: 50%; background: #f7efe3; color: #8c7052; font-weight: 400; font-size: 1.5rem; }
dialog > #modal-content > p { color: var(--muted); font-size: .85rem; }
dialog form { margin-top: 20px; }
#direct-refund-form, #direct-release-form { border-top: 1px solid #e6d6c1; padding-top: 24px; }
.result-code { background: #f1e5d2; border: 1px solid #e1cba7; color: #765637; border-radius: 13px; }
#toast { background: #513a29; border: 1px solid #967044; border-radius: 12px; box-shadow: 0 10px 36px #382b2326; font-size: .81rem; }
.zp-privacy-footer { border-color: var(--line); background: #f5eee3; }
@media (hover:hover) {
  .btn:not(:disabled):hover { filter: brightness(.96); }
  .sidebar nav button:hover { background: #b18b5a13; color: #fff2df; }
  .sidebar nav button.active:hover { background: #a8845040; }
}
@media (max-width:1100px) {
  .admin-layout { grid-template-columns: 224px minmax(0,1fr); }
  .sidebar { padding-inline: 14px; }
  .admin-main { padding: 30px 26px; }
  .login-layout { gap: 45px; }
  .container { padding-inline: 30px; }
  .welcome { gap: 30px; grid-template-columns: 1fr 310px; }
  .card { padding: 24px; }
}
@media (max-width:900px) {
  .admin-layout { display: block; }
  .sidebar { position: static; height: auto; overflow: visible; padding: 18px 22px; gap: 18px; }
  .sidebar .brand { max-width: 100%; padding: 0; justify-content: flex-start; }
  .sidebar .brand-logo { width: 92px; height: 82px; border-radius: 15px; padding: 6px; }
  .admin-navigation > summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 16px; border: 1px solid #b99a7040; background: #ffffff09; border-radius: 10px; color: #f2dfc6; list-style: none; cursor: pointer; font-size: .82rem; line-height: 1.5; min-height: 54px; }
  .admin-navigation > summary::-webkit-details-marker { display: none; }
  .admin-navigation > summary small { display: block; font-size: .55rem; text-transform: uppercase; letter-spacing: .14em; color: #c5a47e; margin-bottom: 3px; }
  .admin-navigation > summary::after { content: '⌄'; font-size: 1.2rem; line-height: 1; }
  .admin-navigation[open] > summary::after { transform: rotate(180deg); }
  .sidebar nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 14px 0 0; margin: 0; overflow: visible; gap: 6px; }
  .sidebar nav button { white-space: normal; min-height: 48px; margin: 0; font-size: .73rem; }
  .sidebar .foot { display: none; }
  .admin-main { padding: 28px 24px 40px; }
  .admin-top { align-items: flex-start; margin-bottom: 25px; }
  .admin-top > div:first-child { flex: 1 1 260px; }
  .admin-top h1 { font-size: 2.15rem; }
  .admin-top > .stack { gap: 9px; }
  .admin-top .clock { display: none; }
  .admin-top .btn { min-height: 42px; }
}
@media (max-width:720px) {
  .container { padding-inline: 22px; }
  .topbar { height: 86px; }
  .topbar .brand { max-width: 72%; }
  .brand-logo { width: 84px; height: 74px; }
  .topbar .clock { font-size: .59rem; text-align: right; white-space: normal; line-height: 1.6; max-width: 115px; }
  .topbar .btn { padding-inline: 10px; font-size: .73rem; }
  .login-layout { padding-block: 36px; }
  .login-layout h1 { font-size: 2.8rem; margin-bottom: 18px; }
  .login-layout > section:first-child > p { font-size: .84rem; }
  .login-layout .eyebrow { margin-bottom: 18px; font-size: .6rem; }
  .login-card { margin-top: 30px; border-radius: 20px; padding: 27px 25px; }
  .login-card h2 { font-size: 1.7rem; }
  .login-card > p { font-size: .79rem; }
  .login-card .btn.large { min-height: 52px; font-size: .86rem; }
  .login-foot { font-size: .66rem; }
  .welcome { padding: 36px 0 30px; }
  .welcome h1 { font-size: 2.8rem; }
  .welcome > div > p { font-size: .85rem; }
  .stay { width: 100%; padding: 16px 18px; margin: 24px 0 17px; }
  .stay .date { flex: 1; padding-right: 15px; font-size: .73rem; }
  .stay .date + .date { padding-left: 15px; }
  .stay .date span { font-size: .54rem; }
  .door-card { padding: 25px; margin-top: 30px; border-radius: 19px; }
  .door-card .eyebrow { padding-right: 45px; }
  .door-card h2 { font-size: 1.85rem; }
  .door-card p { font-size: .81rem; max-width: 100%; }
  .door-card .btn.large { min-height: 54px; font-size: .88rem; }
  .door-card .door-symbol { width: 42px; height: 42px; }
  .nav { width: 100%; margin: 0 0 29px; padding: 5px; justify-content: space-between; gap: 2px; }
  .nav button { flex: 1; padding: 12px 8px; font-size: .71rem; }
  .section-head { flex-wrap: wrap; align-items: flex-start; gap: 15px; }
  .section-head > div { min-width: 0; flex: 1 1 230px; }
  .section-head h2 { font-size: 1.65rem; }
  .section-head p { font-size: .76rem; }
  .section-head > .btn { min-height: 44px; }
  .card { padding: 24px 22px; border-radius: 16px; }
  .card h2 { font-size: 1.6rem; }
  .admin-main { padding: 25px 20px 35px; }
  .admin-top { gap: 16px; }
  .admin-top h1 { font-size: 2rem; }
  .admin-top .eyebrow { font-size: .58rem; }
  .admin-top p { font-size: .68rem; }
  .metrics { gap: 9px; margin-bottom: 27px; }
  .metric { padding: 17px 12px; border-radius: 12px; }
  .metric span { display: block; min-height: 30px; font-size: .61rem; }
  .metric b { font-size: 2.1rem; margin-top: 4px; }
  .metric::after { display: none; }
  .table-wrap table { min-width: 620px; }
  .table-wrap::after, .calendar-scroll::after { display: block; content: 'Scorri per vedere tutti i dettagli →'; position: sticky; left: 0; width: fit-content; max-width: 100%; padding: 10px 16px; font-size: .62rem; color: #8e7050; background: #faf5ec; }
  th, td { padding: 16px; }
  td .btn { min-height: 44px; }
  .content-row { padding: 20px; }
  .actions { justify-content: stretch; gap: 10px; padding-top: 19px; }
  .actions > .btn { flex: 1 1 160px; }
  .calendar-toolbar { padding: 16px; gap: 18px; }
  .calendar-toolbar .row { gap: 10px; }
  .calendar-toolbar .btn { padding: 11px 13px; font-size: .7rem; }
  .calendar-toolbar strong { font-size: 1rem; }
  .calendar-toolbar > label { width: 100%; font-size: .76rem; }
  .calendar-toolbar select { margin-left: 8px; }
  .calendar-event { min-height: 44px; }
  .help-card { padding: 22px; gap: 18px; }
  .help-card .btn { width: 100%; }
  .footer { font-size: .65rem; line-height: 1.6; }
  dialog { padding: 26px 22px; border-radius: 18px; max-height: 92dvh; }
  dialog h2 { font-size: 1.65rem; }
  dialog .close { margin-right: -6px; }
  .staff-layout .door-card { margin-top: 28px; }
}
@media (max-width:360px) {
  .container { padding-inline: 18px; }
  .brand-logo { width: 76px; height: 68px; }
  .login-layout h1, .welcome h1 { font-size: 2.5rem; }
  .login-card, .card, .door-card { padding: 22px 19px; }
  .admin-main { padding-inline: 16px; }
  .sidebar { padding-inline: 16px; }
  .sidebar nav { grid-template-columns: 1fr; }
  .metric { padding: 15px 10px; }
  .metric span { font-size: .57rem; }
  .nav button { padding-inline: 5px; font-size: .65rem; }
  .stay { padding-inline: 13px; }
  .stay .date { font-size: .67rem; }
  .stay .date + .date { padding-left: 12px; }
}
@media (prefers-reduced-motion:no-preference) {
  .btn, .sidebar nav button, .nav button { transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
}

/* Keep native form controls inside their actual grid/flex cell on small screens. */
*,*::before,*::after{box-sizing:border-box}
form,fieldset,legend,label,.field,.form-grid,.form-grid>*,.grid>*,.two>*,.stack>*,.row>*,.login-layout>*,.welcome>*,.cloud-grid>*,.admin-main,#admin-content,#modal-content{min-width:0;max-width:100%}
fieldset{min-inline-size:0}
input,select,textarea{box-sizing:border-box;min-width:0;max-width:100%}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{width:100%}
input[type=date],input[type=time],input[type=datetime-local],input[type=month],input[type=number],input[type=file]{min-inline-size:0;max-inline-size:100%}
input::-webkit-date-and-time-value{min-width:0;text-align:start}
input::file-selector-button{max-width:100%;font:inherit}
legend{white-space:normal;overflow-wrap:anywhere}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.cloud-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}
.login-layout{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}
.welcome{grid-template-columns:minmax(0,1fr) 340px}
dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
dialog form,dialog .dialog-scroll{width:100%;min-width:0}
dialog h2,.content-row h3,.pricing-heading h2{overflow-wrap:anywhere}
.calendar-toolbar>label{min-width:0;max-width:100%}
.calendar-toolbar select{margin-inline:0}
@media(max-width:1100px){.welcome{grid-template-columns:minmax(0,1fr) 310px}.cloud-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.form-grid{grid-template-columns:minmax(0,1fr)}.login-layout,.welcome{display:block}.topbar .clock{display:none}.topbar{gap:10px}.topbar>.brand{max-width:none}.topbar .btn{flex:0 0 auto}.content-row .row{flex-shrink:1;max-width:100%}dialog{width:calc(100% - 24px);padding:22px 18px}.guest-fields{padding:14px 12px}.actions>.btn{min-width:0;white-space:normal;text-align:center}.calendar-toolbar>label{display:grid;gap:8px}.calendar-toolbar select{width:100%}.admin-top{flex-wrap:wrap}.admin-top>.stack{margin-inline-start:auto}}
@media(max-width:360px){.topbar{gap:7px}.topbar>.brand .brand-logo{width:64px;height:60px}.topbar>.btn{padding-inline:9px;font-size:.68rem}.admin-top h1{font-size:1.85rem}.metric span{overflow-wrap:anywhere}}

/* Readable house rules on narrow guest screens. */
.house-rules{min-width:0;margin-bottom:24px}.house-rules ol{padding-left:1.5em;margin:1rem 0 0}.house-rules li{margin:.65rem 0;overflow-wrap:anywhere;line-height:1.65}.house-rules p{max-width:75ch}.guest-content .house-rules h2{font-size:clamp(1.35rem,4vw,1.8rem)}
@media(max-width:720px){.nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:5px}.nav button{min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:46px;line-height:1.4}}
@media(max-width:720px){.topbar{flex-wrap:wrap;height:auto;min-height:90px;padding-block:10px;row-gap:8px}.topbar>.btn{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}}
