:root {
      --ink: #050608;
      --muted: #667085;
      --line: #e4e7ec;
      --panel: #ffffff;
      --aqua: #25aee8;
      --aqua-dark: #0b8fc8;
      --coral: #101828;
      --gold: #7dd3fc;
      --mist: #eef9fe;
      --page: #f6f8fb;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    * { box-sizing: border-box; min-width: 0; }
    html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
    body { margin: 0; background: radial-gradient(circle at top right, rgba(37,174,232,.14), transparent 34%), var(--page); color: var(--ink); }
    main, .container, #dashboard, #tabContent, .report-section, .tab-content, section, article, aside, .panel, .report-head, .chart-box, .table-wrap, .tabs-shell { max-width: 100%; min-width: 0; }
    button, input, select { font: inherit; max-width: 100%; }
    canvas { max-width: 100% !important; }
    a { color: inherit; }
    a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
      outline: 3px solid rgba(37,174,232,.35);
      outline-offset: 2px;
    }
    .app-topbar {
      position: sticky;
      top: 0;
      z-index: 40;
      background: rgba(247, 251, 253, .88);
      border-bottom: 1px solid rgba(208, 213, 221, .78);
      backdrop-filter: blur(14px);
      box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
    }
    .app-topbar-inner {
      width: 100%;
      max-width: min(1240px, 100%);
      margin: 0 auto;
      padding: 12px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      min-width: 0;
    }
    .app-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      color: var(--ink);
      text-decoration: none;
    }
    .app-logo {
      height: 38px;
      width: auto;
      max-width: 130px;
      object-fit: contain;
      flex: 0 0 auto;
    }
    .app-title {
      color: var(--ink);
      font-size: 15px;
      font-weight: 950;
      line-height: 1.1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .app-nav {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px 16px;
      flex-wrap: wrap;
      min-width: 0;
    }
    .app-nav a {
      color: #344054;
      text-decoration: none;
      font-size: 13px;
      font-weight: 850;
      line-height: 1.2;
      transition: color .18s ease;
    }
    .app-nav a:hover,
    .app-nav a[aria-current="page"] { color: var(--aqua); }
    .nav {
      position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92);
      border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
    }
    .nav-inner, .container { width: 100%; max-width: min(1240px, 100%); margin: 0 auto; padding: 0 20px; overflow-x: hidden; }
    .nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
    .brand { display: flex; align-items: center; gap: 14px; font-weight: 900; }
    .brand small { display: block; color: var(--muted); font-weight: 700; margin-top: 2px; }
    .nav-note { color: var(--muted); font-size: 13px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
    .container { padding-top: 32px; padding-bottom: 48px; display: grid; gap: 34px; }
    .dashboard-mode .landing-section { display: none; }
    .dashboard-mode .container { padding-top: 18px; }
    .dashboard-mode .app-footer { margin-top: 16px; }
    .hero { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr); gap: 28px; align-items: stretch; }
    .hero-copy { border-radius: 18px; background: #050608; color: #fff; padding: 36px 32px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; gap: 22px; overflow: hidden; position: relative; }
    .hero-copy::after { content: ""; position: absolute; right: -96px; top: -96px; width: 260px; height: 260px; border: 36px solid rgba(37,174,232,.18); border-radius: 999px; }
    .hero-primary-copy { position: relative; z-index: 1; display: grid; gap: 18px; max-width: 720px; }
    .eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: rgba(255,255,255,.08); padding: 7px 11px; color: #7dd3fc; font-weight: 900; width: fit-content; font-size: 12px; }
    h1 { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: 0; max-width: 520px; position: relative; z-index: 1; }
    .lede { color: #d0d5dd; font-size: 15px; line-height: 1.62; max-width: 620px; position: relative; z-index: 1; margin: 0; }
    .hero-actions { margin-top: 6px; }
    .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 0; position: relative; z-index: 1; }
    .step, .panel, .upload-card, .kpi, .feature-card, .cta-card, .faq-item { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; box-shadow: 0 18px 50px rgba(16,32,39,.08); }
    .step { padding: 10px; color: #fff; font-weight: 800; font-size: 12px; line-height: 1.3; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); box-shadow: none; }
    .num { width: 24px; height: 24px; display: grid; place-items: center; background: var(--aqua); color: #fff; border-radius: 6px; margin-bottom: 7px; font-weight: 900; font-size: 12px; }
    .panel { padding: 20px; width: 100%; }
    .upload-side { display: grid; gap: 16px; align-content: stretch; align-self: stretch; }
    label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; max-width: 100%; min-width: 0; }
    select, input[type="date"], input[type="search"], textarea { width: 100%; max-width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; color: var(--ink); outline: none; font-size: 14px; text-transform: none; letter-spacing: 0; }
    select, input[type="date"], input[type="search"] { height: 42px; }
    textarea { min-height: 116px; padding: 12px; resize: vertical; line-height: 1.45; }
    select:focus, input:focus, textarea:focus { border-color: var(--aqua); }
    .toggle { height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #f8fbfa; border-radius: 10px; padding: 0 12px; font-size: 14px; font-weight: 800; color: var(--ink); }
    .btn { min-height: 42px; border: 0; border-radius: 10px; background: var(--aqua); color: #fff; padding: 0 15px; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; justify-content: center; text-decoration: none; max-width: 100%; }
    .btn:hover { background: var(--aqua-dark); }
    .btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
    .btn.secondary:hover { color: var(--aqua); border-color: var(--aqua); }
    .btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; background: #eef2f6; color: #667085; border-color: #d0d5dd; }
    .btn:disabled:hover, .btn[disabled]:hover { background: #eef2f6; color: #667085; border-color: #d0d5dd; }
    .btn.dark { background: var(--ink); color: #fff; }
    .btn.dark:hover { background: #1d2939; }
    .upload-card { min-height: 320px; height: 100%; border: 2px dashed #b8dff0; display: grid; place-items: center; text-align: center; padding: 34px; background: linear-gradient(180deg, #fff, #fafdff); }
    .upload-card.dragging { border-color: var(--aqua); background: var(--mist); }
    .upload-icon { margin: 0 auto 16px; width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center; background: #050608; color: var(--aqua); font-size: 34px; box-shadow: 0 16px 45px rgba(5,6,8,.18); }
    .upload-card h2 { margin: 0; font-size: 30px; }
    .upload-card p { color: var(--muted); line-height: 1.55; max-width: 500px; }
    .date-order-control { margin: 16px auto 0; display: inline-grid; grid-template-columns: auto minmax(190px, 240px); align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
    .date-order-control select { width: 100%; height: 42px; }
    .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .info-grid b { display: block; margin-bottom: 6px; }
    .info-grid p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
    .landing-copy { display: grid; gap: 18px; }
    .section-title { max-width: 780px; }
    .section-title h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
    .section-title p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 17px; }
    .benefit-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
    .benefit-strip div { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px; font-weight: 900; color: #1d2939; }
    .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .feature-card { padding: 22px; min-height: 190px; }
    .feature-card h3 { margin: 0 0 10px; font-size: 20px; }
    .feature-card p { margin: 0; color: var(--muted); line-height: 1.6; }
    .cta-card { padding: clamp(24px, 4vw, 38px); background: #050608; color: #fff; display: grid; gap: 16px; }
    .cta-card p { color: #d0d5dd; line-height: 1.65; max-width: 850px; }
    .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
    .faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .faq-item { padding: 18px; }
    .faq-item h3 { margin: 0 0 8px; font-size: 17px; }
    .faq-item p { margin: 0; color: var(--muted); line-height: 1.55; }
    .site-footer { border-top: 1px solid var(--line); padding: 28px 0 0; color: var(--muted); }
    .footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
    .footer-links a { color: var(--ink); font-weight: 800; text-decoration: none; }
    .analysis-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px; }
    .analysis-file-name { min-width: 0; font-size: 18px; font-weight: 900; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .analysis-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-shrink: 0; }
    .pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--mist); color: var(--aqua-dark); padding: 9px 12px; font-weight: 900; font-size: 14px; white-space: nowrap; }
    .filter-panel { display: grid; gap: 16px; }
    .filter-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .filter-panel-header h3 { margin: 0; font-size: 20px; }
    .filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; width: 100%; max-width: 100%; }
    .filter-grid label { min-width: 0; }
    .filter-grid input,
    .filter-grid select,
    .filter-grid input[type="date"] { width: 100%; min-width: 0; height: 44px; box-sizing: border-box; text-overflow: ellipsis; }
    .filter-grid select { overflow: hidden; white-space: nowrap; }
    .filter-grid select[multiple] { height: 118px; padding: 8px 10px; overflow: auto; white-space: normal; }
    .filter-search { margin-top: 8px; font-size: 13px; }
    .filter-search::placeholder { color: #8aa0b8; }
    .filter-help { color: var(--muted); font-size: 13px; font-weight: 700; margin: -4px 0 0; }
    .active-filter-chips, .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip { border: 1px solid #b8dff0; border-radius: 999px; background: var(--mist); color: #075985; padding: 7px 10px; font-size: 13px; font-weight: 800; }
    .chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-weight: 900; margin-left: 6px; }
    .tabs { display: flex; gap: 10px; max-width: 100%; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--line); white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .tab { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 14px 8px; cursor: pointer; color: var(--muted); font-weight: 900; white-space: nowrap; }
    .tab.active { border-color: var(--aqua); color: var(--ink); }
    .tabs-shell { position: relative; display: grid; gap: 8px; }
    .tabs.tabs-attention { animation: softGlow 2.1s ease-out 1; border-radius: 14px; }
    .tab.tab-attention { animation: tabPulse 1.35s ease-out 1; animation-delay: var(--tab-delay, 0ms); }
    .tab.active.tab-attention { box-shadow: 0 10px 26px rgba(37,174,232,.22); }
    .report-ready-hint { display: none; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #b8dff0; border-radius: 14px; background: linear-gradient(90deg, rgba(37,174,232,.12), rgba(255,255,255,.9)); color: #075985; padding: 10px 14px; font-size: 14px; font-weight: 900; }
    .report-ready-hint.show { display: flex; animation: hintFade 5.5s ease-in-out 1 forwards; }
    .report-tab-reveal { opacity: 0; transform: translateY(8px); animation: tabReveal .45s ease forwards; }
    .next-step-callout { display: none; border: 1px solid #b8dff0; border-left: 4px solid var(--aqua); border-radius: 14px; background: #fff; color: #344054; padding: 12px 14px; box-shadow: 0 12px 35px rgba(16,32,39,.06); }
    .next-step-callout.show { display: block; }
    .next-step-callout strong { display: block; color: var(--ink); margin-bottom: 4px; }
    .next-step-callout p { margin: 0; font-size: 14px; line-height: 1.45; }
    @keyframes softGlow {
      0% { background: rgba(37,174,232,0); box-shadow: 0 0 0 rgba(37,174,232,0); }
      25% { background: rgba(37,174,232,.12); box-shadow: 0 0 0 5px rgba(37,174,232,.06), 0 18px 45px rgba(37,174,232,.14); }
      100% { background: rgba(37,174,232,0); box-shadow: 0 0 0 rgba(37,174,232,0); }
    }
    @keyframes tabPulse {
      0% { transform: translateY(0); background: transparent; }
      35% { transform: translateY(-2px); background: rgba(37,174,232,.1); }
      100% { transform: translateY(0); background: transparent; }
    }
    @keyframes hintFade {
      0% { opacity: 0; transform: translateY(-4px); }
      12% { opacity: 1; transform: translateY(0); }
      78% { opacity: 1; }
      100% { opacity: .18; }
    }
    @keyframes tabReveal {
      0% { opacity: 0; transform: translateY(8px); box-shadow: none; border-color: transparent; }
      70% { opacity: 1; transform: translateY(0); text-shadow: 0 0 12px rgba(37,174,232,.45); box-shadow: inset 0 -3px 0 rgba(37,174,232,.45); }
      100% { opacity: 1; transform: translateY(0); text-shadow: none; box-shadow: none; }
    }
    @keyframes progressShine {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }
    @media (prefers-reduced-motion: reduce) {
      .tabs.tabs-attention, .tab.tab-attention, .report-ready-hint.show, .report-tab-reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
      .report-progress-bar::after { animation: none !important; }
      .report-progress-indicator { animation: none !important; width: 100%; }
    }
    .kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .kpi { padding: 16px; }
    .stripe { height: 6px; width: 42px; border-radius: 99px; background: var(--aqua); margin-bottom: 12px; }
    .kpi:nth-child(3n+2) .stripe { background: var(--coral); }
    .kpi:nth-child(3n) .stripe { background: var(--gold); }
    .kpi strong { display: block; font-size: 26px; }
    .kpi span { color: var(--muted); font-size: 14px; }
    .analysis-summary { border-left: 5px solid var(--aqua); background: #fff; border-radius: 14px; padding: 18px 20px; color: #344054; line-height: 1.6; box-shadow: 0 12px 35px rgba(16,32,39,.05); }
    .dashboard-cta { border: 1px solid #b8dff0; background: linear-gradient(135deg, #eef9fe, #fff); border-radius: 16px; padding: 20px; display: grid; gap: 10px; }
    .report-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; width: 100%; }
    .report-head h3 { margin: 0 0 4px; font-size: 21px; }
    .report-head p { margin: 0; color: var(--muted); font-size: 14px; }
    .controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; max-width: 100%; min-width: 0; }
    .controls label, .table-controls label { flex: 1 1 160px; min-width: 160px; max-width: 100%; }
    .chart-box { width: 100%; height: 360px; padding: 18px; border-radius: 16px; overflow: hidden; }
    .chart-date-range { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
    .chart-date-range-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; width: 100%; max-width: 100%; }
    .chart-range-label { color: var(--muted); font-size: 13px; font-weight: 800; }
    .table-helper { color: var(--muted); margin: 4px 0 10px; font-size: 14px; }
    .table-helper + .table-helper { margin-bottom: 18px; }
    .table-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 16px 0 12px; max-width: 100%; }
    .table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; max-width: 100%; }
    .table-pagination { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; }
    .page-size-control { display: flex; align-items: center; gap: 8px; color: #475467; font-size: 13px; font-weight: 900; }
    .page-size-control select { height: 36px; min-height: 36px; padding: 6px 28px 6px 10px; }
    .page-status { color: var(--muted); font-size: 13px; font-weight: 800; }
    .pagination-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .page-button { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); padding: 8px 12px; font-weight: 900; cursor: pointer; }
    .page-button:disabled { opacity: .45; cursor: not-allowed; }
    .page-input { width: 68px; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-weight: 800; text-align: center; }
    .table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 35px rgba(16,32,39,.05); }
    .table-scroll { width: 100%; max-width: 100%; max-height: 520px; overflow-x: auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    table { width: 100%; min-width: 720px; max-width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
    th { position: sticky; top: 0; z-index: 1; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; background: #f8fbff; color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
    th button { width: 100%; border: 0; background: transparent; color: inherit; font-weight: 900; cursor: pointer; padding: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    td { max-width: 260px; padding: 12px; border-bottom: 1px solid #edf3f1; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
    .cell-compact { max-width: 120px; }
    .cell-long { max-width: 300px; }
    .cell-raw, td.raw { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .empty { border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; padding: 34px; text-align: center; color: var(--muted); }
    .empty-drop-zone { cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
    .empty-drop-zone.dragging { border-color: var(--aqua); background: var(--mist); color: var(--aqua-dark); box-shadow: 0 14px 36px rgba(37,174,232,.12); }
    .report-loading { border: 1px dashed #b8dff0; border-radius: 14px; background: linear-gradient(180deg, #fff, #fafdff); padding: 24px; display: grid; gap: 14px; color: #475467; box-shadow: 0 12px 35px rgba(16,32,39,.04); }
    .report-loading-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 900; }
    .report-loading-head span:first-child { color: var(--ink); }
    .report-loading-percent { color: var(--aqua-dark); }
    .report-progress { height: 10px; border-radius: 999px; background: #e9f6fc; overflow: hidden; position: relative; }
    .report-progress-bar { width: var(--progress, 20%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--aqua), #7dd3fc); transition: width .28s ease; position: relative; }
    .report-progress-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: progressShine 1.15s linear infinite; }
    .report-loading-note { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
    .report-progress-strip { display: grid; gap: 7px; margin: -6px 0 4px; padding: 10px 12px; border: 1px solid #d9edf7; border-radius: 12px; background: #fafdff; }
    .table-progress-strip { margin: 12px 0 10px; }
    .report-progress-label { font-size: 13px; color: var(--muted); font-weight: 900; }
    .report-progress-track { height: 7px; background: #e9f6fc; border-radius: 999px; overflow: hidden; }
    .report-progress-indicator { height: 100%; width: 35%; border-radius: 999px; background: linear-gradient(90deg, var(--aqua), #7dd3fc); animation: indeterminateProgress 1.1s infinite ease-in-out; }
    .report-busy { cursor: progress; }
    .report-busy .tabs, .report-busy #tabContent { opacity: .88; }
    @keyframes indeterminateProgress {
      0% { transform: translateX(-120%); }
      100% { transform: translateX(320%); }
    }
    .warning-note { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; max-width: 100%; border: 1px solid #f1d394; background: #fffbeb; color: #854d0e; border-radius: 8px; padding: 15px; }
    .paste-panel { display: none; }
    .paste-panel.open { display: grid; gap: 10px; }
    .hidden { display: none !important; }
    .app-footer {
      margin-top: 28px;
      background: linear-gradient(135deg, #050608 0%, #101828 100%);
      color: #fff;
      border-top: 1px solid rgba(37, 174, 232, .24);
      box-shadow: 0 -18px 45px rgba(16, 24, 40, .08);
    }
    .app-footer-inner {
      width: 100%;
      max-width: min(1240px, 100%);
      margin: 0 auto;
      padding: 30px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      min-width: 0;
    }
    .app-footer-brand {
      display: flex;
      align-items: center;
      gap: 14px;
      max-width: 460px;
      min-width: 0;
    }
    .app-footer-logo {
      height: 42px;
      width: auto;
      max-width: 142px;
      object-fit: contain;
      flex: 0 0 auto;
    }
    .app-footer-brand strong {
      display: block;
      color: #fff;
      font-size: 15px;
      font-weight: 950;
      line-height: 1.2;
    }
    .app-footer-brand p {
      margin: 4px 0 0;
      color: #d0d5dd;
      font-size: 13px;
      line-height: 1.5;
    }
    .app-footer-nav {
      display: flex;
      justify-content: flex-end;
      gap: 12px 16px;
      flex-wrap: wrap;
      min-width: 0;
    }
    .app-footer-nav a {
      color: #d0d5dd;
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.25;
      transition: color .18s ease;
    }
    .app-footer-nav a:hover { color: var(--aqua); }
    @media (max-width: 980px) {
      .app-topbar-inner { align-items: flex-start; flex-direction: column; }
      .app-nav { justify-content: flex-start; width: 100%; }
      .hero, .info-grid, .benefit-strip, .feature-grid, .faq-grid { grid-template-columns: 1fr; }
      .hero-copy { min-height: auto; }
      .upload-side { align-self: start; }
      .upload-card { height: auto; }
      .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .analysis-header { display: grid; }
      .analysis-file-name { white-space: normal; overflow-wrap: anywhere; }
      .analysis-actions { justify-content: flex-start; flex-wrap: wrap; }
      .report-head { display: grid; align-items: start; }
      .table-toolbar { align-items: stretch; }
      .table-pagination { width: 100%; }
    }
    @media (max-width: 560px) {
      .app-logo { height: 32px; max-width: 112px; }
      .app-title { font-size: 14px; }
      .app-nav { gap: 10px 12px; }
      .app-footer-inner { flex-direction: column; align-items: flex-start; }
      .app-footer-brand { align-items: flex-start; }
      .app-footer-logo { height: 36px; max-width: 124px; }
      .app-footer-nav { justify-content: flex-start; }
      .nav-inner { height: auto; padding-top: 12px; padding-bottom: 12px; }
      .hero { grid-template-columns: 1fr; }
      .hero-copy { padding: 24px; }
      .hero-primary-copy { gap: 14px; }
      .steps { grid-template-columns: 1fr; }
      .kpis { grid-template-columns: 1fr; }
      .controls label, .table-controls label, .controls .btn, .table-controls .btn { flex-basis: 100%; width: 100%; min-width: 0; }
      .cell-long { max-width: 220px; }
      .cell-raw, td.raw { max-width: 220px; }
      table { min-width: 680px; }
      .upload-card { min-height: 230px; }
      .date-order-control { grid-template-columns: 1fr; justify-items: stretch; }
    }
    @media (min-width: 1100px) {
      .filter-grid { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
    }
    @media (max-width: 700px) {
      .filter-panel-header { align-items: stretch; }
      .filter-panel-header .btn { width: 100%; }
      .filter-grid { grid-template-columns: 1fr; }
    }
