.dcms-production-shell{min-height:100vh;background:#f5f7fb;color:#172033;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.prod-header{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;padding:14px 24px;background:#fff;border-bottom:1px solid #e3e8f0}.prod-brand{display:flex;align-items:center;gap:10px;color:#172033;text-decoration:none}.prod-brand img{width:44px;height:44px;object-fit:cover;border-radius:12px;background:#0f172a}.prod-brand span{display:flex;flex-direction:column}.prod-brand strong{font-size:15px}.prod-brand small{font-size:12px;color:#687386}.prod-title{text-align:center}.prod-title h1{margin:0;font-size:18px}.prod-main{max-width:1280px;margin:0 auto;padding:24px}.prod-hero,.prod-section,.prod-review-card,.prod-mapping{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:20px;margin-bottom:18px}.prod-hero{display:flex;align-items:center;justify-content:space-between;gap:18px}.prod-hero span,.prod-section-head span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#f26a21;font-weight:700}.prod-hero h2,.prod-section h2,.prod-mapping h2{margin:4px 0 8px;font-size:22px}.prod-hero p,.prod-section p,.prod-mapping p{margin:0;color:#667085}.prod-actions{display:flex;gap:8px;flex-wrap:wrap}.prod-notice{padding:12px 14px;border-radius:12px;margin-bottom:14px;background:#eaf7ef;color:#166534;border:1px solid #bbebc7}.prod-notice.error{background:#fef0f0;color:#991b1b;border-color:#fecaca}.prod-notice.warning{background:#fff8e6;color:#8a5400;border-color:#fde2a5}.prod-empty{background:#fff;border:1px dashed #cbd5e1;border-radius:18px;padding:26px;text-align:center;color:#667085}.prod-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.prod-review-head span{font-size:12px;color:#667085}.prod-review-head h3{margin:4px 0;font-size:20px}.prod-review-head p{margin:0;color:#667085}.prod-badge{padding:7px 10px;border-radius:999px;background:#eef2f7;font-size:12px;font-weight:700;white-space:nowrap}.prod-badge.pending-review{background:#fff3db;color:#8a5400}.prod-badge.approved{background:#e8f7ed;color:#166534}.prod-badge.returned{background:#fdecec;color:#991b1b}.prod-detail-grid,.prod-health-grid,.prod-ops-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.prod-detail-grid>div,.prod-op{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px}.prod-detail-grid span,.prod-op span{display:block;color:#667085;font-size:12px;margin-bottom:5px}.prod-detail-grid strong,.prod-op strong{font-size:14px}.prod-notes{border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:14px 0}.prod-notes p{color:#344054}.prod-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.prod-evidence-grid a{display:flex;flex-direction:column;text-decoration:none;color:#172033;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff}.prod-evidence-grid img{width:100%;height:170px;object-fit:cover;background:#f8fafc}.prod-evidence-grid a.signature img{object-fit:contain}.prod-evidence-grid span{padding:9px;font-size:12px;font-weight:700}.prod-inventory{border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px}.prod-inventory summary{cursor:pointer;font-weight:700}.prod-inventory p{margin:8px 0}.prod-review-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.prod-review-actions form{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:14px}.prod-review-actions label{display:block;font-size:13px;font-weight:700}.prod-review-actions textarea,.prod-map-form select{display:block;width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:10px;margin:6px 0 10px;background:#fff}.dd-danger{background:#b42318!important;color:#fff!important;border-color:#b42318!important}.prod-reviewed{margin-top:14px;padding:12px;border-radius:12px;background:#f8fafc}.prod-reviewed span{display:block;color:#667085;font-size:12px}.prod-mapping{margin-top:24px}.prod-map-form{display:grid;grid-template-columns:1fr 1fr 1.4fr auto;gap:10px;align-items:end;margin-top:14px}.prod-map-form label{font-size:12px;font-weight:700}.prod-map-list{margin-top:14px}.prod-map-list>div{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;padding:10px 0;border-top:1px solid #edf0f4}.prod-health-hero{background:#101828;color:#fff}.prod-health-hero p{color:#d0d5dd}.prod-score{text-align:center;background:#fff;color:#101828;border-radius:18px;padding:16px 22px}.prod-score strong{display:block;font-size:32px}.prod-score span{font-size:12px;color:#667085}.prod-health-item{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px}.prod-health-item>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fee2e2;color:#991b1b;font-weight:800}.prod-health-item.ok>span{background:#dcfce7;color:#166534}.prod-health-item strong,.prod-health-item small{display:block}.prod-health-item small{color:#667085;margin-top:2px}.prod-op strong{font-size:28px}.prod-op.warn{border-color:#f2d58a}.prod-op.bad{border-color:#fecaca;background:#fff7f7}.prod-op.ok{border-color:#cde8d5}.prod-checklist{padding-left:22px}.prod-checklist li{margin:12px 0;color:#475467}.prod-checklist strong{color:#172033}.dcms-production-auth{min-height:80vh;display:grid;place-items:center;background:#f5f7fb;padding:24px}.dcms-production-auth-card{max-width:430px;background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:28px;text-align:center}.dcms-production-auth-card img{width:64px;height:64px;border-radius:16px;background:#0f172a}.dcms-production-auth-card h1{font-size:22px}.dcms-production-auth-card p{color:#667085}@media(max-width:800px){.prod-header{grid-template-columns:1fr auto;padding:10px 14px}.prod-title{display:none}.prod-main{padding:14px}.prod-hero{align-items:flex-start;flex-direction:column}.prod-detail-grid,.prod-health-grid,.prod-ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.prod-evidence-grid{grid-template-columns:1fr 1fr}.prod-review-actions{grid-template-columns:1fr}.prod-map-form{grid-template-columns:1fr}.prod-map-list>div{grid-template-columns:1fr}.prod-brand small{display:none}}@media(max-width:480px){.prod-detail-grid,.prod-health-grid,.prod-ops-grid,.prod-evidence-grid{grid-template-columns:1fr}.prod-header .dd-btn{padding:9px 10px}.prod-brand img{width:40px;height:40px}}

/* DCMS v3.1.1 — Go-Live Command Centre */
.prod-go-live-main{max-width:1420px!important;padding-bottom:72px!important}
.prod-launch-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:18px;padding:22px 24px;border:1px solid #dfe5ee;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.05)}
.prod-launch-hero.staging{border-left:5px solid #f97316}.prod-launch-hero.live{border-left:5px solid #16a34a;background:linear-gradient(135deg,#fff 0%,#f4fbf6 100%)}
.prod-launch-copy{min-width:0}.prod-launch-kicker{display:flex;align-items:center;gap:8px;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.prod-env-dot{width:9px;height:9px;border-radius:50%;background:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.12)}.prod-launch-hero.live .prod-env-dot{background:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.12)}
.prod-launch-hero h2{margin:7px 0 5px;font-size:25px;line-height:1.2;letter-spacing:-.02em}.prod-launch-hero p{max-width:850px;color:#64748b;line-height:1.55}.prod-launch-score{flex:0 0 auto;min-width:122px;padding:14px 18px;border-radius:14px;background:#f8fafc;border:1px solid #e5eaf1;text-align:center}.prod-launch-score strong{display:block;color:#0f172a;font-size:31px;line-height:1}.prod-launch-score span{display:block;margin-top:6px;color:#64748b;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.prod-launch-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px}.prod-launch-kpis.compact{grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0}.prod-launch-kpis article{min-width:0;padding:15px 16px;background:#fff;border:1px solid #e1e7ef;border-radius:14px}.prod-launch-kpis span{display:block;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.055em}.prod-launch-kpis strong{display:block;margin:7px 0 3px;color:#0f172a;font-size:22px;line-height:1.1}.prod-launch-kpis strong.good{color:#15803d}.prod-launch-kpis strong.bad{color:#b42318}.prod-launch-kpis small{display:block;color:#64748b;font-size:11px;white-space:normal;overflow-wrap:anywhere}.prod-launch-kpis small a{color:#e85d04;font-weight:700;text-decoration:none}
.prod-tool-section{padding-bottom:16px!important}.prod-go-live-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:14px}.prod-go-live-tools form{margin:0}.prod-tool-btn{width:100%;min-height:92px;box-sizing:border-box;display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;column-gap:11px;align-items:center;padding:14px 15px;border:1px solid #dde4ed;border-radius:14px;background:#fff;color:#172033;text-align:left;text-decoration:none;font:inherit;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.prod-tool-btn:hover{border-color:#c7d1df;box-shadow:0 8px 22px rgba(15,23,42,.07);transform:translateY(-1px)}.prod-tool-icon{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#fff3e8;color:#ea580c;font-size:18px;font-weight:900}.prod-tool-btn strong{align-self:end;font-size:13px}.prod-tool-btn small{align-self:start;color:#7b8798;font-size:11px;line-height:1.35}.prod-muted-line{margin-top:12px!important;font-size:11px!important;color:#8a94a4!important}
.prod-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.prod-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:30px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:800;background:#eef2f7;color:#475569}.prod-count-badge.bad{background:#feecec;color:#b42318}.prod-count-badge.warn{background:#fff5db;color:#9a6700}.prod-count-badge.ok{background:#eaf8ef;color:#15803d}
.prod-readiness-list{display:grid;gap:8px;margin-top:14px}.prod-readiness-list article{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 13px;border-radius:12px;border:1px solid #e5eaf0;background:#fff}.prod-readiness-list article.blocker{border-color:#f4c7c7;background:#fffafa}.prod-readiness-list article.warning{border-color:#f0dfad;background:#fffdf7}.prod-readiness-list article.pass{border-color:#d5eadb;background:#fbfefc}.prod-readiness-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eef2f7;color:#475569;font-size:13px;font-weight:900}.blocker .prod-readiness-icon{background:#fee2e2;color:#b42318}.warning .prod-readiness-icon{background:#fff1c7;color:#9a6700}.pass .prod-readiness-icon{background:#dcfce7;color:#15803d}.prod-readiness-list strong{display:block;font-size:13px}.prod-readiness-list p{margin:2px 0 0!important;color:#667085!important;font-size:12px!important;line-height:1.45}.prod-readiness-list a{color:#e85d04;text-decoration:none;font-size:12px;font-weight:800}.prod-passed-details{margin-top:12px}.prod-passed-details summary{cursor:pointer;color:#334155;font-weight:700;font-size:13px}
.prod-clear-section{display:flex;align-items:center;gap:14px;border-color:#cbe6d3!important;background:#fbfefc!important}.prod-clear-section h2{margin:2px 0 3px!important}.prod-clear-section span{font-size:11px;color:#15803d;font-weight:800;letter-spacing:.08em}.prod-clear-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#dcfce7;color:#15803d;font-size:20px;font-weight:900}
.prod-cron-table{margin-top:14px;border:1px solid #e2e8f0;border-radius:13px;overflow:hidden;background:#fff}.prod-cron-head,.prod-cron-row{display:grid;grid-template-columns:1.15fr 1fr 1.25fr .75fr;gap:12px;align-items:center;padding:10px 13px}.prod-cron-head{background:#f8fafc;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.prod-cron-row{border-top:1px solid #edf1f5;font-size:12px}.prod-cron-row strong{font-size:12px}.prod-cron-row>span:not(.prod-status-chip){color:#667085;overflow-wrap:anywhere}.prod-status-chip{justify-self:start;display:inline-flex;align-items:center;min-height:25px;padding:0 8px;border-radius:999px;font-size:10px;font-weight:800;background:#eef2f7;color:#475569}.prod-status-chip.ok{background:#e7f7ec;color:#15803d}.prod-status-chip.warn{background:#fff4d6;color:#9a6700}.prod-status-chip.wait{background:#eef4ff;color:#315ea8}.prod-status-chip.bad{background:#feecec;color:#b42318}.prod-cron-cadence{display:block;margin-top:2px;color:#94a3b8;font-size:9px;font-weight:700;letter-spacing:.02em}
.prod-launch-sequence .prod-checklist.launch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;counter-reset:launchstep;padding:0;margin:16px 0 0}.prod-launch-sequence .prod-checklist.launch li{counter-increment:launchstep;position:relative;margin:0;padding:14px 14px 14px 50px;border:1px solid #e3e8ef;border-radius:13px;background:#fafbfc;color:#64748b;font-size:12px;line-height:1.55}.prod-launch-sequence .prod-checklist.launch li:before{content:counter(launchstep);position:absolute;left:13px;top:13px;display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:#111827;color:#fff;font-size:12px;font-weight:800}.prod-launch-sequence .prod-checklist.launch strong{display:block;margin-bottom:2px;color:#1f2937;font-size:13px}
.prod-activation{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.8fr);gap:24px;align-items:center;border:1px solid #fed7aa!important;background:linear-gradient(135deg,#fff 0%,#fffaf5 100%)!important}.prod-activation.live{border-color:#bbdfc5!important;background:linear-gradient(135deg,#fff 0%,#f4fbf6 100%)!important}.prod-activation>div>span{font-size:10px;font-weight:850;letter-spacing:.09em;color:#e85d04}.prod-activation.live>div>span{color:#15803d}.prod-activation h2{margin:5px 0!important}.prod-activation form{display:flex;align-items:end;gap:9px}.prod-activation label{flex:1}.prod-activation label span{display:block;margin-bottom:5px;color:#475569;font-size:11px;font-weight:750}.prod-activation input{width:100%;box-sizing:border-box;min-height:44px;padding:0 12px;border:1px solid #cfd8e5;border-radius:10px;background:#fff;font-size:13px}.prod-activate-btn,.prod-rollback-btn{min-height:44px;padding:0 17px;border:0;border-radius:10px;background:#111827;color:#fff;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}.prod-activate-btn:disabled{cursor:not-allowed;opacity:.4}.prod-rollback-btn{background:#fff;border:1px solid #e5a3a3;color:#a61b1b}.prod-rollback-form{display:flex!important}
@media(max-width:1100px){.prod-launch-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.prod-go-live-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.prod-activation{grid-template-columns:1fr}.prod-cron-head,.prod-cron-row{grid-template-columns:1.1fr 1fr 1fr .8fr}}
@media(max-width:720px){.prod-launch-hero{align-items:flex-start;flex-direction:column}.prod-launch-score{min-width:0;width:100%;box-sizing:border-box}.prod-launch-kpis,.prod-launch-kpis.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.prod-go-live-tools{grid-template-columns:1fr}.prod-readiness-list article{grid-template-columns:32px 1fr}.prod-readiness-list article>a{grid-column:2}.prod-cron-head{display:none}.prod-cron-row{grid-template-columns:1fr;gap:5px;padding:12px}.prod-cron-row>span:not(.prod-status-chip):before{display:inline;font-weight:700;color:#475569}.prod-launch-sequence .prod-checklist.launch{grid-template-columns:1fr}.prod-activation form,.prod-rollback-form{align-items:stretch;flex-direction:column}.prod-activate-btn,.prod-rollback-btn{width:100%}}
@media(max-width:460px){.prod-launch-kpis,.prod-launch-kpis.compact{grid-template-columns:1fr}.prod-launch-hero h2{font-size:21px}}


/* =========================================================
   DCMS v3.1.3 — Office Portal responsive desktop/mobile cleanup
   Scope: office/dealer/admin portal pages only. Technician mobile app untouched.
   ========================================================= */
:root{
  --dcms-office-max: 1540px;
  --dcms-office-pad: 28px;
  --dcms-office-gap: 16px;
  --dcms-office-bg: #f4f6fa;
  --dcms-office-card: #ffffff;
  --dcms-office-line: #dfe4ee;
  --dcms-office-text: #111827;
  --dcms-office-muted: #667085;
  --dcms-office-orange: #f97316;
  --dcms-office-dark: #101828;
}

body.dot-dcms-dealer-hub-page,
body.dcms-office-shell-page,
body.dot-dcms-operations-page,
body.dot-dcms-native-sales-page,
body.dot-dcms-office-suite-page,
body.dot-dcms-live-tracker-page,
body.dcms-v3-office-page,
body.dot-dcms-team-page,
body.dot-dcms-production-page,
body.dot-dcms-metrics-page{
  background: var(--dcms-office-bg) !important;
  overflow-x: hidden !important;
}

body.dot-dcms-dealer-hub-page .site-header,
body.dot-dcms-dealer-hub-page .site-footer,
body.dot-dcms-dealer-hub-page .entry-header,
body.dot-dcms-dealer-hub-page .page-header,
body.dot-dcms-dealer-hub-page .wp-block-post-title,
body.dot-dcms-dealer-hub-page header.wp-block-template-part,
body.dot-dcms-dealer-hub-page footer.wp-block-template-part,
body.dcms-office-shell-page .site-header,
body.dcms-office-shell-page .site-footer,
body.dcms-office-shell-page .entry-header,
body.dcms-office-shell-page .page-header,
body.dot-dcms-operations-page .site-header,
body.dot-dcms-operations-page .site-footer,
body.dot-dcms-operations-page .entry-header,
body.dot-dcms-native-sales-page .site-header,
body.dot-dcms-native-sales-page .site-footer,
body.dot-dcms-native-sales-page .entry-header,
body.dot-dcms-office-suite-page .site-header,
body.dot-dcms-office-suite-page .site-footer,
body.dot-dcms-office-suite-page .entry-header,
body.dot-dcms-live-tracker-page .site-header,
body.dot-dcms-live-tracker-page .site-footer,
body.dot-dcms-live-tracker-page .entry-header,
body.dcms-v3-office-page .site-header,
body.dcms-v3-office-page .site-footer,
body.dcms-v3-office-page .entry-header,
body.dot-dcms-team-page .site-header,
body.dot-dcms-team-page .site-footer,
body.dot-dcms-team-page .entry-header{
  display:none!important;
}

body.dot-dcms-dealer-hub-page #page,
body.dot-dcms-dealer-hub-page #content,
body.dot-dcms-dealer-hub-page .site,
body.dot-dcms-dealer-hub-page .site-content,
body.dot-dcms-dealer-hub-page .content-area,
body.dot-dcms-dealer-hub-page .site-main,
body.dot-dcms-dealer-hub-page .entry-content,
body.dot-dcms-dealer-hub-page .wp-block-post-content,
body.dcms-office-shell-page #page,
body.dcms-office-shell-page #content,
body.dcms-office-shell-page .site,
body.dcms-office-shell-page .site-content,
body.dcms-office-shell-page .content-area,
body.dcms-office-shell-page .site-main,
body.dcms-office-shell-page .entry-content,
body.dot-dcms-operations-page #page,
body.dot-dcms-operations-page #content,
body.dot-dcms-operations-page .site,
body.dot-dcms-operations-page .site-content,
body.dot-dcms-operations-page .content-area,
body.dot-dcms-operations-page .site-main,
body.dot-dcms-operations-page .entry-content,
body.dot-dcms-native-sales-page #page,
body.dot-dcms-native-sales-page #content,
body.dot-dcms-native-sales-page .site,
body.dot-dcms-native-sales-page .site-content,
body.dot-dcms-native-sales-page .content-area,
body.dot-dcms-native-sales-page .site-main,
body.dot-dcms-native-sales-page .entry-content,
body.dot-dcms-office-suite-page #page,
body.dot-dcms-office-suite-page #content,
body.dot-dcms-office-suite-page .site,
body.dot-dcms-office-suite-page .site-content,
body.dot-dcms-office-suite-page .content-area,
body.dot-dcms-office-suite-page .site-main,
body.dot-dcms-office-suite-page .entry-content,
body.dot-dcms-live-tracker-page #page,
body.dot-dcms-live-tracker-page #content,
body.dot-dcms-live-tracker-page .site,
body.dot-dcms-live-tracker-page .site-content,
body.dot-dcms-live-tracker-page .content-area,
body.dot-dcms-live-tracker-page .site-main,
body.dot-dcms-live-tracker-page .entry-content,
body.dcms-v3-office-page #page,
body.dcms-v3-office-page #content,
body.dcms-v3-office-page .site,
body.dcms-v3-office-page .site-content,
body.dcms-v3-office-page .content-area,
body.dcms-v3-office-page .site-main,
body.dcms-v3-office-page .entry-content,
body.dot-dcms-team-page #page,
body.dot-dcms-team-page #content,
body.dot-dcms-team-page .site,
body.dot-dcms-team-page .site-content,
body.dot-dcms-team-page .content-area,
body.dot-dcms-team-page .site-main,
body.dot-dcms-team-page .entry-content{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}

/* Main office canvases */
.dh-ai-main,
.dcms-dealer-main,
.dcms-dealer-metrics,
.ops-main,
.dns-main,
.dos-app,
.dt-main,
.dcms-team-main,
.prod-main,
.dv3-main{
  width:min(var(--dcms-office-max), calc(100vw - 32px))!important;
  max-width:var(--dcms-office-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Dealer portal: modern desktop-first layout */
.dh-ai-dashboard{min-height:100vh!important;}
.dh-ai-main{padding:var(--dcms-office-pad) 0 54px!important;}
.dh-ai-hero{grid-template-columns:minmax(0,1.55fr) minmax(380px,.75fr)!important;align-items:stretch!important;}
.dh-ai-kpi-strip{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;}
.dh-ai-workbench{grid-template-columns:minmax(390px,.95fr) minmax(0,1.45fr)!important;align-items:start!important;}
.dh-ai-lower-grid{grid-template-columns:minmax(0,1.08fr) minmax(360px,.9fr)!important;align-items:start!important;}
.dh-ai-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.dh-ai-more-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.dh-ai-card{backdrop-filter:none!important;}
.dh-ai-action-card,.dh-ai-more-grid a,.dh-ai-alert,.dh-ai-activity-list a,.dh-ai-notice-list article{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;}
.dh-ai-action-card:hover,.dh-ai-more-grid a:hover,.dh-ai-alert:hover,.dh-ai-activity-list a:hover{transform:translateY(-2px);border-color:#fed7aa!important;box-shadow:0 12px 28px rgba(16,24,40,.08)!important;background:#fff!important;}

/* Shared panel/grids across office tabs */
.dcms-dealer-card,
.dd-card,
.ops-card,
.ops-panel,
.dns-panel,
.dos-panel,
.dt-panel,
.dcms-team-panel,
.prod-panel,
.dv3-panel,
.dcms-metrics-filter-card,
.dcms-metrics-history-card,
.dcms-metrics-table-card,
.dcms-metrics-definition-card{
  border-radius:18px!important;
  border:1px solid var(--dcms-office-line)!important;
  box-shadow:0 8px 24px rgba(16,24,40,.055)!important;
  background:var(--dcms-office-card)!important;
}

.dd-grid,
.dcms-dealer-grid,
.dcms-dealer-action-grid,
.ops-grid,
.ops-kpis,
.dns-grid,
.dns-kpis,
.dos-kpis,
.dt-grid,
.dcms-team-grid,
.prod-grid,
.prod-kpis,
.dv3-grid,
.dcms-metrics-kpi-grid,
.dcms-metrics-definition-grid{
  display:grid!important;
  gap:16px!important;
}

@media(min-width:1100px){
  .dd-grid,.dcms-dealer-grid,.ops-grid,.dns-grid,.dos-grid,.dt-grid,.dcms-team-grid,.prod-grid,.dv3-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .dcms-dealer-action-grid,.ops-kpis,.dns-kpis,.dos-kpis,.prod-kpis,.dcms-metrics-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  .dcms-metrics-definition-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .dns-split,.ops-split,.dv3-split,.prod-split{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr)!important;gap:18px!important;align-items:start!important;}
}

/* Tabs / link rows: desktop horizontal, mobile scroll */
.dns-tabs,
.ops-tabs,
.dv3-tabs,
.dcms-dealer-tabs,
.dcms-metrics-tabs,
.dos-link-row,
.prod-tabs,
.dd-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  align-items:center!important;
  padding:4px 0 10px!important;
  overflow:visible!important;
}
.dns-tabs a,.dns-tabs button,
.ops-tabs a,.ops-tabs button,
.dv3-tabs a,.dv3-tabs button,
.dcms-dealer-tabs a,.dcms-dealer-tabs button,
.dcms-metrics-tabs a,.dcms-metrics-tabs button,
.dos-link-row a,
.prod-tabs a,.prod-tabs button,
.dd-tabs a,.dd-tabs button{
  flex:0 0 auto!important;
  border-radius:999px!important;
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:9px 13px!important;
  font-weight:800!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

/* Forms: stop desktop from looking like narrow stacked mobile cards */
.dns-form,
.dos-grid-form,
.dos-inline-form,
.ops-form,
.dv3-form,
.dcms-team-form,
.prod-form,
.dd-form{
  gap:14px!important;
}
@media(min-width:900px){
  .dns-form .dns-grid,
  .dos-grid-form,
  .ops-form-grid,
  .dv3-form-grid,
  .dcms-team-form-grid,
  .prod-form-grid,
  .dd-form-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .dns-form .wide,
  .ops-form .wide,
  .dv3-form .wide,
  .dcms-team-wide,
  .prod-form .wide,
  .dd-form .wide{
    grid-column:1/-1!important;
  }
}

/* Tables: full desktop table width and safe mobile overflow */
.dns-table-wrap,
.dos-table-wrap,
.ops-table-wrap,
.dv3-table-wrap,
.dcms-team-table-wrap,
.prod-table-wrap,
.dcms-metrics-table-wrap,
.dd-table-wrap,
.dcms-dealer-table-wrap{
  width:100%!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
  border-radius:14px!important;
}
.dns-table,
.dos-table-wrap table,
.ops-table,
.dv3-table,
.dcms-team-table,
.prod-table,
.dcms-metrics-table,
.dd-table,
.dcms-dealer-table{
  width:100%!important;
  min-width:880px!important;
  border-collapse:collapse!important;
}

/* Desktop: give top/hero areas more room */
@media(min-width:1180px){
  .dh-ai-hero-copy{min-height:270px!important;}
  .dh-ai-hero h1{max-width:840px!important;}
  .dh-ai-action-card{min-height:132px!important;}
  .dh-ai-more-grid a{min-height:68px!important;}
}

/* Tablet */
@media(max-width:1120px){
  .dh-ai-main,
  .dcms-dealer-main,
  .dcms-dealer-metrics,
  .ops-main,
  .dns-main,
  .dos-app,
  .dt-main,
  .dcms-team-main,
  .prod-main,
  .dv3-main{width:calc(100vw - 24px)!important;}
  .dh-ai-hero,.dh-ai-workbench,.dh-ai-lower-grid{grid-template-columns:1fr!important;}
  .dh-ai-kpi-strip,.dh-ai-action-grid,.dh-ai-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* Mobile: app-like cards, no desktop squish */
@media(max-width:700px){
  :root{--dcms-office-pad:12px;}
  .dh-ai-main,
  .dcms-dealer-main,
  .dcms-dealer-metrics,
  .ops-main,
  .dns-main,
  .dos-app,
  .dt-main,
  .dcms-team-main,
  .prod-main,
  .dv3-main{width:calc(100vw - 20px)!important;padding-top:12px!important;}
  .dh-ai-hero-copy{border-radius:22px!important;padding:22px 18px!important;min-height:auto!important;}
  .dh-ai-hero h1{font-size:34px!important;line-height:1!important;letter-spacing:-.055em!important;}
  .dh-ai-hero-actions{display:grid!important;grid-template-columns:1fr!important;}
  .dh-ai-btn{width:100%!important;}
  .dh-ai-kpi-strip,.dh-ai-action-grid,.dh-ai-more-grid,.dd-grid,.dcms-dealer-grid,.dcms-dealer-action-grid,.ops-grid,.ops-kpis,.dns-grid,.dns-kpis,.dos-kpis,.dt-grid,.dcms-team-grid,.prod-grid,.prod-kpis,.dv3-grid,.dcms-metrics-kpi-grid,.dcms-metrics-definition-grid{grid-template-columns:1fr!important;}
  .dns-tabs,.ops-tabs,.dv3-tabs,.dcms-dealer-tabs,.dcms-metrics-tabs,.dos-link-row,.prod-tabs,.dd-tabs{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:8px!important;scrollbar-width:none!important;}
  .dns-tabs::-webkit-scrollbar,.ops-tabs::-webkit-scrollbar,.dv3-tabs::-webkit-scrollbar,.dcms-dealer-tabs::-webkit-scrollbar,.dcms-metrics-tabs::-webkit-scrollbar,.dos-link-row::-webkit-scrollbar,.prod-tabs::-webkit-scrollbar,.dd-tabs::-webkit-scrollbar{display:none!important;}
  .dh-ai-panel-head{display:block!important;}
  .dh-ai-panel-head h2{font-size:21px!important;}
  .dh-ai-mini-status{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .dh-ai-profile-line{align-items:flex-start!important;}
  .dh-ai-footer{display:block!important;line-height:1.7!important;}
}

/* Small phone */
@media(max-width:420px){
  .dh-ai-hero h1{font-size:30px!important;}
  .dh-ai-mini-status{grid-template-columns:1fr!important;}
  .dh-ai-card,.dh-ai-priority-panel,.dh-ai-actions-panel,.dh-ai-lower-grid>.dh-ai-card{border-radius:20px!important;padding:14px!important;}
  .dh-ai-action-card{min-height:112px!important;}
}
