:root {
  --navy: #071a3d;
  --navy-2: #102957;
  --gold: #c89a3d;
  --gold-soft: #f7edd9;
  --ink: #182033;
  --muted: #697386;
  --line: #e5e9f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --success: #19764d;
  --danger: #b93838;
  --warning: #a86410;
  --shadow: 0 12px 38px rgba(7, 26, 61, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.mobile-only, .mobile-brand { display: none; }
.eyebrow { font-size: 11px; letter-spacing: .13em; font-weight: 800; color: var(--gold); }
.eyebrow.light { color: #edd49b; }
.brand-lockup { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand-lockup .brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #f3d18a, #aa7420); color: var(--navy); font-weight: 950; font-size: 23px; box-shadow: inset 0 1px rgba(255,255,255,.65); }
.brand-lockup strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand-lockup span { display: block; font-size: 10px; color: #aebbd3; margin-top: 2px; text-transform: uppercase; letter-spacing: .08em; }
.brand-lockup.large .brand-mark { width: 58px; height: 58px; font-size: 31px; border-radius: 18px; }
.brand-lockup.large strong { font-size: 22px; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-brand-panel { position: relative; overflow: hidden; padding: 54px 64px; background: radial-gradient(circle at 20% 0%, #1d417b, transparent 40%), linear-gradient(155deg, var(--navy), #0b2454 65%, #162f61); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.login-brand-panel::after { content: ""; width: 380px; height: 380px; border-radius: 50%; border: 75px solid rgba(255,255,255,.025); position: absolute; right: -100px; bottom: -140px; }
.login-copy { max-width: 650px; position: relative; z-index: 1; }
.login-copy h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: .98; letter-spacing: -.055em; margin: 18px 0; max-width: 720px; }
.login-copy p { color: #c8d2e5; font-size: 18px; line-height: 1.6; max-width: 600px; }
.login-feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.13); padding-top: 26px; gap: 24px; }
.login-feature-grid b { display: block; color: #f3d18a; font-size: 24px; }
.login-feature-grid span { display: block; color: #aebbd3; font-size: 12px; margin-top: 5px; }
.login-form-panel { display: grid; place-items: center; padding: 40px; background: #fbfcff; }
.login-card { width: min(440px, 100%); }
.login-card h2 { font-size: 36px; letter-spacing: -.04em; margin: 10px 0 4px; }
.login-card > p { color: var(--muted); margin: 0 0 32px; }
label { display: grid; gap: 8px; font-size: 12px; font-weight: 800; color: #344055; margin-bottom: 16px; }
input, select, textarea { width: 100%; border: 1px solid #dfe4ed; border-radius: 12px; padding: 12px 13px; background: #fff; color: var(--ink); outline: none; transition: .18s ease; }
input:focus, select:focus, textarea:focus { border-color: #8ca7d4; box-shadow: 0 0 0 4px rgba(59,94,153,.09); }
textarea { min-height: 90px; resize: vertical; }
.btn { border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.btn.primary { background: linear-gradient(145deg, #0c2b60, #071a3d); color: #fff; box-shadow: 0 8px 20px rgba(7,26,61,.18); }
.btn.secondary { background: #eef2f8; color: var(--navy); }
.btn.gold { background: var(--gold-soft); color: #7d5413; }
.btn.danger { background: #fff0f0; color: var(--danger); }
.btn.sm { padding: 8px 11px; border-radius: 9px; font-size: 12px; }
.btn.full { width: 100%; min-height: 48px; margin-top: 6px; }
.demo-note { margin-top: 18px; background: #f2f5fa; border-radius: 12px; padding: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 255px minmax(0, 1fr); }
.sidebar { background: linear-gradient(180deg, var(--navy), #0a214d); color: white; padding: 22px 16px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30; }
.sidebar-head { padding: 0 8px 24px; display: flex; justify-content: space-between; align-items: center; }
#nav { display: grid; gap: 5px; overflow-y: auto; padding-right: 3px; }
.nav-section { color: #7286aa; font-size: 9px; letter-spacing: .14em; font-weight: 900; margin: 18px 11px 7px; }
.nav-item { border: 0; background: transparent; color: #b8c3d7; border-radius: 11px; padding: 10px 11px; display: flex; gap: 11px; align-items: center; text-align: left; font-size: 13px; font-weight: 700; }
.nav-item .ico { width: 23px; text-align: center; font-size: 16px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(200,154,61,.24), rgba(255,255,255,.07)); box-shadow: inset 3px 0 var(--gold); }
.sidebar-foot { margin-top: auto; padding-top: 18px; }
.system-chip { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 11px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #50d28a; box-shadow: 0 0 0 5px rgba(80,210,138,.1); }
.system-chip strong { display: block; font-size: 11px; }
.system-chip small { display: block; color: #8093b4; margin-top: 3px; font-size: 9px; }
.nav-logout { width: 100%; margin-top: 8px; border: 0; background: transparent; color: #9eabc1; text-align: left; padding: 10px 11px; border-radius: 10px; font-weight: 700; }
.nav-logout:hover { background: rgba(255,255,255,.05); color: white; }
.main-area { min-width: 0; }
.topbar { height: 83px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 20px; margin: 3px 0 0; letter-spacing: -.025em; }
.topbar-left, .topbar-actions, .user-pill { display: flex; align-items: center; gap: 12px; }
.global-search { width: 250px; display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); padding: 0 11px; border-radius: 11px; background: #fafbfe; color: #8b95a6; }
.global-search input { border: 0; box-shadow: none; padding: 9px 0; background: transparent; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 18px; display: grid; place-items: center; }
.user-pill { padding-left: 10px; border-left: 1px solid var(--line); }
.avatar { width: 39px; height: 39px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.user-pill strong { display: block; font-size: 12px; }
.user-pill span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.page { padding: 25px 28px 40px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
.page-head h2 { font-size: 25px; letter-spacing: -.035em; margin: 5px 0 4px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.kpi-card { background: var(--card); border: 1px solid #e8ebf1; border-radius: 16px; padding: 17px; box-shadow: 0 5px 18px rgba(7,26,61,.035); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; background: #edf2fa; color: var(--navy); display: grid; place-items: center; }
.kpi-value { font-size: 27px; font-weight: 900; letter-spacing: -.04em; margin: 15px 0 4px; }
.kpi-note { color: var(--muted); font-size: 10px; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 16px; margin-bottom: 16px; }
.card { background: var(--card); border: 1px solid #e6eaf1; border-radius: 16px; box-shadow: 0 6px 24px rgba(7,26,61,.035); min-width: 0; }
.card-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { margin: 0; font-size: 14px; letter-spacing: -.015em; }
.card-head span { color: var(--muted); font-size: 10px; }
.card-body { padding: 16px 18px; }
.alert-list { display: grid; gap: 10px; }
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: #fafbfe; border: 1px solid #edf0f5; border-radius: 12px; }
.alert-row strong { font-size: 12px; }
.alert-row small { display: block; color: var(--muted); margin-top: 3px; }
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 900; letter-spacing: .03em; white-space: nowrap; }
.badge.success { background: #e9f7f0; color: var(--success); }
.badge.warning { background: #fff4df; color: var(--warning); }
.badge.danger { background: #fff0f0; color: var(--danger); }
.badge.info { background: #edf2fa; color: #315a98; }
.badge.neutral { background: #f0f2f5; color: #5c6677; }
.progress { height: 7px; background: #edf0f5; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e0bc72); border-radius: inherit; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { text-align: left; color: #758095; background: #fafbfe; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; padding: 11px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 13px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
tbody tr:hover { background: #fbfcff; }
td strong { font-size: 11px; }
td small { display: block; margin-top: 3px; color: var(--muted); }
.qty { font-weight: 900; font-variant-numeric: tabular-nums; }
.qty.low { color: var(--danger); }
.table-actions { display: flex; gap: 6px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); margin-bottom: 6px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row select, .filter-row input { width: auto; min-width: 170px; padding: 9px 11px; font-size: 11px; }
.module-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; }
.tab-btn { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 8px 12px; font-size: 10px; font-weight: 800; }
.tab-btn.active { color: var(--navy); border-color: #b8c7dd; background: #edf2fa; }
.timeline { display: grid; gap: 0; }
.timeline-row { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding-bottom: 14px; }
.timeline-row .dot { width: 8px; height: 8px; margin-top: 4px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px var(--gold-soft); }
.timeline-row strong { display: block; font-size: 11px; }
.timeline-row small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.quick-action { border: 1px solid var(--line); background: #fff; border-radius: 12px; text-align: left; padding: 12px; color: var(--navy); font-weight: 800; font-size: 11px; }
.quick-action span { display: block; font-size: 18px; margin-bottom: 8px; }
.quick-action:hover { border-color: #b7c7df; background: #fbfcff; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(4,13,31,.56); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal-card { width: min(690px, 100%); max-height: min(90vh, 820px); overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 4px 0 0; font-size: 21px; }
.modal-body { padding: 20px; max-height: calc(90vh - 86px); overflow-y: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.inline-items { display: grid; gap: 8px; margin-bottom: 15px; }
.inline-line { display: grid; grid-template-columns: 1fr 130px 36px; gap: 8px; align-items: end; }
.inline-line label { margin-bottom: 0; }
.remove-line { width: 36px; height: 39px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--danger); }
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; width: min(360px, calc(100vw - 44px)); background: #101a2c; color: white; border-radius: 13px; padding: 13px 15px; box-shadow: 0 16px 46px rgba(0,0,0,.24); animation: toastin .22s ease; }
.toast.error { background: #7d2424; }
.toast strong { display: block; font-size: 12px; }
.toast span { display: block; font-size: 10px; color: rgba(255,255,255,.75); margin-top: 4px; line-height: 1.45; }
@keyframes toastin { from { transform: translateY(10px); opacity: 0; } }
@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .global-search { display: none; }
}
@media (max-width: 820px) {
  .mobile-only, .mobile-brand { display: flex; }
  .login-shell { display: block; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 26px; }
  .mobile-brand { color: var(--navy); margin-bottom: 40px; }
  .mobile-brand span { color: var(--muted); }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -275px; width: 255px; transition: .22s ease; box-shadow: 25px 0 60px rgba(0,0,0,.25); }
  .sidebar.open { left: 0; }
  .topbar { height: 72px; padding: 0 14px; }
  .topbar .eyebrow { display: none; }
  .topbar h1 { font-size: 17px; }
  .user-pill > div:not(.avatar) { display: none; }
  .user-pill { padding-left: 0; border: 0; }
  .page { padding: 18px 14px 34px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { padding: 13px; }
  .kpi-value { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .inline-line { grid-template-columns: 1fr 86px 36px; }
}

/* v0.2 CRM-style command centre */
.brand-duo { display:flex; align-items:center; gap:18px; position:relative; z-index:2; }
.brand-logo { object-fit:contain; display:block; }
.login-brand-duo .scuzo-logo { width:92px; height:92px; }
.login-brand-duo .tech-logo { width:100px; height:100px; border-radius:24px; }
.brand-handshake { width:54px; height:54px; display:grid; place-items:center; border-radius:18px; font-size:27px; background:rgba(255,255,255,.11); border:1px solid rgba(255,255,255,.16); }
.sidebar-logo { width:42px; height:42px; object-fit:cover; border-radius:12px; background:#fff; }
.mobile-logo { width:46px; height:46px; object-fit:cover; border-radius:13px; }
.kpi-card.clickable { width:100%; text-align:left; color:inherit; cursor:pointer; appearance:none; }
.kpi-card.clickable:hover { transform:translateY(-2px); border-color:#c8d5e8; box-shadow:0 12px 28px rgba(7,26,61,.09); }
.brand-bridge { min-height:128px; padding:14px 24px; display:grid; grid-template-columns:150px 1fr 150px; align-items:center; gap:22px; margin-bottom:16px; overflow:hidden; position:relative; background:linear-gradient(120deg,#fff,#f3f7fd 55%,#fff); }
.brand-bridge::after { content:""; position:absolute; inset:auto -70px -100px auto; width:230px; height:230px; border-radius:50%; border:45px solid rgba(12,43,96,.035); }
.bridge-logo { width:118px; height:105px; object-fit:contain; justify-self:center; position:relative; z-index:1; }
.bridge-logo.tech { border-radius:22px; }
.bridge-centre { text-align:center; display:grid; justify-items:center; gap:5px; position:relative; z-index:1; }
.bridge-centre strong { font-size:17px; letter-spacing:-.02em; color:var(--navy); }
.bridge-centre span { color:var(--muted); font-size:11px; }
.bridge-handshake { width:50px; height:50px; border-radius:16px; display:grid; place-items:center; font-size:26px; background:linear-gradient(145deg,var(--gold-soft),#fff); border:1px solid #ebd6ac; margin-bottom:2px; }
.dashboard-hero-grid { display:grid; grid-template-columns:minmax(360px,1.15fr) minmax(250px,.75fr) minmax(330px,1fr); gap:16px; margin-bottom:16px; }
.founder-pulse { padding:20px; background:linear-gradient(145deg,#071a3d,#102c63); color:#fff; }
.founder-profile { display:flex; align-items:center; gap:14px; padding-bottom:15px; border-bottom:1px solid rgba(255,255,255,.12); }
.founder-photo { width:76px; height:76px; border-radius:22px; object-fit:cover; border:3px solid rgba(255,255,255,.18); background:#fff; }
.founder-placeholder { display:grid; place-items:center; background:linear-gradient(145deg,#d7b36a,#9d6b16); color:#071a3d; font-size:25px; font-weight:950; }
.founder-profile h3 { margin:5px 0 2px; font-size:20px; }
.founder-profile small { color:#aebbd3; }
.founder-message { padding:15px 0 10px; }
.founder-message b { color:#efd495; font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
.founder-message p { margin:5px 0 12px; color:#d7deeb; line-height:1.45; font-size:12px; }
.goal-progress > div:first-child { display:flex; justify-content:space-between; color:#cbd5e7; font-size:10px; }
.goal-progress strong { color:#fff; }
.founder-pulse .progress { background:rgba(255,255,255,.12); }
.time-panel { padding:18px; display:flex; flex-direction:column; justify-content:space-between; }
.live-time { text-align:center; padding:5px 0 14px; border-bottom:1px solid var(--line); }
.live-time span { display:block; font-size:31px; font-weight:950; letter-spacing:-.045em; color:var(--navy); font-variant-numeric:tabular-nums; }
.live-time small { color:var(--muted); font-size:10px; }
.mini-calendar { padding-top:13px; }
.calendar-title { font-weight:850; text-align:center; font-size:12px; margin-bottom:10px; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; text-align:center; }
.calendar-grid b { color:#8792a5; font-size:8px; padding:3px 0; }
.calendar-grid span { min-height:24px; display:grid; place-items:center; font-size:9px; border-radius:8px; }
.calendar-grid span.today { background:var(--navy); color:#fff; font-weight:900; box-shadow:0 5px 12px rgba(7,26,61,.18); }
.sla-panel { overflow:hidden; }
.sla-row { width:100%; text-align:left; cursor:pointer; }
.empty.compact { padding:28px 12px; }
.import-note { background:#f6f8fc; border:1px solid var(--line); padding:13px 14px; border-radius:12px; color:var(--muted); font-size:11px; line-height:1.55; margin-bottom:14px; }
.import-preview { border:1px dashed #b9c5d8; border-radius:12px; padding:16px; color:var(--muted); background:#fbfcff; margin-bottom:8px; }
.import-preview strong { display:block; color:var(--ink); margin-bottom:5px; }
.import-preview small { display:block; line-height:1.5; }
.settings-long { max-width:58%; text-align:right; line-height:1.4; font-size:11px; }
.muted { color:var(--muted); }
label small { font-weight:500; color:var(--muted); line-height:1.35; }

@media (max-width: 1300px) {
  .dashboard-hero-grid { grid-template-columns:1fr 1fr; }
  .sla-panel { grid-column:1 / -1; }
}
@media (max-width: 900px) {
  .brand-bridge { grid-template-columns:90px 1fr 90px; padding:12px; }
  .bridge-logo { width:78px; height:76px; }
  .bridge-centre strong { font-size:14px; }
  .dashboard-hero-grid { grid-template-columns:1fr; }
  .sla-panel { grid-column:auto; }
}
@media (max-width: 620px) {
  .brand-bridge { grid-template-columns:65px 1fr 65px; gap:7px; }
  .bridge-logo { width:58px; height:58px; }
  .bridge-centre span { display:none; }
  .bridge-centre strong { font-size:11px; }
  .bridge-handshake { width:38px; height:38px; font-size:20px; }
  .page-actions .btn { min-width:calc(50% - 5px); }
  .founder-photo { width:62px; height:62px; }
}


/* v0.3.0 work-first dashboard and brand integration */
.login-logo-plaque {
  min-width: 132px;
  min-height: 108px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 18px 42px rgba(0,0,0,.18), inset 0 1px 0 #fff;
}
.login-logo-plaque.tech-plaque { min-width: 116px; }
.login-brand-duo { gap: 15px; }
.login-brand-duo .brand-handshake {
  flex: 0 0 52px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}

.sidebar-head { padding: 0 2px 20px; }
.sidebar-brand-chain {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sidebar-brand {
  min-width: 0;
  flex: 1 1 auto;
  gap: 7px;
}
.sidebar-brand strong { font-size: 14px; }
.sidebar-brand span { font-size: 7.5px; white-space: nowrap; }
.sidebar-logo {
  flex: 0 0 38px;
  object-fit: contain;
  background: #f8fbff;
  border: 1px solid rgba(255,255,255,.35);
  padding: 3px;
}
.sidebar-bridge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sidebar-handshake {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.13);
}
.sidebar-scuzo-plaque {
  width: 46px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(0,0,0,.18);
}
.sidebar-scuzo-logo { display: block; object-fit: contain; }

.app-shell, .sidebar { transition: .22s ease; }
.app-shell.sidebar-hidden { grid-template-columns: 0 minmax(0,1fr); }
.app-shell.sidebar-hidden .sidebar {
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.nav-toggle { flex: 0 0 38px; }

.topbar-time {
  min-width: 132px;
  display: grid;
  justify-items: end;
  padding: 4px 12px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.topbar-time strong {
  font-size: 14px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.topbar-time span {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
  white-space: nowrap;
}

.dashboard-kpis { margin-bottom: 16px; }
.dashboard-priority-grid {
  display: grid;
  grid-template-columns: minmax(0,1.78fr) minmax(310px,.72fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.action-centre { overflow: hidden; }
.action-head h3 {
  margin: 4px 0 2px;
  font-size: 19px;
  letter-spacing: -.025em;
}
.action-summary {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  padding: 14px 16px;
  background: #f7f9fd;
  border-bottom: 1px solid var(--line);
}
.action-stat {
  min-width: 0;
  border: 1px solid #e3e8f1;
  border-radius: 13px;
  padding: 11px 12px;
  background: #fff;
  text-align: left;
  color: var(--ink);
}
.action-stat:hover { border-color: #b8c7dc; box-shadow: 0 8px 20px rgba(7,26,61,.06); }
.action-stat b { display: block; color: var(--navy); font-size: 22px; letter-spacing: -.04em; }
.action-stat span { display: block; margin-top: 3px; font-size: 11px; font-weight: 850; }
.action-stat small { display: block; margin-top: 4px; color: var(--muted); font-size: 8.5px; }

.action-columns {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  padding: 15px 16px 6px;
}
.action-column { min-width: 0; }
.subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.subhead strong { font-size: 11px; }
.subhead span { font-size: 8.5px; color: var(--muted); text-align: right; }
.work-list { display: grid; gap: 8px; }
.work-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fbfcff;
  color: var(--ink);
  text-align: left;
}
button.work-row:hover { border-color: #c6d2e3; background: #fff; }
.work-row.priority { border-left: 3px solid var(--gold); }
.work-row.clear { background: #f8fcfa; }
.work-row > span:nth-child(2) { min-width: 0; }
.work-row strong { display: block; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-row small { display: block; color: var(--muted); font-size: 8.5px; margin-top: 3px; line-height: 1.35; }
.work-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf2fa;
  color: var(--navy);
  font-weight: 900;
}
.quick-workflows {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
  padding: 12px 16px 16px;
}
.quick-workflow {
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  gap: 2px 8px;
  align-items: center;
}
.quick-workflow:hover { border-color: #c2cfe0; box-shadow: 0 8px 18px rgba(7,26,61,.05); }
.quick-workflow > span {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: #7d5413;
  font-weight: 900;
}
.quick-workflow b { font-size: 9.5px; }
.quick-workflow small { color: var(--muted); font-size: 7.5px; }

.founder-pulse-compact {
  padding: 17px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.founder-pulse-compact .founder-profile {
  align-items: flex-start;
  padding-bottom: 12px;
}
.founder-pulse-compact .founder-photo {
  width: 96px;
  height: 120px;
  flex: 0 0 96px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 22%;
}
.founder-pulse-compact .founder-profile h3 { font-size: 18px; }
.compact-message { padding: 12px 0 8px; }
.compact-message p {
  font-size: 10.5px;
  line-height: 1.42;
  margin-bottom: 10px;
}
.founder-edit-link {
  margin-top: auto;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: #f0d18d;
  font-size: 9px;
  font-weight: 850;
  text-align: left;
}

.dashboard-work-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr);
  gap: 16px;
  margin-bottom: 16px;
}
.dashboard-bottom-grid { margin-bottom: 0; }

@media (max-width: 1280px) {
  .dashboard-priority-grid { grid-template-columns: minmax(0,1.55fr) minmax(290px,.75fr); }
  .action-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-workflows { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1080px) {
  .topbar-time { min-width: 116px; padding-inline: 8px; }
  .dashboard-priority-grid, .dashboard-work-grid { grid-template-columns: 1fr; }
  .founder-pulse-compact { min-height: 0; }
  .founder-pulse-compact .founder-profile { display: grid; grid-template-columns: 86px 1fr; }
  .founder-pulse-compact .founder-photo { width: 86px; height: 106px; }
}
@media (max-width: 900px) {
  .app-shell, .app-shell.sidebar-hidden { display: block; }
  .sidebar, .app-shell.sidebar-hidden .sidebar {
    position: fixed;
    left: 0;
    width: 255px;
    transform: translateX(-110%);
    opacity: 1;
    pointer-events: auto;
    overflow: auto;
    box-shadow: 25px 0 60px rgba(0,0,0,.25);
  }
  .sidebar.open, .app-shell.sidebar-hidden .sidebar.open { transform: translateX(0); }
  .topbar-time { display: none; }
}
@media (max-width: 720px) {
  .action-columns { grid-template-columns: 1fr; }
  .action-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-workflows { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .login-logo-plaque { min-width: 104px; min-height: 92px; padding: 8px; }
  .login-brand-duo .scuzo-logo { width: 88px; height: 68px; }
  .login-brand-duo .tech-logo { width: 68px; height: 68px; }
  .login-brand-duo .brand-handshake { flex-basis: 42px; width: 42px; height: 42px; font-size: 21px; }
  .founder-pulse-compact .founder-profile { grid-template-columns: 78px 1fr; }
  .founder-pulse-compact .founder-photo { width: 78px; height: 96px; }
}

/* v0.3.0 pilot employee access control */
.access-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.access-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(7,26,61,.04);
}
.access-summary b { display: block; font-size: 26px; color: var(--navy); letter-spacing: -.04em; }
.access-summary span { display: block; margin-top: 3px; font-size: 11px; font-weight: 850; color: var(--ink); }
.access-summary small { display: block; margin-top: 5px; font-size: 8.5px; color: var(--muted); }
.permission-list { display: flex; flex-wrap: wrap; gap: 5px; max-width: 440px; }
.permission-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef3fb;
  border: 1px solid #dfe7f3;
  color: #294467;
  font-size: 7.8px;
  font-weight: 800;
  white-space: nowrap;
}
.permission-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #f8fafd;
}
.permission-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.permission-panel-head strong { display: block; font-size: 11px; }
.permission-panel-head small { display: block; color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.permission-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #e2e8f1;
  border-radius: 11px;
  padding: 9px;
  background: #fff;
  cursor: pointer;
}
.permission-option input { width: 15px; height: 15px; margin: 1px 0 0; flex: 0 0 auto; }
.permission-option span { min-width: 0; }
.permission-option b { display: block; font-size: 9px; color: var(--ink); }
.permission-option small { display: block; margin-top: 3px; font-size: 7.5px; line-height: 1.3; color: var(--muted); }
.access-note { margin-top: 14px; }
.access-denied { max-width: 620px; margin: 36px auto; text-align: center; }
button[disabled], .work-row[disabled], .action-stat[disabled] { cursor: not-allowed; opacity: .55; box-shadow: none !important; }

@media (max-width: 900px) {
  .access-summary-grid { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .permission-grid { grid-template-columns: 1fr; }
  .permission-panel-head { align-items: flex-start; flex-direction: column; }
}

/* v0.4.0 — Purchase & Inventory Control */
.page-actions{flex-wrap:wrap;max-width:980px;justify-content:flex-end}
.procurement-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}
.procurement-summary-grid .kpi-card{min-height:126px}
.procurement-overview-grid{align-items:start}
.workflow-steps{display:grid;gap:10px}
.workflow-step{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:center;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfcff}
.workflow-step>b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--navy);color:#fff;font-size:12px}
.workflow-step span{display:grid;gap:2px}.workflow-step strong{font-size:13px}.workflow-step small{color:var(--muted);font-size:11px}
.module-tab{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:999px;padding:9px 13px;font-weight:750;font-size:12px;cursor:pointer;white-space:nowrap}
.module-tab:hover{border-color:#9eb3db;background:#f5f8ff}.module-tab.active{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:0 7px 16px rgba(7,26,61,.14)}
.grn-lines{display:grid;gap:12px}.grn-line{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f9fbff}
.grn-line-title{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px dashed var(--line)}
.grn-line-title strong{font-size:13px}.grn-line-title small{color:var(--muted);font-size:11px}
.grn-line label{font-size:10px}.grn-line input,.grn-line select{margin-top:5px}
.table-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.settings-long{max-width:420px;text-align:right}
@media(max-width:1250px){.procurement-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.procurement-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grn-line{grid-template-columns:repeat(2,minmax(0,1fr))}.page-actions{justify-content:flex-start}}
@media(max-width:600px){.procurement-summary-grid{grid-template-columns:1fr}.grn-line{grid-template-columns:1fr}.module-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.page-actions .btn{flex:1 1 auto}}
