:root {
  --bg: #050a14;
  --bg-soft: #081120;
  --panel: rgba(12, 23, 42, 0.88);
  --panel-strong: #0d1a30;
  --panel-light: #12213a;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --text: #f7f9fc;
  --muted: #91a0b8;
  --muted-2: #66758d;
  --orange: #ff9f0a;
  --orange-2: #ffb43a;
  --blue: #4c8dff;
  --green: #28c880;
  --red: #ff5c68;
  --yellow: #f3c75f;
  --shadow: 0 26px 70px rgba(0,0,0,.34);
  --radius: 20px;
  --radius-sm: 13px;
  --sidebar: 286px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background:
  radial-gradient(circle at 18% -10%, rgba(24,72,145,.22), transparent 32%),
  radial-gradient(circle at 100% 0%, rgba(255,159,10,.08), transparent 28%),
  linear-gradient(180deg, #07101e 0%, #050a14 100%); }
body, input, textarea, select, button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { outline: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; display: block; }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-visual { position: relative; overflow: hidden; min-height: 100vh; padding: 52px clamp(42px, 7vw, 108px); display: flex; flex-direction: column; justify-content: center; background: #050c1d; border-right: 1px solid var(--line); isolation: isolate; }
.login-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(5,12,29,.2), rgba(5,12,29,.75)), url('../img/logo-vl5-fundo.png') center/cover no-repeat; opacity: .62; z-index: -3; }
.login-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,10,22,.08), rgba(4,10,22,.82)); z-index: -2; }
.login-visual-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,159,10,.16); filter: blur(110px); top: 18%; right: -220px; z-index: -1; }
.login-visual > img { width: 150px; position: absolute; left: clamp(42px, 7vw, 108px); top: 42px; filter: drop-shadow(0 8px 25px rgba(0,0,0,.4)); }
.login-copy { max-width: 650px; margin-top: auto; margin-bottom: 7vh; }
.login-copy span, .eyebrow { display: block; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .18em; margin: 0 0 12px; }
.login-copy h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.04; letter-spacing: -.04em; margin: 0 0 22px; max-width: 780px; }
.login-copy p { color: #b6c2d5; font-size: 18px; line-height: 1.65; max-width: 620px; margin: 0; }
.login-panel { display: grid; place-items: center; padding: 40px; min-height: 100vh; }
.login-card { width: min(100%, 470px); }
.login-card h2 { margin: 0; font-size: 34px; letter-spacing: -.025em; }
.login-subtitle { color: var(--muted); margin: 12px 0 30px; line-height: 1.6; }
.mobile-login-logo { display: none; }
.login-security { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted-2); font-size: 13px; margin-top: 22px; }
.login-security svg { width: 17px; height: 17px; color: var(--green); }

/* Layout */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: rgba(6,13,26,.96); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 30; backdrop-filter: blur(18px); }
.sidebar-brand { height: 92px; display: flex; align-items: center; gap: 13px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sidebar-brand img { width: 50px; height: 50px; object-fit: contain; }
.sidebar-brand strong { display: block; font-size: 16px; letter-spacing: .01em; }
.sidebar-brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.sidebar-close { display: none; margin-left: auto; }
.sidebar-nav { padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 0 14px; border-radius: 12px; color: #aeb9ca; border: 0; background: transparent; cursor: pointer; text-align: left; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(255,159,10,.18), rgba(255,159,10,.065)); box-shadow: inset 3px 0 0 var(--orange); }
.nav-icon { width: 22px; display: inline-grid; place-items: center; color: currentColor; }
.nav-icon svg { width: 19px; height: 19px; }
.sidebar-footer { margin-top: auto; padding: 14px; border-top: 1px solid var(--line); }
.user-mini { display: flex; align-items: center; gap: 11px; padding: 10px 8px 14px; }
.user-mini strong { display: block; font-size: 13px; }
.user-mini span:not(.avatar) { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.logout-link { color: #c0cada; }
.main-shell { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(6,13,26,.56); backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 20; }
.topbar-spacer { flex: 1; }
.menu-button { display: none; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--text); cursor: pointer; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.notification-button { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.notification-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--orange); color: #151008; font-size: 10px; font-weight: 900; border: 2px solid #091222; }
.content { width: 100%; max-width: 1650px; margin: 0 auto; padding: 32px clamp(20px, 3vw, 48px) 50px; flex: 1; }
.page-heading { display: flex; gap: 28px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; margin: 0; }
.page-subtitle { color: var(--muted); line-height: 1.6; margin: 9px 0 0; max-width: 760px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-footer { margin-top: auto; padding: 22px clamp(20px,3vw,48px); border-top: 1px solid var(--line); color: var(--muted-2); display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.sidebar-overlay { display: none; }

/* Common */
.panel { background: linear-gradient(180deg, rgba(14,27,49,.9), rgba(9,18,34,.92)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 45px rgba(0,0,0,.15); overflow: hidden; }
.panel + .panel { margin-top: 22px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; }
.panel-header h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.panel-header p { color: var(--muted); margin: 7px 0 0; font-size: 13px; line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.metric-card { min-height: 155px; border-radius: var(--radius); padding: 22px; background: linear-gradient(145deg, rgba(15,29,52,.96), rgba(9,18,34,.9)); border: 1px solid var(--line); box-shadow: 0 15px 45px rgba(0,0,0,.13); position: relative; overflow: hidden; }
.metric-card::after { content:""; position:absolute; width:140px; height:140px; border-radius:50%; right:-70px; top:-72px; background: currentColor; opacity:.06; filter: blur(5px); }
.metric-top { display:flex; justify-content:space-between; gap:15px; color:var(--muted); font-size:13px; }
.metric-dot { width:9px; height:9px; border-radius:50%; background:currentColor; box-shadow:0 0 18px currentColor; }
.metric-card strong { display:block; font-size:42px; line-height:1; margin:22px 0 8px; letter-spacing:-.04em; color:var(--text); }
.metric-card small { color:var(--muted-2); }
.tone-success { color: var(--green); }
.tone-warning { color: var(--yellow); }
.tone-danger { color: var(--red); }
.tone-info { color: var(--blue); }
.tone-neutral { color: #8697af; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr); gap:22px; align-items:start; }
.detail-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,.72fr); gap:22px; align-items:start; }
.detail-main, .detail-side { min-width:0; }
.sticky-panel { position: sticky; top: 94px; }

.button { min-height: 42px; display:inline-flex; align-items:center; justify-content:center; gap:9px; border:1px solid transparent; border-radius:12px; padding:0 16px; font-weight:750; font-size:13px; cursor:pointer; transition:.17s ease; white-space:nowrap; }
.button svg { width:17px; height:17px; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.button-primary { color:#171005; background:linear-gradient(135deg,var(--orange),var(--orange-2)); box-shadow:0 10px 28px rgba(255,159,10,.18); }
.button-secondary { color:var(--text); background:rgba(255,255,255,.055); border-color:var(--line-strong); }
.button-ghost { color:#c6d1e0; background:transparent; border-color:var(--line); }
.button-success { background:linear-gradient(135deg,#1dbf73,#35d991); color:#03150c; }
.button-danger { background:rgba(255,92,104,.12); color:#ff929a; border-color:rgba(255,92,104,.24); }
.button-whatsapp { background:rgba(40,200,128,.12); border-color:rgba(40,200,128,.25); color:#6ce7aa; }
.button-full { width:100%; }
.button-large { min-height:52px; padding:0 22px; border-radius:14px; }
.button-small { min-height:34px; padding:0 11px; font-size:11px; }
.text-link, .table-action { color:#a9c6ff; font-weight:700; font-size:12px; display:inline-flex; align-items:center; gap:6px; }
.table-action svg { width:14px; height:14px; }
.text-link:hover, .table-action:hover { color:#fff; }

.avatar { width:42px; height:42px; border-radius:13px; display:inline-grid; place-items:center; background:linear-gradient(145deg, rgba(255,159,10,.28), rgba(255,159,10,.08)); border:1px solid rgba(255,159,10,.23); color:#ffc25f; font-weight:900; flex:0 0 auto; }
.avatar.small { width:36px; height:36px; border-radius:11px; font-size:12px; }
.avatar.large { width:72px; height:72px; border-radius:20px; font-size:24px; }
.badge { display:inline-flex; align-items:center; width:max-content; border-radius:999px; padding:6px 10px; font-size:10px; line-height:1; font-weight:850; letter-spacing:.02em; border:1px solid transparent; }
.badge-success { color:#70e5ad; background:rgba(40,200,128,.1); border-color:rgba(40,200,128,.2); }
.badge-danger { color:#ff9da4; background:rgba(255,92,104,.1); border-color:rgba(255,92,104,.2); }
.badge-warning { color:#f7d77d; background:rgba(243,199,95,.1); border-color:rgba(243,199,95,.18); }
.badge-info { color:#9cc0ff; background:rgba(76,141,255,.1); border-color:rgba(76,141,255,.2); }
.badge-neutral { color:#adbacd; background:rgba(255,255,255,.055); border-color:var(--line); }
.muted { color:var(--muted); }
.text-danger { color:#ff7e88 !important; font-weight:700; }
.small-text { font-size:12px; }

/* Forms */
.form-panel { padding: 26px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.form-stack { display:flex; flex-direction:column; gap:18px; }
.field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.field-wide { grid-column:1/-1; }
.field > span, .field legend { font-size:12px; font-weight:780; color:#c9d3e2; }
.field small { color:var(--muted-2); font-size:11px; line-height:1.5; }
input, textarea, select { width:100%; color:var(--text); background:#081424; border:1px solid var(--line-strong); border-radius:12px; padding:12px 13px; transition:.18s ease; }
input { min-height:46px; }
textarea { resize:vertical; min-height:100px; line-height:1.55; }
select { min-height:46px; appearance:none; background-image:linear-gradient(45deg,transparent 50%,#76859b 50%),linear-gradient(135deg,#76859b 50%,transparent 50%); background-position:calc(100% - 18px) 20px,calc(100% - 13px) 20px; background-size:5px 5px,5px 5px; background-repeat:no-repeat; padding-right:36px; }
input:focus, textarea:focus, select:focus { border-color:rgba(255,159,10,.58); box-shadow:0 0 0 4px rgba(255,159,10,.08); background:#0a1729; }
input::placeholder, textarea::placeholder { color:#536178; }
.input-with-icon { position:relative; }
.input-with-icon > svg { position:absolute; left:14px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:#67768c; pointer-events:none; }
.input-with-icon input { padding-left:44px; }
.password-field input { padding-right:48px; }
.password-toggle { position:absolute; right:5px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:#75849a; width:40px; height:40px; display:grid; place-items:center; cursor:pointer; }
.password-toggle svg { width:18px; height:18px; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:4px; }
.filter-bar { display:flex; align-items:center; gap:12px; padding:20px 24px; border-bottom:1px solid var(--line); }
.filter-bar select { width:230px; }
.search-box { flex:1; min-width:220px; position:relative; }
.search-box svg { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#718099; width:18px; height:18px; }
.search-box input { padding-left:44px; }
.file-input { position:relative; min-height:46px; border:1px dashed rgba(255,255,255,.19); border-radius:12px; background:rgba(255,255,255,.025); display:flex; align-items:center; justify-content:center; text-align:center; overflow:hidden; }
.file-input input { position:absolute; inset:0; opacity:0; cursor:pointer; min-height:100%; }
.file-input span { color:#9eb0c8; font-size:12px; font-weight:700; padding:13px; pointer-events:none; }
.file-input.has-file { border-color:rgba(40,200,128,.45); background:rgba(40,200,128,.06); }
.file-input.has-file span { color:#6ce7aa; }
.switch-field { display:flex; align-items:center; gap:12px; cursor:pointer; color:#c8d3e2; font-size:13px; }
.switch-field input { position:absolute; opacity:0; pointer-events:none; }
.switch { width:44px; height:24px; border-radius:20px; background:#26354b; border:1px solid var(--line-strong); position:relative; transition:.2s ease; }
.switch::after { content:""; position:absolute; width:18px; height:18px; border-radius:50%; top:2px; left:3px; background:#8e9aad; transition:.2s ease; }
.switch-field input:checked + .switch { background:rgba(255,159,10,.28); border-color:rgba(255,159,10,.45); }
.switch-field input:checked + .switch::after { left:21px; background:var(--orange); }
.checklist { border:1px solid var(--line); border-radius:15px; padding:16px; margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.checklist legend { padding:0 8px; }
.checklist label { display:flex; align-items:center; gap:9px; min-height:42px; padding:0 11px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.025); cursor:pointer; font-size:12px; }
.checklist input { position:absolute; opacity:0; }
.checklist label span { width:20px; height:20px; border-radius:6px; border:1px solid var(--line-strong); display:grid; place-items:center; color:transparent; }
.checklist label span svg { width:13px; height:13px; }
.checklist input:checked + span { background:var(--green); border-color:var(--green); color:#062115; }

/* Lists and tables */
.list-stack { border-top:1px solid var(--line); }
.list-row { display:flex; align-items:center; gap:13px; min-height:76px; padding:14px 24px; border-bottom:1px solid var(--line); transition:.16s ease; }
.list-row:last-child { border-bottom:0; }
.list-row:hover { background:rgba(255,255,255,.035); }
.row-avatar { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; flex:0 0 auto; background:rgba(76,141,255,.1); border:1px solid rgba(76,141,255,.18); color:#9dbfff; font-weight:850; }
.row-main { flex:1; min-width:0; }
.row-main strong { display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-main span { display:block; color:var(--muted); font-size:11px; margin-top:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-meta { display:flex; align-items:flex-end; flex-direction:column; gap:7px; }
.row-meta time { color:var(--muted-2); font-size:10px; }
.table-wrap { width:100%; overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:800px; }
th, td { padding:15px 18px; text-align:left; border-bottom:1px solid var(--line); vertical-align:middle; }
th { color:#7f8ea4; font-size:10px; text-transform:uppercase; letter-spacing:.1em; background:rgba(255,255,255,.018); }
td { color:#c5cfdd; font-size:12px; }
tbody tr:hover { background:rgba(255,255,255,.025); }
tbody tr:last-child td { border-bottom:0; }
.table-person { display:flex; align-items:center; gap:11px; }
.table-person strong { display:block; color:var(--text); font-size:12px; }
.table-person span:not(.avatar) { display:block; color:var(--muted); font-size:10px; margin-top:3px; }
.table-subtext { display:block; color:var(--muted); font-size:10px; margin-top:4px; max-width:390px; }

/* Details */
.detail-hero { display:flex; justify-content:space-between; align-items:center; gap:22px; padding:26px; border-bottom:1px solid var(--line); }
.detail-hero h2 { margin:13px 0 6px; font-size:27px; letter-spacing:-.03em; }
.detail-hero p { margin:0; color:var(--muted); }
.detail-tags { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.info-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; background:var(--line); }
.info-grid > div { background:#0b172a; padding:18px 20px; min-width:0; }
.info-grid span { display:block; color:var(--muted); font-size:10px; margin-bottom:6px; }
.info-grid strong { display:block; color:#e8edf5; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.note-box { margin:20px 24px 24px; padding:16px 18px; border-radius:13px; border:1px solid var(--line); background:rgba(255,255,255,.025); }
.note-box span { display:block; color:#9facbf; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.note-box p { margin:8px 0 0; color:#c7d0de; font-size:12px; line-height:1.65; }
.note-box.accent { border-color:rgba(255,159,10,.22); background:rgba(255,159,10,.055); }
.note-box.warning { border-color:rgba(243,199,95,.2); background:rgba(243,199,95,.055); }
.handoff-list { padding:0 24px 18px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.handoff-list > div { display:flex; align-items:center; gap:8px; color:#bdc8d6; font-size:12px; }
.handoff-list svg { width:15px; height:15px; color:var(--green); }
.compact-form { padding:0 24px 24px; }
.timeline { padding:0 26px 24px; }
.timeline.compact { padding-top:4px; }
.timeline-item { position:relative; display:grid; grid-template-columns:15px 1fr; gap:12px; padding:0 0 22px; }
.timeline-item::before { content:""; position:absolute; left:6px; top:15px; bottom:-1px; width:1px; background:var(--line); }
.timeline-item:last-child::before { display:none; }
.timeline-dot { width:13px; height:13px; border-radius:50%; border:3px solid #12233c; background:#63748d; margin-top:3px; z-index:1; }
.timeline-dot.active { background:var(--orange); box-shadow:0 0 18px rgba(255,159,10,.55); }
.timeline-item strong { font-size:12px; }
.timeline-item p { color:#b8c3d2; font-size:12px; line-height:1.6; margin:6px 0; }
.timeline-item small { display:block; color:#f3cb75; font-size:10px; margin-bottom:5px; }
.timeline-item time { color:var(--muted-2); font-size:10px; }
.inline-note-form { display:grid; grid-template-columns:1fr auto; gap:10px; padding:0 24px 24px; border-bottom:1px solid var(--line); margin-bottom:22px; }
.inline-note-form textarea { min-height:72px; }
.file-card { display:flex; align-items:center; gap:11px; padding:14px; margin:0 24px 18px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.025); transition:.16s ease; }
.file-card:hover { border-color:rgba(255,159,10,.3); background:rgba(255,159,10,.04); }
.file-card > svg:first-child { color:#9cbcff; flex:0 0 auto; }
.file-card > svg:last-child { margin-left:auto; color:var(--muted); flex:0 0 auto; }
.file-card div { min-width:0; }
.file-card strong { display:block; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:230px; }
.file-card span { display:block; color:var(--muted); font-size:9px; margin-top:4px; }
.file-card.small { margin:0; border-radius:11px; }
.file-list { display:flex; flex-direction:column; gap:8px; padding:0 24px 24px; }
.link-card { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:0 24px 14px; padding:15px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }
.link-card span { color:var(--muted); font-size:11px; }
.link-card strong { display:flex; align-items:center; gap:6px; font-size:11px; color:#a8c6ff; }
.link-card svg { width:14px; height:14px; }
.quick-links { display:flex; flex-direction:column; gap:8px; padding:0 24px 24px; }
.quick-links a { display:flex; justify-content:space-between; align-items:center; min-height:42px; padding:0 12px; border-radius:10px; border:1px solid var(--line); color:#b9c9de; font-size:11px; }
.quick-links svg { width:14px; height:14px; }
.simple-list { margin:0; padding:0 26px 26px 42px; color:#b7c2d2; font-size:12px; line-height:1.8; }
.profile-card { display:flex; align-items:center; gap:18px; padding:28px; }
.profile-card h2 { margin:0 0 6px; }
.profile-card p { margin:0 0 12px; color:var(--muted); }

/* Cards */
.project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:24px; }
.project-card { border:1px solid var(--line); border-radius:16px; padding:18px; background:rgba(255,255,255,.022); transition:.17s ease; min-width:0; }
.project-card:hover { transform:translateY(-2px); border-color:rgba(255,159,10,.26); background:rgba(255,159,10,.035); }
.project-card-top { display:flex; gap:11px; align-items:center; }
.project-card-top strong { display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.project-card-top span:not(.row-avatar) { display:block; color:var(--muted); font-size:10px; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.project-badges { display:flex; flex-wrap:wrap; gap:7px; margin:16px 0; }
.project-card dl { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:0; }
.project-card dl div { min-width:0; }
.project-card dt { color:var(--muted-2); font-size:9px; margin-bottom:4px; }
.project-card dd { margin:0; color:#cad4e1; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.project-open { display:flex; justify-content:flex-end; align-items:center; gap:5px; color:#a8c6ff; font-size:10px; font-weight:750; margin-top:17px; }
.project-open svg { width:13px; height:13px; }
.export-grid { display:grid; gap:12px; padding:0 24px 24px; }
.export-card { display:flex; align-items:center; gap:13px; padding:17px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025); }
.export-card > svg:first-child { color:#9ebfff; }
.export-card > svg:last-child { margin-left:auto; color:var(--muted); }
.export-card div { flex:1; }
.export-card strong { display:block; font-size:12px; }
.export-card span { display:block; color:var(--muted); font-size:10px; margin-top:5px; }
.export-card.featured { border-color:rgba(255,159,10,.22); background:rgba(255,159,10,.045); }
.export-card.featured > svg:first-child { color:var(--orange); }

/* Notifications / empty / alerts */
.notification-list { display:flex; flex-direction:column; }
.notification-item { display:grid; grid-template-columns:12px 1fr auto; gap:14px; align-items:start; padding:20px 24px; border-bottom:1px solid var(--line); }
.notification-item:last-child { border-bottom:0; }
.notification-item.unread { background:rgba(255,159,10,.03); }
.notification-dot { width:9px; height:9px; margin-top:5px; border-radius:50%; background:#526178; }
.notification-item.unread .notification-dot { background:var(--orange); box-shadow:0 0 15px rgba(255,159,10,.5); }
.notification-item strong { font-size:12px; }
.notification-item p { color:#b7c2d2; margin:6px 0; font-size:12px; line-height:1.55; }
.notification-item time { color:var(--muted-2); font-size:10px; }
.notification-actions { display:flex; gap:8px; align-items:center; }
.empty-state { display:grid; place-items:center; text-align:center; padding:60px 24px; }
.empty-icon { width:58px; height:58px; display:grid; place-items:center; border-radius:17px; background:rgba(255,255,255,.04); color:#8090a7; margin-bottom:16px; }
.empty-state h3 { margin:0 0 8px; font-size:16px; }
.empty-state p { margin:0 0 18px; color:var(--muted); font-size:12px; max-width:440px; line-height:1.6; }
.alert { border:1px solid; border-radius:13px; padding:14px 16px; margin:0 0 20px; font-size:12px; line-height:1.55; }
.alert ul { margin:8px 0 0; padding-left:18px; }
.alert-success { color:#80e9b8; border-color:rgba(40,200,128,.24); background:rgba(40,200,128,.08); }
.alert-danger { color:#ffabb1; border-color:rgba(255,92,104,.24); background:rgba(255,92,104,.08); }
.alert-warning { color:#f4d883; border-color:rgba(243,199,95,.24); background:rgba(243,199,95,.08); }
.alert-info { color:#a9c8ff; border-color:rgba(76,141,255,.24); background:rgba(76,141,255,.08); }

/* Installer */
.installer-page { background:
  radial-gradient(circle at 15% 0%, rgba(76,141,255,.18), transparent 30%),
  radial-gradient(circle at 100% 0%, rgba(255,159,10,.13), transparent 30%), #050a14; }
.installer-shell { width:min(100% - 32px, 980px); margin:0 auto; padding:46px 0 70px; }
.installer-header { display:flex; align-items:center; gap:23px; margin-bottom:28px; }
.installer-header img { width:90px; height:90px; object-fit:contain; }
.installer-header span { color:var(--orange); font-size:11px; font-weight:850; letter-spacing:.18em; }
.installer-header h1 { margin:5px 0 8px; font-size:38px; letter-spacing:-.035em; }
.installer-header p { color:var(--muted); margin:0; line-height:1.6; }
.installer-form { display:flex; flex-direction:column; gap:18px; }
.installer-form .panel { overflow:visible; }
.installer-form .panel-header { padding:0 0 22px; }
.installer-form .form-panel { padding:26px; }
.step-number { width:30px; height:30px; border-radius:10px; display:grid; place-items:center; background:rgba(255,159,10,.12); color:var(--orange); font-size:12px; font-weight:900; float:left; margin-right:12px; }
.requirements-card { border:1px solid var(--line); background:rgba(12,23,42,.88); border-radius:var(--radius); padding:22px; margin-bottom:18px; }
.requirements-card h2 { margin:0 0 15px; font-size:16px; }
.requirements-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.requirement { display:flex; align-items:center; gap:9px; color:#bbc6d5; font-size:11px; border:1px solid var(--line); padding:11px; border-radius:10px; }
.requirement span { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; font-weight:900; }
.requirement.ok span { background:rgba(40,200,128,.14); color:var(--green); }
.requirement.fail span { background:rgba(255,92,104,.14); color:var(--red); }
.installer-success { min-height:480px; border:1px solid var(--line); background:rgba(12,23,42,.88); border-radius:var(--radius); padding:60px 30px; display:grid; place-items:center; align-content:center; text-align:center; box-shadow:var(--shadow); }
.success-mark { width:76px; height:76px; border-radius:24px; display:grid; place-items:center; background:rgba(40,200,128,.12); border:1px solid rgba(40,200,128,.24); color:var(--green); font-size:38px; font-weight:900; margin-bottom:20px; }
.installer-success h2 { margin:0 0 10px; font-size:30px; }
.installer-success p:not(.eyebrow) { color:var(--muted); max-width:540px; line-height:1.65; margin:0 0 25px; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .info-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  :root { --sidebar: 280px; }
  .sidebar { transform:translateX(-105%); transition:.22s ease; box-shadow:var(--shadow); }
  body.sidebar-open .sidebar { transform:translateX(0); }
  .sidebar-overlay { display:block; position:fixed; inset:0; background:rgba(0,0,0,.56); z-index:25; opacity:0; pointer-events:none; transition:.2s ease; }
  body.sidebar-open .sidebar-overlay { opacity:1; pointer-events:auto; }
  .sidebar-close, .menu-button { display:inline-grid; }
  .main-shell { margin-left:0; }
  .dashboard-grid, .detail-grid { grid-template-columns:1fr; }
  .sticky-panel { position:static; }
  .login-shell { grid-template-columns:1fr; }
  .login-visual { display:none; }
  .login-panel { min-height:100vh; padding:30px 20px; }
  .mobile-login-logo { display:block; width:92px; margin-bottom:25px; }
}

@media (max-width: 720px) {
  .content { padding:24px 14px 40px; }
  .topbar { padding:0 14px; }
  .page-heading { align-items:flex-start; flex-direction:column; margin-bottom:22px; }
  .page-actions { width:100%; }
  .page-actions .button, .page-actions form { flex:1; }
  .page-actions form .button { width:100%; }
  .metric-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .metric-card { min-height:138px; padding:17px; }
  .metric-card strong { font-size:34px; }
  .panel { border-radius:16px; }
  .panel-header { padding:20px 18px 15px; }
  .form-panel { padding:18px; }
  .form-grid { grid-template-columns:1fr; gap:16px; }
  .field-wide { grid-column:auto; }
  .filter-bar { flex-direction:column; align-items:stretch; padding:16px; }
  .filter-bar select { width:100%; }
  .project-grid { grid-template-columns:1fr; padding:16px; }
  .detail-hero { align-items:flex-start; flex-direction:column; padding:20px; }
  .detail-hero .button { width:100%; }
  .info-grid { grid-template-columns:1fr 1fr; }
  .info-grid > div { padding:15px; }
  .checklist { grid-template-columns:1fr 1fr; }
  .notification-item { grid-template-columns:10px 1fr; }
  .notification-actions { grid-column:2; flex-wrap:wrap; }
  .inline-note-form { grid-template-columns:1fr; padding:0 18px 18px; }
  .file-card, .note-box { margin-left:18px; margin-right:18px; }
  .file-list, .quick-links, .compact-form { padding-left:18px; padding-right:18px; }
  .timeline { padding-left:18px; padding-right:18px; }
  .app-footer { flex-direction:column; }
  .installer-shell { width:min(100% - 22px, 980px); padding-top:24px; }
  .installer-header { align-items:flex-start; }
  .installer-header img { width:64px; height:64px; }
  .installer-header h1 { font-size:29px; }
  .requirements-grid { grid-template-columns:1fr; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns:1fr; }
  .page-heading h1 { font-size:29px; }
  .login-card h2 { font-size:29px; }
  .login-panel { padding:24px 16px; }
  .checklist { grid-template-columns:1fr; }
  .info-grid { grid-template-columns:1fr; }
  .handoff-list { grid-template-columns:1fr; }
  .project-card dl { grid-template-columns:1fr 1fr; }
  .installer-header { gap:14px; }
}
