:root {
    --ink: #202321;
    --muted: #6d716d;
    --paper: #f4f1e9;
    --surface: #fffdf7;
    --line: #d9d4c8;
    --accent: #df4b32;
    --accent-deep: #ae2f20;
    --petrol: #164c4a;
    --success: #167458;
    --shadow: 0 18px 50px rgba(31, 36, 33, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Bahnschrift", "DIN Alternate", "Trebuchet MS", sans-serif;
    background: linear-gradient(90deg, rgba(223,75,50,.055) 1px, transparent 1px), linear-gradient(rgba(32,35,33,.035) 1px, transparent 1px), var(--paper);
    background-size: 72px 72px;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.page-shell { width: min(1420px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 68px; }
.site-footer { width: min(1420px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.topbar { min-height: 54px; padding: 6px 12px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; background: rgba(255,253,247,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: var(--layer-app-header); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 7px 14px 7px 7px; color: white; background: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: -.05em; box-shadow: 3px 3px 0 #242725; }
.brand b { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.topbar__links { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.topbar__links::-webkit-scrollbar { display: none; }
.topbar__links a { padding: 7px 9px; border-radius: 8px; text-decoration: none; font-size: 12px; }
.topbar__links .is-active { color: white; background: var(--ink); }
.topbar__actions { display:flex; align-items:center; gap:6px; }
.topbar-settings-select { min-height:32px; max-width:130px; padding:5px 25px 5px 8px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:#fff; font-size:12px; cursor:pointer; }
.topbar-settings-select.is-active { color:white; border-color:var(--ink); background:var(--ink); }
.profile-chip { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.profile-chip > span { max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-chip form { margin: 0; }
.profile-chip button { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: transparent; font-size:11px; }

.eyebrow { color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(38px,5vw,76px); line-height: .94; letter-spacing: -.055em; }
h2 { margin-bottom: 0; font-size: 27px; letter-spacing: -.035em; }

.auth-page .page-shell { width: 100%; min-height: calc(100vh - 72px); padding: 0; }
.auth-layout { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(420px,.8fr); }
.auth-intro { padding: clamp(50px,8vw,120px); display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 18% 20%, rgba(223,75,50,.24), transparent 28%), linear-gradient(135deg,#f0e9da 0%,#f9f7f0 65%); border-right: 1px solid var(--line); }
.auth-intro h1 { max-width: 820px; margin: 18px 0 28px; }
.auth-intro > p { max-width: 650px; color: #575b57; font-size: clamp(17px,2vw,22px); line-height: 1.55; }
.division-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 35px; }
.division-line span { padding: 8px 12px; border: 1px solid #bbb5a8; border-radius: 99px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.auth-card { align-self: center; width: min(460px,calc(100% - 48px)); margin: 48px auto; padding: 38px; border-radius: 24px 64px 24px 24px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.auth-card__head b { display: block; font-size: 21px; }
.auth-card__head small { color: var(--muted); }
.stack-form { display: grid; gap: 18px; }
.stack-form label { display: grid; gap: 7px; }
.stack-form label span { color: var(--muted); font-size: 12px; }
.stack-form input { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: #fff; outline: none; }
.stack-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(223,75,50,.12); }
.primary-button { min-height: 52px; border: 0; border-radius: 11px; color: white; background: var(--accent); font-weight: 800; box-shadow: 0 8px 18px rgba(174,47,32,.22); }
.primary-button:hover { background: var(--accent-deep); }
.auth-help { margin: 24px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-error, .notice { padding: 13px 15px; border-radius: 11px; margin-bottom: 18px; }
.form-error { color: #862d22; background: #ffe6df; border: 1px solid #f3b8aa; }
.notice--success { color: #0c5942; background: #dff3e9; border: 1px solid #a9d6c3; }
.narrow-panel { width: min(660px,100%); margin: 50px auto; padding: 42px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.narrow-panel h1 { margin: 15px 0 20px; font-size: clamp(34px,5vw,55px); }
.narrow-panel > p { color: var(--muted); line-height: 1.6; }

.dashboard-hero { min-height: 300px; padding: clamp(30px,5vw,68px); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; color: white; border-radius: 28px 90px 28px 28px; background: linear-gradient(125deg,#1f2422 0%,#153f3d 100%); box-shadow: var(--shadow); animation: rise .55s ease-out both; }
.dashboard-hero h1 { margin: 15px 0 20px; font-size: clamp(42px,6vw,82px); }
.dashboard-hero p { margin-bottom: 0; color: #d0dbd7; font-size: 17px; }
.dashboard-hero .eyebrow { color: #ff9c85; }
.hero-status { min-width: 170px; padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.07); }
.hero-status i { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #5ee0a8; box-shadow: 0 0 16px #5ee0a8; }
.hero-status span { font-size: 11px; color: #b8c8c3; text-transform: uppercase; letter-spacing: .09em; }
.hero-status b { display: block; margin-top: 8px; font-size: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 18px 0; }
.metric-grid article { min-height: 150px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); animation: rise .5s ease-out both; }
.metric-grid span, .metric-grid small { color: var(--muted); font-size: 12px; }
.metric-grid strong { font-size: 48px; line-height: 1; }
.metric-grid__accent { color: white; background: var(--accent) !important; border-color: var(--accent) !important; }
.metric-grid__accent span, .metric-grid__accent small { color: #ffe5de; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,.7fr); gap: 18px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.panel__tag { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.department-list { display: grid; }
.department-row { --dept:#df4b32; min-width: 620px; display: grid; grid-template-columns: 48px 1fr 1fr auto; gap: 18px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.department-row::before { content:""; width: 5px; height: 30px; grid-column: 1; grid-row: 1; border-radius: 3px; background: var(--dept); }
.department-row--wash { --dept:#2b8fa3; }.department-row--tire { --dept:#d1902f; }.department-row--electrical { --dept:#5c63a6; }.department-row--detailing { --dept:#167458; }
.department-row__number { grid-column: 1; grid-row: 1; padding-left: 12px; color: var(--muted); font-size: 11px; }
.department-row b { grid-column: 2; }.department-row small { grid-column: 3; color: var(--muted); }
.state-pill { grid-column: 4; padding: 6px 9px; border-radius: 99px; color: var(--success); background: #e3f3ed; font-size: 10px; text-transform: uppercase; }
.panel--wide { overflow-x: auto; }
.role-list { display: grid; gap: 10px; }
.role-list > div { padding: 15px; border-radius: 13px; background: #f0ede5; }
.role-list b, .role-list small, .identity-block span, .identity-block b, .identity-block small { display: block; }
.role-list small, .identity-block span, .identity-block small { color: var(--muted); font-size: 11px; }
.identity-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }.identity-block b { margin: 7px 0; }
.roadmap-strip { margin-top: 18px; display: grid; grid-template-columns: repeat(5,minmax(180px,1fr)); overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.roadmap-strip > div { min-width: 180px; padding: 22px; border-right: 1px solid var(--line); }
.roadmap-strip span, .roadmap-strip b, .roadmap-strip small { display: block; }.roadmap-strip span { color: var(--accent); font-size: 11px; }.roadmap-strip b { margin: 16px 0 8px; }.roadmap-strip small { color: var(--muted); }
.roadmap-strip .is-next { color: white; background: var(--petrol); }.roadmap-strip .is-next span, .roadmap-strip .is-next small { color: #bcd5d0; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
@media (max-width: 980px) { .topbar { gap:8px; }.brand > span:last-child,.profile-chip > span { display:none; }.topbar__links a { padding-inline:7px; }.auth-layout { grid-template-columns: 1fr; }.auth-intro { min-height:46vh; padding:50px 28px; border-right:0; border-bottom:1px solid var(--line); }.auth-card { margin:32px auto; }.metric-grid { grid-template-columns:repeat(2,1fr); }.content-grid { grid-template-columns:1fr; } }
@media (max-width: 640px) { .page-shell,.site-footer { width:min(100% - 16px,1420px); }.page-shell { padding-top:12px; }.topbar { padding:6px 8px; }.brand small { display:none; }.profile-chip button { width:30px; padding:7px 0; overflow:hidden; color:transparent; }.profile-chip button::before { content:"↪"; color:var(--ink); }.topbar-settings-select { max-width:105px; }.dashboard-hero { min-height:390px; padding:28px 22px; align-items:flex-start; flex-direction:column; border-radius:22px 54px 22px 22px; }.hero-status { min-width:100%; }.metric-grid { grid-template-columns:1fr 1fr; }.metric-grid article { min-height:130px; padding:17px; }.metric-grid strong { font-size:38px; }.panel { padding:20px; }.auth-card { width:calc(100% - 28px); padding:27px 22px; }.narrow-panel { padding:28px 20px; margin:20px auto; }.site-footer { gap:18px; flex-direction:column; } }
