:root { color-scheme: light; --ink: #172e2b; --muted: #4b625d; --line: #a5b6af; --brand: #164e47; --surface: #f4f4ed; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: #f4f4ed; line-height: 1.6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1240px; margin: auto; padding: 28px clamp(16px, 4vw, 48px) 56px; }
h1, h2, h3, h4, h5 { line-height: 1.25; overflow-wrap: anywhere; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2rem, 4vw, 3.5rem); margin: .25em 0; max-width: 850px; }
h2 { font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.2rem; }
h4, h5 { font-size: 1.05rem; }
p { margin: .6em 0 1em; }
a { color: #12564f; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #8b3c00; outline-offset: 4px; }
button:focus-visible { outline: 3px solid #8b3c00; outline-offset: 4px; box-shadow: 0 0 0 2px #fff; }
:target { scroll-margin-top: 24px; }
.skip { position: fixed; left: 16px; top: -120px; z-index: 100; background: #fff; padding: 12px 20px; border: 2px solid #164e47; }
.skip:focus { top: 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 5vw, 60px); background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { text-decoration: none; font-weight: 750; font-size: 1.1rem; }
.brand span { font-weight: 450; margin-left: 12px; }
.badge { font-size: .85rem; color: var(--muted); }
.intro { padding: 14px 0 26px; }
.intro > p:last-child { max-width: 780px; font-size: 1.1rem; }
.eyebrow { font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; color: #48635a; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 30px); margin-bottom: 24px; box-shadow: 0 4px 16px #172e2b06; }
.login { max-width: 580px; }
.section-heading, .toolbar, .actions { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.actions { justify-content: flex-start; margin-top: 20px; }
.actions a, nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 2px; }
.grow { flex: 1; min-width: min(100%, 240px); }
.form-grid, .preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid > *, .preview-grid > * { min-width: 0; }
fieldset { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; margin: 20px 0; }
#item-fields, #profile-fields { padding: 0; border: 0; }
#item-fields > legend, #profile-fields > legend { font-weight: 700; margin-bottom: 12px; }
legend { font-weight: 650; padding: 0 6px; }
.translation { margin: 12px 0; background: #fbfcfa; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; min-height: 46px; border: 1px solid #647b74; background: #fff; color: var(--ink); padding: 10px 12px; border-radius: 6px; }
input[type=file] { padding: 8px; }
input[type=file]::file-selector-button { min-height: 34px; font: inherit; }
textarea { resize: vertical; }
input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; flex-shrink: 0; accent-color: #164e47; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; font-weight: 450; cursor: pointer; overflow-wrap: anywhere; }
.module-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 8px 0; }
.selection-list { display: grid; gap: 8px; }
button { min-height: 46px; padding: 10px 18px; border-radius: 6px; border: 2px solid #164e47; background: #164e47; color: #fff; cursor: pointer; font-weight: 650; }
button:hover { background: #0d3732; border-color: #0d3732; }
button.secondary { background: #fff; color: #164e47; }
button.secondary:hover { background: #eef4f1; }
button.danger { background: #fff; color: #842b25; border-color: #842b25; }
button.danger:hover { background: #fff3f2; }
button:disabled { opacity: .6; cursor: wait; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { color: #435b54; background: #f3f5f3; opacity: 1; }
form > button { margin-top: 20px; }
.help, .muted { font-size: .9rem; color: var(--muted); }
.help { margin: 6px 0 16px; }
.note { background: #edf3ef; padding: 12px 16px; border-left: 4px solid #567a65; }
.message { border-radius: 6px; padding: 12px 18px; }
.status { background: #e4efe9; color: #184a34; }
.status:empty { margin: 0; padding: 0; }
.error { background: #fff1ed; border: 2px solid #842b25; color: #73231f; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 8px; }
details { margin-top: 24px; }
summary { cursor: pointer; min-height: 44px; padding: 8px 0; font-weight: 650; }
code { overflow-wrap: anywhere; }
tourism-view { display: block; background: var(--surface); color: #172e2b; border: 1px solid #a5b6af; border-radius: 8px; overflow: hidden; }
.guest-banner { padding: 22px; background: var(--brand); color: #fff; display: flex; align-items: center; gap: 16px; }
.guest-banner img { object-fit: contain; max-width: 64px; }
.guest-name { font-size: 1.4rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.guest-module { padding: 8px 20px 20px; }
.guest-card { background: #fff; color: #172e2b; border: 1px solid #a5b6af; border-radius: 6px; margin-bottom: 20px; overflow: hidden; }
.guest-card > img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 300; object-fit: cover; }
.guest-card > h3, .guest-card > h5, .guest-card > h6, .guest-card > p, .guest-card > dl { margin: 18px; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
dl { font-size: .95rem; } dt { font-weight: 650; } dd { margin: 0 0 10px; overflow-wrap: anywhere; }
.empty { padding: 20px; }
.guest-language { max-width: 260px; margin-bottom: 24px; }
.table-scroll { overflow-x: auto; margin: 12px 0 24px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
caption { text-align: left; padding: 10px; font-weight: 600; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; min-width: 130px; }
thead { background: #edf3ef; }
tbody th { font-weight: 550; }
#audit { padding-left: 22px; } #audit li { padding: 8px 0; overflow-wrap: anywhere; }
dialog { color: var(--ink); max-width: min(560px, calc(100% - 32px)); border: 2px solid #164e47; border-radius: 12px; padding: 28px; }
dialog::backdrop { background: #102d2bcc; }
footer { border-top: 1px solid var(--line); padding: 24px; text-align: center; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .form-grid, .form-grid.three, .preview-grid { grid-template-columns: minmax(0, 1fr); } .topbar { align-items: flex-start; } .brand span { display: block; margin-left: 0; } .section-heading, .toolbar { align-items: flex-start; } .section-heading > *, .toolbar > * { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (forced-colors: active) { button, input, select, textarea, .panel, tourism-view, .guest-card { border: 1px solid CanvasText; } :focus-visible { outline: 3px solid Highlight; } }
