:root {
  --white: #f9f6f0; --bone: #ede8df; --slate: #33322f; --taupe: #524e49;
  --stone: #7a736a; --bronze: #a8804a; --wheat: #ccaa6e;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--slate); font-family: var(--sans); font-size: 16px; line-height: 1.45; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--white); display: flex; flex-direction: column; }
#app.staff { background: var(--bone); }
a { color: var(--slate); }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); }
p { margin: 0; }
.muted { color: var(--taupe); }
.small { font-size: 15px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--bone); background: var(--white); }
.brand { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.1; text-decoration: none; }
.brand span { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); }
.top nav { display: flex; gap: 2px; }
.linkbtn { min-height: 44px; padding: 0 10px; background: none; border: none; border-bottom: 2px solid transparent; font: inherit; font-size: 15px; color: var(--taupe); cursor: pointer; }
.linkbtn.on { border-bottom-color: var(--bronze); color: var(--slate); font-weight: 600; }

.dark { background: var(--slate); color: var(--white); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.dark h2, .kick { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wheat); }
.dark .muted { color: var(--bone); }

main { padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 22px; flex-grow: 1; }
.staff main { padding: 20px 16px 32px; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

label, .label { font-weight: 600; }
input[type=text], input[type=tel], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 52px; padding: 12px; background: var(--white); color: var(--slate);
  border: 1px solid var(--stone); border-radius: 2px; font: inherit; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-weight: 400; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--slate); flex: none; }

.btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 14px; border-radius: 2px;
  border: 1px solid var(--slate); background: var(--white); color: var(--slate); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--slate); color: var(--white); }
.btn.big { min-height: 56px; font-size: 17px; }
.btn.light { background: var(--white); color: var(--slate); border-color: var(--white); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.choice { min-height: 60px; padding: 10px 12px; text-align: left; align-items: flex-start; justify-content: center; flex-direction: column; border-color: var(--stone); font-size: 15px; }
.choice small { font-weight: 400; font-size: 14px; }
.choice[aria-pressed=true] { background: var(--slate); color: var(--white); border-color: var(--slate); }
.dashed { border-style: dashed; border-color: var(--stone); }

.alert { border: 1px solid var(--slate); background: var(--bone); padding: 14px 16px; }
.alert b { display: block; }
.err { border: 1px solid var(--slate); padding: 12px 14px; font-weight: 600; }
.card { background: var(--white); border: 1px solid var(--stone); padding: 16px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card.urgent { border: 2px solid var(--slate); }
.card .title { font-size: 18px; font-weight: 600; line-height: 1.25; }
.tag { align-self: flex-start; background: var(--slate); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 8px; }
.when { font-family: var(--serif); font-size: 26px; line-height: 1.05; }
.visit { font-family: var(--serif); font-size: 30px; line-height: 1.15; }

.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; }
.step .rail { display: flex; flex-direction: column; align-items: center; flex: none; width: 20px; }
.step .dot { width: 16px; height: 16px; margin-top: 4px; background: var(--slate); }
.step .line { width: 2px; flex-grow: 1; background: var(--slate); }
.step.now .dot { background: var(--bronze); outline: 3px solid var(--bone); }
.step.todo .dot { width: 14px; height: 14px; background: none; border: 1px solid var(--stone); }
.step.todo .line, .step.now .line { background: var(--bone); }
.step .body { padding-bottom: 20px; }
.step.todo .body { color: var(--taupe); }
.step .body b { display: block; }

.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photos a, .photos img { display: block; width: 96px; height: 72px; object-fit: cover; border: 1px solid var(--bronze); background: var(--bone); }
ul.scope { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; text-align: center; }
hr { border: none; border-top: 1px solid var(--bone); margin: 0; }
