.app-shell { max-width: 1800px; margin: auto; padding: 18px 26px 24px; }
.app-header { background: linear-gradient(110deg, #0f766e, #0b645f); border-radius: 12px; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; color: white; box-shadow: 0 8px 28px #0f766e19; }
.brand { display: flex; align-items: center; gap: 20px; color: white; text-decoration: none; font-size: 22px; letter-spacing: -.5px; }
.brand img { width: 64px; height: 48px; }
.brand small { display: block; font-size: 8px; letter-spacing: 2px; margin-top: 4px; color: #b5ded9; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.local-indicator { font-size: 11px; color: #c2e7e2; }
.local-indicator::before, .tiny-dot { content: ''; display: inline-block; height: 6px; width: 6px; border-radius: 50%; background: var(--mint); margin-right: 7px; }
.header-button { border-color: #ffffff35; background: #ffffff0c; color: white; font-size: 11px; }
.header-button:hover { background: #ffffff20; }
.workspace { display: grid; grid-template-columns: 206px minmax(0, 1fr); margin-top: 24px; gap: 28px; min-height: calc(100vh - 136px); }
.sidebar { display: flex; flex-direction: column; padding: 16px 0 0; min-width: 0; }
.sidebar > .eyebrow, .sidebar-section > .eyebrow { padding-left: 12px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 12px; color: #52646e; text-decoration: none; font-size: 12px; font-weight: 600; border-radius: 8px; }
.sidebar nav a span { width: 18px; font-size: 18px; text-align: center; }
.sidebar nav a.active { color: #0b625b; background: #d9eee8; }
.sidebar nav a:hover { background: #e0ebe9; }
.sidebar-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid #d7e3e4; }
.webinar-link { display: block; padding: 10px 12px; border-radius: 7px; font-size: 12px; text-decoration: none; color: var(--ink); line-height: 1.5; }
.webinar-link small { display: block; color: var(--muted); font-size: 10px; }
.webinar-link.active { background: white; box-shadow: 0 3px 10px #1e514806; }
.add-webinar { border: 0; color: var(--teal); padding: 12px; background: transparent; font-size: 12px; text-align: left; }
.sidebar-note { margin: auto 8px 20px; padding-top: 38px; font-size: 11px; color: #405f5c; }
.sidebar-note p { font-size: 11px; color: var(--muted); margin-top: 9px; }
.sidebar-note .tiny-dot { background: var(--teal); }
.sidebar-bottom { font-size: 10px; color: var(--muted); padding: 12px; border-top: 1px solid #d7e3e4; }
.sidebar-bottom span { float: right; }
main { min-width: 0; padding: 10px 0 25px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.page-heading p { color: var(--muted); margin-bottom: 0; font-size: 13px; }
.page-heading .eyebrow { margin-bottom: 9px; color: var(--teal); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.stat { background: #ffffffdb; padding: 20px; border: 1px solid #dce6e5; border-radius: 12px; }
.stat-label { font-size: 11px; color: #607581; display: flex; justify-content: space-between; }
.stat strong { display: block; font-size: 34px; letter-spacing: -1.2px; margin: 12px 0 6px; font-weight: 650; }
.stat small { font-size: 10px; color: var(--muted); }
.stat.featured { background: #123e3b; border-color: #123e3b; color: white; }
.stat.featured .stat-label, .stat.featured small { color: #b6d8cf; }
.stat.featured strong { color: #a1f0d3; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 23px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 20px; }
.panel-heading h2 { margin: 0; }
.analysis-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin: 20px 0; }
.funnel-row { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 12px; margin: 16px 0; font-size: 12px; }
.bar-track { height: 24px; background: #f1f5f4; border-radius: 4px; overflow: hidden; }
.bar { height: 100%; background: #bddfd3; border-radius: 4px; min-width: 0; }
.funnel-row:nth-child(3) .bar { background: #64b8a2; }
.funnel-row:nth-child(4) .bar { background: #157c6d; }
.funnel-row:nth-child(5) .bar { background: #153e3b; }
.funnel-row strong { text-align: right; }
.chart-foot { border-top: 1px solid #eef2f2; margin-top: 19px; padding-top: 13px; font-size: 10px; color: var(--muted); line-height: 1.6; }
.categories { display: grid; grid-template-columns: 144px 1fr; gap: 24px; align-items: center; margin: 25px 0; }
.donut { width: 144px; height: 144px; border-radius: 50%; display: grid; place-items: center; }
.donut-center { width: 108px; height: 108px; border-radius: 50%; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center strong { font-size: 28px; }
.donut-center small { font-size: 10px; color: var(--muted); }
.legend { display: grid; gap: 3px; }
.legend button { display: flex; gap: 8px; align-items: center; text-align: left; border: 0; font-size: 11px; padding: 7px 0; font-weight: 400; }
.legend button strong { margin-left: auto; }
.swatch { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
th { color: #70838b; font-size: 10px; font-weight: 600; background: #f7f9f9; letter-spacing: .4px; padding: 12px; white-space: nowrap; }
td { padding: 15px 12px; border-bottom: 1px solid #edf1f1; vertical-align: middle; }
td small { color: var(--muted); display: block; margin-top: 3px; font-size: 10px; }
tbody tr:hover { background: #f7fbfa; }
td .quiet { text-align: left; padding: 0; }
.toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar input { flex: 2; min-width: 180px; }
.toolbar select { flex: 1; min-width: 150px; }
.table-footer { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-top: 17px; color: var(--muted); font-size: 11px; }
.next-step { display: flex; align-items: center; gap: 17px; padding: 19px 23px; border: 1px solid #cde3db; background: #e8f5ef; border-radius: 10px; margin-bottom: 22px; }
.next-step .step-icon { background: #d3e9de; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; color: #176e58; flex-shrink: 0; }
.next-step p { margin: 3px 0 0; font-size: 11px; color: #55756b; }
.next-step button { margin-left: auto; white-space: nowrap; font-size: 11px; }
.drop-file { padding: 20px; border: 1px dashed #a6c7c0; border-radius: 10px; background: #f6faf9; }
.drop-file input { background: white; font-size: 11px; padding: 9px; }
.drop-file strong { font-size: 15px; }
.drop-file small { font-weight: 400; color: var(--muted); }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.preview-stats div { background: var(--soft); border-radius: 8px; padding: 14px; font-size: 12px; }
.preview-stats strong { display: block; font-size: 24px; margin-bottom: 4px; }
.detail-dialog { width: min(960px, 95vw); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.detail-block { margin-bottom: 23px; }
.detail-block h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail-block p, .detail-block li { font-size: 12px; }
.comment { padding: 13px; background: var(--soft); border-radius: 8px; margin: 10px 0; }
.comment p { white-space: pre-wrap; margin: 8px 0 0; }
.comment small { font-size: 10px; }
.detail-metric { display: flex; align-items: baseline; gap: 10px; margin-bottom: 15px; }
.detail-metric strong { font-size: 32px; color: var(--teal); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.process-card { padding: 24px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.process-card .number { font-size: 11px; color: var(--teal); display: block; margin-bottom: 24px; }
.process-card p { font-size: 12px; color: var(--muted); }
.process-card.mockup { border-style: dashed; background: #f7f8fa; }
.process-card .badge { margin-bottom: 14px; }
.comparison-note { margin: 20px 0; }
@media(min-width: 1500px) { .app-shell { padding: 24px 40px; } .workspace { gap: 38px; grid-template-columns: 220px minmax(0, 1fr); } main { padding: 20px 0; } }
@media(max-width: 1100px) { .workspace { grid-template-columns: 175px minmax(0, 1fr); gap: 18px; } .app-shell { padding: 15px; } .stat { padding: 15px; } .categories { grid-template-columns: 1fr; } .donut { display: none; } .funnel-row { grid-template-columns: 95px 1fr 30px; } .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 760px) { .workspace { grid-template-columns: 1fr; margin-top: 8px; } .sidebar { padding: 0; } .sidebar nav { display: flex; overflow-x: auto; } .sidebar nav a { white-space: nowrap; } .sidebar > .eyebrow, .sidebar-section, .sidebar-note, .sidebar-bottom { display: none; } .local-indicator { display: none; } .app-header { padding: 12px 15px; } .brand { font-size: 18px; gap: 10px; } .brand img { width: 45px; } .analysis-grid, .detail-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } .categories { grid-template-columns: 144px 1fr; } .donut { display: grid; } .page-heading { align-items: flex-start; flex-wrap: wrap; } .next-step { flex-wrap: wrap; } .process-grid { grid-template-columns: 1fr; } }
@media print { .app-header, .sidebar, button, .toolbar { display: none; } .workspace { display: block; } .app-shell { padding: 0; } .panel { break-inside: avoid; } body { background: white; } }
@media(max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-width: 0; }
}
@media(max-width: 440px) {
  .categories { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
  .donut { width: 100px; height: 100px; }
  .donut-center { width: 76px; height: 76px; }
  .donut-center strong { font-size: 24px; }
  .legend button { font-size: 10px; }
  .panel { padding: 18px; }
  .funnel-row { gap: 8px; font-size: 10px; }
}
