/* Workly design system. Two clay illustrations; user content stays photographic. */
:root { --blue:#0866ff; --blue-dark:#1956cc; --blue-soft:#edf3ff; --coral:#e66d56; --coral-soft:#fff1e9; --text:#081b40; --muted:#667b9e; --light:#98a3b5; --bg:#fff; --card:#fff; --border:#e9edf3; --nav-height:76px; }
html,body { background:#edf0f5; touch-action:pan-x pan-y; }
body { font-feature-settings:'cv11','ss01'; }
[hidden] { display:none !important; }
button,a,input,select,textarea,summary { touch-action:manipulation; }
button { cursor:pointer; }
button:focus-visible,a:focus-visible,summary:focus-visible,article[role=button]:focus-visible { outline:3px solid #8db2ff; outline-offset:3px; }
.app-shell { width:100%; max-width:480px; background:var(--bg); box-shadow:0 16px 70px #293e6510; overflow-x:clip; }
.app-header { position:relative; padding:calc(22px + var(--safe-top)) 24px 6px; color:var(--text); background:var(--bg); border-radius:0; box-shadow:none; }
.header-top { gap:16px; }
.header-publish { margin-left:auto; flex-shrink:0; min-height:44px; }
.app-header[data-screen=start] .header-top { gap:12px; }
.header-avatar { flex-shrink:0; }
.brand { font-family:inherit; font-size:30px; line-height:1; font-weight:800; letter-spacing:-1.5px; border:0; background:none; color:var(--text); padding:0; }
.brand-logo { display:block; width:170px; max-width:100%; height:auto; }
.header-brand { min-width:0; flex-shrink:1; }
.brand { display:block; max-width:100%; }
.boot-logo { width:240px; max-width:80vw; height:auto; }
.app-header:not([data-screen=start]) .brand-logo { width:140px; }
@media(max-width:380px) { .app-header[data-screen=start] .header-top { gap:8px; } .header-publish.btn { padding-inline:10px; } }
.brand-dot { color:var(--coral); font-size:32px; line-height:0; margin-left:3px; vertical-align:top; }
.header-sub { opacity:1; color:var(--muted); font-size:12px; margin-top:8px; }
.app-header:not([data-screen=start]) .brand { font-size:22px; letter-spacing:-1px; }
.app-header:not([data-screen=start]) .brand-dot { font-size:24px; }
.app-header:not([data-screen=start]) .header-sub,.app-header .service-tabs { display:none; }
.icon-btn { background:#fff; border:1px solid var(--border); color:var(--muted); width:36px; height:36px; }
.icon-btn svg { width:17px; height:17px; }
.page { padding:24px 20px; min-width:0; animation:none; }
.main { min-width:0; }
.main > *, .stack > *, .card-top > *, .form-grid > * { min-width:0; }
.stack { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
.section-head { margin:2px 0 24px; align-items:center; gap:14px; }
.section-head > div { min-width:0; }
.section-head h1 { font-size:29px; font-weight:750; line-height:1.14; letter-spacing:-1.1px; }
.section-head h2 { font-size:21px; font-weight:700; letter-spacing:-.65px; }
.section-head p { font-size:13px; line-height:1.55; margin-top:9px; color:var(--muted); }
.link-btn { font-size:12px; font-weight:600; }
.btn { min-height:48px; padding:12px 18px; border-radius:13px; box-shadow:none; font-size:14px; font-weight:650; line-height:1.35; }
.btn.small { min-height:40px; border-radius:12px; font-size:12px; padding:8px 14px; }
.btn.secondary { background:#f0f3f8; border:0; color:#4b5e7c; }
.btn.secondary:hover { background:#e9edf5; }
.card { border:0; border-radius:18px; padding:18px; box-shadow:0 2px 4px #14284b03; max-width:100%; }
.card h3,.card-main h3 { font-size:16px; line-height:1.35; font-weight:650; letter-spacing:-.3px; }
.meta { font-size:12px; line-height:1.55; }
.price { font-size:22px; color:var(--text); margin-top:16px; letter-spacing:-.6px; }
.thumb { width:80px; height:88px; flex-basis:80px; border:0; border-radius:13px; background-color:#edf1f7; }
.card-foot { border-color:#f1f3f7; }
.job-card .card-foot .btn { background:var(--blue-soft); color:var(--blue-dark); }
.tag { border:0; background:#f2f5f9; color:#657188; font-weight:500; }
.badge { font-weight:550; }
.role-toggle { background:#edf0f5; border-radius:12px; padding:3px; margin-top:20px; }
.role-toggle button { color:var(--muted); border-radius:9px; font-size:12px; min-height:36px; }
.role-toggle button.active { background:#fff; color:var(--text); box-shadow:0 2px 3px #27364d05; }
.search-box { border:1px solid var(--border); background:#fff; box-shadow:none; height:48px; border-radius:13px; margin-top:12px; }
.filter-panel { background:#fff; border:0; border-radius:13px; }
.welcome-line { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:12px; line-height:1.5; margin:0 0 20px; }
.welcome-line span:first-child { color:#52617a; }
.welcome-line span:last-child { text-align:right; }
.home-portals { display:grid; gap:12px; }
.portal { position:relative; isolation:isolate; width:100%; border:0; border-radius:22px; text-align:left; padding:23px; overflow:hidden; color:var(--text); min-height:225px; }
.portal-work { background:#e7efff; }
.portal-services { background:#fceee6; min-height:202px; }
.eyebrow { display:block; color:#6c7c96; font-size:9px; letter-spacing:1.35px; font-weight:650; line-height:1.5; }
.portal strong { display:block; font-size:32px; line-height:1.09; letter-spacing:-1.25px; font-weight:750; margin:14px 0 11px; position:relative; z-index:2; }
.portal-services strong { font-size:27px; max-width:80%; letter-spacing:-1px; }
.portal-description { display:block; color:#728199; font-size:12px; line-height:1.6; position:relative; z-index:2; max-width:72%; }
.portal-link { display:inline-flex; margin-top:20px; color:var(--blue-dark); font-size:12px; font-weight:650; position:relative; z-index:2; }
.portal-services .portal-link { color:#bb5b44; }
.portal img { position:absolute; right:0; bottom:31px; width:42%; height:166px; object-fit:contain; z-index:1; pointer-events:none; }
.portal-services img { right:7px; bottom:15px; width:31%; height:110px; }
.portal:active { transform:scale(.995); }
.affairs-head { margin:26px 0 14px; }
.quick-links { border:0; border-radius:18px; overflow:hidden; background:#fff; padding:0 16px; }
.quick-links button { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; background:transparent; border:0; border-bottom:1px solid #f0f2f6; padding:17px 0; text-align:left; color:var(--text); }
.quick-links button:last-child { border-bottom:0; }
.quick-links button > span:first-child { min-width:0; }
.quick-links strong { font-size:14px; font-weight:600; display:block; }
.quick-links small { display:block; font-size:11px; color:var(--muted); margin-top:5px; line-height:1.5; }
.quick-value { color:#8b97ac; font-size:11px; font-weight:500; flex-shrink:0; }
.has-unread { background:var(--blue); color:#fff; padding:4px 7px; border-radius:9px; }
.upcoming-card { display:grid; gap:8px; background:#fff; width:100%; border:0; border-left:3px solid #8eaff5; border-radius:14px; text-align:left; padding:16px; margin:0 0 12px; color:var(--text); }
.upcoming-card strong { font-size:14px; font-weight:600; }
.upcoming-card .badge { justify-self:start; }
.bottom-nav { width:min(100%,480px); bottom:0; height:calc(72px + var(--safe-bottom)); padding:9px 16px calc(9px + var(--safe-bottom)); grid-template-columns:repeat(4,minmax(0,1fr)); border:0; border-top:1px solid #eef0f5; border-radius:0; box-shadow:none; background:#fffffff7; }
.bottom-nav button { gap:6px; color:#96a1b3; }
.bottom-nav button span { font-size:11px; font-weight:500; }
.bottom-nav button svg { width:21px; height:21px; stroke-width:1.75; }
.bottom-nav button.active { background:transparent; border-radius:0; color:var(--blue); }
.nav-unread { right:26%; top:0; background:var(--coral); }
/* Inbox: a bounded text column, independent metadata column, never a min-content grid. */
.inbox-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; padding:4px; background:#eceff5; border-radius:12px; margin-bottom:22px; }
.inbox-tabs button { border:0; padding:11px 8px; border-radius:9px; color:var(--muted); font-size:12px; font-weight:600; background:transparent; }
.inbox-tabs .active { background:#fff; color:var(--text); box-shadow:0 1px 4px #19284606; }
.conversation-list { display:grid; grid-template-columns:minmax(0,1fr); background:#fff; border-radius:18px; overflow:hidden; }
.conversation { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:12px; padding:19px 16px; cursor:pointer; min-width:0; border-bottom:1px solid #f0f2f6; }
.conversation:last-child { border-bottom:0; }
.conversation:active,.settings-row:active { background:#f5f7fc; }
.conversation .chat-avatar { width:44px; height:44px; font-size:14px; background-color:#edf2fa; border-radius:15px; color:#5475a9; }
.conversation-copy { min-width:0; }
.conversation-copy h3 { font-size:14px; line-height:1.35; font-weight:650; margin:0 0 5px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.conversation-context { font-size:10px; color:#8792a5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conversation-copy p { font-size:12px; color:#66758e; margin:7px 0 0; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.conversation-aside { display:flex; flex-direction:column; align-items:flex-end; gap:12px; min-width:0; }
.conversation-aside time { font-size:9px; color:#9aa4b6; max-width:53px; line-height:1.4; text-align:right; }
.conversation .chat-unread { position:static; min-width:18px; width:auto; height:18px; font-size:10px; background:var(--blue); border-radius:6px; padding:2px 5px; }
.chat-card,.chat-card .card-top { min-width:0; max-width:100%; }
.chat-preview { max-width:100%; }
.chat-compose { width:min(calc(100% - 24px),456px); box-shadow:0 3px 20px #1b315510; }
/* Profile: identity, flat metrics, grouped settings. */
.identity { display:flex; align-items:center; gap:17px; margin:0 0 26px; }
.identity .avatar { margin:0; width:66px; height:66px; flex:0 0 66px; border:0; border-radius:22px; color:#4770ad; background-color:#e7eefb; font-size:21px; }
.identity > div:last-child { min-width:0; }
.identity-label { color:#77849a; font-size:10px; }
.identity h2 { font-size:21px; font-weight:650; line-height:1.25; letter-spacing:-.5px; margin:6px 0; overflow-wrap:anywhere; }
.identity p { margin:0; color:var(--muted); font-size:12px; }
.stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border:0; border-radius:0; background:transparent; overflow:visible; }
.stat { min-width:0; background:transparent; border:0; border-right:1px solid #e5e9f1; border-radius:0; padding:3px 8px; }
.stat:last-child { border-right:0; }
.stat strong { color:var(--text); font-size:24px; font-weight:650; letter-spacing:-.7px; }
.stat strong small { font-size:15px; }
.stat span { font-size:10px; color:#77849a; margin-top:6px; }
.profile-stats { margin:0 0 30px; padding:20px 4px; background:#fff; border-radius:17px; }
.group-label { font-size:12px; font-weight:550; color:#738199; margin:23px 0 10px 4px; letter-spacing:0; }
.settings-group { background:#fff; border-radius:18px; padding:0 17px; }
.settings-row { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 0; border:0; border-bottom:1px solid #f0f2f6; background:none; color:var(--text); text-align:left; }
.settings-row:last-child { border-bottom:0; }
.setting-copy { min-width:0; }
.setting-copy strong { display:block; font-size:14px; font-weight:600; }
.setting-copy small { display:block; color:#738199; font-size:11px; line-height:1.5; margin-top:6px; overflow-wrap:anywhere; }
.setting-action { flex-shrink:0; color:#8a98b1; font-size:10px; font-weight:500; }
.setting-action.verified { color:#559480; }
.profile-explainer { margin:22px 5px; color:#97a1b3; font-size:11px; line-height:1.65; }
.profile-explainer summary { cursor:pointer; }
.profile-section-head { flex-wrap:wrap; }
.profile-section-head > div { min-width:0; }
.profile-section p { overflow-wrap:anywhere; }
.notice { background:#edf3fc; color:#6681a7; border-radius:13px; padding:14px; font-size:12px; }
.service-tabs { background:#eceff5; padding:4px; border-radius:12px; }
.service-tabs button { background:transparent; color:var(--muted); font-size:12px; min-height:37px; border-radius:9px; }
.service-tabs .active { color:var(--text); background:#fff; box-shadow:0 1px 3px #142a4b05; }
.service-page .service-tabs { margin-bottom:24px; }
.service-card { overflow:hidden; }
.service-cover { height:185px; margin:-18px -18px 16px; overflow:hidden; border-radius:18px 18px 0 0; }
.service-cover img { width:100%; height:100%; object-fit:cover; }
.service-gallery img { object-fit:contain; background:#f1f4f8; border-radius:15px; }
.service-filter { padding:0; background:transparent; border:0; margin-bottom:22px; }
.service-filter label[for=serviceSearch] { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.service-filter .form-actions { display:flex; gap:8px; margin-top:10px; }
.service-filter .form-actions .btn:first-child { flex:1; }
.service-filter-details summary { cursor:pointer; color:var(--muted); font-size:12px; padding:4px 0; }
.service-filter-details[open] .form-grid { margin-top:14px; }
.service-tools { gap:8px; }
.publish-options .card { padding:25px; }
.publish-options .card:first-child { background:#e7efff; }
.publish-options .card:last-child { background:#fceee6; }
.publish-options h2 { font-size:25px; font-weight:650; letter-spacing:-.8px; }
.publish-options p { font-size:13px; line-height:1.65; color:#75839b; }
.publish-options .card:last-child .btn { background:#ba614a; }
/* Shared creation flow */
.form-card { border:0; border-radius:18px; padding:20px; }
.field label { font-size:12px; font-weight:600; color:#435371; }
.field input,.field textarea,.field select,.category-trigger { border:1px solid #e2e7ef; border-radius:12px; background:#fff; min-height:49px; font-size:14px; color:var(--text); padding:13px 14px; }
.field textarea { line-height:1.6; }
.field input::placeholder,.field textarea::placeholder { color:#a6afbf; }
.field .hint { font-size:11px; line-height:1.6; color:#78859b; }
.editor-page { padding-top:calc(20px + var(--safe-top)); }
.editor-top { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 0 22px; }
.editor-kind { color:#56657f; font-size:12px; font-weight:600; }
.editor-close { background:#edf0f5; color:#8390a6; border:0; border-radius:9px; padding:9px 12px; font-size:11px; }
.publishing-form { padding:0; border:0; background:none; }
.publishing-form > fieldset { border:0; padding:0; margin:0; min-width:0; }
.editor-progress { display:flex; gap:7px; margin:0 0 27px; }
.editor-step { flex:1; min-width:0; background:none; border:0; border-top:3px solid #e3e8f0; color:#a0aabd; padding:10px 0 0; text-align:left; font-size:9px; font-weight:550; border-radius:0; }
.editor-step.current { border-color:var(--blue); color:var(--blue); }
.editor-step.complete { border-color:#9fbaef; color:#6888bf; }
.editor-step:disabled { cursor:default; opacity:1; }
.editor-heading { margin-bottom:27px; }
.editor-heading .eyebrow { color:#97a2b7; font-size:9px; letter-spacing:1.3px; }
.editor-heading h1 { margin:11px 0 11px; font-size:29px; font-weight:650; line-height:1.15; letter-spacing:-1.05px; outline:none; }
.editor-heading p { margin:0; color:#718097; font-size:13px; line-height:1.65; max-width:330px; }
.editor-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:22px; }
.editor-fields .field { gap:9px; }
.editor-fields textarea { min-height:130px; }
.editor-fields .time-grid { gap:12px; }
.editor-fields .pay-mode { border-radius:12px; padding:4px; background:#eaf0f7; }
.editor-fields .pay-mode span { border-radius:9px; font-size:12px; }
.editor-fields .pay-entry input { padding-right:105px; }
.editor-fields .condition-pill span { background:#fff; border-radius:9px; border-color:#e5eaf2; }
.editor-fields .condition-pill input:checked + span { border-color:#9fbef8; background:#edf3ff; }
.field .condition-pill,.field .pay-mode label { position:relative; }
.field .condition-pill input,.field .pay-mode input { width:1px; height:1px; min-height:1px; padding:0; border:0; }
.field .condition-pill input:focus-visible + span,.field .pay-mode input:focus-visible + span { outline:3px solid #8db2ff; outline-offset:2px; }
.editor-footer { position:sticky; bottom:0; display:flex; gap:10px; padding:18px 0 calc(16px + var(--safe-bottom)); margin-top:24px; background:var(--bg); z-index:4; border-top:1px solid #e9edf4; }
.editor-footer .btn { flex:1; min-height:50px; font-size:13px; }
.editor-footer .btn.secondary { flex:0 0 90px; }
.editor-error { color:#b84135; font-size:12px; line-height:1.5; }
.editor-page .publishing-form { padding-bottom:0; }
.app-shell:has(.editor-page) .main { padding-bottom:0; }
.upload-input { position:absolute; width:1px !important; height:1px !important; min-height:1px !important; padding:0 !important; opacity:0; overflow:hidden; }
.upload-target { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border:1px dashed #ced7e6; border-radius:14px; min-height:102px; background:#f1f4f9; cursor:pointer; text-align:center; padding:15px; }
.upload-target strong { color:#5c749b; font-size:12px; font-weight:600; }
.upload-target span { color:#99a4b6; font-size:10px; line-height:1.5; font-weight:400; }
.upload-input:focus-visible + .upload-target { outline:3px solid #8db2ff; }
.upload-thumbnails { display:flex; flex-wrap:wrap; gap:8px; }
.upload-thumbnails:empty { display:none; }
.upload-thumbnails img { width:72px; height:72px; object-fit:cover; border-radius:10px; }
.upload-thumbnail { position:relative; padding:6px; }
.upload-thumbnail img { display:block; width:88px; height:88px; }
.upload-remove { position:absolute; top:0; right:0; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #dce5f2; border-radius:50%; background:#fff; color:#102346; font-family:inherit; font-size:25px; font-weight:600; line-height:1; box-shadow:0 2px 8px #10234620; }
.publication-preview { background:#fff; border-radius:19px; overflow:hidden; border:1px solid #edf0f6; }
.publication-photo { display:block; width:100%; max-height:220px; object-fit:cover; }
.publication-copy { padding:22px; }
.publication-copy h2 { font-size:23px; line-height:1.3; letter-spacing:-.6px; margin:10px 0 14px; overflow-wrap:anywhere; }
.publication-price { font-size:23px; font-weight:650; letter-spacing:-.5px; color:var(--blue); }
.publication-details { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px 18px; font-size:12px; line-height:1.5; margin:22px 0; }
.publication-details dt { color:#79869b; }
.publication-details dd { margin:0; color:#66758e; overflow-wrap:anywhere; }
.publication-description { white-space:pre-wrap; overflow-wrap:anywhere; color:#6c7b93; line-height:1.65; font-size:13px; margin:0; }
.editor-note { color:#71819b; font-size:11px; line-height:1.6; margin:0; }
.review-edits { display:grid; gap:4px; justify-items:start; }
.review-edits .link-btn { min-height:36px; }
@media(min-width:700px) { .app-shell { margin:20px auto; border-radius:27px; min-height:calc(100dvh - 40px); } }
@media(max-width:360px) { .page { padding-left:18px; padding-right:18px; } .app-header { padding-left:18px; padding-right:18px; } .portal { padding:21px 18px; } .portal strong { font-size:29px; } .portal-services strong { font-size:24px; } .portal-work img { width:34%; right:-3px; } .portal-services img { height:94px; width:29%; } .portal-description { font-size:11px; } .section-head h1,.editor-heading h1 { font-size:26px; } .conversation { grid-template-columns:36px minmax(0,1fr) auto; padding:17px 12px; gap:9px; } .conversation .chat-avatar { width:36px; height:36px; border-radius:12px; } .conversation-aside time { max-width:40px; font-size:8px; } .setting-action { font-size:9px; } .identity h2 { font-size:19px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

.review-subtitle { font-size:12px; font-weight:600; margin:20px 0 7px; }
.editor-note strong { font-weight:600; color:#596c89; }
.editor-note p { margin:5px 0; }

/* Approved clay direction, September 28. Content is photographic; navigation has four destinations. */
.ui-icon { display:inline-block; flex:0 0 auto; width:20px; height:20px; background:currentColor; mask:var(--icon) center/contain no-repeat; -webkit-mask:var(--icon) center/contain no-repeat; vertical-align:middle; }
.icon-calendar { --icon:url('/assets/icons/calendar.svg'); }
.icon-arrow { --icon:url('/assets/icons/arrow-right.svg'); }
.icon-plus { --icon:url('/assets/icons/plus.svg'); }
.icon-pin { --icon:url('/assets/icons/map-pin.svg'); }
.icon-user { --icon:url('/assets/icons/user.svg'); }
.icon-clock { --icon:url('/assets/icons/clock.svg'); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn.small { font-size:13px; min-height:42px; padding:10px 14px; border-radius:16px; }
.app-header { padding:calc(20px + var(--safe-top)) 20px 16px; }
.app-header[data-screen=start] { padding-bottom:0; }
.app-header[data-screen=start] .brand { font-size:36px; letter-spacing:-1.8px; }
.app-header[data-screen=start] .header-sub { display:block; color:#617ca7; font-size:14px; margin-top:12px; }
.header-avatar { width:44px; height:44px; padding:0; border:0; border-radius:50%; background:#f1f4f8; color:#506d95; overflow:hidden; }
.header-avatar img { width:100%; height:100%; object-fit:cover; }
.header-avatar .ui-icon { width:24px; height:24px; }
.dashboard { padding-top:22px; }
.home-portals { gap:12px; }
.portal { padding:23px 19px; min-height:210px; border-radius:20px; background:#edf5ff; }
.portal-work { background:#eaf3ff; }
.portal-services { background:#fff1e9; min-height:220px; }
.portal strong { font-size:31px; line-height:1.1; letter-spacing:-1px; font-weight:750; margin:0 0 12px; }
.portal-services strong { font-size:29px; max-width:100%; }
.portal-description { font-size:14px; line-height:1.5; max-width:70%; color:#607ba4; }
.portal img { width:38%; height:165px; right:1px; bottom:27px; }
.portal-services img { width:34%; height:135px; right:4px; bottom:37px; }
.portal-link { display:flex; align-items:center; gap:12px; margin-top:21px; font-size:13px; font-weight:600; color:#075ee6; }
.portal-services .portal-link { color:#c64c34; }
.portal-arrow { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#0866ff; color:white; }
.portal-arrow .ui-icon { width:23px; height:23px; }
.portal-services .portal-arrow { background:#ff765b; }
.affairs-head { margin:23px 0 16px; gap:8px; }
.affairs-head h2 { font-size:19px; }
.home-note { color:var(--muted); font-size:14px; line-height:1.65; }
.bottom-nav { padding-left:8px; padding-right:8px; }
.bottom-nav button { color:#647da5; }
.bottom-nav button .ui-icon { width:22px; height:22px; }
.bottom-nav button span:not(.ui-icon):not(.nav-unread) { font-size:11px; }
.bottom-nav button.active svg { stroke-width:2.3; }
.nav-unread { right:20%; }
.activity-page > .section-head { margin-bottom:22px; }
.activity-page h1 { font-size:28px; white-space:nowrap; }
.activity-tabs { display:flex; gap:14px; border-bottom:1px solid #e9edf5; margin:0 -20px 26px; padding:0 20px; }
.activity-tabs button { flex:1; background:none; border:0; padding:0 0 15px; font-size:15px; font-weight:600; color:#526d96; border-bottom:2px solid transparent; }
.activity-tabs button[aria-pressed=true] { color:var(--blue); border-bottom-color:var(--blue); }
.activity-section { margin-bottom:28px; }
.activity-section h2 { font-size:21px; letter-spacing:-.6px; margin:0 0 16px; }
.activity-section .section-head { margin-bottom:16px; }
.activity-section .section-head h2 { margin:0; }
.activity-card { width:100%; display:flex; align-items:flex-start; gap:12px; padding:16px 12px; border:1px solid #e7edf6; border-radius:17px; background:#fff; color:var(--text); text-align:left; }
.activity-card > .icon-arrow { width:15px; margin-top:5px; color:#6a86af; }
.activity-date { display:flex; flex-direction:column; align-items:center; flex:0 0 36px; padding-top:1px; }
.activity-date strong { font-size:27px; font-weight:750; line-height:1.1; letter-spacing:-1px; }
.activity-date span { font-size:11px; margin-top:5px; }
.activity-copy { flex:1; min-width:0; }
.activity-copy > strong { display:block; font-size:14px; line-height:1.3; letter-spacing:-.25px; }
.activity-meta { display:block; color:#637fa6; font-size:12px; margin-top:7px; line-height:1.4; overflow-wrap:anywhere; }
.activity-pay { display:block; color:var(--blue); font-size:18px; margin-top:8px; }
.activity-copy .badge { display:inline-block; font-size:10px; line-height:1.4; margin-top:12px; white-space:normal; text-align:left; }
.activity-photo { width:66px; height:119px; object-fit:cover; border-radius:9px; }
.activity-card.compact .activity-date { border-right:1px solid #e7edf6; padding-right:10px; flex-basis:42px; }
.activity-empty { text-align:center; padding:22px 12px; }
.activity-empty > .ui-icon { width:38px; height:38px; color:#9cacc7; margin-bottom:14px; }
.activity-empty h3 { font-size:17px; margin:0 0 10px; }
.activity-empty p { font-size:14px; line-height:1.5; color:var(--muted); margin:0 0 18px; }
.activity-service { width:100%; display:flex; gap:15px; align-items:center; text-align:left; border:0; border-bottom:1px solid #e8eef6; background:none; padding:14px 0; color:var(--text); }
.activity-service img { width:94px; height:110px; object-fit:cover; border-radius:11px; }
.activity-service > span { flex:1; min-width:0; }
.activity-service strong { display:block; font-size:16px; line-height:1.3; }
.activity-service small { display:block; font-size:12px; color:var(--muted); margin:7px 0; }
.activity-service .icon-arrow { width:16px; color:#7187aa; }
.activity-history { border-top:1px solid #e7edf4; padding-top:18px; }
.activity-history summary { font-size:15px; font-weight:600; cursor:pointer; padding:7px 0; }
.activity-history[open] .stack { margin-top:16px; }
.service-page > .section-head h1 { font-size:28px; }
.service-listing { display:flex; gap:16px; padding:18px 0; border-bottom:1px solid #e8eef5; }
.service-photo-link { flex:0 0 112px; width:112px; min-height:164px; padding:0; border:0; background:#f1f4f8; border-radius:13px; overflow:hidden; }
.service-photo-link img { display:block; width:100%; height:100%; max-height:210px; object-fit:cover; }
.service-listing-copy { flex:1; min-width:0; }
.listing-title { display:flex; gap:8px; align-items:center; justify-content:space-between; text-align:left; width:100%; padding:0; background:none; border:0; color:var(--text); }
.listing-title h3 { font-size:16px; line-height:1.3; font-weight:700; letter-spacing:-.5px; margin:0; }
.listing-title .ui-icon { color:#6681aa; width:14px; }
.service-excerpt { color:#617da5; font-size:12px; line-height:1.45; margin:7px 0 10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.listing-provider { display:flex; align-items:center; gap:8px; font-size:12px; }
.provider-initial { display:grid; place-items:center; border-radius:50%; background:#edf3fc; width:28px; height:28px; font-size:12px; color:#5576a5; flex-shrink:0; }
.listing-provider small { display:block; font-size:11px; color:#647fa6; margin-top:3px; }
.listing-location { display:flex; align-items:center; gap:4px; color:#647fa6; font-size:11px; margin:10px 0; }
.listing-location .ui-icon { width:13px; height:13px; }
.listing-price { display:block; color:#0866ff; font-size:21px; letter-spacing:-.5px; }
.listing-owner { margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.listing-owner .btn { padding:7px 10px; min-height:32px; font-size:11px; }
.service-filter { margin-bottom:14px; }
.service-filter .form-grid { gap:10px; }
.service-filter .form-actions { margin:0; }
.service-filter .form-actions .btn { min-height:36px; padding:7px 12px; font-size:12px; }
.service-filter .form-actions .btn:first-child { flex:0 0 auto; }
.service-filter-details summary { padding:0; font-size:12px; }
.category-chips { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding:0 0 8px; }
.category-chips button { flex-shrink:0; background:#edf4ff; color:#233c65; border:0; padding:11px 14px; border-radius:20px; font-size:12px; min-height:40px; }
.category-chips button[aria-pressed=true] { background:var(--blue); color:#fff; }
.service-list { margin-top:0; }
.profile-page .section-head { margin-bottom:25px; }
.identity .avatar { width:76px; height:76px; flex-basis:76px; border-radius:50%; }
.profile-stats { padding:12px 0; border-radius:0; margin-bottom:26px; }
.profile-page .settings-group:first-of-type { padding:0; }
.settings-group:has([data-action=setup-worker]) { padding:0; display:grid; gap:12px; }
.settings-row[data-action=setup-worker],.settings-row[data-action=setup-employer] { border:0; border-radius:17px; padding:23px 18px; background:#eaf3ff; }
.settings-row[data-action=setup-employer] { background:#fff1e9; }
.setting-copy strong { font-size:16px; }
.setting-copy small { font-size:13px; }
.setting-action { font-size:12px; color:#506e99; }
.profile-explainer { font-size:13px; color:#647fa6; }
.conversation-copy h3 { font-size:15px; }
.conversation-context { font-size:12px; }
.conversation-copy p { font-size:14px; }
.conversation-aside time { font-size:10px; color:#7083a0; }
.conversation-list { border:1px solid #edf1f6; }
.editor-page { padding-top:24px; }
.editor-top { padding-bottom:23px; }
.editor-kind { color:var(--text); font-size:14px; }
.editor-close,.editor-back { border:0; background:none; color:#6881a5; padding:8px 0; font-size:13px; }
.editor-progress { margin-bottom:28px; gap:8px; }
.editor-step { display:flex; align-items:center; flex-direction:column; gap:9px; padding:0; border:0; font-size:12px; color:#6980a2; }
.step-number { display:grid; place-items:center; border-radius:50%; width:34px; height:34px; background:#f0f4f9; color:#607caa; font-size:15px; }
.editor-step.current .step-number { background:var(--blue); color:#fff; }
.editor-step.complete .step-number { background:#e7f0ff; color:#075fe9; }
.editor-heading .eyebrow { display:none; }
.editor-heading h1 { font-size:29px; font-weight:750; margin:0 0 11px; }
.editor-heading p { font-size:14px; line-height:1.55; }
.editor-fields { gap:19px; }
.field label { font-size:14px; color:var(--text); }
.field .hint { font-size:12px; color:#667d9f; }
.field input,.field textarea,.field select,.category-trigger { font-size:15px; border-color:#dce5f2; border-radius:12px; }
.editor-fields textarea { min-height:112px; }
.editor-footer .btn { font-size:15px; }
.upload-target { background:#f7faff; min-height:96px; border-color:#bfcee4; }
.upload-target strong { font-size:14px; }
.upload-target span { font-size:12px; color:#667d9f; }
@media(max-width:360px) {
 .portal { padding:19px 16px; min-height:200px; }
 .portal strong { font-size:27px; }
 .portal-services strong { font-size:25px; }
 .portal-description { font-size:12px; }
 .portal-link { font-size:12px; gap:8px; }
 .portal-arrow { width:36px; height:36px; }
 .portal img { width:34%; height:140px; bottom:35px; }
 .portal-services img { width:30%; height:105px; bottom:55px; }
 .activity-page h1 { font-size:24px; }
 .activity-photo { width:50px; height:100px; }
 .activity-card { gap:8px; padding:14px 9px; }
 .activity-date { flex-basis:28px; }
 .service-photo-link { flex-basis:89px; width:89px; }
 .service-listing { gap:12px; }
 .listing-title h3 { font-size:15px; }
 .listing-price { font-size:19px; }
 .setting-copy strong { font-size:15px; }
 .setting-action { font-size:11px; }
 .affairs-head h2 { font-size:17px; }
 .btn.small { font-size:12px; padding:10px; }
}

.service-page .service-filter { padding:0; margin:0 0 16px; }
.service-filter .form-actions .btn { white-space:nowrap; }

.activity-service small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.dashboard { padding-top:18px; }
.dashboard .portal-work { min-height:200px; }
.dashboard .portal-services { min-height:208px; }
.portal-work img { width:44%; height:190px; right:-3px; bottom:10px; }
.activity-card.compact { padding:12px; }
.activity-card.compact .activity-meta { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:5px; }
.activity-card.compact .badge { margin-top:8px; }
@media(max-width:360px) { .portal-work img { width:34%; height:145px; bottom:23px; } }
/* Profile and publication refinement: explicit role cards, quiet help, editorial review. */
.profile-intro { margin:0 0 16px; font-size:14px; color:var(--muted); }
.profile-roles { display:grid; gap:12px; margin-bottom:28px; }
.profile-role { width:100%; border:0; border-radius:22px; padding:22px 20px; display:grid; grid-template-columns:38px minmax(0,1fr); gap:8px 14px; text-align:left; font:inherit; cursor:pointer; color:var(--text); }
.worker-role { background:#eaf3ff; }
.employer-role { background:#fff0e9; }
.profile-role .role-symbol { width:32px; height:32px; grid-row:1 / 3; margin-top:4px; color:#1265ea; }
.employer-role .role-symbol,.employer-role .setting-action { color:#d9593c; }
.profile-role .setting-copy strong { font-size:18px; line-height:1.3; }
.profile-role .setting-copy small { display:block; margin-top:7px; line-height:1.45; font-size:13px; }
.profile-role .setting-action { grid-column:2; justify-self:start; font-size:14px; margin-top:5px; }
.profile-role .setting-action::after { content:' →'; margin-left:8px; }
.profile-explainer { margin:24px 0 12px; padding:19px; border-radius:18px; background:#f0f6ff; display:flex; align-items:flex-start; gap:12px; color:#657b9c; font-size:13px; line-height:1.6; }
.profile-explainer strong { display:block; color:#18345b; font-size:14px; }
.profile-explainer p { margin:5px 0 0; }
.profile-info-icon { flex:0 0 22px; height:22px; display:grid; place-items:center; border:1.5px solid #5085d1; border-radius:50%; color:#3274d4; font-weight:700; font-family:Georgia,serif; }
.publication-preview { border:0; border-radius:22px; background:#f5f8fc; }
.publication-copy { padding:22px; }
.publication-copy .eyebrow { color:#607896; letter-spacing:.08em; font-size:11px; }
.publication-copy h2 { font-size:25px; font-weight:750; margin:8px 0 14px; }
.publication-price { display:block; font-size:25px; padding-bottom:20px; border-bottom:1px solid #dfe7f2; }
.publication-details { margin:18px 0 22px; gap:12px 20px; font-size:14px; }
.publication-details dd { color:#243d61; font-weight:500; }
.review-subtitle { font-size:14px; margin:20px 0 7px; color:#18345b; }
.publication-description { font-size:14px; color:#516783; line-height:1.6; }
.editor-note { padding:16px 18px; border-radius:16px; background:#fff7ee; font-size:12px; color:#86715a; }
.editor-note strong { font-size:13px; color:#614b33; }
.editor-note p { font-size:14px; color:#493d30; }
.review-edit-group { display:flex; gap:14px; align-items:center; flex-wrap:wrap; color:#647895; font-size:13px; }
.review-edits { display:flex; gap:8px; flex-wrap:wrap; }
.review-edit-btn { border:1px solid #dfe7f1; border-radius:10px; background:#fff; color:#1761cf; padding:10px 13px; font:inherit; cursor:pointer; }
.pending-publication { padding-top:36px; }
.pending-symbol { width:62px; height:62px; border-radius:20px; background:#fff1df; color:#bb7928; display:grid; place-items:center; margin-bottom:26px; }
.pending-symbol .ui-icon { width:30px; height:30px; }
.pending-publication h1 { font-size:29px; line-height:1.15; letter-spacing:-.8px; margin:10px 0 14px; }
.pending-lead { color:#647895; font-size:15px; line-height:1.65; margin:0 0 28px; }
.pending-order { background:#f3f7fd; border-radius:20px; padding:20px; margin-bottom:24px; }
.pending-order h2 { font-size:20px; margin:14px 0 8px; overflow-wrap:anywhere; }
.pending-order p { font-size:14px; color:#647895; margin:0; line-height:1.5; }
.pending-actions { display:grid; gap:10px; }
.pending-footnote { color:#788aa3; font-size:12px; line-height:1.6; text-align:center; margin:16px 12px; }
@media(max-width:360px) { .profile-role { padding:18px 14px; gap:8px 10px; grid-template-columns:28px minmax(0,1fr); } .profile-role .role-symbol { width:26px; height:26px; } .profile-role .setting-copy strong { font-size:16px; } .publication-copy { padding:18px; } }
/* Profile: original account information and actions, clay role illustrations. */
.profile-restored { background:#f5f7fb; padding:16px 18px 30px; }
.profile-restored .account-card { background:linear-gradient(145deg,#438eff,#2374f3); border-radius:24px; color:#fff; padding:24px 18px; margin:0 0 16px; text-align:center; }
.profile-restored .account-card .avatar { width:76px; height:76px; margin:0 auto 14px; border:3px solid #ffffffa6; background-color:#e4efff; color:#2164c9; }
.profile-restored .account-card h2 { color:#fff; font-size:22px; margin:0 0 6px; }
.profile-restored .account-card p { color:#e1edff; font-size:13px; margin:0; }
.profile-restored .profile-section { border:1px solid #e8edf4; box-shadow:none; border-radius:20px; padding:18px; margin:0 0 14px; background:white; }
.profile-restored .profile-section-head { display:flex; gap:10px; justify-content:space-between; align-items:flex-start; flex-wrap:nowrap; margin-bottom:14px; }
.profile-restored h3 { font-size:17px; line-height:1.3; margin:0 0 6px; }
.profile-restored .profile-section-head p { font-size:13px; line-height:1.5; margin:0; color:#4c5e78; }
.profile-restored .badge { font-size:10px; white-space:nowrap; flex-shrink:0; padding:6px 8px; }
.profile-restored .btn.secondary { background:#fff; border:1px solid #d6e4f9; color:#1462d7; min-height:46px; font-size:13px; border-radius:12px; padding:12px; line-height:1.4; }
.profile-restored .account-stats { margin:0 0 14px; border:1px solid #e8edf4; border-radius:18px; overflow:hidden; background:#fff; gap:0; }
.profile-restored .account-stats .stat { background:transparent; box-shadow:none; border:0; border-radius:0; padding:16px 4px; }
.profile-restored .account-stats .stat + .stat { border-left:1px solid #edf1f7; }
.profile-restored .account-stats strong { color:#1769eb; font-size:21px; }
.profile-restored .account-stats span { font-size:11px; }
.profile-restored .role-worker,.profile-restored .role-customer { background:#fff; border-color:#dfe5ed; }
.role-panel-top { display:grid; grid-template-columns:78px minmax(0,1fr); gap:14px; align-items:center; margin-bottom:16px; }
.profile-clay { width:78px; height:86px; object-fit:contain; }
.profile-restored .role-panel .profile-section-head { display:flex; flex-direction:column-reverse; gap:8px; margin:0; }
.profile-restored .role-panel .badge { align-self:flex-start; }
.profile-restored .role-panel .btn { background:#fff; border-color:#c7d5e8; }
.profile-restored .role-customer .btn { color:#ba4c32; }
.profile-restored .profile-explainer { background:#eaf1fb; margin:18px 0 0; }
@media(max-width:360px) { .profile-restored { padding:12px; } .profile-restored .profile-section { padding:15px; } .role-panel-top { grid-template-columns:64px minmax(0,1fr); gap:10px; } .profile-clay { width:64px; height:78px; } }
#refreshButton { width:40px; height:40px; padding:0; flex-shrink:0; }
#refreshButton svg { display:block; width:20px; height:20px; stroke-width:1.8; }
/* Dense browsing: scan price and schedule before opening details. */
.compact-job { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 14px; padding:16px; border-radius:16px; box-shadow:none; }
.compact-job-copy { min-width:0; }
.compact-job h3 { font-size:16px; line-height:1.3; margin:0 0 6px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.compact-job-price { display:block; color:#1262db; font-size:18px; margin-bottom:7px; }
.compact-job-time { font-size:12px; color:#233c61; line-height:1.5; }
.compact-job .meta { font-size:12px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.compact-job-employer span { color:#9a742c; margin-left:5px; }
.compact-job .compact-job-photo { width:70px; height:76px; border-radius:12px; margin:0; }
.compact-job .tags { grid-column:1/-1; margin:0; gap:5px; }
.compact-job .tag { font-size:10px; padding:4px 7px; }
.service-search-row { display:flex; gap:8px; align-items:stretch; }
.service-search-row .field { flex:1; min-width:0; }
.service-search-row input { min-height:46px; height:46px; border-radius:13px; font-size:14px; }
.service-search-row .btn { min-height:46px; border-radius:13px; padding:0 15px; font-size:13px; }
.service-filter-details { margin-top:10px; }
.service-filter-details summary { display:inline-flex; align-items:center; min-height:36px; padding:8px 14px; border:1px solid #e1e8f2; background:#fff; border-radius:11px; color:#314c70; font-size:13px; list-style:none; font-weight:600; }
.service-filter-details summary::-webkit-details-marker { display:none; }
.service-filter-details summary::after { content:'+'; margin-left:14px; font-size:18px; font-weight:400; }
.service-filter-details[open] summary::after { content:'−'; }
.service-filter-details[open] { padding:12px; background:#f5f8fc; border-radius:14px; }
.service-filter-details[open] .form-actions { margin-top:14px; }
.active-filter-reset .btn { margin-top:8px; min-height:32px; padding:6px 10px; font-size:12px; }
.service-page .category-chips { gap:7px; margin:0 0 8px; }
.service-page .category-chips button { padding:8px 12px; min-height:34px; font-size:12px; }
.service-listing { gap:12px; padding:15px 0; }
.service-listing .service-photo-link { width:80px; height:96px; flex:0 0 80px; border-radius:12px; }
.service-listing .service-photo-link img { width:100%; height:100%; object-fit:cover; }
.service-listing .listing-title h3 { font-size:16px; line-height:1.3; }
.service-listing .service-excerpt { display:none; }
.service-listing .listing-provider { margin:7px 0 3px; gap:5px; font-size:12px; }
.service-listing .provider-initial { display:none; }
.service-listing .listing-provider small { display:inline; margin-left:6px; font-size:11px; }
.service-listing .listing-location { font-size:11px; margin:3px 0; }
.service-listing .listing-price { font-size:18px; margin-top:5px; }
@media(max-width:360px) { .service-listing .service-photo-link { width:68px; flex-basis:68px; height:86px; } .compact-job .compact-job-photo { width:58px; height:66px; } }
.service-listing .service-photo-link { min-height:0; }
.services-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; }
.services-heading .section-head { margin:0; min-width:0; }
.services-heading .section-head h1 { font-size:27px; line-height:1.12; }
.services-heading > img { width:76px; height:76px; object-fit:contain; flex-shrink:0; }
.services-actions-top { margin-bottom:20px; }
.services-actions-top .service-tools { display:flex; flex-wrap:wrap; gap:7px; margin:0; }
.services-actions-top .btn { font-size:12px; padding:9px 11px; min-height:36px; }
.activity-history { border:1px solid #e6edf5; border-radius:16px; padding:0; margin-top:24px; background:#fff; }
.activity-history summary { display:flex; align-items:center; gap:12px; padding:17px; list-style:none; font-size:14px; }
.activity-history summary::-webkit-details-marker { display:none; }
.activity-history summary small { display:block; color:#71839e; font-size:12px; font-weight:400; margin-top:4px; }
.activity-history .history-icon { width:22px; height:22px; color:#6b83a5; flex-shrink:0; }
.history-toggle { margin-left:auto; color:#627fa5; font-size:22px; font-weight:400; }
.history-toggle::after { content:'+'; }
.activity-history[open] .history-toggle::after { content:'−'; }
.activity-history[open] .stack { margin:0; padding:0 16px 16px; }
.profile-restored .role-worker .account-stats { background:#f7f8fa; border:1px solid #e5e9ef; margin:0 0 14px; border-radius:13px; }
.profile-restored .role-worker .account-stats .stat { padding:12px 3px; }
.profile-restored .role-worker .account-stats strong { font-size:20px; }
.profile-restored .role-worker .account-stats .rating-empty { font-size:15px; color:#273b58; }
.profile-restored .account-stats span { color:#4c5e78; }
@media(max-width:360px) { .services-heading .section-head h1 { font-size:24px; } .services-heading > img { width:62px; height:62px; } }
.publish-heading .eyebrow { display:block; font-size:10px; letter-spacing:.1em; color:#6d819e; margin-bottom:10px; }
.publish-heading .section-head { margin-bottom:22px; }
.publish-heading h1 { font-size:29px; line-height:1.13; max-width:310px; }
.publish-heading .section-head p { font-size:14px; line-height:1.5; margin-top:10px; }
.publish-choices { display:grid; gap:14px; }
.publish-choice { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 92px; gap:14px 8px; width:100%; padding:22px; border:0; border-radius:23px; text-align:left; color:#0b2046; font:inherit; cursor:pointer; overflow:hidden; }
.choice-shift { background:#eaf3ff; }
.choice-service { background:#fff0e8; }
.choice-copy { display:flex; flex-direction:column; gap:9px; min-width:0; }
.choice-label { font-size:9px; font-weight:650; letter-spacing:.1em; color:#607a9e; }
.choice-copy strong { font-size:22px; line-height:1.14; letter-spacing:-.6px; }
.choice-description { font-size:13px; line-height:1.5; color:#637a97; }
.publish-choice > img { width:100px; height:124px; object-fit:contain; align-self:center; }
.choice-action { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; padding-top:14px; border-top:1px solid #d7e5f8; font-size:14px; font-weight:650; color:#1264e7; }
.choice-service .choice-action { color:#cf593a; border-color:#f4dcd0; }
.choice-action .ui-icon { width:20px; height:20px; }
.publish-footnote { color:#7a8aa2; font-size:12px; line-height:1.6; margin:18px 8px; text-align:center; }
@media(max-width:360px) { .publish-choice { padding:18px; grid-template-columns:minmax(0,1fr) 72px; } .publish-choice > img { width:80px; height:110px; } .choice-copy strong { font-size:20px; } }
/* Shared motion: short feedback, no continuous decorative movement. */
@media(prefers-reduced-motion:no-preference) {
  .page { animation:workly-enter 200ms ease-out; }
  button,[role=button],input,textarea,select,summary { transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 140ms ease; }
  button:active,[role=button]:active { transform:scale(.98); }
  .bottom-nav button,.nav-btn,.editor-step { transition:background-color 180ms ease,color 180ms ease,transform 140ms ease; }
  .editor-panel:not([hidden]),details[open] > :not(summary) { animation:workly-reveal 180ms ease-out both; }
  .publish-choice { animation:workly-enter 260ms ease-out both; }
  .publish-choice:nth-child(2) { animation-delay:45ms; }
  .publish-choice img,.portal img { transition:transform 220ms ease; }
  .publish-choice:active img,.portal:active img { transform:rotate(-3deg) scale(.96); }
  #refreshButton:disabled svg { animation:workly-spin 800ms linear infinite; }

  @media(hover:hover) { button:hover,[role=button]:hover { filter:brightness(.985); } .publish-choice:hover img { transform:translateY(-3px) rotate(-2deg); } }
}
@keyframes workly-enter { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@keyframes workly-reveal { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
@keyframes workly-spin { to { transform:rotate(360deg); } }
/* Job actions: distinct primary action and a balanced secondary row. */
.detail-actions { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:22px; padding:18px 0 4px; border-radius:0; border-top:1px solid #e4ebf5; background:transparent; backdrop-filter:none; }
.detail-actions > .btn:first-child { grid-column:1/-1; min-height:48px; background:#0866ff; color:#fff; border:1px solid #0866ff; }
.detail-actions > .btn:first-child:disabled { background:#eef2f7; border-color:#e2e8f0; color:#718098; }
.detail-actions > .btn[data-action=report-user],.detail-actions > .share-btn { min-height:44px; width:100%; height:auto; padding:10px 12px; border:1px solid #d7e1ee; border-radius:12px; background:#fff; color:#506887; font-size:13px; font-weight:600; }
.detail-actions > .share-btn { display:flex; align-items:center; justify-content:center; gap:8px; }
.detail-actions > .share-btn svg { width:17px; height:17px; flex-shrink:0; }
.detail-actions > .share-btn:nth-child(2) { grid-column:1/-1; }
.draft-notice { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; background:#eff6ff; color:#506f99; border-radius:12px; padding:12px 14px; margin:0 0 18px; font-size:12px; line-height:1.5; }
.draft-discard { padding:4px 0; background:transparent; color:#9b453b; border:0; font:inherit; text-decoration:underline; cursor:pointer; }
.catalog-actions { display:flex; gap:8px; margin:0 0 16px; }
.catalog-actions .btn,.services-actions-top .btn { min-height:44px; }
.catalog-page #searchBox { margin:0 0 14px; }
.catalog-page .section-head p,.services-heading .section-head p { font-size:13px; margin:7px 0 0; color:#637b9c; }
.category-chips button,.service-page .category-chips button { min-height:44px; }
.compact-job .meta,.compact-job-time { font-size:13px; }
.service-listing .listing-location,.service-listing .listing-provider small { font-size:12px; }
.reputation-caption { color:#5b7394; font-size:12px; line-height:1.5; margin:0 0 10px; }
.reputation-help { margin:0 0 16px; font-size:12px; color:#4c678a; }
.reputation-help summary { list-style:none; cursor:pointer; text-decoration:underline; padding:6px 0; }
.reputation-help summary::-webkit-details-marker { display:none; }
.reputation-help p { line-height:1.6; margin:8px 0; }
.header-back { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0; border:0; background:transparent; color:#314c70; font:inherit; font-size:14px; font-weight:600; }
.header-back svg { flex-shrink:0; }
.app-header[data-screen=job] { padding:calc(12px + var(--safe-top)) 20px 12px; }
.app-header[data-screen=job] .header-top { margin-bottom:0; }
.catalog-page .filter-panel { background:transparent; border:0; border-radius:0; overflow:visible; padding:0; margin:0 0 14px; }
.catalog-page .filter-summary { display:inline-flex; align-items:center; min-height:44px; padding:8px 14px; border:1px solid #dce5f2; border-radius:12px; color:#475467; font-size:13px; background:#fff; list-style:none; }
.catalog-page .feed-filter-form { margin-top:12px; padding:14px; border-radius:14px; background:#f5f8fc; }
.service-inquiry-list { margin-top:20px; }
.service-inquiry-row { display:flex; align-items:flex-start; gap:12px; width:100%; padding:18px 0; border:0; border-bottom:1px solid #e5eaf1; background:#fff; color:#102347; font:inherit; text-align:left; cursor:pointer; }
.service-inquiry-row:hover { background:#f8faff; }
.service-inquiry-row:focus-visible { outline:2px solid #0866ff; outline-offset:4px; border-radius:8px; }
.service-inquiry-avatar { display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; overflow:hidden; border-radius:50%; background:#eaf1ff; color:#325d9e; font-size:15px; font-weight:700; }
.service-inquiry-avatar img { width:100%; height:100%; object-fit:cover; }
.service-inquiry-content { display:block; min-width:0; flex:1; }
.service-inquiry-top { display:flex; align-items:baseline; gap:10px; }
.service-inquiry-top strong { flex:1; min-width:0; font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.service-inquiry-top time { flex-shrink:0; color:#66758b; font-size:12px; }
.service-inquiry-subject,.service-inquiry-preview { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; line-height:1.5; margin-top:3px; }
.service-inquiry-subject { color:#425778; }
.service-inquiry-preview { color:#6b778a; }
.has-unread .service-inquiry-preview { color:#243958; }
.service-inquiry-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:24px; margin-top:7px; color:#66758b; font-size:12px; }
.service-inquiry-unread { display:grid; place-items:center; min-width:23px; height:23px; padding:0 6px; border-radius:12px; background:#0866ff; color:white; font-size:12px; font-weight:700; }
.publication-success { max-width:440px; margin:12px auto 0; padding:12px 0 28px; text-align:center; }
.publication-success-art { display:block; width:156px; height:156px; object-fit:contain; margin:0 auto 18px; animation:publication-arrive .5s cubic-bezier(.2,.7,.3,1) both; }
.publication-success h1 { font-size:30px; line-height:1.15; margin:10px 0 16px; }
.publication-success-lead { color:#52637c; font-size:16px; line-height:1.5; }
.publication-success-summary { display:grid; gap:8px; padding:20px; margin:28px 0 24px; border:1px solid #e1e7f0; border-radius:18px; text-align:left; }
.publication-success-summary strong { font-size:18px; overflow-wrap:anywhere; }
.publication-success-summary span { font-size:14px; color:#63738a; }
.publication-success-summary b { color:#0866ff; font-size:21px; }
.publication-success-actions { display:grid; gap:10px; }
.publication-success .hint { font-size:13px; line-height:1.5; margin-top:18px; }
.service-detail-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:24px; }
.service-detail-top .btn { min-height:40px; padding:8px 12px; font-size:14px; }
.service-detail-heading h1 { margin:8px 0 10px; font-size:30px; line-height:1.15; overflow-wrap:anywhere; }
.service-detail-heading .meta { margin:0 0 18px; }
.service-detail-price { display:block; font-size:26px; color:#0866ff; margin-bottom:24px; }
.service-detail-description,.service-detail-provider { border-top:1px solid #e4e9f0; padding:22px 0; }
.service-detail-description h2,.service-detail-controls h2 { font-size:17px; margin:0 0 12px; }
.service-detail-description p { margin:0; color:#364960; line-height:1.6; }
.service-detail-controls { padding:20px; background:#f6f8fb; border:1px solid #e4e9f0; border-radius:18px; }
.service-detail-controls .service-tools { margin:0; gap:8px; }
.service-detail-controls .service-tools .btn { background:white; border:1px solid #d5dfec; font-size:13px; }
.service-detail-note { color:#62728a; font-size:13px; line-height:1.5; margin-top:16px; }
@keyframes publication-arrive { from { opacity:0; transform:translateY(10px) scale(.9); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .publication-success-art { animation:none; } }
.publication-editorial { padding-top:4px; }
.publication-confirmed { display:flex; align-items:center; gap:10px; color:#168451; font-size:15px; font-weight:650; margin:0 0 14px; }
.publication-confirmed i { display:block; flex:0 0 28px; height:28px; background:#168451; mask:url('/assets/icons/circle-check.svg') center/contain no-repeat; }
.publication-editorial h1 { font-size:29px; line-height:1.16; letter-spacing:-.8px; margin:0 0 14px; }
.publication-editorial-lead { color:#52698b; font-size:15px; line-height:1.55; margin:0 0 22px; }
.publication-editorial-preview { margin-bottom:22px; }
.publication-editorial-preview > img { width:100%; aspect-ratio:1.8; object-fit:cover; border-radius:9px; display:block; margin-bottom:16px; }
.publication-editorial-preview h2 { font-size:21px; line-height:1.25; margin:0 0 10px; }
.listing-editorial-price { display:block; color:var(--blue); font-size:25px; line-height:1.25; letter-spacing:-.6px; }
.listing-editorial-location { display:flex; align-items:center; gap:7px; color:#52698b; font-size:14px; line-height:1.5; margin:10px 0 14px; }
.listing-editorial-actions { display:grid; gap:9px; }
.listing-editorial-actions > .btn { width:100%; border-radius:10px; }
.publication-editorial .listing-editorial-actions > .secondary { background:transparent; color:var(--blue); }
.listing-editorial-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-12px 0 16px; }
.listing-editorial-top > .btn { background:none; padding:8px 0; color:#52698b; font-weight:500; min-height:44px; }
.listing-options { position:relative; font-size:13px; color:#52698b; }
.listing-options summary { list-style:none; cursor:pointer; padding:12px 0 12px 12px; }
.listing-options summary::-webkit-details-marker { display:none; }
.listing-options > div { position:absolute; right:0; top:100%; width:210px; padding:8px; z-index:5; background:white; border:1px solid var(--border); border-radius:12px; box-shadow:0 6px 24px #081b4014; }
.listing-options .btn { width:100%; color:#b13c32; }
.listing-editorial-gallery { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -20px 16px; }
.listing-editorial-gallery img { width:100%; flex:0 0 100%; aspect-ratio:1.55; object-fit:cover; scroll-snap-align:start; }
.listing-status { display:inline-block; font-size:12px; font-weight:600; color:#5f6c80; background:#f0f3f7; padding:5px 10px; border-radius:20px; margin:0 0 10px; }
.listing-status.is-live { color:#148352; background:#eaf8ef; }
.listing-editorial h1 { font-size:28px; letter-spacing:-.7px; line-height:1.18; margin:0 0 8px; overflow-wrap:anywhere; }
.listing-editorial-description { margin:22px 0; }
.listing-editorial-description h2 { font-size:19px; margin:0 0 9px; }
.listing-editorial-description p { font-size:15px; line-height:1.55; color:#415a7d; margin:0; }

/* Service conversations: ad context stays visible, messages take the space. */
.service-conversation { display:flex; flex-direction:column; height:calc(100dvh - 180px); min-height:420px; gap:12px; }
.conversation-header { display:flex; align-items:center; gap:16px; }
.conversation-header .btn { padding:10px 12px; font-size:13px; }
.conversation-header h1 { font-size:20px; margin:0; line-height:1.25; }
.conversation-header p { margin:4px 0 0; font-size:13px; color:#61748f; }
.conversation-listing { display:flex; align-items:center; gap:12px; text-align:left; padding:12px; border:1px solid #e1e7ef; border-radius:16px; background:#fff; color:#102449; cursor:pointer; flex-shrink:0; }
.conversation-listing img { width:52px; height:52px; border-radius:10px; object-fit:cover; }
.conversation-listing > span { min-width:0; display:grid; gap:5px; }
.conversation-listing strong { font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conversation-listing span span { font-size:13px; color:#61748f; }
.service-conversation .service-messages { flex:1; min-height:100px; max-height:none; overflow-y:auto; display:flex; flex-direction:column; gap:10px; padding:12px 4px; }
.service-conversation .service-message { align-self:flex-start; max-width:85%; border:0; border-radius:16px 16px 16px 4px; background:#f0f3f7; padding:12px 14px; margin:0; font-size:14px; }
.service-conversation .service-message.mine { align-self:flex-end; background:#e8f1ff; border-radius:16px 16px 4px 16px; }
.service-conversation .service-message strong { display:none; }
.service-conversation .service-message p { margin:0 0 6px; line-height:1.45; overflow-wrap:anywhere; }
.service-conversation .service-message small { font-size:10px; color:#60718a; }
.service-conversation .service-message.system { align-self:center; max-width:95%; background:transparent; text-align:center; color:#6b7b91; font-size:12px; padding:6px; }
.conversation-composer { display:flex; align-items:flex-end; gap:8px; padding:12px 0 0; border-top:1px solid #e5eaf1; background:white; }
.conversation-composer textarea { flex:1; min-width:0; resize:none; min-height:48px; max-height:120px; border:1px solid #dbe3ee; border-radius:14px; padding:12px; font:inherit; font-size:14px; }
.conversation-composer .btn { min-height:48px; padding:12px; font-size:13px; }
.chat-legacy summary { font-size:13px; cursor:pointer; color:#61748f; }
.chat-legacy[open] { max-height:180px; overflow:auto; }
.listing-portfolio { margin:24px 0; }
.listing-portfolio h2 { font-size:19px; }
.listing-portfolio p { font-size:13px; color:#61748f; }
.listing-portfolio a { display:flex; justify-content:space-between; gap:12px; padding:15px 0; border-bottom:1px solid #e5eaf1; color:#125cd9; overflow-wrap:anywhere; }
.listing-portfolio a span { color:#61748f; font-size:12px; flex-shrink:0; }


.conversation-composer .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.report-previews { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:12px; }
.report-previews figure { margin:0; padding:8px; border:1px solid #e1e7ef; border-radius:12px; min-width:0; }
.report-previews img { width:100%; height:120px; object-fit:contain; background:#f4f6fa; border-radius:6px; }
.report-previews figcaption { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; margin:6px 0; }
.report-previews .btn { width:100%; }
#reportFileError { color:#bd2525; font-size:14px; }
.report-image-dialog { border:0; border-radius:16px; padding:16px; max-width:95vw; max-height:90dvh; }
.report-image-dialog::backdrop { background:#102449aa; }
.report-image-dialog form { position:sticky; top:0; text-align:right; }
.report-image-dialog img { max-width:100%; height:auto; display:block; margin-top:12px; }
#reportScreenshots { width:100%; border:1px dashed #ccd9eb; border-radius:12px; padding:12px; background:#f8faff; font-size:13px; color:#536987; }
#reportScreenshots::file-selector-button { border:0; border-radius:9px; padding:10px 12px; margin-right:12px; background:#e6efff; color:#075ee5; font-weight:600; cursor:pointer; }

/* Animate additions only; background polling must not replay the conversation. */
@media(prefers-reduced-motion:no-preference) {
  .service-message.message-arrived { animation:workly-reveal 180ms ease-out both; }
  .report-previews figure { animation:workly-reveal 160ms ease-out both; }
  .report-image-dialog[open],.category-dialog[open] { animation:workly-reveal 160ms ease-out both; }
}

/* Keep the schedule distinct from the location in response cards. */
.activity-time { display:flex; align-items:center; gap:7px; margin-top:10px; color:var(--text); font-size:14px; font-weight:600; line-height:1.5; font-variant-numeric:tabular-nums; }
.activity-time > .ui-icon { flex:0 0 16px; width:16px; height:16px; color:#667b9e; }
.activity-card.compact { padding:12px; }
.activity-card.compact .activity-time { margin-top:4px; }
.activity-card.compact .badge { margin-top:6px; }
/* Reviews: selected summary-and-list layout, with real work context. */
.reviews-page { padding-top:0; }
.reviews-heading { margin:0 -20px 22px; padding:18px 20px; display:flex; align-items:center; gap:24px; background:#10264b; color:#fff; }
.reviews-heading h1 { margin:0; font-size:23px; }
.reviews-heading .link-btn { color:#fff; min-height:40px; }
.reviews-person { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.reviews-person h2 { font-size:20px; margin:0 0 5px; }
.reviews-person p { color:var(--muted); margin:0; font-size:14px; }
.reviews-person .chat-avatar { width:56px; height:56px; flex:0 0 56px; }
.reviews-summary { padding:22px 0; border-bottom:1px solid var(--border); }
.reviews-summary h2 { font-size:16px; margin:0 0 14px; }
.reviews-summary-grid { display:grid; grid-template-columns:110px 1fr; gap:18px; align-items:center; }
.reviews-summary-grid > div > strong { font-size:40px; line-height:1.2; letter-spacing:-1px; }
.reviews-summary-grid p { color:var(--muted); font-size:13px; margin:8px 0 0; }
.rating-bars { display:grid; gap:6px; }
.rating-bars > div { display:grid; grid-template-columns:12px 1fr 24px; align-items:center; gap:8px; font-size:12px; color:#536781; }
.rating-bars progress { width:100%; height:8px; border:0; border-radius:3px; overflow:hidden; accent-color:var(--blue); background:#e9edf3; }
.rating-bars progress::-webkit-progress-bar { background:#e9edf3; }
.rating-bars progress::-webkit-progress-value { background:var(--blue); }
.reviews-order { font-size:13px; margin:18px 0 0; color:var(--muted); }
.review-entry { padding:22px 0; border-bottom:1px solid var(--border); }
.review-author { display:flex; align-items:center; gap:10px; }
.review-author .chat-avatar { width:40px; height:40px; flex:0 0 40px; font-size:13px; }
.review-author > div:nth-child(2) { flex:1; min-width:0; }
.review-author h3 { font-size:15px; margin:0 0 4px; }
.review-author time,.review-work time { font-size:12px; color:var(--muted); }
.review-score { color:var(--text); font-size:18px; white-space:nowrap; }
.review-score small { color:var(--muted); font-size:12px; font-weight:400; }
.review-comment { font-size:15px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; margin:16px 0; }
.review-work { display:flex; gap:12px; align-items:center; }
.review-work img { width:62px; height:62px; object-fit:cover; border-radius:9px; }
.review-work strong { color:var(--blue-dark); font-size:14px; }
.review-work p { font-size:12px; margin:4px 0; color:var(--muted); }
.reviews-list + .btn { margin-top:18px; }
.reviews-empty { padding:28px 0; }
.reviews-empty h2 { font-size:18px; }
.reviews-empty p { color:var(--muted); line-height:1.5; font-size:14px; }
.review-rating-link { padding:0; background:none; border:0; color:var(--blue-dark); display:flex; flex-wrap:wrap; align-items:center; gap:8px; text-align:left; min-height:40px; font:inherit; }
.review-rating-link > span:last-child { font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.application-tabs { display:flex; gap:6px; margin:0 0 20px; border-bottom:1px solid var(--border); }
.application-tabs button { flex:1; padding:12px 4px; border-bottom:3px solid transparent; color:var(--muted); }
.application-tabs button[aria-pressed=true] { color:var(--blue); border-bottom-color:var(--blue); }
.activity-section > .section-head { gap:12px; }
.activity-section > .section-head { flex-wrap:wrap; }
.activity-section > .section-head .link-btn { max-width:none; flex-shrink:0; white-space:nowrap; margin-left:auto; text-align:right; }
.reviews-summary-grid > div > strong.review-rating-empty { font-size:20px; letter-spacing:0; }

.reviews-heading .reviews-back { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex:0 0 44px; padding:0; border-radius:10px; }
.reviews-back .ui-icon { width:24px; height:24px; transform:rotate(180deg); }
.reviews-heading .reviews-back:hover { background:#ffffff14; }
.profile-reviews-entry { display:flex; align-items:center; gap:14px; width:100%; padding:18px; margin:0 0 14px; background:#fff; border:1px solid #e8edf4; border-radius:20px; text-align:left; color:var(--text); font:inherit; cursor:pointer; }
.profile-reviews-entry > span { flex:1; min-width:0; }
.profile-reviews-entry strong { display:block; font-size:17px; line-height:1.3; }
.profile-reviews-entry small { display:block; margin-top:5px; font-size:13px; line-height:1.45; color:#4c5e78; }
.profile-reviews-star { width:28px; height:28px; flex:0 0 28px; color:var(--blue); }
.profile-reviews-chevron { width:20px; height:20px; flex:0 0 20px; color:#667b9e; }
.profile-reviews-entry:hover { border-color:#b8cef5; }
.profile-reviews-entry:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }

.reviews-role-group { padding-bottom:22px; border-bottom:1px solid var(--border); }
.reviews-role-group:last-child { border-bottom:0; }
.reviews-role-group .reviews-summary { border-bottom:0; padding-bottom:0; }
.reviews-role-empty { margin:0; font-size:15px; font-weight:600; color:var(--text); }
.reviews-role-hint { margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.5; }
/* Home discovery keeps the two main portals and uses bounded, manually scrolled rails. */
.home-discovery { margin-top:26px; min-width:0; }
.home-discovery .section-head { gap:12px; margin-bottom:14px; align-items:center; }
.home-discovery .section-head h2 { font-size:21px; line-height:1.25; margin:0; }
.home-discovery .section-head .link-btn { flex:0 0 auto; min-height:40px; }
.discovery-rail { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x proximity; overscroll-behavior-x:contain; padding:2px 2px 10px; scrollbar-width:thin; scrollbar-color:#c9d5e6 transparent; }
.discovery-card { flex:0 0 210px; min-width:0; display:flex; flex-direction:column; border:1px solid var(--border); border-radius:16px; overflow:hidden; background:#fff; scroll-snap-align:start; }
.discovery-service { flex-basis:180px; }
.discovery-open { display:flex; flex-direction:column; flex:1; width:100%; padding:0; text-align:left; background:none; border:0; color:var(--text); font:inherit; cursor:pointer; }
.discovery-open > img,.discovery-no-photo { width:100%; height:108px; object-fit:cover; }
.discovery-no-photo { display:flex; gap:8px; align-items:center; justify-content:center; background:#f4f6f9; color:#667b9e; font-size:13px; }
.discovery-copy { padding:12px 12px 8px; display:flex; flex-direction:column; gap:6px; width:100%; box-sizing:border-box; }
.discovery-title { font-size:15px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:41px; overflow-wrap:anywhere; }
.discovery-price { font-size:18px; line-height:1.3; }
.discovery-meta { color:#596f91; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.discovery-date { padding:14px 12px 0; display:flex; align-items:center; gap:7px; color:#596f91; font-size:13px; font-variant-numeric:tabular-nums; }
.discovery-date .ui-icon { width:17px; height:17px; flex:0 0 17px; }
.discovery-category { align-self:flex-start; max-width:calc(100% - 24px); margin:4px 12px 12px; padding:7px 10px; border:0; border-radius:12px; background:#edf4ff; color:var(--blue); font:inherit; font-size:12px; text-align:left; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.discovery-open:hover { background:#fafcff; }
.discovery-open:focus-visible,.discovery-category:focus-visible,.discovery-rail:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
@media(max-width:380px) { .home-discovery .section-head h2 { font-size:19px; } .discovery-card { flex-basis:200px; } .discovery-service { flex-basis:164px; } }

.catalog-page .filter-quick-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.catalog-page .filter-summary { display:flex; width:100%; box-sizing:border-box; gap:9px; min-height:44px; padding:10px 14px; font-weight:600; cursor:pointer; }
.catalog-page .filter-summary::-webkit-details-marker { display:none; }
.filter-count { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 5px; border-radius:7px; background:#eaf2ff; color:var(--blue); font-size:12px; box-sizing:border-box; }
.catalog-page .filter-chevron { margin-left:auto; width:17px; height:17px; transform:rotate(90deg); }
.catalog-page .filter-panel[open] .filter-chevron { transform:rotate(-90deg); }
.catalog-page .filter-summary:hover { background:#fff; }
.catalog-page .filter-summary:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.catalog-page .filter-panel[open] .feed-filter-form { margin-top:12px; }

/* Prevent focus auto-zoom in mobile WebKit while keeping controls readable. */
@media (pointer:coarse) { input:not([type=checkbox]):not([type=radio]),select,textarea { font-size:16px !important; } }

/* A conversation occupies the visible webview; only the message history scrolls. */
html:has(.service-conversation), body:has(.service-conversation) { height: 100%; overflow: hidden; }
.app-shell:has(.service-conversation) { height: 100dvh; min-height: 0; margin: 0 auto; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.app-shell:has(.service-conversation) > .main { min-height: 0; height: 100%; padding-bottom: 0; overflow: hidden; }
.service-page:has(.service-conversation) { height: 100%; padding: 16px 20px; }
.service-conversation { height: 100%; min-height: 0; }
.service-conversation > * { flex-shrink: 0; }
.service-conversation .service-messages { flex: 1 1 0; min-height: 0; }
.service-conversation .service-message { flex-shrink: 0; }
.service-conversation #serviceInlineForm, .service-conversation #serviceTerms { max-height: 35%; overflow-y: auto; }
.service-conversation #serviceInlineForm:empty, .service-conversation #serviceTerms:empty { display: none; }
.app-shell:has(.service-conversation) > .bottom-nav { position: static; transform: none; width: 100%; }
