:root {
  --ink: #111a31;
  --muted: #6f7890;
  --line: #e4e8f1;
  --paper: #ffffff;
  --canvas: #f4f7fb;
  --blue: #1368e8;
  --blue-dark: #0a3c9b;
  --violet: #6245db;
  --green: #0d8b66;
  --orange: #db7528;
  --red: #c93f4d;
  --shadow: 0 18px 48px rgba(26, 42, 78, .10);
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% -10%, rgba(42, 114, 240, .11), transparent 28%), var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.vector-shell { min-height: 100vh; padding-bottom: 92px; }
.vector-header { position: sticky; z-index: 40; top: 0; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px max(20px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(220, 226, 238, .9); background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.vector-brand { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.vector-brand-mark { width: 48px; height: 48px; flex-shrink: 0; display: block; overflow: hidden; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(12, 68, 167, .24); }
.vector-brand-mark img { width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none; }
.vector-brand > span:last-child { display: flex; flex-direction: column; }
.vector-brand strong { font-size: 17px; letter-spacing: -.02em; }
.vector-brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.vector-brand .brand-role { color: #145fd3; font-size: 10px; font-weight: 850; }
.vector-brand .brand-version { font-size: 8px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-loyalty-balance{text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:56px;max-width:100px;min-height:44px;padding:4px 7px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:center;line-height:1.25}
.header-loyalty-balance[hidden]{display:none}.header-loyalty-balance small{font-size:10px;color:var(--muted)}.header-loyalty-balance strong{font-size:13px}
.has-loyalty-balance .header-actions{flex:none;align-items:center}
@media(max-width:640px){.vector-header.has-loyalty-balance{flex-wrap:wrap;gap:8px}.has-loyalty-balance .vector-brand{flex:1 1 150px;min-width:0}.has-loyalty-balance .header-actions{margin-left:auto;gap:7px}}
.role-selector { display: flex; flex-direction: column; min-width: 165px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.role-selector span { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.role-selector select { border: 0; outline: 0; background: transparent; font-size: 11px; font-weight: 750; }
.notification-button { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; font-size: 22px; }
.notification-button b { position: absolute; top: -5px; right: -4px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border: 2px solid white; border-radius: 999px; color: white; background: #e34d5d; font-size: 9px; }
.role-ribbon { max-width: 1180px; margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.role-ribbon span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.role-ribbon strong { color: #31405f; font-size: 10px; }
.vector-main { width: min(1180px, calc(100% - 32px)); margin: 20px auto 0; }

.bottom-nav { position: fixed; z-index: 45; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(760px, calc(100% - 28px)); min-height: 66px; display: flex; align-items: center; gap: 4px; padding: 7px; overflow-x: auto; border: 1px solid rgba(221, 226, 238, .92); border-radius: 22px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); box-shadow: 0 16px 44px rgba(27, 38, 70, .18); scrollbar-width: none; }
.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav button { flex: 1 1 0; min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 15px; color: #7a8396; background: transparent; cursor: pointer; }
.bottom-nav button span { font-size: 18px; line-height: 1; }
.bottom-nav button span svg { width: 20px; height: 20px; display: block; }
.bottom-nav button small { max-width: 100%; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav button.active { color: white; background: linear-gradient(145deg, var(--blue), #2648bc); box-shadow: 0 9px 20px rgba(20, 91, 216, .25); }
.side-menu-backdrop { position: fixed; z-index: 85; inset: 0; display: flex; justify-content: flex-end; }
.side-menu-shade { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(9, 18, 40, .56); cursor: pointer; }
.side-menu { position: relative; z-index: 1; width: min(360px, 88vw); height: 100%; display: flex; flex-direction: column; padding: 22px; background: #fff; box-shadow: -18px 0 55px rgba(7, 23, 55, .24); }
.side-menu > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.side-menu > header div { display: grid; gap: 4px; }
.side-menu > header small { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.side-menu > header strong { font-size: 20px; }
.side-menu > header button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #edf3fb; cursor: pointer; font-size: 22px; }
.side-menu-links { display: grid; gap: 6px; overflow-y: auto; padding: 18px 0; }
.side-menu-links button,.side-menu-links a,.side-menu-footer a { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: 12px; background: transparent; color: #243854; cursor: pointer; text-align: left; text-decoration: none; font-size: 13px; font-weight: 700; }
.side-menu-links a:hover,.side-menu-links a:focus-visible { color: #0f5ecb; background: #eaf3ff; }
.side-menu-links button.active { color: #0f5ecb; background: #eaf3ff; }
.side-menu-links svg,.side-menu-footer svg { width: 20px; height: 20px; flex: none; }
.side-menu-links b { margin-left: auto; color: #c4374b; }
.side-menu-footer { display: grid; gap: 5px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 10px 0 22px; }
.page-title > div { max-width: 760px; }
.page-title span, .eyebrow { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.page-title h1 { margin: 7px 0 5px; font-size: clamp(28px, 4vw, 44px); line-height: 1.02; letter-spacing: -.045em; }
.page-title p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.primary-button, .secondary-button, .danger-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; padding: 0 17px; font-size: 10px; font-weight: 780; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.primary-button { border: 0; color: white; background: linear-gradient(145deg, #1b72ec, #2448bb); box-shadow: 0 9px 20px rgba(22, 92, 218, .22); }
.secondary-button { border: 1px solid var(--line); background: white; }
.danger-button { border: 1px solid #f2c8ce; color: #b82e41; background: #fff2f4; }
.primary-button:hover, .secondary-button:hover, .danger-button:hover { transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled, button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.full-width { width: 100%; }
.button-row { display: flex; gap: 9px; align-items: center; }
.button-row > * { flex: 1; }
.text-button { border: 0; color: var(--blue); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-grid-three { grid-template-columns: repeat(3, 1fr); }
.metric-grid-two { grid-template-columns: repeat(2, 1fr); }
.metric-card { min-height: 146px; display: flex; flex-direction: column; align-items: flex-start; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 25px rgba(28, 44, 78, .04); text-align: left; }
.metric-button { cursor: pointer; }
.metric-button:hover { border-color: #b7c9f3; box-shadow: var(--shadow); }
.metric-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 17px; color: #583ed1; background: #eeeafd; font-size: 11px; font-weight: 900; }
.metric-icon svg { width: 20px; height: 20px; }
.metric-icon.green { color: var(--green); background: #e5f7f0; }
.metric-icon.orange { color: var(--orange); background: #fff0e4; }
.metric-icon.blue { color: var(--blue); background: #e9f2ff; }
.metric-card > small { color: var(--muted); font-size: 9px; }
.metric-card > strong { margin: 5px 0 3px; font-size: 25px; letter-spacing: -.03em; }
.metric-card > p { margin: 0; color: #8b93a6; font-size: 8px; }

.surface-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 9px 28px rgba(28, 44, 78, .045); margin-bottom: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.check-grid span { padding: 12px; border-radius: 12px; color: #24604f; background: #edf8f4; font-size: 10px; font-weight: 650; }

.app-alert { position: fixed; z-index: 80; top: 88px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 30px)); display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; box-shadow: 0 18px 50px rgba(24, 34, 65, .2); }
.app-alert p { margin: 0; font-size: 10px; font-weight: 650; }
.app-alert button { border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.error-alert { color: #a72b3a; background: #fff0f2; border: 1px solid #f1c5cb; }
.success-alert { color: #0a7555; background: #e9f8f2; border: 1px solid #c4ebdc; }
.loading-panel { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.loading-panel > span { width: 42px; height: 42px; border: 3px solid #dae4f8; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-panel strong { margin-top: 17px; font-size: 15px; }
.loading-panel small { margin-top: 4px; color: var(--muted); font-size: 9px; }
@keyframes spin { to { transform: rotate(360deg); } }

.subscription-hero { width: 100%; min-height: 154px; display: grid; grid-template-columns: 125px 1fr auto; gap: 20px; align-items: center; margin-bottom: 24px; padding: 16px 24px 16px 16px; overflow: hidden; border: 0; border-radius: 24px; color: white; background: radial-gradient(circle at 82% 0, rgba(67, 170, 255, .3), transparent 25%), linear-gradient(135deg, #07142d, #0d3982); box-shadow: 0 20px 48px rgba(8, 43, 103, .22); cursor: pointer; text-align: left; }
.subscription-hero.pro { background: radial-gradient(circle at 82% 0, rgba(63, 152, 255, .35), transparent 25%), linear-gradient(135deg, #030a18, #092b67); }
.subscription-hero img { width: 120px; height: 120px; object-fit: cover; border-radius: 18px; }
.subscription-hero > span { display: flex; flex-direction: column; }
.subscription-hero small { color: #8dbbff; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.subscription-hero strong { margin-top: 5px; font-size: 27px; }
.subscription-hero p { margin: 5px 0 0; color: rgba(255,255,255,.7); font-size: 10px; }
.subscription-hero > b { color: rgba(255,255,255,.82); font-size: 10px; }

.expired-panel { max-width: 720px; margin: 48px auto; padding: 40px; border: 1px solid #f1ced2; border-radius: 26px; background: linear-gradient(145deg, #fff6f7, #fff); box-shadow: var(--shadow); text-align: center; }
.expired-symbol { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 18px; color: white; background: var(--red); font-size: 26px; font-weight: 900; }
.expired-panel h1 { margin: 8px 0; font-size: 34px; }
.expired-panel > p { max-width: 530px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.6; }
.moderator-contact { max-width: 420px; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; margin: 24px auto; padding: 14px 17px; border: 1px solid var(--line); border-radius: 14px; background: white; text-align: left; }
.moderator-contact small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; }
.moderator-contact strong, .moderator-contact a { font-size: 11px; }
.moderator-contact a { color: var(--blue); font-weight: 750; text-decoration: none; }

.provider-table { display: flex; flex-direction: column; }
.provider-table-row { display: grid; grid-template-columns: 42px minmax(170px, 1fr) auto auto auto auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid #eef1f6; }
.provider-table-row:first-child { border-top: 0; }
.provider-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--blue), #3932a9); font-size: 10px; font-weight: 850; }
.provider-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.provider-copy, .provider-expiry { display: flex; flex-direction: column; min-width: 0; }
.provider-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.provider-copy small, .provider-expiry small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.provider-expiry strong { margin-top: 3px; font-size: 9px; }
.plan-badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 9px; border-radius: 999px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.plan-badge.plus { color: #0a5ec7; background: #e6f1ff; }
.plan-badge.pro { color: white; background: linear-gradient(135deg, #0a2459, #1477ea); box-shadow: 0 5px 14px rgba(14, 87, 190, .2); }
.plan-badge.none { color: #7f8798; background: #eff1f5; }
.account-status { padding: 6px 8px; border-radius: 999px; font-size: 8px; font-weight: 750; white-space: nowrap; }
.account-status.active { color: var(--green); background: #e7f7f1; }
.account-status.expired { color: var(--red); background: #fff0f2; }
.compact-actions { display: flex; gap: 5px; }
.compact-actions button { min-height: 30px; border: 1px solid #cfe0f9; border-radius: 8px; color: var(--blue); background: #eef5ff; padding: 0 9px; font-size: 8px; font-weight: 780; cursor: pointer; }
.compact-actions button.pro { color: white; border-color: #125dca; background: #125dca; }

.plan-comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.plan-card { min-height: 230px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; padding: 17px; overflow: hidden; border: 1px solid #dce5f3; border-radius: 22px; background: white; }
.plan-card.pro { border-color: #79aaf0; box-shadow: 0 12px 34px rgba(20, 91, 190, .12); }
.plan-card.free { grid-column: 1 / -1; min-height: 125px; background: linear-gradient(120deg, #f8fbff, #edf4ff); }
.manual-grant { grid-column: 2 / -1; width: 100%; padding: 10px 12px; border: 1px solid #c7d9f0; border-radius: 12px; background: #f8fbff; }
.manual-grant summary { cursor: pointer; color: #1264e8; font-size: 11px; font-weight: 800; }
.manual-grant form { display: grid; grid-template-columns: 1fr 1fr 2fr auto; align-items: end; gap: 10px; margin-top: 12px; }
.manual-grant label { display: grid; gap: 5px; color: #40546d; font-size: 10px; font-weight: 700; }
.manual-grant input,.manual-grant select,.manual-grant textarea { width: 100%; min-height: 38px; padding: 8px; border: 1px solid #b7cae2; border-radius: 8px; font: inherit; }
.manual-grant textarea { resize: vertical; }
.manual-grant small { grid-column: 1 / -1; color: #607188; }
.plan-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 17px; }
.plan-card h2 { margin: 10px 0 6px; font-size: 22px; }
.plan-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.plan-card ul { margin: 12px 0 0; padding-left: 16px; color: #45516a; font-size: 9px; line-height: 1.7; }
.request-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid #eef1f6; }
.request-row:first-of-type { border-top: 0; }
.request-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: #eaf3ff; font-size: 20px; font-weight: 850; }
.request-row > span:nth-child(2) { display: flex; flex-direction: column; }
.request-row strong { font-size: 11px; }
.request-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.request-row p { margin: 4px 0 0; color: #4d5870; font-size: 9px; }

.form-card { max-width: 720px; }
label { display: flex; flex-direction: column; gap: 5px; }
label > span { color: #58637a; font-size: 8px; font-weight: 750; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-height: 42px; border: 1px solid #dce1ec; border-radius: 10px; outline: 0; background: white; padding: 0 11px; color: var(--ink); font-size: 10px; }
textarea { min-height: 86px; padding-top: 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #7aa8ef; box-shadow: 0 0 0 3px rgba(42, 112, 228, .1); }
.modal-form-message { margin-bottom: 12px; padding: 11px 12px; border: 1px solid #f1c5cb; border-radius: 11px; color: #a72b3a; background: #fff0f2; font-size: 10px; font-weight: 700; }
.form-card > label { margin-bottom: 12px; }

.booking-tab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.booking-tab-grid button { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: white; cursor: pointer; text-align: left; }
.booking-tab-grid button span { color: #59647c; font-size: 9px; font-weight: 700; }
.booking-tab-grid button strong { min-width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: #eef2f8; font-size: 12px; }
.booking-tab-grid button.active { border-color: var(--blue); box-shadow: 0 8px 24px rgba(22, 96, 218, .1); }
.booking-tab-grid button.active strong { color: white; background: var(--blue); }
.booking-card-list { display: grid; gap: 12px; }
.booking-detail-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 8px 24px rgba(28, 44, 78, .045); }
.booking-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.booking-number { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.status-pill { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.status-pill.new { color: var(--orange); background: #fff0e4; }
.status-pill.confirmed { color: var(--blue); background: #e8f2ff; }
.status-pill.service_provided { color: var(--green); background: #e6f7f0; }
.status-pill.rejected { color: var(--red); background: #fff0f2; }
.booking-detail-card h2 { margin: 11px 0 13px; font-size: 19px; letter-spacing: -.025em; }
.booking-detail-card > p { margin: -7px 0 14px; color: var(--muted); font-size: 9px; }
.booking-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.booking-facts > span { display: flex; flex-direction: column; padding: 10px; border-radius: 11px; background: #f6f8fb; }
.booking-facts small, .booking-money small, .price-pair small, .booking-total small { color: var(--muted); font-size: 8px; }
.booking-facts strong, .booking-facts a { margin-top: 4px; font-size: 10px; font-weight: 750; text-decoration: none; }
.booking-facts a { color: var(--blue); }
.booking-money { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 14px 0; padding: 13px; border-radius: 13px; background: #f3f7fe; }
.booking-money > span { display: flex; flex-direction: column; }
.booking-money strong { margin-top: 4px; font-size: 13px; }
.booking-money > b { color: #98a2b5; }
blockquote { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; padding: 11px 13px; border-left: 3px solid #7e9eda; border-radius: 5px 11px 11px 5px; color: #4e5870; background: #f4f7fc; font-size: 9px; line-height: 1.5; }
blockquote b { color: #263653; font-size: 8px; }
blockquote.provider-comment { border-left-color: var(--green); background: #f0f8f5; }
.booking-row { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 14px; align-items: center; min-height: 62px; padding: 11px 0; border-top: 1px solid #eef1f5; }
.booking-row:first-of-type { border-top: 0; }
.booking-row > span:nth-child(2) { display: flex; flex-direction: column; }
.booking-row > span:nth-child(2) strong { font-size: 10px; }
.booking-row > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.booking-row time { color: #4e5970; font-size: 9px; }

.service-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.service-admin-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid #dfe6ee; border-radius: 22px; background: white; box-shadow: 0 10px 28px rgba(28, 44, 78, .06); }
.service-admin-card.schedule-expanded { border-color: #a9cddc; box-shadow: 0 18px 46px rgba(22, 82, 117, .12); }
.service-admin-art { min-height: 228px; display: flex; align-items: flex-end; padding: 13px; background-size: cover; background-position: center; }
.service-admin-art b { padding: 6px 8px; border-radius: 999px; color: white; background: rgba(6, 22, 57, .76); backdrop-filter: blur(8px); font-size: 8px; }
.service-admin-card > .service-admin-content { min-width: 0; padding: 19px 20px; }
.service-admin-card h2 { margin: 0 0 7px; font-size: 17px; }
.service-admin-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.service-admin-card > div > small { color: var(--muted); font-size: 8px; }
.price-pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.price-pair > span { display: flex; flex-direction: column; padding: 8px; border-radius: 9px; background: #f5f7fa; }
.price-pair strong { margin-top: 3px; font-size: 9px; }
.upgrade-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 15px 17px; border: 1px solid #c9dcf7; border-radius: 14px; color: #134f9e; background: #edf5ff; }
.upgrade-strip strong { font-size: 10px; }
.upgrade-strip span { font-size: 9px; }

.current-plan-card { width: 100%; display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; margin-bottom: 18px; padding: 12px 20px 12px 12px; overflow: hidden; border: 1px solid #b9d1f3; border-radius: 21px; color: white; background: linear-gradient(135deg, #07142e, #0c448f); text-align: left; cursor: pointer; }
.current-plan-card img { width: 105px; height: 105px; object-fit: cover; border-radius: 15px; }
.current-plan-card.free-plan { grid-template-columns: 110px 1fr; cursor: default; background: linear-gradient(135deg, #092148, #315f9d); }
.current-plan-card > span { display: flex; flex-direction: column; }
.current-plan-card small { color: #91bcf8; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.current-plan-card strong { margin-top: 5px; font-size: 22px; }
.current-plan-card p { margin: 4px 0 0; color: rgba(255,255,255,.7); font-size: 9px; }

.feed-hero { min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 60px); margin-bottom: 14px; overflow: hidden; border-radius: 28px; color: white; background: radial-gradient(circle at 83% 8%, rgba(35, 164, 255, .36), transparent 28%), radial-gradient(circle at 20% 120%, rgba(101, 80, 229, .45), transparent 34%), linear-gradient(135deg, #06132b, #0b3d82); box-shadow: 0 20px 55px rgba(7, 44, 105, .2); }
.feed-hero:not(.compact-search) { background: linear-gradient(90deg, rgba(2, 13, 40, .88), rgba(2, 13, 40, .68) 63%, rgba(2, 13, 40, .45)), url('/static/vector/city-banner.jpg') center 46% / cover no-repeat; }
.feed-city-choice { display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin: 0 0 14px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 11px; background: rgba(2, 13, 40, .56); color: white; font-size: 11px; font-weight: 800; }
.feed-city-choice select { min-height: 34px; padding: 5px 30px 5px 9px; border: 0; border-radius: 8px; color: #102b50; background: white; font: inherit; }
.city-choice { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 17px; margin: 8px 0; padding: 13px; border: 1px solid #c7d9f0; border-radius: 12px; }
.city-choice legend { color: #284d7c; font-size: 11px; font-weight: 800; }
.city-choice label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 7px; margin: 0 !important; font-size: 11px; font-weight: 700; }
.city-choice label > span { color: #284d7c; font-size: 11px; }
.city-choice input[type=checkbox] { width: 16px; height: 16px; min-height: auto; flex: none; }
#provider-booking-form .auth-check { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; font-size: 13px; line-height: 1.45; }
#provider-booking-form .auth-check input[type=checkbox] { width: 17px; height: 17px; min-height: 17px; flex: 0 0 17px; padding: 0; margin: 2px 0 0; }
#provider-booking-form small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 5px; }
.feed-hero .eyebrow { color: #82baff; }
.feed-hero h1 { max-width: 800px; margin: 10px 0 8px; font-size: clamp(36px, 5.5vw, 66px); line-height: .98; letter-spacing: -.055em; }
.feed-hero > p { max-width: 760px; margin: 0 0 23px; color: rgba(255,255,255,.66); font-size: 11px; line-height: 1.55; }
.search-field { max-width: 720px; height: 54px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 7px; padding: 5px 8px 5px 13px; border-radius: 15px; color: var(--ink); background: white; box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.search-field > span { color: #7a8498; font-size: 24px; }
.search-field input { min-height: 40px; border: 0; box-shadow: none; }
.search-field b { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--blue); font-size: 9px; }
.category-scroll { display: flex; gap: 7px; margin: 0 0 15px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-scroll button { flex: 0 0 auto; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: #626d83; background: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.category-scroll button.active { color: white; border-color: var(--blue); background: var(--blue); }
.category-feed { display: grid; gap: 18px; }
.category-feed-section { overflow: hidden; padding: 18px 0 6px; border-top: 1px solid #e6eaf1; }
.category-feed-section:first-child { padding-top: 4px; border-top: 0; }
.category-feed-section .section-heading { margin: 0 0 12px; }
.service-carousel { display: grid; grid-auto-columns: minmax(280px, 31%); grid-auto-flow: column; gap: 14px; overflow-x: auto; padding: 2px 2px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.service-carousel .feed-service-card { scroll-snap-align: start; }
.service-feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feed-service-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 9px 28px rgba(28, 44, 78, .05); }
.feed-service-card.pro-service { border: 2px solid #1e78ec; box-shadow: 0 14px 36px rgba(17, 94, 205, .16), inset 0 0 0 2px rgba(117, 181, 255, .18); }
.service-photo { width: 100%; height: 190px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 11px; border: 0; background-size: cover; background-position: center; cursor: pointer; }
.service-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(2, 14, 38, .72)); }
.service-photo span, .service-photo b { position: relative; z-index: 1; padding: 6px 8px; border-radius: 999px; font-size: 8px; }
.service-photo span { color: white; background: rgba(7, 25, 60, .68); backdrop-filter: blur(7px); }
.service-photo b { color: #07529f; background: #e3f1ff; }
.service-card-body { padding: 15px; }
.service-card-body > small { color: var(--blue); font-size: 8px; font-weight: 700; }
.service-card-body h2 { margin: 7px 0 6px; font-size: 17px; line-height: 1.2; }
.service-card-body > p { min-height: 40px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.rating-line { display: flex; align-items: center; gap: 7px; margin: 11px 0; }
.rating-line span { color: #d99020; font-size: 9px; font-weight: 800; }
.rating-line small { color: var(--muted); font-size: 8px; }
.service-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid #edf0f5; }
.service-price > span { display: flex; flex-direction: column; }
.service-price small { color: var(--muted); font-size: 7px; }
.service-price strong { margin-top: 3px; font-size: 15px; }
.reviews-preview { margin-top: 18px; }

.prepayment-alert, .rejection-alert { display: flex; flex-direction: column; gap: 3px; margin: 14px 0; padding: 13px 15px; border-radius: 13px; }
.prepayment-alert { color: #0e5b47; border: 1px solid #c4e8dc; background: #eaf8f3; }
.prepayment-alert b, .rejection-alert b { font-size: 9px; }
.prepayment-alert strong { font-size: 15px; }
.prepayment-alert p, .rejection-alert p { margin: 3px 0 0; font-size: 9px; }
.rejection-alert { color: #a72f40; border: 1px solid #f0cbd0; background: #fff2f4; }
.reviewed-note { margin-top: 12px; padding: 10px; border-radius: 10px; color: #a46f13; background: #fff7e6; font-size: 9px; font-weight: 750; }

.accounting-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #eef1f5; }
.accounting-row:first-of-type { border-top: 0; }
.accounting-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: #e8f7f1; font-size: 13px; font-weight: 850; }
.accounting-row > span:nth-child(2), .accounting-row > span:last-child { display: flex; flex-direction: column; }
.accounting-row > span:last-child { text-align: right; }
.accounting-row strong { font-size: 10px; }
.accounting-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.rating-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 22px; border-radius: 20px; color: white; background: linear-gradient(135deg, #0b2c65, #175eae); }
.rating-summary > strong { font-size: 45px; line-height: 1; }
.rating-summary > span { display: flex; flex-direction: column; }
.rating-summary b { color: #ffd65c; letter-spacing: .08em; }
.rating-summary small { margin-top: 5px; color: rgba(255,255,255,.7); font-size: 9px; }
.review-row { display: grid; grid-template-columns: 86px 1fr; gap: 13px; padding: 13px 0; border-top: 1px solid #eef1f5; }
.review-row:first-of-type { border-top: 0; }
.review-stars { color: #e4a62a; font-size: 12px; letter-spacing: .04em; }
.review-row > span:last-child { display: flex; flex-direction: column; }
.review-row strong { font-size: 10px; }
.review-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.review-row p { margin: 6px 0 0; color: #4d5870; font-size: 9px; line-height: 1.5; }

.message-panel > label { max-width: 520px; margin-bottom: 14px; }
.message-list { min-height: 250px; display: flex; flex-direction: column; gap: 7px; padding: 14px; border-radius: 15px; background: #f4f7fb; }
.message-list article { max-width: 75%; align-self: flex-start; padding: 9px 11px; border-radius: 4px 13px 13px 13px; background: white; box-shadow: 0 5px 15px rgba(27, 42, 75, .06); }
.message-list article.own { align-self: flex-end; border-radius: 13px 4px 13px 13px; color: white; background: var(--blue); }
.message-list small, .message-list time { color: #8992a4; font-size: 7px; }
.message-list article.own small, .message-list article.own time { color: rgba(255,255,255,.66); }
.message-list p { margin: 4px 0; font-size: 9px; line-height: 1.45; }
.message-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.messenger-layout { min-height: 610px; display: grid; grid-template-columns: minmax(270px, 34%) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.messenger-sidebar { min-width: 0; padding: 14px; border-right: 1px solid var(--line); background: #f8faff; }
.messenger-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 3px 13px; }
.messenger-sidebar-head > span { display: flex; flex-direction: column; gap: 3px; }
.messenger-sidebar-head strong { font-size: 16px; }
.messenger-sidebar-head small { color: var(--muted); font-size: 8px; }
.conversation-list { display: grid; gap: 6px; }
.conversation-row { position: relative; width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px; border: 1px solid transparent; border-radius: 14px; background: transparent; cursor: pointer; text-align: left; }
.conversation-row:hover,.conversation-row.active { border-color: #c8dafa; background: white; box-shadow: 0 7px 20px rgba(30, 65, 130, .07); }
.conversation-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, var(--blue), #463dc6); font-size: 15px; }
.conversation-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.conversation-copy strong,.conversation-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy strong { font-size: 10px; }
.conversation-copy small,.conversation-row time { color: var(--muted); font-size: 7px; }
.conversation-row > b { position: absolute; right: 8px; bottom: 8px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: white; background: var(--blue); font-size: 7px; }
.messenger-thread { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 14px; background: linear-gradient(180deg, #fff, #f8faff); }
.messenger-thread > header { display: flex; align-items: center; gap: 10px; padding: 2px 2px 13px; border-bottom: 1px solid var(--line); }
.messenger-thread > header > span { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.messenger-thread > header strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.messenger-thread > header small { color: var(--muted); font-size: 8px; }
.messenger-thread .message-list { min-height: 420px; max-height: 540px; overflow-y: auto; margin-top: 12px; }
.chat-back { display: none; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 20px; }
.chat-delete { border: 0; color: var(--red); background: transparent; cursor: pointer; font-size: 8px; font-weight: 750; }
.messenger-empty { place-items: center; }
.chat-screen { overflow: hidden; height: 100dvh; }
.chat-screen .vector-header { position: fixed; top: var(--chat-viewport-top, 0px); left: 0; right: 0; }
.chat-screen .vector-main { position: fixed; top: calc(var(--chat-viewport-top, 0px) + var(--chat-header-height, 76px) + 8px); bottom: calc(var(--chat-viewport-bottom, 0px) + 88px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
.chat-screen .bottom-nav { bottom: calc(var(--chat-viewport-bottom, 0px) + 14px + env(safe-area-inset-bottom)); }
.chat-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-page-heading .page-title { margin: 0; }
.chat-screen .messenger-layout { min-height: 0; height: 100%; }
.chat-screen .messenger-sidebar { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat-screen .messenger-thread, .chat-screen .messenger-layout.thread-open .messenger-thread { min-height: 0; overflow: hidden; }
.chat-screen .messenger-thread .message-list { min-height: 0; max-height: none; overscroll-behavior: contain; }
.chat-screen .messenger-thread > header > .participant-avatar { flex: 0 0 44px; width: 44px; height: 44px; }
.chat-screen .message-compose { min-height: 0; margin: 0; }
.service-fields[hidden] { display: none !important; }
.image-upload-preview { display: flex; gap: 10px; flex-wrap: wrap; }
.image-upload-preview figure { margin: 0; width: 110px; }
.image-upload-preview img { width: 110px; height: 85px; object-fit: cover; border-radius: 12px; }
.image-upload-preview figcaption { font-size: 11px; overflow-wrap: anywhere; }
.step-up-fields { padding: 12px; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; }
.broadcast-readonly { margin-top: 10px; padding: 12px; border-radius: 12px; color: #59657b; background: #eef2f8; font-size: 9px; text-align: center; }
.broadcast-compose { display: grid; gap: 7px; margin-bottom: 12px; padding: 10px; border: 1px solid #cfe0fa; border-radius: 14px; background: white; }
.broadcast-compose textarea { min-height: 64px; }
.chat-contacts { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.chat-contacts summary { color: var(--blue); cursor: pointer; font-size: 9px; font-weight: 800; }
.chat-contacts > div { display: grid; gap: 5px; margin-top: 8px; }
.chat-contact { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 7px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; text-align: left; }
.chat-contact:hover { background: white; }
.chat-contact > span { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: #e8f1ff; font-size: 10px; font-weight: 850; }
.chat-contact strong { font-size: 9px; }
.chat-contact small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.nav-unread { position: absolute; top: 4px; right: 8px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; color: white; background: var(--red); font-size: 7px; }
.bottom-nav button { position: relative; }
.audit-list article { display: grid; grid-template-columns: 190px 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid #eef1f5; }
.audit-list article:first-child { border-top: 0; }
.audit-list span { color: var(--blue); font-size: 8px; font-weight: 800; }
.audit-list strong { font-size: 9px; }
.audit-list small { color: var(--muted); font-size: 8px; }

.empty-state { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; color: var(--muted); text-align: center; }
.empty-state.compact { min-height: 130px; }
.empty-state > span { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 13px; color: var(--blue); background: #eaf3ff; font-size: 20px; }
.empty-state strong { color: #3a465f; font-size: 12px; }
.empty-state small { max-width: 390px; margin-top: 4px; font-size: 8px; line-height: 1.5; }

.drawer-backdrop, .modal-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(9, 18, 40, .53); backdrop-filter: blur(7px); }
.drawer-backdrop { display: flex; justify-content: flex-end; }
.notification-drawer { width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; padding: 20px; background: white; box-shadow: -20px 0 60px rgba(8, 18, 44, .2); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-head > div { display: flex; flex-direction: column; }
.drawer-head span { color: var(--muted); font-size: 9px; }
.drawer-head strong { font-size: 19px; }
.drawer-head button, .modal-close { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #eef1f6; cursor: pointer; font-size: 21px; }
.push-enable { min-height: 40px; margin-bottom: 10px; border: 1px solid #c9dcf6; border-radius: 11px; color: var(--blue); background: #edf5ff; font-size: 9px; font-weight: 750; cursor: pointer; }
.notification-list { overflow-y: auto; }
.notification-list > button { width: 100%; display: grid; grid-template-columns: 16px 1fr; gap: 8px; padding: 13px 5px; border: 0; border-top: 1px solid #eef1f5; background: transparent; text-align: left; cursor: pointer; }
.notification-list > button.unread { background: #f3f7ff; }
.notification-list > button > span:first-child { color: #aab1bf; font-size: 9px; }
.notification-list > button.unread > span:first-child { color: var(--blue); }
.notification-list > button > span:last-child { display: flex; flex-direction: column; }
.notification-list strong { font-size: 10px; }
.notification-list p { margin: 4px 0; color: #566178; font-size: 9px; line-height: 1.45; }
.notification-list small { color: var(--muted); font-size: 7px; }

.modal-backdrop { display: grid; place-items: center; padding: 18px; }
.vector-modal { position: relative; width: min(780px, 100%); max-height: calc(100svh - 36px); overflow-y: auto; border-radius: 24px; background: white; box-shadow: 0 34px 90px rgba(3, 12, 35, .34); }
.modal-close { position: absolute; z-index: 4; top: 12px; right: 12px; background: rgba(255,255,255,.92); }
.modal-service-art { height: 230px; display: flex; align-items: flex-end; justify-content: space-between; padding: 18px; background-size: cover; background-position: center; }
.modal-service-art span, .modal-service-art b { padding: 7px 10px; border-radius: 999px; font-size: 8px; }
.modal-service-art span { color: white; background: rgba(5, 20, 51, .72); }
.modal-service-art b { color: var(--blue); background: #e7f2ff; }
.modal-content { padding: 25px; }
.modal-content > small { color: var(--blue); font-size: 8px; font-weight: 750; }
.modal-content h2 { margin: 7px 0 8px; font-size: 27px; letter-spacing: -.035em; }
.modal-content > p { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.modal-rating { color: #bd801e; font-size: 9px; font-weight: 750; }
.booking-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin: 18px 0; }
.booking-form-grid .wide { grid-column: 1 / -1; }
.guest-steppers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.guest-stepper { min-height: 63px; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid #dce1ec; border-radius: 10px; }
.guest-stepper > span { color: #58637a; font-size: 8px; font-weight: 750; }
.guest-stepper > div { display: flex; align-items: center; gap: 7px; }
.guest-stepper button { width: 27px; height: 27px; border: 0; border-radius: 8px; color: var(--blue); background: #edf4ff; cursor: pointer; }
.guest-stepper strong { min-width: 12px; text-align: center; font-size: 10px; }
.booking-calendar { margin: 13px 0; padding: 14px; border: 1px solid #dce4f0; border-radius: 16px; background: #f8faff; }
.calendar-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.calendar-heading span { color: #35425d; font-size: 10px; font-weight: 800; }
.calendar-heading small { color: var(--muted); font-size: 8px; }
.booking-total { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 13px 0; }
.booking-total > span { display: flex; flex-direction: column; padding: 12px; border-radius: 11px; background: #f2f6fc; }
.booking-total strong { margin-top: 4px; font-size: 17px; }
.modal-reviews { margin-top: 22px; padding-top: 15px; border-top: 1px solid #edf0f5; }
.modal-reviews h3 { margin: 0 0 5px; font-size: 14px; }
.success-content { padding-top: 48px; text-align: center; }
.success-check { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 18px; color: white; background: var(--green); font-size: 25px; }
.contact-box { display: flex; flex-direction: column; margin: 18px 0; padding: 15px; border-radius: 13px; background: #eff8f5; }
.contact-box small { color: var(--muted); font-size: 8px; }
.contact-box a { margin-top: 5px; color: var(--green); font-size: 16px; font-weight: 800; text-decoration: none; }
.star-picker { display: flex; justify-content: center; gap: 3px; margin: 18px 0; }
.star-picker button { border: 0; color: #d9dde5; background: transparent; cursor: pointer; font-size: 34px; }
.star-picker button.active { color: #efb52d; }
.create-service-content { padding-top: 34px; }
.plan-details { text-align: center; }
.plan-details > img { width: 180px; height: 180px; object-fit: cover; margin-bottom: 15px; border-radius: 22px; }
.date-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 18px 0; }
.date-range > span { display: flex; flex-direction: column; padding: 12px; border-radius: 11px; background: #f3f6fa; }
.date-range small { color: var(--muted); font-size: 8px; }
.date-range strong { margin-top: 4px; font-size: 10px; }
.date-range i { color: #9ba3b3; font-style: normal; }
.upgrade-description { padding: 15px; border-radius: 13px; color: #124f9c; background: #edf5ff; text-align: left; }
.upgrade-description.pro { color: #0b654a; background: #ebf8f3; }
.upgrade-description h3 { margin: 0 0 5px; font-size: 13px; }
.upgrade-description p { margin: 0; font-size: 9px; line-height: 1.5; }
.moderator-line { margin-top: 15px !important; text-align: center; }
.account-list, .schedule-list { display: flex; flex-direction: column; }
.account-list article, .schedule-row { display: grid; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #eef1f6; }
.account-list article:first-child, .schedule-row:first-child { border-top: 0; }
.account-list article { grid-template-columns: 42px 1fr auto; }
.account-list article > span:nth-child(2), .schedule-row > span { display: flex; flex-direction: column; }
.account-list strong, .schedule-row strong { font-size: 11px; }
.account-list small, .schedule-row small, .schedule-row em { margin-top: 3px; color: var(--muted); font-size: 8px; font-style: normal; line-height: 1.45; }
.account-list b { padding: 6px 9px; border-radius: 999px; color: var(--blue); background: #edf4ff; font-size: 8px; }
.schedule-row { grid-template-columns: 1fr auto; }
.schedule-actions { display: flex; gap: 7px; }
.week-schedule-editor { display: grid; gap: 8px; margin: 16px 0; }
.week-day-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #f7f8fb; }
.week-day-card.active { border-color: #c4d8f7; background: white; }
.week-day-card > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; }
.week-day-card > header small { color: var(--muted); font-size: 8px; }
.day-toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; cursor: pointer; }
.day-toggle input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.day-toggle input:focus-visible + span { outline: 3px solid #2d8fc8; outline-offset: 2px; }
.day-toggle > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #cdd4df; border-radius: 7px; color: white; background: white; font-size: 9px; }
.week-day-card.active .day-toggle > span { border-color: var(--blue); background: var(--blue); }
.week-day-card:not(.active) .day-slot-editor { display: none; }
.day-slot-editor { display: grid; gap: 7px; padding: 0 11px 11px 44px; }
.schedule-time-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(100px, .7fr) 34px; gap: 7px; align-items: end; }
.schedule-time-row input { min-height: 38px; }
.remove-time { width: 34px; height: 38px; border: 1px solid #f0cbd0; border-radius: 9px; color: var(--red); background: #fff2f4; cursor: pointer; font-size: 18px; }
.add-time { min-height: 36px; border: 1px dashed #9dbce9; border-radius: 9px; color: var(--blue); background: #f1f7ff; cursor: pointer; font-size: 9px; font-weight: 750; }
.schedule-note { display: flex; flex-direction: column; gap: 4px; margin: 13px 0; padding: 13px; border-radius: 12px; color: #245342; background: #edf8f4; }
.schedule-note b { font-size: 9px; }
.schedule-note span { font-size: 8px; line-height: 1.5; }

/* The service owns its calendar: light weekly columns echo the supplied reference. */
.service-admin-heading .eyebrow { display: block; margin-bottom: 5px; color: #168db1; font-size: 8px; }
.service-admin-heading h2 { margin-bottom: 6px; font-size: 21px; }
.service-admin-heading p { max-width: 780px; font-size: 10px; }
.service-admin-content > small { display: block; margin-top: 8px; }
.service-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.service-admin-actions button { min-width: 168px; }
.service-schedule-teaser { display: flex; gap: 10px; align-items: center; margin-top: 13px; padding: 10px 12px; border: 1px solid #cde1e8; border-radius: 13px; background: #f1f9fb; }
.service-schedule-teaser > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #1688a8; background: #dff2f5; }
.service-schedule-teaser svg { width: 19px; height: 19px; }
.service-schedule-teaser > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.service-schedule-teaser strong { color: #204454; font-size: 10px; }
.service-schedule-teaser small { overflow: hidden; color: #607986; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.service-schedule-panel { grid-column: 1 / -1; min-width: 0; padding: 22px; border-top: 1px solid #dce8ee; background: linear-gradient(180deg,#f8fbfd,#f4f8fb); }
.service-schedule-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.service-schedule-intro h3 { margin: 5px 0 7px; font-size: 22px; letter-spacing: -.03em; }
.service-schedule-current { display: inline-flex; padding: 6px 9px; border-radius: 8px; color: #207d65; background: #e2f5ed; font-size: 9px; font-weight: 750; }
.service-schedule-current.draft { color: #946728; background: #fff2da; }
.service-week-heading,.service-schedule-form-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 12px; }
.service-week-heading h3,.service-schedule-form-head h3 { margin: 0 0 3px; color: #1d3546; font-size: 16px; }
.service-week-heading p,.service-schedule-form-head p { margin: 0; color: #728490; font-size: 9px; }
.service-week-switcher { display: flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid #dce5ec; border-radius: 12px; background: white; }
.service-week-switcher button { width: 31px; height: 31px; border: 0; border-radius: 8px; color: #2589a4; background: #eaf5f8; cursor: pointer; font-size: 22px; line-height: 1; }
.service-week-switcher button:disabled { color: #a5b3bd; background: #f1f4f6; cursor: default; }
.service-week-switcher span { min-width: 116px; color: #3f5968; font-size: 9px; font-weight: 800; text-align: center; white-space: nowrap; }
.service-week-board,.service-schedule-panel .week-schedule-editor { display: grid; grid-template-columns: repeat(7,minmax(150px,1fr)); gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; scrollbar-color: #bdd1dc transparent; }
.service-week-day { min-height: 180px; overflow: hidden; border: 1px solid #dae5eb; border-radius: 14px; background: #fff; }
.service-week-day.today { border-color: #55afd0; box-shadow: 0 0 0 2px rgba(55,162,195,.12); }
.service-week-day > header { min-height: 63px; display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; background: #e8f4f8; }
.service-week-day:nth-child(2n) > header { background: #eff4fc; }
.service-week-day:nth-child(3n) > header { background: #f7f0fb; }
.service-week-day > header span { color: #698391; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.service-week-day > header strong { color: #173d52; font-size: 12px; }
.service-week-day > header small { color: #7d939d; font-size: 8px; }
.service-week-events { display: grid; align-content: start; gap: 6px; padding: 8px; }
.service-week-slot { width: 100%; display: flex; flex-direction: column; gap: 4px; min-height: 66px; padding: 9px; border: 1px solid transparent; border-radius: 10px; font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.service-week-slot:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(26,64,86,.11); }
.service-week-slot:focus-visible { outline: 3px solid #2d8fc8; outline-offset: 2px; }
.service-week-slot:disabled { opacity: .7; cursor: not-allowed; }
.service-week-slot strong { font-size: 11px; }
.service-week-slot small,.service-week-slot span { font-size: 8px; }
.service-week-slot.open { color: #23664e; border-color: #c6ead9; background: #e5f7ee; }
.service-week-slot.partial { color: #805d2e; border-color: #f3e0b9; background: #fff4dd; }
.service-week-slot.closed { color: #8d5963; border-color: #f0d9de; background: #faecef; }
.service-week-empty { padding: 14px 4px; color: #99a8b1; font-size: 9px; text-align: center; }
.service-week-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 5px 0 22px; }
.service-week-legend span { display: inline-flex; align-items: center; gap: 5px; color: #71838e; font-size: 8px; }
.service-week-legend i { width: 8px; height: 8px; border-radius: 3px; }
.service-week-legend i.open { background: #89d6ad; }
.service-week-legend i.partial { background: #eec474; }
.service-week-legend i.closed { background: #e7b6c0; }
.service-recurrence { margin-top: 18px; overflow: hidden; border: 1px solid #dbe6ed; border-radius: 17px; background: white; }
.service-recurrence > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; list-style: none; cursor: pointer; }
.service-recurrence > summary::-webkit-details-marker { display: none; }
.service-recurrence > summary:focus-visible { outline: 3px solid #2d8fc8; outline-offset: -3px; }
.service-recurrence > summary > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.service-recurrence > summary strong { color: #1d3546; font-size: 16px; }
.service-recurrence > summary small { color: #728490; font-size: 9px; }
.service-recurrence-toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: #176e96; background: #e7f4fa; font-size: 9px; font-weight: 800; }
.service-recurrence-toggle i { display: inline-block; font-size: 14px; font-style: normal; line-height: 1; transition: transform .16s ease; }
.service-recurrence[open] .service-recurrence-toggle i { transform: rotate(180deg); }
.service-recurrence[open] > summary { border-bottom: 1px solid #e4ebf0; }
.service-schedule-panel form { padding: 18px; border: 1px solid #dbe6ed; border-radius: 17px; background: white; }
.service-recurrence > form { margin: 12px; }
/* Keep the seven-column calendar scroll inside its card, never grow the page.
   In particular Safari details/grid min-content sizes need explicit bounds. */
.service-admin-card,.service-schedule-panel,.service-week-view,.service-recurrence,
.service-schedule-panel form { min-width: 0; max-width: 100%; }
.service-week-board,.service-schedule-panel .week-schedule-editor { min-width: 0; max-width: 100%; overscroll-behavior-x: contain; }
.service-recurrence > summary > span:first-child { min-width: 0; }
.service-schedule-panel input,.service-schedule-panel select { min-width: 0; max-width: 100%; }
.child-ages { margin: 14px 0; border: 1px solid #dbe6ed; border-radius: 12px; padding: 12px; }
.child-ages[hidden] { display: none; }
.child-ages > small { display: block; margin-bottom: 10px; color: var(--muted); }
.child-ages > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.push-help { margin: 12px 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.push-controls > .secondary-button { margin: 0 15px 12px; }
.service-schedule-panel .schedule-period { max-width: 560px; margin: 12px 0 16px; }
.service-schedule-panel .week-schedule-editor { margin: 0 0 17px; }
.service-schedule-panel .week-day-card { min-height: 175px; align-self: stretch; border-color: #dbe7eb; background: #f6f9fa; }
.service-schedule-panel .week-day-card.active { background: #fff; }
.service-schedule-panel .week-day-card > header { min-height: 62px; align-items: flex-start; flex-direction: column; gap: 5px; background: #e8f4f8; }
.service-schedule-panel .week-day-card:nth-child(2n) > header { background: #eff4fc; }
.service-schedule-panel .week-day-card:nth-child(3n) > header { background: #f7f0fb; }
.service-schedule-panel .day-slot-editor { padding: 8px; }
.service-schedule-panel .schedule-time-row { position: relative; display: grid; grid-template-columns: 1fr; gap: 6px; padding: 9px; border: 1px solid #d2e8dc; border-radius: 11px; background: #eaf7f0; }
.service-schedule-panel .schedule-time-row label { min-width: 0; }
.service-schedule-panel .schedule-time-row label span { color: #547363; font-size: 8px; }
.service-schedule-panel .schedule-time-row input { width: 100%; min-width: 0; min-height: 34px; padding: 5px 8px; border-color: #c9ded3; background: #fff; font-size: 10px; }
.service-schedule-panel .schedule-time-row .remove-time { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; padding: 0; border: 0; color: #aa4c5c; background: #fff3f4; font-size: 14px; }
.service-schedule-panel .add-time { min-height: 32px; }
.service-closed-dates { display: flex; flex-direction: column; gap: 5px; max-width: 560px; }
.service-closed-dates > span { font-size: 9px; font-weight: 750; }
.service-closed-dates small { color: #80909b; font-size: 8px; }
.service-schedule-save { min-width: 220px; margin-top: 4px; }
.service-schedule-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.service-schedule-link h2 { margin: 0 0 4px; font-size: 16px; }
.service-schedule-link p { margin: 0; color: var(--muted); font-size: 9px; }
.slot-availability-content h2 { margin-bottom: 5px; }
.slot-availability-content > p { margin: 0; color: var(--muted); font-size: 10px; }
.slot-availability-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 18px 0; }
.slot-availability-facts > span { display: flex; flex-direction: column; gap: 5px; padding: 11px; border-radius: 11px; background: #f1f6f9; }
.slot-availability-facts small { color: #69808f; font-size: 8px; }
.slot-availability-facts strong { color: #203f50; font-size: 16px; }
.slot-availability-content form { display: grid; gap: 12px; }
.slot-availability-content form label { display: grid; gap: 6px; }
.slot-availability-content form label > span { font-size: 10px; font-weight: 800; }
.slot-availability-content form label > small { color: #6c8290; font-size: 9px; line-height: 1.4; }
.slot-availability-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 5px; }
.slot-availability-warning { margin-top: 17px; padding: 13px; border-radius: 11px; color: #845d2a; background: #fff2db; font-size: 10px; line-height: 1.5; }
@media (max-width: 640px) {
  .service-admin-card { grid-template-columns: 1fr; }
  .service-admin-art { min-height: 170px; }
  .service-admin-actions button { width: 100%; }
  .service-schedule-panel { padding: 14px; }
  .service-schedule-intro,.service-week-heading,.service-schedule-form-head,.service-schedule-link { align-items: stretch; flex-direction: column; }
  .service-schedule-intro > button { width: 100%; }
  .service-week-switcher { align-self: flex-start; }
  .service-week-board,.service-schedule-panel .week-schedule-editor { grid-template-columns: repeat(7,minmax(152px,1fr)); }
  .service-schedule-panel form { padding: 12px; }
  .service-schedule-save { width: 100%; }
  .service-recurrence > summary { align-items: flex-start; flex-direction: column; }
  .slot-availability-facts { grid-template-columns: repeat(2,1fr); }
  .slot-availability-actions { flex-direction: column; }
  .slot-availability-actions button { width: 100%; }
}
.slot-day-list { display: grid; gap: 13px; margin-top: 17px; }
.slot-day-group { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.slot-day-group > header { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; background: #f5f7fb; }
.slot-day-group > header strong { font-size: 10px; text-transform: capitalize; }
.slot-day-group > header small { color: var(--muted); font-size: 8px; }
.slot-control-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 11px 13px; border-top: 1px solid #eef1f5; background: white; }
.slot-control-row:first-child { border-top: 0; }
.slot-control-row.closed { background: #fafafb; }
.slot-control-row > span { display: flex; flex-direction: column; }
.slot-control-row strong { font-size: 13px; }
.slot-control-row small, .slot-control-row em { margin-top: 3px; color: var(--muted); font-size: 8px; font-style: normal; }
.weekday-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 8px 0 15px; }
.weekday-picker label { cursor: pointer; }
.weekday-picker input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-picker span { min-height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; font-size: 9px; font-weight: 750; }
.weekday-picker input:checked + span { border-color: var(--blue); color: white; background: var(--blue); }
.request-row a { display: inline-block; margin-top: 5px; color: var(--blue); font-size: 9px; font-weight: 750; text-decoration: none; }

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .service-feed-grid { grid-template-columns: repeat(2, 1fr); }
  .service-carousel { grid-auto-columns: minmax(270px, 47%); }
  .service-admin-grid { grid-template-columns: 1fr; }
  .provider-table-row { grid-template-columns: 42px minmax(150px, 1fr) auto auto; }
  .provider-expiry, .account-status { display: none; }
  .plan-card { grid-template-columns: 120px 1fr; }
  .plan-card img { width: 120px; height: 120px; }
  .booking-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
  .vector-shell { padding-bottom: 92px; }
  .vector-header { min-height: 68px; padding: 8px 13px; }
  .vector-brand-mark { width: 43px; height: 43px; border-radius: 13px; }
  .vector-brand strong { font-size: 15px; }
  .vector-brand small { font-size: 8px; }
  .role-selector { min-width: 0; width: 116px; padding: 6px 8px; }
  .role-selector select { font-size: 9px; }
  .notification-button { width: 42px; height: 42px; }
  .role-ribbon { margin: 10px 16px 0; }
  .role-ribbon span { display: none; }
  .vector-main { width: calc(100% - 24px); margin-top: 15px; }
  .page-title { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 17px; }
  .page-title h1 { font-size: 31px; }
  .page-title .primary-button { width: 100%; }
  .metric-grid, .metric-grid-three, .metric-grid-two { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .metric-card { min-height: 130px; padding: 13px; }
  .metric-icon { margin-bottom: 13px; }
  .metric-card > strong { font-size: 21px; }
  .surface-card { padding: 15px; border-radius: 17px; }
  .check-grid { grid-template-columns: 1fr; }
  .subscription-hero { min-height: 120px; grid-template-columns: 86px 1fr; padding: 10px; border-radius: 20px; }
  .subscription-hero img { width: 82px; height: 82px; border-radius: 14px; }
  .subscription-hero strong { font-size: 21px; }
  .subscription-hero > b { display: none; }
  .expired-panel { margin: 20px auto; padding: 25px 17px; }
  .expired-panel h1 { font-size: 29px; }
  .moderator-contact { grid-template-columns: 1fr; }
  .button-row { flex-direction: column; }
  .button-row > * { width: 100%; }
  .plan-comparison { grid-template-columns: 1fr; }
  .plan-card { min-height: 190px; grid-template-columns: 105px 1fr; gap: 13px; padding: 12px; }
  .plan-card img { width: 105px; height: 105px; }
  .plan-card h2 { font-size: 18px; }
  .provider-table-row { grid-template-columns: 38px 1fr auto; gap: 9px; }
  .provider-avatar { width: 38px; height: 38px; }
  .provider-table-row > .plan-badge { display: none; }
  .compact-actions { flex-direction: column; }
  .request-row { grid-template-columns: 36px 1fr; }
  .request-row .primary-button { grid-column: 1 / -1; width: 100%; }
  .booking-tab-grid { display: flex; overflow-x: auto; scrollbar-width: none; }
  .booking-tab-grid button { flex: 0 0 165px; }
  .booking-facts { grid-template-columns: repeat(2, 1fr); }
  .booking-money { grid-template-columns: 1fr; }
  .booking-money > b { display: none; }
  .booking-row { grid-template-columns: 92px 1fr auto; gap: 8px; }
  .booking-row .booking-start-date { display: flex; grid-column: 2; grid-row: 2; }
  .booking-row > .status-pill { grid-column: 3; grid-row: 1 / 3; }
  .service-admin-card { grid-template-columns: 1fr; }
  .service-admin-art { min-height: 180px; }
  .service-admin-card > .service-admin-content { padding: 16px; }
  .price-pair { grid-template-columns: 1fr; }
  .upgrade-strip { align-items: flex-start; flex-direction: column; }
  .current-plan-card { grid-template-columns: 78px 1fr auto; gap: 10px; padding: 9px; }
  .current-plan-card img { width: 75px; height: 75px; }
  .feed-hero { min-height: 270px; padding: 27px 20px; border-radius: 22px; }
  .feed-hero h1 { font-size: 40px; }
  .feed-hero > p { font-size: 9px; }
  .service-feed-grid { grid-template-columns: 1fr; }
  .service-carousel { grid-auto-columns: minmax(270px, 86%); }
  .service-photo { height: 210px; }
  .accounting-row { grid-template-columns: 34px 1fr; }
  .accounting-row > span:last-child { grid-column: 2; text-align: left; }
  .review-row { grid-template-columns: 1fr; gap: 6px; }
  .audit-list article { grid-template-columns: 1fr; gap: 4px; }
  .modal-backdrop { padding: 8px; align-items: end; }
  .vector-modal { max-height: calc(100svh - 16px); border-radius: 22px 22px 12px 12px; }
  .modal-service-art { height: 190px; }
  .modal-content { padding: 21px 16px; }
  .booking-form-grid { grid-template-columns: 1fr; }
  .booking-form-grid .wide { grid-column: auto; }
  .guest-steppers { grid-template-columns: 1fr; }
  .calendar-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .plan-details > img { width: 150px; height: 150px; }
  .schedule-row { grid-template-columns: 1fr; }
  .schedule-actions { display: grid; grid-template-columns: 1fr; }
  .schedule-actions button { width: 100%; }
  .day-slot-editor { padding-left: 11px; }
  .schedule-time-row { grid-template-columns: 1fr 92px 34px; }
  .slot-control-row { grid-template-columns: 1fr; }
  .slot-control-row button { width: 100%; }
  .weekday-picker { gap: 3px; }
  .weekday-picker span { min-height: 34px; font-size: 8px; }
}

/* Vector marketplace UI retained in 26.28.35; messenger controls are below. */
.customer-profile-card { display:flex; gap:20px; align-items:flex-start; }
.customer-profile-avatar { width:92px; height:92px; border-radius:24px; object-fit:cover; flex:0 0 auto; border:1px solid var(--line); }
.customer-profile-placeholder { display:grid; place-items:center; background:linear-gradient(135deg,#102d5e,#087cff); color:#fff; font-size:26px; font-weight:800; }
.customer-profile-card .profile-facts { flex:1; margin:0; box-shadow:none; border:0; padding:0; }
@media (max-width:640px) { .customer-profile-card { flex-direction:column; } }

/* Local CR3: permanent chat shortcut, catalogue tabs and enterprise chat avatar. */
.header-icon-button { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: #17233c; background: white; cursor: pointer; text-decoration: none; transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.header-icon-button:hover { transform: translateY(-1px); border-color: #b7ccef; box-shadow: 0 8px 20px rgba(25,58,110,.10); }
.header-icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-icon-button b { position: absolute; top: -5px; right: -4px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border: 2px solid white; border-radius: 999px; color: white; background: #e34d5d; font-size: 9px; }
.header-chat-button.active { color: white; border-color: #226de0; background: linear-gradient(145deg,#2777ed,#3f45c5); box-shadow: 0 9px 22px rgba(26,83,193,.24); }

.category-chips { position: relative; display: flex; gap: 10px; margin: 0 0 18px; padding: 3px 2px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #c7d4e7 transparent; }
.category-tab { min-width: 178px; min-height: 68px; flex: 0 0 auto; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 10px; align-items: center; padding: 11px 13px; border: 1px solid #dfe5ef; border-radius: 18px; color: #33425e; background: linear-gradient(145deg,#fff,#f6f8fc); box-shadow: 0 7px 18px rgba(29,49,83,.06); cursor: pointer; text-align: left; scroll-snap-align: start; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.category-tab:hover { transform: translateY(-2px); border-color: #b7ccef; box-shadow: 0 12px 25px rgba(22,63,125,.11); }
.category-tab-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #1a69d9; background: #eaf3ff; }
.category-tab-icon svg { width: 22px; height: 22px; pointer-events: none; }
.category-tab-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.category-tab-copy strong { overflow: hidden; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.category-tab-copy small { color: #7b8598; font-size: 7px; }
.category-tab.active { color: white; border-color: #1c63d4; background: radial-gradient(circle at 90% 0,rgba(105,175,255,.55),transparent 38%),linear-gradient(145deg,#0b5fcf,#3e3ab7); box-shadow: 0 14px 30px rgba(26,78,183,.24); }
.category-tab.active .category-tab-icon { color: white; background: rgba(255,255,255,.17); }
.category-tab.active .category-tab-copy small { color: rgba(255,255,255,.72); }

.provider-avatar-editor { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,420px); gap: 22px; align-items: center; }
.provider-avatar-editor > div { display: flex; align-items: center; gap: 16px; }
.provider-avatar-editor > div > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.provider-avatar-editor h2,.provider-avatar-editor p { margin: 0; }
.provider-avatar-editor h2 { font-size: 17px; }
.provider-avatar-editor p { color: var(--muted); font-size: 9px; line-height: 1.5; }
.provider-chat-avatar { width: 88px; height: 88px; flex: 0 0 88px; display: grid; place-items: center; border: 1px solid #dce4f0; border-radius: 25px; object-fit: cover; color: white; background: linear-gradient(145deg,#146ee8,#4739bb); box-shadow: 0 12px 28px rgba(25,72,158,.17); font-size: 24px; font-weight: 850; }
.provider-avatar-editor form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.provider-avatar-editor form > small { grid-column: 1 / -1; color: var(--muted); font-size: 7px; }
.provider-avatar-editor .avatar-file-label { min-width: 0; }

@media (max-width: 760px) {
  .provider-avatar-editor { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-icon-button { width: 42px; height: 42px; border-radius: 13px; }
  .header-actions { gap: 7px; }
  .category-chips { width: calc(100% + 12px); margin-right: -12px; padding-right: 14px; }
  .category-tab { min-width: 158px; min-height: 62px; grid-template-columns: 38px minmax(0,1fr); border-radius: 16px; }
  .category-tab-icon { width: 38px; height: 38px; border-radius: 12px; }
  .provider-avatar-editor > div { align-items: flex-start; }
  .provider-chat-avatar { width: 72px; height: 72px; flex-basis: 72px; border-radius: 21px; }
  .provider-avatar-editor form { grid-template-columns: 1fr; }
  .provider-avatar-editor form > small { grid-column: auto; }
}
.continuous-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feed-service-card { position: relative; }
.favorite-button { position: absolute; z-index: 5; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: #5b667c; background: rgba(255,255,255,.9); box-shadow: 0 5px 16px rgba(9,25,55,.17); cursor: pointer; font-size: 19px; }
.favorite-button.active { color: #d53d4d; }
.feed-load-more { width: 100%; min-height: 48px; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; color: var(--blue); background: #fff; cursor: pointer; font: inherit; font-weight: 800; }
.rating-line { display: flex; justify-content: space-between; margin: 8px 0; color: #a36b08; }
.rating-line small { color: var(--muted); }
.closed-bookings { margin-top: 16px; }
.closed-bookings summary { cursor: pointer; font-weight: 800; }
.closed-bookings .booking-card-list { margin-top: 12px; }

.promoter-level-badge { flex: 0 0 auto; width: 58px; height: 58px; position: relative; display: inline-grid; place-items: end; overflow: hidden; border: 2px solid #d4ad5b; border-radius: 16px; background: #fffaf0; box-shadow: 0 6px 18px rgba(104,70,21,.16); vertical-align: middle; }
.promoter-level-badge i { position: absolute; inset: 0; background-image: url('/static/vector/promoter-levels.jpeg'); background-repeat: no-repeat; background-size: 500% 400%; }
.promoter-level-badge b { position: relative; z-index: 1; min-width: 21px; margin: 3px; padding: 2px 5px; border-radius: 8px; color: #fff; background: #14233f; font-size: 9px; text-align: center; }
.promoter-level-badge.compact { width: 28px; height: 28px; border-radius: 8px; border-width: 1px; }
.promoter-level-badge.compact b { min-width: 14px; margin: 1px; padding: 1px 3px; font-size: 6px; }
.level-1 i,.level-6 i,.level-11 i,.level-16 i { background-position-x: 0%; }
.level-2 i,.level-7 i,.level-12 i,.level-17 i { background-position-x: 25%; }
.level-3 i,.level-8 i,.level-13 i,.level-18 i { background-position-x: 50%; }
.level-4 i,.level-9 i,.level-14 i,.level-19 i { background-position-x: 75%; }
.level-5 i,.level-10 i,.level-15 i,.level-20 i { background-position-x: 100%; }
.level-1 i,.level-2 i,.level-3 i,.level-4 i,.level-5 i { background-position-y: 0%; }
.level-6 i,.level-7 i,.level-8 i,.level-9 i,.level-10 i { background-position-y: 33.333%; }
.level-11 i,.level-12 i,.level-13 i,.level-14 i,.level-15 i { background-position-y: 66.667%; }
.level-16 i,.level-17 i,.level-18 i,.level-19 i,.level-20 i { background-position-y: 100%; }
.promoter-level-card { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; margin-bottom: 14px; padding: 15px; border: 1px solid #ead8ad; border-radius: 18px; background: linear-gradient(135deg,#fffdf6,#fff5d9); text-align: left; cursor: pointer; }
.promoter-level-card > span { display: flex; flex-direction: column; gap: 3px; }
.promoter-level-card small,.promoter-level-card p { margin: 0; color: var(--muted); font-size: 8px; }
.achievement-congratulation { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding: 18px; border-radius: 18px; color: #513407; background: linear-gradient(135deg,#fff0b7,#ffe090); }
.achievement-congratulation > span { font-size: 40px; }
.achievement-congratulation h2,.achievement-congratulation p { margin: 3px 0; }
.level-visibility label { display: flex; gap: 12px; align-items: center; }
.level-visibility label > span { display: flex; flex-direction: column; }
.level-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 14px 0; }
.level-catalog article { display: flex; gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 13px; }
.level-catalog article.current { border-color: #d3a340; background: #fff8df; }
.level-catalog article > span { display: flex; flex-direction: column; }
.achievement-progress-list,.customer-registry,.commission-admin-list { display: grid; gap: 8px; }
.achievement-progress-list article,.customer-registry article,.achievement-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 11px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 14px; }
.achievement-progress-list article > span,.customer-registry article > span,.achievement-row > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.customer-registry a { color: var(--blue); font-size: 8px; }
.commission-form { display: grid; grid-template-columns: minmax(0,1fr) 156px auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 13px; }
.commission-form > span { display: flex; flex-direction: column; }
.commission-stepper { display: grid; grid-template-columns: 36px minmax(70px,1fr) 36px; gap: 5px; align-items: center; }
.commission-stepper > button { width: 36px; height: 36px; border: 1px solid #cbd9ef; border-radius: 10px; color: var(--blue); background: #eef5ff; cursor: pointer; font-size: 18px; font-weight: 850; }
.commission-stepper label { display: flex; flex-direction: row; align-items: center; gap: 5px; min-width: 0; }
.commission-stepper input { width: 100%; min-width: 0; text-align: center; }
.commission-form > .step-up-fields { grid-column: 1 / -1; grid-row: 2; min-width: 0; width: 100%; margin: 0; box-sizing: border-box; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.commission-form > .step-up-fields label { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; margin: 0; }
.commission-form > .step-up-fields label span { font-size: 12px; line-height: 1.4; }
.commission-form > .step-up-fields input { min-width: 0; text-align: left; font-size: 16px; }
.commission-form > .step-up-fields legend { font-size: 13px; padding: 0 5px; }
.commission-form > .commission-save { grid-column: 3; grid-row: 1; }
.commission-save { min-width: 94px; }

.service-kind-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 15px; }
.service-kind-choice legend { padding: 0 7px; font-size: 9px; font-weight: 800; }
.service-kind-choice label { display: flex; gap: 9px; align-items: center; padding: 11px; border-radius: 12px; background: #f5f7fb; }
.service-kind-choice label span { display: flex; flex-direction: column; }
.service-fields { display: contents; }
.service-kind-choice:has(input[value="SERVICE"]:checked) ~ .booking-form-grid .service-fields[data-kind="RENTAL"],
.service-kind-choice:has(input[value="RENTAL"]:checked) ~ .booking-form-grid .service-fields[data-kind="SERVICE"] { display: none; }
.editable-image-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.editable-image-grid figure { margin: 0; }
.editable-image-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.editable-image-grid button { width: 100%; margin-top: 4px; padding: 5px; font-size: 7px; }
.rental-slot-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.rental-slot-options label { display: flex; gap: 7px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 11px; }
.rental-slot-options label span { display: flex; flex-direction: column; }
.customer-booker,.payment-warning { margin: 10px 0; padding: 12px; border-radius: 13px; }
.customer-booker { display: flex; flex-direction: column; background: #f2f6fc; }
.payment-warning { color: #704b0d; background: #fff4d9; border: 1px solid #f0d28c; }
.payment-warning p { font-size: 8px; line-height: 1.55; }
.payment-warning label { display: flex; gap: 8px; align-items: flex-start; }
.profile-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.profile-facts span { display: flex; flex-direction: column; padding: 10px; border-radius: 11px; background: #f6f8fb; }
.autopay-choice { display: flex !important; flex-direction: row !important; gap: 8px; align-items: flex-start; margin: 10px 0; }
.autopay-choice span { display: flex; flex-direction: column; }
.blocked-quantity { display: flex; flex-direction: column; gap: 3px; }
.blocked-quantity input { width: 90px; }
.slot-control-actions { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 700px) {
  .continuous-feed { grid-template-columns: 1fr; }
  .level-catalog { grid-template-columns: 1fr; }
  .editable-image-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .rental-slot-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .achievement-progress-list article,.customer-registry article,.achievement-row { grid-template-columns: auto minmax(0,1fr); }
  .commission-form { grid-template-columns: 1fr; }
  .commission-stepper { width: 100%; grid-template-columns: 42px minmax(0,1fr) 42px; }
  .commission-save { width: 100%; }
  .commission-form > .step-up-fields { grid-row: auto; grid-template-columns: minmax(0,1fr); }
  .commission-form > .commission-save { grid-column: 1; grid-row: auto; }
  .messenger-layout { min-height: 620px; grid-template-columns: 1fr; }
  .messenger-sidebar { border-right: 0; }
  .messenger-thread { display: none; }
  .messenger-layout.thread-open .messenger-sidebar { display: none; }
  .messenger-layout.thread-open .messenger-thread { display: grid; min-height: 620px; }
  .chat-back { display: inline-flex; }
  .messenger-thread .message-list { max-height: none; }
}

/* Vector 26.28.22: subscriptions, gallery and explicit service outcomes. */
.notification-button svg { width: 23px; height: 23px; fill: none; stroke: #17233c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.current-subscription { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.current-subscription > small { color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.feed-service-card.pro-service { border: 2px solid #d53d4d; box-shadow: 0 14px 36px rgba(197, 45, 63, .18), inset 0 0 0 2px rgba(255, 134, 145, .16); }
.status-pill.completed { color: var(--green); background: #e6f7f0; }
.status-pill.not_provided { color: #a42638; background: #ffe9ec; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin: 9px 0; }
.plan-price del { color: #98a0b1; font-size: 10px; }
.plan-price > strong { color: var(--ink); font-size: 22px; letter-spacing: -.025em; }
.plan-price > strong small { color: var(--muted); font-size: 9px; font-weight: 650; }
.plan-price em { flex-basis: 100%; color: var(--red); font-size: 8px; font-style: normal; font-weight: 750; }
.tariff-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tariff-admin-grid .form-card { max-width: none; }
.promotion-list { display: flex; flex-direction: column; }
.promotion-list article { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #eef1f5; }
.promotion-list article:first-child { border-top: 0; }
.promotion-list article > span:first-child { display: flex; flex-direction: column; }
.promotion-list strong { font-size: 10px; }
.promotion-list small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.logout-card { max-width: 720px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logout-card > span { display: flex; flex-direction: column; }
.logout-card small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.logout-card strong { margin-top: 4px; font-size: 14px; }
.logout-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.logout-card a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid #f2c8ce; border-radius: 11px; color: #b82e41; background: #fff2f4; font-size: 10px; font-weight: 780; text-decoration: none; }
.logout-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.logout-card .support-link { border-color: #a9cdf6; color: #1264e8; background: #edf6ff; }
.logout-card .archive-self { min-height: 42px; padding: 0 17px; border: 1px solid #f2c8ce; border-radius: 11px; color: #b82e41; background: #fff2f4; font-size: 10px; font-weight: 780; cursor: pointer; }
.modal-service-art { position: relative; width: 100%; border: 0; color: inherit; text-align: left; cursor: pointer; }
.modal-service-art:disabled { opacity: 1; cursor: default; }
.modal-service-art i { position: absolute; z-index: 2; right: 18px; top: 18px; padding: 7px 10px; border-radius: 999px; color: white; background: rgba(5, 20, 51, .74); font-size: 8px; font-style: normal; font-weight: 750; backdrop-filter: blur(6px); }
.service-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px 12px 0; background: white; }
.service-thumbnails button { height: 62px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #eef1f6; cursor: pointer; }
.service-thumbnails button:first-child { border-color: var(--blue); }
.service-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.gallery-backdrop { position: fixed; z-index: 140; inset: 0; color: white; background: #05070d; }
.service-gallery { position: relative; width: 100%; height: 100%; overflow: hidden; }
.gallery-back { position: fixed; z-index: 4; top: max(16px, env(safe-area-inset-top)); left: 16px; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: white; background: rgba(8,12,22,.72); backdrop-filter: blur(10px); cursor: pointer; font-size: 17px; }
.gallery-back span { font-size: 10px; font-weight: 750; }
.gallery-track { width: 100%; height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { position: relative; min-width: 100%; height: 100%; display: grid; place-items: center; margin: 0; padding: max(72px, env(safe-area-inset-top)) 12px max(54px, env(safe-area-inset-bottom)); scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-track img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gallery-track figcaption { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.5); font-size: 9px; }
.gallery-dots { position: fixed; z-index: 4; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; gap: 6px; }
.gallery-dots a { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.service-outcome-actions { flex-direction: row; }

@media (max-width: 900px) {
  .tariff-admin-grid { grid-template-columns: 1fr; }
  .current-subscription { display: flex; }
}

@media (max-width: 640px) {
  .service-outcome-actions { flex-direction: row; }
  .service-outcome-actions > * { width: auto; min-height: 48px; padding: 0 9px; font-size: 9px; }
  .logout-card { align-items: stretch; flex-direction: column; }
  .promotion-list article { grid-template-columns: 1fr auto; }
  .promotion-list article .danger-button { grid-column: 1 / -1; width: 100%; }
  .modal-service-art i { top: 56px; }
  .service-thumbnails button { height: 48px; }
  .current-subscription { align-items: flex-end; }
  .provider-table-row .compact-actions { grid-column: 2 / -1; flex-direction: row; justify-content: flex-end; }
}

/* Vector 26.28.23: subscription accounting for developer and moderators. */
.subscription-ledger-filters { padding-bottom: 18px; }
.ledger-filter-grid { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(130px, 1fr)); gap: 12px; }
.ledger-filter-grid label { display: flex; flex-direction: column; gap: 6px; }
.ledger-filter-grid input,
.ledger-filter-grid select { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; font: inherit; font-size: 10px; }
.subscription-moderator-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.subscription-moderator-summary article { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid #e5eaf3; border-radius: 14px; background: #f8faff; }
.subscription-moderator-summary article > span { display: flex; flex-direction: column; }
.subscription-moderator-summary strong { font-size: 10px; }
.subscription-moderator-summary small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.subscription-moderator-summary b { color: var(--blue); font-size: 13px; white-space: nowrap; }
.subscription-ledger-list { overflow-x: auto; }
.subscription-ledger-head,
.subscription-ledger-row { min-width: 930px; display: grid; grid-template-columns: 92px minmax(190px, 1.35fr) 100px minmax(145px, 1fr) minmax(145px, 1fr) 130px; gap: 12px; align-items: center; }
.subscription-ledger-head { padding: 0 10px 9px; color: var(--muted); font-size: 7px; font-weight: 780; text-transform: uppercase; letter-spacing: .055em; }
.subscription-ledger-row { padding: 13px 10px; border-top: 1px solid #edf0f5; }
.subscription-ledger-row > time,
.subscription-ledger-row > span { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.subscription-ledger-row strong { max-width: 100%; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.subscription-ledger-row small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.subscription-ledger-row em { margin-top: 3px; color: var(--blue); font-size: 7px; font-style: normal; }
.subscription-ledger-row .plan-badge { margin: 0; }
.subscription-ledger-row .ledger-amount { align-items: flex-end; text-align: right; }
.subscription-ledger-row .ledger-amount strong { color: var(--green); font-size: 12px; }

@media (max-width: 900px) {
  .ledger-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscription-moderator-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ledger-filter-grid { grid-template-columns: 1fr; }
  .subscription-moderator-summary { grid-template-columns: 1fr; }
  .subscription-ledger-head { display: none; }
  .subscription-ledger-list { overflow: visible; }
  .subscription-ledger-row { min-width: 0; grid-template-columns: 78px 1fr auto; gap: 9px; padding: 13px 0; }
  .subscription-ledger-row > span:nth-child(4),
  .subscription-ledger-row > span:nth-child(5) { grid-column: 2 / -1; }
  .subscription-ledger-row .ledger-amount { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
  .subscription-ledger-row > span:nth-child(3) { grid-column: 2; }
}

/* Vector 26.28.25: exact subscription policy and verified promoter discount. */
.scheduled-plan { max-width: 250px; color: var(--blue) !important; font-weight: 750; line-height: 1.35; }
.subscription-quote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 12px 0; padding: 11px; border: 1px solid #dfe6f1; border-radius: 13px; background: #f8faff; }
.subscription-quote > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.subscription-quote small { color: var(--muted); font-size: 7px; line-height: 1.35; }
.subscription-quote strong { overflow-wrap: anywhere; font-size: 10px; }
.subscription-quote .quote-total { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid #dfe6f1; }
.subscription-quote .quote-total strong { color: var(--green); font-size: 17px; }
.subscription-quote.compact { max-width: 520px; margin: 7px 0; padding: 8px; }
.subscription-quote.compact .quote-total strong { font-size: 12px; }
.subscription-state, .subscription-policy-note, .subscription-move-warning { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; padding: 13px 15px; border-radius: 13px; }
.subscription-state strong, .subscription-policy-note b, .subscription-move-warning b { font-size: 10px; }
.subscription-state span, .subscription-policy-note span, .subscription-move-warning span { font-size: 8px; line-height: 1.5; }
.subscription-state.scheduled { color: #12513e; background: #e9f8f2; }
.subscription-state.pending { color: #80500b; background: #fff5df; }
.subscription-policy-note { color: #30435e; background: #edf3fa; }
.subscription-move-warning { color: #8d2637; background: #fff0f2; border: 1px solid #f5c9d0; }
.blocked-reason { display: block; margin-top: 8px; color: var(--red); font-size: 8px; line-height: 1.4; }
.request-copy { min-width: 0; }
.request-actions { display: flex; gap: 7px; align-items: center; }
.promoter-discount-memo { margin-bottom: 15px; padding: 18px; border: 1px solid #cfe5dc; border-radius: 17px; color: #21463a; background: #eff9f5; }
.promoter-discount-memo h2 { margin: 0 0 7px; font-size: 16px; }
.promoter-discount-memo p, .promoter-discount-memo small { display: block; margin: 0; font-size: 9px; line-height: 1.6; }
.promoter-discount-memo > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.promoter-discount-memo > div span { padding: 10px; border-radius: 10px; background: white; font-size: 8px; line-height: 1.4; }
.promoter-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.promoter-create-grid .surface-card { margin-top: 0; }
.account-list b.eligible { color: var(--green); background: #e5f7ef; }
.verification-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #edf0f5; }
.verification-row:first-child { border-top: 0; }
.verification-row > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.verification-row strong { font-size: 10px; }
.verification-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.verification-row p { margin: 5px 0 0; color: #4d5870; font-size: 8px; }
.status-pill.pending { color: var(--orange); background: #fff0e4; }
.status-pill.approved { color: var(--green); background: #e6f7f0; }
.status-pill.declined { color: var(--red); background: #fff0f2; }
.ledger-amount strong { white-space: normal; text-align: right; }

@media (max-width: 900px) {
  .promoter-discount-memo > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promoter-create-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .subscription-quote { grid-template-columns: 1fr; }
  .subscription-quote .quote-total { grid-column: auto; }
  .promoter-discount-memo > div { grid-template-columns: 1fr; }
  .verification-row { grid-template-columns: 1fr; }
  .request-actions { width: 100%; grid-column: 1 / -1; }
  .request-actions > * { flex: 1; }
}


/* Vector 26.28.25: soft-deleted promoter accounts and developer registry. */
.account-registry { display: grid; gap: 8px; }
.account-registry-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid #e6ebf2; border-radius: 13px; background: #fff; }
.account-registry-row.is-deleted { border-color: #f1c9ce; background: #fff6f7; }
.account-registry-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.account-registry-copy strong { font-size: 10px; }
.account-registry-copy small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.account-registry-copy .account-deletion { color: #9d3040; }
.account-registry-copy .account-lock-reason { color: #8c6514; }
.account-status.deleted { color: var(--red); background: #ffe9ec; }
.account-list-actions article { grid-template-columns: 42px minmax(0, 1fr) auto; }
.archive-account-button { min-height: 32px; padding: 7px 10px; font-size: 8px; }

@media (max-width: 640px) {
  .account-registry-row { grid-template-columns: 38px minmax(0, 1fr); }
  .account-registry-row > .account-status { grid-column: 2; justify-self: start; }
  .account-list-actions article { grid-template-columns: 38px minmax(0, 1fr); }
  .account-list-actions .archive-account-button { grid-column: 1 / -1; width: 100%; }
}

/* Vector 26.28.36: feature switch, consultant requests, QR and daily promotions. */
.feature-flag-card,.consultant-banner { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.feature-flag-card.enabled { border-color: #9edbc4; background: #f0fbf7; }
.feature-flag-card.disabled { border-color: #efcad0; background: #fff6f7; }
.feature-flag-card h2,.feature-flag-card p { margin: 4px 0; }
.consultant-banner { border-color: #c8d9ef; background: linear-gradient(135deg,#f7faff,#edf5ff); }
.consultant-banner.linked { border-color: #a6dbc9; background: linear-gradient(135deg,#f3fcf8,#e8f8f1); }
.consultant-banner > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.consultant-banner > div small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.consultant-banner > div strong { font-size: 15px; }
.consultant-banner > div span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.consultant-banner form { display: flex; gap: 7px; flex: 0 1 330px; }
.consultant-banner input { width: 100%; min-width: 120px; }
.service-promotion { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 11px 0; padding: 10px; border-radius: 12px; }
.service-promotion.active { border: 1px solid #f3c573; color: #72490b; background: #fff5df; }
.service-promotion > span { display: flex; flex-direction: column; gap: 3px; }
.promotion-button { width: 100%; margin: 11px 0; padding: 10px; border: 1px solid #efbd55; border-radius: 12px; color: #6f4708; background: #fff6dc; cursor: pointer; font: inherit; font-size: 9px; font-weight: 850; }
.promotion-chip { display: inline-flex; margin: 4px 0; padding: 5px 8px; border-radius: 999px; color: #784c08; background: #fff0bd; font-size: 8px; font-weight: 800; }
.promotion-booking-note,.connect-consultant-panel { margin: 12px 0; padding: 13px; border-radius: 14px; }
.promotion-booking-note { display: flex; flex-direction: column; gap: 3px; color: #704608; background: #fff2ce; }
.connect-consultant-panel { border: 1px solid #c7d9f1; background: #f2f7fd; }
.connect-consultant-panel h3 { margin-top: 0; }
.booking-mode-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 15px; }
.booking-mode-choice legend { padding: 0 7px; font-size: 9px; font-weight: 800; }
.booking-mode-choice label { display: flex; gap: 8px; align-items: center; padding: 11px; border-radius: 12px; background: #f2f6fb; }
.booking-mode-choice label span { display: flex; flex-direction: column; gap: 2px; }
.service-price-options { flex-wrap: wrap; }
.service-price-options > span { min-width: 95px; }
.favorite-sort-item { position: relative; min-width: 0; }
.favorite-order-controls { position: absolute; z-index: 8; top: 10px; left: 10px; display: grid; grid-template-columns: 30px 26px 30px; align-items: center; border: 1px solid #d9e2ef; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.96); box-shadow: 0 5px 16px rgba(9,25,55,.16); }
.favorite-order-controls button { height: 30px; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-weight: 900; }
.favorite-order-controls button:disabled { color: #b8c0cd; cursor: default; }
.favorite-order-controls span { text-align: center; font-size: 8px; font-weight: 850; }
.consultant-request-list { display: grid; gap: 11px; }
.consultant-request-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.consultant-request-card > header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.consultant-request-card > header > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.request-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.request-details > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 9px; border-radius: 11px; background: #f5f7fb; }
.request-details small,.consultant-request-card > small { color: var(--muted); font-size: 8px; }
.consultant-request-card blockquote { margin: 10px 0; padding: 9px 12px; border-left: 3px solid #93b9e9; color: #46566f; background: #f7f9fc; font-size: 9px; }
.reassign-request-form { display: flex; gap: 7px; }
.reassign-request-form select { min-width: 170px; }
.status-pill.promoter_contacted,.status-pill.booking_in_progress { color: #0b5f9c; background: #e8f4ff; }
.status-pill.booked { color: var(--green); background: #e5f7ef; }
.status-pill.cancelled,.status-pill.expired { color: #626d7e; background: #eef1f5; }
.qr-card { display: grid; grid-template-columns: minmax(180px,260px) minmax(0,1fr); gap: 24px; align-items: center; }
.qr-card > img { width: 100%; aspect-ratio: 1; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.qr-card > div { display: flex; flex-direction: column; gap: 9px; }
.promo-code { color: var(--blue); font-size: clamp(26px,5vw,48px); letter-spacing: .08em; }
.qr-card label { display: flex; flex-direction: column; gap: 5px; }
.link-button { text-decoration: none; }

@media (max-width: 760px) {
  .feature-flag-card,.consultant-banner { align-items: stretch; flex-direction: column; }
  .consultant-banner form { flex-basis: auto; }
  .request-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qr-card { grid-template-columns: 1fr; }
  .qr-card > img { width: min(280px,100%); margin: 0 auto; }
}

@media (max-width: 520px) {
  .booking-mode-choice,.request-details { grid-template-columns: 1fr; }
  .consultant-banner form,.reassign-request-form { flex-direction: column; }
  .reassign-request-form select { min-width: 0; }
}

@media (max-width: 760px) {
  .manual-grant { grid-column: 1 / -1; }
  .manual-grant form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .logout-card { margin-bottom: 105px; }
  .logout-actions { width: 100%; }
  .logout-actions > * { flex: 1 1 135px; }
}

/* Vector 26.28.37: customer identity, presence and immutable promotion finance. */
.participant-avatar { position: relative; width: 42px; height: 42px; display: inline-grid; flex: 0 0 42px; place-items: center; overflow: visible; border-radius: 13px; color: white; background: linear-gradient(145deg,var(--blue),#463dc6); font-size: 10px; font-weight: 850; }
.participant-avatar > img,.participant-avatar > span { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: inherit; object-fit: cover; }
.online-dot { position: absolute; z-index: 3; right: -2px; bottom: -2px; width: 12px; height: 12px; border: 2px solid white; border-radius: 50%; background: #18ad6f; box-shadow: 0 2px 5px rgba(15,92,64,.28); }
.provider-online { display: inline-flex; align-items: center; gap: 4px; margin-left: 5px; color: #12805f; font-size: 7px; font-style: normal; font-weight: 800; white-space: nowrap; }
.provider-online b { width: 7px; height: 7px; border-radius: 50%; background: #18ad6f; }
.service-provider-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }

.booking-provider-name { margin-bottom: 10px !important; }
.booking-schedule-highlight { display: flex; flex-direction: column; gap: 4px; margin: 0 0 13px; padding: 13px 15px; border: 1px solid #bcd5f6; border-radius: 14px; color: #0c448f; background: linear-gradient(135deg,#eef6ff,#f7fbff); }
.booking-schedule-highlight small { color: #537299; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.booking-schedule-highlight strong { font-size: clamp(16px,2.4vw,22px); letter-spacing: -.02em; }
.booking-facts { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); }
.booking-client-fact > strong { display: flex; align-items: center; gap: 8px; }
.booking-client-avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.booking-money { grid-template-columns: repeat(auto-fit,minmax(128px,1fr)); align-items: stretch; }
.booking-money > span { min-width: 0; padding: 4px 6px; }
.booking-money strong { overflow-wrap: anywhere; }
.prepayment-sum { border-radius: 9px; color: #0a6f52; background: #e8f8f1; }
.consultant-prepayment-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 13px 0; padding: 14px 15px; border: 1px solid #9edbc4; border-radius: 14px; color: #115d48; background: #edfaf5; }
.consultant-prepayment-alert b { font-size: 9px; }
.consultant-prepayment-alert strong { font-size: 15px; white-space: nowrap; }

.conversation-avatar { width: 42px; height: 42px; border-radius: 13px; }
.conversation-copy em { overflow: hidden; color: #8b94a6; font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.thread-avatar { width: 44px; height: 44px; flex-basis: 44px; }
.message-entry { width: min(82%,620px); max-width: none !important; display: flex; align-items: flex-end; gap: 7px; padding: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.message-entry > div { min-width: 0; padding: 9px 11px; border-radius: 4px 13px 13px 13px; color: var(--ink); background: white; box-shadow: 0 5px 15px rgba(27,42,75,.06); }
.message-entry.own { flex-direction: row-reverse; }
.message-entry.own > div { color: white; border-radius: 13px 4px 13px 13px; background: var(--blue); }
.message-entry.own > div small,.message-entry.own > div time { color: rgba(255,255,255,.7); }
.message-avatar { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px; font-size: 7px; }
.message-avatar .online-dot { width: 9px; height: 9px; border-width: 1px; }
.chat-contact { grid-template-columns: 36px minmax(0,1fr); gap: 8px; }
.chat-contact > .participant-avatar { grid-row: auto; width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; color: white; background: linear-gradient(145deg,var(--blue),#463dc6); }
.chat-contact-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-contact > .chat-contact-copy { grid-row: auto; width: auto; height: auto; display: flex; place-items: initial; border-radius: 0; color: inherit; background: transparent; font-size: inherit; font-weight: inherit; }

.customer-profile-editor { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px; align-items: start; }
.profile-avatar-column { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.profile-avatar-column .customer-profile-avatar { width: 132px; height: 132px; border-radius: 30px; }
.profile-avatar-column form { width: 100%; display: grid; gap: 8px; }
.profile-avatar-column form > small { color: var(--muted); font-size: 7px; text-align: center; }
.avatar-file-label { position: relative; min-height: 42px; display: grid; place-items: center; overflow: hidden; padding: 8px; border: 1px dashed #a9bfdc; border-radius: 11px; color: var(--blue); background: #f3f8ff; cursor: pointer; text-align: center; }
.avatar-file-label > span { color: inherit; }
.avatar-file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.customer-personal-form { display: grid; gap: 14px; }
.customer-phone-card,.phone-verification-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,380px); gap: 20px; align-items: end; }
.customer-phone-card h2,.phone-verification-card h2 { margin: 6px 0; font-size: 22px; }
.customer-phone-card p,.phone-verification-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.customer-phone-card form,.phone-verification-card form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }

.accounting-booking-row { display: grid; gap: 9px; padding: 14px 0; border-top: 1px solid #edf0f5; }
.accounting-booking-row:first-child { border-top: 0; }
.accounting-booking-row > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.accounting-booking-row > header time,.accounting-booking-row > small { color: var(--muted); font-size: 8px; }
.accounting-booking-row > strong { font-size: 12px; }
.accounting-booking-row > div { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.accounting-booking-row > div > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 9px; border-radius: 10px; background: #f5f8fc; }
.accounting-booking-row > div small { color: var(--muted); font-size: 7px; }
.accounting-booking-row > div b { overflow-wrap: anywhere; font-size: 10px; }

@media (max-width: 760px) {
  .customer-profile-editor { grid-template-columns: 1fr; }
  .profile-avatar-column { width: min(300px,100%); margin: 0 auto; }
  .customer-phone-card,.phone-verification-card { grid-template-columns: 1fr; align-items: stretch; }
  .accounting-booking-row > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 520px) {
  .booking-detail-card { padding: 15px; }
  .booking-schedule-highlight strong { font-size: 17px; }
  .booking-facts,.booking-money { grid-template-columns: 1fr; }
  .consultant-prepayment-alert { align-items: flex-start; flex-direction: column; }
  .consultant-prepayment-alert strong { max-width: 100%; font-size: 13px; white-space: normal; }
  .customer-phone-card form,.phone-verification-card form { grid-template-columns: 1fr; }
  .accounting-booking-row > div { grid-template-columns: 1fr; }
  .message-entry { width: 95%; }
  .messenger-thread { padding: 10px; }
  .messenger-thread > header { gap: 7px; }
  .chat-delete { max-width: 64px; }
}

/* CR9 r2: an anchored conversation with its own scrolling message area. */
body.chat-screen { position: fixed; inset: 0; width: 100%; overscroll-behavior: none; }
.chat-screen .role-ribbon { display: none; }
.chat-screen .chat-contacts { margin: 0 0 18px; padding: 0 0 14px; border-top: 0; border-bottom: 1px solid var(--line); }
.chat-screen .chat-contacts h3 { margin: 5px 0 10px; font-size: 14px; }
.chat-screen .chat-contact { width: 100%; padding: 10px 7px; }
.chat-screen .chat-contact strong { font-size: 14px; }
.chat-screen .chat-contact small { font-size: 12px; }
.chat-screen .chat-contact-copy { align-items: stretch; }
.chat-screen .messenger-thread {
  padding: 0; color: #28213a; background: #f7f5fc url('/static/vector/chat-pattern.svg') repeat;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.chat-screen .messenger-thread > header {
  gap: 10px; padding: 12px; border-bottom: 1px solid #e5dff0;
  background: #ffffffee; backdrop-filter: blur(16px);
}
.chat-screen .messenger-thread > header strong { font-size: 17px; color: #28213a; }
.chat-screen .messenger-thread > header small { font-size: 12px; color: #7f748f; }
.chat-screen .messenger-thread > header > .participant-avatar { border-radius: 50%; }
.chat-screen .chat-back { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; min-height: 40px; padding: 0; color: #7954b6; font-size: 25px; }
.chat-screen .chat-delete { min-height: 40px; padding: 4px; font-size: 12px; color: #8868aa; }
.chat-screen .messenger-thread .message-list {
  padding: 14px 12px; margin: 0; gap: 8px; border-radius: 0; background: transparent;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overflow-anchor: auto;
}
.chat-screen .message-entry { flex-shrink: 0; width: fit-content; max-width: min(85%, 620px) !important; }
.chat-screen .message-entry > div { padding: 9px 13px 7px; border-radius: 18px 18px 18px 5px; color: #28213a; background: #ffffff; box-shadow: 0 2px 8px #63537b0a; }
.chat-screen .message-entry.own > div { color: white; border-radius: 18px 18px 5px 18px; background: linear-gradient(135deg, #a44bdd, #8146ef); }
.chat-screen .message-entry p { margin: 0 0 4px; color: inherit; font-size: 16px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-screen .message-entry small { color: #8b759c; font-size: 12px; }
.chat-screen .message-entry time { display: block; color: #958a9e; text-align: right; font-size: 11px; }
.chat-screen .message-entry.own time { color: #e2c3fb; }
.chat-screen .message-day { display: flex; justify-content: center; flex-shrink: 0; padding: 8px 0; }
.chat-screen .message-day span { padding: 5px 12px; border-radius: 99px; background: #e9e1f1e8; color: #786387; font-size: 13px; }
.chat-screen .message-compose { padding: 9px 10px max(9px, env(safe-area-inset-bottom)); gap: 8px; background: #ffffffee; align-items: center; }
.chat-screen .message-compose input { min-width: 0; width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid #e2daed; border-radius: 25px; color: #28213a; background: #f6f3fa; font-size: 16px; }
.chat-screen .message-compose input::placeholder { color: #9b8fa8; }
.chat-screen .message-compose input:focus { border-color: #a56bea; outline: none; box-shadow: 0 0 0 2px #9d61d722; }
.chat-screen .message-compose button { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 50%; color: white; background: #9250e8; font-size: 27px; }
.chat-screen .chat-readonly { margin: 0; padding: 12px; color: #786387; background: #eee7f5; font-size: 13px; }
.chat-screen .messenger-thread .empty-state { min-height: 0; color: #9b8baa; }
.chat-screen .messenger-thread .empty-state strong { color: #746387; }
.chat-screen .app-alert { z-index: 60; }
.assignment-person { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.assignment-person > span:first-child { display: grid; gap: 4px; }
.assignment-person small, .assignment-state { color: var(--muted); font-size: 12px; }
.assignment-card p, .consultant-details p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.assignment-card h2, .consultant-details h2 { font-size: 19px; }
.consultant-details form { display: grid; gap: 12px; }
.audit-list article { grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) auto; }
.audit-list p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; font-size: 12px; }

@media (max-width: 760px) {
  .chat-thread-screen .vector-header, .chat-thread-screen .chat-page-heading, .chat-thread-screen .bottom-nav { display: none; }
  .chat-thread-screen .vector-main {
    inset: var(--chat-viewport-top, 0px) 0 auto; width: 100%; max-width: none;
    height: var(--chat-viewport-height, 100dvh); padding: 0; transform: none; display: block;
  }
  .chat-thread-screen .messenger-layout { border: 0; border-radius: 0; }
  .chat-thread-screen .messenger-thread > header { padding-top: max(10px, env(safe-area-inset-top)); }
  .chat-screen .chat-page-heading .page-title > p, .chat-screen .chat-page-heading .eyebrow { display: none; }
  .chat-screen .chat-page-heading .page-title h1 { font-size: 20px; }
  .chat-screen .chat-page-heading > button { padding: 10px; font-size: 12px; }
  .audit-list article { grid-template-columns: 1fr; gap: 6px; }
  .audit-list strong, .audit-list span, .audit-list small { font-size: 13px; }
}
.audit-list article.audit-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.audit-row > div { display: grid; gap: 6px; min-width: 0; }
.audit-row strong { font-size: 14px; line-height: 1.4; }
.audit-row span { font-size: 12px; }
.audit-row > small { font-size: 12px; white-space: nowrap; }
@media (max-width: 760px) { .audit-list article.audit-row { grid-template-columns: 1fr; } }

/* R3: enterprise attribution and field explanations preserve the live form. */
.enterprise-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 8px; margin: 4px 0; border: 1px solid #d8e4f2; border-radius: 9px; color: #50749b; background: #f4f8fd; font-size: 11px; line-height: 1.35; vertical-align: middle; overflow-wrap: anywhere; }
.enterprise-badge svg { flex: 0 0 13px; width: 13px; height: 13px; }
.field-help-button { display: inline-flex !important; flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; align-items: center; justify-content: center; justify-self: start; align-self: start; margin-top: 5px; padding: 0 !important; border: 1px solid #8194ae; border-radius: 50%; color: #637d9c; background: white; font-size: 14px; font-weight: 750; cursor: pointer; }
.autopay-choice .field-help-button { grid-column: 2; }
.field-help-backdrop { position: fixed; z-index: 240; inset: 0; display: grid; place-items: center; padding: 16px; }
.field-help-shade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #12254170; backdrop-filter: blur(3px); }
.field-help-dialog { position: relative; width: min(430px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid #d8e4f2; border-radius: 21px; background: #fff; box-shadow: 0 20px 80px #14294c40; }
.field-help-dialog h2 { margin: 0 25px 12px 0; font-size: 20px; color: #26384f; }
.field-help-dialog p { margin: 0 0 18px; color: #61728a; font-size: 15px; line-height: 1.55; }
.field-help-close { position: absolute; top: 9px; right: 10px; width: 34px; height: 34px; min-height: 34px; border: 0; background: transparent; font-size: 28px; color: #65758c; cursor: pointer; }
.status-pill.expired { color: #7a647f; background: #f0eaf3; }
.chat-screen .messenger-thread > header small { white-space: normal; overflow-wrap: anywhere; }
.service-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; min-width: 0; }
.service-title-line h2, .service-title-line h3 { margin: 0; }
.service-kind-choice .field-help-button { grid-column: 2; }
.field-help-button { position: relative; flex-basis: 16px; width: 16px; height: 16px; min-height: 16px; margin-top: 4px; font-size: 11px; line-height: 1; }
.field-help-button::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
.provider-booking-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .provider-booking-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chat-screen .message-compose { grid-template-columns: minmax(0,1fr) 40px 46px; }
.chat-screen .message-compose .voice-mic-button { display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; border: 1px solid #ded5e9; color: #8561b7; background: #f4eff9; font-size: 20px; }
.voice-panel { grid-column: 1 / -1; min-width: 0; display: grid; gap: 8px; }
.voice-panel[hidden] { display: none; }
.voice-mic-button { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.chat-screen .message-compose .voice-mic-button.is-recording { color: #fff; background: #bd395e; border-color: #bd395e; }
.voice-preview, .voice-message-player { max-width: 100%; width: min(260px,65vw); height: 46px; }
.voice-recording-status { display: inline-flex; align-items: center; gap: 7px; color: #7c4f9e; font-size: 14px; }
.voice-recording-status i { width: 8px; height: 8px; border-radius: 50%; background: #d74665; }
.voice-retention, .voice-send-status, .voice-message-expiry { font-size: 11px; color: #9c87ad; line-height: 1.4; }
.voice-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-screen .voice-panel button { width: auto; height: auto; min-height: 34px; padding: 7px 12px; border-radius: 13px; font-size: 12px; }
.chat-screen .voice-expired { font-size: 13px; font-style: italic; opacity: .8; }
.message-list .voice-message-expiry { display: block; padding: 4px 0; }
/* Capture the complete hold gesture, including a finger moving over text. */
html.voice-gesture-active, html.voice-gesture-active body, html.voice-gesture-active body * { user-select: none !important; -webkit-user-select: none !important; -webkit-touch-callout: none !important; touch-action: none !important; }
.voice-mic-button, .voice-mic-button * { touch-action: none !important; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
html.voice-gesture-active .message-list { overflow: hidden; }
.chat-inspection-notice { padding: 10px 16px; color: #68527a; background: #f4eff9; font-size: 13px; }
.voice-upload progress { display: block; width: 100%; height: 6px; margin: 12px 0 8px; accent-color: white; }
.voice-upload-heading { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.voice-upload-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #ffffff80; border-radius: 50%; }
.voice-upload-status { display: block; font-size: 12px; line-height: 1.4; }
.voice-upload button { margin-top: 9px; padding: 7px 13px; border: 1px solid #ffffff80; border-radius: 20px; color: inherit; background: transparent; }
.voice-player { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; width: min(260px,62vw); }
.voice-player .voice-play { width: 38px; height: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 50%; background: #ffffffdd; color: #8251bd; font-size: 16px; cursor: pointer; }
.voice-player-track { min-width: 0; display: grid; gap: 5px; }
.voice-player .voice-seek { width: 100%; min-height: 20px; height: 20px; padding: 0; margin: 0; accent-color: #bb98f6; cursor: pointer; }
.message-entry.own .voice-seek { accent-color: white; }
.voice-player .voice-duration { color: inherit; opacity: .8; font-size: 11px; }
.voice-player .voice-message-player { display: none; }
.voice-play-error { grid-column: 1 / -1; font-size: 11px; }
.voice-play-error:empty { display: none; }
.voice-player .voice-seek { appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-radius: 0; }
.voice-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 8px; background: #cbb5e5; }
.voice-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; margin-top: -3.5px; border: 0; border-radius: 50%; background: #8352bd; }
.message-entry.own .voice-seek::-webkit-slider-runnable-track { background: #ffffff70; }
.message-entry.own .voice-seek::-webkit-slider-thumb { background: white; }
.voice-seek::-moz-range-track { height: 4px; border-radius: 8px; background: #cbb5e5; }
.voice-seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #8352bd; }
.message-entry.own .voice-seek::-moz-range-track { background: #ffffff70; }
.message-entry.own .voice-seek::-moz-range-thumb { background: white; }

.booking-start-date { display:flex; flex-direction:column; gap:3px; }
.booking-start-date small { color:var(--muted); font-size:8px; }
.booking-start-date strong { color:#1b3158; font-size:10px; }
.worker-ack { display:block; font-size:13px; line-height:1.5; }
.worker-ack.accepted { color:#087957; }
.worker-ack.pending { color:#8a620e; }
.allocation-summary-workers .worker-ack { grid-column:1 / -1; }

.notification-push-settings .push-enable{min-height:44px;padding:12px 16px;font-size:14px;line-height:1.4}.notification-push-settings .push-controls{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.notification-push-settings .push-help{margin:0;line-height:1.6}

.android-download-card{margin:12px 18px;padding:16px;border:1px solid #d9e4f5;border-radius:18px;background:#f3f7ff}.android-download-card p{font-size:13px;line-height:1.45;color:#65738b}.android-download-card a{display:block;padding:12px 8px;border-radius:12px;background:#1264e8;color:#fff;text-align:center;font-size:14px;font-weight:700}

/* Read long descriptions separately from the compact catalogue cards. */
.service-description-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;min-height:36px;margin:9px 0 0;padding:7px 11px;border:1px solid #dce6f5;border-radius:11px;background:#f6f9ff;color:#41618b;font-family:inherit;font-size:11px;font-weight:650;cursor:pointer}
.service-description-button svg{width:15px;height:15px}.service-description-button>span:last-child{margin-left:8px;color:#7d96b6}
.service-description-button:focus-visible,.description-back:focus-visible{outline:3px solid #86b7ff;outline-offset:3px}
.service-description-page{max-width:780px;margin:0 auto;padding-bottom:18px;min-width:0}
.description-back{display:inline-flex;align-items:center;gap:8px;width:auto;margin:0 0 16px;font-size:12px;padding:10px 14px}
.service-description-page>.description-back:last-child{margin-top:16px}
.service-description-reader{padding:26px;min-width:0}
.service-description-reader>header{border-bottom:1px solid #e3eaf5;padding-bottom:18px;margin-bottom:20px;min-width:0}
.service-description-reader h1{margin:8px 0 10px;font-size:26px;line-height:1.25;letter-spacing:-.025em;color:#172640;overflow-wrap:anywhere}
.service-description-reader h1:focus{outline:none}
.service-description-reader header p{font-size:12px;line-height:1.6;color:#7a8ba4;margin:0;overflow-wrap:anywhere}
.service-description-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75;color:#324762;min-width:0}
@media(max-width:600px){.service-description-reader{padding:20px 16px}.service-description-reader h1{font-size:23px}.service-description-text{font-size:14px;line-height:1.7}.service-description-button{min-height:38px}}
#feed-sentinel{height:1px;width:100%;pointer-events:none}


/* New bonus controls inherit the existing booking panel/button shapes. */
#booking-form .loyalty-booking-controls{min-width:0;margin:16px 0;padding:14px;border:1px solid #d5e0ef;border-radius:18px;background:rgba(248,251,255,.96);display:grid;gap:10px;color:#192d49}
#booking-form .loyalty-booking-controls legend{padding:0 6px;font-size:14px;font-weight:700;color:#192d49}
#booking-form .loyalty-booking-controls label{margin:0;font-size:13px;line-height:1.5}
#booking-form .loyalty-booking-controls .loyalty-booking-toggle{display:flex;flex-direction:row;align-items:center;gap:10px}
#booking-form .loyalty-booking-toggle input{width:20px;min-width:20px;height:20px;min-height:20px;margin:0;accent-color:#1368e8}
#booking-form .loyalty-quote-note{margin:0;font-size:13px;line-height:1.5;color:#334d70;overflow-wrap:anywhere}
#booking-form .loyalty-booking-controls a{font-size:13px;line-height:1.5;color:#1856a4}
