:root {
  --ink: #172238;
  --ink-soft: #4e5a70;
  --muted: #8893a7;
  --line: #e6e9ef;
  --surface: #ffffff;
  --canvas: #f6f8fb;
  --navy: #111b30;
  --navy-2: #1d2a45;
  --orange: #f07d45;
  --orange-soft: #fff1e9;
  --blue: #3d82c4;
  --blue-soft: #edf5fc;
  --green: #2d9a76;
  --green-soft: #eaf8f2;
  --red: #cf695e;
  --shadow: 0 14px 36px rgba(26, 39, 65, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
body:not(.authenticated) .app-shell { display: none; }
body.authenticated .auth-gate { display: none; }
button, select, input { font: inherit; }
button { cursor: pointer; }

.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 15% 10%, rgba(240,125,69,.12), transparent 35%), linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%); }
.auth-card { width: min(430px, 100%); background: rgba(255,255,255,.94); border: 1px solid #e3e8ef; border-radius: 24px; padding: 31px; box-shadow: 0 24px 70px rgba(21,37,65,.12); }
.auth-brand { padding: 0 0 28px; }
.auth-kicker { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-card h1 { margin-top: 15px; margin-bottom: 10px; font-size: 34px; }
.auth-copy { color: var(--ink-soft); font-size: 12px; line-height: 1.6; margin-bottom: 22px; }
.auth-form { display: grid; gap: 14px; }
.auth-form .form-field input { padding: 12px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; padding: 13px; }
.auth-error { min-height: 16px; color: var(--red); font-size: 10px; margin: 0; }
.auth-footnote { border-top: 1px solid #eef1f4; color: var(--muted); font-size: 10px; margin-top: 22px; padding-top: 15px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 246px; min-height: 100vh; background: var(--navy); color: #dce4f1; padding: 26px 18px 20px; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 3; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 32px; }
.brand-mark { width: 35px; height: 35px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #ff9b5c, #e95d36); font-size: 18px; font-weight: 800; box-shadow: 0 8px 18px rgba(240, 125, 69, .23); }
.brand strong, .brand span { display: block; }
.brand strong { color: #fff; font-size: 14px; letter-spacing: -.01em; }
.brand span { margin-top: 3px; color: #8999b5; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-label { color: #697b99; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 0 12px 11px; }
.nav-list { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #9eabc0; text-decoration: none; border-radius: 10px; transition: .2s ease; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: #263652; color: #fff; box-shadow: inset 3px 0 var(--orange); }
.nav-icon { width: 16px; color: #8595b0; font-size: 17px; text-align: center; }
.nav-item.active .nav-icon { color: #ff9b67; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.sidebar-note { background: linear-gradient(145deg, #1d2a45, #16223b); border: 1px solid #30405d; border-radius: 15px; padding: 16px; }
.note-kicker { color: #8da0c0; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 100%; background: #54c497; box-shadow: 0 0 0 4px rgba(84,196,151,.1); }
.sidebar-note strong { display: block; color: #fff; font-size: 13px; line-height: 1.4; margin-top: 14px; }
.sidebar-note p { color: #8da0c0; font-size: 11px; line-height: 1.55; margin: 8px 0 0; }
.sidebar-footer { color: #6d7e9c; font-size: 10px; padding: 18px 9px 0; }

.main-content { flex: 1; margin-left: 246px; min-width: 0; }
.topbar { height: 72px; padding: 0 43px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.68); border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 10px; }
.breadcrumb i { color: #c6ccd6; font-style: normal; }
.breadcrumb b { color: var(--ink-soft); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.sync-state { color: #8591a4; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.sync-dot { width: 7px; height: 7px; background: #45b987; border-radius: 50%; box-shadow: 0 0 0 4px rgba(69,185,135,.12); }
.icon-button, .round-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: 10px; width: 33px; height: 33px; display: grid; place-items: center; transition: .2s ease; }
.icon-button:hover, .round-button:hover { border-color: #bac3d2; color: var(--orange); transform: rotate(18deg); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #ffe0ce; color: #b85831; font-size: 10px; font-weight: 800; transition: .2s ease; }
.avatar:hover { box-shadow: 0 0 0 4px rgba(240,125,69,.12); transform: translateY(-1px); }
.content-wrap { max-width: 1420px; margin: 0 auto; padding: 47px 43px 30px; }
.intro-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 29px; }
.eyebrow { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 23px; height: 2px; vertical-align: middle; margin-right: 8px; background: var(--orange); }
h1, h2, p { margin-top: 0; }
h1 { margin: 10px 0 10px; color: var(--ink); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.045em; font-weight: 760; }
h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.03em; line-height: 1.2; }
.intro-copy { max-width: 570px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.intro-actions { display: flex; align-items: flex-end; gap: 11px; flex-shrink: 0; }
.select-wrap { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
select { min-width: 133px; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238893a7' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 600; padding: 10px 32px 10px 12px; outline: none; }
select:focus, input:focus { border-color: #eaa47e; box-shadow: 0 0 0 3px rgba(240,125,69,.1); }
.primary-button { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 0; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 700; box-shadow: 0 7px 15px rgba(240,125,69,.2); transition: .2s ease; }
.primary-button:hover { background: #e76d38; transform: translateY(-1px); }
.primary-button span { font-size: 17px; font-weight: 400; line-height: 0; }
.pilot-banner { display: flex; align-items: center; gap: 13px; min-height: 63px; padding: 12px 17px; background: #fff9f5; border: 1px solid #f8d9c6; border-radius: 13px; margin-bottom: 25px; }
.banner-icon { color: var(--orange); font-size: 19px; width: 25px; text-align: center; }
.pilot-banner strong, .pilot-banner span { display: block; }
.pilot-banner strong { font-size: 12px; color: #8f4b2f; margin-bottom: 3px; }
.pilot-banner span { color: #a27867; font-size: 11px; line-height: 1.45; }
.pilot-banner .text-button { margin-left: auto; flex-shrink: 0; }
.text-button, .subtle-button { border: 0; background: transparent; color: var(--orange); font-size: 11px; font-weight: 700; padding: 6px 0; }
.text-button:hover, .subtle-button:hover { color: #bc4d26; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 46px; }
.kpi-card { position: relative; min-height: 161px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 15px; overflow: hidden; box-shadow: 0 2px 7px rgba(26,39,65,.015); }
.kpi-card.kpi-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.kpi-primary .kpi-top { color: #99aac5; }
.kpi-icon { color: var(--orange); font-size: 17px; }
.kpi-icon.muted { color: #9ba7b8; }
.kpi-icon.green { color: var(--green); }
.kpi-icon.orange { color: var(--orange); }
.kpi-value { margin-top: 12px; font-size: 27px; letter-spacing: -.045em; font-weight: 760; }
.kpi-meta { color: var(--muted); margin-top: 5px; font-size: 10px; }
.kpi-primary .kpi-meta { color: #8092b0; }
.kpi-meta span { font-weight: 800; margin-right: 3px; }
.kpi-meta.positive span { color: var(--green); }
.kpi-meta.negative span { color: var(--red); }
.kpi-primary .kpi-meta.positive span { color: #7fdeb8; }
.sparkline { display: flex; align-items: flex-end; gap: 4px; height: 31px; position: absolute; right: 16px; bottom: 15px; width: 80px; opacity: .8; }
.sparkline span { flex: 1; border-radius: 2px 2px 0 0; background: #e8a57e; }
.revenue-spark span { background: #ef9364; }
.cost-spark span { background: #cbd3df; }
.profit-track { position: absolute; right: 17px; bottom: 22px; width: 72px; height: 7px; background: #edf0f4; border-radius: 10px; overflow: hidden; }
.profit-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); }
.mini-stat-row { position: absolute; left: 18px; right: 18px; bottom: 19px; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.mini-stat-row strong { color: var(--ink-soft); font-size: 11px; margin-right: 7px; }
.mini-dot { width: 6px; height: 6px; border-radius: 100%; display: inline-block; }
.mini-dot.orange { background: var(--orange); }
.mini-dot.blue { background: var(--blue); }

.section-block { margin-bottom: 44px; scroll-margin-top: 20px; }
.section-header, .panel-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-header { margin-bottom: 18px; }
.section-header-right { display: flex; align-items: center; gap: 18px; }
.section-caption { color: var(--muted); font-size: 11px; }
.subtle-button { font-size: 11px; }
.subtle-button span { margin-left: 5px; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .22s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6dce6; }
.product-accent { height: 4px; background: var(--orange); }
.product-card.blue-accent .product-accent { background: var(--blue); }
.product-card.green-accent .product-accent { background: var(--green); }
.product-card.gray-accent .product-accent { background: #9aa7b9; }
.product-body { padding: 19px 18px 16px; }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-title-wrap { display: flex; gap: 11px; align-items: center; }
.product-logo { flex: 0 0 auto; width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #a44f2a; background: var(--orange-soft); }
.product-logo.beer-logo { color: #2e6b9f; background: var(--blue-soft); }
.product-logo.tibia-logo { color: #64718b; background: #eff2f6; }
.product-head h3 { margin: 0; color: var(--ink); font-size: 14px; letter-spacing: -.015em; }
.product-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.status-pill, .tag { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 800; }
.status-pill.live { color: #2b8568; background: var(--green-soft); }
.status-pill.soon { color: #63718a; background: #edf1f5; }
.status-pill.pending { color: #a96a45; background: #fff2e9; }
.status-pill.live:before, .status-pill.soon:before, .status-pill.pending:before { content: ""; width: 5px; height: 5px; border-radius: 100%; background: currentColor; }
.product-revenue-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 24px; }
.product-revenue-label { color: var(--muted); font-size: 10px; }
.product-revenue { color: var(--ink); font-size: 24px; font-weight: 760; letter-spacing: -.045em; margin-top: 3px; }
.product-revenue small { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 0; margin-left: 5px; }
.product-profit { text-align: right; }
.product-profit span { color: var(--muted); display: block; font-size: 10px; }
.product-profit strong { color: var(--green); display: block; font-size: 13px; margin-top: 4px; }
.product-card.attention .product-profit strong { color: var(--red); }
.product-meta { display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid #f0f2f5; margin-top: 17px; padding-top: 13px; font-size: 10px; }
.product-meta strong { color: var(--ink-soft); }
.product-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0f2f5; padding: 11px 18px; }
.product-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 185px; color: #9aa4b4; font-size: 10px; }
.details-button { border: 0; background: transparent; color: var(--orange); font-size: 10px; font-weight: 800; }

.dashboard-grid, .bottom-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-bottom: 44px; }
.bottom-grid { grid-template-columns: 1.15fr 1fr; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; scroll-margin-top: 20px; }
.panel-header { align-items: flex-start; }
.chart-legend { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 10px; padding-top: 3px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 100%; margin-right: 4px; }
.legend-dot.revenue { background: var(--orange); }
.legend-dot.costs { background: #b7c3d2; }
.chart-wrap { height: 213px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 26px; margin: 27px 13px 0; padding: 0 8px; border-bottom: 1px solid #e9edf2; background-image: linear-gradient(to bottom, transparent 24%, #edf0f4 25%, transparent 25.7%, transparent 49%, #edf0f4 50%, transparent 50.7%, transparent 74%, #edf0f4 75%, transparent 75.7%); }
.week-column { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 7px; position: relative; }
.bar { width: 17px; min-height: 5px; border-radius: 5px 5px 0 0; transition: height .35s ease; }
.bar.revenue { background: linear-gradient(to top, #df6a39, #f7ac7e); }
.bar.costs { background: #c7d2df; }
.week-label { position: absolute; bottom: -24px; color: #9aa4b4; font-size: 9px; }
.chart-footer { display: flex; justify-content: space-between; align-items: center; color: #a1aaba; font-size: 9px; margin-top: 31px; }
.chart-footer span { visibility: hidden; }
.chart-footer strong { color: var(--ink-soft); font-size: 10px; }
.cost-donut-wrap { display: flex; align-items: center; gap: 23px; margin-top: 28px; }
.cost-donut { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: conic-gradient(var(--orange) 0 42%, var(--blue) 42% 65%, var(--green) 65% 80%, #b8c3d1 80% 100%); position: relative; }
.cost-donut:after { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: #fff; }
.cost-donut > div { position: relative; z-index: 1; text-align: center; }
.cost-donut strong, .cost-donut small { display: block; }
.cost-donut strong { color: var(--ink); font-size: 17px; letter-spacing: -.05em; }
.cost-donut small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.cost-list { display: grid; gap: 11px; flex: 1; }
.cost-row { display: grid; grid-template-columns: 9px 1fr auto; gap: 7px; align-items: center; }
.cost-row i { width: 8px; height: 8px; border-radius: 3px; }
.cost-row span { color: var(--ink-soft); font-size: 10px; }
.cost-row b { color: var(--ink); font-size: 10px; }
.cost-row small { grid-column: 2 / 4; color: var(--muted); font-size: 9px; margin-top: -4px; }
.panel-footnote { display: flex; align-items: center; gap: 7px; color: #9a6e53; background: #fff8f2; border-radius: 8px; margin-top: 23px; padding: 9px 10px; font-size: 9px; line-height: 1.4; }
.signal-dot { width: 6px; height: 6px; border-radius: 100%; background: var(--orange); flex-shrink: 0; }

.activity-list { margin-top: 17px; }
.activity-item { display: grid; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #eef1f4; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; font-size: 13px; font-weight: 800; }
.activity-icon.sale { color: #2c8c6c; background: var(--green-soft); }
.activity-icon.cost { color: #b86640; background: var(--orange-soft); }
.activity-main strong, .activity-main span { display: block; }
.activity-main strong { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.activity-main span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.activity-amount { font-size: 11px; font-weight: 800; }
.activity-amount.sale { color: var(--green); }
.activity-amount.cost { color: var(--red); }
.insight-list { margin-top: 16px; display: grid; gap: 10px; }
.insight-item { display: grid; grid-template-columns: 25px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eef1f4; }
.insight-item:last-child { border-bottom: 0; }
.insight-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--orange); background: var(--orange-soft); font-size: 11px; font-weight: 800; }
.insight-mark.good { color: var(--green); background: var(--green-soft); }
.insight-mark.info { color: var(--blue); background: var(--blue-soft); }
.insight-item strong { display: block; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }
.insight-item p { color: var(--muted); margin: 4px 0 0; font-size: 10px; line-height: 1.45; }
.insight-badge { background: #fff4ed; color: #b6653f; border-radius: 20px; padding: 5px 8px; font-size: 9px; font-weight: 800; }

.connections-panel { margin-bottom: 31px; }
.tag.pending { color: #aa6c47; background: #fff2ea; }
.connection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 22px; }
.connection-item { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 10px; padding: 13px 12px; border: 1px solid #edf0f4; border-radius: 12px; }
.connection-logo { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 800; }
.connection-logo.hair { color: #a4512d; background: var(--orange-soft); }
.connection-logo.beer { color: #2d6b9e; background: var(--blue-soft); }
.connection-logo.tibia { color: #64738a; background: #eff2f6; }
.connection-item strong, .connection-item span { display: block; }
.connection-item strong { color: var(--ink-soft); font-size: 10px; }
.connection-item div span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.connection-footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); border-top: 1px solid #eff1f4; margin-top: 18px; padding-top: 14px; font-size: 9px; }
.lock-icon { color: var(--green); font-size: 14px; margin-right: 4px; vertical-align: -1px; }
.page-footer { display: flex; justify-content: space-between; color: #a6afbd; font-size: 9px; padding: 0 2px 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(13,24,43,.47); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(500px, 100%); max-height: min(700px, 90vh); overflow: auto; position: relative; background: var(--surface); border-radius: 20px; padding: 25px; box-shadow: 0 24px 80px rgba(11,24,47,.22); }
.modal-close { position: absolute; top: 13px; right: 15px; border: 0; background: transparent; color: #9aa5b5; font-size: 25px; line-height: 1; }
.modal h2 { margin: 4px 0 7px; font-size: 22px; }
.modal-intro { color: var(--muted); font-size: 11px; line-height: 1.55; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.form-field input, .form-field select { width: 100%; min-width: 0; background: #fff; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink-soft); font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 13px; margin-top: 23px; }
.cancel-button { border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; padding: 10px; }
.modal-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.modal-stat { background: var(--canvas); border-radius: 11px; padding: 12px; }
.modal-stat span, .modal-stat strong { display: block; }
.modal-stat span { color: var(--muted); font-size: 9px; }
.modal-stat strong { color: var(--ink); font-size: 15px; letter-spacing: -.03em; margin-top: 5px; }
.detail-bars { display: grid; gap: 13px; }
.detail-bar-row { display: grid; grid-template-columns: 75px 1fr 65px; gap: 8px; align-items: center; font-size: 10px; }
.detail-bar-row > span { color: var(--muted); }
.detail-bar-track { height: 7px; background: #edf0f3; border-radius: 8px; overflow: hidden; }
.detail-bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.detail-bar-row b { color: var(--ink-soft); text-align: right; }
.detail-section-title { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin: 20px 0 12px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 15px; box-shadow: 0 15px 35px rgba(13,24,43,.2); font-size: 11px; transform: translateY(18px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1100px) {
  .sidebar { width: 210px; }
  .main-content { margin-left: 210px; }
  .topbar, .content-wrap { padding-left: 28px; padding-right: 28px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:last-child { grid-column: 1 / -1; }
  .connection-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .sidebar { width: 64px; padding: 22px 10px; }
  .brand { padding: 0 4px 27px; }
  .brand > div:last-child, .sidebar-label, .nav-item:not(.active)::after, .nav-item { font-size: 0; }
  .brand-mark { width: 36px; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .nav-item.active { box-shadow: none; }
  .nav-icon { font-size: 18px; }
  .sidebar-note, .sidebar-footer { display: none; }
  .main-content { margin-left: 64px; }
  .topbar { height: 62px; padding: 0 18px; }
  .sync-state { display: none; }
  .content-wrap { padding: 33px 18px 25px; }
  .intro-row { display: block; }
  .intro-actions { margin-top: 20px; justify-content: space-between; }
  .pilot-banner { align-items: flex-start; }
  .pilot-banner .text-button { display: none; }
  .kpi-grid, .product-grid, .dashboard-grid, .bottom-grid { grid-template-columns: 1fr; }
  .product-card:last-child { grid-column: auto; }
  .section-header-right { display: none; }
  .chart-panel, .cost-panel, .activity-panel, .action-panel { min-height: auto; }
  .cost-donut-wrap { gap: 15px; }
  .cost-donut { width: 110px; height: 110px; }
  .cost-donut:after { inset: 14px; }
  .connection-item { grid-template-columns: 31px 1fr; }
  .connection-item .status-pill { grid-column: 2; justify-self: start; margin-top: -5px; }
  .connection-footer, .page-footer { display: block; }
  .connection-footer .subtle-button { margin-top: 11px; }
  .page-footer span { display: block; margin-top: 7px; }
}
@media (max-width: 430px) {
  .topbar .breadcrumb span, .topbar .breadcrumb i { display: none; }
  h1 { font-size: 32px; }
  .intro-actions { gap: 8px; }
  .select-wrap { flex: 1; }
  select { width: 100%; }
  .primary-button { padding: 11px 11px; }
  .cost-donut-wrap { align-items: flex-start; flex-direction: column; }
  .cost-list { width: 100%; }
}
