/* UI Polish (visual-only). Keep compatible with existing markup. */
:root{
  --ui-card-radius: 14px;
  --ui-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  --ui-border: rgba(15,23,42,.10);
  --ui-muted: rgba(15,23,42,.62);
}

/* KPI tiles */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 980px){
  .kpi-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.kpi{
  border:1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 14px 14px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.kpi .kpi-label{ color: var(--ui-muted); font-size: 13px; }
.kpi .kpi-value{ font-size: 22px; font-weight: 900; letter-spacing:-.3px; margin-top:6px; }
.kpi .kpi-sub{ color: var(--ui-muted); font-size: 12px; margin-top:6px; }
.kpi .kpi-badge{ display:inline-flex; align-items:center; gap:6px; margin-top:8px; }


/* Hint / explanation blocks (trust + clarity) */
.hint-box{
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(15, 23, 42, .02);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
}
.hint-box b{ font-weight: 700; }
.hint-box .hint-title{
  display:flex; align-items:center; gap:8px;
  margin-bottom:6px;
}
.hint-dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(33,160,56,.9);
  flex: 0 0 auto;
}
.hint-box .hint-text{
  color: rgba(15,23,42,.70);
  line-height: 1.35;
  font-size: 14px;
}

/* Tooltip icon (uses native title) */
.ui-tip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px; height:18px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.14);
  color: rgba(15,23,42,.70);
  font-size: 12px;
  margin-left:6px;
  user-select:none;
}
@media (hover:hover) and (pointer:fine){
.ui-tip:hover{ transform: translateY(-1px); }
}

/* Trust row (masters) */
.trust-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.trust-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  font-size: 13px;
  color: rgba(15,23,42,.78);
}
.trust-chip.ok{
  border-color: rgba(33,160,56,.35);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.82);
  font-weight: 700;
}
.trust-chip .stars{
  letter-spacing: 0.5px;
  color: rgba(245, 158, 11, .95);
  font-size: 14px;
  line-height: 1;
}

/* Segmented control */
.segmented{display:inline-flex;gap:6px;padding:6px;border-radius:14px;background:rgba(0,0,0,.04);}
.segmented .seg-item{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:12px;text-decoration:none;color:inherit;font-weight:600;}
.segmented .seg-item.active{background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.08);}
@media (prefers-color-scheme: dark){.segmented{background:rgba(255,255,255,.06);} .segmented .seg-item.active{background:rgba(255,255,255,.12);} }


/* Narrow utility polish tokens */
:root{
  --premium-text: rgba(15,23,42,.94);
  --premium-muted: rgba(15,23,42,.64);
}
.notification-card{
  position: relative;
  overflow: hidden;
}
.notification-card.is-unread::before{
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background: linear-gradient(180deg, rgba(33,160,56,.9), rgba(37,99,235,.7));
}
.notification-card .notification-actions{ align-self:flex-start; }
.city-autocomplete-results{
  position: absolute;
  left: 0;
  right: 0;
  z-index: 25;
}
.city-autocomplete-input{ position: relative; }
#city-input{ position: relative; }

.page-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap;margin-bottom:12px;}
.page-hero h1{margin:8px 0 6px;}
.page-hero .hero-copy{max-width:760px;line-height:1.6;color:var(--premium-muted);}
.card .section-title{font-size:18px;font-weight:800;letter-spacing:-.02em;margin:0 0 6px;}
.card .section-copy{color:var(--premium-muted);line-height:1.55;}
.empty-state{padding:18px 18px;border:1px dashed rgba(15,23,42,.12);border-radius:16px;background:rgba(248,250,252,.9);}
.topbar-btn{align-items:center;display:inline-flex;}
.notification-card .muted{max-width:64ch;}


.alert,
.hint-box,
.kpi,
.trust-chip{
  border-radius: 14px !important;
}

.notification-card .notification-actions{
  align-items: center;
  gap: 10px;
}
.notification-card .notification-actions > *{
  flex: 0 0 auto;
}


@media (max-width:760px){
  .notification-card .notification-actions,
  .btn-row{ width:100%; }
  .notification-card .notification-actions > *,
  .btn-row > *,
  .btn-row > form,
  .btn-row > form > button{
    width:100%;
    justify-content:center;
  }
}


/* Final utility canon: layout polish without redefining base component system */
.flow-split{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;}
.flow-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.flow-actions-end{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end;}
.stack-6 > * + *{margin-top:6px;}
.stack-8 > * + *{margin-top:8px;}
.stack-10 > * + *{margin-top:10px;}
.stack-12 > * + *{margin-top:12px;}
.mt-6{margin-top:6px !important;}
.mt-8{margin-top:8px !important;}
.mt-10{margin-top:10px !important;}
.mt-12{margin-top:12px !important;}
.ml-8{margin-left:8px !important;}
.ml-10{margin-left:10px !important;}
.mb-14{margin-bottom:14px !important;}
.text-reset{text-decoration:none !important;}
.text-right{text-align:right;}
.minw-0{min-width:0;}
.flex-1{flex:1 1 420px;}
.hero-card{border-color:rgba(59,183,126,.25) !important;background:rgba(59,183,126,.06) !important;}
.notice-success{border-color:rgba(46,212,122,.25) !important;background:rgba(46,212,122,.06) !important;}
.notice-warn{border-color:rgba(245,158,11,.25) !important;background:rgba(245,158,11,.06) !important;}
.notice-danger{border-color:rgba(239,68,68,.25) !important;background:rgba(239,68,68,.06) !important;}
.notice-soft{background:rgba(17,24,39,.02) !important;}
.subtle-card{box-shadow:none !important;}
.info-strip{display:flex;gap:10px;flex-wrap:wrap;}
.badge-accent{border-color:rgba(59,183,126,.35) !important;}
.metric-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
.inline-note{display:inline-flex;gap:8px;align-items:center;}
.progress-track{height:12px;background:rgba(17,24,39,0.08);border-radius:999px;overflow:hidden;border:1px solid rgba(17,24,39,0.08);}
.progress-bar{height:12px;border-radius:999px;background:rgba(37,99,235,0.85);}
.form-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
.span-full{grid-column:1 / -1;}
.card-cta-row{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;}
.notification-copy{line-height:1.55;}
.is-hidden{display:none !important;}
.relative-wrap{position:relative;}
.heading-reset{margin:0 !important;}
.progress-native{display:block;width:100%;padding:0;appearance:none;-webkit-appearance:none;background:rgba(17,24,39,0.08);}
.progress-native::-webkit-progress-bar{background:rgba(17,24,39,0.08);border-radius:999px;}
.progress-native::-webkit-progress-value{background:rgba(37,99,235,0.85);border-radius:999px;}
.progress-native::-moz-progress-bar{background:rgba(37,99,235,0.85);border-radius:999px;}

@media (max-width:760px){
  .metric-grid-2,
  .form-grid-2{grid-template-columns:1fr;}
  .flow-split,
  .card-cta-row,
  .flow-actions,
  .flow-actions-end{align-items:stretch;}
}


/* Final release utility canon: shared page-level visual patterns */
.page-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;}
.card-soft{background:rgba(17,24,39,.02) !important;}
.card-success-soft{border-color:rgba(46,212,122,.25) !important;background:rgba(46,212,122,.06) !important;}
.notice-banner{margin:14px 0;border-left:4px solid var(--primary);padding:14px 16px;}
.notice-banner-body{display:flex;align-items:flex-start;gap:12px;}
.notice-banner-title{font-weight:700;margin-bottom:6px;}
.notice-banner-copy{font-size:14px;}
.notice-banner-close{padding:6px 10px !important;min-height:auto;line-height:1;}
.badge-top{margin-top:2px;}
.link-underline{text-decoration:underline;}
.inline-form{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;}
.avatar-54{width:54px;height:54px;border-radius:16px;object-fit:cover;border:1px solid #e5e7eb;}
.copy-block{line-height:1.6;}
.content-grid-20{display:grid;gap:20px;}
.content-grid-12{display:grid;gap:12px;}
.space-y-10 > * + *{margin-top:10px;}
.space-y-12 > * + *{margin-top:12px;}
.section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;}
.section-title-lg{margin:0;font-size:16px;font-weight:800;}
.section-note{margin-top:4px;}
.order-shell{background:#fff;padding:20px;border-radius:14px;border:1px solid #e5e7eb;}
.order-status-line{margin:6px 0 0;}
.actions-start{justify-content:flex-start;}
.actions-end{justify-content:flex-end;}
.fault-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;}
.label-tight{margin:0;}
.btn-solid-primary{margin-top:10px;}
.spacer-10{height:10px;}
.spacer-12{height:12px;}
.spacer-14{height:14px;}
.text-clamp-2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.error-inline{color:#b91c1c;}
.form-actions-top{margin-top:12px;}
.btn-compact{padding:6px 10px !important;min-height:auto;}
.btn-comfort{padding:10px 14px !important;}
.mt-14{margin-top:14px !important;}
.mb-16{margin-bottom:16px !important;}
.mb-18{margin-bottom:18px !important;}
.mt-20{margin-top:20px !important;}
.maxw-760{max-width:760px;}

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


/* Master contour refinement: visual hierarchy only, no route/workflow changes */
:root{
  --master-stack-gap: 16px;
  --master-section-gap: 14px;
  --master-copy-max: 68ch;
  --master-pill-bg: rgba(248,250,252,.96);
  --master-pill-border: rgba(15,23,42,.08);
  --master-soft-bg: rgba(248,250,252,.78);
  --master-soft-border: rgba(15,23,42,.07);
}
.master-hub-hero{
  padding:22px 24px !important;
  border-radius:18px !important;
  margin-bottom:var(--master-stack-gap);
}
.master-hub-hero .muted,
.master-notice .muted,
.master-section-card .muted{max-width:72ch;}
.master-hero-copy{display:grid;gap:8px;align-content:start;}
.master-hero-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;}
.master-hero-actions .badge{align-self:flex-start;}
.master-hero-summary{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:flex-start;}
.master-hero-summary .pill,
.master-secondary-actions .pill,
.master-notice-actions .pill{
  background:var(--master-pill-bg);
  border-color:var(--master-pill-border);
  box-shadow:none !important;
  color:rgba(15,23,42,.82);
}
.master-notice{
  border-width:1px !important;
  border-style:solid !important;
  margin-bottom:var(--master-section-gap);
  padding:16px 18px !important;
}
.master-notice--success{border-color:rgba(46,212,122,.25) !important;background:rgba(46,212,122,.06) !important;}
.master-notice--warn{border-color:rgba(245,158,11,.25) !important;background:rgba(245,158,11,.06) !important;}
.master-notice--info{border-color:rgba(59,183,126,.25) !important;background:rgba(59,183,126,.06) !important;}
.master-notice-title{font-weight:800;margin-bottom:8px;line-height:1.3;color:var(--app-copy-strong);}
.master-notice-actions{margin-top:12px;}
.master-section-card{
  margin-bottom:var(--master-section-gap);
  padding:18px !important;
}
.master-section-card > .section-head,
.master-section-card > .toolbar-between,
.master-section-card > .toolbar-start,
.master-section-card > .master-reaction-grid,
.master-section-card > .metric-grid-2,
.master-section-card > .kpi-grid,
.master-section-card > .kpi-grid-2,
.master-section-card > .kpi-grid-3,
.master-section-card > .stack-16,
.master-section-card > .stack-12,
.master-section-card > .stack-10,
.master-section-card > .btn-row,
.master-section-card > .card,
.master-section-card > ul,
.master-section-card > form,
.master-section-card > p,
.master-section-card > .muted{
  margin-top:12px;
}
.master-section-card > :first-child{margin-top:0;}
.master-section-card .heading-reset{margin-bottom:2px !important;}
.master-section-card .section-head{align-items:flex-start;}
.master-section-card .section-title-lg{line-height:1.3;}
.master-section-card .subtle-card,
.master-section-card .card-soft{
  border-color:var(--master-soft-border) !important;
  background:var(--master-soft-bg) !important;
}
.master-compact-copy{max-width:var(--master-copy-max);}
.master-list-card{
  padding:18px 18px !important;
  border-color:rgba(15,23,42,.08) !important;
  box-shadow:0 8px 18px rgba(15,23,42,.04) !important;
}
.master-order-card,
.master-repair-card,
.master-wallet-card{position:relative;}
.master-order-card > .flow-split:first-child,
.master-repair-card > h3:first-of-type + .order-status-line,
.master-wallet-card .flow-split:first-child{margin-bottom:2px;}
.master-inline-panel{
  border-radius:14px !important;
  box-shadow:none !important;
  background:rgba(248,250,252,.72) !important;
  border-color:rgba(15,23,42,.06) !important;
}
.master-empty-state{
  padding:18px !important;
  border-style:dashed !important;
  border-color:rgba(15,23,42,.11) !important;
  background:rgba(248,250,252,.72) !important;
}
.master-empty-state strong,
.master-empty-state b{color:var(--app-copy-strong);}
.master-control-section{position:relative;}
.master-control-section .btn-row{align-items:flex-start;}
.master-supporting-note{
  border-color:rgba(15,23,42,.07) !important;
  background:rgba(248,250,252,.84) !important;
}
.master-section-marker{
  padding:14px 16px !important;
  background:rgba(248,250,252,.84) !important;
  box-shadow:none !important;
}
.master-repair-card{
  border-radius:16px;
  border-color:rgba(15,23,42,.08);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.master-repair-card > h3{
  margin:0 0 8px;
  font-size:17px;
  line-height:1.3;
}
.master-repair-card > .order-status-line{
  margin:0 0 10px;
}
.master-reaction-grid .subtle-card{
  padding:14px 16px;
  min-height:104px;
}
.master-toolbar{
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
  padding-top:2px;
}
.master-toolbar label{display:grid;gap:6px;font-weight:700;color:rgba(15,23,42,.84);}
.master-toolbar input,
.master-toolbar select{
  min-height:44px;
  background:#fff;
}
.master-kpi-grid .kpi{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:none;
}

.master-profile-hero .profile-head-copy{display:grid;gap:4px;}
.master-profile-hero .btn-row{align-items:flex-start;}
.master-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;}
.master-mini-stat{
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(248,250,252,.9);
  box-shadow:none;
}
.master-mini-stat-label{font-size:12px;color:var(--app-copy);}
.master-mini-stat-value{margin-top:4px;font-size:16px;font-weight:800;color:var(--app-copy-strong);}
.master-reaction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;}
.master-reaction-card--hot{
  border-color:rgba(245,158,11,.22) !important;
  background:rgba(255,251,235,.9) !important;
}
.master-primary-cta{box-shadow:0 10px 20px rgba(33,160,56,.14);}
.master-secondary-actions{gap:8px;}
@media (max-width:760px){
  .master-hub-hero,
  .master-notice,
  .master-section-card{padding:16px !important;}
  .master-mini-stats,
  .master-reaction-grid{grid-template-columns:1fr;}
  .master-hero-summary{margin-top:10px;}
}

/* Final polish pass utilities */
.avatar-shell{width:64px;height:64px;border-radius:18px;overflow:hidden;background:rgba(17,24,39,0.06);border:1px solid rgba(17,24,39,0.08);display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.avatar-shell img{width:100%;height:100%;object-fit:cover;display:block;}
.avatar-fallback{font-size:26px;line-height:1;}
.profile-head-copy{flex:1;min-width:220px;}
.profile-name{font-weight:900;font-size:18px;line-height:1.2;}
.metric-value-strong{font-weight:800;}
.metric-value-lg{font-size:18px;font-weight:800;}
.copy-tight{margin-top:8px;}
.card-warning-soft{box-shadow:none !important;border-color:rgba(245,158,11,.25) !important;background:rgba(245,158,11,.06) !important;}
.link-btn-inline{display:inline-block;margin-top:12px;text-decoration:none !important;}
.chat-shell{border-color:rgba(220,38,38,.35) !important;}
.chat-panel{padding:0 !important;overflow:hidden;}
.chat-panel-head{padding:14px 16px;border-bottom:1px solid rgba(229,231,235,0.9);display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;}
.chat-list{height:420px;overflow:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg, rgba(17,24,39,.01), rgba(17,24,39,0));}
.chat-panel-foot{padding:14px 16px;border-top:1px solid rgba(229,231,235,0.9);}
.chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;}
.label-reset{margin:0;}
.chat-pill-danger{background:rgba(220,38,38,0.08) !important;border-color:rgba(220,38,38,0.18) !important;}
.chat-msg-row{display:flex;justify-content:space-between;gap:10px;align-items:baseline;}
.chat-msg-author{font-size:13px;}
.chat-msg-time{font-size:12px;}
.chat-msg-body{margin-top:6px;white-space:pre-wrap;}
.chat-msg-actions{margin-top:8px;display:flex;gap:8px;justify-content:flex-end;}
.pill-compact{padding:6px 10px !important;min-height:auto !important;}
.inline-grid-auto{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;}
.toolbar-between{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;}
.toolbar-start{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-start;}
.grid-gap-10{display:grid;gap:10px;}
.grid-gap-12{display:grid;gap:12px;}
.panel-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;border:1px solid rgba(229,231,235,0.9);border-radius:16px;padding:12px 14px;}
.panel-note{margin-top:4px;}
.panel-text-block{margin-top:10px;background:rgba(17,24,39,0.03);border:1px solid rgba(17,24,39,0.06);border-radius:14px;padding:10px 12px;white-space:pre-wrap;}
.form-inline-actions{margin:0;display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.select-auto{width:auto;}
.select-min-110{min-width:110px;}
.select-min-140{min-width:140px;}
.input-min-160{width:160px;}
.kpi-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.kpi-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.card-flat{box-shadow:none !important;}
.card-flat-soft{box-shadow:none !important;border-radius:14px !important;}
.muted-copy{margin-top:6px;}
.link-no-underline{text-decoration:none !important;}
@media (max-width:760px){
  .chat-compose,.inline-grid-auto,.kpi-grid-3{grid-template-columns:1fr;}
}

.chat-msg-card{max-width:78%;padding:10px 12px;border-radius:18px;border:1px solid rgba(17,24,39,0.08);}
.chat-msg-card.is-mine{background:rgba(37,99,235,0.10);}
.chat-msg-card.is-other{background:rgba(17,24,39,0.04);}
.progress-gap-10{height:10px;}
.progress-gap-12{height:12px;}
.inline-form-plain{display:inline;margin:0;}

.city-picker-note{margin:0 0 10px;}
.city-picker-help{margin-top:8px;}
.city-autocomplete-results{
  top: calc(100% - 2px);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  padding: 6px;
  max-height: 280px;
  overflow: auto;
}
.city-autocomplete-item{
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  padding:12px 14px;
  border-radius:12px;
  cursor:pointer;
  font:inherit;
  color:var(--text-color, #0f172a);
}
.city-autocomplete-item:hover,
.city-autocomplete-item.is-active{
  background: rgba(37,99,235,.08);
}

.city-autocomplete-empty{padding:12px 14px;color:var(--muted,#6b7280);font-size:14px;}
.master-city-empty{padding:18px 20px;}


/* Deprecated compatibility aliases: old marketplace naming maps to safe-deal styling */
.page-safe-deal-hero{display:grid;gap:14px;}
.safe-deal-copy{max-width:820px;}
.safe-deal-offer-head{align-items:flex-start;}
.safe-deal-feature-grid,.safe-deal-compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.safe-deal-feature-card{padding:16px 18px;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(255,255,255,.88);box-shadow:0 10px 24px rgba(15,23,42,.06);}
.safe-deal-feature-label{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--primary);margin-bottom:8px;}
.safe-deal-feature-title{font-size:15px;font-weight:800;line-height:1.45;margin-bottom:8px;color:var(--text-color,#0f172a);}
.safe-deal-empty-state{padding:22px 24px;}
.safe-deal-home-hero{padding:22px 24px;margin-bottom:18px;}
.safe-deal-home-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.9fr);gap:18px;align-items:start;}
.safe-deal-home-title{margin:6px 0 0;font-size:32px;line-height:1.15;font-weight:900;max-width:860px;}
.safe-deal-home-copy{font-size:15px;line-height:1.75;max-width:820px;}
.safe-deal-home-panel{display:grid;gap:12px;}
.safe-deal-home-links{margin-bottom:18px;}
.safe-deal-home-copy-sm{margin:12px 0 0;}
.safe-deal-offer-head h3{font-size:18px;}

/* legacy client-dashboard-shell ownership removed */
.client-dashboard-hero--calm{align-items:end;padding-bottom:2px;}
.client-dashboard-copy{max-width:700px;line-height:1.7;}
.client-dashboard-actions{align-items:center;}
.client-primary-stage--premium{border-color:rgba(148,163,184,.18);box-shadow:0 12px 28px rgba(15,23,42,.06);}
.client-stage-grid--premium{grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:16px;align-items:start;}
.client-stage-panel--premium{display:grid;gap:10px;align-content:start;}
.client-stage-next{font-size:13px;line-height:1.6;max-width:680px;}
.client-summary-line--quiet{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:13px;line-height:1.6;}
.client-summary-line--quiet span{color:rgba(100,116,139,.8);}
.page-head--decision{align-items:end;}
.decision-hero--premium{padding:18px 20px;border-color:rgba(148,163,184,.16);}
.flow-split--decision{gap:16px;align-items:center;}
.decision-next-step{max-width:640px;line-height:1.65;}
.decision-pill-stack--calm{gap:8px;align-items:flex-end;}
/* order-bids scan ownership moved to ui-rebuild-layer.css */
.decision-card-grid{gap:16px;}
.decision-card{border-color:rgba(148,163,184,.16);box-shadow:0 10px 26px rgba(15,23,42,.05);}
.safe-deal-offer-head--decision{margin-bottom:4px;}
.decision-card-kicker{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:8px;}
.decision-card-body{display:grid;gap:8px;}
.decision-trust-note{font-size:13px;line-height:1.6;padding:10px 12px;border-radius:14px;background:rgba(59,183,126,.05);border:1px solid rgba(59,183,126,.16);}
.decision-card-actions{display:grid;gap:8px;align-items:start;}
.decision-select-hint{font-size:12px;line-height:1.5;}
.wallet-onboard-more.is-hidden{display:none;}
.wallet-history-amount{font-weight:800;}
.modal-overlay.is-hidden{display:none;}
.safe-deal-feature-grid,.safe-deal-compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.safe-deal-feature-card{padding:16px 18px;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(255,255,255,.88);box-shadow:0 10px 24px rgba(15,23,42,.06);}
.safe-deal-feature-label{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--primary);margin-bottom:8px;}
.safe-deal-feature-title{font-size:15px;font-weight:800;line-height:1.45;margin-bottom:8px;color:var(--text-color,#0f172a);}
.safe-deal-empty-state{padding:22px 24px;}
.safe-deal-home-hero{padding:22px 24px;margin-bottom:18px;}
.safe-deal-home-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.9fr);gap:18px;align-items:start;}
.safe-deal-home-title{margin:6px 0 0;font-size:32px;line-height:1.15;font-weight:900;max-width:860px;}
.safe-deal-home-copy{font-size:15px;line-height:1.75;max-width:820px;}
.safe-deal-home-panel{display:grid;gap:12px;}
.safe-deal-home-links{margin-bottom:18px;}
.safe-deal-home-copy-sm{margin:12px 0 0;}

.client-dashboard-hero{gap:12px;}
.client-primary-stage--calm{padding:16px 18px;}
.client-stage-grid--focus{grid-template-columns:minmax(0,1.35fr) minmax(260px,.75fr);gap:12px;}
.client-stage-panel--calm{gap:10px;align-content:start;}
.trust-layer--compact{padding:12px 14px;}
.client-summary-line{font-size:13px;line-height:1.5;}
.decision-hero{padding:16px 18px;}
.decision-pill-stack{display:grid;gap:8px;justify-items:start;}

.wallet-onboard-banner{margin:14px 0;border-left:4px solid var(--primary);padding:14px 16px;}
.wallet-onboard-row{display:flex;align-items:flex-start;gap:12px;}
.wallet-onboard-badge{margin-top:2px;}
.wallet-onboard-body{flex:1;min-width:0;}
.wallet-onboard-title{font-weight:700;margin-bottom:6px;}
.wallet-onboard-copy{font-size:14px;}
.wallet-onboard-more{margin-top:10px;}
.wallet-onboard-copy-sm{font-size:13px;line-height:1.5;}
.wallet-onboard-subline{margin-top:6px;}
.wallet-onboard-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap;}
.wallet-onboard-btn{padding:10px 14px;}
.wallet-onboard-close{padding:6px 10px;}
.wallet-inline-title{font-weight:800;}
.wallet-section-title{font-weight:900;margin-bottom:8px;}
.wallet-section-title--small{font-size:16px;margin-bottom:0;}
.wallet-copy-block{line-height:1.6;}
.wallet-history-side{text-align:right;}
.modal-overlay-bottom{align-items:flex-end;}
.modal-sheet{width:100%;max-width:520px;border-bottom-left-radius:0;border-bottom-right-radius:0;}
.wallet-sheet-head{display:flex;justify-content:space-between;align-items:center;}
.wallet-sheet-form{margin-top:12px;display:grid;gap:10px;}

/* Client product canon: safe-deal framing */
.page-safe-deal-hero{display:grid;gap:14px;}
.safe-deal-copy{max-width:760px;}
.safe-deal-empty{padding:22px 24px;}
.safe-deal-home-hero{padding:22px 24px;margin-bottom:18px;}
.safe-deal-home-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.9fr);gap:18px;align-items:start;}
.safe-deal-home-title{margin:6px 0 0;font-size:32px;line-height:1.15;font-weight:900;max-width:860px;}
.safe-deal-home-copy{font-size:15px;line-height:1.75;max-width:820px;}
.safe-deal-home-panel{display:grid;gap:12px;}
.safe-deal-home-links{margin-bottom:18px;}
.safe-deal-home-copy-sm{margin:12px 0 0;}
.safe-deal-offer-head{align-items:flex-start;}
.safe-deal-feature-grid,.safe-deal-compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.safe-deal-feature-card{padding:16px 18px;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(255,255,255,.88);box-shadow:0 10px 24px rgba(15,23,42,.06);}
.safe-deal-feature-label{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--primary);margin-bottom:8px;}
.safe-deal-feature-title{font-size:15px;font-weight:800;line-height:1.45;margin-bottom:8px;color:var(--text-color,#0f172a);}
.client-primary-stage{padding:18px 20px;}
.client-primary-stage-copy{max-width:760px;line-height:1.65;}
.client-stage-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:14px;align-items:start;}
.client-stage-panel{display:grid;gap:12px;}
.trust-layer{padding:14px 16px;border:1px solid rgba(59,183,126,.22);border-radius:16px;background:rgba(59,183,126,.05);}
.trust-layer-title{font-size:14px;font-weight:800;margin-bottom:6px;}
.wallet-balance-card{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;}
.wallet-balance-main{min-width:220px;}
.wallet-balance-value{font-size:28px;font-weight:900;}
.wallet-balance-side{text-align:right;max-width:360px;}
.wallet-balance-side-copy{margin-top:4px;}
.wallet-cta-inline{margin-top:8px;display:inline-block;}
.wallet-status-card{border-left:4px solid var(--success);margin-bottom:14px;}
.wallet-status-card.warn{border-left-color:var(--warning);}
.wallet-status-card.danger{border-left-color:var(--danger);}
.wallet-status-title{font-weight:800;margin-bottom:6px;}
.wallet-history-row{display:flex;justify-content:space-between;align-items:center;gap:12px;}
.wallet-error-ellipsis{max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (max-width:960px){.safe-deal-feature-grid,.safe-deal-compare-grid,.safe-deal-home-grid,.client-stage-grid,.client-stage-grid--premium{grid-template-columns:1fr;}.safe-deal-home-title{font-size:24px;}.flow-split--decision,.page-head--decision{align-items:flex-start;}.decision-pill-stack--calm{align-items:flex-start;}.wallet-history-row{align-items:flex-start;}}

.pwa-install-card{display:none;margin-bottom:18px;}
.pwa-install-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.pwa-install-title{font-weight:900;font-size:16px;margin-bottom:4px;}
.pwa-ios-mini{margin-top:10px;}


.pwa-install-home-btn{padding:12px 16px;border-radius:16px;font-weight:900}
.pwa-ios-mini-actions{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap}
.modal-card--compact{max-width:520px;width:min(92vw,520px)}

.pwa-install-overlay[aria-hidden="false"]{align-items:center;}
.pwa-install-modal{overflow:hidden;}
.pwa-install-hero{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center;margin-bottom:16px;}
.pwa-install-badge{width:56px;height:56px;border-radius:18px;background:linear-gradient(180deg, rgba(46,212,122,.18), rgba(46,212,122,.08));display:grid;place-items:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);}
.pwa-install-badge img{width:36px;height:36px;display:block;}
.pwa-install-kicker{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(15,23,42,.48);margin-bottom:6px;}
.pwa-install-lead{font-size:15px;line-height:1.65;color:rgba(15,23,42,.82);}
.pwa-install-panel{padding:16px 18px;border-radius:18px;background:linear-gradient(180deg, rgba(15,23,42,.03), rgba(255,255,255,.96));border:1px solid rgba(15,23,42,.08);display:grid;gap:10px;}
.pwa-install-panel-title{font-size:14px;font-weight:900;color:#0f172a;}
.pwa-install-panel-copy{font-size:14px;line-height:1.55;color:rgba(15,23,42,.76);}
.pwa-install-steps{display:grid;gap:10px;}
.pwa-install-step{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:flex-start;padding:12px 13px;border-radius:16px;background:rgba(255,255,255,.92);border:1px solid rgba(15,23,42,.08);}
.pwa-install-step-num{width:26px;height:26px;border-radius:999px;display:grid;place-items:center;background:rgba(46,212,122,.14);color:#14914c;font-size:12px;font-weight:900;}
.pwa-install-step-copy{font-size:14px;line-height:1.5;color:#0f172a;}
.pwa-install-note{padding:12px 13px;border-radius:14px;background:rgba(15,23,42,.04);border:1px solid rgba(15,23,42,.06);font-size:13px;line-height:1.5;color:rgba(15,23,42,.72);}
.pwa-install-footer{justify-content:space-between;align-items:center;}
.pwa-install-footer .btn{min-width:140px;}
@media (max-width:640px){
  .pwa-install-overlay{padding-left:0!important;padding-right:0!important;padding-bottom:max(0px, env(safe-area-inset-bottom, 0px))!important;align-items:flex-end!important;}
  .pwa-install-overlay .pwa-install-modal{width:100%;max-width:100%;border-bottom-left-radius:0;border-bottom-right-radius:0;}
  .pwa-install-footer{position:sticky;bottom:0;background:#fff;padding-bottom:max(14px, env(safe-area-inset-bottom, 0px));}
}


/* Local screen refinement */
:root{
  --visual-bg: radial-gradient(circle at top left, rgba(33,160,56,.10), transparent 34%), radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 30%), linear-gradient(180deg, #f7f8fa 0%, #f4f6f8 48%, #f7f8fa 100%);
  --visual-card-shadow: 0 24px 70px rgba(15,23,42,.08);
  --visual-card-shadow-soft: 0 18px 40px rgba(15,23,42,.06);
  --visual-radius: 28px;
  --visual-radius-sm: 22px;
  --visual-copy: rgba(15,23,42,.68);
  --visual-copy-strong: rgba(15,23,42,.86);
}
.safe-deal-home-hero{margin-bottom:6px!important;}
.safe-deal-home-grid{grid-template-columns:minmax(0,1.3fr) minmax(300px,.84fr)!important;gap:24px!important;align-items:stretch!important;}
.safe-deal-home-panel,.safe-deal-compare-grid{gap:14px!important;}
.safe-deal-feature-card{padding:18px 18px 19px!important;background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,249,251,.96))!important;}
.safe-deal-feature-label{text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.08em;color:rgba(15,23,42,.46);}
.safe-deal-feature-title{font-size:18px;font-weight:800;line-height:1.3;color:var(--visual-copy-strong);margin-top:6px;}
.safe-deal-home-links .btn-row{justify-content:flex-start;flex-wrap:wrap;}
.safe-deal-home-links{padding:18px 20px!important;}
.pwa-install-card{padding:18px 20px!important;}
.page-head--guided,.page-head--decision{align-items:flex-end!important;}
/* create-order scan ownership moved to ui-rebuild-layer.css */
.client-dashboard-hero{padding-bottom:6px!important;border-bottom:1px solid rgba(15,23,42,.06);margin-bottom:6px;}
.client-primary-stage{padding:24px!important;background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,248,.98))!important;}
.client-stage-grid--premium{grid-template-columns:minmax(0,1.35fr) minmax(260px,.72fr)!important;gap:20px!important;align-items:stretch!important;}
.client-stage-panel--premium{background:rgba(15,23,42,.03)!important;border-radius:22px;padding:18px;display:grid;align-content:start;gap:14px;border:1px solid rgba(15,23,42,.06);} 
.client-history-shell{padding:18px 20px!important;}
.assigned-master-card{background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,251,.98))!important;border-color:rgba(33,160,56,.14)!important;}
/* legacy decision-shell spacing removed: ui-rebuild-layer.css owns current order-bids surfaces */
.decision-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.decision-card{padding:22px!important;background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,249,251,.98))!important;}
.decision-card-kicker{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(15,23,42,.48);margin-bottom:6px;}
.decision-card .avatar-54{width:64px;height:64px;border-radius:20px;object-fit:cover;box-shadow:0 14px 24px rgba(15,23,42,.12);} 
.decision-card-body{display:grid;gap:10px;}
.trust-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.trust-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:rgba(15,23,42,.04);border:1px solid rgba(15,23,42,.08);font-size:12px;font-weight:700;color:rgba(15,23,42,.78);} 
.decision-card-actions{padding-top:10px;border-top:1px solid rgba(15,23,42,.06);}
.wallet-balance-card,.wallet-history-row,.flow-split--decision{gap:18px!important;}
.visual-wallet-shell .wallet-balance-card,.visual-wallet-shell .wallet-status-card,.visual-wallet-shell .wallet-onboard-banner,.visual-home-shell .hero-card{background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,249,251,.98))!important;}
.wallet-status-card,.wallet-onboard-banner{padding:18px 20px!important;}
.wallet-balance-value{letter-spacing:-.04em;}

/* Scoped ops/admin polish: keep cards local to internal staff shells */
.ops-shell{display:grid;gap:18px;}
.ops-appbar,
.appbar{
  padding:0 0 16px 0;
  border-bottom:1px solid rgba(15,23,42,.06);
  margin-bottom:10px;
}
.ops-hero-card,
.ops-utility-card,
.ops-panel-card,
.ops-list-card{
  border-radius:24px !important;
  border-color:rgba(15,23,42,.08) !important;
  box-shadow:0 18px 40px rgba(15,23,42,.08) !important;
}
.ops-hero-card{
  padding:20px 22px;
  background:linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,248,244,.94)) !important;
}
.ops-utility-card{
  padding:16px 18px;
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,248,246,.9)) !important;
}
.ops-panel-card{
  padding:18px 20px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,250,.95)) !important;
}
.ops-shell .ops-list-card{padding:16px 18px;}
.ops-shell .admin-hero-row,
.ops-shell .admin-toolbar-start{align-items:flex-start;}
.ops-shell .support-work-card textarea{min-height:92px;border-radius:14px;}
.ops-shell .master-moderation-card .btn-row{align-items:flex-start;}
.ops-shell .users-create-card form{max-width:760px;}
.ops-shell .users-list-card .card{background:rgba(249,251,250,.9) !important;box-shadow:none;}
.ops-shell .infra-alerts-card .table{margin-top:8px;}
.ops-shell .accountant-top-card{background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,246,.95)) !important;}
.ops-shell .admin-push-card .flow-actions{align-items:center;}
.superadmin-hero-card{
  background:linear-gradient(180deg, rgba(255,255,255,.985), rgba(244,247,246,.965)) !important;
  border-color:rgba(15,23,42,.08) !important;
  box-shadow:0 20px 44px rgba(15,23,42,.08) !important;
}
.superadmin-badge{
  background:rgba(15,23,42,.08) !important;
  color:#0f172a !important;
  border-color:rgba(15,23,42,.10) !important;
  font-weight:800;
}
.superadmin-guard-note{
  margin-top:16px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(248,250,249,.82);
  color:rgba(15,23,42,.74);
}
.superadmin-create-card{background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(245,248,247,.965)) !important;}
.superadmin-staff-card{background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,247,.96)) !important;}
.superadmin-feedback-card--success{border-color:rgba(22,163,74,.22) !important;background:rgba(22,163,74,.06) !important;}
.superadmin-feedback-card--danger{border-color:rgba(220,38,38,.22) !important;background:rgba(220,38,38,.05) !important;}
.superadmin-staff-row{box-shadow:none !important;border-radius:16px !important;background:rgba(249,251,250,.92) !important;}
@media (min-width:761px){
  .ops-hero-card{padding:24px 26px;}
  .ops-panel-card{padding:22px 24px;}
}

/* --- Public entry canonical pass --- */
.public-utility-shell{
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 16px;
}
.public-utility-bar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding: 10px 14px;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 34px rgba(15,23,42,.05);
  backdrop-filter: blur(14px) saturate(1.08);
}
.public-utility-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.public-utility-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.74);
  color: rgba(15,23,42,.86);
  text-decoration:none;
  font-weight:700;
}
@media (hover:hover) and (pointer:fine){
.public-utility-link:hover{
  transform: translateY(-1px);
}
}

.safe-deal-home-grid--compact{
  align-items: start;
}
.safe-deal-home-grid--single{
  grid-template-columns:minmax(0,1fr)!important;
}
.safe-deal-feature-card--dense{
  min-height: 0;
}
.safe-deal-home-summary{
  padding: 18px 22px !important;
}
.safe-deal-summary-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items:center;
}
.safe-deal-summary-actions{
  justify-content:flex-end;
}
.intro-modal-stack{
  display:grid;
  gap: 12px;
}
.intro-modal-step{
  display:grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items:start;
}
.intro-modal-step-num{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background: rgba(33,160,56,.12);
  color: rgba(22,134,48,.95);
  font-weight:800;
}
.intro-modal-links{
  justify-content:flex-start;
}

.create-order-protection-card{
  display:grid;
  gap: 10px;
  border-radius: 20px !important;
  border: 1px solid rgba(33,160,56,.12) !important;
  background: linear-gradient(180deg, rgba(33,160,56,.08), rgba(255,255,255,.98)) !important;
}
.create-order-protection-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

.create-order-detect-card{
  display:grid;
  gap:12px;
  border-radius:20px !important;
  border:1px solid rgba(15,23,42,.08) !important;
  background:linear-gradient(180deg, rgba(15,23,42,.03), rgba(255,255,255,.98)) !important;
}
.create-order-detect-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.create-order-detect-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.07);
  background:rgba(255,255,255,.86);
  color:rgba(15,23,42,.72);
  font-weight:700;
  font-size:13px;
}
.create-order-detect-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:12px;
}
.create-order-field-spotlight{
  padding:14px 15px;
  border-radius:18px;
  border:1px solid rgba(33,160,56,.12);
  background:linear-gradient(180deg, rgba(33,160,56,.06), rgba(255,255,255,.96));
}
@media (max-width: 760px){
  .create-order-detect-grid{grid-template-columns:1fr;}
}

@media (max-width: 760px){
  .public-utility-shell{padding: 0 12px;}
  .public-utility-bar{padding: 10px 12px;}
  .public-utility-links{width:100%;}
  .public-utility-link{flex: 1 1 calc(50% - 10px);}
  .create-order-protection-head,
  .safe-deal-summary-actions{justify-content:flex-start;}
}

.platform-inline-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.wallet-onboard-inline{
  margin:14px 0 0;
}


/* Client status spotlight: premium order-state layer for client surfaces */
.client-status-spotlight{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  padding:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:0 18px 38px rgba(15,23,42,.08);
}
.client-status-spotlight::before{
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg, rgba(37,99,235,.9), rgba(16,185,129,.75));
}
.client-status-spotlight--success::before{background:linear-gradient(180deg, rgba(22,163,74,.95), rgba(16,185,129,.78));}
.client-status-spotlight--warning::before{background:linear-gradient(180deg, rgba(245,158,11,.95), rgba(249,115,22,.82));}
.client-status-spotlight--danger::before{background:linear-gradient(180deg, rgba(239,68,68,.95), rgba(244,63,94,.8));}
.client-status-spotlight--muted::before{background:linear-gradient(180deg, rgba(100,116,139,.9), rgba(148,163,184,.76));}
.client-status-head{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;align-items:start;}
.client-status-head-main{min-width:0;}
.client-status-stage{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.05);
  color:rgba(15,23,42,.72);
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
}
.client-status-title{font-size:22px;line-height:1.2;font-weight:900;letter-spacing:-.04em;max-width:18ch;}
.client-status-copy{color:rgba(15,23,42,.68);line-height:1.6;max-width:72ch;}
.client-status-next{
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.72);
  border-radius:18px;
  padding:14px 16px;
  line-height:1.55;
}
.client-status-next-label{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:rgba(15,23,42,.56);margin-bottom:6px;}
.client-status-side{
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,252,.82));
  border-radius:18px;
  padding:14px;
  min-height:100%;
}
.client-status-side-label{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:rgba(15,23,42,.52);}
.client-status-side-value{font-size:18px;font-weight:900;letter-spacing:-.03em;line-height:1.2;margin-top:8px;}
.client-status-side-copy{color:rgba(15,23,42,.66);line-height:1.45;}
.client-status-chip-row{display:flex;gap:8px;flex-wrap:wrap;}
.client-status-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.78);
  color:rgba(15,23,42,.76);
  font-size:13px;
  font-weight:700;
}
.client-status-rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;}
.client-status-rail-step{
  position:relative;
  min-width:0;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:14px 14px 12px;
  background:rgba(255,255,255,.74);
}
.client-status-rail-step.is-done{
  border-color:rgba(22,163,74,.22);
  background:linear-gradient(180deg, rgba(34,197,94,.10), rgba(236,253,245,.92));
}
.client-status-rail-step.is-current{
  border-color:rgba(37,99,235,.22);
  background:linear-gradient(180deg, rgba(59,130,246,.12), rgba(239,246,255,.96));
  box-shadow:0 14px 28px rgba(37,99,235,.12);
}
.client-status-rail-num{
  width:30px;height:30px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;
  background:rgba(15,23,42,.08);color:rgba(15,23,42,.88);font-size:13px;font-weight:800;margin-bottom:10px;
}
.client-status-rail-step.is-done .client-status-rail-num{background:rgba(22,163,74,.14);color:rgba(21,128,61,.95);}
.client-status-rail-step.is-current .client-status-rail-num{background:rgba(37,99,235,.14);color:rgba(29,78,216,.96);}
.client-status-rail-title{font-size:14px;font-weight:800;letter-spacing:-.02em;}
.client-status-rail-copy{font-size:12px;line-height:1.45;color:rgba(15,23,42,.6);margin-top:6px;}
@media (max-width:960px){
  .client-status-head{grid-template-columns:1fr;}
  .client-status-title{max-width:none;}
}
@media (max-width:760px){
  .client-status-spotlight{padding:16px;}
  .client-status-rail{grid-template-columns:1fr;}
  .client-status-side{padding:12px 14px;}
}

/* Master chat premium contour */
.chat-stage-card{
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.88));
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 18px 36px rgba(15,23,42,.06);
}
.chat-stage-topbar{align-items:flex-start;gap:14px;}
.chat-stage-copy{max-width:70ch;line-height:1.62;}
.chat-panel-title{font-size:24px;font-weight:900;letter-spacing:-.04em;line-height:1.15;margin-top:8px;}
.chat-panel-copy{margin-top:8px;line-height:1.58;color:rgba(15,23,42,.66);}
.chat-shell-soft{border-color:rgba(59,130,246,.18) !important;background:rgba(239,246,255,.65);}
.chat-channel-switcher{padding:14px 16px !important;}
.chat-channel-tabs{display:flex;gap:10px;flex-wrap:wrap;}
.chat-channel-tab{
  min-width:180px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.78);
  color:inherit;
  cursor:pointer;
  text-align:left;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
@media (hover:hover) and (pointer:fine){
.chat-channel-tab:hover{transform:translateY(-1px);border-color:rgba(15,23,42,.14);box-shadow:0 10px 20px rgba(15,23,42,.05);}
}
.chat-channel-tab.is-active{
  border-color:rgba(15,23,42,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:0 14px 26px rgba(15,23,42,.06);
}
.chat-channel-tab.is-ghost{
  text-decoration:none;
  background:rgba(248,250,252,.82);
  border-style:dashed;
}
.chat-channel-tab-title{font-size:15px;font-weight:800;letter-spacing:-.02em;}
.chat-channel-tab-meta{font-size:12px;color:rgba(15,23,42,.58);line-height:1.45;}
.chat-panel-premium{border:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(249,250,251,.94));box-shadow:0 18px 36px rgba(15,23,42,.06);}
.chat-panel-head-premium{padding:18px 20px;align-items:flex-start;}
.chat-channel-side{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.chat-status-pill{background:rgba(15,23,42,.05);}
.chat-channel-city{background:rgba(37,99,235,.10);color:rgba(29,78,216,.95);border-color:rgba(37,99,235,.16);}
.chat-list-premium{min-height:480px;max-height:62vh;padding:20px;background:linear-gradient(180deg, rgba(248,250,252,.92), rgba(241,245,249,.82));}
.chat-row{display:flex;}
.chat-row.is-mine{justify-content:flex-end;}
.chat-row.is-other{justify-content:flex-start;}
.chat-msg-card{box-shadow:0 10px 20px rgba(15,23,42,.05);}
.chat-msg-card.is-mine{background:linear-gradient(180deg, rgba(59,130,246,.18), rgba(239,246,255,.95));border-color:rgba(37,99,235,.12);}
.chat-msg-card.is-other{background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.96));}
.chat-msg-meta-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;}
.chat-mini-badge{
  display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;
  font-size:11px;font-weight:700;line-height:1;background:rgba(15,23,42,.06);color:rgba(15,23,42,.7);
}
.chat-compose-premium{display:grid;gap:12px;}
.chat-compose-label textarea,
.chat-compose-premium textarea{
  width:100%;
  resize:vertical;
  min-height:92px;
  margin-top:8px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.92);
  padding:14px 16px;
  font:inherit;
  color:inherit;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.chat-compose-label textarea:focus,
.chat-compose-premium textarea:focus{border-color:rgba(37,99,235,.25);box-shadow:0 0 0 4px rgba(59,130,246,.08);}
.chat-compose-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;}
.chat-compose-hint{max-width:58ch;line-height:1.45;}
.chat-empty-state{
  margin:auto;
  max-width:420px;
  text-align:center;
  padding:30px 22px;
  border-radius:24px;
  border:1px dashed rgba(15,23,42,.14);
  background:rgba(255,255,255,.72);
}
.chat-empty-title{font-size:18px;font-weight:900;letter-spacing:-.03em;}
.chat-empty-copy{margin-top:8px;line-height:1.55;color:rgba(15,23,42,.64);}
.chat-admin-report-list{margin-top:10px;display:grid;gap:8px;}
.chat-admin-report-item{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border-radius:16px;border:1px solid rgba(15,23,42,.08);background:rgba(248,250,252,.82);}
.admin-chat-filters-card{box-shadow:none !important;}
@media (max-width:720px){
  .chat-channel-tab{min-width:0;flex:1 1 calc(50% - 10px);}
  .chat-list-premium{padding:14px;min-height:420px;}
  .chat-panel-head-premium{padding:16px;}
  .chat-compose-actions{align-items:flex-start;}
}
@media (max-width:560px){
  .chat-channel-tab{flex-basis:100%;}
  .chat-msg-card{max-width:100%;}
}

/* --- Support / fault search / dispute premium coherence pass --- */
.support-stage-card,
.fault-stage-card,
.dispute-stage-card{
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(246,249,247,.96)) !important;
  border-color: rgba(15,23,42,.08) !important;
  box-shadow: 0 18px 42px rgba(15,23,42,.07) !important;
}
.support-stage-topbar,
.fault-stage-topbar{align-items:flex-start;gap:16px;}
.support-stage-copy,
.fault-stage-copy{max-width:860px;margin-top:8px;}
.fault-result-head .pill.muted{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(15,23,42,.48);
}
.support-role-pill{font-weight:700;}
.support-panel-card,
.support-thread-card,
.fault-panel-card{
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,249,248,.965)) !important;
}
.support-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
}
.support-panel-title{font-size:22px;font-weight:800;letter-spacing:-.03em;color:#0f172a;}
.support-panel-pill{font-weight:700;border-color:rgba(15,23,42,.08) !important;background:rgba(248,250,249,.82) !important;}
.support-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px;}
.support-field{display:flex;flex-direction:column;gap:8px;}
.support-field--wide{grid-column:1 / -1;}
.support-field-label{font-weight:700;color:#0f172a;}
.support-textarea{min-height:120px;resize:vertical;}
.support-textarea--compact{min-height:90px;}
.support-panel-actions,
.fault-panel-actions{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-top:16px;}
.support-note{color:rgba(15,23,42,.58);line-height:1.5;}
.support-message-list{display:grid;gap:12px;margin-top:18px;}
.support-message{
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:14px 16px;
  background:rgba(248,250,249,.92);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.support-message.is-own{background:rgba(239,246,255,.92);border-color:rgba(59,130,246,.18);}
.support-message.is-support{background:rgba(236,253,245,.94);border-color:rgba(16,185,129,.2);}
.support-message-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:rgba(15,23,42,.58);font-size:13px;}
.support-message-body{margin-top:8px;white-space:pre-wrap;line-height:1.55;color:#0f172a;}
.support-compose{margin-top:18px;}
.support-queue-list{display:grid;gap:12px;margin-top:16px;}
.support-queue-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(248,250,249,.92);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.support-queue-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.support-empty-state{
  padding:18px 20px;
  border:1px dashed rgba(15,23,42,.16);
  border-radius:18px;
  background:rgba(248,250,249,.72);
  color:rgba(15,23,42,.62);
}
.fault-meta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.dispute-stage-card > .hint-box{margin-bottom:14px;}
@media (max-width: 900px){
  .support-form-grid{grid-template-columns:1fr;}
  .support-panel-title{font-size:20px;}
}

/* fault-search ownership lives in ui-rebuild-layer.css */


/* Platform-wide modal and bottom-sheet hardening */
.modal-overlay[aria-hidden="false"]{
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.modal-overlay-bottom[aria-hidden="false"]{
  align-items:flex-end;
  padding-top:max(18px, env(safe-area-inset-top, 0px));
}
.modal-sheet{
  width:min(100%, 520px);
  max-width:100%;
  max-height:calc(100dvh - max(18px, env(safe-area-inset-top, 0px)) - env(safe-area-inset-bottom, 0px));
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
  align-self:flex-end;
}
.modal-sheet .modal-body,
.modal-sheet form,
.wallet-sheet-form{
  min-height:0;
}
.fault-sheet{position:fixed;left:0;right:0;bottom:0;transform:translateY(104%);opacity:0;visibility:hidden;pointer-events:none;z-index:80;background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));border-top-left-radius:24px;border-top-right-radius:24px;box-shadow:0 -22px 60px rgba(15,23,42,.18);transition:transform var(--motion-dialog) var(--motion-ease), opacity var(--motion-dialog) var(--motion-ease), visibility 0s linear var(--motion-dialog);padding:14px 14px 18px;border-top:1px solid rgba(15,23,42,.08);backdrop-filter: blur(14px);max-height:min(78dvh, 620px);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
.fault-sheet.is-open{transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s;}
.fault-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:0;background:inherit;padding-bottom:6px;z-index:1;}
.fault-sheet-title{font-weight:900;font-size:16px;letter-spacing:-.02em;color:#0f172a;}
.fault-sheet-row{margin-top:12px;display:flex;gap:10px;}
.fault-sheet-actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;position:sticky;bottom:0;background:inherit;padding-top:8px;}
.fault-sheet-copy{margin-top:10px;}
.fault-sheet-input{flex:1;padding:12px 14px;border-radius:16px;border:1px solid rgba(15,23,42,.10);background:#fff;box-shadow: inset 0 1px 0 rgba(255,255,255,.6);}
.fault-sheet-input:focus{outline:none;border-color:rgba(46,212,122,.42);box-shadow:0 0 0 4px rgba(46,212,122,.12);}
.modal-overlay.is-hidden{display:none!important;}
@media (prefers-reduced-motion: reduce){
  .fault-sheet{transform:none;transition:none;}
  .fault-sheet:not(.is-open){opacity:0;visibility:hidden;}
}

.modal-card--compact{
  max-height:calc(100dvh - max(28px, (env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 28px)));
}
@media (max-width:640px){
  .fault-sheet-row{flex-direction:column;}
  .modal-overlay-bottom{
    padding-left:0;
    padding-right:0;
    padding-bottom:max(0px, env(safe-area-inset-bottom, 0px));
  }
  .modal-sheet{
    width:100%;
    max-height:calc(100dvh - max(12px, env(safe-area-inset-top, 0px)));
  }
  .modal-card--compact{
    max-height:calc(100dvh - max(20px, (env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 20px)));
  }
}

form.is-submitting{pointer-events:none;opacity:.92;}
button.is-loading,input[type="submit"].is-loading{position:relative;}
button.is-loading::after{content:'';display:inline-block;width:14px;height:14px;margin-left:8px;border-radius:50%;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;vertical-align:-2px;animation:uiSpin .8s linear infinite;}
@keyframes uiSpin{to{transform:rotate(360deg);}}
.support-inline-feedback{margin-top:12px;}
.empty-state--actionable{display:flex;flex-direction:column;gap:10px;}

/* === Canonical UI polish: narrow, local, non-global === */
.public-utility-shell{margin:14px auto 0;padding-bottom:6px;}
.public-utility-bar{
  justify-content:center;
  gap:8px;
  padding:8px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  border-color:rgba(15,23,42,.07);
  box-shadow:0 10px 26px rgba(15,23,42,.04);
}
.public-utility-links{justify-content:center;gap:8px;}
.public-utility-link{min-height:36px;padding:8px 12px;font-size:13px;font-weight:600;background:rgba(255,255,255,.92);}
.entry-utility-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 10px;}
.entry-utility-row.mb-16{margin-bottom:16px;}
.legal-consent-card--compact{padding:16px 18px !important;gap:0;}
.legal-consent-card--compact .btn-row{gap:8px;}
@media (max-width:760px){
  .entry-utility-row{width:100%;}
  .entry-utility-row .pill{flex:1 1 auto;justify-content:center;}
}

/* Public entry surfaces: clean cards without global body/card overrides */
/* contract anchor: .visual-auth-shell .visual-surface--hero::before */
.visual-home-shell .visual-surface--hero,
.visual-wallet-shell .wallet-balance-card,
.master-hub-hero,
.chat-stage-card,
.chat-panel,
.support-stage-card,
.support-panel-card,
.support-thread-card,
.bind-hero,
.wallet-status-card{
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}
.visual-home-shell .visual-surface--hero::before,
.visual-auth-shell--client .visual-surface--hero::before,
.visual-auth-shell--login .visual-surface--hero::before{
  background:linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,249,252,.96)) !important;
}
body:not(.modal-open) > .modal-overlay[aria-hidden="true"]{display:none !important;}


/* Master entry gets its own narrow polish, not a global auth override */
.visual-auth-shell--master .visual-surface--hero::before{display:none !important;background:none !important;}
.visual-auth-shell--master .auth-shell--master{
  position:relative;
  z-index:1;
  background:linear-gradient(180deg, rgba(255,255,255,.992), rgba(249,250,251,.985)) !important;
  border-color:rgba(15,23,42,.08) !important;
  box-shadow:0 16px 34px rgba(15,23,42,.055) !important;
}
.visual-auth-shell--master .auth-shell--master .legal-consent-card,
.visual-auth-shell--master .entry-utility-row .pill,
.visual-auth-shell--master .auth-shell--master .legal-consent-card .pill{
  background:rgba(248,250,252,.96) !important;
  border-color:rgba(15,23,42,.10) !important;
  color:rgba(15,23,42,.82) !important;
}

/* Internal app screens: calmer rhythm, no tinted helper chrome */
.client-dashboard-actions .pill,
.page-context-bar .pill,
.platform-inline-actions .pill{box-shadow:none !important;}

/* --- Scoped surface tokens: shared classes only, no page-wide resets --- */
:root{
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;
  --app-border: rgba(15,23,42,.08);
  --app-border-strong: rgba(15,23,42,.12);
  --app-shadow-soft: 0 10px 24px rgba(15,23,42,.05);
  --app-shadow-card: 0 14px 30px rgba(15,23,42,.06);
  --app-copy: rgba(15,23,42,.66);
  --app-copy-strong: rgba(15,23,42,.86);
}

.public-utility-bar,
.support-stage-card,
.support-panel-card,
.support-thread-card,
.dispute-stage-card,
.ops-hero-card,
.ops-panel-card,
.ops-utility-card,
.superadmin-hero-card,
.superadmin-create-card,
.superadmin-staff-card,
.visual-home-shell .visual-surface--hero,
.visual-auth-shell--login .auth-shell--login,
.visual-auth-shell--master .auth-shell--master,
.visual-auth-shell--recovery .auth-shell--recovery,
.visual-wallet-shell .wallet-balance-card,
.visual-wallet-shell .wallet-status-card,
.master-hub-hero,
.chat-stage-card,
.chat-panel,
.bind-hero,
.wallet-onboard-banner{
  background:var(--app-surface) !important;
  border-color:var(--app-border) !important;
  box-shadow:var(--app-shadow-card) !important;
}

.visual-home-shell .visual-surface--hero::before,
.visual-auth-shell .visual-surface--hero::before,
.support-stage-card::before,
.support-panel-card::before,
.dispute-stage-card::before{
  display:none !important;
  background:none !important;
}

.visual-auth-shell--client .auth-shell--client{
  background:var(--app-surface) !important;
  border-color:var(--app-border) !important;
  box-shadow:var(--app-shadow-card) !important;
}

.platform-intro-modal[aria-hidden="false"] > .modal{
  transform:translateY(0);
  opacity:1;
}

.visual-auth-shell,
.visual-home-shell,
.visual-wallet-shell,
.visual-bind-shell{
  display:grid;
  gap:16px;
}

/* rebuild-layer boundary: scan-owner screens keep their shell rhythm in ui-rebuild-layer.css */

.visual-auth-shell--login,
.visual-auth-shell--client,
.visual-auth-shell--master,
.visual-auth-shell--recovery{
  max-width:820px;
  margin:0 auto;
}

.visual-auth-shell .auth-shell--premium,
.visual-auth-shell .auth-shell--recovery{
  padding:24px 26px !important;
  display:grid;
  gap:14px;
}

.visual-auth-shell--recovery .auth-form,
.visual-auth-shell--recovery .form,
.visual-auth-shell--login .auth-form,
.visual-auth-shell--client .auth-form,
.visual-auth-shell--master .auth-form{
  display:grid;
  gap:14px;
}

.visual-auth-shell--recovery .btn,
.visual-auth-shell--recovery .btn-primary,
.visual-auth-shell--login .btn,
.visual-auth-shell--login .btn-primary,
.visual-auth-shell--client .btn,
.visual-auth-shell--client .btn-primary,
.visual-auth-shell--master .btn,
.visual-auth-shell--master .btn-primary{
  width:fit-content;
  min-width:220px;
}

@media (max-width:760px){
  .visual-auth-shell .auth-shell--premium,
  .visual-auth-shell .auth-shell--recovery{padding:18px 18px !important;}
  .visual-auth-shell--recovery .btn,
  .visual-auth-shell--recovery .btn-primary,
  .visual-auth-shell--login .btn,
  .visual-auth-shell--login .btn-primary,
  .visual-auth-shell--client .btn,
  .visual-auth-shell--client .btn-primary,
  .visual-auth-shell--master .btn,
  .visual-auth-shell--master .btn-primary{
    width:100%;
    min-width:0;
  }
}

.recovery-state-card,
.flash-card,
.entry-context-note,
.inline-state-card{
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--app-border);
  background: var(--app-surface-soft);
}
.flash-card--success,
.recovery-state-card--success{
  border-color: rgba(22,163,74,.18) !important;
  background: rgba(22,163,74,.05) !important;
}
.flash-card--danger,
.recovery-state-card--danger{
  border-color: rgba(239,68,68,.18) !important;
  background: rgba(239,68,68,.05) !important;
}
.entry-context-note{
  color: var(--app-copy-strong);
  background: rgba(15,23,42,.03);
}
.recovery-support-links,
.recovery-actions,
.entry-utility-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
/* shell ownership moved to app.css: page-context tools now inherit canonical shell tokens */

.row{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.form{
  display: grid;
  gap: 14px;
}

.table-wrap{
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
}
.table-wrap table{
  min-width: 560px;
}

.appbar{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.appbar-title{
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.03em;
}
.appbar-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chip-row{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chat-thread{
  display: grid;
  gap: 12px;
}
.chat-bubble{
  max-width: min(760px, 100%);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--app-border);
  background: var(--app-surface-soft);
  box-shadow: var(--app-shadow-soft);
}
.chat-bubble.me{
  justify-self: end;
  background: rgba(239,246,255,.92);
  border-color: rgba(59,130,246,.16);
}
.chat-bubble.them{
  justify-self: start;
  background: rgba(248,250,252,.98);
}
.chat-meta{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--app-copy);
}
.chat-input{
  display: grid;
  gap: 12px;
}
.chat-input textarea{
  min-height: 110px;
}

.support-stage-copy,
.support-note,
.muted-copy,
.small-muted,
.muted,
.section-copy,
.hero-copy{
  color: var(--app-copy);
}

.notification-card,
.support-queue-row,
.kpi,

.kpi-tile,
.support-message,
.chat-msg-card,
.safe-deal-feature-card,
.client-stage-panel--premium,
.decision-card,
.assigned-master-card{
  background: var(--app-surface) !important;
  border-color: var(--app-border) !important;
  box-shadow: var(--app-shadow-soft) !important;
}

.notification-card.is-unread::before{
  background: linear-gradient(180deg, rgba(33,160,56,.84), rgba(21,128,61,.72));
}

.pill,
.chip{
  box-shadow: none !important;
}

.btn,
.btn-primary,
.btn-success,
.btn-danger,
.btn-outline,
.btn-ghost,
.ghost,
.modal-close{
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease, color .12s ease;
}

@media (hover:hover) and (pointer:fine){
  .btn:hover,
  .btn-primary:hover,
  .btn-success:hover,
  .btn-danger:hover,
  .btn-outline:hover,
  .btn-ghost:hover,
  .ghost:hover,
  .modal-close:hover{
    transform: translateY(-1px);
  }
}

.modal-close{
  box-shadow: none !important;
}

@media (max-width: 820px){
  .page-context-side{width: 100%;justify-content: space-between;}
}

@media (max-width: 640px){
  .table-wrap table{min-width: 520px;}
  .appbar-title{font-size: 20px;}
  .chat-bubble{max-width: 100%;}
}

/* shell ownership moved to app.css: topbar icon primitive canon */


/* v34 canonical tightening */
/* legacy client-orders shell padding removed: scan layer owns current orders screen */
.client-status-head{align-items:flex-start;}
.client-status-side-copy{display:none;}
.client-status-next{display:none!important;}
.public-utility-shell{margin:6px auto 0!important;padding-bottom:0!important;}
.public-utility-bar{padding:8px 10px!important;}
.safe-deal-home-title{max-width:760px;}
.safe-deal-home-copy{display:none!important;}
/* legacy client-orders mobile shell padding removed: scan layer owns current orders screen */


.topbar-icon-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 6px 16px rgba(239,68,68,.28);}
.topbar-icon-badge.is-hidden{display:none!important;}
.public-utility-note{margin-top:10px;text-align:center;color:rgba(15,23,42,.64);font-size:13px;font-weight:600;}

/* shell ownership moved to app.css: public mobile topbar primitives */

.visual-home-shell .visual-surface--hero{padding:18px!important;margin-bottom:8px!important;}
.visual-home-shell .home-hero-actions{display:grid;grid-template-columns:1fr;gap:10px;}
.visual-home-shell .home-hero-actions > *{width:100%;justify-content:center;}
.visual-home-shell .safe-deal-home-title{max-width:620px;font-size:clamp(28px,4vw,36px);}
@media (max-width:760px){
  .visual-home-shell .safe-deal-home-title{font-size:24px;line-height:1.15;}
}

.public-utility-shell{margin:8px auto 0!important;padding-bottom:0!important;}
.public-utility-bar{display:grid;grid-template-columns:1fr;justify-items:stretch;gap:8px;padding:10px 12px!important;}
.public-utility-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;justify-content:stretch!important;}
.public-utility-link{width:100%;min-height:38px;}
.public-utility-note{margin:0!important;padding-top:2px;font-size:12px;text-align:center;}

body.keyboard-safe-surface .auth-form input,
body.keyboard-safe-surface .auth-form select,
body.keyboard-safe-surface .auth-form textarea,
body.keyboard-safe-surface .create-order-form input,
body.keyboard-safe-surface .create-order-form select,
body.keyboard-safe-surface .create-order-form textarea,
body.keyboard-safe-surface .support-field input,
body.keyboard-safe-surface .support-field select,
body.keyboard-safe-surface .support-field textarea{
  scroll-margin-top: calc(var(--fixed-header-offset) + env(safe-area-inset-top, 0px) + 18px);
  scroll-margin-bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + var(--keyboard-safe-gap));
}
@media (max-width:760px){
  body.viewport-shell-auth .visual-auth-shell,
  body.viewport-shell-form .visual-create-shell{
    padding-bottom:max(12px, calc(env(safe-area-inset-bottom, 0px) + var(--keyboard-safe-gap)));
  }
}

.visual-auth-shell{gap:0;}
.visual-auth-shell--client .auth-shell--client{padding:18px 18px!important;gap:12px!important;}
.visual-auth-shell--login .auth-shell--login{padding:18px 18px!important;gap:12px!important;}
.visual-auth-shell--master .auth-shell--master{padding:18px 18px!important;gap:12px!important;}
.entry-utility-row{margin:0!important;width:100%;}
.entry-utility-row .pill{flex:1 1 calc(50% - 8px);justify-content:center;}

.client-status-spotlight{padding:14px!important;}
.client-status-rail{grid-template-columns:repeat(5,minmax(88px,1fr))!important;gap:8px!important;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;}
.client-status-rail::-webkit-scrollbar{display:none;}
.client-status-rail-step{min-width:88px;padding:10px 10px 9px!important;}
.client-status-rail-num{margin-bottom:8px!important;width:28px!important;height:28px!important;}
.client-status-rail-title{font-size:13px!important;line-height:1.2;}
.client-status-rail-copy{display:none!important;}
@media (max-width:760px){
  .client-status-head{grid-template-columns:1fr!important;}
}


/* v37 compact app-shell refinements */
.public-utility-shell{max-width:min(720px,calc(100vw - 24px));margin:6px auto 0!important;padding:0 0 8px!important;}
.public-utility-bar--compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.public-utility-bar--compact .public-utility-link{min-height:42px;border-radius:16px;background:rgba(255,255,255,.94);border:1px solid rgba(15,23,42,.08);}
.public-utility-note{margin:8px 0 0!important;padding:0 2px 2px!important;font-size:13px;line-height:1.35;text-align:center;color:rgba(15,23,42,.66);}
@media (max-width:520px){
  .public-utility-shell{max-width:calc(100vw - 24px);}
  .public-utility-bar--compact .public-utility-link{min-height:40px;font-size:14px;}
  .public-utility-note{font-size:12px;}
}

/* legacy dashboard-shell spacing removed: no current scan markup uses it */
.client-status-spotlight{padding:14px 14px 12px!important;}
.client-status-head{grid-template-columns:minmax(0,1fr) auto;gap:10px;}
.client-status-stage{padding:6px 10px;font-size:11px;}
.client-status-rail{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important;padding-bottom:0!important;}
.client-status-rail-step{min-width:0!important;padding:10px 8px!important;border-radius:16px!important;}
.client-status-rail-num{width:26px!important;height:26px!important;margin-bottom:6px!important;font-size:12px!important;}
.client-status-rail-title{font-size:12px!important;line-height:1.12!important;letter-spacing:-.025em;word-break:break-word;}
.client-status-rail-copy{display:none!important;}
/* legacy decision-status-card spacing removed */
.order-cancel-form{margin:10px 0 0;}
.order-cancel-form .btn-danger{width:auto;min-height:42px;border-radius:16px;}

@media (max-width:760px){
  .client-status-head{grid-template-columns:minmax(0,1fr) auto!important;align-items:center;}
  .client-status-rail{gap:4px!important;}
  .client-status-rail-step{padding:9px 6px 8px!important;}
  .client-status-rail-title{font-size:11px!important;line-height:1.08!important;}
  .client-status-stage{font-size:10px!important;padding:5px 8px!important;}
}


/* v38 canonical compact pass */
.home-utility-inline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px;}
.home-utility-inline .pill{justify-content:center;min-height:42px;}
.home-utility-note{margin-top:10px;text-align:center;font-size:13px;line-height:1.35;color:rgba(15,23,42,.64);}

.support-panel-card--entry{padding:18px 18px 16px;}
.support-panel-head--entry{padding:0;margin:0 0 14px;}
.support-panel-head--entry .heading-reset{margin:0;}
.support-stage-copy{max-width:none;}

.client-status-spotlight{padding:14px 14px 12px!important;}
.client-status-head{display:block!important;margin-bottom:8px!important;}
.client-status-rail{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;overflow:visible!important;padding-bottom:0!important;}
.client-status-rail-step{min-width:0!important;padding:10px 12px!important;border-radius:16px!important;}
.client-status-rail-num{margin-bottom:6px!important;width:26px!important;height:26px!important;font-size:12px!important;}
.client-status-rail-title{font-size:15px!important;line-height:1.15!important;letter-spacing:-.02em!important;}
.client-status-rail-copy{display:block!important;margin-top:4px!important;font-size:12px!important;line-height:1.35!important;color:rgba(15,23,42,.58)!important;}
.order-cancel-form{margin:8px 0 0!important;}
.order-cancel-form .btn-danger{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:16px;}

@media (max-width:760px){
  .visual-home-shell .safe-deal-home-hero,
  .visual-auth-shell .auth-shell{padding:18px 18px 16px!important;}
  .home-utility-inline{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .home-utility-inline .pill{min-height:40px;font-size:14px;}
  .client-status-spotlight{padding:12px!important;}
  .client-status-rail{gap:5px!important;}
  .client-status-rail-step{padding:9px 10px!important;}
  .client-status-rail-title{font-size:14px!important;}
  .client-status-rail-copy{font-size:11px!important;line-height:1.3!important;}
}

/* v39 compact mobile surfaces */
.home-utility-inline{
  margin-top:10px!important;
  padding-top:8px;
  border-top:1px solid rgba(15,23,42,.06);
}
.home-utility-inline .pill{
  min-height:38px!important;
  border-radius:14px!important;
  background:rgba(248,250,252,.92)!important;
}
.home-utility-note{margin-top:8px!important;}

@media (max-width:760px){
  .client-status-head--minimal{display:none!important;}
  .client-status-spotlight{padding:10px 10px 8px!important;}
  .client-status-rail{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;overflow:visible!important;padding:0!important;}
  .client-status-rail-step{
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr)!important;
    grid-template-areas:"num title" "num copy"!important;
    align-items:center!important;
    column-gap:10px!important;
    row-gap:1px!important;
    min-width:0!important;
    padding:8px 10px!important;
    border-radius:14px!important;
  }
  .client-status-rail-num{
    grid-area:num!important;
    margin:0!important;
    width:28px!important;
    height:28px!important;
    font-size:12px!important;
  }
  .client-status-rail-title{
    grid-area:title!important;
    margin:0!important;
    font-size:14px!important;
    line-height:1.12!important;
    letter-spacing:-.02em!important;
  }
  .client-status-rail-copy{
    grid-area:copy!important;
    display:block!important;
    margin:0!important;
    font-size:11px!important;
    line-height:1.25!important;
    color:rgba(15,23,42,.56)!important;
  }
  .order-cancel-form{margin-top:8px!important;}
  .order-cancel-form .btn-danger{min-height:40px!important;padding:0 14px!important;border-radius:14px!important;}
}



.field-hint{font-size:12px;line-height:1.45;color:var(--muted);margin-top:4px}
.field-hint--mb{margin-bottom:8px}
.create-order-trust-band{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:8px;margin-bottom:16px}
.create-order-trust-band>div{border:1px solid rgba(15,23,42,.06);border-radius:18px;background:rgba(248,250,252,.9);padding:12px 14px;display:grid;gap:6px}
.create-order-trust-band>div b{font-size:14px}
.create-order-trust-band>div span{font-size:13px;line-height:1.45;color:var(--muted)}
.home-trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-trust-item{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);backdrop-filter:blur(10px);border-radius:18px;padding:14px 15px;display:grid;gap:6px;color:#fff}
.home-trust-item span{font-size:13px;line-height:1.45;color:rgba(255,255,255,.82)}
.legal-app-shell{background:linear-gradient(180deg, #f4f7fb 0%, #eef4f7 100%)}
.legal-appbar{margin:0 auto;max-width:1040px;padding:28px 16px 10px}
.legal-container{padding-top:4px;padding-bottom:40px}
.legal-card{max-width:920px;margin:0 auto;padding:22px 22px 26px}
.legal-chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.ops-shell{display:grid;gap:16px}
.ops-utility-card,.ops-hero-card,.ops-panel-card,.ops-list-card{border-radius:24px;border:1px solid rgba(15,23,42,.06);box-shadow:0 16px 40px rgba(15,23,42,.08)}
.ops-appbar{padding-bottom:6px;border-bottom:1px solid rgba(15,23,42,.06);margin-bottom:10px}
.seg-item{border-radius:999px}
@media (max-width:900px){.create-order-trust-band,.home-trust-grid{grid-template-columns:1fr}}

/* UX trim v42: remove helper chrome and explanatory copy */
.notification-center__kicker,
.notification-center__meta,
.support-stage-copy,
.chat-stage-copy,
.chat-panel-copy,
.chat-compose-hint,
.support-note,
.notice-banner,
.client-status-rail-copy,
.decision-card-kicker,
.fault-sheet-copy{display:none !important;}
.chat-panel-head-premium{padding-bottom:14px !important;}
.chat-compose-actions{justify-content:flex-end !important;}


.visual-home-shell--landing{display:flex;align-items:center;justify-content:center;min-height:calc(var(--visual-viewport-height, 100dvh) - 180px);padding-bottom:max(12px, env(safe-area-inset-bottom, 0px));}
.home-landing-card{width:min(760px,100%);margin:0 auto;padding:40px 28px;display:grid;gap:22px;justify-items:center;text-align:center;border-radius:28px;}
.home-landing-mark{width:104px;height:104px;border-radius:28px;display:grid;place-items:center;background:rgba(255,255,255,.72);box-shadow:0 18px 40px rgba(15,23,42,.10);}
.home-landing-logo{width:72px;height:72px;display:block;}
.home-landing-copy{display:grid;gap:10px;justify-items:center;}
.home-landing-title{margin:0;font-size:clamp(34px,6vw,52px);line-height:1.02;font-weight:900;letter-spacing:-.03em;}
.home-landing-subtitle{font-size:clamp(16px,2.6vw,20px);line-height:1.35;color:#5b6472;}
.home-landing-actions{width:min(420px,100%);display:grid;gap:12px;}
.home-landing-actions > *{width:100%;justify-content:center;}
.home-landing-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;}
#platform_confirm_message{font-size:15px;line-height:1.55;color:#1f2937;}
@media (max-width: 640px){
  .visual-home-shell--landing{min-height:auto;}
  .home-landing-card{padding:28px 18px;border-radius:24px;}
  .home-landing-mark{width:88px;height:88px;border-radius:24px;}
  .home-landing-logo{width:62px;height:62px;}
}


/* v45 canonical landing + client status refinements */
.home-landing-card{max-width:720px;margin:28px auto 0;display:grid;gap:18px;justify-items:center;text-align:center;padding:48px 28px 30px;border-radius:32px;}
.home-landing-mark{display:grid;place-items:center;width:116px;height:116px;border-radius:28px;background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,247,250,.96));box-shadow:0 18px 42px rgba(15,23,42,.10);}
.home-landing-logo{width:84px;height:84px;object-fit:contain;display:block;}
.home-landing-copy{display:grid;gap:8px;justify-items:center;}
.home-landing-title{margin:0;font-size:38px;line-height:1.02;font-weight:950;letter-spacing:-.06em;}
.home-landing-subtitle{font-size:16px;font-weight:700;color:rgba(15,23,42,.62);}
.home-landing-actions,.home-landing-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
.home-landing-links{padding-top:6px;}
.home-landing-actions--entry{width:min(560px,100%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;}
.home-entry-cta{width:100%;justify-content:center;min-height:46px;border-radius:18px;}
.home-entry-cta--primary{font-weight:800;}

.client-status-mainline{display:flex;flex-direction:column;gap:10px;align-items:flex-start;}
.client-status-badge{padding:10px 14px !important;font-size:14px !important;line-height:1 !important;border-radius:999px !important;font-weight:900 !important;}
.client-status-title--tight{max-width:none;font-size:28px !important;line-height:1.06 !important;}
.client-status-spotlight{padding:20px 20px 18px !important;border-radius:24px !important;}
.client-status-head{gap:12px !important;}
.client-status-rail{gap:12px !important;}
.client-status-rail-step{padding:16px 14px !important;border-radius:18px !important;min-height:116px;}
.client-status-rail-num{width:34px;height:34px;font-size:15px !important;font-weight:900 !important;}
.client-status-rail-title{font-size:15px !important;}
/* legacy client-orders-toolbar spacing removed */
@media (max-width:760px){
  .home-landing-card{margin-top:18px;padding:34px 20px 24px;}
  .home-landing-title{font-size:30px;}
  .home-landing-mark{width:98px;height:98px;border-radius:24px;}
  .home-landing-logo{width:72px;height:72px;}
  .home-landing-actions,.home-landing-links{display:grid;grid-template-columns:1fr;align-self:stretch;width:100%;}
  .home-landing-actions--entry{grid-template-columns:1fr;}
  .home-landing-actions > *, .home-landing-links > *{width:100%;justify-content:center;}
  .client-status-title--tight{font-size:22px !important;}
}


/* v46 compact client status + inline actions */
.client-status-panel{
  position:relative;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:0 14px 34px rgba(15,23,42,.06);
  padding:16px 16px 14px;
}
.client-status-panel--success{border-color:rgba(16,185,129,.18);}
.client-status-panel--warning{border-color:rgba(245,158,11,.20);}
.client-status-panel--danger{border-color:rgba(239,68,68,.18);}
.client-status-panel--muted{border-color:rgba(148,163,184,.24);}
.client-status-summary{display:flex;flex-direction:column;gap:8px;}
.client-status-mainline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.client-status-title--tight{margin:0;font-size:20px !important;line-height:1.1 !important;letter-spacing:-.03em;max-width:none;}
.order-inline-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.order-inline-actions .order-cancel-form{margin:0 !important;}
.order-inline-actions .btn,
.order-inline-actions .btn-danger{min-height:42px;border-radius:16px;}
/* legacy decision-status-card action spacing removed */
@media (max-width:900px){
}
@media (max-width:640px){
  .client-status-panel{padding:14px 14px 12px;border-radius:18px;}
  .client-status-title--tight{font-size:18px !important;}
  .order-inline-actions .btn,
  .order-inline-actions .btn-danger{flex:1 1 0;justify-content:center;}
}


/* Canonical UI trim v63 */
.support-panel-head{align-items:center;}
.support-panel-title{font-size:20px;line-height:1.2;}
.support-panel-actions,.fault-panel-actions{margin-top:14px;}
.support-message-list,.support-queue-list{margin-top:14px;}
.visual-auth-shell--login .heading-reset,
.visual-auth-shell--client .heading-reset,
.visual-auth-shell--master .heading-reset,
.visual-auth-shell--recovery .heading-reset{margin:0;}
.visual-auth-shell--login .badge,
.visual-auth-shell--client .badge,
.visual-auth-shell--master .badge,
.visual-auth-shell--recovery .badge{display:none!important;}
.city-picker-note,
.city-picker-help{display:none!important;}

/* shell ownership moved to app.css: public header/container contract */

/* shell ownership moved to app.css: auth-form collision handling */


/* Verdict pass: narrow visual hardening */
.hero-card,
.state-surface--neutral{
  background: var(--app-surface, #fff) !important;
  border: 1px solid var(--app-border, rgba(15,23,42,.08)) !important;
  box-shadow: var(--app-shadow-card, 0 14px 30px rgba(15,23,42,.06)) !important;
}
.state-surface--neutral{padding:18px 20px;}
.state-surface--neutral .stack-8{display:grid;gap:8px;}
.state-surface--neutral .badge{align-self:flex-start;}

.legal-app-shell{background:var(--bg, #f7f8fa) !important;}
.legal-shell{min-height:100%;}
.legal-appbar{
  margin:0 auto;
  max-width:980px;
  padding:24px 16px 8px;
  border-bottom:1px solid rgba(15,23,42,.06);
}
.legal-container{padding-top:12px;padding-bottom:40px;}
.legal-card{
  max-width:920px;
  margin:0 auto;
  padding:24px 24px 28px;
  background:var(--app-surface, #fff) !important;
  border-color:var(--app-border, rgba(15,23,42,.08)) !important;
  box-shadow:var(--app-shadow-card, 0 14px 30px rgba(15,23,42,.06)) !important;
}
.legal-page-header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap;}
.legal-page-title{margin:0;font-size:28px;line-height:1.15;font-weight:900;letter-spacing:-.03em;}
.legal-page-meta{margin-top:8px;color:rgba(15,23,42,.64);line-height:1.5;}
.legal-doc-nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.legal-doc-nav .pill{box-shadow:none;}
.legal-copy p{margin:0;line-height:1.65;}
.legal-copy h2{margin:24px 0 10px;font-size:18px;font-weight:800;letter-spacing:-.02em;}
.legal-copy ul,
.legal-copy ol{margin:0;padding-left:22px;display:grid;gap:8px;}
.legal-copy li{line-height:1.6;}
.legal-lead{color:rgba(15,23,42,.84);line-height:1.65;}
.legal-chip-row{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;}
.legal-chip-row .badge{box-shadow:none;}
.legal-copy a{color:inherit;text-decoration:underline;}

.ops-hero-card,
.ops-panel-card,
.ops-utility-card,
.ops-list-card,
.support-panel-card,
.support-thread-card,
.superadmin-hero-card,
.superadmin-create-card,
.superadmin-staff-card{
  background:var(--app-surface, #fff) !important;
  border-color:var(--app-border, rgba(15,23,42,.08)) !important;
  box-shadow:var(--app-shadow-card, 0 14px 30px rgba(15,23,42,.06)) !important;
}
.ops-inline-flash,
.ops-inline-note{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(248,250,252,.9);
}
.ops-inline-flash--success{border-color:rgba(22,163,74,.18) !important;background:rgba(22,163,74,.05) !important;}
.ops-inline-flash--danger{border-color:rgba(239,68,68,.18) !important;background:rgba(239,68,68,.05) !important;}
.ops-quick-links{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.ops-quick-links .pill{box-shadow:none;}
.ops-quick-links .badge{box-shadow:none;}
.ops-filter-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.ops-filter-form label{margin:0;font-weight:700;}
.ops-health-list{margin:8px 0 0 18px;}
.ops-filter-checkbox{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:999px;border:1px solid rgba(15,23,42,.08);background:rgba(248,250,252,.9);}
.ops-filter-checkbox input{width:auto;margin:0;box-shadow:none;}
.ops-search-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.ops-search-bar .input{flex:1 1 220px;min-width:220px;}
.ops-search-bar select{width:auto;min-width:110px;}
.ops-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap;}
.ops-card-media{display:flex;gap:14px;align-items:flex-start;}
.ops-avatar{width:54px;height:54px;border-radius:18px;background:rgba(17,24,39,.06);overflow:hidden;flex:0 0 54px;}
.ops-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.ops-muted-block{display:grid;gap:6px;}
.ops-inline-form{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.ops-inline-form .input{flex:1 1 320px;min-width:260px;}
.ops-table-wrap{overflow:auto;}
.ops-mono-block{box-shadow:none !important;margin-top:14px;}
.ops-mono{word-break:break-all;}
.ops-grid-list{display:grid;gap:12px;margin-top:12px;}
.amount-lg{margin-top:8px;font-size:20px;font-weight:900;}
.text-prewrap{white-space:pre-wrap;}
.content-max-62ch{max-width:62ch;line-height:1.55;}
.ops-item-card{box-shadow:none !important;border-radius:16px !important;padding:14px !important;}
.ops-item-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;}

.ops-threshold-cell{min-width:360px;}
.ops-threshold-form{display:flex;gap:8px;align-items:center;}
.ops-threshold-form .input{flex:1 1 auto;min-width:0;}
.ops-note-block{margin-top:12px;}
.ops-server-form{display:grid;grid-template-columns:1fr 1fr 1fr 120px 140px;gap:10px;margin-top:12px;}
@media (max-width:980px){.ops-server-form{grid-template-columns:1fr 1fr;}.ops-server-form > *:last-child{grid-column:1 / -1;}}
@media (max-width:640px){.ops-threshold-form,.ops-server-form{display:flex;flex-direction:column;align-items:stretch;}.ops-threshold-cell{min-width:0;}}

.ops-threshold-cell{min-width:360px;}
.ops-threshold-form{display:flex;gap:8px;align-items:center;}
.ops-threshold-form .input{flex:1 1 auto;min-width:0;}
.ops-note-block{margin-top:12px;}
.ops-server-form{display:grid;grid-template-columns:1fr 1fr 1fr 120px 140px;gap:10px;margin-top:12px;}
@media (max-width:980px){.ops-server-form{grid-template-columns:1fr 1fr;}.ops-server-form > *:last-child{grid-column:1 / -1;}}
@media (max-width:640px){.ops-threshold-form,.ops-server-form{display:flex;flex-direction:column;align-items:stretch;}.ops-threshold-cell{min-width:0;}}
.ops-item-meta{display:grid;gap:6px;}
.support-panel-badge,
.superadmin-badge{box-shadow:none !important;}
@media (max-width:760px){
  .legal-page-title{font-size:24px;}
  .ops-search-bar,
  .ops-filter-form,
  .ops-inline-form,
  .ops-card-head,
  .ops-card-media{align-items:stretch;}
  .ops-search-bar > *,
  .ops-filter-form > *,
  .ops-inline-form > *{width:100%;}
}


/* v47 compact homepage + single-logo login pass */
.visual-home-shell--landing{
  align-items:flex-start;
  min-height:auto;
  padding-bottom:max(6px, env(safe-area-inset-bottom, 0px));
}
.home-landing-card{
  max-width:680px;
  margin:18px auto 0;
  gap:14px;
  padding:32px 24px 20px;
  border-radius:28px;
}
.home-landing-mark{
  width:92px;
  height:92px;
  border-radius:24px;
  box-shadow:0 14px 30px rgba(15,23,42,.08);
}
.home-landing-logo{
  width:68px;
  height:68px;
}
.home-landing-copy{
  gap:6px;
}
.home-landing-title{
  font-size:34px;
  letter-spacing:-.05em;
}
.home-landing-subtitle{
  font-size:15px;
}
.home-landing-actions--entry{
  width:min(520px,100%);
  gap:10px;
}
.home-entry-cta{
  min-height:44px;
  border-radius:16px;
}
.home-landing-support{
  display:flex;
  justify-content:center;
  width:100%;
}
.home-entry-support{
  min-height:42px;
  padding-inline:18px;
  border-radius:16px;
}
.home-landing-footer{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px 14px;
  padding-top:4px;
  border-top:1px solid rgba(15,23,42,.07);
}
.home-footer-link{
  color:rgba(15,23,42,.62);
  text-decoration:none;
  font-size:12.5px;
  line-height:1.45;
  font-weight:500;
}
.home-footer-link:hover,
.home-footer-link:focus-visible{
  color:rgba(15,23,42,.82);
  text-decoration:underline;
  text-underline-offset:2px;
}
.visual-auth-shell--login{
  max-width:560px;
}
.visual-auth-shell--login .auth-shell--login{
  gap:10px!important;
  padding:20px 22px!important;
}
.visual-auth-shell--login .entry-utility-row{
  gap:6px;
}
.visual-auth-shell--login .entry-utility-row .pill{
  min-height:34px;
  padding:7px 11px;
  font-size:12.5px;
  font-weight:600;
}
.visual-auth-shell--login .heading-reset{
  margin-bottom:2px;
}
/* shell ownership moved to app.css: entry auth brand sizing */
@media (max-width:760px){
  .home-landing-card{
    margin-top:12px;
    padding:24px 16px 16px;
    gap:12px;
    border-radius:24px;
  }
  .home-landing-mark{
    width:78px;
    height:78px;
    border-radius:20px;
  }
  .home-landing-logo{
    width:56px;
    height:56px;
  }
  .home-landing-title{
    font-size:28px;
  }
  .home-landing-actions--entry{
    width:100%;
    grid-template-columns:1fr;
  }
  .home-entry-support{
    width:100%;
    justify-content:center;
  }
  .home-landing-footer{
    gap:4px 10px;
    justify-content:flex-start;
  }
  .home-footer-link{
    font-size:12px;
  }
  .visual-auth-shell--login .auth-shell--login{
    padding:18px 16px!important;
  }
  .visual-auth-shell--login .entry-utility-row .pill{
    flex:1 1 calc(50% - 6px);
  }
}


/* v48 narrow spacing micro-pass: compact home + tighter login rhythm */
/* shell ownership moved to app.css: home/auth compact container rhythm */

.visual-home-shell--landing{
  padding-bottom:max(2px, env(safe-area-inset-bottom, 0px));
}
.home-landing-card{
  margin:14px auto 0;
  gap:12px;
  padding:28px 22px 16px;
}
.home-landing-mark{
  width:88px;
  height:88px;
}
.home-landing-logo{
  width:64px;
  height:64px;
}
.home-landing-copy{
  gap:4px;
}
.home-landing-title{
  font-size:32px;
}
.home-landing-actions--entry{
  gap:8px;
}
.home-landing-support{
  margin-top:-2px;
}
.home-landing-footer{
  gap:4px 12px;
  padding-top:6px;
}

.visual-auth-shell--login{
  max-width:540px;
}
.visual-auth-shell--login .auth-shell--login{
  gap:8px !important;
  padding:18px 20px !important;
}
.visual-auth-shell--login .heading-reset{
  margin-bottom:0;
}
.visual-auth-shell--login .entry-utility-row{
  gap:6px;
  margin:0 !important;
}
.visual-auth-shell--login .auth-form,
.visual-auth-shell--login .auth-form--login{
  gap:12px;
}
/* shell ownership moved to app.css: entry auth header contract */

@media (max-width:760px){
  .home-landing-card{
    margin-top:10px;
    gap:10px;
    padding:22px 16px 14px;
  }
  .home-landing-mark{
    width:74px;
    height:74px;
  }
  .home-landing-logo{
    width:54px;
    height:54px;
  }
  .home-landing-title{
    font-size:27px;
  }
  .home-landing-actions--entry{
    gap:8px;
  }
  .home-landing-footer{
    gap:4px 8px;
    padding-top:4px;
  }
  .visual-auth-shell--login .auth-shell--login{
    gap:8px !important;
    padding:16px 16px !important;
  }
}

@media (max-width:620px){
}


/* v80 micro-pass: bottom tension fill + auth header proportion boost */
.home-landing-card{
  gap:13px;
  padding:38px 22px 18px;
}
.home-landing-note{
  margin:4px 0 2px;
  font-size:clamp(21px, 2.25vw, 25px);
  line-height:1.18;
  font-weight:850;
  letter-spacing:-.032em;
  color:rgba(15,23,42,.88);
  text-wrap:balance;
  max-width:22ch;
}
.home-landing-footer{
  padding-top:6px;
}

.visual-auth-shell--login,
.visual-auth-shell--client{
  gap:12px;
}
.visual-auth-shell--login .auth-shell--login,
.visual-auth-shell--client .auth-shell--client{
  gap:10px !important;
}
.visual-auth-shell--login .auth-form,
.visual-auth-shell--login .auth-form--login,
.visual-auth-shell--client .auth-form,
.visual-auth-shell--client .auth-form--client{
  gap:12px;
}
.auth-shell-note{
  margin:2px 0 0;
  text-align:center;
  font-size:clamp(23px, 2.55vw, 29px);
  line-height:1.18;
  font-weight:900;
  letter-spacing:-.034em;
  color:rgba(15,23,42,.88);
  text-wrap:balance;
  max-width:22ch;
  margin-inline:auto;
}
.auth-shell-note--register{
  margin-top:-1px;
}

/* shell ownership moved to app.css: entry auth brand chrome */

@media (max-width:760px){
  .home-landing-card{
    gap:11px;
    padding:28px 16px 16px;
  }
  .home-landing-note{
    font-size:20px;
    line-height:1.17;
    max-width:20ch;
  }
  .auth-shell-note{
    font-size:21px;
    line-height:1.16;
    max-width:20ch;
  }
  .home-landing-footer{
    padding-top:5px;
  }
  .visual-auth-shell--login,
  .visual-auth-shell--client{
    gap:10px;
  }
}

/* v81 homepage vertical balance pass: lower hero without touching text/CTA/header */
.visual-home-shell--landing{
  align-items:center;
  min-height:calc(var(--visual-viewport-height, 100dvh) - 220px);
  padding-bottom:max(10px, env(safe-area-inset-bottom, 0px));
}
.home-landing-card{
  margin:0 auto;
  padding:44px 22px 18px;
}

@media (max-width:760px){
  .visual-home-shell--landing{
    min-height:calc(var(--visual-viewport-height, 100dvh) - 196px);
    padding-bottom:max(8px, env(safe-area-inset-bottom, 0px));
  }
  .home-landing-card{
    margin:0 auto;
    padding:32px 16px 16px;
  }
}


/* v82 homepage ambient background pass: soften top/bottom empty space without touching content */
body.viewport-shell-home .visual-home-shell--landing{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
body.viewport-shell-home .visual-home-shell--landing::before,
body.viewport-shell-home .visual-home-shell--landing::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:min(980px, 136%);
  pointer-events:none;
  z-index:0;
  border-radius:999px;
}
body.viewport-shell-home .visual-home-shell--landing::before{
  top:-72px;
  height:228px;
  background:radial-gradient(ellipse at center, rgba(46,212,122,.085) 0%, rgba(46,212,122,.038) 34%, rgba(46,212,122,0) 74%);
  opacity:.92;
}
body.viewport-shell-home .visual-home-shell--landing::after{
  bottom:-88px;
  height:248px;
  background:radial-gradient(ellipse at center, rgba(110,231,183,.07) 0%, rgba(110,231,183,.03) 34%, rgba(110,231,183,0) 74%);
  opacity:.9;
}
body.viewport-shell-home .visual-home-shell--landing > *{
  position:relative;
  z-index:1;
}

@media (max-width:760px){
  body.viewport-shell-home .visual-home-shell--landing::before,
  body.viewport-shell-home .visual-home-shell--landing::after{
    width:min(720px, 158%);
  }
  body.viewport-shell-home .visual-home-shell--landing::before{
    top:-56px;
    height:184px;
    opacity:.88;
  }
  body.viewport-shell-home .visual-home-shell--landing::after{
    bottom:-70px;
    height:198px;
    opacity:.86;
  }
}


/* Master cabinet strengthening pass: hierarchy only */
.master-state-strip{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
  padding:12px 14px;
  margin:12px 0 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:15px;
  background:rgba(248,250,252,.92);
}
.master-state-strip--hot{
  border-color:rgba(245,158,11,.24);
  background:rgba(255,251,235,.92);
}
.master-state-strip--ok{
  border-color:rgba(34,197,94,.18);
  background:rgba(240,253,244,.88);
}
.master-state-eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(15,23,42,.56);
}
.master-state-title{
  margin-top:4px;
  font-size:16px;
  font-weight:800;
  color:var(--app-copy-strong);
  line-height:1.3;
}
.master-state-note{
  margin-top:6px;
  max-width:66ch;
  color:rgba(15,23,42,.72);
}
.master-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 12px;
}
.master-meta-row .pill{
  background:rgba(248,250,252,.9);
  border-color:rgba(15,23,42,.08);
  box-shadow:none !important;
}
.master-operational-copy{
  max-width:70ch;
  color:rgba(15,23,42,.78);
}
.master-card-section-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
  color:rgba(15,23,42,.72);
}
.master-primary-stage{
  padding:16px 18px !important;
  border-radius:16px !important;
  border-color:rgba(15,23,42,.08) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.95)) !important;
  box-shadow:0 12px 28px rgba(15,23,42,.06) !important;
}
.master-primary-stage--hot{
  border-color:rgba(245,158,11,.24) !important;
  background:linear-gradient(180deg, rgba(255,251,235,.98), rgba(255,255,255,.96)) !important;
}
.master-primary-stage__title{
  font-size:18px;
  line-height:1.3;
  font-weight:900;
  color:var(--app-copy-strong);
}
.master-primary-stage__note{
  margin-top:6px;
  max-width:64ch;
  color:rgba(15,23,42,.72);
}
.master-order-description{
  padding:14px 16px !important;
}
.master-secondary-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}
.master-secondary-panel{
  margin-top:0 !important;
  padding:14px 16px !important;
  align-self:start;
}
.master-secondary-panel--completion{grid-column:1 / -1;}
.master-wallet-section-empty{
  margin-top:12px;
}
.master-wallet-status-copy{
  margin-top:8px;
  color:rgba(15,23,42,.72);
  max-width:66ch;
}
.master-wallet-card .btn-row{align-items:flex-start;}
.master-wallet-card .kpi-value{line-height:1.1;}
.master-profile-action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.master-profile-action-grid > .card,
.master-profile-action-grid > .master-notice{
  margin:0;
}
.master-profile-section-card{
  padding:18px !important;
}
.master-empty-state .btn-row{margin-top:12px;}
.master-empty-state .muted{max-width:64ch;}

.master-toolbar-field--grow{flex:1 1 260px;min-width:220px;}
.master-toolbar-field--fixed{flex:0 0 220px;min-width:220px;}
.master-toolbar-field--wide{flex:0 0 260px;min-width:220px;}
.master-section-span-full{grid-column:1 / -1;}
.master-doc-list{margin:10px 0 0 18px;padding:0;display:grid;gap:8px;}
.master-doc-list li{padding-left:2px;}
.master-wallet-aside{text-align:right;min-width:180px;}
.master-wallet-amount{font-size:22px;line-height:1.1;}
.form-reset-margin{margin:0;}
.master-supporting-note{margin-bottom:14px;}
@media (max-width:760px){
  .master-wallet-aside{text-align:left;min-width:0;}
}
@media (max-width:760px){
  .master-profile-action-grid{grid-template-columns:1fr;}
}


/* Narrow master workbench compact pass */
.chat-panel-primary{display:grid;gap:6px;min-width:0;}
.chat-panel-topline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.chat-panel-screen-title{font-size:16px;font-weight:800;letter-spacing:-.02em;}
.chat-channel-side--compact{justify-content:flex-end;align-items:center;}
.chat-channel-inline-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.chat-inline-tab{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:34px;padding:0 12px;border-radius:999px;
  border:1px solid rgba(15,23,42,.08);background:rgba(248,250,252,.88);
  color:rgba(15,23,42,.82);font-size:13px;font-weight:700;line-height:1;text-decoration:none;
}
.chat-inline-tab.is-active{background:rgba(15,23,42,.08);border-color:rgba(15,23,42,.14);}
.chat-inline-tab.is-ghost{border-style:dashed;background:rgba(248,250,252,.6);}
/* legacy master-orders shell spacing removed: current scan surfaces use ui-rebuild-layer.css */
@media (max-width:760px){
  .chat-panel-head-premium{gap:12px;}
  .chat-channel-side--compact{justify-content:flex-start;}
  .chat-inline-tab{padding:0 10px;font-size:12px;}
}


/* 2026-03-24 narrow master compact pass */
.fault-panel-card--compact{padding:18px !important;}
.fault-panel-compact-head{align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:6px;}
.fault-panel-card--compact .fault-meta-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.fault-panel-card--compact .fault-search-grid{margin-top:12px;}
.pill-success{background:rgba(22,163,74,.12) !important;border-color:rgba(22,163,74,.18) !important;color:rgba(21,128,61,.95) !important;font-weight:800;}
.chat-panel-head-premium{padding:14px 16px;align-items:center;}
.chat-panel-topline{gap:8px;}
.chat-channel-inline-tabs{gap:6px;}
.chat-inline-tab{min-height:32px;padding:0 11px;}
.chat-list-premium{min-height:360px;max-height:56vh;padding:14px;}
.chat-panel-foot-premium{padding:12px 14px;}
.chat-compose-premium{gap:10px;}
.chat-compose-premium textarea{min-height:84px;}
@media (max-width:760px){
  .fault-panel-card--compact .fault-meta-row{justify-content:flex-start;}
  .chat-list-premium{min-height:320px;max-height:52vh;}
  .chat-compose-premium textarea{min-height:72px;}
}


/* legacy master-orders compact shell ownership removed: current scan workbench uses ui-rebuild-layer.css */
.fault-panel-card--compact > .support-panel-title{margin-bottom:12px;}
.chat-panel-premium{display:flex;flex-direction:column;min-height:calc(100dvh - 210px);}
.chat-panel-head-premium{padding:12px 14px;gap:10px;}
.chat-panel-topline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.chat-panel-title{font-size:14px;font-weight:700;}
.chat-channel-inline-tabs{gap:6px;}
.chat-inline-tab{min-height:30px;padding:0 10px;}
.chat-list-premium{flex:1;min-height:260px;max-height:calc(100dvh - 360px);padding:12px;}
.chat-msg-actions{margin-top:6px;}
.chat-msg-actions .pill{padding:4px 10px;}
.chat-panel-foot-premium{padding:10px 12px;background:rgba(255,255,255,.96);position:sticky;bottom:0;}
.chat-compose-premium{gap:8px;}
.chat-compose-premium textarea{min-height:60px;}
.act-prefill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;}
.act-manual-list{display:grid;gap:8px;}
@media (max-width:760px){
  .chat-panel-premium{min-height:calc(100dvh - 160px);}
  .chat-list-premium{max-height:calc(100dvh - 300px);}
  .act-prefill-grid{grid-template-columns:1fr;}
}


.master-profile-compact-card .section-head{align-items:center;}
.master-profile-metric-grid{margin-bottom:4px;}
.master-profile-metric-grid .subtle-card{padding:12px 14px !important;}
.master-profile-compact-card .master-control-section{padding:14px 16px !important;}
.master-profile-compact-card .master-doc-list--compact{margin-top:6px;gap:6px;}
.master-profile-compact-card .master-doc-list--compact li{font-size:13px;line-height:1.45;}
.master-order-card--responded .master-meta-row{margin-bottom:8px;}
.master-response-compact{display:grid;gap:6px;padding:12px 14px;border:1px solid rgba(15,23,42,.08);border-radius:14px;background:rgba(248,250,252,.88);}
.master-response-compact__title{font-size:14px;font-weight:800;color:var(--app-copy-strong);}
.master-response-compact__note{font-size:13px;line-height:1.45;color:rgba(15,23,42,.72);}
.master-response-compact__message{font-size:14px;line-height:1.55;color:rgba(15,23,42,.84);}
.decision-card-grid--bids{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:start;}
.decision-card--compact-bid{padding:18px !important;display:grid;gap:12px;align-content:start;}
.decision-bid-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:flex-start;}
.decision-bid-head--selected{align-items:center;}
.decision-bid-copy{display:grid;gap:8px;min-width:0;}
.decision-bid-copy .heading-reset{margin:0;font-size:18px;line-height:1.25;}
.trust-row--compact{margin-top:0;gap:6px;}
.decision-master-meta{font-size:13px;line-height:1.45;}
.decision-bid-meta-row{display:flex;flex-wrap:wrap;gap:8px;}
.decision-bid-meta-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:rgba(15,23,42,.04);border:1px solid rgba(15,23,42,.08);font-size:12px;line-height:1.3;color:rgba(15,23,42,.78);}
.decision-bid-photo{flex:0 0 auto;}
.decision-card--compact-bid .avatar-54,.decision-card--compact-bid .avatar-shell,.bid-selection-done-card .avatar-54,.bid-selection-done-card .avatar-shell{width:58px;height:58px;border-radius:18px;}
.decision-card-body--compact{gap:0;}
.decision-bid-message{margin:0;line-height:1.58;color:rgba(15,23,42,.86);}
.decision-bid-message--selected{margin-top:2px;}
.decision-contact-pill{width:max-content;max-width:100%;}
.decision-card--compact-bid .decision-card-actions{padding-top:8px;}
.bid-selection-done-card{display:grid;gap:14px;}
.bid-selection-done-card--compact{padding:16px 18px !important;gap:10px;}
.decision-priority-card--assigned{padding:16px 18px !important;display:grid;gap:6px;}
.decision-payment-card{padding:18px 20px !important;border-color:rgba(33,160,56,.16) !important;box-shadow:0 14px 30px rgba(15,23,42,.06) !important;}
.decision-payment-price{font-size:28px;font-weight:900;letter-spacing:-.04em;color:var(--app-copy-strong);white-space:nowrap;}
.decision-payment-legal{max-width:62ch;}
@media (max-width:860px){
  .decision-card-grid--bids{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .decision-bid-head{grid-template-columns:minmax(0,1fr);}
  .decision-bid-photo{order:-1;}
  .decision-bid-head--selected .decision-bid-photo{order:0;}
  .decision-card--compact-bid .decision-card-actions .btn{width:100%;}
}
@media (max-width:860px){
  .master-secondary-grid{grid-template-columns:1fr;}
}

/* v74 one-screen-one-card order + repair cards */
.client-order-card{
  padding:20px 22px !important;
  display:grid;
  gap:16px;
  border-color:rgba(15,23,42,.10) !important;
}
.client-order-card__head,
.master-repair-card__head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.client-order-card__title,
.master-repair-card__head .heading-reset{
  margin:0;
  font-size:26px;
  line-height:1.05;
}
.client-order-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.client-order-focus{
  display:grid;
  gap:6px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(248,250,252,.92);
}
.client-order-focus__eyebrow,
.client-order-section__eyebrow,
.master-inline-action__eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(15,23,42,.56);
}
.client-order-focus__title{
  font-size:20px;
  line-height:1.18;
  font-weight:900;
  color:var(--app-copy-strong);
}
.client-order-focus__note,
.client-order-section__copy,
.client-order-detail__body,
.client-inline-action__body-copy{
  color:rgba(15,23,42,.74);
  line-height:1.55;
}
.client-inline-action,
.client-order-detail,
.master-repair-detail,
.master-inline-action{
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:rgba(255,255,255,.98);
}
.client-inline-action[open],
.master-inline-action[open],
.master-inline-action--static{
  box-shadow:0 14px 32px rgba(15,23,42,.06);
}
.client-inline-action summary,
.client-order-detail summary,
.master-repair-detail summary,
.master-inline-action summary{
  list-style:none;
  cursor:pointer;
}
.client-inline-action summary::-webkit-details-marker,
.client-order-detail summary::-webkit-details-marker,
.master-repair-detail summary::-webkit-details-marker,
.master-inline-action summary::-webkit-details-marker{display:none;}
.client-inline-action > summary,
.master-inline-action > summary{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:16px 18px;
}
.client-inline-action__summary-copy,
.master-inline-action__summary-copy{
  display:grid;
  gap:4px;
  min-width:0;
}
.client-inline-action__summary-title,
.master-inline-action__title{
  font-size:18px;
  line-height:1.25;
  font-weight:900;
  color:var(--app-copy-strong);
}
.client-inline-action__summary-note,
.master-inline-action__note{
  color:rgba(15,23,42,.72);
  line-height:1.45;
}
.client-inline-action__summary-aside,
.master-inline-action__cta{
  flex:0 0 auto;
  font-size:15px;
  font-weight:900;
  color:var(--app-copy-strong);
  white-space:nowrap;
}
.client-inline-action__body,
.master-inline-action__body,
.master-inline-action--static{
  padding:0 18px 18px;
}
.master-inline-action--static{padding:16px 18px 18px;}
.master-inline-action--hot,
.client-inline-action--repair,
.client-order-card--surface-warning .client-order-focus{
  border-color:rgba(245,158,11,.22);
  background:linear-gradient(180deg, rgba(255,251,235,.96), rgba(255,255,255,.98));
}
.client-order-section{
  display:grid;
  gap:12px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(248,250,252,.88);
}
.client-order-section__head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.client-order-footer{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.client-order-footer .order-cancel-form{margin:0 !important;}
.client-inline-list{display:grid;gap:6px;}
.client-inline-list__item{color:rgba(15,23,42,.8);line-height:1.45;}
.client-order-detail > summary,
.master-repair-detail > summary{
  padding:14px 16px;
  font-weight:800;
  color:var(--app-copy-strong);
}
.client-order-detail__body,
.master-repair-detail__body{
  padding:0 16px 16px;
}
.master-repair-card{
  padding:20px !important;
  display:grid;
  gap:14px;
  border-radius:20px;
  border-color:rgba(15,23,42,.10) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.96)) !important;
}
.master-repair-card > h3,
.master-repair-card > .order-status-line{display:none !important;}
.master-repair-details-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.master-repair-detail[open]{background:rgba(248,250,252,.96);}
.master-repair-detail__body .btn-row,
.master-inline-action .btn-row{align-items:flex-start;}
@media (max-width:860px){
  .master-repair-details-grid{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .client-order-card,
  .master-repair-card{padding:16px !important;}
  .client-order-card__title,
  .master-repair-card__head .heading-reset{font-size:22px;}
  .client-inline-action > summary,
  .master-inline-action > summary{padding:14px 15px;align-items:flex-start;}
  .client-inline-action__body,
  .master-inline-action__body,
  .master-inline-action--static,
  .client-order-section,
  .client-order-focus{padding-left:14px;padding-right:14px;}
  .client-inline-action__summary-aside,
  .master-inline-action__cta{white-space:normal;text-align:right;}
}


.fault-sheet{color-scheme:light;background:#fff !important;color:#0f172a;}
.fault-sheet-head,.fault-sheet-actions{background:#fff !important;}
.fault-sheet-input{background:#fff !important;color:#0f172a !important;}
@media (max-width:640px){
}

/* rebuild-layer boundary: scan-* and concept-screen canon moved to /css/ui-rebuild-layer.css */

/* Typography pass: shared shell text kept calmer on premium surfaces */
/* shell ownership moved to app.css: topbar button typography */

.bn-tx{
  font-weight:780;
  letter-spacing:0;
}


/* authenticated shell ownership moved into /css/app.css tokens */

/* 2026-03-27 narrow master-profile harmonization */
.visual-master-profile-shell.scan-shell{
  gap:12px;
}

.scan-page-head--profile{
  padding:18px 18px 16px;
}

.master-profile-page-head{
  margin-bottom:0;
}

.master-profile-page-head__main{
  align-items:flex-start;
  gap:16px;
}

.master-profile-page-head__identity{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:14px;
  align-items:center;
  min-width:0;
}

.master-profile-page-head__avatar{
  width:72px;
  height:72px;
  border-radius:22px;
  background:rgba(248,250,252,.96);
  border-color:rgba(15,23,42,.07);
}

.master-profile-page-head__copy{
  min-width:0;
  display:grid;
  gap:5px;
}

.master-profile-page-head__eyebrow{
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(15,23,42,.42);
}

.master-profile-page-head__copy .scan-page-head__sub{
  max-width:58ch;
  margin-top:0;
}

.master-profile-page-head__actions{
  margin-left:auto;
}

.master-profile-page-head__actions .btn{
  min-height:38px;
  padding:0 13px;
}

.master-profile-page-head__meta{
  padding-top:2px;
}

.master-profile-notice{
  margin-bottom:0;
}

.master-profile-section-card{
  margin-bottom:0;
  padding:18px !important;
}

.master-profile-section-head{
  align-items:flex-start !important;
}

.master-profile-section-head .section-note{
  max-width:60ch;
}

.master-profile-panel{
  border-color:rgba(15,23,42,.07) !important;
  background:rgba(248,250,252,.82) !important;
  border-radius:16px !important;
  box-shadow:none !important;
}

.master-profile-panel__intro{
  margin-top:2px;
  color:rgba(15,23,42,.68);
}

.master-profile-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.master-profile-pill-row .scan-pill{
  background:rgba(255,255,255,.76);
}

.master-profile-metric-grid{
  gap:12px;
}

.master-profile-stat-card{
  min-height:116px;
  display:grid;
  align-content:start;
  gap:6px;
  padding:14px 16px !important;
}

.master-profile-stat-card__label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(15,23,42,.48);
}

.master-profile-stat-card__value{
  font-size:22px;
  font-weight:800;
  line-height:1.05;
  letter-spacing:-.03em;
  color:var(--app-copy-strong);
}

.master-profile-stat-card__note{
  margin-top:auto;
  line-height:1.45;
}

.master-profile-form{
  display:grid;
  gap:12px;
}

.master-profile-form label{
  margin-bottom:0;
  display:grid;
  gap:7px;
  font-weight:700;
  color:#0f172a;
}

.master-profile-form.mt-12{
  margin-top:12px;
}

.master-profile-city-picker{
  display:grid;
  gap:8px;
}

.master-profile-city-picker label + br{
  display:none;
}

.master-profile-input,
.master-profile-form input[type="text"],
.master-profile-form input[type="file"],
.master-profile-form select,
.master-profile-form textarea{
  min-height:46px;
  padding:12px 13px;
  border-radius:14px;
  background:#fff;
  border-color:rgba(15,23,42,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

.master-profile-form textarea{
  min-height:92px;
}

.master-profile-form input:focus,
.master-profile-form select:focus,
.master-profile-form textarea:focus{
  border-color:rgba(33,160,56,.28);
  box-shadow:0 0 0 4px rgba(33,160,56,.08), inset 0 1px 0 rgba(255,255,255,.72);
}

.master-profile-file-input{
  width:100%;
  padding:12px 14px;
  border:1px dashed rgba(15,23,42,.16);
  border-radius:14px;
  background:rgba(255,255,255,.9);
}

.master-profile-file-input::file-selector-button{
  margin-right:12px;
  padding:8px 12px;
  border:0;
  border-radius:10px;
  background:rgba(15,23,42,.08);
  color:#0f172a;
  font-weight:700;
  cursor:pointer;
}

.master-profile-field-note{
  margin-top:-4px;
  font-size:13px;
  line-height:1.45;
  color:rgba(15,23,42,.62);
}

.master-profile-doc-list{
  margin:8px 0 0;
  list-style:none;
}

.master-profile-doc-list li{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid rgba(15,23,42,.06);
}

.master-profile-doc-list li > span:first-child{
  font-weight:700;
  color:var(--app-copy-strong);
}

.master-profile-doc-list li:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.master-profile-doc-list a{
  font-weight:700;
}

@media (max-width:760px){
  .visual-master-profile-shell.scan-shell{
    gap:8px;
  }

  .scan-page-head--profile,
  .master-profile-section-card,
  .master-profile-notice{
    padding:14px 14px 13px !important;
    border-radius:17px !important;
  }

  .master-profile-page-head__main{
    gap:12px;
  }

  .master-profile-page-head__identity{
    grid-template-columns:56px minmax(0,1fr);
    gap:12px;
  }

  .master-profile-page-head__avatar{
    width:56px;
    height:56px;
    border-radius:18px;
  }

  .master-profile-page-head__copy{
    gap:4px;
  }

  .master-profile-page-head__actions,
  .master-profile-page-head__actions .btn{
    width:100%;
  }

  .master-profile-page-head__actions .btn{
    min-height:36px;
    padding:0 12px;
  }

  .master-profile-stat-card{
    min-height:0;
    padding:12px 14px !important;
  }

  .master-profile-stat-card__label{
    font-size:11px;
  }

  .master-profile-stat-card__value{
    font-size:19px;
  }

  .master-profile-file-input{
    padding:11px 12px;
    border-radius:13px;
  }

  .master-profile-field-note,
  .master-profile-panel__intro,
  .master-profile-doc-list li{
    font-size:12.5px;
    line-height:1.45;
  }

  .master-profile-pill-row{
    gap:6px;
  }

  .master-profile-pill-row .scan-pill{
    min-height:26px;
    font-size:12px;
  }
}
