:root {
    color-scheme: light;
    --paper: #f7f5ef;
    --surface: #fffdf8;
    --ink: #163b36;
    --muted: #425e57;
    --line: #daded3;
    --accent: #205950;
    --soft: #e1eee7;
    --risk: #812e2b;
    --risk-bg: #fff0ed;
    font: 16px/1.5 system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #b04b20; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.65rem, 5vw, 2.2rem); line-height: 1.15; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
.brand { color: var(--ink); font-size: 1.26rem; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--accent);
    font-weight: 650; text-decoration: none; text-align: center;
}
.button.primary { border-color: var(--accent); color: #fffdf8; background: var(--accent); }
.button:hover, .tile:hover { box-shadow: 0 0 0 1px var(--accent); }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 650; text-decoration: none; }
.guest-shell { max-width: 490px; margin-inline: auto; min-height: 100vh; background: var(--paper); }
.guest-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 9px 15px;
    background: var(--surface); border-bottom: 1px solid var(--line);
}
.language-switch { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 50px; }
.language-switch a {
    display: grid; place-items: center; min-height: 44px; padding-inline: 9px; color: var(--ink);
    text-decoration: none; font-size: .85rem; border-radius: 50px;
}
.language-switch a[aria-current] { background: var(--soft); font-weight: 700; }
.guest-content { padding: 15px 15px 26px; }
.guide-cover { width: 100%; height: clamp(125px, 38vw, 184px); object-fit: cover; border-radius: 13px; }
.guest-content h1 {
    font-family: Georgia, serif; font-weight: 500; letter-spacing: -.035em; margin: 12px 0 16px;
}
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.tile {
    display: grid; align-content: start; gap: 7px; min-height: 86px; padding: 10px;
    border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
    color: var(--ink); text-decoration: none; line-height: 1.25; font-weight: 660; overflow-wrap: anywhere;
}
.tile-arrival { background: var(--soft); }
.tile-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.tile-top svg { width: 20px; height: 20px; }
.tile-top span { font-size: 1.25rem; line-height: 1; }
.guest-block {
    background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
    padding: 14px; margin-bottom: 9px;
}
.guest-block h2 { color: var(--muted); margin-bottom: 4px; font-size: 1rem; }
.guest-block img { margin-top: 10px; border-radius: 9px; }
.guest-block .button { display: flex; margin-top: 10px; }
.multiline { white-space: pre-wrap; }
.wifi-code { border: 1px solid var(--line); width: 100%; border-radius: 7px; padding: 8px; background: #fff; color: var(--ink); font-family: monospace; }
.copy-status:not(:empty) { margin-top: 8px; }
.emergency { background: var(--risk-bg); border-color: #e9bcb5; }
.emergency h2, .emergency a { color: var(--risk); }
.contact-row {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px;
    min-height: 44px; padding: 5px 0; border-top: 1px solid var(--line); text-decoration: none; overflow-wrap: anywhere;
}
.preview-banner {
    padding: 10px 15px; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; background: var(--soft); font-size: .85rem;
}
.admin-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar-inner { max-width: 900px; margin: auto; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-shell { margin: 24px auto 45px; padding-inline: 15px; max-width: 900px; }
.admin-shell h1 { margin-bottom: 17px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: clamp(12px, 3vw, 21px); }
.page-heading, .index-row, .pagination {
    display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.page-heading h1 { margin: 0; }
.index-row { text-decoration: none; color: var(--ink); }
.index-row span { color: var(--muted); font-size: .875rem; }
.login { max-width: 390px; margin-inline: auto; }
.editor, .section-fields { display: grid; gap: 12px; }
.share { margin-bottom: 13px; display: grid; gap: 9px; justify-items: start; }
.share-link { overflow-wrap: anywhere; }
.basics { display: grid; gap: 10px; }
.editor-section { padding-block: 0; }
.editor-section summary { padding-block: 14px; cursor: pointer; font-weight: 700; }
.section-fields { border-top: 1px solid var(--line); padding-block: 14px; }
.check { display: flex; min-height: 44px; align-items: center; gap: 9px; }
.field-note { color: var(--muted); font-size: .9rem; }
.check input { width: 19px; height: 19px; accent-color: var(--accent); }
.field { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-weight: 550; }
.login .field { margin-bottom: 12px; }
.field input, .field textarea {
    width: 100%; min-width: 0; min-height: 42px; border: 1px solid #b0c1b6; border-radius: 8px; color: var(--ink);
    background: #fff; padding: 7px 10px; font-weight: 400;
}
.field textarea { resize: vertical; }
.field input[type="file"] { padding: 6px; }
.translations { padding: 0; margin: 0; border: 0; min-width: 0; }
.translations legend { font-weight: 650; margin-bottom: 4px; }
.translation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.translation-grid label span { color: var(--muted); font-size: .85rem; }
.admin-thumb { width: 140px; max-height: 100px; object-fit: cover; border-radius: 8px; }
.repeater { border-top: 1px solid var(--line); padding-top: 12px; }
.repeater h3 { margin-bottom: 8px; }
.repeat-row { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; background: none; color: var(--accent); border: 0; text-decoration: underline; }
.remove { color: var(--risk); justify-self: start; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.alert, .notice { padding: 11px; margin-bottom: 12px; border-radius: 8px; }
.notice { background: var(--soft); }
.alert { background: var(--risk-bg); color: var(--risk); }
.alert ul { padding-left: 22px; }
@media (max-width: 550px) {
    .translation-grid { grid-template-columns: 1fr; }
    .editor-actions .button { flex: 1 1 100%; }
}
@media (min-width: 520px) {
    .guest-shell { border-inline: 1px solid var(--line); }
}
