:root {
  font-family:"Inter","Segoe UI",Arial,sans-serif;
  font-size:16px;
  color:#20304a;
  background:#f4f6fa;
  font-synthesis:none;
  --ink:#1d2d49;
  --blue:#2e4f9e;
  --line:#dbe1ea;
  --muted:#52647b
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

button,input,select {
  font:inherit
}

button,a,summary,input,select {
  touch-action:manipulation
}

button,a,summary {
  cursor:pointer
}

a {
  color:var(--blue);
  text-underline-offset:3px
}

[hidden] {
  display:none!important
}

button:disabled {
  opacity:.48;
  cursor:default
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #507ac1;
  outline-offset:3px
}

.top {
  background:#fff;
  border-bottom:1px solid var(--line)
}

.bar {
  max-width:1180px;
  min-height:70px;
  margin:auto;
  padding:0 34px;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.bar>a,.bar>button {
  font-size:.9rem
}

.brand {
  display:flex;
  align-items:center;
  gap:.65rem;
  font-weight:700;
  letter-spacing:-.04em;
  font-size:1.15rem
}

.guest-shell,.owner-shell {
  width:min(1080px,calc(100% - 64px));
  margin:clamp(40px,8vh,94px) auto 70px
}

.book-card,.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:18px
}

.book-card {
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(240px,.78fr) minmax(360px,1.4fr);
  min-height:470px;
  box-shadow:0 16px 46px #293d6510
}

.host {
  padding:clamp(28px,4vw,52px);
  background:#eaf0fa;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  border-right:1px solid #d8e2f1
}

.avatar {
  width:59px;
  height:59px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#243e72;
  color:#fff;
  font-size:1.34rem;
  letter-spacing:.03em;
  font-weight:600
}

.host-name {
  margin:22px 0 7px;
  color:#475b78;
  font-weight:600;
  font-size:1rem
}

h1,h2,h3,p {
  margin-top:0
}

h1,h2,h3 {
  color:var(--ink);
  letter-spacing:-.045em
}

h1 {
  font-size:clamp(2.15rem,4vw,3.1rem);
  line-height:1.05;
  font-weight:650;
  margin-bottom:20px
}

h2 {
  font-size:1.56rem;
  line-height:1.2;
  margin-bottom:12px
}

h3 {
  font-size:1.02rem;
  letter-spacing:-.018em;
  margin:28px 0 12px
}

.meta {
  display:flex;
  align-items:center;
  gap:9px;
  color:#405571;
  font-size:.96rem
}

.clock {
  width:15px;
  height:15px;
  display:inline-block;
  border:1.6px solid currentColor;
  border-radius:50%;
  position:relative
}

.clock:after {
  content:"";
  position:absolute;
  left:6px;
  top:2px;
  width:3px;
  height:4px;
  border-left:1.5px solid;
  border-bottom:1.5px solid
}

.zone {
  width:100%;
  margin-top:auto;
  padding-top:46px
}

.zone label {
  margin:0 0 7px
}

.zone select {
  background-color:#f8faff
}

.select-pane {
  padding:clamp(28px,4vw,52px)
}

.heading-row,.owner-head,.account-title,.save-row,.action-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px
}

.heading-row {
  align-items:flex-start;
  margin-bottom:24px
}

.heading-row h2 {
  margin-bottom:7px
}

.arrows,.action-row {
  display:flex;
  gap:8px
}

.arrows {
  flex-shrink:0
}

.arrows .nav {
  border:1px solid var(--line);
  border-radius:9px;
  width:36px;
  height:36px;
  font-size:1.5rem;
  line-height:1;
  background:white;
  color:#2d477c
}

.days {
  display:flex;
  gap:7px;
  flex-wrap:wrap
}

.day {
  background:#f7f9fc;
  color:#354764;
  border:1px solid var(--line);
  border-radius:11px;
  min-width:54px;
  min-height:74px;
  flex:1 1 52px;
  max-width:78px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px
}

.day span,.day small {
  font-size:.8rem
}

.day b {
  font-size:1.26rem;
  line-height:1.15
}

.day[aria-pressed=true] {
  background:#294984;
  color:white;
  border-color:#294984
}

.times {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}

.slot,.secondary,.primary {
  border-radius:9px;
  min-height:42px;
  padding:9px 15px;
  font-size:.94rem;
  font-weight:600
}

.slot,.secondary {
  background:#fff;
  border:1px solid #c6d2e4;
  color:#2f4d82
}

.slot:hover,.secondary:hover,.nav:not(:disabled):hover {
  background:#f0f4fb
}

.primary {
  border:1px solid #294984;
  background:#294984;
  color:white
}

.primary:not(:disabled):hover {
  background:#203b70
}

.secondary,.primary {
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center
}

.text-btn {
  color:var(--blue);
  padding:4px 0;
  background:transparent;
  border:0;
  font-size:.9rem;
  font-weight:600
}

.text-btn:hover {
  text-decoration:underline
}

.muted,.hint,.status {
  color:var(--muted);
  line-height:1.5
}

.muted {
  margin-bottom:14px
}

.hint,.optional {
  font-size:.86rem;
  color:var(--muted);
  font-weight:400
}

.hint {
  margin:7px 0 0
}

.status:not(:empty) {
  margin-top:20px
}

label,legend {
  display:block;
  font-size:.88rem;
  font-weight:600;
  color:#384a63;
  margin:16px 0 7px
}

input:not([type=checkbox]),select {
  border:1px solid #bdc9da;
  background-color:white;
  color:#263851;
  padding:9px 12px;
  border-radius:8px;
  min-height:42px;
  width:100%
}

input[readonly] {
  background:#f2f5fa
}

select {
  appearance:none;
  padding-right:31px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23435571' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position:right 11px center;
  background-repeat:no-repeat
}

.selection {
  border-left:3px solid #6d8dc2;
  padding:9px 12px;
  background:#f0f4fb;
  color:#314d76;
  line-height:1.6;
  margin:14px 0 22px
}

.select-pane .text-btn {
  margin-bottom:18px
}

.done {
  border-radius:50%;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  background:#e3eef4;
  color:#224f71;
  font-size:1.4rem;
  margin-bottom:20px
}

.error,.bad {
  color:#8c2840
}

.error:not(:empty) {
  margin:14px 0
}

.notice,.feedback:not(:empty) {
  border:1px solid #c6d6ec;
  background:#eaf1fc;
  color:#334f76;
  padding:12px 16px;
  border-radius:10px;
  font-size:.91rem;
  line-height:1.45;
  margin:0 0 16px
}

.feedback.bad:not(:empty) {
  background:#fff1f2;
  border-color:#ebc2c8;
  color:#8c2840
}

.owner-shell {
  margin-top:38px
}

.owner-head {
  margin:0 0 24px;
  flex-wrap:wrap
}

.owner-head h1 {
  margin:0 0 8px
}

.owner-head .muted {
  margin:0
}

.owner-grid {
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:28px
}

.side-nav {
  align-self:start;
  position:sticky;
  top:16px;
  display:grid;
  gap:5px
}

.side-nav a {
  padding:9px 0;
  text-decoration:none;
  font-size:.94rem;
  color:#435978
}

.side-nav a:hover {
  text-decoration:underline
}

.panel {
  padding:clamp(20px,3vw,32px);
  margin-bottom:18px;
  scroll-margin-top:15px
}

.panel h2 {
  font-size:1.35rem
}

.panel p {
  line-height:1.5
}

.panel p:last-child {
  margin-bottom:0
}

.login {
  max-width:440px;
  margin:8vh auto
}

.login h1 {
  font-size:2rem
}

.login .secondary {
  margin-top:12px
}

.two {
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:18px
}

.account {
  border-top:1px solid var(--line);
  padding:14px 0
}

.account-title {
  margin-bottom:10px;
  flex-wrap:wrap
}

.account-title strong,.account-title small {
  display:block;
  overflow-wrap:anywhere
}

.account-title small {
  color:var(--muted);
  font-size:.82rem;
  margin-top:4px
}

.check {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:400;
  margin:9px 0;
  overflow-wrap:anywhere
}

.check input,input[type=checkbox] {
  width:16px;
  height:16px;
  accent-color:#294984;
  flex-shrink:0
}

.empty {
  padding:10px;
  background:#f3f6fa;
  color:#52647b
}

.action-row {
  justify-content:flex-start;
  flex-wrap:wrap
}

.connect-row {
  margin:16px 0
}

fieldset {
  border:0;
  margin:18px 0 5px;
  padding:0
}

legend {
  padding:0;
  margin:0 0 7px
}

.weekdays {
  display:flex;
  gap:5px;
  flex-wrap:wrap
}

.day-check {
  margin:0;
  position:relative
}

.day-check input {
  position:absolute;
  opacity:0
}

.day-check span {
  display:block;
  cursor:pointer;
  background:#f7f9fc;
  border:1px solid var(--line);
  border-radius:7px;
  padding:8px 10px
}

.day-check input:checked+span {
  background:#e1eafa;
  border-color:#889fc6;
  color:#233f71
}

.day-check input:focus-visible+span {
  outline:3px solid #507ac1
}

.save-row {
  margin-top:22px;
  border-top:1px solid var(--line);
  padding-top:15px
}

details {
  border-top:1px solid var(--line);
  padding-top:14px
}

summary {
  color:var(--blue);
  font-weight:600
}

form>.secondary,details form>button {
  margin-top:16px
}

@media(max-width:760px) {
  .guest-shell,.owner-shell {
    width:calc(100% - 28px);
    margin:20px auto 40px
  }
  .bar {
    padding:0 18px;
    min-height:58px
  }
  .book-card {
    grid-template-columns:1fr
  }
  .host {
    padding:23px;
    border-right:0;
    border-bottom:1px solid var(--line);
    display:grid;
    grid-template-columns:48px 1fr;
    column-gap:13px;
    align-items:center
  }
  .avatar {
    width:46px;
    height:46px;
    border-radius:12px;
    grid-row:1/3;
    font-size:1rem
  }
  .host-name {
    margin:0 0 3px;
    font-size:.9rem
  }
  .host h1 {
    font-size:1.8rem;
    margin:0
  }
  .meta {
    margin-top:10px;
    grid-column:1/-1
  }
  .zone {
    grid-column:1/-1;
    padding-top:16px
  }
  .zone .hint {
    display:none
  }
  .select-pane {
    padding:23px
  }
  .owner-grid {
    display:block
  }
  .side-nav {
    display:none
  }
  .owner-head .action-row {
    width:100%
  }
  .panel {
    border-radius:12px
  }
  .bar>a {
    font-size:.83rem
  }
}

@media(max-width:420px) {
  .two {
    grid-template-columns:1fr
  }
  .day {
    min-width:43px;
    min-height:62px;
    flex-basis:43px
  }
  .days {
    gap:4px
  }
  .slot {
    padding:8px
  }
  .select-pane {
    padding:18px
  }
  .heading-row {
    gap:5px
  }
  .nav {
    width:32px!important
  }
  .action-row {
    gap:6px
  }
}
