:root {
    color-scheme: dark;
    --sg-navy: #183159;
    --sg-purple: #23223d;
    --sg-cyan: #38c2d6;
    --sg-teal: #108ea0;
    --sg-text: #f2f7fc;
    --sg-muted: #a4b5c8;
    --sg-line: rgba(171, 211, 238, .12);
    --sg-panel: rgba(27, 44, 69, .66);
    --sidebar-width: 244px;
    font-family: 'Lato', sans-serif;
    background: #101b2e;
    color: var(--sg-text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Lato', sans-serif; font-size: 14px; line-height: 1.5; color: var(--sg-text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--sg-cyan); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.portal-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; background: var(--sg-cyan); color: #10243b; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.portal-kicker { display: block; color: var(--sg-cyan); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.portal-button, .sg-btn-primary, .sg-btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 10px; padding: 11px 18px; font-size: 13px; font-weight: 900; line-height: 1.4; border: 1px solid transparent; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.portal-button-primary, .portal-workspace .sg-btn-primary { background: linear-gradient(135deg, #55d0df, #38c2d6); color: #112b42; border-color: rgba(138, 235, 245, .3); box-shadow: 0 4px 20px rgba(16, 142, 160, .15), inset 0 1px rgba(255,255,255,.24); }
.portal-button-primary:hover, .portal-workspace .sg-btn-primary:hover { background: #75dde8; box-shadow: 0 5px 25px rgba(56,194,214,.2); transform: translateY(-1px); }
.portal-button-secondary, .portal-workspace .sg-btn-secondary { background: rgba(191,218,246,.05); border-color: var(--sg-line); color: #d8e5f0; }
.portal-button-secondary:hover, .portal-workspace .sg-btn-secondary:hover { background: rgba(191,218,246,.1); border-color: rgba(191,218,246,.24); }
.portal-text-link { display: inline-flex; align-items: center; gap: 8px; color: #74d8e4; font-size: 12px; font-weight: 700; white-space: nowrap; }
.portal-text-link .portal-icon { width: 16px; height: 16px; }
.portal-text-link:hover { color: #b0f3f6; }
.portal-icon-button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--sg-line); border-radius: 9px; color: #d9e8f3; background: rgba(255,255,255,.04); }
.portal-alert { background: rgba(56,194,214,.1); border: 1px solid rgba(56,194,214,.25); color: #cef6fa; border-radius: 10px; padding: 13px 16px; font-size: 13px; }
.portal-alert-error { color: #ffc7ce; background: rgba(208,72,98,.1); border-color: rgba(243,143,158,.3); }
.errorlist { list-style: none; margin: 0; padding: 0; }
.field-error { font-size: 12px; color: #ffc7ce; margin-top: 7px; }
.sg-input, .legacy-field input:not([type=checkbox]):not([type=radio]), .legacy-field select, .legacy-field textarea { display: block; width: 100%; min-width: 0; background: rgba(6,16,33,.32); border: 1px solid rgba(158,191,221,.2); color: var(--sg-text); border-radius: 9px; min-height: 48px; padding: 12px 14px; outline: none; transition: border-color .18s, box-shadow .18s; }
.sg-input::placeholder, .legacy-field input::placeholder, .legacy-field textarea::placeholder { color: #798da5; opacity: 1; }
.sg-input:focus, .legacy-field input:focus, .legacy-field select:focus, .legacy-field textarea:focus { border-color: var(--sg-cyan); box-shadow: 0 0 0 3px rgba(56,194,214,.12); }
.legacy-field textarea { min-height: 140px; resize: vertical; }
.legacy-field select option { background: #172a44; color: #f5f9fc; }
.legacy-field input[type=checkbox], .legacy-field input[type=radio] { accent-color: var(--sg-cyan); margin-right: 8px; width: 17px; height: 17px; vertical-align: middle; }
.legacy-field label { color: #d8e3f0; }
.legacy-field input[type=file] { font-size: 13px; }
.legacy-field input::file-selector-button { border: 0; border-radius: 6px; color: #153448; background: #69d8e4; padding: 6px 10px; margin-right: 12px; }
.portal-workspace .sg-panel, .portal-workspace .sg-panel-soft { background: linear-gradient(145deg, rgba(33,53,81,.7), rgba(25,39,62,.73)); border: 1px solid var(--sg-line); box-shadow: inset 0 1px rgba(217,241,255,.025), 0 8px 28px rgba(4,12,24,.08); backdrop-filter: blur(18px); }
.portal-workspace h1, .portal-workspace h2, .portal-workspace h3 { font-family: 'Lato', sans-serif; letter-spacing: -.025em; text-transform: none; }
.portal-workspace .eyebrow { display: block; color: #65d3e1; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

/* A focused entrance, with the supplied camo and wordmark doing the branding. */
.portal-login { min-height: 100svh; display: flex; flex-direction: column; background: #111e34; position: relative; isolation: isolate; }
.login-atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 72% 22%, rgba(16,142,160,.16), transparent 55%), radial-gradient(ellipse at 16% 88%, rgba(69,58,117,.15), transparent 48%), linear-gradient(130deg,#122341,#111c30 60%,#142840); }
.login-camo { position: absolute; inset: -15%; background: url("brand/camo.120a06258a83.png") center / 1100px; opacity: .08; mask-image: linear-gradient(120deg,transparent 15%,#000 100%); }
.login-orbit { position: absolute; width: 800px; height: 800px; border: 1px solid rgba(90,182,204,.07); border-radius: 50%; }
.login-orbit-one { top: -410px; right: -320px; }
.login-orbit-two { bottom: -590px; left: -280px; width: 980px; height: 980px; }
.login-header { display: flex; justify-content: space-between; align-items: center; padding: 28px 40px; position: relative; }
.login-home-mark { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 14px; letter-spacing: .01em; color: #cad8e7; }
.login-home-mark img { width: 33px; height: 33px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(150,210,226,.2); }
.workspace-label { font-size: 11px; color: #b5c7d9; border: 1px solid rgba(181,207,230,.15); padding: 6px 12px; border-radius: 100px; background: rgba(32,51,78,.3); }
.login-main { flex: 1; display: grid; place-items: center; padding: 16px 24px 48px; }
.login-frame { width: 100%; max-width: 434px; }
.login-brand { width: 262px; margin: 0 auto 26px; filter: drop-shadow(0 8px 18px rgba(1,10,25,.25)); }
.login-card { position: relative; padding: 34px; border-radius: 20px; background: linear-gradient(135deg,rgba(39,63,96,.69),rgba(25,42,67,.7)); border: 1px solid rgba(155,201,230,.19); box-shadow: 0 28px 90px rgba(3,11,25,.25), inset 0 1px rgba(213,241,255,.05); backdrop-filter: blur(22px); overflow: hidden; }
.login-card-topline { position: absolute; top: 0; left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg,transparent,#70d9e7,transparent); opacity: .75; }
.login-card-heading .portal-kicker { margin-bottom: 10px; }
.login-card-heading h1 { font-size: 25px; line-height: 1.25; font-weight: 900; letter-spacing: -.04em; }
.login-card-heading p { color: #afc0d3; font-size: 13px; line-height: 1.65; margin-top: 12px; }
.login-form { display: grid; gap: 18px; margin-top: 28px; }
.login-field label { display: block; font-size: 12px; font-weight: 700; color: #dde8f3; margin-bottom: 8px; }
.login-field .sg-input { min-height: 48px; font-size: 13px; }
.password-control { position: relative; }
.password-control input { padding-right: 46px; }
.password-toggle { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; color: #8fa7be; background: transparent; border-radius: 6px; }
.password-toggle:hover { color: var(--sg-cyan); background: rgba(56,194,214,.06); }
.password-toggle .portal-icon { width: 18px; height: 18px; }
.login-submit { width: 100%; min-height: 49px; margin-top: 3px; }
.login-submit .portal-icon { width: 17px; height: 17px; }
.login-access-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 25px; border-top: 1px solid rgba(180,207,232,.1); padding-top: 21px; color: #94adc4; font-size: 11px; }
.login-access-note .portal-icon { width: 13px; height: 13px; }
.login-help { text-align: center; font-size: 11px; color: #93a7bf; margin-top: 21px; }
.login-footer { display: flex; justify-content: space-between; padding: 22px 40px; color: #778da7; font-size: 10px; letter-spacing: .025em; }
.login-footer span:last-child { color: #91a6bf; }

/* Main workspace. */
.portal-workspace { min-height: 100svh; background: #101b2e; }
.workspace-atmosphere { position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 84% 0,rgba(16,142,160,.075),transparent 48%), radial-gradient(ellipse at 45% 65%,rgba(60,49,99,.09),transparent 70%); }
.workspace-sidebar { width: var(--sidebar-width); height: 100svh; position: fixed; left: 0; top: 0; z-index: 40; display: flex; flex-direction: column; background: rgba(12,24,43,.94); border-right: 1px solid var(--sg-line); backdrop-filter: blur(24px); overflow-y: auto; }
.sidebar-brand { padding: 29px 34px 16px; position: relative; }
.sidebar-brand img { width: 162px; margin: 0 auto; }
.sidebar-workspace-label { display: flex; justify-content: center; align-items: center; gap: 7px; color: #9ab0c7; font-size: 10px; padding-bottom: 23px; letter-spacing: .025em; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sg-cyan); box-shadow: 0 0 8px rgba(56,194,214,.4); }
.workspace-nav { padding: 0 15px 24px; }
.nav-section-label { font-size: 9px; font-weight: 900; color: #697f98; letter-spacing: .14em; text-transform: uppercase; margin: 20px 16px 9px; }
.nav-section-label:first-child { margin-top: 0; }
.workspace-nav-link { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; padding: 11px 14px; margin: 3px 0; min-height: 43px; border-radius: 8px; color: #9bb0c7; font-size: 12px; font-weight: 700; transition: background .18s, color .18s; }
.workspace-nav-link .portal-icon { width: 18px; height: 18px; color: #7893ae; }
.workspace-nav-link:hover { background: rgba(189,220,245,.05); color: #ebf5fd; }
.workspace-nav-link.is-active { color: #89e1eb; background: linear-gradient(90deg,rgba(16,142,160,.21),rgba(16,142,160,.10)); border-color: rgba(56,194,214,.16); }
.workspace-nav-link.is-active .portal-icon { color: #59d2e1; }
.nav-active-dot { margin-left: auto; width: 4px; height: 4px; border-radius: 50%; background: #58d6e5; }
.sidebar-bottom { margin-top: auto; padding: 18px 22px 20px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding-top: 17px; border-top: 1px solid var(--sg-line); }
.profile-avatar { flex-shrink: 0; display: grid; place-items: center; height: 33px; width: 33px; background: linear-gradient(135deg,#244967,#243654); color: #92e0e9; border: 1px solid rgba(129,184,211,.15); border-radius: 9px; font-size: 12px; font-weight: 900; }
.sidebar-profile div { min-width: 0; }
.sidebar-profile strong { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 153px; white-space: nowrap; font-size: 11px; font-weight: 700; }
.sidebar-profile div>span { display: block; font-size: 9px; color: #7e95af; margin-top: 2px; }
.workspace-signout { display: flex; align-items: center; gap: 10px; padding: 12px 0 0 2px; color: #8ca3bb; border: 0; background: none; font-size: 11px; }
.workspace-signout:hover { color: #f3f9ff; }
.workspace-signout .portal-icon { width: 14px; height: 14px; }
.workspace-body { margin-left: var(--sidebar-width); min-height: 100svh; display: flex; flex-direction: column; min-width: 0; }
.workspace-topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 35px; border-bottom: 1px solid rgba(175,210,237,.09); background: rgba(16,27,46,.8); backdrop-filter: blur(18px); }
.workspace-breadcrumb, .workspace-topbar-right { display: flex; align-items: center; gap: 16px; min-width: 0; font-size: 11px; }
.breadcrumb-parent { color: #7e96b0; }
.breadcrumb-separator { color: #3d5874; }
.breadcrumb-current { font-weight: 700; color: #d0deed; }
.workspace-date { color: #93a9c0; font-size: 10px; }
.team-badge { display: flex; align-items: center; gap: 6px; border: 1px solid var(--sg-line); border-radius: 7px; padding: 6px 9px; color: #9bb6ca; font-size: 9px; }
.team-badge .portal-icon { width: 12px; height: 12px; color: #71bacd; }
.workspace-content { flex: 1; width: 100%; max-width: 1540px; margin: 0 auto; padding: 35px; display: flex; flex-direction: column; gap: 24px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; padding: 24px 35px; color: #698099; font-size: 9px; border-top: 1px solid rgba(164,199,229,.06); margin: 8px 35px 0; padding-left: 0; padding-right: 0; }
.sidebar-open, .sidebar-close, .sidebar-backdrop { display: none; }
.workspace-messages { display: grid; gap: 8px; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.overview-heading h1 { font-size: 34px; line-height: 1.2; font-weight: 900; margin: 7px 0 8px; letter-spacing: -.04em; }
.overview-heading p { font-size: 12px; color: #97adc4; }
.overview-heading .portal-button { align-self: flex-end; margin-bottom: 3px; }
.overview-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.stat-card { display: block; padding: 19px 20px 16px; border: 1px solid var(--sg-line); border-radius: 14px; background: linear-gradient(120deg,rgba(34,56,85,.6),rgba(30,46,71,.5)); transition: border-color .18s, background .18s; }
.stat-card:hover { border-color: rgba(56,194,214,.32); background: rgba(36,63,89,.7); }
.stat-card-top { display: flex; justify-content: space-between; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: #b4c6d8; }
.stat-icon { color: #67b9cc; display: flex; }
.stat-icon .portal-icon { width: 18px; height: 18px; }
.stat-value { display: block; font-size: 34px; font-weight: 900; line-height: 1.35; letter-spacing: -.035em; margin: 13px 0 7px; font-variant-numeric: tabular-nums; }
.stat-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #819bb5; font-size: 10px; }
.stat-card-bottom .portal-icon { height: 14px; width: 14px; color: #5e7d99; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.72fr) minmax(290px,1fr); gap: 22px; }
.library-panel, .quick-actions-panel, .recent-users-panel { border-radius: 15px; min-width: 0; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 23px 20px; }
.panel-heading .portal-kicker { font-size: 8px; letter-spacing: .12em; }
.panel-heading h2 { font-size: 18px; font-weight: 900; margin-top: 5px; }
.library-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 0 23px 23px; }
.library-preview { display: block; min-width: 0; border: 1px solid rgba(173,212,239,.1); background: rgba(13,27,47,.25); border-radius: 10px; overflow: hidden; transition: border-color .18s; }
.library-preview:hover { border-color: rgba(87,210,228,.4); }
.library-preview-image { position: relative; aspect-ratio: 1.35; background: rgba(9,18,33,.25); display: grid; place-items: center; overflow: hidden; }
.library-preview-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.library-preview:hover img { transform: scale(1.035); }
.library-preview-image>.portal-icon { color: #6a859f; width: 36px; height: 36px; }
.media-category { position: absolute; left: 9px; bottom: 9px; max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(11,27,43,.85); border: 1px solid rgba(202,237,251,.2); backdrop-filter: blur(8px); color: #e1f1f7; padding: 3px 7px; font-size: 8px; border-radius: 4px; }
.library-preview-caption { padding: 11px 12px 10px; }
.library-preview-caption strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 10px; font-weight: 700; min-height: 30px; color: #d6e3ee; line-height: 1.5; }
.library-preview-caption>span { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: 9px; color: #7d97b1; }
.library-preview-caption .portal-icon { width: 12px; height: 12px; }
.quick-actions { padding: 0 22px; }
.quick-actions>a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(177,213,243,.09); }
.quick-actions>a:last-child { border-bottom: 0; }
.quick-action-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: rgba(56,194,214,.06); border: 1px solid rgba(56,194,214,.12); color: #66cbdc; flex-shrink: 0; }
.quick-action-icon .portal-icon { width: 17px; height: 17px; }
.quick-actions>a>div { flex: 1; min-width: 0; }
.quick-actions strong { display: block; font-size: 12px; font-weight: 700; }
.quick-actions div>span { display: block; color: #8ca4bf; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.quick-actions>a>.portal-icon { width: 14px; height: 14px; color: #60869f; }
.quick-actions>a:hover strong { color: var(--sg-cyan); }
.camo-brand-card { min-height: 120px; position: relative; isolation: isolate; margin: 17px 22px 22px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(116,202,216,.13); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; background: #163b53; }
.camo-brand-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(17,43,71,.6),rgba(17,43,71,.45)),url("brand/camo.120a06258a83.png") center / 400px; opacity: .7; }
.camo-brand-card img { width: 127px; filter: drop-shadow(0 4px 8px rgba(6,18,34,.18)); }
.camo-brand-card span { color: #c6e9ef; font-size: 8px; letter-spacing: .10em; font-weight: 700; }
.recent-users-panel .panel-heading { padding-bottom: 18px; }
.recent-users-list { padding: 0 23px 10px; }
.recent-user { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid rgba(166,204,233,.09); }
.recent-user-avatar { width: 33px; height: 33px; display: grid; place-items: center; flex-shrink: 0; color: #95cddc; background: linear-gradient(145deg,rgba(74,126,155,.23),rgba(24,49,89,.5)); border: 1px solid rgba(135,190,216,.12); border-radius: 9px; font-size: 11px; font-weight: 900; }
.recent-user-name { flex: 1; min-width: 0; }
.recent-user-name strong { display: block; color: #dce7f0; font-size: 11px; font-weight: 700; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.recent-user-name>span { display: block; font-size: 10px; color: #819ab4; margin-top: 2px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.recent-user-dealership { display: flex; align-items: center; gap: 8px; flex: 0 1 32%; color: #93aac2; font-size: 10px; }
.recent-user-dealership .portal-icon { width: 13px; height: 13px; opacity: .65; }
.portal-status { display: inline-flex; align-items: center; gap: 6px; color: #73cdd7; font-size: 9px; border: 1px solid rgba(56,194,214,.13); border-radius: 100px; background: rgba(56,194,214,.055); padding: 3px 9px; white-space: nowrap; }
.portal-status>span { width: 4px; height: 4px; background: #55c5d0; border-radius: 50%; }
.portal-status.is-inactive { color: #8594ac; border-color: rgba(153,171,197,.13); background: rgba(153,171,197,.03); }
.portal-status.is-inactive>span { background: #8594ac; }
.recent-user-arrow { width: 14px; height: 14px; color: #7392ac; margin-left: 20px; }
.recent-user:hover .recent-user-name strong { color: #81dfea; }
.portal-empty-state { text-align: center; padding: 38px 22px; color: #94adc5; grid-column: 1 / -1; }
.portal-empty-state>.portal-icon { width: 30px; height: 30px; margin: 0 auto 12px; color: #5aadb9; }
.portal-empty-state h3 { font-size: 15px; font-weight: 700; color: #d6e4ef; }
.portal-empty-state p { margin: 8px 0 13px; font-size: 12px; }
.image-unavailable::before { content: 'Image unavailable'; color: #8da8bf; font-size: 10px; }
.portal-workspace .portal-list-heading h1, .portal-workspace .portal-list-heading h2 { letter-spacing: -.035em; }
.portal-workspace table { border-collapse: collapse; }
.portal-workspace table th { font-weight: 700; }
.portal-workspace table td { vertical-align: middle; }

@media (min-width: 1650px) {
    :root { --sidebar-width: 260px; }
    .workspace-content { padding: 42px; gap: 28px; }
    .library-preview-image { aspect-ratio: 1.5; }
    .stat-value { font-size: 40px; }
    .stat-card { padding: 23px; }
    .quick-actions>a { padding: 20px 0; }
    .camo-brand-card { min-height: 140px; }
}
@media (max-width: 1199px) {
    :root { --sidebar-width: 218px; }
    .workspace-content { padding: 27px; gap: 20px; }
    .workspace-topbar { padding: 0 27px; }
    .overview-grid { grid-template-columns: minmax(0,1.4fr) minmax(270px,1fr); gap: 18px; }
    .panel-heading { padding: 20px; gap: 12px; }
    .panel-heading h2 { font-size: 16px; }
    .library-preview-grid { padding: 0 18px 18px; gap: 12px; }
    .library-preview-image { aspect-ratio: 1.35; }
    .stat-card { padding: 15px; }
    .sidebar-brand { padding-left: 28px; padding-right: 28px; }
    .quick-actions { padding: 0 17px; }
    .quick-actions>a { gap: 9px; }
    .quick-actions div>span { font-size: 9px; }
    .camo-brand-card { margin-left: 17px; margin-right: 17px; }
}
@media (max-width: 1023px) {
    :root { --sidebar-width: 244px; }
    .workspace-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .workspace-body { margin-left: 0; }
    .sidebar-open { display: flex; width: 35px; height: 35px; }
    .sidebar-close { display: flex; position: absolute; right: 11px; top: 11px; width: 28px; height: 28px; border: 0; background: transparent; }
    .sidebar-close .portal-icon { width: 17px; height: 17px; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(3,10,22,.6); backdrop-filter: blur(5px); }
    .nav-is-open { overflow: hidden; }
    .nav-is-open .workspace-sidebar { transform: translateX(0); }
    .nav-is-open .sidebar-backdrop { display: block; }
    .workspace-topbar { height: 65px; }
    .workspace-footer { margin-left: 27px; margin-right: 27px; }
}
@media (max-width: 700px) {
    .workspace-content { padding: 25px 19px; gap: 20px; }
    .workspace-topbar { padding: 0 18px; }
    .workspace-breadcrumb { gap: 11px; }
    .breadcrumb-parent, .breadcrumb-separator, .workspace-date { display: none; }
    .team-badge { font-size: 8px; }
    .overview-heading { gap: 15px; align-items: flex-start; }
    .overview-heading h1 { font-size: 28px; }
    .overview-heading p { font-size: 11px; max-width: 225px; line-height: 1.6; }
    .overview-heading .portal-button { font-size: 11px; padding: 10px 12px; min-height: 40px; flex-shrink: 0; align-self: center; margin-top: 12px; gap: 6px; }
    .overview-heading .portal-button .portal-icon { width: 15px; height: 15px; }
    .overview-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
    .stat-value { font-size: 31px; margin-top: 9px; }
    .stat-card { border-radius: 12px; }
    .stat-card-top { font-size: 10px; }
    .stat-card-bottom { font-size: 9px; }
    .overview-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .library-preview-image { aspect-ratio: 1.25; }
    .panel-heading { padding: 20px 18px; }
    .panel-heading h2 { font-size: 17px; }
    .panel-heading .portal-text-link { font-size: 10px; gap: 5px; }
    .panel-heading .portal-text-link .portal-icon { width: 13px; height: 13px; }
    .library-preview-caption { padding: 10px; }
    .quick-actions>a { padding: 15px 0; }
    .quick-actions div>span { font-size: 11px; }
    .camo-brand-card { min-height: 120px; }
    .recent-user { gap: 10px; flex-wrap: wrap; position: relative; padding: 14px 0; }
    .recent-user-name { flex-basis: calc(100% - 145px); }
    .recent-user-dealership { display: none; }
    .recent-user-arrow { display: none; }
    .recent-users-list { padding-left: 18px; padding-right: 18px; }
    .recent-user-name strong { font-size: 11px; }
    .recent-user-name>span { font-size: 9px; }
    .portal-status { padding: 3px 7px; font-size: 8px; }
    .workspace-footer { margin: 0 19px; padding: 20px 0; font-size: 8px; }
    .workspace-footer span:last-child { text-align: right; max-width: 160px; }
}
@media (max-width: 480px) {
    .login-header { padding: 20px 21px; }
    .login-home-mark { font-size: 12px; gap: 9px; }
    .login-home-mark img { width: 28px; height: 28px; border-radius: 7px; }
    .workspace-label { font-size: 9px; padding: 5px 9px; }
    .login-main { padding: 24px 20px 30px; }
    .login-brand { width: 209px; margin-bottom: 25px; }
    .login-card { padding: 27px 24px; border-radius: 18px; }
    .login-card-heading h1 { font-size: 23px; }
    .login-card-heading p { font-size: 12px; }
    .login-field .sg-input { font-size: 16px; }
    .login-footer { padding: 20px 21px; font-size: 9px; }
    .login-help { font-size: 10px; line-height: 1.6; padding: 0 12px; }
    .login-camo { opacity: .07; background-size: 900px; }
    .login-atmosphere { background: linear-gradient(145deg,#152e4b,#151e33 70%); }
}
@media (min-width: 701px) and (max-height: 850px) {
    .login-header { padding: 15px 32px; }
    .login-main { padding: 5px 24px 18px; }
    .login-brand { width: 174px; margin-bottom: 18px; }
    .login-card { padding: 25px 30px; }
    .login-card-heading h1 { font-size: 23px; }
    .login-card-heading .portal-kicker { margin-bottom: 7px; }
    .login-card-heading p { margin-top: 9px; font-size: 12px; }
    .login-form { margin-top: 22px; gap: 15px; }
    .login-field label { margin-bottom: 6px; }
    .login-field .sg-input { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
    .password-toggle { top: 3px; }
    .login-submit { min-height: 44px; }
    .login-access-note { margin-top: 18px; padding-top: 15px; }
    .login-help { margin-top: 15px; }
    .login-footer { padding: 13px 32px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
/* Content browsing and image editing */
.content-list { display: grid; gap: 12px; }
.content-row { display: grid; grid-template-columns: 164px minmax(0,1fr) 130px; align-items: center; gap: 24px; padding: 18px; border-radius: 18px; cursor: pointer; transition: background .16s, border-color .16s, box-shadow .16s; }
.content-row:nth-of-type(even) { background: rgba(35,51,77,.63); }
.content-row:hover, .content-row:focus-within { background: rgba(41,73,96,.8); border-color: rgba(56,194,214,.45); box-shadow: 0 0 0 1px rgba(56,194,214,.08); }
.content-thumbnail { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #0b1728; border: 1px solid rgba(180,215,239,.14); display: grid; place-items: center; color: #a4b5c8; }
.content-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumbnail-hint { position: absolute; bottom: 8px; padding: 5px 10px; border: 1px solid #ffffff30; border-radius: 20px; background: #0b1728df; display: flex; gap: 6px; align-items: center; font-size: 10px; opacity: 0; transition: opacity .16s; }
.thumbnail-hint .portal-icon { width: 13px; height: 13px; }
.content-row:hover .thumbnail-hint, .content-row:focus-within .thumbnail-hint { opacity: 1; }
.content-row-copy { min-width: 0; }
.content-row-copy h2 { font-size: 14px; line-height: 1.65; font-weight: 700; margin: 12px 0 8px; overflow-wrap: anywhere; }
.content-tags { display: flex; flex-wrap: wrap; gap: 7px; font-size: 10px; }
.content-tags span { border-radius: 6px; padding: 4px 8px; background: #ffffff08; border: 1px solid #ffffff14; color: #b4c9df; overflow-wrap: anywhere; }
.content-tags .tag-visible { background: #38c2d612; border-color: #38c2d633; color: #75dae7; }
.content-tags .tag-archived { color: #a4b5c8; }
.content-filename { font-size: 11px; color: #8fa8c1; overflow-wrap: anywhere; line-height: 1.6; }
.content-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; color: #8fa8c1; font-size: 11px; margin-top: 9px; overflow-wrap: anywhere; }
.content-row-actions { display: flex; flex-direction: column; align-items: stretch; gap: 15px; text-align: center; }
.content-row-actions .portal-button { padding: 11px 16px; font-size: 12px; }
.content-row-actions .portal-text-link { justify-content: center; }
.content-archive { font-size: 11px; color: #d6a8ae; padding: 5px; }
.content-archive:hover { color: #ffe0e5; }
.content-preview-dialog { color: #f5f9fc; padding: 0; width: min(490px,calc(100% - 28px)); max-height: calc(100dvh - 32px); margin: auto; background: #132239; border: 1px solid #739dc240; border-radius: 20px; overflow: auto; box-shadow: 0 35px 140px #0009; }
.content-preview-dialog::backdrop { background: #030a17c9; backdrop-filter: blur(9px); }
body:has(.content-preview-dialog[open]) { overflow: hidden; }
.preview-header { position: sticky; top: 0; z-index: 2; background: #132239; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #ffffff12; }
.preview-header h2 { font-size: 13px; font-weight: 700; }
.preview-artwork { display: flex; align-items: center; justify-content: center; background: #091321; min-height: 120px; }
.preview-artwork img { display: block; width: 100%; max-height: 48dvh; object-fit: contain; }
.preview-copy { padding: 20px; }
.preview-caption { margin: 15px 0 12px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-copy .portal-button { width: 100%; margin-top: 20px; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid #ffffff12; font-size: 11px; color: #8fa8c1; }
.preview-footer button:disabled { opacity: .35; cursor: default; }
.content-editor-layout { display: grid; grid-template-columns: minmax(260px,.85fr) minmax(0,1.15fr); gap: 32px; align-items: start; }
.artwork-editor { min-width: 0; padding: 18px; border: 1px solid #ffffff12; background: #08152566; border-radius: 16px; }
.artwork-editor-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: 12px; }
.artwork-editor-heading h2 { font-weight: 700; }
.artwork-editor-heading span { color: #82b9c6; font-size: 11px; }
.artwork-editor-frame { background: #091321; min-height: 180px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.artwork-editor-frame img { width: 100%; max-height: 450px; object-fit: contain; }
.artwork-editor-frame p { padding: 24px; text-align: center; font-size: 12px; color: #8fa8c1; }
.artwork-editor .content-filename { margin: 12px 0; }
.artwork-upload-control { position: relative; }
.artwork-upload-control label { cursor: pointer; width: 100%; }
.artwork-upload-control input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; }
.artwork-upload-control:focus-within label { outline: 2px solid #38c2d6; outline-offset: 4px; }
.artwork-help { font-size: 11px; line-height: 1.7; color: #8fa8c1; margin: 12px 0; }
.artwork-editor [hidden] { display: none; }
.artwork-editor .portal-button { width: 100%; }
.user-list-row:nth-child(even) { background: #b4d7ef04; }
.user-list-row:hover, .user-list-row:focus-within { background: #38c2d614; }
@media (max-width: 1199px) { .content-row { grid-template-columns: 148px minmax(0,1fr) 112px; gap: 17px; } }
@media (max-width: 767px) {
 .content-row { grid-template-columns: minmax(0,1fr); padding: 0; gap: 0; overflow: hidden; }
 .content-thumbnail { border: 0; border-radius: 0; aspect-ratio: 4/3; }
 .content-row-copy { padding: 20px; }
 .content-row-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 18px; padding: 0 20px 20px; }
 .content-row-actions .portal-button { flex: 1; }
 .content-row-actions form { width: 100%; text-align: left; }
 .content-editor-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .preview-artwork img { max-height: 42dvh; }
 .thumbnail-hint { opacity: 1; }
}
