.portal {
  min-height: 100vh;
  background: radial-gradient(ellipse at 38% 0%, #363860, #171c32 31%, var(--ink) 68%);
}
.portal-main { padding-block: 112px 70px; }
.portal-nav-link { color: var(--muted); font-size: 13px; font-weight: 600; }
.portal-nav-link:hover { color: var(--text); }
.portal-heading {
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #c5d0ff2f;
  border-radius: 24px;
  background: linear-gradient(142deg, #3e496c99, #171e31a8 72%);
  box-shadow: inset 0 1px #e4ebff19, 0 22px 62px #03050d39;
}
.booking-heading {
  display: flex;
  min-height: 245px;
  align-items: center;
  background: linear-gradient(90deg, #171e35 4%, #171e35f0 40%, #171e3565 77%),
    url("assets/hero.webp") 69% 54% / cover;
}
.portal h1 {
  font: 700 clamp(43px, 7.25vw, 93px)/.95 var(--display);
  letter-spacing: -.024em;
  text-transform: uppercase;
}
.portal-heading h1 { margin: 10px 0 12px; }
.portal-heading p:last-child { color: #d4def6; max-width: 54ch; }
.portal h2 { font-size: clamp(31px, 4vw, 52px); line-height: 1; }
.portal-card {
  min-width: 0;
  padding: clamp(17px, 3vw, 33px);
  border: 1px solid #c4d0ff31;
  border-radius: 19px;
  background: linear-gradient(148deg, #29365283, #141b2d 68%);
  box-shadow: inset 0 1px #dde8ff11, 0 16px 44px #03050d32;
}
.booking-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 14px; margin-top: 16px; align-items: start; }
.portal-form { display: grid; gap: 13px; margin-top: 20px; }
.portal label { display: grid; gap: 5px; color: #d8e3fa; font-size: 13px; font-weight: 550; }
.portal input:not([type=checkbox]), .portal textarea, .portal select {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 41px;
  padding: 8px 11px;
  border: 1px solid #aebfea39;
  border-radius: 9px;
  background: #0b1124b8;
  color: var(--text);
  font: 400 14px/1.4 var(--body);
}
.portal input::file-selector-button {
  margin-right: 10px; padding: 5px 9px; border: 1px solid #b6c6f577;
  border-radius: 7px; background: #2f3c61; color: var(--text); cursor: pointer;
}
.portal textarea { resize: vertical; }
.portal select { cursor: pointer; }
.portal button:disabled { opacity: .55; cursor: default; transform: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-status { color: var(--muted); font-size: 13px; }
.portal-status:empty { display: none; }
.portal-status[data-tone="error"] { color: #ffc6c7; }
.portal-status[data-tone="success"] { color: #bbf0d2; }
.calendar-heading { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-block: 21px 13px; }
.calendar-heading strong { text-align: center; text-transform: capitalize; }
.calendar-heading button { width: 36px; height: 36px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-weekday { text-align: center; color: var(--muted); font: 500 10px/1.2 var(--mono); padding: 6px 0; }
.calendar-day {
  min-height: 38px; padding: 2px; border-radius: 8px; border: 1px solid #b4c7fc23;
  background: #91b8ff14; color: var(--text); font-size: 12px; font-weight: 600;
  transition: background .18s ease, border-color .18s ease;
}
.calendar-day:not(:disabled):hover { background: #98b4ff39; border-color: #abbef6a0; }
.calendar-day[aria-pressed=true] { background: #dce5ff; color: #10182e; }
.calendar-day:disabled { background: #02061332; border-color: transparent; color: #a0aac5; }
.portal .calendar-day[data-booked] { background: #7770cb43; border-color: #a7a0f25c; color: #e6dfff; font-size: 15px; opacity: 1; }
.calendar-legend { display: flex; gap: 14px; color: var(--muted); margin-block: 15px 7px; flex-wrap: wrap; font-size: 11px; }
.calendar-legend span { display: flex; align-items: center; gap: 5px; }
.calendar-legend i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #9cbcff; }
.calendar-legend .legend-busy { background: #68708a; }
.calendar-legend .legend-booked { background: #a7a0f2; }
.pricing-section { margin-top: 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pricing-card h3 { font: 700 26px/1.05 var(--display); margin-bottom: 10px; }
.pricing-card p { color: var(--muted); font-size: 13px; margin-top: 8px; overflow-wrap: anywhere; }
.pricing-card strong { color: #e2e9ff; font-size: 15px; }
.pricing-card-other { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; }
.pricing-card-other h3 { margin: 0; }
.pricing-card-other p { flex-basis: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .pricing-card, #other-service-field:not([hidden]) { animation: rise-in .48s var(--curve) both; }
  .pricing-card { transition: translate .35s var(--curve), box-shadow .35s ease, border-color .3s ease; }
  .pricing-card:nth-child(3n + 2) { animation-delay: .045s; }
  .pricing-card:nth-child(3n) { animation-delay: .09s; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pricing-card:hover {
    translate: 0 -4px;
    border-color: #bbc7ff75;
    box-shadow: 0 16px 40px #03050d5b, 0 0 24px #8f85ff25;
  }
}

.login-main { width: min(450px, calc(100% - 36px)); padding-block: clamp(45px, 14vh, 140px); }
.login-main > .brand { margin-bottom: 18px; }
.login-card h1 { font-size: clamp(43px, 9vw, 67px); }
.captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha img { max-width: 100%; height: auto; border-radius: 7px; border: 1px solid #b3c2f84d; }
.captcha button { min-height: 36px; font-size: 12px; }

.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.panel-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 16px; }
.panel-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 25px; color: #d6e2ff; font-size: 12px; }
.panel-nav a:hover { background: #b5c8ff23; }
.panel-section { margin-top: 15px; }
.panel-section-head { display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.panel-section fieldset { min-width: 0; margin: 19px 0 0; padding: 12px; border: 1px solid #bfcfff30; border-radius: 10px; }
.panel-section legend { padding: 0 6px; color: #d3def7; font-size: 13px; font-weight: 600; }
.check-list { display: flex; gap: 9px 16px; flex-wrap: wrap; }
.portal .checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: #a9bcff; }
.admin-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.panel-details { margin-top: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; }
.panel-details > summary { cursor: pointer; padding-block: 5px; font-size: 13px; color: #e1e9ff; font-weight: 600; }
.group-settings { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-block: 10px; }
.group-settings > .checkbox { font-weight: 700; }
.work-settings-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.photo-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 7px; padding: 7px 0; }
.portal .photo-check { align-items: start; display: grid; gap: 4px; grid-template-columns: auto 1fr; border-radius: 8px; background: #090d1969; padding: 6px; }
.photo-check img { grid-column: 1 / -1; width: 100%; height: 62px; object-fit: contain; }
.photo-check span { overflow-wrap: anywhere; font-size: 11px; }
.price-help { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.price-edit { display: grid; grid-template-columns: minmax(0, .8fr) repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; margin-bottom: 12px; }
.inline-controls { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.inline-controls > label { min-width: min(220px, 100%); }
.blocked-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.blocked-list li { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 20px; padding: 3px 8px; font-size: 12px; }
.blocked-list button { border: 0; background: transparent; font-size: 16px; padding: 0 4px; color: #d5e2ff; }
.order-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.order-month-nav { display: flex; align-items: center; gap: 6px; }
.order-toolbar .pill { min-height: 34px; padding-block: 4px; }
.order-month-nav .pill { min-width: 36px; padding-inline: 8px; }
.order-toolbar #order-month, .order-toolbar #order-filter { width: auto; }
.order-weekdays, .order-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.order-weekdays { margin: 9px 0 5px; color: #c4d1ee; font-size: .76rem; text-align: center; }
.order-day, .order-day-empty {
  min-width: 0; min-height: 79px; padding: 6px; text-align: left;
  border-radius: 10px; border: 1px solid var(--line); background: #0c13256b;
}
.order-day-empty { opacity: .38; }
.order-day { display: grid; gap: 3px; align-content: start; color: inherit; }
.order-day[aria-current="date"] { border-color: #a4b7f9; background: #19294c; }
button.order-day { cursor: pointer; background: #1c2948; }
button.order-day:hover { background: #293d67; border-color: #a4b7f9; }
button.order-day:focus-visible { outline: 2px solid #b5c7ff; outline-offset: 2px; }
.order-day-number { font-size: .85rem; font-weight: 700; }
.order-chip {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 5px; border-radius: 5px; font-size: .69rem; color: #dbe6ff; background: #4d5f87;
}
.order-chip[data-status="pending"] { color: #fff0c8; background: #675028; }
.order-chip[data-status="confirmed"] { color: #d3f9e6; background: #285545; }
.order-chip[data-status="declined"] { color: #f7d1dc; background: #673e51; }
.order-more { font-size: .66rem; color: #c4d1ee; }
.order-dialog {
  width: min(690px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
  padding: clamp(12px, 4vw, 24px); border: 1px solid #7487b177; border-radius: 18px;
  background: #141c2e; color: #f4f7ff; box-shadow: 0 20px 65px #0009;
}
.order-dialog::backdrop { background: #050611b3; }
.order-dialog h2 { font-size: clamp(1.45rem, 5vw, 2.3rem); }
.order-detail { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #0c13256b; }
.order-detail-head, .order-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-detail-head h3 { font-size: 1.04rem; overflow-wrap: anywhere; }
.order-fields {
  display: grid; grid-template-columns: minmax(65px, auto) minmax(0, 1fr);
  gap: 3px 8px; margin: 8px 0; font-size: .83rem;
}
.order-fields dt { color: var(--muted); }
.order-fields dd { margin: 0; overflow-wrap: anywhere; }
.order-detail .inquiry-brief { white-space: pre-wrap; overflow-wrap: anywhere; color: #c4d1ee; }
.order-detail-actions { margin-top: 10px; }
.order-detail-actions select { width: auto; }
#order-dialog-status:not(:empty) { margin-top: 8px; }
#panel-status { min-height: 18px; margin-block: 8px; }
#inquiry-status:not(:empty) { margin-top: 10px; }
@media (max-width: 790px) {
  .booking-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-main { padding-top: 82px; }
  .booking-heading { min-height: 180px; }
  .panel-heading { align-items: start; flex-direction: column; }
  .admin-slots { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .portal-nav-link { font-size: 11px; }
  .field-row, .price-edit { grid-template-columns: 1fr; }
  .order-weekdays, .order-calendar { gap: 3px; }
  .order-day, .order-day-empty { min-height: 60px; padding: 3px; border-radius: 6px; }
  .order-chip { padding-inline: 2px; font-size: .61rem; }
  .order-day-number { font-size: .75rem; }
  .portal-heading, .portal-card { border-radius: 15px; }
  .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 33px; }
  .pricing-grid { gap: 7px; }
  .pricing-card h3 { font-size: 22px; }
  .panel-section-head { align-items: start; flex-direction: column; }
}
.portal-form .review-publish {
  display: flex;
  align-items: center;
  gap: 9px;
}
.portal-form .review-publish input { width: auto; margin: 0; }
.visitor-reviews-list { display: grid; gap: 8px; margin-bottom: 10px; }
.visitor-review-admin {
  min-width: 0; padding: 12px; border: 1px solid #94a4d53a; border-radius: 11px; background: #202943;
}
.visitor-review-admin h4 { margin: 0; overflow-wrap: anywhere; }
.visitor-review-admin blockquote { margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.visitor-review-admin .panel-section-head { margin: 0; }
.visitor-review-admin .panel-section-head span { font-size: .8rem; color: #cad4ed; }
