/* Forecourt Cloud app UI — v0.3.6 */
:root{
  --fc-accent:#ff6724;
  --fc-accent-strong:#e95617;
  --fc-bg:#f3f1ed;
  --fc-surface:#ffffff;
  --fc-surface-2:#f8f7f4;
  --fc-surface-3:#efede8;
  --fc-text:#171717;
  --fc-muted:#716f69;
  --fc-subtle:#9b9891;
  --fc-border:#e5e2dc;
  --fc-border-strong:#d6d2ca;
  --fc-sidebar:#ffffff;
  --fc-sidebar-hover:#f1efeb;
  --fc-sidebar-active:#ebe8e2;
  --fc-sidebar-text:#171717;
  --fc-sidebar-muted:#716f69;
  --fc-sidebar-border:#e5e2dc;
  --fc-success-bg:#eaf6ee;
  --fc-success:#247447;
  --fc-danger-bg:#fff0ef;
  --fc-danger:#af3b33;
  --fc-warning-bg:#fff6df;
  --fc-warning:#8d6411;
  --fc-shadow:0 1px 2px rgba(18,18,18,.03),0 12px 32px rgba(18,18,18,.055);
  --fc-radius:18px;
  --fc-appbar-h:72px;
  --fc-sidebar-w:242px;
}

html[data-fc-theme="dark"],html[data-fc-theme="dark"] body{
  --fc-bg:#111111;
  --fc-surface:#1a1a1a;
  --fc-surface-2:#202020;
  --fc-surface-3:#292929;
  --fc-text:#f6f3ee;
  --fc-muted:#aaa7a1;
  --fc-subtle:#77746f;
  --fc-border:#2e2e2e;
  --fc-border-strong:#3a3a3a;
  --fc-sidebar:#0d0d0d;
  --fc-sidebar-hover:#1a1a1a;
  --fc-sidebar-active:#282828;
  --fc-sidebar-text:#f8f5ef;
  --fc-sidebar-muted:#86837e;
  --fc-sidebar-border:rgba(255,255,255,.06);
  --fc-success-bg:#173123;
  --fc-success:#8dd8aa;
  --fc-danger-bg:#381f1d;
  --fc-danger:#f0aaa3;
  --fc-warning-bg:#3c311c;
  --fc-warning:#e9c36c;
  --fc-shadow:0 1px 2px rgba(0,0,0,.2),0 16px 42px rgba(0,0,0,.24);
}

*{box-sizing:border-box}
html{min-height:100%;background:var(--fc-bg);color:var(--fc-text);scroll-behavior:smooth;color-scheme:light}html[data-fc-theme="dark"]{color-scheme:dark}
body.fcsm-body{min-height:100vh;margin:0;background:var(--fc-bg);color:var(--fc-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;overscroll-behavior:none}
a{color:inherit}
button,input,select,textarea{font:inherit}

/* ---------- Global app bar ---------- */
.fcsm-appbar,.fcsm-topbar{
  position:sticky;top:0;z-index:120;height:var(--fc-appbar-h);padding:0 24px;padding-top:env(safe-area-inset-top);
  display:flex;align-items:center;gap:18px;background:color-mix(in srgb,var(--fc-surface) 92%,transparent);
  border-bottom:1px solid var(--fc-border);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
.fcsm-wordmark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;text-decoration:none;line-height:0;z-index:2}
.fcsm-wordmark .fcsm-logo-theme{display:block;width:auto;height:32px;max-width:min(250px,38vw);object-fit:contain}
.fcsm-logo-dark{display:none!important}
html[data-fc-theme="dark"] .fcsm-logo-light,body[data-fc-theme="dark"] .fcsm-logo-light{display:none!important}
html[data-fc-theme="dark"] .fcsm-logo-dark,body[data-fc-theme="dark"] .fcsm-logo-dark{display:block!important}
.fcsm-appbar-context{min-width:0;max-width:32vw;color:var(--fc-muted);font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fcsm-appbar-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.fcsm-appbar-user{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--fc-surface-3);border:1px solid var(--fc-border);font-size:12px;font-weight:900;color:var(--fc-text)}
.fcsm-menu-button{display:none;width:40px;height:40px;padding:0;border:1px solid var(--fc-border);border-radius:12px;background:var(--fc-surface);color:var(--fc-text);cursor:pointer}
.fcsm-add-mobile{display:none}

/* ---------- Shell / navigation ---------- */
.fcsm-shell{min-height:calc(100vh - var(--fc-appbar-h));display:grid;grid-template-columns:var(--fc-sidebar-w) minmax(0,1fr)}
.fcsm-sidebar{position:sticky;top:var(--fc-appbar-h);height:calc(100vh - var(--fc-appbar-h));padding:22px 14px max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column;background:var(--fc-sidebar);color:var(--fc-sidebar-text);border-right:1px solid var(--fc-sidebar-border)}
.fcsm-brand{padding:4px 10px 18px;margin-bottom:4px;border-bottom:1px solid var(--fc-sidebar-border)}
.fcsm-brand-logo{display:none}
.fcsm-brand strong{display:block;font-size:13px;font-weight:850;color:var(--fc-sidebar-text)}
.fcsm-brand small{display:block;margin-top:4px;color:var(--fc-sidebar-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fcsm-nav{display:grid;gap:4px;margin-top:14px}
.fcsm-nav a{position:relative;padding:12px 13px;border-radius:11px;color:var(--fc-sidebar-muted);text-decoration:none;font-size:13px;font-weight:760;transition:.18s ease}
.fcsm-nav a:hover{background:var(--fc-sidebar-hover);color:var(--fc-sidebar-text)}
.fcsm-nav a.is-active{background:var(--fc-sidebar-active);color:var(--fc-sidebar-text)}
.fcsm-nav a.is-active::before{content:"";position:absolute;left:0;top:11px;bottom:11px;width:3px;border-radius:0 3px 3px 0;background:var(--fc-accent)}
.fcsm-nav .fcsm-nav-primary{margin-top:14px;background:var(--fc-accent);color:#fff;text-align:center;box-shadow:0 8px 24px rgba(255,103,36,.18)}
.fcsm-nav .fcsm-nav-primary:hover{background:var(--fc-accent-strong);color:#fff}
.fcsm-sidebar-bottom{margin-top:auto;padding:16px 10px 0;border-top:1px solid var(--fc-sidebar-border);display:flex;align-items:center;justify-content:space-between;gap:10px}
.fcsm-sidebar-bottom span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:750;color:var(--fc-sidebar-text)}
.fcsm-sidebar-bottom a{flex:0 0 auto;color:var(--fc-sidebar-muted);font-size:11px;text-decoration:none}.fcsm-sidebar-bottom a:hover{color:var(--fc-sidebar-text)}
.fcsm-main{min-width:0;min-height:calc(100vh - var(--fc-appbar-h));background:var(--fc-bg)}
.fcsm-main>.fcsm-topbar{display:none}

/* ---------- Page rhythm ---------- */
.fcsm-page{width:100%;max-width:1440px;margin:0 auto;padding:42px 40px 84px}
.fcsm-hero-row,.fcsm-form-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:26px}
.fcsm-hero-row>div,.fcsm-form-head>div{min-width:0}
.fcsm-hero-row h1,.fcsm-form-head h1{margin:0 0 8px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(36px,4vw,54px);font-weight:500;letter-spacing:-2.2px;line-height:1}
.fcsm-hero-row p,.fcsm-form-head p{max-width:720px;margin:0;color:var(--fc-muted);font-size:14px;line-height:1.6}
.fcsm-eyebrow{display:none!important}
.fcsm-back{display:inline-flex;margin:0 0 14px;color:var(--fc-muted);text-decoration:none;font-size:12px;font-weight:750}.fcsm-back:hover{color:var(--fc-text)}

/* ---------- Buttons ---------- */
.fcsm-button{min-height:44px;padding:0 18px;border:1px solid transparent;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-size:13px;font-weight:850;cursor:pointer;transition:.18s ease}
.fcsm-button-primary{background:var(--fc-accent);color:#fff;box-shadow:0 6px 18px rgba(255,103,36,.14)}
.fcsm-button-primary:hover{background:var(--fc-accent-strong);transform:translateY(-1px)}
.fcsm-button-secondary{background:var(--fc-surface);border-color:var(--fc-border);color:var(--fc-text)}
.fcsm-button-secondary:hover{background:var(--fc-surface-2);border-color:var(--fc-border-strong)}

/* ---------- Dashboard ---------- */
.fcsm-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}
.fcsm-stats article{min-width:0;padding:20px;border:1px solid var(--fc-border);border-radius:16px;background:var(--fc-surface);box-shadow:var(--fc-shadow)}
.fcsm-stats span{display:block;color:var(--fc-muted);font-size:11px;font-weight:750}
.fcsm-stats strong{display:block;margin:10px 0 7px;font-size:32px;letter-spacing:-1.5px;line-height:1}
.fcsm-stats small{display:block;color:var(--fc-subtle);font-size:10px;line-height:1.4}

/* ---------- Panels / lists ---------- */
.fcsm-panel{overflow:hidden;border:1px solid var(--fc-border);border-radius:18px;background:var(--fc-surface);box-shadow:var(--fc-shadow)}
.fcsm-panel-head{min-height:66px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--fc-border)}
.fcsm-panel-head h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:25px;font-weight:500;letter-spacing:-.8px}
.fcsm-panel-head a{color:var(--fc-muted);text-decoration:none;font-size:12px;font-weight:800}.fcsm-panel-head a:hover{color:var(--fc-text)}
.fcsm-toolbar{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--fc-border);background:var(--fc-surface)}
.fcsm-toolbar input{width:min(480px,100%);min-height:42px;padding:0 13px;border:1px solid var(--fc-border);border-radius:11px;background:var(--fc-surface-2);color:var(--fc-text);outline:0;font-size:13px}
.fcsm-toolbar input::placeholder{color:var(--fc-subtle)}
.fcsm-toolbar input:focus{border-color:var(--fc-accent);box-shadow:0 0 0 3px rgba(255,103,36,.12)}
.fcsm-toolbar span{color:var(--fc-muted);font-size:11px;font-weight:700}
.fcsm-vehicle-list{display:grid}
.fcsm-vehicle-row{min-width:0;padding:12px 16px;display:grid;grid-template-columns:70px minmax(0,1fr) auto auto 18px;align-items:center;gap:14px;border-bottom:1px solid var(--fc-border);background:var(--fc-surface);color:var(--fc-text);text-decoration:none;transition:.16s ease}
.fcsm-vehicle-row:last-child{border-bottom:0}.fcsm-vehicle-row:hover{background:var(--fc-surface-2)}
.fcsm-row-link{display:contents;color:inherit;text-decoration:none}
.fcsm-row-image{width:70px;height:52px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:var(--fc-surface-3);color:var(--fc-subtle);font-size:9px}
.fcsm-row-image img{width:100%;height:100%;object-fit:cover}
.fcsm-row-main{min-width:0}.fcsm-row-main strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:850}.fcsm-row-main small{display:block;margin-top:5px;color:var(--fc-muted);font-size:10px;line-height:1.4}
.fcsm-source-text{font-weight:800}.fcsm-source-autotrader{color:#438bd2}.fcsm-source-manual{color:var(--fc-muted)}
.fcsm-row-price{font-size:13px;font-weight:900;white-space:nowrap}
.fcsm-chevron{color:var(--fc-subtle);font-size:21px}

.fcsm-status{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.45px;white-space:nowrap}
.fcsm-status-live{background:var(--fc-success-bg);color:var(--fc-success)}
.fcsm-status-draft{background:var(--fc-surface-3);color:var(--fc-muted)}
.fcsm-status-sold{background:var(--fc-danger-bg);color:var(--fc-danger)}
.fcsm-source-badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:900}.fcsm-source-badge.fcsm-source-autotrader{background:#eaf3ff;color:#326fae}.fcsm-source-badge.fcsm-source-manual{background:var(--fc-surface-3);color:var(--fc-muted)}
html[data-fc-theme="dark"] .fcsm-source-badge.fcsm-source-autotrader{background:#152a3d;color:#8fc3f4}

.fcsm-empty{padding:56px 24px;text-align:center}.fcsm-empty h3{margin:0 0 7px;font-size:21px}.fcsm-empty p{margin:0 0 18px;color:var(--fc-muted);font-size:13px}
.fcsm-notice{margin:0 0 18px;padding:13px 15px;border:1px solid color-mix(in srgb,var(--fc-success) 30%,var(--fc-border));border-radius:12px;background:var(--fc-success-bg);color:var(--fc-success);font-size:12px;font-weight:750}
.fcsm-notice-error{background:var(--fc-danger-bg);border-color:color-mix(in srgb,var(--fc-danger) 30%,var(--fc-border));color:var(--fc-danger)}

/* ---------- Sold vehicles ---------- */
.fcsm-sold-card{padding:14px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;border-bottom:1px solid var(--fc-border);background:var(--fc-surface)}
.fcsm-sold-card:last-child{border-bottom:0}.fcsm-sold-card:hover{background:var(--fc-surface-2)}
.fcsm-sold-main{min-width:0;display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:14px;color:var(--fc-text);text-decoration:none}
.fcsm-sold-actions{display:flex;align-items:center;gap:10px}.fcsm-sold-meta{display:grid;gap:4px;text-align:right}.fcsm-sold-meta strong{font-size:12px}.fcsm-sold-meta small{color:var(--fc-muted);font-size:10px}

/* ---------- Forms ---------- */
.fcsm-form{display:grid;gap:16px}
.fcsm-form-section{position:relative;padding:26px;border:1px solid var(--fc-border);border-radius:18px;background:var(--fc-surface);box-shadow:var(--fc-shadow)}
.fcsm-section-number{position:absolute;right:24px;top:21px;color:var(--fc-surface-3);font-size:35px;font-weight:950;letter-spacing:-2px}
.fcsm-section-copy{max-width:650px;margin-bottom:22px}.fcsm-section-copy h2{margin:0 0 7px;font-family:Georgia,"Times New Roman",serif;font-size:27px;font-weight:500;letter-spacing:-.9px}.fcsm-section-copy p{margin:0;color:var(--fc-muted);font-size:12px;line-height:1.55}
.fcsm-fields{display:grid;gap:14px}.fcsm-fields-4{grid-template-columns:repeat(4,minmax(0,1fr))}.fcsm-fields-2{grid-template-columns:1fr 1fr}.fcsm-span-2{grid-column:span 2}
.fcsm-fields label>span{display:block;margin:0 0 6px 1px;color:var(--fc-muted);font-size:10px;font-weight:850}.fcsm-fields label>span small{font-weight:650;color:var(--fc-subtle)}
.fcsm-fields input,.fcsm-fields select,.fcsm-fields textarea,.fcsm-inline-password input{width:100%;min-height:46px;padding:0 13px;border:1px solid var(--fc-border);border-radius:11px;background:var(--fc-surface-2);color:var(--fc-text);outline:0;font-size:13px}
.fcsm-fields textarea{padding:12px;resize:vertical;line-height:1.55}
.fcsm-fields input::placeholder,.fcsm-fields textarea::placeholder,.fcsm-inline-password input::placeholder{color:var(--fc-subtle)}
.fcsm-fields input:focus,.fcsm-fields select:focus,.fcsm-fields textarea:focus,.fcsm-inline-password input:focus{border-color:var(--fc-accent);box-shadow:0 0 0 3px rgba(255,103,36,.12)}
.fcsm-upload-box{min-height:138px;padding:22px;border:1.5px dashed var(--fc-border-strong);border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--fc-surface-2);text-align:center;cursor:pointer}.fcsm-upload-box input{max-width:300px;margin-bottom:10px}.fcsm-upload-box strong{font-size:13px}.fcsm-upload-box span{margin-top:4px;color:var(--fc-muted);font-size:10px}
.fcsm-gallery-sort{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:16px}.fcsm-gallery-item{position:relative;overflow:hidden;border:1px solid var(--fc-border);border-radius:12px;background:var(--fc-surface);cursor:grab}.fcsm-gallery-item.dragging{opacity:.45}.fcsm-gallery-item img{width:100%;aspect-ratio:4/3;object-fit:cover}.fcsm-gallery-item label{padding:7px 8px;display:block;font-size:9px}.fcsm-drag{position:absolute;top:6px;right:6px;padding:4px 6px;border-radius:999px;background:rgba(0,0,0,.72);color:#fff;font-size:8px}
.fcsm-status-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.fcsm-status-options label{position:relative}.fcsm-status-options input{position:absolute;opacity:0}.fcsm-status-options span{min-height:88px;padding:16px;border:1px solid var(--fc-border);border-radius:14px;display:flex;flex-direction:column;justify-content:center;background:var(--fc-surface-2);cursor:pointer}.fcsm-status-options strong{font-size:13px}.fcsm-status-options small{margin-top:4px;color:var(--fc-muted);font-size:10px}.fcsm-status-options input:checked+span{border-color:var(--fc-accent);box-shadow:0 0 0 2px var(--fc-accent)}
.fcsm-savebar{position:sticky;bottom:16px;z-index:50;padding:10px 12px 10px 16px;border:1px solid var(--fc-border);border-radius:15px;display:flex;align-items:center;justify-content:flex-end;gap:14px;background:color-mix(in srgb,var(--fc-surface) 92%,transparent);box-shadow:0 14px 38px rgba(0,0,0,.12);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.fcsm-savebar>a{color:var(--fc-muted);text-decoration:none;font-size:12px;font-weight:750}
.fcsm-danger-zone{margin-top:20px;padding:19px;border:1px solid color-mix(in srgb,var(--fc-danger) 24%,var(--fc-border));border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--fc-danger-bg)}.fcsm-danger-zone strong{font-size:13px}.fcsm-danger-zone p{margin:4px 0 0;color:var(--fc-danger);font-size:11px}.fcsm-danger-actions{display:flex;gap:8px}.fcsm-danger-actions button{min-height:38px;padding:0 12px;border:1px solid var(--fc-border);border-radius:10px;background:var(--fc-surface);color:var(--fc-text);font-weight:800;cursor:pointer}.fcsm-danger-actions .fcsm-delete{color:var(--fc-danger)}
.fcsm-source-notice{margin-bottom:16px;padding:20px;border:1px solid var(--fc-border);border-radius:16px;display:flex;justify-content:space-between;gap:18px;background:var(--fc-surface)}.fcsm-source-notice span:first-child{display:block;margin-bottom:5px;color:#438bd2;font-size:10px;font-weight:900;text-transform:uppercase}.fcsm-source-notice strong{display:block;font-size:16px}.fcsm-source-notice p{max-width:760px;margin:7px 0 0;color:var(--fc-muted);font-size:12px;line-height:1.6}.fcsm-at-hero-image{margin-bottom:18px;overflow:hidden;border-radius:14px}.fcsm-at-hero-image img{width:100%;max-height:420px;object-fit:cover}
.fcsm-readonly-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.fcsm-readonly-grid>div{padding:14px;border:1px solid var(--fc-border);border-radius:12px;background:var(--fc-surface-2)}.fcsm-readonly-grid span{display:block;margin-bottom:5px;color:var(--fc-muted);font-size:9px;font-weight:800;text-transform:uppercase}.fcsm-readonly-grid strong{font-size:12px;overflow-wrap:anywhere}

/* ---------- Settings ---------- */
.fcsm-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.fcsm-settings-access{margin-top:0}.fcsm-settings-add-account{margin:0 0 18px;padding:18px;border:1px solid var(--fc-border);border-radius:14px;background:var(--fc-surface-2)}
.fcsm-theme-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 16px}.fcsm-theme-options label{position:relative}.fcsm-theme-options input{position:absolute;opacity:0;pointer-events:none}.fcsm-theme-card{min-height:126px;padding:15px;border:1px solid var(--fc-border);border-radius:14px;display:flex;flex-direction:column;justify-content:flex-end;background:var(--fc-surface-2);color:var(--fc-text);cursor:pointer}.fcsm-theme-card i{height:42px;margin:0 0 14px;border-radius:9px;display:block}.fcsm-theme-card strong{font-size:13px}.fcsm-theme-card small{margin-top:4px;color:var(--fc-muted);font-size:10px}.fcsm-theme-card-light i{background:linear-gradient(135deg,#f3f1ed 0 72%,#fff 72%)}.fcsm-theme-card-dark i{background:linear-gradient(135deg,#181818 0 72%,#ff6724 72%)}.fcsm-theme-options input:checked+.fcsm-theme-card{border-color:var(--fc-accent);box-shadow:0 0 0 2px var(--fc-accent)}
.fcsm-account-count{color:var(--fc-muted);font-size:11px}.fcsm-account-list{display:grid}.fcsm-account-row{padding:14px 16px;border-bottom:1px solid var(--fc-border);display:grid;grid-template-columns:40px minmax(180px,1fr) auto minmax(250px,auto) auto;gap:12px;align-items:center}.fcsm-account-row:last-child{border-bottom:0}.fcsm-account-avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(255,103,36,.12);color:var(--fc-accent);font-size:12px;font-weight:950}.fcsm-account-main strong,.fcsm-account-main small{display:block}.fcsm-account-main strong{font-size:12px}.fcsm-account-main small{margin-top:3px;color:var(--fc-muted);font-size:10px}.fcsm-you-badge{padding:5px 8px;border-radius:999px;background:rgba(255,103,36,.12);color:var(--fc-accent);font-size:8px;font-weight:900;text-transform:uppercase}.fcsm-inline-password{display:flex;gap:6px}.fcsm-inline-password button,.fcsm-remove-account{min-height:38px;padding:0 11px;border-radius:10px;border:1px solid var(--fc-border);background:var(--fc-surface);color:var(--fc-text);font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}.fcsm-remove-account{color:var(--fc-danger)}

/* ---------- Login ---------- */
.fcsm-login-body{display:grid;place-items:center;background:var(--fc-bg)}.fcsm-login-wrap{width:100%;padding:24px}.fcsm-login-card{width:min(440px,100%);margin:auto;padding:32px;border:1px solid var(--fc-border);border-radius:20px;background:var(--fc-surface);box-shadow:var(--fc-shadow)}.fcsm-login-brand{display:flex;align-items:center;gap:10px;margin-bottom:30px}.fcsm-login-brand img{width:36px;height:36px}.fcsm-login-brand strong{font-size:20px;font-weight:900;letter-spacing:-1px}.fcsm-login-brand small{display:block;margin-top:2px;color:var(--fc-muted);font-size:10px}.fcsm-login-card h1{margin:0 0 8px;font-family:Georgia,"Times New Roman",serif;font-size:42px;font-weight:500;letter-spacing:-1.8px}.fcsm-login-card>p{margin:0 0 24px;color:var(--fc-muted);font-size:13px}.fcsm-login-card label{display:block;margin-bottom:6px;color:var(--fc-muted);font-size:10px;font-weight:800}.fcsm-login-card input[type=text],.fcsm-login-card input[type=password]{width:100%;min-height:46px;padding:0 12px;border:1px solid var(--fc-border);border-radius:11px;background:var(--fc-surface-2);color:var(--fc-text)}.fcsm-login-card .login-submit input{width:100%;min-height:46px;border:0;border-radius:11px;background:var(--fc-accent);color:#fff;font-weight:850;cursor:pointer}.fcsm-login-card .login-remember{font-size:11px;color:var(--fc-muted)}

/* ---------- Responsive ---------- */
@media(max-width:1180px){.fcsm-stats{grid-template-columns:repeat(3,1fr)}.fcsm-fields-4{grid-template-columns:repeat(2,1fr)}.fcsm-gallery-sort{grid-template-columns:repeat(4,1fr)}.fcsm-readonly-grid{grid-template-columns:repeat(2,1fr)}.fcsm-account-row{grid-template-columns:40px minmax(0,1fr) auto}.fcsm-inline-password{grid-column:2/4}.fcsm-account-row>form:last-child{grid-column:2/4;justify-self:start}}
@media(max-width:900px){:root{--fc-sidebar-w:220px}.fcsm-page{padding:34px 26px 76px}.fcsm-settings-grid{grid-template-columns:1fr}}
@media(max-width:820px){
  :root{--fc-appbar-h:64px}
  .fcsm-appbar,.fcsm-topbar{height:var(--fc-appbar-h);padding-left:12px;padding-right:12px;gap:10px}.fcsm-menu-button{display:grid;place-items:center}.fcsm-wordmark{min-width:0}.fcsm-appbar-context{display:none}.fcsm-appbar-actions .fcsm-button{display:none}.fcsm-appbar-user{width:34px;height:34px}.fcsm-add-mobile{display:inline-flex;margin-left:auto;color:var(--fc-accent);text-decoration:none;font-size:12px;font-weight:850}
  .fcsm-shell{display:block;min-height:calc(100dvh - var(--fc-appbar-h))}.fcsm-sidebar{position:fixed;top:var(--fc-appbar-h);left:0;bottom:0;z-index:110;width:min(290px,86vw);height:auto;transform:translateX(-105%);box-shadow:18px 0 50px rgba(0,0,0,.28);transition:transform .25s cubic-bezier(.2,.8,.2,1)}.fcsm-sidebar.is-open{transform:translateX(0)}
  .fcsm-main{min-height:calc(100dvh - var(--fc-appbar-h))}.fcsm-page{padding:28px 16px 86px}.fcsm-hero-row,.fcsm-form-head{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:22px}.fcsm-hero-row h1,.fcsm-form-head h1{font-size:38px;letter-spacing:-1.6px}.fcsm-hero-row>.fcsm-button{width:100%}.fcsm-stats{grid-template-columns:repeat(2,1fr);gap:10px}.fcsm-stats article{padding:16px}.fcsm-stats strong{font-size:28px}.fcsm-panel{border-radius:15px}.fcsm-toolbar{align-items:stretch;flex-direction:column}.fcsm-toolbar input{width:100%}.fcsm-toolbar span{padding-left:2px}.fcsm-vehicle-row{grid-template-columns:62px minmax(0,1fr) auto;padding:11px 12px;gap:11px}.fcsm-row-image{width:62px;height:48px}.fcsm-row-price{grid-column:2;grid-row:2;margin-top:-7px}.fcsm-vehicle-row>.fcsm-status,.fcsm-row-link>.fcsm-status{grid-column:3;grid-row:1}.fcsm-chevron{display:none}.fcsm-row-link{display:contents}.fcsm-sold-card{grid-template-columns:1fr;gap:12px}.fcsm-sold-actions{justify-content:space-between;padding-left:76px}.fcsm-sold-meta{text-align:left}.fcsm-fields-4,.fcsm-fields-2{grid-template-columns:1fr}.fcsm-span-2{grid-column:auto}.fcsm-form-section{padding:21px 16px}.fcsm-section-number{right:16px;top:17px;font-size:29px}.fcsm-status-options{grid-template-columns:1fr}.fcsm-gallery-sort{grid-template-columns:repeat(3,1fr)}.fcsm-savebar{left:0;right:0;bottom:10px}.fcsm-danger-zone{align-items:stretch;flex-direction:column}.fcsm-danger-actions{display:grid;grid-template-columns:1fr 1fr}.fcsm-danger-actions form,.fcsm-danger-actions button{width:100%}.fcsm-readonly-grid{grid-template-columns:1fr 1fr}.fcsm-theme-options{grid-template-columns:1fr 1fr}.fcsm-account-row{grid-template-columns:40px minmax(0,1fr)}.fcsm-you-badge{grid-column:2;justify-self:start}.fcsm-inline-password{grid-column:1/-1;display:grid;grid-template-columns:1fr}.fcsm-account-row>form:last-child{grid-column:1/-1}.fcsm-inline-password button,.fcsm-remove-account{width:100%}
}
@media(max-width:520px){.fcsm-stats{grid-template-columns:1fr 1fr}.fcsm-stats article:last-child:nth-child(odd){grid-column:1/-1}.fcsm-readonly-grid{grid-template-columns:1fr}.fcsm-gallery-sort{grid-template-columns:repeat(2,1fr)}.fcsm-theme-options{grid-template-columns:1fr}.fcsm-sold-actions{padding-left:0}.fcsm-login-wrap{padding:14px}.fcsm-login-card{padding:24px 20px}.fcsm-login-card h1{font-size:36px}}
/* v0.3.0 simplification */
.fcsm-section-number{display:none}
@media(max-width:820px){body.fcsm-menu-open{overflow:hidden}body.fcsm-menu-open::after{content:"";position:fixed;inset:var(--fc-appbar-h) 0 0 0;z-index:100;background:rgba(0,0,0,.34);backdrop-filter:blur(2px)}}

/* v0.3.4 theme consistency: both document and app body can own the theme state. */
body[data-fc-theme="dark"]{
  --fc-bg:#111111;
  --fc-surface:#1a1a1a;
  --fc-surface-2:#202020;
  --fc-surface-3:#292929;
  --fc-text:#f6f3ee;
  --fc-muted:#aaa7a1;
  --fc-subtle:#77746f;
  --fc-border:#2e2e2e;
  --fc-border-strong:#3a3a3a;
  --fc-sidebar:#0d0d0d;
  --fc-sidebar-hover:#1a1a1a;
  --fc-sidebar-active:#282828;
  --fc-sidebar-text:#f8f5ef;
  --fc-sidebar-muted:#86837e;
  --fc-sidebar-border:rgba(255,255,255,.06);
  --fc-success-bg:#173123;
  --fc-success:#8dd8aa;
  --fc-danger-bg:#381f1d;
  --fc-danger:#f0aaa3;
  --fc-warning-bg:#3c311c;
  --fc-warning:#e9c36c;
  --fc-shadow:0 1px 2px rgba(0,0,0,.2),0 16px 42px rgba(0,0,0,.24);
  color-scheme:dark;
}
body[data-fc-theme="light"]{color-scheme:light}

/* Theme-aware Forecourt brand assets */
.fcsm-login-logo-wrap{display:inline-grid;place-items:center;width:40px;height:40px;flex:0 0 40px}
.fcsm-login-logo-wrap .fcsm-login-logo{grid-area:1/1;width:38px!important;height:38px!important;object-fit:contain}
@media(max-width:760px){
  .fcsm-wordmark .fcsm-logo-theme{height:27px;max-width:46vw}
}

/* 0.3.7 brand bar hardening */
.fcsm-appbar,.fcsm-topbar{position:relative}
.fcsm-wordmark{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;z-index:5!important;margin:0!important}
.fcsm-wordmark .fcsm-logo-theme{height:36px!important;width:auto!important;max-width:min(220px,42vw)!important;object-fit:contain!important}
@media(max-width:700px){.fcsm-wordmark .fcsm-logo-theme{height:29px!important;max-width:44vw!important}}

/* v0.4 finance + cleaner dashboard */
.fcsm-stats-clean{grid-template-columns:repeat(4,minmax(0,1fr))}
.fcsm-stats-clean article{min-height:116px}
.fcsm-money-negative{color:#d65353!important}
.fcsm-finance-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:22px}
.fcsm-finance-entry-card{margin-bottom:22px}
.fcsm-finance-list{display:flex;flex-direction:column}
.fcsm-finance-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:16px 18px;border-top:1px solid var(--fc-line)}
.fcsm-finance-row:first-child{border-top:0}
.fcsm-finance-row>div strong{display:block;color:var(--fc-text);font-size:14px}.fcsm-finance-row small{display:block;color:var(--fc-muted);margin-top:4px}
.fcsm-finance-amount{font-size:14px}.fcsm-finance-revenue{color:#168451}.fcsm-finance-expense{color:#c94c4c}
@media(max-width:980px){.fcsm-stats-clean{grid-template-columns:repeat(2,minmax(0,1fr))}.fcsm-finance-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.fcsm-stats-clean,.fcsm-finance-stats{grid-template-columns:1fr 1fr}.fcsm-finance-row{grid-template-columns:minmax(0,1fr) auto}.fcsm-finance-row form{grid-column:1/-1}.fcsm-finance-row form button{width:100%}}


/* v0.4.1 people, roles and profile menu */
.fcsm-appbar-user{
  overflow:hidden;
  padding:0;
  border:1px solid var(--fc-border);
  background:var(--fc-surface);
  cursor:pointer;
}
.fcsm-appbar-user img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.fcsm-user-menu-wrap{position:relative}
.fcsm-user-menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:250px;
  padding:8px;
  border:1px solid var(--fc-border);
  border-radius:16px;
  background:var(--fc-surface);
  box-shadow:var(--fc-shadow);
  z-index:250;
}
.fcsm-user-menu[hidden]{display:none!important}
.fcsm-user-menu-head{display:flex;align-items:center;gap:11px;padding:10px 10px 12px;border-bottom:1px solid var(--fc-border);margin-bottom:6px}
.fcsm-user-menu-head>img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:1px solid var(--fc-border)}
.fcsm-user-menu-head strong,.fcsm-user-menu-head small{display:block}
.fcsm-user-menu-head strong{font-size:13px;color:var(--fc-text)}
.fcsm-user-menu-head small{font-size:11px;color:var(--fc-muted);margin-top:2px}
.fcsm-user-menu>a{display:block;padding:10px 11px;border-radius:10px;text-decoration:none;color:var(--fc-text);font-size:13px;font-weight:700}
.fcsm-user-menu>a:hover{background:var(--fc-surface-2)}
.fcsm-user-menu-logout{color:var(--fc-danger)!important}
.fcsm-profile-section{margin-bottom:22px}
.fcsm-profile-editor{display:flex;align-items:center;gap:20px;margin-bottom:18px}
.fcsm-profile-preview{width:92px;height:92px;border-radius:50%;object-fit:cover;border:1px solid var(--fc-border);background:var(--fc-surface-2)}
.fcsm-profile-fields{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.fcsm-profile-fields>small{grid-column:1/-1;color:var(--fc-muted)}
.fcsm-role-badge{display:inline-flex;margin-top:6px;padding:4px 8px;border-radius:999px;background:var(--fc-surface-2);border:1px solid var(--fc-border);color:var(--fc-muted);font-size:10px;font-weight:800}
.fcsm-inline-role{display:flex;gap:8px;align-items:center}
.fcsm-inline-role select{min-width:150px}
.fcsm-inline-role button{white-space:nowrap}
@media(max-width:820px){
  .fcsm-user-menu{position:fixed;right:12px;top:58px;width:min(270px,calc(100vw - 24px))}
  .fcsm-profile-editor{align-items:flex-start;flex-direction:column}
  .fcsm-profile-fields{width:100%;grid-template-columns:1fr}
  .fcsm-profile-fields>small{grid-column:auto}
  .fcsm-inline-role{grid-column:1/-1;display:grid;grid-template-columns:1fr}
  .fcsm-inline-role button{width:100%}
}

.fcsm-account-avatar{overflow:hidden}.fcsm-account-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}


/* v0.4.2 clickable dashboard cards + monthly revenue analytics */
.fcsm-dashboard-links .fcsm-stat-link{display:block;color:inherit;text-decoration:none;min-width:0}
.fcsm-dashboard-links .fcsm-stat-link article{height:100%;position:relative;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.fcsm-dashboard-links .fcsm-stat-link:hover article{transform:translateY(-2px);border-color:var(--fc-border-strong);box-shadow:0 10px 30px rgba(0,0,0,.08)}
.fcsm-stat-arrow{position:absolute;right:16px;top:16px;color:var(--fc-subtle);font-size:16px;font-weight:700;transition:transform .16s ease,color .16s ease}
.fcsm-stat-link:hover .fcsm-stat-arrow{transform:translateX(3px);color:var(--fc-accent)}
.fcsm-month-nav{display:grid;grid-template-columns:42px minmax(180px,260px) 42px;gap:10px;align-items:end;margin:-4px 0 20px}
.fcsm-month-nav form{margin:0}.fcsm-month-nav label span{display:block;color:var(--fc-muted);font-size:11px;font-weight:750;margin-bottom:6px}
.fcsm-month-nav input[type=month]{width:100%;height:42px;border:1px solid var(--fc-border);border-radius:11px;background:var(--fc-surface);color:var(--fc-text);padding:0 12px;font:inherit}
.fcsm-month-arrow{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--fc-border);border-radius:11px;background:var(--fc-surface);color:var(--fc-text);text-decoration:none;font-size:17px}
.fcsm-month-arrow:hover{border-color:var(--fc-border-strong);color:var(--fc-accent)}.fcsm-month-arrow.is-disabled{opacity:.35;cursor:not-allowed}
.fcsm-revenue-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.fcsm-revenue-chart-panel{margin-bottom:20px}.fcsm-revenue-chart-panel .fcsm-panel-head p{margin:4px 0 0;color:var(--fc-muted);font-size:12px}
.fcsm-revenue-chart{height:300px;display:flex;align-items:stretch;gap:5px;padding:24px 20px 14px;overflow-x:auto;border-top:1px solid var(--fc-border)}
.fcsm-revenue-bar-col{flex:1 0 18px;min-width:18px;display:grid;grid-template-rows:minmax(0,1fr) 18px;gap:8px;text-align:center}
.fcsm-revenue-bar-track{height:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--fc-border);position:relative}
.fcsm-revenue-bar{width:min(18px,72%);min-height:2px;border-radius:6px 6px 2px 2px;background:var(--fc-accent);transition:height .2s ease,opacity .15s ease}
.fcsm-revenue-bar-col:hover .fcsm-revenue-bar{opacity:.75}.fcsm-revenue-bar-col>span{color:var(--fc-subtle);font-size:9px}
.fcsm-daily-revenue-list{display:flex;flex-direction:column}.fcsm-daily-revenue-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border-top:1px solid var(--fc-border)}
.fcsm-daily-revenue-row:first-child{border-top:0}.fcsm-daily-revenue-row>div strong{display:block;color:var(--fc-text);font-size:13px}.fcsm-daily-revenue-row small{display:block;margin-top:3px;color:var(--fc-muted);font-size:10px}.fcsm-daily-revenue-row>strong{font-size:13px;color:var(--fc-text)}
@media(max-width:980px){.fcsm-revenue-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.fcsm-month-nav{grid-template-columns:40px minmax(0,1fr) 40px}.fcsm-revenue-chart{height:250px;padding-left:12px;padding-right:12px;gap:4px}.fcsm-revenue-bar-col{flex-basis:16px;min-width:16px}.fcsm-revenue-bar{width:12px}.fcsm-daily-revenue-row{padding:13px 14px}}


/* v0.4.3 workspace legal footer */
.fcsm-main{min-height:calc(100vh - var(--fcsm-appbar-h,64px));display:flex;flex-direction:column}
.fcsm-page{flex:1}
.fcsm-workspace-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:28px 24px 22px;margin-top:auto;color:var(--fcsm-muted,#787878);font-size:12px;line-height:1.5;text-align:center}
.fcsm-workspace-footer a{color:inherit;text-decoration:none}
.fcsm-workspace-footer a:hover{text-decoration:underline;color:var(--fcsm-text,#161616)}
.fcsm-footer-dot{opacity:.55}
.fcsm-login-footer{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;padding:14px 20px;color:#777;font-size:11px;text-align:center;z-index:3}
.fcsm-login-footer a{color:inherit;text-decoration:none}
.fcsm-login-footer a:hover{text-decoration:underline}
@media(max-width:700px){.fcsm-workspace-footer{padding:24px 18px 18px;font-size:11px;gap:6px}.fcsm-footer-dot{display:none}.fcsm-login-footer{position:static;padding:18px 16px}.fcsm-login-footer>span:nth-child(even){display:none}}

/* v0.5.0 profit, website status, stock ageing, global search + documents */
.fcsm-global-search{position:relative;margin:14px 0 0}
.fcsm-global-search span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--fc-sidebar-muted);font-size:15px;pointer-events:none}
.fcsm-global-search input{width:100%;height:39px;padding:0 10px 0 34px;border:1px solid var(--fc-sidebar-border);border-radius:10px;background:var(--fc-sidebar-hover);color:var(--fc-sidebar-text);font:inherit;font-size:12px;outline:none}
.fcsm-global-search input::placeholder{color:var(--fc-sidebar-muted)}
.fcsm-global-search input:focus{border-color:var(--fc-accent);box-shadow:0 0 0 3px rgba(255,103,36,.12)}
.fcsm-nav .fcsm-global-search + .fcsm-nav-primary{margin-top:10px}

.fcsm-dashboard-ops{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 20px}
.fcsm-op-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid var(--fc-border);border-radius:15px;background:var(--fc-surface)}
.fcsm-op-card span,.fcsm-op-card strong,.fcsm-op-card small{display:block}.fcsm-op-card span{font-size:11px;color:var(--fc-muted);font-weight:800}.fcsm-op-card strong{margin-top:5px;font-size:17px;color:var(--fc-text)}.fcsm-op-card small{margin-top:4px;color:var(--fc-muted);font-size:11px}.fcsm-op-card i{width:10px;height:10px;border-radius:50%;background:var(--fc-subtle);box-shadow:0 0 0 5px var(--fc-surface-2)}.fcsm-op-card i.is-ok{background:#2fa66a}.fcsm-op-card i.is-warn{background:#d89b35}.fcsm-ageing-card>a{white-space:nowrap;color:var(--fc-text);font-size:12px;font-weight:800;text-decoration:none}.fcsm-ageing-card>a:hover{color:var(--fc-accent)}

.fcsm-vehicle-row{grid-template-columns:70px minmax(0,1fr) auto auto auto 18px}
.fcsm-row-age{font-size:11px;font-weight:800;color:var(--fc-muted);white-space:nowrap}.fcsm-row-age.is-aged{color:#c27a19}

.fcsm-profit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}.fcsm-profit-grid article{padding:15px;border:1px solid var(--fc-border);border-radius:13px;background:var(--fc-surface-2)}.fcsm-profit-grid span,.fcsm-profit-grid strong{display:block}.fcsm-profit-grid span{font-size:10px;font-weight:800;color:var(--fc-muted)}.fcsm-profit-grid strong{margin-top:6px;font-size:18px;color:var(--fc-text)}
.fcsm-internal-form{margin-top:8px}.fcsm-internal-form label small{display:block;margin-top:6px;color:var(--fc-muted);font-size:10px}.fcsm-document-list{display:grid;gap:8px;margin:4px 0 16px}.fcsm-document-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--fc-border);border-radius:11px;background:var(--fc-surface-2)}.fcsm-document-row>a{text-decoration:none;min-width:0}.fcsm-document-row strong,.fcsm-document-row small{display:block}.fcsm-document-row strong{color:var(--fc-text);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fcsm-document-row small{margin-top:3px;color:var(--fc-muted);font-size:10px}.fcsm-document-row label{white-space:nowrap;color:var(--fc-muted);font-size:11px}.fcsm-linked-expenses{margin-top:22px;padding-top:18px;border-top:1px solid var(--fc-border)}.fcsm-linked-expenses .fcsm-panel-head{padding:0 0 10px;border:0}.fcsm-linked-expenses .fcsm-panel-head h3{margin:0;font-size:14px}.fcsm-linked-expenses .fcsm-panel-head p{margin:4px 0 0;color:var(--fc-muted);font-size:10px}.fcsm-mini-expense{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--fc-border);font-size:12px}.fcsm-mini-expense span,.fcsm-mini-expense small{display:block}.fcsm-mini-expense small{margin-top:2px;color:var(--fc-muted);font-size:10px}.fcsm-muted-copy{color:var(--fc-muted);font-size:11px}
.fcsm-auto-badge{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;background:var(--fc-surface-2);border:1px solid var(--fc-border);color:var(--fc-muted);font-size:8px;text-transform:uppercase;letter-spacing:.04em;vertical-align:middle}

.fcsm-search-page-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0 0 20px}.fcsm-search-page-form input{height:48px;padding:0 15px;border:1px solid var(--fc-border);border-radius:13px;background:var(--fc-surface);color:var(--fc-text);font:inherit;outline:none}.fcsm-search-page-form input:focus{border-color:var(--fc-accent);box-shadow:0 0 0 3px rgba(255,103,36,.12)}.fcsm-search-results{display:flex;flex-direction:column}.fcsm-search-result{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;border-top:1px solid var(--fc-border);text-decoration:none;color:var(--fc-text)}.fcsm-search-result:first-child{border-top:0}.fcsm-search-result:hover{background:var(--fc-surface-2)}.fcsm-search-result strong,.fcsm-search-result small{display:block}.fcsm-search-result small{margin-top:4px;color:var(--fc-muted);font-size:10px}.fcsm-search-result>span{font-size:11px;color:var(--fc-muted);font-weight:800}.fcsm-search-empty{margin-top:12px}

@media(max-width:980px){.fcsm-dashboard-ops{grid-template-columns:1fr}.fcsm-profit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.fcsm-vehicle-row{grid-template-columns:62px minmax(0,1fr) auto}.fcsm-row-age{grid-column:2;grid-row:2;margin-top:9px}.fcsm-row-price{margin-top:10px!important}.fcsm-profit-grid{grid-template-columns:1fr 1fr}.fcsm-document-row{align-items:flex-start;flex-direction:column}.fcsm-search-page-form{grid-template-columns:1fr}.fcsm-search-page-form .fcsm-button{width:100%}.fcsm-op-card{align-items:flex-start}.fcsm-ageing-card{flex-direction:column}.fcsm-ageing-card>a{align-self:flex-start}}

/* v0.5.1 dashboard search + simple listing age badges */
.fcsm-dashboard-actions{display:flex;flex-direction:column;align-items:stretch;gap:9px;width:min(310px,100%)}
.fcsm-dashboard-actions .fcsm-button{width:100%;justify-content:center}
.fcsm-dashboard-search{position:relative;width:100%}
.fcsm-dashboard-search span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--fc-muted);font-size:16px;pointer-events:none}
.fcsm-dashboard-search input{width:100%;height:42px;padding:0 12px 0 37px;border:1px solid var(--fc-border);border-radius:11px;background:var(--fc-surface);color:var(--fc-text);font:inherit;font-size:12px;outline:none}
.fcsm-dashboard-search input::placeholder{color:var(--fc-muted)}
.fcsm-dashboard-search input:focus{border-color:var(--fc-accent);box-shadow:0 0 0 3px rgba(255,103,36,.12)}
.fcsm-dashboard-ops.fcsm-dashboard-ops-single{grid-template-columns:1fr}
.fcsm-row-age{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:7px;font-size:10px;font-weight:900;line-height:1;white-space:nowrap;border:1px solid transparent}
.fcsm-row-age.is-fresh{color:#16784a;background:rgba(47,166,106,.12);border-color:rgba(47,166,106,.22)}
.fcsm-row-age.is-warming{color:#9a6a00;background:rgba(216,155,53,.15);border-color:rgba(216,155,53,.26)}
.fcsm-row-age.is-aged{color:#b23a3a;background:rgba(208,67,67,.13);border-color:rgba(208,67,67,.22)}
html[data-fc-theme="dark"] .fcsm-row-age.is-fresh,body[data-fc-theme="dark"] .fcsm-row-age.is-fresh{color:#7ed9a8;background:rgba(47,166,106,.16)}
html[data-fc-theme="dark"] .fcsm-row-age.is-warming,body[data-fc-theme="dark"] .fcsm-row-age.is-warming{color:#f0c56b;background:rgba(216,155,53,.18)}
html[data-fc-theme="dark"] .fcsm-row-age.is-aged,body[data-fc-theme="dark"] .fcsm-row-age.is-aged{color:#f08d8d;background:rgba(208,67,67,.17)}
@media(max-width:760px){.fcsm-hero-clean{align-items:flex-start}.fcsm-dashboard-actions{width:100%;margin-top:8px}}


/* v0.5.2 monthly revenue controls */
.fcsm-revenue-head .fcsm-button-primary{
  background:var(--fc-accent);
  color:#fff;
  border-color:var(--fc-accent);
}
.fcsm-revenue-head .fcsm-button-primary:hover{
  background:var(--fc-accent-strong);
  border-color:var(--fc-accent-strong);
  color:#fff;
}
.fcsm-month-nav{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:nowrap;
  width:100%;
}
.fcsm-month-nav form{
  flex:0 1 260px;
  min-width:0;
}
.fcsm-month-nav form label{
  display:block;
  min-width:0;
}
.fcsm-month-nav input[type=month]{
  box-sizing:border-box;
  width:100%;
  min-width:0;
}
.fcsm-month-nav .fcsm-month-arrow{
  flex:0 0 42px;
  width:42px;
  min-width:42px;
}
@media(max-width:680px){
  .fcsm-revenue-head{
    align-items:flex-start;
    gap:14px;
  }
  .fcsm-month-nav{
    gap:8px;
  }
  .fcsm-month-nav form{
    flex:1 1 auto;
    width:auto;
    min-width:0;
  }
  .fcsm-month-nav .fcsm-month-arrow{
    flex-basis:40px;
    width:40px;
    min-width:40px;
    height:42px;
  }
}

/* v0.5.3 dashboard dealer eyebrow */
.fcsm-dashboard-eyebrow{
  margin:0 0 7px;
  color:var(--fc-accent);
  font-size:11px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* v0.5.4 three-line legal footer */
.fcsm-workspace-footer,.fcsm-login-footer{flex-direction:column;flex-wrap:nowrap;gap:5px}
.fcsm-footer-line{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;text-align:center}
.fcsm-footer-links{flex-wrap:wrap}
@media(max-width:700px){.fcsm-workspace-footer,.fcsm-login-footer{gap:4px}.fcsm-footer-links .fcsm-footer-dot{display:inline}}

/* v0.5.5 dashboard dealer eyebrow refinement */
.fcsm-dashboard-eyebrow{
  color:var(--fc-muted);
  text-transform:none;
  letter-spacing:0;
  font-size:12px;
  font-weight:650;
}


/* v0.5.7 — restore full Forecourt wordmark on dealer login */
.fcsm-login-wordmark-wrap{display:inline-grid;place-items:center;width:185px;height:44px;flex:0 0 185px}
.fcsm-login-wordmark-wrap .fcsm-login-wordmark{grid-area:1/1;display:block;width:185px!important;height:auto!important;max-height:42px;object-fit:contain;object-position:left center}
@media(max-width:520px){.fcsm-login-wordmark-wrap{width:165px;flex-basis:165px}.fcsm-login-wordmark-wrap .fcsm-login-wordmark{width:165px!important}}
