:root {
  --green: #23476b;
  --green-deep: #16304a;
  --cream: #f3f1ea;
  --paper: #fffdf8;
  --ink: #1f2420;
  --muted: #5d655f;
  --copper: #a3501f;
  --copper-soft: #f4e2d2;
  --line: #e2dccd;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --bad: #a1312b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 8px 24px rgba(20, 30, 25, .06);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; line-height: 1.15; color: var(--green-deep); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.7rem; margin: 0 0 .5rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
a { color: var(--green); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.demo-banner { background: var(--green-deep); color: #f3e9d2; font-size: .9rem; padding: .55rem 1.25rem; text-align: center; }
.demo-banner strong { color: #ffd7ad; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem clamp(1rem, 4vw, 3rem); background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: "Iowan Old Style", Georgia, serif; font-size: 1.35rem; color: var(--green-deep); font-weight: 700; }
.brand em { font-style: normal; font-weight: 400; color: var(--copper); }
.site-header nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-header nav a:hover { color: var(--copper); }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem) 3rem; }
.band { margin-top: 3.2rem; }
.section-head { margin-bottom: 1.2rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; padding-top: 3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--copper); font-weight: 700; margin: 0; }
.lede { font-size: 1.15rem; color: #3a423d; max-width: 56ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hold-flow { list-style: none; margin: 0; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.hold-flow li { display: grid; grid-template-columns: 18px 1fr; column-gap: .8rem; }
.hold-flow li span:last-child { grid-column: 2; color: var(--muted); font-size: .95rem; }
.dot { width: 14px; height: 14px; border-radius: 50%; margin-top: .3rem; grid-row: span 2; }
.dot.requested { background: #d9a23a; } .dot.owner { background: var(--copper); } .dot.approved { background: var(--ok); }

button, .button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: .7rem 1.15rem; background: var(--green); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { background: var(--green-deep); }
button:disabled { opacity: .6; cursor: progress; }
button.secondary, .button.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
button.secondary:hover, .button.ghost:hover { background: #e9efe9; }
.link-button { background: none; color: var(--copper); padding: 0; font-weight: 600; margin-top: auto; text-align: left; }
.link-button:hover { background: none; text-decoration: underline; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.service-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow); }
.service-card p { margin: 0; font-size: .93rem; }
.service-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.price { font-weight: 700; color: var(--copper); font-size: 1.1rem; }
.duration { color: var(--muted); font-size: .85rem !important; }

table.hours { border-collapse: collapse; width: 100%; max-width: 420px; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.hours th, table.hours td { text-align: left; padding: .55rem .9rem; border-bottom: 1px solid var(--line); font-weight: 500; }
table.hours tr:last-child th, table.hours tr:last-child td { border-bottom: 0; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.hold-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
label, legend { font-weight: 600; font-size: .95rem; }
input, select { font: inherit; padding: .65rem .75rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid #e7b98c; outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); margin: 0; font-size: .92rem; }
.day-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.day-chip { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; justify-items: center; padding: .5rem .8rem; min-width: 84px; gap: 0; }
.day-chip:hover { background: #f3efe4; }
.day-chip[aria-pressed="true"] { background: var(--green); color: #fff; box-shadow: none; }
.day-chip .wd { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.day-chip .md { font-size: 1rem; }
.day-chip .count { font-size: .72rem; font-weight: 500; opacity: .8; }
.time-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.time-chip { position: relative; font-weight: 500; }
.time-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.time-chip span { display: inline-block; padding: .45rem .75rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.time-chip input:checked + span { background: var(--copper); color: #fff; box-shadow: none; }
.time-chip input:focus-visible + span { outline: 3px solid #e7b98c; outline-offset: 2px; }
.summary { background: var(--copper-soft); border-radius: 10px; padding: .75rem .9rem; margin: 0; font-weight: 500; }
.actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.receipt { margin-top: 1rem; }
.status-card { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); margin-top: 1rem; }
.status-requested { border-left-color: #d9a23a; } .status-approved { border-left-color: var(--ok); }
.status-declined { border-left-color: var(--bad); } .status-expired { border-left-color: #8b8f8c; }
.status-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.status-pill { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; background: #eee; }
.status-requested .status-pill, .status-pill.status-requested { background: #fbefd5; color: var(--warn); }
.status-approved .status-pill, .status-pill.status-approved { background: #dcefe4; color: var(--ok); }
.status-declined .status-pill, .status-pill.status-declined { background: #f6dcda; color: var(--bad); }
.status-expired .status-pill, .status-pill.status-expired { background: #e8e9e8; color: #4a4f4c; }
.status-pill.small { font-size: .7rem; }
.code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-weight: 700; letter-spacing: .04em; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .4rem 0; }
dt { color: var(--muted); } dd { margin: 0; font-weight: 500; }
.meaning { margin: .6rem 0 0; }
.unknown { margin-top: 1rem; border-color: #e7c27d; background: #fff8ea; }

.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.inline-form input { width: auto; flex: 1 1 180px; }
.inline-form .field-error { flex-basis: 100%; }
#lookup-code { font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.rules { padding-left: 1.1rem; } .rules li { margin-bottom: .4rem; }

.owner-band .panel { max-width: 640px; }
.owner-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: .6rem; }
.owner-bar button { padding: .45rem .8rem; }
.owner-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.owner-card { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid #d9a23a; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.deadline { font-size: .85rem; color: var(--warn); font-weight: 600; }
.owner-actions { display: grid; gap: .6rem; margin-top: .8rem; }
.owner-actions label { display: grid; gap: .3rem; font-size: .88rem; }
.recent { padding-left: 0; list-style: none; display: grid; gap: .4rem; }
.empty { padding: 1rem 0; }

.assistant-review { border: 0; border-radius: var(--radius); padding: 1.5rem; max-width: 460px; width: calc(100% - 2rem); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); font-family: inherit; }
.assistant-review::backdrop { background: rgba(19, 53, 40, .45); }
.assistant-review h2 { margin-top: 0; font-size: 1.35rem; }
.assistant-review dl { background: var(--cream); border-radius: 10px; padding: .8rem 1rem; }
.assistant-review button { margin: .8rem .5rem 0 0; }
.assistant-review .assistant-decline { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.assistant-review pre { white-space: pre-wrap; font-size: .8rem; background: #f4f4f1; padding: .6rem; border-radius: 8px; }
body > dialog { border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 1.6rem clamp(1rem, 4vw, 3rem); font-size: .92rem; }
.site-footer p { max-width: 1120px; margin: .3rem auto; }

/* The hold window another agent site opens on this origin. */
.hold-window { background: var(--cream); }
.hold-window .site-header { position: static; }
.demo-tag { font-size: .8rem; color: var(--muted); }
.window-main { max-width: 560px; margin: 1.5rem auto; padding: 0 1rem; display: grid; gap: 1rem; }
.window-main h1 { font-size: 1.8rem; margin: 0 0 .3rem; }
.window-main fieldset { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .8rem; }
.fine-print { font-size: .9rem; color: var(--muted); margin: .6rem 0 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .site-header { position: static; }
}
