/* Smart Court · client Service-App — docs/design/final-design.html v7 (section "CLIENT").
   body.c = every public page. Phone rules at ≤ 720 px mirror the design's .ph variant.
   Tokens come from tokens.css; the client site overrides the surface palette below. */

 /* 2.20.4: --n is the kit numbers font on Design D pages */
.c { --bg: #eef4f5; --p: #fff; --ink: #0A1628; --mu: #3d5160; --ln: #dde6ea;
  --ok: #147a3f; --okbg: #e6f6ec; --wb: #7a4e00; --wbg: #fff3dc; --gut: 32px;
  margin: 0; font-family: var(--f-client); background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip; max-width: 100%;
}
html { overflow-x: clip; }
.c *, .c *::before, .c *::after { box-sizing: border-box; }
.c [hidden] { display: none !important; }
.c a { text-decoration: none; color: inherit; }
.c ul, .c ol { list-style: none; margin: 0; padding: 0; }
.c button { font: inherit; color: inherit; cursor: pointer; }
.c input, .c select, .c textarea { font: inherit; color: var(--ink); }
.c .ar { font-family: var(--f-ar); direction: rtl; }
.c .en { font-family: var(--f-client); direction: ltr; text-align: start; }
.c .r { animation: none; }
.c .dot { animation: none; }

/* ---------- gov strip + header ---------- */
/* .mast is one navy block so a <p> margin (e.g. .c p { margin-bottom: 12px }) cannot
   leak body --bg as a white seam between .gov and header. */
.c .mast { background: #061020; margin: 0; padding: 0; }
.c .gov { height: 32px; background: #061020; color: #d0dbe4; font-size: 11.5px; padding-inline: var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }

.c .lock { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; color: #fff; white-space: nowrap; }

.c .lock small { display: block; font-weight: 500; font-size: 11px; color: #d0dbe4; letter-spacing: .02em; }

.c header:not(.top) nav .th { height: 40px; width: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; display: inline-grid; place-items: center; font-size: 16px; }
.c .lang { font-family: var(--f-ar); font-size: 14px; color: #fff; }
html[dir="rtl"] .c .lang { font-family: var(--f-client); }
.c header.min { height: 64px; }
.c header.min nav { gap: var(--s2); }

/* announcement + holiday */
.c .notice { display: flex; gap: 12px; align-items: center; padding: 10px var(--gut); background: var(--wbg); color: #5c3b00; font-size: 13.5px; }
.c .notice b, .c .notice h2 { font-weight: 800; font-size: inherit; margin: 0; }
.c .notice span { flex: 1; color: var(--ink); }
.c .notice .x { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--mu); padding: 4px 8px; }
.c .holiday-banner { background: #e7f8f7; color: #0a5c59; }
.c .holiday-popup { position: fixed; inset: 0; background: rgba(6, 16, 32, .55); display: grid; place-items: center; z-index: 60; padding: 16px; }
.c .holiday-popup-card { width: min(520px, 100%); background: var(--p); color: var(--ink); border-radius: 20px; padding: var(--s3); box-shadow: var(--sh-hero); animation: rise .4s var(--ease) both; display: grid; gap: 12px; }
.c .holiday-popup-card h4 { margin: 0; font-size: 20px; }
.c .holiday-popup-card p { margin: 0; color: var(--mu); }
.c .holiday-popup-card .acts { margin-top: 4px; }

/* ---------- hero ---------- */

.c .kick { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding-inline: 12px; border-radius: 999px; background: #0ABAB5; border: 1px solid #0ABAB5; color: #0A1628; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.c .hero .tagline { color: #e6eef3; margin: 10px 0 16px; max-width: 42ch; }
.c .search { position: relative; background: #fff; border-radius: 16px; height: var(--h-search); display: flex; align-items: center; padding: 6px 6px 6px 18px; gap: 12px; color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); margin: 0; }
html[dir="rtl"] .c .search { padding: 6px 18px 6px 6px; }
.c .search svg { width: 22px; height: 22px; stroke: var(--mu); fill: none; stroke-width: 2; flex: none; }

.c .search:focus-within { box-shadow: 0 20px 50px rgba(0, 0, 0, .25), var(--ring); }

.c .menu { margin-top: 8px; background: #fff; border-radius: 16px; color: #0A1628; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.c .menu .h { height: 36px; display: flex; align-items: center; justify-content: space-between; padding-inline: 18px; font-size: 11.5px; color: #3d5160; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid #dde6ea; }
.c .menu li { border-bottom: 1px solid #dde6ea; font-weight: 700; font-size: 14.5px; }
.c .menu li a { height: var(--h-menu-row); display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 14px; padding-inline: 18px; color: inherit; }
.c .menu li:last-child { border: 0; }
.c .menu li:hover, .c .menu li:focus-within { background: #e7f8f7; }
.c .menu li i { width: 36px; height: 36px; border-radius: 10px; background: #eef4f5; display: grid; place-items: center; font-style: normal; font-size: 16px; }

.c .menu li small { font-weight: 500; color: #3d5160; font-size: 12.5px; display: block; }
.c .menu li em { font-style: normal; font-size: 12px; color: #3d5160; font-weight: 600; white-space: nowrap; }
.c .menu li.sup { color: #0a5c59; }
.c .menu li[hidden] { display: none; }
.c .picks { margin-top: var(--s3); display: grid; gap: 10px; }
.c .pick { display: grid; gap: 8px; }
.c .pick legend { font-size: 11px; font-weight: 800; color: #d0dbe4; text-transform: uppercase; letter-spacing: .08em; padding: 0; }
.c .pick { border: 0; margin: 0; padding: 0; min-width: 0; }

.c .yours b { display: block; font-size: 15px; }
.c .yours small { color: #e6eef3; font-size: 12.5px; }
.c .yours a { color: #b8fff8; font-weight: 700; font-size: 13px; }
/* side glance */

.c .side .h { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s2); }
.c .side .h b { font-size: 15px; }
.c .side .h span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ok); font-weight: 700; }
.c .big { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.c .big > div { background: var(--bg); border-radius: 14px; padding: 14px 16px; height: 92px; margin: 0; }
.c .big dt { display: block; font-size: 12px; color: var(--mu); font-weight: 600; }
.c .big dd { font-size: 30px; line-height: 1.1; display: block; margin: 6px 0 0; letter-spacing: -.01em; font-weight: 800; }
.c .big dd em { font-style: normal; font-size: 13px; color: var(--mu); font-weight: 600; margin-inline-start: 6px; }
.c .big small { display: block; font-size: 12px; color: var(--mu); font-weight: 600; }
.c .big b { font-size: 30px; line-height: 1.1; display: block; margin-top: 6px; letter-spacing: -.01em; }
.c .big b em { font-style: normal; font-size: 13px; color: var(--mu); font-weight: 600; margin-inline-start: 6px; }

.c .side .row .ok { color: var(--ok); }
.c .side .row .wb { color: #5c3b00; }

/* ---------- below hero ---------- */
.c section { padding: var(--s5) var(--gut); }

.c section > * { max-width: 1160px; margin-inline: auto; }
.c h2 { font-size: 26px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.01em; }

.c .notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding: 0 var(--gut); margin: -28px auto 0; max-width: 1224px; position: relative; }
.c .note { background: var(--p); border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; box-shadow: var(--sh-card); border: 1px solid var(--ln); }
.c .note i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.c .note.fee i { background: var(--wbg); color: var(--wb); }

.c .note b { display: block; font-size: 14.5px; }
.c .note p { margin: 2px 0 0; color: var(--mu); font-size: 13.5px; }
.c .note .ar, .c .note .en { margin-top: 4px; color: var(--ink); font-size: 14px; }
.c .quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); padding: var(--s3) var(--gut) 0; max-width: 1224px; margin: 0 auto; list-style: none; }
.c .quick > li { min-width: 0; }

.c .courts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); list-style: none; padding: 0; }
.c .courts > li { min-width: 0; }

.c .courts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.c .courts .court { background: var(--p); border: 1px solid var(--ln); border-radius: 16px; padding: 20px; height: 196px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s, box-shadow .25s; color: var(--ink); }
.c .courts .court .ci { width: 44px; height: 44px; border-radius: 12px; background: #e7f8f7; display: grid; place-items: center; font-style: normal; font-size: 20px; }
.c .courts .court b { display: block; font-size: 15px; line-height: 1.25; }
.c .courts .court small { display: block; margin-top: 4px; color: var(--mu); font-size: 12.5px; }
.c .courts .court .st { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding-inline: 10px; border-radius: 999px; align-self: flex-start; font-size: 12.5px; font-weight: 700; }
.c .courts .court .st.ok { background: var(--okbg); color: var(--ok); }
.c .courts .court .st.wb { background: var(--wbg); color: var(--wb); }
.c .courts .court:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 22, 40, .12); }

.c footer { background: #061020; color: #93a4b3; padding: var(--s4) var(--gut); display: grid; grid-template-columns: 8fr 4fr; gap: var(--s3); font-size: 13px; align-items: end; }
.c footer b { color: #fff; display: block; font-size: 14px; margin-bottom: 6px; }
.c footer a { color: #c9d4dd; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); }
.c footer .pw { text-align: end; }

.c .tabbar { display: none; }

/* ---------- pages: register / waiting / documents / status / feedback / booking ---------- */
.c .page { padding: var(--s4) var(--gut) var(--s5); max-width: 1160px; margin: 0 auto; }

.c .chosen { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; background: #e7f8f7; border: 1px solid #bfeeec; border-radius: 14px; padding: 12px 16px; margin-bottom: var(--s3); color: #0A1628; }

.c .chosen b { display: block; }
.c .chosen small { color: #546b78; }

.c .f .w { grid-column: 1 / -1; }
.c label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.c label em { color: #c0392b; font-style: normal; }
.c label .opt { color: var(--mu); font-weight: 600; }
.c input.in, .c select.in, .c textarea.in { width: 100%; height: var(--h-client); border: 1.5px solid var(--ln); border-radius: 12px; display: flex; align-items: center; padding-inline: 16px; color: var(--ink); font-size: 14.5px; background: var(--p); transition: border-color .2s, box-shadow .2s; }
.c input.in::placeholder, .c textarea.in::placeholder { color: #8A99A6; }

.c input.in.err, .c select.in.err, .c textarea.in.err { border-color: #c0392b; }
.c .inw { display: flex; align-items: center; height: var(--h-client); border: 1.5px solid var(--ln); border-radius: 12px; padding-inline: 16px; background: var(--p); gap: 10px; }
.c .inw .in { border: 0; height: 100%; padding: 0; box-shadow: none; }
.c .inw .cc { font-weight: 700; color: var(--ink); padding-inline-end: 10px; border-inline-end: 1px solid var(--ln); direction: ltr; }
.c select.in { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mu) 50%), linear-gradient(135deg, var(--mu) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] .c select.in { background-position: 16px 55%, 22px 55%; padding-inline-end: 16px; padding-inline-start: 40px; }
.c .yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c .book-page .yn { margin-bottom: 12px; }

.c .yn label { height: var(--h-client); border: 1.5px solid var(--ln); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; margin: 0; cursor: pointer; position: relative; font-size: 14px; }
.c .yn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.c .yn label:has(input:focus-visible) { box-shadow: var(--ring); }

.c .court-name { display: block; }
.c .court-st { display: block; font-size: 11px; font-weight: 600; color: var(--mu); line-height: 1.2; }

.c .court-book { position: relative; z-index: 1; font-size: 11px; font-weight: 700; color: var(--td, #0a5c59); text-decoration: underline; }
.c .yn label.gate { border-style: dashed; }
.c .court-gate { color: inherit; text-decoration: none; }
.c .court-gate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.c .court-gate:focus-visible { outline: none; }
.c .yn label.gate:has(.court-gate:focus-visible) { box-shadow: var(--ring); }

.c .ca-card { max-width: 440px; margin-inline: auto; }

.c .yn label { height: auto; min-height: var(--h-client); padding: 8px 12px; text-align: center; line-height: 1.25; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; }
.c .yn label:has(input:checked) { box-shadow: 0 8px 22px -14px rgba(10, 186, 181, .8); }
.c .yn label:active { transform: scale(.98); }
.c .yn label:has(input:focus-visible) { box-shadow: var(--glow-ring, var(--ring)); }
.c .inw.err { border-color: #c0392b; }
.c .reg-h { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c .aside .book-later { margin-top: var(--s3); height: 44px; font-size: 14px; }
.flowhint[hidden] { display: none; }
.c .feen { grid-column: 1 / -1; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: var(--wbg); border: 1px solid #f3dfae; border-radius: 12px; padding: 12px 16px; }
.c .feen i { width: 44px; height: 44px; border-radius: 12px; background: var(--p); color: var(--wb); display: grid; place-items: center; font-style: normal; font-size: 18px; }
.c .feen b { display: block; font-size: 14px; }
.c .feen .ar, .c .feen .en { font-size: 14px; color: var(--ink); }

.c .btn.danger { background: #fdeceb; color: #c0392b; }
.c .btn.auto { width: auto; }

.c .aside h2, .c .aside h3 { font-size: 16px; margin: 0 0 var(--s2); }

.c .bul { margin-top: var(--s2); display: grid; gap: 10px; font-size: 13.5px; color: var(--mu); list-style: none; padding: 0; }
.c .bul li, .c .bul div { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }

.c .alert { background: #fdeceb; color: #c0392b; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; font-weight: 600; margin-bottom: var(--s2); grid-column: 1 / -1; }
.c .alert a { color: inherit; text-decoration: underline; font-weight: 800; }
.c .ferr { color: #c0392b; font-size: 12.5px; margin-top: 6px; display: block; font-weight: 600; }

/* waiting */

.c .ref { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding-inline: 14px; border-radius: 999px; background: #e7f8f7; color: #0a5c59; font-weight: 800; font-size: 13px; margin-bottom: var(--s3); }

.c .tip { margin-top: var(--s3); display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; background: #e7f8f7; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #0A1628; }
[dir=rtl] .c .tip { direction: rtl; grid-template-columns: 36px 1fr; }
.c .tip .i, .c .nrow .i, .c .ico .i { width: 20px; height: 20px; fill: none; stroke: #0ABAB5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@keyframes join-pulse { 50% { box-shadow: 0 0 0 8px rgba(10, 186, 181, .35); } }

.c .tip.plain { grid-template-columns: 1fr; }
.c .tip i { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-style: normal; }

.c .tg { width: 40px; height: 22px; border-radius: 11px; background: #c5d0d8; display: inline-block; position: relative; border: 0; padding: 0; transition: background .2s; }
.c .tg::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.c .tg[aria-checked="true"] { background: var(--tif); }
.c .tg[aria-checked="true"]::after { inset-inline-start: 20px; }
.c .sbtn { height: 32px; padding-inline: 12px; border-radius: 8px; border: 1.5px solid var(--ln); font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; white-space: nowrap; background: var(--p); color: var(--ink); }

.c .acct i { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-style: normal; font-size: 15px; }
.c .acct b { display: block; font-size: 14px; }
.c .acct small { color: var(--mu); font-size: 12.5px; }

.c .acct:hover, .c .acct:focus-visible { background: var(--bg); }

.c .acts.one { grid-template-columns: 1fr; }
.c textarea.in { height: 88px; min-height: 88px; align-items: flex-start; padding-top: 14px; margin-top: var(--s3); resize: vertical; width: 100%; text-align: start; font: inherit; font-size: 15px; }
.c .cancel { margin-top: var(--s2); font-size: 13px; color: var(--mu); text-align: center; }
.c .cancel a, .c .cancel button { color: #c0392b; font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; font-size: inherit; }

.c .state { background: var(--p); border: 1px solid var(--ln); border-radius: 20px; padding: var(--s4); text-align: center; display: grid; gap: 10px; justify-items: center; }
.c .state h2 { font-size: 28px; }
.c .state p { margin: 0; color: var(--mu); max-width: 46ch; }

.c .state.warn .ico { background: var(--wbg); color: var(--wb); }
.c .state.bad .ico { background: #fdeceb; color: #c0392b; }
.c .mask { position: fixed; inset: 0; background: rgba(6, 16, 32, .55); display: grid; place-items: center; padding: 16px; z-index: 70; }
.c .mask[hidden] { display: none; }
.c .mcard { width: min(480px, 100%); background: var(--p); color: var(--ink); border-radius: 20px; padding: var(--s3); display: grid; gap: 12px; box-shadow: var(--sh-modal); animation: rise .35s var(--ease) both; }
.c .mcard h3 { margin: 0; font-size: 20px; }
.c .mcard p { margin: 0; color: var(--mu); }

.c .mcard .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--wbg); color: var(--wb); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 24px; }
.c .mcard .hours-mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.c .mcard .hours-mini td { padding: 8px 0; border-top: 1px solid var(--ln); }
.c .mcard .hours-mini td:last-child { text-align: end; font-weight: 700; }

/* documents (/d/<token>) */
.c .doclist { display: grid; gap: 12px; margin: var(--s3) 0; }
.c .docrow { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; border: 1.5px solid var(--ln); border-radius: 14px; padding: 12px 16px; background: var(--p); }
.c .docrow i { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-style: normal; font-size: 18px; }
.c .docrow.ok i { background: var(--okbg); color: var(--ok); }
.c .docrow.rej i { background: var(--wbg); color: var(--wb); }
.c .docrow b, .c .docrow h2, .c .docrow h3 { display: block; font-size: 14.5px; margin: 0; font-weight: 700; }
.c .docrow small { color: var(--mu); font-size: 12.5px; }
.c .grp { border: 0; margin: 0; padding: 0; }
.c .grp-label { margin: 0 0 8px; font-weight: 700; }
.c .case-grid { display: grid; gap: 8px; }
.c .case-type { display: flex; gap: 8px; align-items: flex-end; }
.c .case-type > label { flex: 1; min-width: 0; }

.c .docrow > div:not(.docacts) { flex: 1; min-width: 0; }
.c .text-answer { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 8px; }
.c .text-answer textarea { flex: 1 1 12rem; width: auto; min-width: 0; }

.c .text-answer + small { display: block; margin-top: 4px; }
@media (max-width: 480px) {
  .c .text-answer textarea { flex-basis: 100%; }
  
}
@media (max-width: 639px) {
  .c .docrow[data-kind="text"] .docacts { grid-column: 2; justify-content: flex-start; }
}
@media (min-width: 640px) {
  .c .docrow[data-kind="text"] { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .c .docrow[data-kind="text"] .docacts { grid-column: auto; justify-content: flex-end; }
}
@media (min-width: 640px) {
  .c .case-grid { grid-template-columns: 5fr 3fr 4fr; }
}
.c .docrow .st { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.c .docrow.ok .st { color: var(--ok); }
.c .docrow.rej .st { color: var(--wb); }
.c .drop { border: 2px dashed var(--ln); border-radius: 16px; padding: var(--s3); text-align: center; display: grid; gap: 12px; justify-items: center; background: var(--p); transition: border-color .2s, background .2s; }

.c .drop small { color: var(--mu); }
.c .drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.c .pbar { height: 8px; border-radius: 4px; background: var(--ln); overflow: hidden; width: 100%; }

.c .progress-line { color: var(--mu); font-weight: 700; font-size: 13px; }
.c .otp-form { display: grid; gap: 12px; justify-items: center; }
.c .otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; width: min(420px, 100%); }
.c .otp input { height: var(--h-otp); border: 1.5px solid var(--ln); border-radius: 12px; text-align: center; font-size: 24px; font-weight: 700; background: var(--bg); width: 100%; transition: border-color .2s, transform .2s; }

.c .otp input.e { border-color: #c0392b; background: #fdeceb; }

.c .otp-card { text-align: center; display: grid; gap: 12px; justify-items: center; }
.c .otp-card .ref { margin: 0; }

.c .otp-fallback { width: min(420px, 100%); text-align: center; letter-spacing: .3em; font-size: 20px; }

.c .docrow { grid-template-columns: 44px 1fr auto; }
.c .docrow b .req, .c .docrow h2 .req, .c .docrow h3 .req { color: #c0392b; font-style: normal; }
.c .docacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.c .docacts .sbtn { position: relative; overflow: hidden; cursor: pointer; }
.c .docacts .sbtn input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.c .docacts .sbtn:has(input:focus-visible) { box-shadow: var(--ring); }
.c .docrow.busy i { background: var(--bg); }
.c .row-bar { margin-top: 6px; }
.c .drop { margin-top: var(--s2); cursor: pointer; }

.c .drop:focus-visible { outline: none; box-shadow: var(--ring); }
.c .done-form { margin-top: var(--s3); display: grid; gap: 8px; }
.c .alert.ok-alert { background: var(--okbg); color: var(--ok); }
.c .pbar + .progress-line { margin: 8px 0 0; }

/* status (/s/<token>) */

.c .kv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.c .kv div { background: var(--bg); border-radius: 14px; padding: 12px 16px; }
.c .kv small { display: block; color: var(--mu); font-size: 12px; font-weight: 700; }
.c .kv b { display: block; font-size: 15px; margin-top: 4px; }
.c .spill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding-inline: 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--bg); color: var(--mu); }
.c .spill.ok { background: var(--okbg); color: var(--ok); }
.c .spill.wb { background: var(--wbg); color: var(--wb); }

.c .spill.bad { background: #fdeceb; color: #c0392b; }
.c .next { margin-top: var(--s3); background: #e7f8f7; border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; color: #0A1628; }
.c .next i { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-style: normal; }

/* feedback */
.c .stars { display: flex; gap: 12px; justify-content: center; margin: var(--s2) 0; }
.c .star { width: 56px; height: 56px; border-radius: 14px; border: 1.5px solid var(--ln); display: grid; place-items: center; font-style: normal; font-size: 24px; color: #cbd5dc; transition: transform .15s; background: var(--p); position: relative; cursor: pointer; margin: 0; }
.c .star input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.c .stars:not(:hover) .star:has(input:checked), .c .stars:not(:hover) .star:has(~ .star input:checked) { background: #fff7e0; border-color: #f2c94c; color: #f2b01e; }
.c .stars:not(:hover) .star:has(input:checked) { transform: scale(1.06); }
.c .stars { border: 0; padding: 0; }
.c .fb-h { font-size: 28px; }
.c .stars-form { display: grid; gap: 0; }
.c .stars-form .alert { text-align: start; }
.c .stars:hover .star:hover, .c .stars:hover .star:has(~ .star:hover) { background: #fff7e0; border-color: #f2c94c; color: #f2b01e; }
.c .star:has(input:focus-visible) { box-shadow: var(--ring); }
.c .phase { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: var(--s3); }
.c .phase div { border: 1.5px solid var(--ln); border-radius: 12px; padding: 12px 14px; font-size: 13px; text-align: start; }

.c .phase b { display: block; font-size: 13.5px; }
.c .phase small { color: var(--mu); }
.c textarea.in { height: 88px; align-items: flex-start; padding-top: 14px; margin-top: var(--s3); text-align: start; resize: vertical; display: block; }

/* booking + status */
.c .status { align-items: start; }

.c .day-slots { margin: 0 0 var(--s3); }
.c .book-page { max-width: 640px; margin-inline: auto; }
.c .acts.mt { margin-top: var(--s3); }
.c .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: var(--s2) 0; list-style: none; padding: 0; }
.c .week > li { min-width: 0; }
.c .week .day { height: 76px; border: 1.5px solid var(--ln); border-radius: 12px; display: grid; place-content: center; text-align: center; font-size: 12px; color: var(--mu); font-weight: 700; background: var(--p); padding: 0; cursor: pointer; font-family: inherit; }
.c .week .day b { display: block; font-size: 18px; color: var(--ink); }
.c .week .day em { display: block; font-style: normal; font-size: 10.5px; margin-top: 2px; }

.c .week .day.bk em { color: var(--wb); }
.c .slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: var(--s2) 0 var(--s3); }
.c .slots .slot { height: 44px; border: 1.5px solid var(--ln); border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; background: var(--p); color: var(--ink); position: relative; margin: 0; cursor: pointer; }
.c .slots .slot input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }

.c .slots .slot:has(input:focus-visible) { box-shadow: var(--ring); }

.c .center { max-width: 640px; margin: 0 auto; }
.c #track-matched { width: 100%; margin-bottom: var(--s3); }

.c .center-text { text-align: center; }

.c #wa-number-wrap { margin-top: 12px; }

/* ---------- phone (design .ph) ---------- */
@media (max-width: 720px) {
  .c { font-size: 14px; --gut: 16px; padding-bottom: var(--h-tabbar); }
  
  .c header.min { height: 60px; min-width: 0; }
  .c .lock i { width: 34px; height: 34px; }
  .c .lock small, .c header:not(.top) nav .th { display: none; }
  
  
  .c .yours { grid-template-columns: 36px 1fr; }
  .c .yours a { justify-self: start; }
  
  
  
  .c .kick { display: none; }
  .c .search { height: 52px; }
  
  .c .menu li a { height: 48px; }
  .c .menu li small { display: none; }
  .c .yours { margin-top: var(--s2); padding: 12px 14px; }
  .c .picks { margin-top: var(--s2); }
  
  .c .big b { font-size: 24px; }
  .c .big div { height: 80px; }
  
  
  .c .notes { grid-template-columns: 1fr; padding: 0 16px; margin-top: -14px; }
  .c .quick { grid-template-columns: 1fr; padding: var(--s2) 16px 0; }
  .c section { padding: var(--s3) 16px; }
  .c h2 { font-size: 20px; }
  
  
  
  
  .c .courts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .c .courts .court { height: auto; gap: 12px; padding: 16px; }
  
  .c footer { grid-template-columns: 1fr; padding: var(--s3) 16px; }
  .c footer .pw { text-align: start; }
  .c .tabbar { height: var(--h-tabbar); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--p); border-top: 1px solid var(--ln); position: fixed; bottom: 0; inset-inline: 0; z-index: 50; }
  .c .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--mu); gap: 4px; min-height: 44px; }
  .c .tabbar a.on { color: #0a5c59; }
  .c .tabbar i { width: 22px; height: 22px; border-radius: 7px; background: #e7f8f7; display: block; }
  
  /* pages */
  .c .page { padding: 20px 16px 28px; }
  .c .wgrid { display: block; }
  
  .c .aside { margin-top: var(--s2); }
  
  .c .whead { margin-bottom: 16px; }
  .c .whead .ref { height: 32px; font-size: 12px; }
  
  .c .ringrow { grid-template-columns: 1fr; justify-items: center; gap: var(--s2); }
  
  
  .c .wstats { grid-template-columns: 1fr 1fr; width: 100%; }
  .c .wstats div { grid-template-columns: 1fr; height: auto; gap: 4px; }
  
  
  
  .c .wside { margin-top: var(--s2); gap: var(--s2); }
  
  
  .c .kv, .c .phase { grid-template-columns: 1fr; }
  .c .week { gap: 4px; }
  .c .week .day { height: 64px; font-size: 11px; }
  .c .slots { grid-template-columns: repeat(3, 1fr); }
  .c .book-page .yn { margin-bottom: 12px; }
  
  .c .docrow { grid-template-columns: 44px minmax(0, 1fr); }
  .c .docrow .docacts { grid-column: 1 / -1; justify-content: flex-start; }
  .c .otp { gap: 8px; }
  .c .otp input { height: 52px; font-size: 20px; border-radius: 10px; }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .c .courts { grid-template-columns: 1fr 1fr; }
  
}

/* ---------- TV board (/board/<court>) — the dashboard live strip at wall size, portal tokens ---------- */
.board { min-height: 100vh; margin: 0; padding: var(--s7); box-sizing: border-box; display: grid; grid-template-rows: auto 1fr auto; gap: var(--s7); color: #fff; font-family: var(--f); background: radial-gradient(70% 120% at 100% 0%, var(--glow), transparent 60%), linear-gradient(120deg, var(--navy), var(--strip-mid) 70%, var(--strip-end)); }
html[dir="rtl"] .board { font-family: var(--ar); background: radial-gradient(70% 120% at 0% 0%, var(--glow), transparent 60%), linear-gradient(240deg, var(--navy), var(--strip-mid) 70%, var(--strip-end)); }
.board header { display: flex; align-items: center; gap: var(--s5); }
.board .tv-brand { display: flex; align-items: center; gap: 10px; }
.board .tv-brand .sc-mark { width: 36px; height: 36px; color: #fff; }
.board span.brand b { color: #fff; }
.board header h1 { margin: 0; padding-inline-start: var(--s5); border-inline-start: 1px solid var(--w14); font: 700 clamp(18px, 2.2vw, 28px)/1.2 var(--d); }
html[dir="rtl"] .board header h1 { font-family: var(--ar); }
.board .clock { margin: 0; margin-inline-start: auto; font: 800 clamp(24px, 3vw, 40px)/1 var(--d); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.board main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.board h2 { margin: 0 0 var(--s4); font: 700 clamp(12px, 1.1vw, 16px)/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
html[dir="rtl"] .board h2 { font-family: var(--ar); letter-spacing: 0; }
.board .tv-now { padding: var(--s7); border-radius: var(--r-lg); background: var(--w08); border: 1px solid var(--w14); }
.board .tv-next { min-width: 0; }
.board .huge { margin: 0; white-space: nowrap; font: 800 clamp(64px, 9vw, 180px)/.95 var(--d); letter-spacing: -.02em; color: var(--tif2); direction: ltr; unicode-bidi: isolate; }
.board .tv-pill { display: inline-flex; align-items: center; height: 32px; margin: var(--s5) 0 0; padding: 0 var(--s4); border-radius: var(--r-pill); font: 700 var(--t-15)/1 var(--f); white-space: nowrap; }
html[dir="rtl"] .board .tv-pill { font-family: var(--ar); }
.board .tv-pill.t { background: var(--tif-tint); color: var(--tifd); }
.board .next-list { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.board .next-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 72px; padding: 0 var(--s5); border-radius: var(--r); background: var(--w08); border: 1px solid var(--w14); }
.board .next-list li.none { justify-content: center; color: var(--w60); font: 800 var(--t-28)/1 var(--d); }
.board .next-list b { font: 800 clamp(24px, 3vw, 40px)/1 var(--d); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.board .next-list .tv-pill { margin: 0; }
.board .tv-meta { grid-column: 1 / -1; color: var(--w80); font-size: var(--t-16); }
.board .tv-meta p { margin: 0; }
.board .tv-meta b { margin-inline-end: 6px; font: 800 var(--t-24)/1 var(--d); color: #fff; }
.board footer { color: var(--w60); font-size: var(--t-12); }
@media (max-width: 900px) { .board main { grid-template-columns: minmax(0, 1fr); } .board { padding: var(--s5); gap: var(--s5); } }
.c .err-brand { display: flex; align-items: center; gap: 10px; }

/* Slice 16D home blocks live in public-home.css (tokens --d/--f/--ice/--amber/--red). */

/* Slice 17D — Smart Assistant launcher (the panel's styles load on first use: assistant.css). */
.ast { font-family: var(--f-client); }
html.rtl .ast { font-family: var(--f-ar); }
.ast[hidden], .ast-dot[hidden] { display: none; }
.ast-launch { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 70; width: 56px; height: 56px; padding: 0; border: 2px solid var(--tif2); border-radius: 50%; background: var(--navy); cursor: pointer; box-shadow: 0 14px 34px -10px rgba(10, 22, 40, .6), 0 0 0 4px rgba(10, 186, 181, .16); transition: transform .18s var(--ease); }
.ast-launch:hover { transform: translateY(-2px); }
.ast-launch:focus-visible { outline: 3px solid var(--tif2); outline-offset: 2px; }
.ast-launch img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ast-launch .sa-mk { width: 100%; height: 100%; background: #fff; display: grid; place-items: center; border-radius: 50%; }
.ast-launch .sa-mk svg { width: 64%; height: 64%; }
.ast-dot { position: absolute; inset-inline-end: 0; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--navy); }
.ast-launch--new::after { content: ""; position: absolute; inset-inline-start: -2px; top: -2px; width: 14px; height: 14px; border-radius: 50%; background: #e0a100; border: 2px solid var(--navy); }
.sh-chip[data-assistant-open] { cursor: pointer; pointer-events: auto; }
@media (min-width: 641px) {
  body.has-ast footer.sh-foot, body.cu.has-ast footer.foot { padding-bottom: 80px; }
}
@media (max-width: 640px) {
  .ast-launch { inset-inline-end: 14px; bottom: calc(var(--h-tabbar) + 14px + env(safe-area-inset-bottom)); }
  body.cu .ast-launch { bottom: calc(16px + env(safe-area-inset-bottom)); }
  body:has(.drawer.is-open, .sheet.is-open, dialog[open]) .ast-launch { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ast-launch { transition: none; } }
/* /support/c/<token>: the conversation page (open: the panel itself; ended: the transcript) */
.support-wrap { max-width: 760px; margin: 0 auto; padding: var(--s5) var(--s4); }
.support-log { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: 8px; }
.support-msg { padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: var(--t-14); }
.support-msg--user { justify-self: end; background: var(--tif-tint, var(--panel)); }
.support-msg--assistant, .support-msg--agent { justify-self: start; background: var(--panel); }
.support-msg--system { justify-self: center; border: 0; color: var(--muted); font-size: var(--t-12); }
