:root {
  color-scheme: light;
  --brand: #f5b900;
  --brand-dark: #765900;
  --ink: #181914;
  --muted: #65665f;
  --paper: #f5f5f0;
  --line: #d6d6ce;
  --success: #147a3d;
  --danger: #a52430;
  --shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #151613; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 82% 8%, rgba(245,185,0,.13), transparent 25%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), #151613; background-size: auto, 96px 96px, 96px 96px, auto; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button, input, select, a { transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(245,185,0,.52); outline-offset: 3px; }

.client-header { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(20px, calc((100vw - 1260px) / 2)); border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; }
.client-brand { display: flex; align-items: baseline; gap: 20px; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 20px; font-weight: 900; text-decoration: none; }
.client-brand em { color: var(--brand); font-style: normal; }
.client-brand i { position: relative; top: 4px; color: var(--brand); font-style: normal; animation: hub-cloud-cursor-blink 1.05s steps(1,end) infinite; }
@keyframes hub-cloud-cursor-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
.client-brand > strong { padding: 5px 9px; border: 1px solid rgba(245,185,0,.45); border-radius: 999px; color: var(--brand); font-family: Arial, Helvetica, sans-serif; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.client-user-actions { display: flex; align-items: center; gap: 12px; color: #deded5; font-size: 12px; font-weight: 700; }
.client-user-actions button, .dashboard-controls button { min-height: 38px; padding: 0 14px; border: 1px solid #bdbdb4; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; }

main { width: min(1260px, calc(100% - 32px)); margin: 0 auto; }
.login-view { display: grid; min-height: calc(100vh - 158px); place-items: center; align-content: center; gap: 18px; padding: 48px 0; }
.login-card { width: min(480px, 100%); padding: clamp(28px, 6vw, 54px); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.eyebrow { color: var(--brand-dark); font-size: 10px; font-weight: 900; letter-spacing: 1.7px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: -.8px; }
.login-card h1 { margin: 14px 0 12px; font-size: clamp(30px, 5vw, 42px); line-height: 1; }
.login-card > p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.login-card > .service-unavailable { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #e5a9af; border-radius: 8px; background: #fff0f1; color: var(--danger); font-size: 12px; font-weight: 800; }
.form-stack { display: grid; gap: 15px; margin-top: 26px; }
label { display: grid; gap: 7px; }
label > span { color: #42433d; font-size: 11px; font-weight: 800; }
input, select { width: 100%; min-height: 49px; padding: 12px 14px; border: 1px solid #c6c6bd; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus { border-color: var(--brand-dark); box-shadow: 0 0 0 4px rgba(245,185,0,.15); outline: 0; }
.primary-button { min-height: 49px; padding: 0 18px; border: 1px solid #c49300; border-radius: 8px; background: var(--brand); color: var(--ink); font-weight: 900; cursor: pointer; }
.primary-button:hover:not(:disabled) { background: #ffc400; transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: wait; }
.form-error { min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; font-weight: 700; line-height: 1.4; }
.login-note { max-width: 560px; margin: 0; color: #aeaea6; font-size: 11px; line-height: 1.5; text-align: center; }

.dashboard-view { padding: 42px 0 72px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; padding: 28px; border-radius: 16px; background: var(--brand); }
.dashboard-heading h1 { margin: 9px 0 8px; font-size: clamp(30px, 5vw, 52px); line-height: .96; }
.dashboard-heading p { margin: 0; color: #4e430f; font-size: 12px; font-weight: 700; }
.dashboard-controls { display: grid; grid-template-columns: minmax(230px, 1fr) 120px auto; gap: 10px; align-items: end; width: min(620px, 100%); }
.dashboard-controls input, .dashboard-controls select { min-height: 43px; }
.dashboard-controls button { min-height: 43px; background: var(--ink); color: #fff; border-color: var(--ink); }
.client-jobs { display: grid; gap: 16px; }
.loading, .empty { padding: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; color: #d5d5ce; text-align: center; }
.job-card { overflow: hidden; border-radius: 14px; background: var(--paper); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.job-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 24px; list-style: none; cursor: pointer; }
.job-card > summary::-webkit-details-marker { display: none; }
.job-card > summary::after { content: '+'; font-family: ui-monospace, monospace; font-size: 22px; font-weight: 900; }
.job-card[open] > summary::after { content: '−'; }
.job-title { display: grid; gap: 4px; min-width: 0; }
.job-title > strong { color: var(--brand-dark); font-family: ui-monospace, monospace; font-size: 12px; }
.job-title > span { font-size: 18px; font-weight: 850; }
.job-title > small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.job-summary-date { display: grid; gap: 3px; color: var(--muted); font-size: 11px; text-align: right; }
.job-body { display: grid; gap: 18px; padding: 0 24px 24px; border-top: 1px solid var(--line); }
.detail-loading, .detail-error { margin: 20px 0 0; padding: 18px; border-radius: 9px; background: #e9e9e2; color: var(--muted); font-size: 12px; }
.detail-error { background: #fff0f1; color: var(--danger); }
.job-overview { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 9px; margin-top: 20px; }
.info-card { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.info-card span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.info-card strong, .info-card address { font-size: 12px; font-style: normal; line-height: 1.45; }
.notice { padding: 15px; border-left: 4px solid var(--brand); border-radius: 5px; background: #fff8df; }
.notice strong { display: block; margin-bottom: 6px; font-size: 12px; }
.notice p { margin: 0; color: #4d4d46; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.detail-section { display: grid; gap: 10px; }
.detail-section > h3 { margin: 0; font-size: 18px; }
.detail-section > p { margin: 0; color: var(--muted); font-size: 12px; }
.item-groups { display: grid; gap: 13px; }
.item-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #ecece6; }
.item-group > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.item-group > header h4 { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; }
.item-group > header > strong { font-size: 12px; }
.item-group > .item-list { padding: 8px; }
.item-list { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.item-row.is-accessory { border-style: dashed; background: #fafaf7; }
.item-quantity { color: var(--brand-dark); font-family: ui-monospace, monospace; font-size: 13px; font-weight: 900; }
.item-copy { display: grid; gap: 5px; }
.item-copy > strong { font-size: 13px; }
.item-copy > p, .item-copy > small { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.item-times { display: block; }
.item-price { display: grid; align-content: start; gap: 3px; min-width: 88px; text-align: right; }
.item-price > strong { font-size: 12px; }
.item-price > small { color: var(--muted); font-size: 9px; }
.accessory-group { border-radius: 9px; }
.accessory-group > summary { list-style: none; cursor: pointer; }
.accessory-group > summary::-webkit-details-marker { display: none; }
.accessory-count { grid-column: 2 / -1; color: var(--brand-dark); font-size: 10px; font-weight: 900; }
.accessory-count::before { content: '+ '; }
.accessory-group[open] .accessory-count::before { content: '− '; }
.accessory-items { display: grid; gap: 7px; margin: 7px 0 0 48px; }
.resource-list { display: grid; gap: 7px; margin-top: 5px; }
.resource { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; padding: 10px; border-radius: 7px; background: #f1f1eb; }
.resource > strong { font-size: 11px; }
.hotel-status { align-self: start; padding: 4px 7px; border-radius: 999px; background: #e5f5ea; color: var(--success); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.hotel-status.is-not-set { background: #eee; color: var(--muted); }
.hotel-status.is-not-required { background: #fff3d0; color: var(--brand-dark); }
.hotel-details { grid-column: 1 / -1; display: grid; gap: 3px; color: var(--muted); font-size: 10px; }
.resource-dietary { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--ink); font-size: 10px; }
.resource-dietary > strong { color: var(--brand-dark); }
.resource-dietary.is-empty { color: var(--muted); }
.schedule-list { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.schedule-row { display: grid; grid-template-columns: 150px minmax(210px,1fr) minmax(180px,1fr); gap: 14px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row strong { font-size: 12px; }
.schedule-row time, .schedule-row address { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.4; }
.pricing-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.pricing-card > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.pricing-card > div:last-child { border-bottom: 0; }
.pricing-card > .is-total { background: #fff8df; font-size: 14px; font-weight: 900; }
.pricing-section > p { font-size: 10px; }
.site-footer { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 18px; width: min(1260px, calc(100% - 32px)); margin: 0 auto; color: #aaa9a2; font-size: 10px; }

@media (max-width: 760px) {
  .dashboard-heading { display: grid; }
  .dashboard-controls { grid-template-columns: minmax(0,1fr) 110px; }
  .dashboard-controls label:first-child { grid-column: 1 / -1; }
  .dashboard-controls button { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .client-header { min-height: 72px; padding: 0 16px; }
  .client-brand { gap: 8px; font-size: 17px; }
  .client-user-actions > span { display: none; }
  main { width: min(100% - 18px, 1260px); }
  .dashboard-view { padding-top: 18px; }
  .dashboard-heading { padding: 20px; }
  .dashboard-controls { grid-template-columns: 1fr; }
  .dashboard-controls label:first-child, .dashboard-controls button { grid-column: auto; }
  .job-card > summary { align-items: start; padding: 16px; }
  .job-summary-date { display: none; }
  .job-body { padding: 0 14px 16px; }
  .item-row { grid-template-columns: 38px minmax(0,1fr); }
  .item-price { grid-column: 2; min-width: 0; text-align: left; }
  .accessory-count { grid-column: 2; }
  .accessory-items { margin-left: 18px; }
  .schedule-row { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
