.ops-shell { width: min(1040px, calc(100% - 40px)); margin: 28px auto 72px; }
.ops-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.ops-bar a:first-child { margin-right: auto; }
.ops-jump { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 12px 0; font-weight: 700; }
.ops-panel { background: #fdfbf7; border: 1px solid var(--line); padding: clamp(18px, 4vw, 32px); margin-block: 18px; }
.ops-panel h2 { margin-top: 0; }
.ops-panel label { display: grid; gap: .4rem; margin-block: .7rem; font-weight: 600; }
.ops-panel :is(input:not([type="checkbox"]), textarea, select) {
  width: 100%; min-width: 0; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 4px; padding: .65rem .75rem; font: inherit;
}
.ops-panel textarea { resize: vertical; }
.ops-panel button, .ops-shell button, .achievement-dialog button {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px;
  font: inherit; font-weight: 650; padding: .6rem .9rem; cursor: pointer;
}
:is(.ops-panel, .ops-shell, .achievement-dialog) .ops-primary {
  color: #fff; border-color: var(--accent); background: var(--accent);
  font: inherit; font-weight: 700;
}
.ops-panel button:disabled, .ops-shell button:disabled { opacity: .55; cursor: default; }
.ops-panel .ops-check { display: flex; align-items: flex-start; gap: .55em; font-weight: 500; }
.ops-panel .ops-check input { margin-top: .28em; accent-color: var(--accent); }
.ops-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.ops-inline label { margin: 0; }
.ops-list { list-style: none; padding: 0; }
.ops-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-block: 8px; }
.ops-editor { border-top: 1px solid var(--line); padding-block: 12px; }
.ops-editor summary { cursor: pointer; font-weight: 750; }
.ops-school { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; align-items: end; gap: 0 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ops-school button { justify-self: start; align-self: center; }
.ops-request { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.ops-request select { width: auto; }
.ops-save { position: sticky; bottom: 0; z-index: 1; background: var(--paper); padding-block: 14px; }
#admin-status { position: sticky; top: 0; z-index: 2; font-weight: 700; color: var(--accent); background: var(--paper); }
#admin-status:not(:empty) { padding-block: 10px; }
#popup-image-preview { max-width: min(100%, 280px); max-height: 240px; object-fit: contain; }

.booking-page { width: min(1120px, calc(100% - 40px)); margin: 48px auto 72px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.booking-page .ops-panel { margin-block: 0; }
.booking-page [hidden] { display: none; }
.phone-consultation { border-radius: 12px; }
.phone-consultation .secondary-link { margin-inline-start: .8rem; }
.booking-page h1 { margin-block: .3em .6em; }
.booking-page .booking-timezone { color: var(--muted); }
.booking-month { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.booking-arrows { display: flex; gap: 8px; }
.booking-dates, .booking-times { display: grid; gap: 8px; }
.booking-dates { grid-template-columns: repeat(7, 1fr); }
.booking-times { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); margin-top: 18px; }
.booking-dates button { display: grid; justify-items: center; gap: 4px; min-height: 60px; padding-inline: .25em; }
.booking-dates small { font-weight: 500; color: inherit; }
.booking-dates button[aria-pressed="true"], .booking-times button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: #fbefea; }
.booking-phone { margin-top: 24px; }
.booking-phone a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .65em .9em;
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}
.booking-phone a:hover { background: var(--accent-hover); }
#booking-status { color: var(--accent); font-weight: 700; min-height: 1.6em; }
#booking-privacy { font-size: .82rem; color: var(--muted); }
[data-managed-about] { white-space: pre-line; }

.achievement-dialog { width: min(490px, calc(100% - 32px)); max-height: 85dvh; overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fdfbf7; color: var(--ink); }
.achievement-dialog::backdrop { background: rgb(25 33 41 / .48); }
.achievement-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; color: #fff; background: var(--accent); }
.achievement-head button { background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }
.achievement-inner { padding: 28px 24px; }
.achievement-inner h2 { margin: 0; line-height: 1.25; font-size: clamp(1.5rem, 4vw, 2rem); }
.achievement-inner img { display: block; width: 100%; max-height: 48dvh; object-fit: contain; margin-top: 16px; }
.achievement-inner p { white-space: pre-line; }
.achievement-inner a { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 700; }

@media (max-width: 700px) {
  .booking-layout, .ops-school { grid-template-columns: 1fr; }
  .ops-school button { margin-bottom: 12px; }
}

.achievement-inner time { display: block; margin-bottom: .6rem; color: var(--muted); font-size: .9rem; }

/* The consultation calendar sits alongside the request detail panel. */
.booking-layout > section {
  background: #edf2f4;
  border-color: #d5e0e3;
  border-radius: 12px;
}
.booking-layout form { border-radius: 12px; }
.booking-layout form :is(input:not([type="checkbox"]), select) { border-color: #788087; }
.booking-layout form :is(input, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.booking-timezone { font-size: .9rem; margin-block: 6px 16px; }
.booking-month { margin-top: 22px; }
.booking-dates button { border-color: #d3dfe3; min-height: 64px; }
.booking-dates button[aria-pressed="true"] {
  background: var(--cool-ink);
  border-color: var(--cool-ink);
  color: #fff;
}
.booking-times-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #d3dfe3;
}
.booking-times-head span { font-size: .82rem; color: var(--muted); }
.booking-times { margin-top: 10px; }
.booking-times button { min-height: 44px; }
.booking-selected {
  border-radius: 6px;
  padding: 11px 13px;
  background: var(--warm-surface);
  color: var(--warm-ink);
  font-weight: 700;
}
.booking-page .booking-phone a {
  color: var(--cool-ink);
  background: transparent;
  border: 1px solid #b8c9cf;
}
.booking-page .booking-phone a:hover { background: #dce8eb; }
.booking-page .booking-phone { margin-block: 14px 0; }
.request-mode { border-radius: 4px; background: var(--warm-surface); color: var(--warm-ink); padding: .18em .45em; font-size: .8rem; }

.booking-subject { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 9px; }

.booking-layout > section { container-type: inline-size; }
@container (max-width: 369px) {
  .booking-dates { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .booking-dates button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: .3em;
  }
}
@media (max-width: 1023px) {
  .booking-arrows button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 820px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .booking-page { width: calc(100% - 24px); margin-block: 22px 40px; }
  .booking-page h1 { font-size: clamp(1.65rem, 6vw, 2rem); line-height: 1.25; margin-block: 4px 12px; }
  .booking-page .booking-steps { margin-block: 0 14px; }
  .booking-page .booking-steps li { padding-block: 5px; font-size: .875rem; }
  .booking-layout { gap: 12px; }
  .booking-page .ops-panel { padding: 14px; }
  .booking-page .ops-panel h2 { font-size: 1.25rem; line-height: 1.3; margin-block: 0 4px; }
  .booking-page .booking-timezone { margin-block: 0 6px; line-height: 1.45; }
  .booking-month { margin-block: 2px 4px; }
  .booking-arrows { gap: 4px; }
  .booking-arrows button { padding: 0; }
  .booking-dates { gap: 2px; }
  .booking-dates button { min-height: 44px; padding: 3px 2px; gap: 2px; line-height: 1.1; }
  .booking-dates small { font-size: .75rem; }
  @container (min-width: 320px) {
    .booking-dates { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .booking-dates button { display: grid; align-content: center; justify-items: center; }
  }
  .booking-times-head { margin-top: 12px; padding-top: 10px; }
  .booking-times-head span { display: none; }
  .booking-times { grid-template-columns: repeat(auto-fill, minmax(min(100%, 60px), 1fr)); gap: 4px; margin-top: 6px; }
  .booking-times button { padding: 3px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
  #booking-availability:empty { display: none; }
  .booking-page .booking-phone { margin-top: 8px; }
  .booking-page .booking-phone a { padding: 4px 10px; font-size: .875rem; }
  .booking-layout :is(.ops-primary, input:not([type="checkbox"]), select) { width: 100%; min-height: 46px; font-size: 1rem; }
  .booking-layout .ops-check { align-items: center; min-height: 44px; }
  .booking-layout .ops-check input { width: 20px; height: 20px; margin: 0; flex: none; }
  .booking-subject { grid-template-columns: 1fr; gap: 0; }
}
