/* Header controls retain their own space on desktop and mobile. */
body .c59-header { height:auto!important; min-height:86px!important; }
body .c59-header .c59-head-actions { min-width:0; max-width:100%; flex-wrap:wrap; row-gap:12px!important; padding-block:10px; }
body .c59-header .c59-head-actions>button { flex-shrink:0; }
body .c59-header .c59-head-actions>.sc-message-inbox { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:auto!important; min-width:130px!important; max-width:100%; height:auto!important; min-height:44px; padding:10px 14px!important; border:1px solid #65503a; border-radius:12px; background:#171b20; color:#f7f1ea; font:600 14px/1.4 system-ui,sans-serif!important; white-space:normal; overflow-wrap:anywhere; }
body .c59-header .sc-message-inbox:focus-visible { outline:2px solid #f0b565; outline-offset:3px; }
@media (min-width:821px) and (max-width:1200px) {
 body .c59-header { grid-template-columns:auto minmax(0,1fr)!important; grid-template-rows:auto auto!important; gap:12px!important; padding:12px 24px!important; }
 body .c59-header .c59-brand { grid-column:1!important; grid-row:1!important; }
 body .c59-header .c59-member { grid-column:2!important; grid-row:1!important; min-width:0!important; max-width:100%; }
 body .c59-header .c59-head-actions { grid-column:1/-1!important; grid-row:2!important; justify-self:end!important; }
}
/* Final mobile layout rules. Keep desktop layouts and business workflows intact. */
@media (max-width:820px) {
 html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
 body { --sc-mobile-bottom:calc(80px + env(safe-area-inset-bottom,0px)); }
 :is(#portal,#communityRoot,#admin,#authShellNew,#authView,.sc12-modal,.t32-modal,.c50-modal) :is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=hidden]),select,textarea) {
  box-sizing:border-box; min-width:0; max-width:100%; font-size:16px!important; line-height:1.45;
 }
 :is(#portal,#communityRoot,#admin) :is(.page,.main,.card,.head,.form,.formgrid,.order,.file,.t31-page,.t31-order,.t31-download,.c50-card,.c50-row,.sc12-panel,.sc12-section) { min-width:0; }
 :is(#portal,#communityRoot,#admin,.sc12-modal,.t32-modal) :is(p,small,label,.note,.sc12-mini,.sc12-badge,.sc-order-summary,.sc-message-callout) { overflow-wrap:anywhere; }
 :is(#portal,#communityRoot,#admin,.sc12-modal,.t32-modal) :is(button,.btn,.sc12-btn) { touch-action:manipulation; }
 body #publicLanding .sc-v126-header { height:auto!important; min-height:76px; display:flex; flex-wrap:wrap; gap:12px; padding:12px!important; }
 body #publicLanding .sc-v126-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
 body #publicLanding .sc-v126-actions .sc-language-control { position:static!important; margin:0; }
 body #publicLanding .sc-v126-actions .sc-language-control select { min-height:44px; font-size:16px; }

 /* Partner header grows with its controls instead of spilling out of a 66px row. */
 body #portal .shell { min-height:100dvh; padding-bottom:var(--sc-mobile-bottom); }
 body #portal .top { position:static; height:auto; min-height:72px; display:grid; grid-template-columns:100px minmax(0,1fr); gap:12px; padding:calc(12px + env(safe-area-inset-top,0px)) 12px 12px; align-items:center; }
 body #portal .brand { min-width:0; display:block; }
 body #portal .brand img { width:100%; height:48px; display:block; object-fit:contain; }
 body #portal .brand>div { display:none; }
 body #portal .topactions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; min-width:0; align-items:stretch; }
 body #portal .topactions>:is(button,.sc-language-control) { min-width:0; width:100%; max-width:none; margin:0; }
 body #portal .topactions>.btn { padding:8px!important; min-height:44px; font:600 12px/1.35 system-ui,sans-serif!important; white-space:normal; overflow-wrap:anywhere; }
 body #portal .topactions .sc-language-control { display:flex; align-items:stretch; }
 body #portal .topactions .sc-language-control label { display:none; }
 body #portal .topactions .sc-language-control select { width:100%; min-width:0; height:auto; min-height:44px; margin:0; padding:8px 24px 8px 8px; }
 body #portal .main { padding:14px 12px 24px; }
 body #portal :is(.head,.t31-hero,.t31-summary,.t31-order,.t31-download,.workshop-order) { gap:12px; }
 body #portal :is(.head h2,.t31-hero h1) { font-size:24px!important; line-height:1.25; overflow-wrap:anywhere; }
 body #portal :is(.t31-hero p,.t31-order p,.t31-order small,.t31-step small,.t31-action span,.t31-tech label,.t31-upload label,.form label,.file small,.flow span) { font-size:13px!important; line-height:1.5; }
 body #portal :is(.t31-step span,.t31-action b,.t31-order h3,.t31-tech label) { font-size:14px!important; }
 body #portal .t31-status span { font-size:12px; line-height:1.4; white-space:normal; }
 body #portal :is(.t31-order-right,.workshop-order-side) { min-width:0; width:100%; }
 body #portal :is(.t31-order-right,.workshop-order-side)>.btn { max-width:100%; white-space:normal; }
 body #portal :is(.t31-order-right,.workshop-order-side)>div { min-width:0; max-width:100%; display:flex; flex-wrap:wrap; gap:8px; }
 body #portal .mnav.partner-nav { display:flex; height:var(--sc-mobile-bottom); gap:4px; padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px)); overflow-x:auto; overflow-y:hidden; scroll-padding-inline:8px; overscroll-behavior-x:contain; background:#101318; border-top:1px solid #514232; }
 body #portal .mnav.partner-nav button { flex:0 0 auto; min-width:88px; min-height:56px; max-width:170px; padding:7px 10px; font:600 12px/1.5 system-ui,sans-serif!important; white-space:normal; border-radius:10px; }
 body #portal .mnav.partner-nav button.active { background:#302418; color:#f0bf80; }

 /* Community: each header element stays in its own row, including language. */
 body .c59-header { position:static!important; height:auto!important; min-height:0!important; display:grid!important; grid-template-columns:minmax(0,1fr)!important; grid-template-rows:auto!important; gap:12px!important; padding:calc(12px + env(safe-area-inset-top,0px)) 12px 12px!important; }
 body .c59-header .c59-brand { grid-column:1!important; grid-row:1!important; justify-self:start; }
 body .c59-header .c59-brand img { width:116px!important; height:44px!important; }
 body .c59-header .c59-member { position:static!important; grid-column:1!important; grid-row:2!important; justify-self:stretch!important; min-width:0; width:100%; height:auto!important; min-height:38px; margin:0!important; padding:8px 10px!important; display:flex; flex-wrap:wrap; gap:8px; white-space:normal; border-radius:10px; }
 body .c59-member b { min-width:0; font-size:14px!important; overflow-wrap:anywhere; }
 body .c59-member em { font-size:11px!important; }
 body .c59-header .c59-head-actions { position:static!important; grid-column:1!important; grid-row:3!important; display:flex!important; flex-wrap:wrap; justify-self:stretch; gap:8px!important; min-width:0; }
 body .c59-head-actions :is(.c59-bell,.c59-avatar,.c59-logout) { min-width:44px; height:44px; flex:0 0 auto; }
 body .c59-head-actions .c59-logout span { display:inline; }
 body .c59-head-actions .sc-message-inbox { flex:1 1 130px; min-height:44px; font-size:13px!important; }
 body .c59-head-actions .sc-language-control { position:static!important; margin:0!important; flex:1 1 110px; min-width:0; }
 body .c59-head-actions .sc-language-control select { width:100%; min-width:0; height:44px; font-size:16px; }
 body .c74-page { padding:16px 12px calc(24px + var(--sc-mobile-bottom))!important; }
 body .c59-bottom { height:var(--sc-mobile-bottom)!important; min-height:0; padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))!important; gap:2px; }
 body .c59-bottom button { min-width:0; min-height:52px; padding:4px 2px; }
 body .c59-bottom button span { font:600 11px/1.3 system-ui,sans-serif!important; white-space:normal; }
 body .c59-sheet { bottom:var(--sc-mobile-bottom)!important; max-height:calc(100dvh - var(--sc-mobile-bottom) - 24px); }
 body .c50-row { flex-wrap:wrap; gap:10px; }
 body .c50-row>div { min-width:0; flex:1 1 180px; overflow-wrap:anywhere; }

 /* Admin: eight destinations remain readable and touchable in two rows. */
 body.role-admin.sc-admin-archive { --sc-mobile-bottom:calc(126px + env(safe-area-inset-bottom,0px)); }
 body.role-admin.sc-admin-archive #bottomNav { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; height:var(--sc-mobile-bottom)!important; padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px))!important; gap:4px!important; }
 body.role-admin.sc-admin-archive #bottomNav button { min-width:0!important; max-width:none; min-height:52px!important; padding:4px!important; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font:600 11px/1.3 system-ui,sans-serif!important; }
 body.role-admin.sc-admin-archive #bottomNav :is(b,svg) { width:22px; height:22px; margin:0; font-size:21px; line-height:22px; }
 body.role-admin.sc-admin-archive #admin .sc12-admin { padding:18px 12px calc(24px + var(--sc-mobile-bottom))!important; }
 body.role-admin.sc-admin-archive #admin :is(.sc12-title h1,.sc12-section-head h2) { font-size:24px!important; line-height:1.25; overflow-wrap:anywhere; }
 body.role-admin.sc-admin-archive #admin .sc-archive-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px; }
 body.role-admin.sc-admin-archive #admin .sc-archive-shortcuts button { min-width:0; padding:12px 10px; min-height:64px; }
 body.role-admin.sc-admin-archive #admin .sc-archive-shortcuts b { min-width:0; font:650 13px/1.4 system-ui,sans-serif; overflow-wrap:anywhere; }
 body.role-admin.sc-admin-archive #admin .sc12-tools { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 body.role-admin.sc-admin-archive #admin .sc12-tools .sc12-search { grid-column:1/-1; width:100%; }
 body.role-admin.sc-admin-archive #admin .sc12-tools .sc12-tool { height:auto; min-height:44px; padding:10px; font-size:13px; white-space:normal; }

 /* General order/rework windows: one scroll area and no floating action block over fields. */
 body .sc12-modal:not(.sc-admin-chat-window),body .t32-modal { padding:env(safe-area-inset-top,0px) 0 0; align-items:stretch; height:100dvh; max-height:100dvh; }
 body .sc12-modal:not(.sc-admin-chat-window)>.sc12-modal-card,body .t32-modal>.t32-modal-card { width:100%; max-width:100%; height:100%; max-height:100%; min-width:0; border:0; border-radius:0; padding:16px 14px calc(24px + env(safe-area-inset-bottom,0px)); overflow:auto; overscroll-behavior:contain; scroll-padding-block:90px 24px; }
 body .sc12-modal:not(.sc-admin-chat-window) .sc12-modal-head { position:sticky; top:-16px; z-index:10; margin:-16px -14px 18px; padding:14px; background:#0e1216; border-bottom:1px solid #343a42; display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:10px; align-items:start; }
 body .sc12-modal-head>div { min-width:0; }
 body .sc12-modal-head h2 { max-width:100%; margin:4px 0 0; font-size:22px!important; line-height:1.25; white-space:normal!important; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
 body .sc12-modal-head .sc12-pro-kicker { font:700 11px/1.4 system-ui,sans-serif; letter-spacing:.1em; }
 body .sc12-modal-head .sc12-close { width:44px; height:44px; padding:0; display:grid; place-items:center; border:1px solid #454b53; border-radius:10px; background:#171c22; line-height:1; font-size:28px; }
 body .sc12-modal :is(.sc12-edit-grid,.sc12-order-workbench,.sc12-ultra-tabs) { grid-template-columns:minmax(0,1fr); gap:14px; }
 body .sc12-modal :is(label,.sc12-field) { font-size:14px; line-height:1.5; }
 body .sc12-modal :is(.sc12-order-main-actions,.sc12-appointment-actions) { position:static; margin:18px 0; padding:14px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; background:none; }
 body .sc12-modal :is(.sc12-order-main-actions,.sc12-appointment-actions) .primary { grid-column:1/-1; }
 body .sc12-modal :is(.sc12-order-main-actions,.sc12-appointment-actions) button { min-width:0; min-height:48px; margin:0!important; white-space:normal; font:700 14px/1.4 system-ui,sans-serif; }
 body .t32-modal-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 body .t32-modal-actions button { min-width:0; min-height:48px; white-space:normal; }
 body .sc-detail-dialog { box-sizing:border-box; width:calc(100vw - 16px); max-width:calc(100vw - 16px); max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); overflow:auto; }
 body .sc-detail-dialog>header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:14px; }
 body .sc-detail-dialog>header h2 { font-size:19px!important; line-height:1.35; }
 body .sc-detail-dialog .sc-detail-body { padding:14px; }
 body .sc-message-callout { min-width:0; flex-wrap:wrap; gap:10px; }
}
@media (max-width:520px) {
 body #portal .top { grid-template-columns:82px minmax(0,1fr); gap:10px; padding:calc(10px + env(safe-area-inset-top,0px)) 10px 10px; }
 body #portal :is(.t31-order,.t31-download,.file,.t31-summary) { grid-template-columns:minmax(0,1fr); }
 body #portal :is(.head,.t31-order-right) { align-items:stretch; justify-items:stretch; }
 body #portal .head>div { min-width:0; }
 body #portal .t31-order-right .btn { width:100%; }
 body #portal :is(.card,.t31-section,.t31-hero) { padding:14px; }
 body #portal .t31-hero h1 { font-size:26px!important; }
 body .c50-row>button { width:100%; min-height:44px; }
 body .sc-detail-dialog .sc-profile-fields { grid-template-columns:minmax(0,1fr); }
}

/* Public website and vehicle-data offer. */
body .sc-creator-footer { grid-column:1/-1; width:100%; box-sizing:border-box; display:flex; flex-direction:column; align-items:stretch; gap:22px; padding:32px 0 18px; margin:12px 0; border-top:1px solid #463a2d; text-align:left; }
body .sc-creator-footer .sc-creator-intro { min-width:0; max-width:800px; }
body .sc-creator-footer .sc-creator-kicker { margin:0 0 10px; color:#dfab6b; font:700 11px/1.5 system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
body .sc-creator-footer h2 { margin:0 0 12px; color:#f3eee7; font:650 28px/1.3 system-ui,sans-serif!important; letter-spacing:normal; text-transform:none; }
body .sc-creator-footer p:not(.sc-creator-kicker) { margin:0; color:#b7babf; font:400 14px/1.7 system-ui,sans-serif; overflow-wrap:anywhere; }
body .sc-creator-footer .sc-creator-examples { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
body .sc-creator-examples article { min-width:0; padding:22px; border:1px solid #463a2d; border-radius:14px; background:#11100e; }
body .sc-creator-footer .sc-creator-examples h3 { margin:0 0 10px; color:#efc792; font:650 18px/1.4 system-ui,sans-serif!important; letter-spacing:normal; text-transform:none; }
body .sc-creator-footer .sc-creator-actions { display:flex; flex-wrap:wrap; gap:12px; }
body .sc-creator-footer .sc-creator-contact { display:inline-flex; align-items:center; justify-content:center; max-width:100%; min-height:48px; box-sizing:border-box; padding:12px 20px; border:1px solid #bd8a4f; border-radius:10px; background:#dca25b; color:#17100a; font:700 14px/1.4 system-ui,sans-serif; text-align:center; text-decoration:none; white-space:normal; }
body .sc-creator-footer .sc-creator-contact-secondary { background:#211b14; color:#f0c48f; }
body .sc-creator-footer .sc-creator-contact:hover { filter:brightness(1.12); }
body .sc-creator-footer .sc-creator-contact:focus-visible { outline:2px solid #f0b565; outline-offset:4px; }
body .sc-creator-footer .sc-creator-terms { font-size:12px!important; }
body .sc-creator-footer .sc-creator-credit { padding-top:4px; font-size:12px!important; color:#969a9f!important; }
body .sc-v114-footer>.sc-v114-footer-brand,body .sc-public-footer>.sc-creator-brand { grid-column:1/-1; justify-self:end; display:flex; flex-direction:column; align-items:flex-end; gap:8px; width:auto; max-width:230px; margin-left:auto; text-align:right; }
body .sc-v114-footer>.sc-v114-footer-brand img,body .sc-public-footer>.sc-creator-brand img { display:block; width:160px; max-width:100%; height:auto; object-fit:contain; }
body .sc-v114-footer>.sc-v114-footer-brand small,body .sc-public-footer>.sc-creator-brand small { display:block; font:400 11px/1.5 system-ui,sans-serif; color:#929292; text-align:right; }
@media(max-width:760px) { body .sc-creator-footer { gap:18px; padding-block:24px; } body .sc-creator-footer h2 { font-size:24px!important; } body .sc-creator-footer .sc-creator-examples { grid-template-columns:minmax(0,1fr); } body .sc-creator-examples article { padding:18px; } body .sc-creator-footer .sc-creator-actions { flex-direction:column; align-items:stretch; } body .sc-creator-footer .sc-creator-contact { width:100%; } }

/* Logo beside Contact on wide screens; before the offer at all sizes. */
body .sc-v114-footer>.sc-v114-footer-brand {grid-column:auto;align-self:center;min-width:0;box-sizing:border-box}
body .sc-demo-gallery>h3 {font:650 24px/1.3 system-ui,sans-serif!important;color:#f3eee7;margin:10px 0!important;letter-spacing:normal;text-transform:none}
body .sc-demo-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}
body .sc-demo-card {display:block;min-width:0;border:1px solid #463a2d;border-radius:12px;overflow:hidden;text-decoration:none;background:#161615;transition:transform .2s}
body .sc-demo-card:hover {transform:translateY(-4px)}
body .sc-demo-card:focus-visible {outline:3px solid #efc792;outline-offset:4px}
body .sc-demo-art {height:210px;padding:20px;overflow:hidden;background:var(--bg);color:var(--accent)}
body .sc-demo-art>span {display:block;font:800 18px/1.2 system-ui,sans-serif;letter-spacing:-.04em;color:var(--ink)}
body .sc-demo-art>span span {color:var(--accent)}
body .sc-demo-art svg {height:170px;width:100%;display:block}
body .sc-demo-workshop {--bg:#0e141a;--ink:#f1f6fb;--accent:#80d9ba}
body .sc-demo-detail {--bg:#f5f1e9;--ink:#242a28;--accent:#426351}
body .sc-demo-craft {--bg:#eee8dc;--ink:#272921;--accent:#ab4b2a}
body .sc-demo-caption {display:flex;flex-direction:column;gap:6px;padding:18px;color:#f3eee7;font:650 16px/1.4 system-ui,sans-serif}
body .sc-demo-caption small {font:500 13px/1.5 system-ui,sans-serif;color:#efc792}
@media(max-width:1000px){body .sc-v114-footer>.sc-v114-footer-brand {grid-column:1/-1}}
@media(max-width:760px){body .sc-demo-grid {grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){body .sc-demo-card {transition:none}}

/* Professional photographic previews, approved design direction. */
body .sc-demo-art {height:295px;padding:0;position:relative}
body .sc-demo-minihead {height:43px;padding:14px 14px 10px;display:flex;justify-content:space-between;gap:10px;color:var(--ink);font:600 13px/1.1 Arial,sans-serif;letter-spacing:-.04em}
body .sc-demo-minihead span {font:400 7px/1.5 Arial,sans-serif;letter-spacing:normal}
body .sc-demo-minibody {height:252px;position:relative;overflow:hidden}
body .sc-demo-minibody img {display:block;width:100%;height:100%;object-fit:cover}
body .sc-demo-minibody strong {position:absolute;left:16px;top:24px;font:750 31px/1.04 Arial,sans-serif!important;letter-spacing:-.04em!important;color:var(--ink);text-align:left;text-transform:none!important}
body .sc-demo-workshop {--bg:#0c0f0e;--ink:#f0eee7;--accent:#b48260}
body .sc-demo-workshop .sc-demo-minibody:after {content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.66),transparent 85%)}
body .sc-demo-workshop .sc-demo-minibody strong {z-index:1}
body .sc-demo-workshop .sc-demo-minibody img {object-position:65% center}
body .sc-demo-detail {--bg:#f3efe5;--ink:#292e20;--accent:#303b28}
body .sc-demo-detail .sc-demo-minibody img {width:54%;margin-left:auto;object-position:65% center}
body .sc-demo-detail .sc-demo-minibody strong {font:400 36px/1.05 Georgia,serif!important;left:12px;top:36px}
body .sc-demo-craft {--bg:#f3eee4;--ink:#272820;--accent:#805035}
body .sc-demo-craft .sc-demo-minibody img {height:165px}
body .sc-demo-craft .sc-demo-minibody strong {position:static;display:block;padding:14px 16px;font:400 26px/1.03 Arial,sans-serif!important}

/* Area inbox and vehicle catch-up status */
.sc-chat-center > .sc-directory-tools{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:16px;margin-bottom:0}
.sc-chat-center > .sc-directory-tools label{flex:1 1 220px;min-width:0}
.sc-chat-center > .sc-directory-tools .btn{flex:0 0 auto;min-height:44px;width:auto}
.sc-chat-center > .sc-channel-note{margin:8px 16px 16px;padding:0;border:0;color:#bdc5d2;font-size:14px}
.sc-chat-center .sc-chat-layout.is-empty{display:block;min-height:0;height:auto}
.sc-chat-center .sc-chat-layout.is-empty .sc-chat-sidebar{border:0;width:100%;max-width:none}
.sc-chat-center .sc-chat-layout.is-empty .sc-chat-thread{display:none}
.sc-chat-center .sc-chat-layout.is-empty .sc-empty{padding:24px;text-align:left}
.sc-chat-center .sc-chat-layout.is-empty .sc-empty p{max-width:65ch;margin:10px 0 0}
.sc-chat-center .sc-chat-pager[hidden]{display:none}
.sc-research-status{border:1px solid #775632;border-radius:16px;background:#16191f;padding:20px;margin-bottom:20px;color:#f1f3f7}
.sc-research-status header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sc-research-status h3{margin:0;font-size:18px}.sc-research-status header strong{color:#e8b770;font-size:14px}
.sc-research-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:18px}
.sc-research-metrics p{margin:0}.sc-research-metrics b,.sc-research-metrics span{display:block;overflow-wrap:anywhere}
.sc-research-metrics b{font-size:22px}.sc-research-metrics span,.sc-research-status>p{font-size:13px;color:#bcc5d2;line-height:1.5}
@media(max-width:700px){.sc-research-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sc-chat-center > .sc-directory-tools label{flex-basis:100%}.sc-chat-center > .sc-directory-tools .btn{width:100%}.sc-research-status{padding:16px}}

/* Compact finance directory; keep existing invoice/category semantics. */
.sc-invoice-directory{min-width:0}
.sc-invoice-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 20px}
.sc-invoice-intro span{color:#dda65e;font-size:11px;letter-spacing:.12em;font-weight:700}
.sc-invoice-intro h3{margin:5px 0 0;font-size:21px;color:#f5f5f7}
.sc-invoice-intro p{max-width:40ch;font-size:13px;color:#b8bfca;line-height:1.5;margin:0}
.sc-invoice-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 20px}
.sc-invoice-categories button{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;min-width:0;min-height:78px;padding:12px 32px 12px 12px;border:1px solid #343a46;border-radius:12px;background:#181c24!important;color:#e9edf3!important;text-align:left;cursor:pointer;box-shadow:none;line-height:1.25}
.sc-invoice-categories button small{font-size:10px;color:#b7c0ce;text-transform:uppercase;letter-spacing:.06em}
.sc-invoice-categories button b{font-size:12px;overflow-wrap:anywhere}
.sc-invoice-categories button>span{position:absolute;right:8px;top:10px;min-width:20px;padding:3px;border-radius:6px;background:#292f3a;color:#e7ebf3;font-size:11px;text-align:center}
.sc-invoice-categories button.active{border-color:#daa258;background:#30261a!important;color:#ffe0b0!important;box-shadow:inset 0 -2px #daa258}
.sc-invoice-categories button.active small{color:#ebc491}.sc-invoice-categories button.active>span{background:#805a2d;color:#fff}
.sc-invoice-categories button:hover{border-color:#a98557}.sc-invoice-categories button:focus-visible{outline:2px solid #efc78f;outline-offset:3px}
.sc-invoice-directory .sc-invoice-filters{display:flex;align-items:flex-end;gap:12px;padding:16px;border:1px solid #343a46;border-radius:12px;background:#12161c}
.sc-invoice-filters label{flex:1;min-width:0;font-size:12px;color:#c3cad5}.sc-invoice-filters label:has(input){flex:2}
.sc-invoice-filters input,.sc-invoice-filters select{min-height:44px;width:100%;margin-top:7px;background:#1c212b;color:#f3f4f7;border:1px solid #48505e;border-radius:8px;padding:10px;font-size:14px;box-sizing:border-box}
.sc-invoice-filters .btn{min-height:44px;margin:0;background:#dda65e!important;color:#1e170e!important;border:0;padding:10px 22px;border-radius:8px}
.sc-invoice-filters .sc-invoice-mobile-category{display:none}.sc-invoice-note{font-size:12px;line-height:1.5;color:#aeb8c8;margin:10px 0 18px}
.sc-invoice-directory .sc-work-row{border:1px solid #343a46;border-radius:12px;padding:18px;background:#171b22;gap:18px}
.sc-invoice-directory .sc-work-row-actions .btn{background:#262c36;color:#f1f3f7;border:1px solid #47505e;border-radius:8px;min-height:42px;font-size:12px}
.sc-invoice-directory .sc-work-row-actions .btn.gold{background:#dda65e;color:#1e170e;border-color:#dda65e}
@media(max-width:850px){.sc-invoice-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.sc-invoice-categories{display:none}.sc-invoice-intro{display:block;margin:8px 0 16px}.sc-invoice-intro p{margin-top:8px}.sc-invoice-directory .sc-invoice-filters{display:grid;grid-template-columns:minmax(0,1fr);padding:14px}.sc-invoice-filters .sc-invoice-mobile-category{display:block}.sc-invoice-filters .btn{width:100%}.sc-invoice-directory .sc-work-row{padding:14px}.sc-invoice-directory .sc-work-row-actions{display:flex;flex-wrap:wrap}.sc-invoice-directory .sc-work-row-actions .btn{flex:1}}
.sc-archive-extension[data-archive-module="payments"]>.sc12-modal-card{display:flex;flex-direction:column;overflow:hidden!important;max-height:88dvh;padding:0!important;width:min(1080px,100%)}
.sc-archive-extension[data-archive-module="payments"]>.sc12-modal-card>.sc12-modal-head{position:relative;flex:none;z-index:3;margin:0;padding:20px 24px;background:#14181f;border-bottom:1px solid #343a46}
.sc-archive-extension[data-archive-module="payments"] [data-archive-host]{overflow:auto;min-height:0;padding:18px 24px 24px;overscroll-behavior:contain}
.sc-archive-extension[data-archive-module="payments"] .sc12-modal-head h2{white-space:normal;line-height:1.3;color:#f3f4f7}
body.role-admin .sc-invoice-directory .sc-invoice-categories button :is(small,b){color:inherit!important}
body.role-admin.sc-admin-light .sc-invoice-directory .sc-invoice-intro h3{color:#20252b}
body.role-admin.sc-admin-light .sc-invoice-directory .sc-invoice-filters{background:#f4f6f8;border-color:#d2d8df}
body.role-admin.sc-admin-light .sc-invoice-directory .sc-work-row{background:#fff;border-color:#d2d8df}
body.role-admin.sc-admin-light .sc-archive-extension[data-archive-module="payments"]>.sc12-modal-card>.sc12-modal-head{background:#fff;border-color:#d2d8df}
body.role-admin.sc-admin-light .sc-archive-extension[data-archive-module="payments"] .sc12-modal-head :is(h2,button){color:#20252b}
@media(max-width:600px){.sc-archive-extension[data-archive-module="payments"]>.sc12-modal-card>.sc12-modal-head{padding:14px 16px}.sc-archive-extension[data-archive-module="payments"] [data-archive-host]{padding:10px 14px 20px}}
body.role-admin .sc-admin-chat-window .sc-chat-center>.sc-directory-tools{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}
body.role-admin .sc-admin-chat-window .sc-chat-center>.sc-directory-tools>label{flex:1 1 220px}
body.role-admin .sc-admin-chat-window .sc-chat-center>.sc-channel-note{flex:none;margin:0 0 12px;font-size:12px}
body.role-admin .sc-admin-chat-window .sc-chat-layout.is-empty{display:block;flex:none;height:auto;min-height:0}
body.role-admin .sc-admin-chat-window .sc-chat-layout.is-empty .sc-chat-sidebar{width:100%;max-width:none;border:0;box-sizing:border-box}
body.role-admin .sc-admin-chat-window .sc-chat-layout.is-empty .sc-chat-thread{display:none}
@media(max-width:600px){body.role-admin .sc-admin-chat-window .sc-chat-center>.sc-directory-tools>label{flex-basis:100%}body.role-admin .sc-admin-chat-window .sc-chat-center>.sc-directory-tools>.btn{width:100%}}

/* Partner sign-in feedback and recovery stay readable on mobile. */
.loginbox .sc-partner-login-status{font:14px/1.6 system-ui,sans-serif;text-align:left;padding:12px;border:1px solid #985952;border-radius:10px;color:#ffd4ce;background:#2b1719;overflow-wrap:anywhere;margin:14px 0 0}
.loginbox .sc-partner-login-status[data-type="info"],.loginbox .sc-partner-login-status[data-type="success"]{border-color:#527669;background:#142820;color:#d5f2e4}
.loginbox .sc-partner-login-status[hidden]{display:none}
.loginbox .sc-partner-password-toggle{display:block;min-height:44px;margin:4px 0 0;padding:8px 0;color:#edc18e;background:transparent;border:0;font:14px system-ui,sans-serif;cursor:pointer}
.loginbox .sc-partner-password-toggle:focus-visible{outline:2px solid #edc18e;outline-offset:3px}
.loginbox #loginReset{text-transform:none;font-size:14px}
.loginbox input{box-sizing:border-box;font-size:16px;max-width:100%}

/* The tariff shortcut is a text button, never a fixed-size header icon. */
body #communityRoot .c59-header .c59-member{display:flex!important;flex-wrap:wrap!important;gap:10px!important;width:auto!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:48px!important;padding:8px 12px!important;white-space:normal!important}
body #communityRoot .c59-header .c59-member>b{flex:1 1 120px;min-width:0!important;overflow-wrap:anywhere;white-space:normal}
body #communityRoot .c59-header .c59-member>em{flex:0 0 auto;position:static!important;white-space:nowrap}
body #communityRoot .c59-header .c59-member>.sc-membership-shortcut{position:static!important;display:inline-flex!important;flex:0 0 auto!important;width:auto!important;min-width:122px!important;max-width:100%!important;height:auto!important;min-height:40px!important;margin:0!important;padding:10px 14px!important;white-space:nowrap!important;overflow:visible!important;font:700 13px/1.3 system-ui,sans-serif!important;letter-spacing:normal!important}
body #communityRoot .sc-membership-shortcut>span{position:static!important;width:auto!important;height:auto!important;margin:0!important;font:inherit!important}
@media(min-width:1201px){body #communityRoot .c59-header{grid-template-columns:auto minmax(260px,1fr) auto!important;gap:18px!important;padding:12px 24px!important}body #communityRoot .c59-header .c59-member{margin-left:0!important}}
@media(max-width:820px){body #communityRoot .c59-header .c59-member{width:100%!important}body #communityRoot .c59-header .c59-member>.sc-membership-shortcut{margin-left:auto!important}}
