/* Persian service design: a single geometry for public pages and all three roles. */
:root[data-theme]{scroll-padding-top:104px}
:root[data-theme] body{font-family:var(--font-product);line-height:1.7;font-size:var(--ui-text-body);letter-spacing:0}
:root[data-theme] body :is(button,input,select,textarea){font-family:inherit}
:root[data-theme] body #app .container{max-width:var(--ui-container);padding-inline:var(--ui-space-8)}
:root[data-theme] body #app :is(h1,h2,h3){text-wrap:pretty;letter-spacing:-.025em}
:root[data-theme] body #app :is(.card,.role-card,.directory-card,.place-card,.actual-order,.document-card,.skill-card,.review-card,.history-entry,.case-entry){border-radius:var(--product-radius);border:1px solid var(--ui-line);box-shadow:var(--product-shadow);padding:24px}
:root[data-theme] body #app :is(.panel-heading,.order-top,.place-card-top){display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
:root[data-theme] body #app .panel-heading{margin-bottom:20px;padding-bottom:0;border-bottom:0}
:root[data-theme] body #app .panel-heading h2{font-size:18px;line-height:1.7;margin:0;display:flex;align-items:center;gap:10px}
:root[data-theme] body #app .card-heading-icon{width:32px;height:32px;background:var(--ui-soft);border:0;border-radius:10px;padding:7px;flex:0 0 32px}
:root[data-theme] body #app .card-heading-icon img{width:18px;height:18px}
:root[data-theme] body #app :is(.button,.secondary){min-height:44px;border-radius:var(--ui-radius-control);font-size:14px;line-height:1.45;padding:12px 16px;box-shadow:none;max-width:100%;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:8px}
:root[data-theme] body #app .button{background:var(--ui-accent)!important;color:var(--ui-on-accent)!important;border:1px solid transparent}
:root[data-theme] body #app :is(.secondary,.button.outline){background:var(--ui-surface)!important;color:var(--ui-accent)!important;border:1px solid var(--ui-accent)!important}
:root[data-theme] body #app :is(.button,.secondary):hover{transform:none;box-shadow:none;filter:none}
:root[data-theme] body #app :is(.danger-text,button.danger-text){background:var(--ui-negative-bg)!important;color:var(--ui-negative)!important;border-color:transparent!important}
:root[data-theme] body #app :is(.button,.secondary):disabled{opacity:.5;box-shadow:none;cursor:wait}
:root[data-theme] body :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ui-accent);outline-offset:3px}
/* Navigation separates discovery from account actions. Brand stays on the right in the RTL shell. */
:root[data-theme] body:not(.gateway-view)>header{background:var(--ui-surface)!important;border-bottom:1px solid var(--ui-line);box-shadow:none;max-width:none;padding:16px max(24px,calc((100vw - 1320px)/2));gap:20px;flex-wrap:wrap;position:relative;z-index:var(--ui-layer-header)}
:root[data-theme] body>header .brand-symbol{width:192px;height:64px;object-fit:contain}
:root[data-theme] body>header .brand-name{font-size:29px}
:root[data-theme] body>header nav{font-size:14px;gap:24px;margin-inline-end:auto}
:root[data-theme] body>header nav a{padding-block:10px}
:root[data-theme] body>header .header-account-actions{margin-inline-start:0}
.header-service-search{position:relative;flex:1 1 320px;max-width:450px;min-width:180px;order:1}
.header-service-search form{display:flex;direction:rtl;align-items:center;gap:8px;background:var(--ui-raised);border-radius:12px;padding:0 8px;border:1px solid var(--ui-control-border)}
.header-service-search form:focus-within{border-color:var(--ui-accent);background:var(--ui-surface)}
:root[data-theme] body>header .header-service-search input{border:0!important;background:transparent!important;box-shadow:none!important;width:100%;min-width:0;height:48px;min-height:48px;padding:10px 4px;font-size:16px;color:var(--ui-fg);border-radius:0!important;outline:none;appearance:none;-webkit-appearance:none}
:root[data-theme] body>header .header-service-search button{border:0!important;background:transparent!important;border-radius:0;box-shadow:none!important;color:var(--ui-muted);min-height:44px;min-width:44px;padding:4px;display:grid;place-items:center}
.header-service-search svg{height:21px;width:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.header-service-results{position:absolute;inset-inline:0;top:calc(100% + 8px);margin:0;padding:8px;list-style:none;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:12px;box-shadow:0 12px 32px #1f202422;z-index:var(--ui-layer-search)}
.header-service-results[hidden]{display:none}
.header-service-results a{display:flex;padding:12px;font-size:14px;color:var(--ui-fg);border-radius:8px;min-height:46px;align-items:center;justify-content:space-between;gap:8px}
.header-service-results a:hover{background:var(--ui-soft)}
.header-service-results p{padding:10px;margin:0;color:var(--ui-muted);font-size:14px}
:root[data-theme] body:not(.panel-view)>header nav{order:5;flex-basis:100%;justify-content:flex-start;border-top:1px solid var(--ui-line);padding-top:8px;margin-top:0}
:root[data-theme] body>header .brand{order:0}
:root[data-theme] body>header .header-account-actions{order:2}
:root[data-theme] body>header .header-mobile-toggle{order:4}
/******** Discovery: purposeful hero, consistent service cards, useful next actions. ********/
:root[data-theme] body #app .reference-hero{max-width:1256px;width:calc(100% - 64px);min-height:340px;margin:24px auto 0;border-radius:20px;background-position:25% center}
:root[data-theme] body #app .reference-hero .hero-content{padding:40px;min-height:340px;max-width:760px}
:root[data-theme] body #app .hero-content h1{font-size:38px;line-height:1.65;max-width:650px;margin-bottom:12px}
:root[data-theme] body #app .hero-content p{font-size:17px;max-width:560px;margin-bottom:24px}
:root[data-theme] body #app .hero-search{border:1px solid var(--ui-line);box-shadow:0 8px 24px #1f202411;border-radius:12px;max-width:600px}
:root[data-theme] body #app .ref-section{padding-top:32px}
:root[data-theme] body #app .ref-title{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;text-align:start;gap:8px;margin-bottom:20px}
:root[data-theme] body #app .ref-title h2{font-size:22px;margin:0}
:root[data-theme] body #app .ref-title p{font-size:14px;margin:0;color:var(--ui-muted)}
:root[data-theme] body #app .services .service{padding:20px 16px 42px;min-height:158px;gap:12px;border-radius:14px;box-shadow:none;background:var(--ui-surface)!important;transition:border-color var(--ui-motion-fast),background var(--ui-motion-fast)}
:root[data-theme] body #app .services .service:hover{border-color:var(--ui-accent);background:var(--ui-soft)!important;transform:none}
:root[data-theme] body #app .services .service .service-icon{width:38px;height:38px}
:root[data-theme] body #app .services .service h3{font-size:17px;line-height:1.85}
:root[data-theme] body #app :is(.ref-why,.ref-flow,.ref-join,.ref-future){padding:28px;border-radius:18px;margin-block:24px}
:root[data-theme] body #app .ref-why{background:var(--ui-surface)!important;border:1px solid var(--ui-line)}
:root[data-theme] body #app .reference-benefits>div{padding:16px;min-width:0}
:root[data-theme] body #app .reference-benefits h3{font-size:18px}
:root[data-theme] body #app .reference-benefits p{font-size:14px}
:root[data-theme] body #app .service-directory-grid{gap:20px}
:root[data-theme] body #app .directory-card{display:flex;flex-direction:column;gap:12px;box-shadow:none}
:root[data-theme] body #app .directory-card h2{font-size:18px;margin:0}
:root[data-theme] body #app .directory-card p{font-size:16px;line-height:1.9;margin:0}
:root[data-theme] body #app .directory-card .button{margin-top:auto;align-self:flex-start}
:root[data-theme] body #app .service-detail-hero{padding:32px;border-radius:18px;background:var(--ui-soft)!important;border:1px solid var(--ui-line)}
:root[data-theme] body #app .service-detail-hero h1{font-size:24px}
:root[data-theme] body #app .service-breadcrumb{font-size:14px;margin-bottom:20px;color:var(--ui-muted)}
/* Workspace: a quiet shell, distinct records, one clear primary action. */
:root[data-theme] body #app .page-title{padding-block:28px 24px}
:root[data-theme] body #app .page-title h1{font-size:24px;line-height:1.7;margin:0}
:root[data-theme] body #app .page-title p{font-size:16px;color:var(--ui-muted)}
:root[data-theme] body #app .workspace{grid-template-columns:232px minmax(0,1fr);gap:24px}
:root[data-theme] body #app .workspace>section{min-width:0}
:root[data-theme] body #app .sidebar{padding:12px;background:var(--ui-surface)!important;border:1px solid var(--ui-line);border-radius:16px;box-shadow:none;align-self:start}
:root[data-theme] body #app .sidebar a{font-size:14px;line-height:1.8;min-height:46px;padding:11px 12px;border-radius:10px;margin-bottom:4px}
:root[data-theme] body #app .sidebar a.active{background:var(--ui-soft)!important;color:var(--ui-accent)!important;box-shadow:none}
:root[data-theme] body #app .panel-toolbar{font-size:14px;margin-bottom:20px;padding:10px 0;background:transparent!important;border:0;border-bottom:1px solid var(--ui-line)}
:root[data-theme] body #app .role-welcome{padding:24px;border:1px solid var(--ui-line);background:var(--ui-surface)!important;box-shadow:none;border-radius:16px;margin-bottom:20px}
:root[data-theme] body #app .role-welcome h2{font-size:20px;line-height:1.7}
:root[data-theme] body #app .role-welcome p{font-size:16px}
:root[data-theme] body #app .stats{gap:16px;margin-bottom:24px}
:root[data-theme] body #app .stat{padding:20px;min-height:120px;border-radius:14px;box-shadow:none}
:root[data-theme] body #app .stat span{font-size:14px;color:var(--ui-muted)}
:root[data-theme] body #app .stat strong{font-size:24px;line-height:1.5;margin-top:12px;font-variant-numeric:tabular-nums}
:root[data-theme] body #app .stat .metric-icon{width:28px;height:28px;min-width:28px;padding:5px;border-radius:8px}
:root[data-theme] body #app .role-card:has(.actual-order,.bike-card,.document-card,.skill-card,.review-card){background:transparent!important;box-shadow:none!important;padding:0!important;border:0}
:root[data-theme] body #app .actual-order{margin-bottom:16px;border-inline-start:1px solid var(--ui-line);padding:24px;overflow:visible;box-shadow:none}
:root[data-theme] body #app .actual-order[data-status=completed]{border-inline-start-color:var(--ui-accent)}
:root[data-theme] body #app .actual-order .order-top b{font-size:16px;line-height:1.8}
:root[data-theme] body #app .actual-order :is(p,small){font-size:14px;line-height:1.9;max-width:75ch}
:root[data-theme] body #app .actual-order .order-actions{padding-top:16px;margin-top:20px;border-top:1px solid var(--ui-line);gap:8px}
:root[data-theme] body #app .badge{font-size:13px;line-height:1.8;padding:5px 10px;border-radius:var(--ui-radius-pill);max-width:100%;white-space:normal}
:root[data-theme] body #app .symptom-chips{gap:6px;margin-top:12px}
:root[data-theme] body #app .symptom-chips span{font-size:13px;padding:4px 9px;border-radius:6px}
:root[data-theme] body #app .bike-card{padding:20px;gap:16px;border-radius:14px;box-shadow:none}
:root[data-theme] body #app :is(.bike-facts,.report-meta){font-size:14px;gap:12px;padding-top:12px;margin-top:12px;border-top:1px solid var(--ui-line)}
:root[data-theme] body #app :is(.document-card,.skill-card,.review-card,.history-entry,.case-entry){margin-bottom:16px;box-shadow:none}
:root[data-theme] body #app .document-preview{border-radius:12px;background:var(--ui-raised)!important;padding:16px}
:root[data-theme] body #app .document-preview img{width:100%;max-height:400px;object-fit:contain}
/* Forms use clear sections and quiet labels; input text never shrinks on phones. */
:root[data-theme] body #app .field{font-size:14px;line-height:1.9;gap:8px;margin-bottom:20px;color:var(--ui-fg)}
:root[data-theme] body #app .form-grid{gap:20px 24px}
:root[data-theme] body #app .field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){margin-top:8px;font-size:16px;line-height:1.8;padding:12px 14px;border:1px solid var(--ui-control-border);border-radius:var(--ui-radius-control);background-color:var(--ui-surface)!important;box-shadow:none;min-height:var(--ui-field-min)}
:root[data-theme] body #app .field textarea{min-height:120px;resize:vertical}
:root[data-theme] body #app fieldset{border:1px solid var(--ui-line);border-radius:12px;padding:20px;margin:0 0 20px}
:root[data-theme] body #app legend{padding-inline:8px;font-size:16px;font-weight:700}
:root[data-theme] body #app :is(.optional,.role-hint,.surface-note){font-size:14px;line-height:1.9;color:var(--ui-muted)}
:root[data-theme] body #app .form-actions{border-top:1px solid var(--ui-line);padding-top:20px;margin-top:24px;gap:12px}
:root[data-theme] body #app .login{max-width:520px;margin:40px auto;padding:32px;border-radius:18px;box-shadow:var(--product-shadow)}
:root[data-theme] body #app .login h1{font-size:24px;line-height:1.7}
:root[data-theme] body #app .account-role{padding:16px;border:1px solid var(--ui-line);border-radius:12px;line-height:1.8}
:root[data-theme] body #app .account-role:has(input:checked){background:var(--ui-soft)!important;border-color:var(--ui-accent)!important}
/* Financial and administrative data stay role-bound; only presentation changes. */
:root[data-theme] body #app .table-wrap{border:1px solid var(--ui-line);border-radius:12px;box-shadow:none}
:root[data-theme] body #app table th{background:var(--ui-raised)!important;font-size:14px;font-weight:600;white-space:normal;padding:16px}
:root[data-theme] body #app table td{font-size:14px;padding:16px;line-height:1.9;border-color:var(--ui-line)}
:root[data-theme] body #app .invoice-total{background:var(--ui-soft)!important;border-radius:12px;padding:20px;font-size:18px}
:root[data-theme] body #app .invoice-total strong{font-size:22px}
:root[data-theme] body #app .finance-breakdown{border:1px solid var(--ui-line);border-radius:12px;box-shadow:none}
:root[data-theme] body #app .finance-breakdown>div{padding:16px 20px;gap:16px}
:root[data-theme] body #app .finance-breakdown>div:last-child{background:var(--ui-soft)!important}
:root[data-theme] body #app .finance-payment-item{padding:20px;border-radius:12px}
:root[data-theme] body #app .finance-status{font-size:14px;line-height:1.8;border-radius:8px}
:root[data-theme] body #app .places-hero{background:var(--ui-surface)!important;padding:28px;border-radius:16px;gap:20px}
:root[data-theme] body #app .places-hero h1{font-size:24px;margin:0 0 8px}
:root[data-theme] body #app .places-filters{border-radius:14px;box-shadow:none;padding:20px;gap:16px}
:root[data-theme] body #app .place-card{padding:24px;border-radius:14px;box-shadow:none}
:root[data-theme] body #app .place-card h3{font-size:18px;line-height:1.8}
:root[data-theme] body #app .place-card p{font-size:14px}
:root[data-theme] body #app .place-navigation .navigation-logo{min-height:48px;min-width:64px;padding:8px 12px;font-size:13px;flex-direction:row;gap:6px}
:root[data-theme] body #app .place-navigation .navigation-logo img{width:24px;height:24px}
:root[data-theme] body #app .empty{padding:36px 24px;min-height:160px;border-radius:12px;box-shadow:none}
:root[data-theme] body #app .empty b{font-size:16px}
:root[data-theme] body #app .empty p{font-size:16px;line-height:1.9;max-width:52ch}
:root[data-theme] body .ref-footer{background:var(--ui-surface)!important;border-top:1px solid var(--ui-line);padding:40px max(24px,calc((100vw - 1256px)/2));gap:32px;font-size:14px}
:root[data-theme] body .navigation-drawer{background:var(--ui-surface);color:var(--ui-fg)}
:root[data-theme] body .navigation-drawer a{border-radius:10px;font-size:16px}
:root[data-theme] body .navigation-drawer .drawer-heading{background:var(--ui-raised)}
:root[data-theme] body .panel-quick-nav{background:var(--ui-surface)!important;border-top:1px solid var(--ui-line);box-shadow:none}
@media(min-width:801px) and (max-width:1099px){:root[data-theme] body #app .workspace{grid-template-columns:200px minmax(0,1fr);gap:20px}:root[data-theme] body>header{gap:16px}.header-service-search{max-width:none;flex-basis:260px}}
@media(max-width:800px){
 :root[data-theme] body #app .container{padding-inline:20px}
 :root[data-theme] body #app .workspace{grid-template-columns:minmax(0,1fr)}
 :root[data-theme] body #app .page-title h1{font-size:22px}
 :root[data-theme] body #app .role-welcome h2{font-size:18px}
 :root[data-theme] body #app .panel-heading h2{font-size:21px}
 :root[data-theme] body #app .service-detail-hero h1{font-size:24px}
}
@media(max-width:1023px){
 :root[data-theme] body:not(.gateway-view)>header{display:grid!important;grid-template-columns:minmax(0,1fr) repeat(2,44px);direction:rtl;align-items:center;justify-content:normal;padding:10px 16px!important;gap:8px!important;min-height:64px;position:relative}
 :root[data-theme] body>header .brand-symbol{width:144px;height:48px;flex-basis:144px}
 :root[data-theme] body>header .brand-name{font-size:18px}
 :root[data-theme] body>header .header-account-actions>.button,:root[data-theme] body>header .header-mobile-toggle{flex:0 0 44px;width:44px;min-width:44px;height:44px}
 :root[data-theme] body>header .brand{grid-column:1;grid-row:1;justify-self:start;margin:0!important;max-width:100%;min-width:0;gap:5px}
 :root[data-theme] body>header .header-account-actions{display:contents!important}
 :root[data-theme] body>header .header-account-actions>.button{grid-column:2;grid-row:1;order:initial!important;margin:0;padding:10px!important;display:grid!important;place-items:center;line-height:1;box-sizing:border-box}
 :root[data-theme] body>header .header-account-actions .account-link-text{display:none!important}
 :root[data-theme] body>header .header-account-actions .mobile-account-icon{display:block;width:22px;height:22px}
 :root[data-theme] body>header .header-mobile-toggle{grid-column:3;grid-row:1;order:initial!important;margin:0}
 .header-service-search{grid-column:1/-1;grid-row:2;order:6!important;flex:1 1 100%;max-width:none;min-width:0;direction:rtl;margin-top:4px}
 :root[data-theme] body>header .header-service-search input{font-size:16px;min-height:46px}
 :root[data-theme] body>header .header-mobile-toggle{display:grid!important;place-items:center;padding:10px;box-sizing:border-box}
 :root[data-theme] body:not(.gateway-view)>header nav{display:none!important}
 :root[data-theme] body>header #logout-button{display:none!important}
 :root[data-theme] body.drawer-ready #app .sidebar,:root[data-theme] body.drawer-ready #app .panel-nav-toggle{display:none!important}
 :root[data-theme] body.drawer-ready #app .workspace{grid-template-columns:minmax(0,1fr)}
 :root[data-theme] body>header .brand{direction:rtl}
}
@media(max-width:600px){
 :root[data-theme] body{font-size:16px}
 :root[data-theme] body #app .reference-hero{width:calc(100% - 32px);margin:16px auto 0;min-height:300px;border-radius:16px;background-position:28% center}
 :root[data-theme] body #app .reference-hero .hero-content{min-height:300px;padding:24px 20px}
 :root[data-theme] body #app .hero-content h1{font-size:27px;line-height:1.7;margin-bottom:12px}
 :root[data-theme] body #app .hero-content p{font-size:14px;line-height:1.9;margin-bottom:20px}
 :root[data-theme] body #app .hero-search{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px}
 :root[data-theme] body #app .hero-search select{grid-column:1/-1;font-size:16px}
 :root[data-theme] body #app .hero-search .button,:root[data-theme] body #app .hero-search button{font-size:14px;padding:10px 14px;min-height:44px}
 :root[data-theme] body #app .container{padding-inline:16px}
 :root[data-theme] body #app .ref-title h2{font-size:18px}
 :root[data-theme] body #app .ref-title p{font-size:14px;line-height:1.8}
 :root[data-theme] body #app .services .service{min-height:152px;padding:16px 14px 40px;gap:10px}
 :root[data-theme] body #app .services .service .service-icon{width:32px;height:32px}
 :root[data-theme] body #app .services .service h3{font-size:16px;line-height:1.85}
 :root[data-theme] body #app :is(.ref-why,.ref-flow,.ref-join,.ref-future){padding:20px 16px;margin-block:20px}
 :root[data-theme] body #app :is(.directory-card,.place-card,.document-card,.skill-card,.review-card,.history-entry,.case-entry,.actual-order){padding:18px 16px;border-radius:14px}
 :root[data-theme] body #app .directory-card h2{font-size:21px}
 :root[data-theme] body #app :is(.page-title h1,.places-hero h1){font-size:20px}
 :root[data-theme] body #app .page-title{padding-block:20px}
 :root[data-theme] body #app .panel-heading{gap:12px;padding-bottom:12px;margin-bottom:16px}
 :root[data-theme] body #app .panel-heading h2{font-size:16px}
 :root[data-theme] body #app :is(.card,.role-card){padding:20px 16px}
 :root[data-theme] body #app .role-welcome{padding:20px 16px}
 :root[data-theme] body #app .role-welcome h2{font-size:16px}
 :root[data-theme] body #app .actual-order .order-top b{font-size:18px}
 :root[data-theme] body #app .actual-order :is(p,small){font-size:14px;line-height:1.9}
 :root[data-theme] body #app .actual-order .order-actions{padding-top:14px;margin-top:16px}
 :root[data-theme] body #app .stats{gap:8px;margin-bottom:20px}
 :root[data-theme] body #app .stat{padding:12px;height:auto;min-height:104px;border-radius:12px}
 :root[data-theme] body #app .stat strong{font-size:25px;line-height:1.3;margin:0}
 :root[data-theme] body #app .stat span{font-size:12.5px;line-height:1.8}
 :root[data-theme] body #app .stat .metric-icon{display:none}
 :root[data-theme] body #app .field{margin-bottom:16px;font-size:14px}
 :root[data-theme] body #app .field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;padding:12px;min-height:48px}
 :root[data-theme] body #app fieldset{padding:16px 12px}
 :root[data-theme] body #app .form-grid{gap:16px}
 :root[data-theme] body #app .login{width:calc(100% - 32px);margin:24px auto;padding:24px 20px!important}
 :root[data-theme] body #app .login h1{font-size:25px}
 :root[data-theme] body #app .account-role{padding:12px}
 :root[data-theme] body #app .form-actions .button{width:100%}
 :root[data-theme] body #app .finance-breakdown>div{padding:14px;gap:12px}
 :root[data-theme] body #app .finance-breakdown :is(span,b){font-size:14px;line-height:1.9}
 :root[data-theme] body #app .invoice-total strong{font-size:18px}
 :root[data-theme] body #app .places-hero{padding:18px 16px}
 :root[data-theme] body #app .places-filters{padding:16px;gap:12px}
 :root[data-theme] body #app .places-filters .field{margin:0}
 :root[data-theme] body #app .table-wrap:has(.mobile-data-table){border:0}
 :root[data-theme] body #app .mobile-data-table td{padding:12px!important;font-size:14px}
 :root[data-theme] body #app .empty{padding:28px 16px;min-height:140px}
 :root[data-theme] body .ref-footer{padding:28px 16px;font-size:14px;gap:24px 16px}
}
@media(max-width:360px){:root[data-theme] body>header .brand-symbol{width:126px;height:42px;flex-basis:126px}:root[data-theme] body>header .brand-name{font-size:16px}}
@media(prefers-reduced-motion:reduce){:root[data-theme] body *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Persistent, labelled destinations and deterministic parent routes. */
.panel-quick-nav svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme] body .journey-nav{max-width:1320px;margin:0 auto;padding:14px 32px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;direction:rtl;color:var(--ui-muted);font-size:14px}
.journey-path{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.journey-path [aria-current=page]{font-weight:600;color:var(--ui-fg);overflow-wrap:anywhere}
:root[data-theme] body .journey-nav a{color:var(--ui-accent);min-height:44px;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
:root[data-theme] body .journey-parent{font-weight:600}
@media(min-width:1024px){
 :root[data-theme] body:not(.gateway-view)>header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;grid-auto-rows:auto;align-items:center;direction:rtl;gap:8px 20px;padding:12px max(24px,calc((100vw - 1280px)/2));}
 :root[data-theme] body>header .brand{grid-column:1;grid-row:1;margin:0!important}
 :root[data-theme] body>header .brand-symbol{width:192px;height:64px}
 :root[data-theme] body>header .brand-name{font-size:22px}
 :root[data-theme] body>header .header-service-search{grid-column:2;grid-row:1;min-width:0;max-width:none;width:100%;margin:0}
 :root[data-theme] body>header .header-account-actions{grid-column:3;grid-row:1;display:flex;align-items:center;gap:8px;margin:0!important;min-width:0}
 :root[data-theme] body>header .header-account-actions .button{min-height:44px;padding:10px 14px;font-size:14px;white-space:nowrap;background:var(--ui-soft)!important;color:var(--ui-accent)!important;box-shadow:none}
 :root[data-theme] body>header .account-logout{font-size:14px;padding:10px 12px;min-height:44px}
 :root[data-theme] body>header .header-mobile-toggle{display:none!important}
 :root[data-theme] body:not(.gateway-view)>header nav{display:flex!important;position:static!important;grid-column:1/-1;grid-row:2;margin:0!important;padding:6px 0 0!important;border:0;border-top:1px solid var(--ui-line);gap:24px;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-start;box-shadow:none!important;border-radius:0;max-height:none}
 :root[data-theme] body>header nav a{min-height:40px;padding:8px 0;font-size:14px}
}
@media(max-width:1023px){
 :root[data-theme] body .journey-nav{padding:8px 16px;font-size:13px;gap:0 12px}
 :root[data-theme] body .journey-path{display:none}
 :root[data-theme] body .journey-parent{min-height:40px}
 :root[data-theme] body .panel-quick-nav{position:fixed;inset-inline:0;bottom:0;z-index:var(--ui-layer-bottom-nav);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px 12px calc(6px + env(safe-area-inset-bottom));direction:rtl}
 :root[data-theme] body .panel-quick-nav a{display:flex;min-width:0;min-height:56px;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;border-radius:10px;text-decoration:none}
 :root[data-theme] body.has-quick-nav #app{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
 :root[data-theme] body .panel-quick-nav a{font-size:12px;line-height:1.5}
 :root[data-theme] body.has-quick-nav .ref-footer{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 :root[data-theme] body.gateway-view .panel-quick-nav{display:none!important}
}
@media print{.journey-nav{display:none!important}}

@media(min-width:1024px){:root[data-theme] body .panel-quick-nav{display:none!important}}

body>.journey-nav ~ #app .service-breadcrumb{display:none}

.service-detail-grid>.card:only-child{grid-column:1/-1}

/* Mobile Apps Prototyping Kit: native component states and shared patterns. */
:root[data-theme] body #app :is(input,select,textarea)::placeholder{color:var(--ui-muted);opacity:1}
:root[data-theme] body #app .field :is(input,select,textarea):focus{border-color:var(--ui-accent);outline:2px solid color-mix(in srgb,var(--ui-accent) 18%,transparent);outline-offset:1px}
:root[data-theme] body #app .field :is(input,select,textarea):disabled{background:var(--ui-raised)!important;color:var(--ui-muted)!important;border-color:var(--ui-line);opacity:.65}
:root[data-theme] body #app :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--ui-accent)}
:root[data-theme] body #app :is(input[type=checkbox],input[type=radio]){width:20px;height:20px;min-width:20px;flex:0 0 20px}
:root[data-theme] body #app :is(.filter-tabs,.live-filters,.notification-toolbar .hero-actions){background:var(--ui-raised);padding:4px;border-radius:var(--ui-radius-control);gap:4px}
:root[data-theme] body #app :is(.filter-tabs,.live-filters) button{border:0;border-radius:8px;padding:10px 16px;min-height:44px;background:transparent!important;box-shadow:none}
:root[data-theme] body #app :is(.filter-tabs,.live-filters) button.selected{background:var(--ui-surface)!important;color:var(--ui-fg)!important;font-weight:600}
:root[data-theme] body #app :is(.filter-tabs,.live-filters) button[aria-selected=true]{background:var(--ui-surface)!important;color:var(--ui-accent)!important}
:root[data-theme] body #app summary{list-style-position:inside;padding:12px 0;min-height:44px;font-size:14px;font-weight:600;cursor:pointer}
:root[data-theme] body #app details{border-color:var(--ui-line)}
:root[data-theme] body #app .invoice-pending-action{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;background:var(--ui-soft);border-radius:var(--ui-radius-control);margin-bottom:12px;min-width:0}
:root[data-theme] body #app .invoice-pending-action b{font-size:14px;overflow-wrap:anywhere}
:root[data-theme] body #app .invoice-edit-row{border-radius:var(--ui-radius-card);background:var(--ui-surface);padding:16px;border:1px solid var(--ui-line);gap:12px}
:root[data-theme] body #app [data-line=unit_price],:root[data-theme] body #app [data-line=quantity],:root[data-theme] body #app [name=odometer]{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
:root[data-theme] body #app :is(.invoice-total,.finish-total){background:var(--ui-soft)!important;border:0;border-radius:var(--ui-radius-control);padding:16px}
:root[data-theme] body #app .field-error{font-size:12px;color:var(--ui-negative)!important}
:root[data-theme] body #app :is(.skill-event,.history-entry,.case-entry){border-radius:var(--ui-radius-control);background:var(--ui-surface)!important;border:1px solid var(--ui-line);padding:16px}
:root[data-theme] body #app :is(.ticket-message,.conversation-message){background:var(--ui-raised);border-radius:16px 16px 4px 16px;padding:16px}
:root[data-theme] body #app :is(.ticket-message.mine,.conversation-message.mine){background:var(--ui-accent);color:var(--ui-on-accent);border-radius:16px 16px 16px 4px}
:root[data-theme] body #toast{background:var(--ui-fg);color:var(--ui-fg);border-radius:16px;padding:16px;font-size:12px;box-shadow:none;gap:16px;align-items:center;background:var(--ui-soft)}
:root[data-theme] body :is(dialog,.dialog,.modal-content){background:var(--ui-surface);color:var(--ui-fg);border:1px solid var(--ui-line);border-radius:20px;padding:24px;box-shadow:0 12px 40px #1f202426}
:root[data-theme] body dialog::backdrop{background:#1f202466}
:root[data-theme] body .panel-quick-nav a{color:var(--ui-muted)!important}
:root[data-theme] body .panel-quick-nav a.active{color:var(--ui-accent)!important;background:transparent!important}
:root[data-theme] body .panel-quick-nav svg{stroke-width:1.7}
@media(max-width:600px){:root[data-theme] body #app .invoice-pending-action{flex-direction:column;align-items:stretch}:root[data-theme] body #app .invoice-pending-action .button{width:100%}:root[data-theme] body #app :is(.field input,.field select,.field textarea){font-size:16px}}

:root[data-theme] body #app .field select{width:100%;appearance:none;background-image:url('/assets/kit/chevron-down.svg')!important;background-repeat:no-repeat;background-position:left 16px center;padding-inline-end:40px}
:root[data-theme] body #app summary{list-style:none;display:block;position:relative;padding:16px 0 16px 28px;font-weight:400}
:root[data-theme] body #app summary::-webkit-details-marker{display:none}
:root[data-theme] body #app summary::after{content:'';position:absolute;left:0;top:50%;width:12px;height:12px;transform:translateY(-50%);background:url('/assets/kit/chevron-down.svg') no-repeat center}
:root[data-theme] body #app details[open]>summary::after{transform:translateY(-50%) rotate(180deg)}
:root[data-theme] body #toast>span{flex:1;min-width:0;overflow-wrap:anywhere}
:root[data-theme] body #toast>img{flex:0 0 auto}
:root[data-theme] body #toast .toast-close{display:grid;place-items:center;flex:0 0 32px;min-width:32px;height:32px;padding:10px;border:0;background:transparent!important;border-radius:8px}
:root[data-theme] body dialog[data-confirm-action]{max-width:min(300px,calc(100vw - 32px));width:100%;border:0;border-radius:16px;padding:16px;text-align:center;box-shadow:none}
:root[data-theme] body dialog[data-confirm-action] h2{font-size:16px;font-weight:800;margin:8px 8px 28px;line-height:1.7}
:root[data-theme] body dialog[data-confirm-action] form{display:flex;gap:8px}
:root[data-theme] body dialog[data-confirm-action] button{flex:1;min-width:0;min-height:44px;border-radius:12px;font-size:12px;padding:12px 16px}
:root[data-theme] body dialog[data-confirm-action] .button{background:var(--ui-accent)!important;color:var(--ui-on-accent)!important;border:0}
:root[data-theme] body dialog[data-confirm-action] .secondary{border:1.5px solid var(--ui-accent)!important;color:var(--ui-accent)!important;background:transparent!important}

/* Remaining kit components read directly in Chrome at the owner's request.
   Native inputs retain keyboard, required, disabled and form semantics. */
:root[data-theme] body #app input:is([type=checkbox],[type=radio]){appearance:none;-webkit-appearance:none;width:32px;height:32px;min-width:32px;min-height:32px;flex:0 0 32px;padding:0;border:1.5px solid var(--kit-neutral-light-darkest)!important;background-color:var(--ui-surface)!important;vertical-align:middle;cursor:pointer}
:root[data-theme] body #app input[type=checkbox]{border-radius:8px}
:root[data-theme] body #app input[type=checkbox]:checked{border:0!important;background:var(--ui-accent) url('/assets/kit/checkbox-selected.svg') no-repeat center!important;background-size:32px 32px!important}
:root[data-theme] body #app input[type=radio]{border-radius:50%}
:root[data-theme] body #app input[type=radio]:checked{border:0!important;box-shadow:inset 0 0 0 10px var(--ui-accent)}
:root[data-theme] body #app input[type=checkbox]:indeterminate{border-color:var(--ui-accent)!important;background:linear-gradient(var(--ui-on-accent),var(--ui-on-accent)) center/16px 2px no-repeat,var(--ui-accent)!important}
:root[data-theme] body #app input:is([type=checkbox],[type=radio]):disabled{opacity:.5;cursor:not-allowed}
:root[data-theme] body #app input[role=switch]{appearance:none;width:45px;min-width:45px;height:28px;min-height:28px;flex:0 0 45px;border:0!important;border-radius:200px;background:radial-gradient(circle at 14px 14px,var(--ui-surface) 0 10px,transparent 10.5px),var(--kit-neutral-light-dark)!important;box-shadow:none}
:root[data-theme] body #app input[role=switch]:checked{background:radial-gradient(circle at 31px 14px,var(--ui-surface) 0 10px,transparent 10.5px),var(--ui-accent)!important;box-shadow:none}
:root[data-theme] body #app label:has(>input:is([type=checkbox],[type=radio])){min-height:44px;gap:12px;align-items:center}
:root[data-theme] body :is(.button,.secondary):not(:disabled):hover{filter:none;background-color:var(--kit-highlight-dark)!important;color:var(--ui-on-accent)!important;border-color:var(--kit-highlight-dark)!important}
:root[data-theme] body :is(.button,.secondary):not(:disabled):active{background-color:var(--kit-highlight-darkest)!important}
:root[data-theme] body #app :is(input,select,textarea):is(:focus,:focus-visible){border-color:var(--ui-accent)!important}
:root[data-theme] body #app :is(input,select,textarea)[aria-invalid=true]{border-color:var(--ui-negative)!important}
:root[data-theme] body #app :is(.ticket-message,.conversation-message){padding:12px 16px;border-radius:24px;background:var(--ui-raised);color:var(--ui-fg)}
:root[data-theme] body #app :is(.ticket-message.mine,.conversation-message.mine){background:var(--ui-accent)!important;color:var(--ui-on-accent)!important;border-radius:24px}
:root[data-theme] body #app :is(.ticket-message.mine,.conversation-message.mine) :is(p,small,strong,b){color:inherit!important}
:root[data-theme] body>header .header-service-search form{border:0;background:var(--ui-raised);border-radius:24px;padding:0 16px;gap:16px}
:root[data-theme] body>header .header-service-search form:focus-within{background:var(--ui-raised)}
:root[data-theme] body>header .header-service-search input{height:44px;min-height:44px;padding:12px 0;font-size:14px}
:root[data-theme] body .leaflet-container{background:var(--ui-raised);color:var(--ui-fg)}
:root[data-theme] body .leaflet-bar,:root[data-theme] body .leaflet-control-layers{border-color:var(--ui-line);box-shadow:0 1px 8px #1f202426}
:root[data-theme] body .leaflet-bar a,:root[data-theme] body .leaflet-control-layers,:root[data-theme] body .leaflet-popup-content-wrapper,:root[data-theme] body .leaflet-popup-tip,:root[data-theme] body .leaflet-control-attribution{background:var(--ui-surface);color:var(--ui-fg);border-color:var(--ui-line)}
:root[data-theme] body .leaflet-bar a:hover{background:var(--ui-soft);color:var(--ui-accent)}
:root[data-theme] body .leaflet-control-attribution a{color:var(--ui-accent)}

:root[data-theme] body #app .progress{counter-reset:kit-step;display:flex;gap:16px;padding:8px}
:root[data-theme] body #app .progress span{counter-increment:kit-step;display:flex;flex:1;flex-direction:column;align-items:center;gap:12px;border:0!important;padding:0;font-size:12px;text-align:center;color:var(--kit-neutral-dark-lightest)!important}
:root[data-theme] body #app .progress span::before{content:counter(kit-step,persian);width:24px;height:24px;border-radius:50%;background:var(--ui-raised);color:var(--kit-neutral-dark-lightest);display:grid;place-items:center;font-size:10px}
:root[data-theme] body #app .progress span.active{color:var(--ui-fg)!important;font-weight:600}
:root[data-theme] body #app .progress span.active::before{background:var(--ui-accent);color:var(--ui-on-accent)}

:root[data-theme] body #app .conversation-message{max-width:85%;width:fit-content;margin:12px auto 12px 0;border:0;background:var(--ui-raised)!important;border-radius:24px}
:root[data-theme] body #app .conversation-message.mine{margin-inline-start:auto;margin-inline-end:0}
:root[data-theme] body #app .conversation-message .report-text{background:transparent!important;border:0;padding:0;margin:4px 0 0}
:root[data-theme] body #app .review-stars{color:var(--ui-accent)}

/* Owner-supplied identity: preserve the original image, ratio and colors. */
:root[data-theme] body .ref-footer .brand-symbol{width:192px;height:64px;object-fit:contain;filter:none}
:root[data-theme] body #app .gateway-wordmark>img{width:180px;height:60px;object-fit:contain;vertical-align:middle;margin-inline-end:8px}
:root[data-theme] body #app .gateway-shop>img{width:192px;height:64px;object-fit:contain}
.print-brand{display:none}
@media print{.print-brand{display:block;margin-bottom:16px}.print-brand img{object-fit:contain}}
