:root { --teal: #0d6e6e; --teal-d: #094f4f; --cyan: #19b9d1; --sun: #f6c33b; --ink: #1d2a2a;
  --muted: #5f6f6f; --line: #d9e3e3; --bg: #f5f8f8; --red: #b3261e; --amber: #9a6400; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
.top { background: var(--teal); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 20px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sun { width: 18px; height: 18px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(246,195,59,.35); }
nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
nav a { color: #e3f4f4; text-decoration: none; padding: 6px 10px; border-radius: 6px; }
nav a.on, nav a:hover { background: var(--teal-d); color: #fff; }
nav a.out { margin-left: auto; }
main { max-width: 1100px; margin: 0 auto; padding: 20px; }
h1 { margin: 6px 0 16px; font-size: 24px; }
h2 { font-size: 18px; margin: 18px 0 10px; color: var(--teal-d); }
h3 { font-size: 15px; margin: 14px 0 6px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.card h2:first-child { margin-top: 0; }
.narrow { max-width: 420px; }
.center { text-align: center; margin: 0 auto 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; }
label { display: block; margin: 0 0 10px; font-weight: 600; font-size: 13px; color: var(--muted); }
label.check { font-weight: 400; color: var(--ink); font-size: 14px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid #b9c8c8; border-radius: 6px; background: #fff; }
label > input:not([type=checkbox]), label > select, label > textarea { display: block; width: 100%; margin-top: 3px; color: var(--ink); font-weight: 400; }
textarea { min-height: 70px; width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 6px 0 14px; padding: 10px 14px; }
legend { font-weight: 700; color: var(--teal-d); padding: 0 4px; }
button, .btn { display: inline-block; font: inherit; font-weight: 600; background: var(--teal); color: #fff; border: 1px solid var(--teal);
  padding: 8px 16px; border-radius: 6px; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: var(--teal-d); }
button.ghost, .btn.ghost { background: #fff; color: var(--teal); }
button.small { padding: 4px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.search { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.search input[name=q] { flex: 1; min-width: 220px; padding: 10px 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; margin-bottom: 12px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
td.num { text-align: right; white-space: nowrap; }
table.cart input { width: 70px; }
table.edit input[type=number] { width: 60px; }
table.edit input { padding: 4px 6px; }
tr.newrow { background: #f0f9f9; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; }
dt { color: var(--muted); }
dd { margin: 0; }
.notice, .alert, .warn { padding: 10px 14px; border-radius: 8px; margin: 0 0 12px; }
.notice { background: #e4f5f2; border: 1px solid #a9dcd3; }
.alert { background: #fdecea; border: 1px solid #f2b8b2; color: var(--red); }
.warn { background: #fff5e0; border: 1px solid #f0d49b; color: var(--amber); }
.owed { color: var(--red); font-weight: 600; }
.muted { color: var(--muted); }
.big { font-size: 26px; font-weight: 700; margin: 10px 0; }
.statement { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; white-space: normal; }
.inline { display: inline; }
.inline input, .inline select { padding: 3px 6px; }
.beds { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; }
.bed { background: #fff; border: 1px solid var(--line); border-left: 6px solid #9bd8a5; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; }
.bed.busy { border-left-color: var(--sun); }
.bed span { color: var(--muted); font-size: 13px; }
.bed em { font-style: normal; font-size: 13px; margin-top: 4px; }
