:root {
  color-scheme: light;
  --navy: #173249;
  --ink: #203448;
  --muted: #526374;
  --paper: #f6f5f1;
  --white: #fff;
  --line: #d9e0e6;
  --warm: #f4ece0;
  --gold: #a55c20;
  --red: #aa252c;
  --focus: #1c668f;
  font: 16px/1.55 "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #205e83; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { color: var(--navy); font-size: clamp(1.85rem, 5.6vw, 2.55rem); line-height: 1.25; letter-spacing: -.025em; }
h2 { color: var(--navy); font-size: 1.13rem; line-height: 1.5; }
.masthead { background: var(--navy); color: var(--white); }
.mast-inner, .shell { width: min(100% - 32px, 690px); margin-inline: auto; }
.mast-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 650; }
.brand-mark { width: 35px; height: 35px; flex: 0 0 auto; background: url("/hotel.svg") center/contain no-repeat; border: 1px solid #657789; border-radius: 9px; }
.environment { color: #ffdea9; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.shell { padding-block: clamp(22px, 5vw, 44px) 42px; }
.wide { width: min(100% - 32px, 1240px); }
.page-heading { margin-bottom: 22px; }
.page-heading p, .section-note { color: var(--muted); font-size: .9rem; }
.page-heading p { margin-top: 8px; }
.section-note { margin-top: 3px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 13px; }
.form-panel, .admin-panel { padding: clamp(16px, 3vw, 25px); }
.field { padding: 13px 0; border-bottom: 1px solid #e9e9e5; }
.field:last-child { padding-bottom: 0; border: none; }
.field label, .field legend, .login label, .filters label { font-weight: 650; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; }
.required { margin-inline: 5px 0; color: var(--red); }
.optional { margin-left: 8px; font-size: .76rem; color: var(--muted); font-weight: 400; }
input:not([type=radio], [type=hidden]), textarea {
  width: 100%; min-height: 44px; padding: 9px 11px; background: #fdfdfd; color: var(--ink);
  border: 1px solid #aebac5; border-radius: 8px; min-width: 0;
}
input[type=date] { appearance: none; }
textarea { display: block; resize: vertical; }
.input-wrap { margin-top: 6px; }
.minutes-wrap { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .875rem; }
.minutes-wrap input { max-width: 120px; font-size: 1rem; }
.note { margin-top: 2px; }
.note summary { display: inline-flex; min-height: 40px; align-items: center; gap: 6px; cursor: pointer; color: #415e71; font-size: .85rem; list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note-icon::before { content: '+'; font-size: 1rem; line-height: 1; }
.note[open] .note-icon::before { content: '−'; }
.note textarea { margin-top: 2px; }
.star-row { display: grid; grid-template-columns: repeat(10, minmax(44px, 1fr)); gap: 6px; margin-top: 6px; }
.star {
  min-width: 0; height: 44px; display: grid; place-items: center; position: relative;
  border: 1px solid #cbd5df; background: #f7f9fa; border-radius: 8px; font-size: .95rem; color: #5d6f7e; cursor: pointer;
}
.star input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.star:has(input:checked), .star:has(~ .star input:checked) { background: #fff0d9; color: var(--gold); border-color: #d69a5f; }
.star:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.star:hover { border-color: var(--gold); }
.overall textarea { margin-top: 10px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid transparent; padding: 8px 15px; font-size: .9rem; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.primary { color: var(--white); background: var(--navy); }
.primary:hover { color: var(--white); background: #244761; }
.secondary { color: var(--navy); background: var(--white); border-color: #aebac5; }
.secondary:hover { background: #eef4f7; }
.button:disabled { opacity: .62; cursor: wait; }
.full { width: 100%; }
.form-actions .section-note { margin-top: 8px; text-align: center; }
.notice { padding: 10px 13px; margin: 10px 0; border-radius: 8px; color: #544329; background: var(--warm); font-size: .9rem; }
.notice.error, .low-score { background: #ffedeb; color: var(--red); }
.low-score { font-weight: 700; border-radius: 5px; padding: 2px 5px; }
.field-error { margin-top: 5px; color: var(--red); font-size: .85rem; }
[aria-invalid=true]:not([type=radio]) { border-color: var(--red); }
.state, .login { max-width: 470px; margin-inline: auto; padding: clamp(21px, 5vw, 35px); }
.state { text-align: center; }
.state p { margin: 10px 0 18px; color: var(--muted); }
.check-mark { display: inline-grid; place-items: center; width: 50px; height: 50px; background: #e8f5ed; color: #196341; border-radius: 50%; font-size: 1.5rem; margin-bottom: 14px; }
.login form { margin-top: 20px; }
.login form label { display: block; margin: 12px 0 4px; }
.login form .button { margin-top: 16px; }
.manage-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.manage-heading .role-label { margin: 0 0 5px; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.filters label { display: block; margin-bottom: 4px; font-size: .85rem; }
.filter-actions, .list-heading, .pagination { display: flex; gap: 9px; align-items: center; }
.list-heading { justify-content: space-between; margin-bottom: 12px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 12px 0 0; }
.metrics > div { background: #f5f7f8; padding: 8px 10px; border-radius: 7px; }
.metrics dt { color: var(--muted); font-size: .8rem; }
.metrics dd { margin: 3px 0 0; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .83rem; white-space: nowrap; }
th, td { text-align: left; padding: 9px 7px; border-bottom: 1px solid var(--line); }
th { background: #eff3f6; color: var(--ink); }
.empty { color: var(--muted); padding: 16px 0 4px; }
.pagination { justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; font-size: .9rem; }
.back { display: inline-block; margin-bottom: 10px; }
.detail-list { margin: 8px 0 0; }
.detail-list > div { display: grid; grid-template-columns: minmax(100px, 26%) 1fr; gap: 9px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.detail-list > div:last-child { border: none; padding-bottom: 0; }
.detail-list dt { font-weight: 650; }
.detail-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.detail-note { margin-top: 4px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 650px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-actions { flex-wrap: wrap; }
}
@media (max-width: 365px) {
  .filters { grid-template-columns: 1fr; }


}
.star-glyph { font-size: .82em; padding-left: 2px; }
@media (max-width: 620px) {
  .star-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.crew-link a { display: inline-block; margin: 12px 10px 0 0; }
.feedback-list { margin: 13px 0 18px; padding: 0; list-style: none; }
.feedback-entry { border-top: 1px solid var(--line); padding: 12px 0; }
.feedback-entry header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.feedback-entry time { color: var(--muted); font-size: .78rem; }
.feedback-form { display: grid; gap: 8px; margin-top: 15px; }
.feedback-form label { font-weight: 650; }
.feedback-form .button { justify-self: start; }
.translation-toggle { margin-top: 3px; font-size: .85rem; }
.translation-toggle summary { color: #205e83; cursor: pointer; }
.translation-status { display: inline-block; color: #714311; background: var(--warm); border-radius: 4px; font-size: .76rem; padding: 1px 5px; margin-top: 3px; }

[data-review-history] ul { margin: 8px 0 0; padding: 0; list-style: none; }
[data-review-history] li { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding: 8px 0; }
[data-review-history] li:not(:last-child) { border-bottom: 1px solid var(--line); }
[data-review-history] time { color: var(--muted); font-size: .85rem; }
