:root {
  --brand: #0f6b5c;
  --brand-dark: #0a4f44;
  --brand-soft: #e3f1ed;
  --accent: #f2b84b;
  --ink: #17231f;
  --muted: #5d6e69;
  --line: #dbe4e1;
  --bg: #f6f8f7;
  --card: #ffffff;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --ok-soft: #e4f4ea;
  --ok: #1a6b3c;
  --warn-soft: #fff4d9;
  --warn: #7a5200;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .06), 0 6px 20px rgba(16, 40, 34, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.3rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding-top: 36px; padding-bottom: 48px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 20; border-radius: 8px; }
.crumb { margin-bottom: 14px; font-size: .95rem; }
.crumb a { text-decoration: none; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; flex: none; }
.wordmark { font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 800; font-size: 1.42rem; letter-spacing: -.035em; line-height: 1; text-transform: lowercase; }
.wordmark b { font-weight: 800; color: var(--brand); }
.brand-footer { color: #fff; margin-bottom: 8px; }
.brand-footer .wordmark b { color: #7fd1bd; }
.brand em { font-style: normal; font-size: .7rem; font-weight: 700; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.site-nav > a:not(.btn):hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .8rem; font-weight: 700; }
.lang-switch a { padding: 4px 10px; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current] { background: var(--brand); color: #fff; }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--danger); }
.site-nav .link-btn { color: var(--muted); text-decoration: none; font-size: .96rem; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 6px 0 18px; }
  .site-nav.open { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 12px; padding: 10px 20px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn-large { padding: 13px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8f1d17; border-color: #8f1d17; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }

/* Flash and notices */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.form > .flash, .section > .flash, .narrow > .flash { margin: 0 0 18px; }
.notice { background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: 10px; }

/* Hero */
.hero { background: linear-gradient(165deg, #12806d 0%, #0f6b5c 38%, #0a4f44 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-top: 68px; }
.hero-copy { padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); letter-spacing: -.025em; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { color: #d5e8e3; }
.hero .btn { background: var(--accent); border-color: var(--accent); color: #2b1d00; }
.hero .btn:hover { background: #ffc960; border-color: #ffc960; }
.hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.hero-stats { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 0; flex-wrap: wrap; }
.hero-stats li { padding: 0 26px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { display: block; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; }
.hero-stats span { color: #c5ded7; font-size: .88rem; }
.hero-art { align-self: end; }
.hero-art img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 12px; padding-top: 44px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { margin: 0 -20px; padding-bottom: 56px; }
}
@media (max-width: 480px) { .hero-stats li { padding: 0 16px; } .hero-stats strong { font-size: 1.4rem; } }

/* Trust strip: overlaps the bottom of the hero */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -52px; position: relative; z-index: 1; }
.trust-card { background: var(--card); border-radius: var(--radius); box-shadow: 0 2px 4px rgba(16, 40, 34, .08), 0 14px 34px rgba(16, 40, 34, .12); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.trust-card strong { display: block; margin-bottom: 2px; }
.trust-card span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }
.icon-badge { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 980px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-strip { grid-template-columns: 1fr; margin-top: -40px; } }

.section-head { margin-bottom: 6px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; letter-spacing: -.02em; }
.section-head .eyebrow { margin-bottom: .4em; }

/* Rooms */
.section-lead { color: var(--muted); margin-top: -4px; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin-top: 22px; }
.room-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.room-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 40, 34, .08), 0 14px 34px rgba(16, 40, 34, .12); color: inherit; }
.room-card-img { position: relative; aspect-ratio: 3 / 2; background: var(--brand-soft); }
.room-card-img img { width: 100%; height: 100%; object-fit: cover; }
.room-card-body { padding: 16px 18px 18px; }
.room-card-body h3 { margin-bottom: 4px; font-size: 1.12rem; }
.room-card-body p { margin: 0; }
.price { margin-top: 10px !important; }
.price strong { font-size: 1.35rem; letter-spacing: -.01em; }
.price span { color: var(--muted); font-size: .88rem; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-now { background: var(--brand); color: #fff; }
.badge-soon { background: #fff; color: var(--ink); }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px 24px; text-align: center; }
.empty p { color: var(--muted); }
.empty-rooms { display: flex; align-items: center; gap: 28px; text-align: left; border-style: solid; padding: 22px; box-shadow: var(--shadow); }
.empty-rooms img { width: 300px; max-width: 42%; height: auto; border-radius: 12px; flex: none; }
.empty-rooms h3 { font-size: 1.25rem; }
@media (max-width: 640px) { .empty-rooms { flex-direction: column; text-align: center; } .empty-rooms img { max-width: 100%; width: 100%; } }

.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.steps h3 { margin: 10px 0 4px; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }
.steps-icons { counter-reset: none; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 34px; position: relative; }
.steps-icons::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; border-top: 2px dashed #c4d9d3; }
.steps-icons li { text-align: center; position: relative; }
.steps-icons h3 { margin: 16px 0 4px; font-size: 1.08rem; }
.step-icon { position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px #fff; }
.step-icon b { position: absolute; top: -4px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #2b1d00; font-size: .82rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
@media (max-width: 760px) { .steps-icons { grid-template-columns: repeat(2, 1fr); } .steps-icons::before { display: none; } }
.cta-band { background: linear-gradient(160deg, #0f6b5c 0%, #0a4f44 100%); color: #fff; border-radius: 20px; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.cta-band p { margin: 0; color: #d5e8e3; }
.cta-band .btn { background: var(--accent); border-color: var(--accent); color: #2b1d00; }
.cta-band .btn:hover { background: #ffc960; border-color: #ffc960; }
.steps-vertical { grid-template-columns: 1fr; }
.steps-vertical li { display: flex; gap: 16px; background: var(--card); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps-vertical h3 { margin-top: 2px; }
.step-no { display: inline-flex; width: 30px; height: 30px; flex: none; align-items: center; justify-content: center; background: var(--brand); color: #fff; border-radius: 50%; font-weight: 700; font-size: .9rem; }

/* Room page */
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--brand-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: none; width: 104px; aspect-ratio: 3 / 2; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button[aria-current] { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin-top: 28px; align-items: start; }
.room-sub { margin-top: -6px; font-size: 1.05rem; }
.apply-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 84px; }
.apply-card .price { margin-top: 0 !important; margin-bottom: 2px; }
.apply-card .price strong { font-size: 1.8rem; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: .94rem; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts span { display: block; color: var(--muted); font-size: .82rem; }
.prose { white-space: pre-line; max-width: 68ch; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px 28px; margin: 0 0 8px; }
.details > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; }
.costs { width: 100%; max-width: 480px; border-collapse: collapse; margin-bottom: 8px; }
.costs th { text-align: left; font-weight: 400; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.costs td { text-align: right; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; font-weight: 600; }
.costs .total th, .costs .total td { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
@media (max-width: 900px) {
  .room-layout { grid-template-columns: 1fr; gap: 24px; }
  .apply-card { position: static; order: -1; }
}

/* Cards and forms */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.card > h2:first-child { margin-top: 0; }
.card h3 { margin-top: 1.4em; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.auth { max-width: 480px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 > .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
fieldset + fieldset, fieldset + .check { border-top: 1px solid var(--line); padding-top: 22px; }
legend { font-weight: 750; font-size: 1.12rem; padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.fieldset-intro { color: var(--muted); margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .86rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=month], input[type=time], select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1.5px solid #c4d1cd; border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 107, 92, .18); }
input[type=file] { font: inherit; padding: 10px; border: 1.5px dashed #c4d1cd; border-radius: 10px; background: #fafcfb; width: 100%; }
.hint { color: var(--muted); font-size: .88rem; margin: 0; }
.error { color: var(--danger); font-size: .9rem; font-weight: 600; margin: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.toggle-area { background: var(--bg); border-radius: 12px; padding: 16px; }
p.toggle-area { padding: 12px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.doc-list { list-style: none; padding: 0; margin: 0 0 6px; }
.doc-list li { padding: 6px 0; overflow-wrap: anywhere; }
.doc-list form { margin-left: 8px; }
.doc-ok { color: var(--ok); font-weight: 800; }
.apply-summary { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin: 14px 0 18px; }
.apply-summary img { width: 108px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; flex: none; }
.apply-summary p { margin: 0; }

/* Listing extras */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 18px; }
.tick-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 18px; color: var(--ink); font-size: 1rem; margin: 0 0 8px; }
.included-line { max-width: 480px; }
.private-fields { background: var(--warn-soft); border-radius: 12px; padding: 18px !important; border-top: 0 !important; }
.head-actions { margin-top: 0; }
.photo-actions form { display: inline; }

.proposal { border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.proposal-what { color: var(--ink) !important; font-size: 1.08rem !important; text-transform: none !important; letter-spacing: 0 !important; margin-top: 0 !important; }
.decline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; }
.decline-form input { flex: 1; min-width: 200px; }
.key-once { background: var(--bg); padding: 12px; border-radius: 10px; overflow-wrap: anywhere; white-space: pre-wrap; }

/* Account */
.app-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.app-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.app-row:hover { color: inherit; box-shadow: 0 2px 4px rgba(16, 40, 34, .08), 0 10px 28px rgba(16, 40, 34, .1); }
.app-row img { width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.app-row h3 { margin-bottom: 2px; }
.app-row p { margin: 0; font-size: .93rem; }
.todo { color: var(--warn); font-weight: 650; }
@media (max-width: 600px) { .app-row { grid-template-columns: 84px 1fr; } .app-row img { width: 84px; } .app-row .status { grid-column: 1 / -1; justify-self: start; } }
.account-cards { margin-top: 28px; }
.account-cards .card { margin-bottom: 0; }
.danger-zone { margin-top: 36px; color: var(--muted); }
.danger-zone summary { cursor: pointer; }
.danger-zone[open] { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.danger-zone .form { max-width: 360px; margin-top: 10px; }

.status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: #e9eeec; color: #3d4c48; }
.status-submitted { background: #e2ecfb; color: #1c4a8a; }
.status-reviewing { background: #ece6fa; color: #4a2f91; }
.status-viewing { background: var(--warn-soft); color: var(--warn); }
.status-offered { background: #ffe3cc; color: #8a3d00; }
.status-accepted, .room-available, .mail-sent { background: var(--ok-soft); color: var(--ok); }
.status-rejected, .mail-failed { background: var(--danger-soft); color: var(--danger); }
.room-reserved { background: var(--warn-soft); color: var(--warn); }
.room-rented { background: #e2ecfb; color: #1c4a8a; }

.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.app-head h1 { margin-bottom: 4px; }
.app-head p { margin: 0; }
.progress { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: step; }
.progress li { border-top: 5px solid var(--line); padding-top: 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.progress li.done { border-color: var(--brand); color: var(--brand); }
.progress li.current { border-color: var(--accent); color: var(--ink); }
@media (max-width: 560px) { .progress li span { font-size: .7rem; } }
.panel { border-left: 6px solid var(--brand); }
.panel-rejected, .panel-withdrawn { border-left-color: #a9b6b2; }
.panel-offered, .panel-viewing { border-left-color: var(--accent); }
.reason { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.viewing-when { font-size: 1.15rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.slot { display: flex; align-items: center; gap: 10px; border: 1.5px solid #c4d1cd; border-radius: 10px; padding: 10px 14px; cursor: pointer; background: #fff; }
.slot:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.slot input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }

.thread { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.thread-system { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.thread-msg { max-width: 85%; border-radius: 14px; padding: 10px 14px; }
.thread-msg p { margin: 0; }
.thread-msg.mine { align-self: flex-end; background: var(--brand-soft); }
.thread-msg.theirs { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); }
.thread-who { font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 2px !important; }
.thread-body { white-space: pre-line; overflow-wrap: anywhere; }

/* FAQ and legal */
.faq details { background: var(--card); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { font-weight: 650; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.prose-page ul { padding-left: 22px; }
.prose-page li { margin-bottom: 6px; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--brand); margin: 20px 0 0; line-height: 1; }

/* Footer */
.site-footer { background: #10231f; color: #c2d3ce; padding: 36px 0 22px; margin-top: 24px; font-size: .95rem; }
.footer-row { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer strong { color: #fff; font-size: 1.1rem; }
.site-footer .brand-footer { display: inline-flex; }
.site-footer p { margin: 4px 0 0; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #c2d3ce; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal-line { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #8ea5a0; }

/* Admin */
.is-admin .site-header { border-bottom: 3px solid var(--ink); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1, .page-head h2 { margin: 0; }
.todo-card { border-left: 6px solid var(--accent); }
.todo-card ul { margin: 0; padding-left: 20px; }
.todo-card li { margin-bottom: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 18px 0 6px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: inherit; }
.stat strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-past { opacity: .55; }
.pill { display: inline-block; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: .74rem; font-weight: 700; }
.pill-warn { background: var(--danger); }
.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.filters select { min-width: 190px; }
.plain-list { list-style: none; padding: 0; margin: 0 0 12px; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .admin-layout { grid-template-columns: 1fr; } }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.photo-tile { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.photo-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-tile .badge { top: 8px; left: 8px; }
.photo-actions { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: .86rem; }
.mail { background: var(--card); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; box-shadow: var(--shadow); }
.mail summary { cursor: pointer; }
.mail pre { white-space: pre-wrap; font: inherit; font-size: .93rem; background: var(--bg); padding: 14px; border-radius: 10px; margin: 12px 0 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .btn, form { display: none !important; } body { background: #fff; } }
