/* MekanikeMan UX03 — shared interaction and surface language.
   Non-destructive layer: product workflows and API-facing identifiers remain unchanged. */
:root{
  --mm-radius-card:22px;
  --mm-radius-control:12px;
  --mm-focus:#0d8266;
  --mm-control-height:44px;
  --mm-content-width:1200px;
}
:root[data-theme="dark"]{--mm-focus:#b9ec79}
html{scroll-padding-top:24px}
.ux03-surface{font-family:Vazirmatn,Tahoma,sans-serif;-webkit-font-smoothing:antialiased}
.ux03-surface .topbar{box-sizing:border-box;min-width:0}
.ux03-surface .topbar .brand{min-width:0;text-decoration:none}
.ux03-surface .topbar .brand strong{letter-spacing:-.025em}
.ux03-surface .topbar .brand small{font-size:12px;color:var(--muted)}
.ux03-surface .topbar .top-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end}
.ux03-surface :where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--mm-focus);outline-offset:3px}
.ux03-surface :where(input,select,textarea){accent-color:var(--green)}
.ux03-surface :where(button,a,summary){-webkit-tap-highlight-color:transparent}
.ux03-surface :where(.account-hero,.provider-hero,.owner-hero,.feature-hub-hero){position:relative;isolation:isolate}
.ux03-surface :where(.account-hero,.provider-hero,.owner-hero,.feature-hub-hero) h1{font-weight:700;letter-spacing:-.035em;text-wrap:balance}
.ux03-surface :where(.account-hero,.provider-hero,.owner-hero,.feature-hub-hero) p{max-width:65ch;line-height:2}
.ux03-surface :where(.account-card,.profile-card,.business-card,.claim-card,.registration-card,.offer-card){border-radius:var(--mm-radius-card);overflow-wrap:anywhere}
.ux03-surface :where(.primary-btn,.soft-btn,.ghost-btn){min-height:var(--mm-control-height);border-radius:var(--mm-radius-control);font-weight:600}
.ux03-surface :where(.account-gate,.provider-gate,.business-gate){border-radius:var(--mm-radius-card)}
.ux03-surface :where(.eyebrow){letter-spacing:.02em;font-weight:700}
@media(max-width:600px){
 .ux03-surface .topbar{padding-inline:16px;gap:10px}
 .ux03-surface .topbar .brand strong{font-size:18px}
 .ux03-surface :where(.account-hero,.provider-hero,.owner-hero,.feature-hub-hero) h1{font-size:clamp(26px,7vw,34px);line-height:1.55}
 .ux03-surface :where(.account-hero,.provider-hero,.owner-hero,.feature-hub-hero) p{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.ux03-surface :where(button,a,summary){transition:none!important}}

/* Cohesive status-and-action hierarchy across customer and provider spaces. */
.ux03-surface :where(.account-hero,.provider-hero,.owner-hero,.feature-hub-hero) .eyebrow{display:inline-flex;align-items:center;gap:9px;min-height:28px;color:var(--accent)}
.ux03-surface :where(.account-hero,.provider-hero,.owner-hero,.feature-hub-hero) .eyebrow::before{content:'';width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px var(--green-soft)}
.ux03-surface :where(.account-card,.profile-card,.business-card,.claim-card,.registration-card,.offer-card){transition:border-color .18s ease,box-shadow .18s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .ux03-surface :where(.account-card,.profile-card,.business-card,.claim-card,.registration-card,.offer-card):hover{border-color:var(--accent)}
}
.ux03-surface :where(.account-jump-nav,.provider-jump-nav){scroll-margin-top:18px}
.ux03-surface :where(.account-jump-nav,.provider-jump-nav) a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-underline-offset:4px}
.ux03-surface :where(.primary-btn,.soft-btn,.ghost-btn):disabled{cursor:not-allowed;opacity:.55}
.ux03-surface :where(input,select,textarea):focus-visible{border-color:var(--mm-focus)}
@media(max-width:390px){
 .ux03-surface :where(.account-hero,.provider-hero,.owner-hero,.feature-hub-hero) h1{font-size:26px}
 .ux03-surface .topbar .top-actions{gap:8px}
}
@media(prefers-reduced-motion:reduce){.ux03-surface :where(.account-card,.profile-card,.business-card,.claim-card,.registration-card,.offer-card){transition:none}}

/* Empty states are first-class product surfaces, not tiny fallback messages. */
.ux03-surface .account-empty{
  position:relative;min-height:148px;display:flex;align-items:center;justify-content:center;
  padding:38px 24px 24px;border:1px dashed var(--line);border-radius:var(--mm-radius-card);
  background:var(--surface);color:var(--muted);font-size:14px;line-height:2;text-align:center;
}
.ux03-surface .account-empty::before{
  content:'◌';position:absolute;top:12px;inset-inline-start:18px;
  display:grid;place-items:center;width:28px;height:28px;border-radius:10px;
  background:var(--green-soft);color:var(--accent);font-size:23px;line-height:1;
}
.ux03-surface .account-empty a{color:var(--accent);font-weight:700;text-underline-offset:4px}
.ux03-surface :where(.account-card,.profile-card,.business-card,.offer-card) :where(p,small){line-height:1.9}
@media(max-width:600px){.ux03-surface .account-empty{padding:40px 18px 20px;min-height:132px;font-size:13px}}

/* Explicit account loading/error states: never show a silent stale dashboard. */
.ux03-surface .account-load-status{padding:16px 20px;margin:0 0 18px;border:1px solid var(--line);border-radius:var(--mm-radius-control);background:var(--green-soft);color:var(--ink);font-size:14px;line-height:1.9}
.ux03-surface .account-load-status.is-error{background:var(--surface);border-color:#bc6f50;color:var(--ink)}
.ux03-surface .account-load-status.hidden{display:none}

.ux03-surface .account-load-status.is-error{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.ux03-surface .account-load-status .account-retry-btn{flex:0 0 auto;border:1px solid var(--line);padding:9px 16px;background:var(--surface);color:var(--accent)}

/* Production-minded legibility on real customer and workshop data surfaces. */
.ux03-surface :where(.account-card,.profile-card,.business-card,.offer-card,.registration-card){background:var(--surface);color:var(--ink);border-color:var(--line)}
.ux03-surface .account-card>header{align-items:flex-start;min-width:0}
.ux03-surface .account-card>header>div{min-width:0;overflow-wrap:anywhere}
.ux03-surface .account-card h3{font-size:16px;line-height:1.6;letter-spacing:-.015em}
.ux03-surface .account-card small{font-size:12px;line-height:1.7}
.ux03-surface .account-meta span{font-size:12px;line-height:1.65}
.ux03-surface .account-status{font-size:12px;font-weight:700;line-height:1.7;padding:6px 11px}
.ux03-surface .offer-card b,.ux03-surface .offer-price{font-size:14px}
.ux03-surface .offer-card p{font-size:13px;line-height:1.8}
.ux03-surface .offer-actions button,.ux03-surface .approval-actions button{min-height:44px;padding:9px 14px;font-size:13px;font-weight:700}
.ux03-surface .account-summary .summary-card{background:var(--surface);border-color:var(--line);border-radius:16px}
.ux03-surface .account-summary .summary-card span{font-size:12px;line-height:1.5}
.ux03-surface .account-summary .summary-card b{font-variant-numeric:tabular-nums}
.ux03-surface .offer-terms summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.ux03-surface .invoice-totals{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){
 .ux03-surface .account-card>header{flex-wrap:wrap}
 .ux03-surface .account-status{white-space:normal;max-width:100%}
 .ux03-surface .account-summary .summary-card{min-width:0}
 .ux03-surface .offer-actions button,.ux03-surface .approval-actions button{flex:1 1 120px}
}

/* Fine-grained keyboard, density and safe-area polish for Persian product flows. */
.ux03-surface :where(.account-card,.offer-card,.profile-card,.business-card) :where(a,button,summary){scroll-margin-block:24px}
.ux03-surface :where(.account-card,.offer-card,.profile-card,.business-card) :where(a,button,summary):focus-visible{outline-offset:4px;position:relative;z-index:2}
.ux03-surface .account-jump-nav{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-padding-inline:16px}
.ux03-surface .account-jump-nav a{white-space:nowrap;flex-shrink:0}
.ux03-surface .approval-actions,.ux03-surface .offer-actions{flex-wrap:wrap}
.ux03-surface .account-empty{overflow-wrap:anywhere}
.ux03-surface .account-load-status{overflow-wrap:anywhere}
.ux03-surface :where(.invoice-totals,.account-meta,.offer-terms){min-width:0}
@media(max-width:600px){
 .ux03-surface :where(.account-main,.provider-main,.owner-main){padding-bottom:max(72px,calc(env(safe-area-inset-bottom) + 48px))}
 .ux03-surface .account-jump-nav{margin-inline:-4px;padding-inline:4px}
}
@media(forced-colors:active){
 .ux03-surface :where(.account-status,.account-empty,.account-load-status){border:1px solid CanvasText}
 .ux03-surface .account-empty::before{border:1px solid CanvasText}
}

/* Robust adaptive typography and form controls across account and partner journeys. */
.ux03-surface :where(.account-main,.provider-main,.owner-main,.feature-hub-main){min-width:0}
.ux03-surface :where(.account-main,.provider-main,.owner-main) :where(input,select,textarea){max-width:100%;min-width:0;font-size:max(16px,1em)}
.ux03-surface :where(.account-main,.provider-main,.owner-main) :where(label,legend){line-height:1.8}
.ux03-surface :where(.account-main,.provider-main,.owner-main) :where(h1,h2,h3){overflow-wrap:break-word}
.ux03-surface :where(.account-main,.provider-main,.owner-main) :where(p,li,dd){overflow-wrap:anywhere}
.ux03-surface :where(.account-main,.provider-main,.owner-main) :where(button,[role="button"]){touch-action:manipulation}
.ux03-surface :where(.account-main,.provider-main,.owner-main) :where(button,[role="button"]):not([disabled]){cursor:pointer}
.ux03-surface :where(.account-main,.provider-main,.owner-main) :where([aria-busy="true"]){cursor:progress}
@media(max-width:600px){
 .ux03-surface :where(.account-main,.provider-main,.owner-main) :where(input,select,textarea){font-size:16px}
 .ux03-surface :where(.account-main,.provider-main,.owner-main) :where(.account-card,.profile-card,.business-card){min-width:0}
}
@media(prefers-contrast:more){
 .ux03-surface :where(.account-card,.profile-card,.business-card,.offer-card,.registration-card,.account-empty){border-width:2px}
 .ux03-surface :where(.primary-btn,.soft-btn,.ghost-btn):focus-visible{outline-width:4px}
}

/* Actionable empty states keep the customer journey moving. */
.ux03-surface .account-empty-action{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-height:190px;padding-block:40px 24px}
.ux03-surface .account-empty-action strong{color:var(--ink);font-size:17px;line-height:1.6}
.ux03-surface .account-empty-action p{margin:0;max-width:52ch;color:var(--muted);font-size:13px;line-height:1.9}
.ux03-surface .account-empty-action a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:9px 16px;border-radius:12px}

.ux03-surface .offer-expired-note{display:inline-block;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink-2);font-size:13px;line-height:1.8}
