:root {
  font: 100%/1.55 "Segoe UI", system-ui, sans-serif;
  color: #162b35;
  background: #f2f6f6;
  --accent: #006456;
  --line: #d5e1e2;
  --muted: #4e6068;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(68rem, calc(100% - 2.25rem)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, #account { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.top-inner { justify-content: space-between; min-height: 4.25rem; padding-block: .5rem; }
.brand { color: #172d37; text-decoration: none; font-size: 1.5rem; font-weight: 850; letter-spacing: -.045em; }
.brand span { color: var(--accent); }
.hero {
  margin: 1.5rem 0; padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: 1.25rem;
  background: linear-gradient(112deg, #102a38 20%, #13504e 100%);
  color: #fff;
}
.hero p { margin: 0; color: #deedec; }
.hero .location { font-size: .9rem; letter-spacing: .06em; color: #bdece0; font-weight: 650; }
h1, h2, h3 { line-height: 1.2; }
h1 { margin: .5rem 0; font-size: clamp(2rem, 5.3vw, 3.4rem); letter-spacing: -.04em; }
h2 { margin: 0 0 .8rem; font-size: 1.35rem; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 1.05rem; }
p { margin: .4rem 0 .8rem; }
.grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); align-items: start; gap: 1rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.5rem); min-width: 0; }
.muted { color: var(--muted); }
form, label { display: grid; gap: .4rem; }
form { gap: .9rem; }
label { font-size: .95rem; font-weight: 620; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: .58rem .72rem; border: 1px solid #9caeb3; border-radius: .5rem; background: #fff; color: inherit; }
textarea { resize: vertical; min-height: 4rem; }
button { cursor: pointer; border: 1px solid transparent; border-radius: .55rem; padding: .6rem .9rem; background: var(--accent); color: white; font-weight: 650; min-height: 2.6rem; }
button.secondary { background: white; border-color: #a9bdbf; color: var(--accent); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #137fc5; outline-offset: 3px; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .7rem; }
.booking { border-top: 1px solid var(--line); padding: 1rem 0; overflow-wrap: anywhere; }
.booking:last-child { padding-bottom: 0; }
.booking header { display: flex; align-items: start; justify-content: space-between; gap: .5rem; }
.tag { color: #234953; background: #eaf2f4; border-radius: 1rem; font-size: .88rem; padding: .18rem .6rem; white-space: nowrap; }
.tag.completed, .tag.confirmed { background: #def3eb; color: #164f3c; }
.tag.pending { background: #fff1d9; color: #674111; }
.receipt { background: #edf7f3; padding: .75rem; border-radius: .55rem; margin-top: .65rem; }
details + form, details form { margin-top: .55rem; }
summary { cursor: pointer; color: var(--accent); font-weight: 650; }
#message { background: #e1f5ec; color: #174739; border: 1px solid #add8c9; padding: .7rem 1rem; border-radius: .55rem; margin-bottom: 1rem; }
#message.error { background: #fff0e9; color: #783313; border-color: #efc6b8; }
footer { padding-block: 1.4rem; color: var(--muted); font-size: .9rem; }
.notice { background: #fff7e0; border: 1px solid #ecd28f; color: #5b430a; border-radius: .75rem; padding: .75rem 1rem; margin-bottom: 1rem; display: grid; gap: .25rem; }
.notice .mode { font-weight: 650; }
.services { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.services li { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; display: grid; gap: .2rem; align-content: start; }
.services li > span { font-size: 1.6rem; line-height: 1; }
.services small { color: var(--muted); }
.tabs { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: 1rem; padding-bottom: .2rem; }
.tabs button { background: #fff; color: var(--accent); border-color: #a9bdbf; white-space: nowrap; flex: 0 0 auto; }
.tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: .5rem; padding: .5rem .75rem; margin: 0; display: grid; gap: .25rem; min-width: 0; }
legend { font-weight: 620; font-size: .95rem; padding-inline: .3rem; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; min-height: 2rem; }
label.check input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }
.timeline { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .92rem; }
.tag.in_progress, .tag.accepted, .tag.approved { background: #def3eb; color: #164f3c; }
.tag.open { background: #fff1d9; color: #674111; }
.tag.cancelled, .tag.rejected { background: #f3e4e1; color: #6e2a1d; }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell { width: min(68rem, calc(100% - 1.5rem)); }
}
@media (max-width: 380px) { .services { grid-template-columns: 1fr; } }

.panel { margin-bottom: 1rem; }
.legal { max-width: 46rem; margin-inline: auto; }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); color: #172d37; margin: 1rem 0 .3rem; }
.legal h2 { margin: 1.8rem 0 .5rem; font-size: 1.25rem; }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal ul { padding-left: 1.2rem; margin: .4rem 0 .8rem; }
.legal .meta { color: var(--muted); font-size: .92rem; }
.legal .draft { background: #fff7e0; border: 1px solid #ecd28f; color: #5b430a; border-radius: .75rem; padding: .75rem 1rem; margin: 1rem 0; }
.todo { background: #fff1d9; border-radius: .3rem; padding: 0 .3rem; font-weight: 650; }
.langs { display: flex; gap: .8rem; flex-wrap: wrap; margin: .8rem 0; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: .6rem 0 1rem; }
.table-wrap table { border-collapse: collapse; min-width: 34rem; width: 100%; font-size: .94rem; }
.table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.table-wrap th { background: #eaf2f4; }
.footlinks { display: flex; gap: 1rem; flex-wrap: wrap; }
a { color: var(--accent); }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .65rem 1.1rem; border-radius: .55rem; font-weight: 650; }
.notice.error { background: #fff0e9; border-color: #efc6b8; color: #783313; }
.actions { margin: 1rem 0; }
