/* BLC desktop UX system — consistent density, hierarchy and readable work surfaces */
@media (min-width: 981px){
  :root{
    --desktop-content: 1320px;
    --desktop-gap: 24px;
    --desktop-radius: 18px;
    --desktop-shadow: 0 10px 30px rgba(20,24,56,.07);
  }

  body{background:#f6f7fb}

  /* Public landing */
  .landing-header{height:72px;padding:0 max(32px,calc((100vw - var(--desktop-content))/2));gap:36px}
  .landing-nav{gap:24px}
  .landing-nav a{font-size:14px}
  .landing-actions{gap:8px}
  .landing-login,.landing-cta,.landing-secondary{border-radius:10px;padding:10px 18px}
  .landing-hero{min-height:620px;grid-template-columns:minmax(460px,.95fr) minmax(520px,1.05fr);gap:70px;padding:68px max(40px,calc((100vw - var(--desktop-content))/2)) 74px}
  .hero-copy{max-width:570px}
  .hero-copy h1{font-size:clamp(54px,5vw,72px);line-height:1.02;letter-spacing:-2.2px;margin:18px 0}
  .hero-copy p{font-size:18px;line-height:1.65;max-width:560px}
  .hero-badge{font-size:12px}
  .hero-actions{margin-top:24px}
  .hero-proof{margin-top:18px;gap:14px;font-size:13px}
  .hero-visual{min-height:455px}
  .visual-window{width:min(100%,590px);border-radius:20px;box-shadow:0 28px 70px rgba(31,29,90,.15);transform:perspective(1200px) rotateY(-3deg) rotateX(1deg)}
  .visual-body{min-height:340px}
  .visual-chart,.visual-events{height:145px}
  .visual-glow{width:440px;height:440px}
  .logo-strip{padding:16px 24px;gap:28px}
  .landing-section,.workflow-section,.audience-section{padding:78px max(40px,calc((100vw - var(--desktop-content))/2))}
  .section-heading{margin-bottom:38px;max-width:680px}
  .section-heading h2,.audience-card h2,.final-cta h2{font-size:clamp(34px,3.2vw,48px);letter-spacing:-1px}
  .section-heading p,.audience-card p,.final-cta p{font-size:16px}
  .feature-grid{max-width:var(--desktop-content);gap:16px}
  .feature-grid article{padding:24px;border-radius:16px;box-shadow:0 6px 20px rgba(25,28,66,.045)}
  .feature-grid h3{font-size:18px;margin:15px 0 6px}
  .feature-grid p{font-size:14px}
  .feature-icon{width:42px;height:42px;border-radius:12px}
  .workflow-grid{max-width:var(--desktop-content);gap:14px}
  .workflow-grid article{padding:24px;border-radius:16px}
  .workflow-grid b{font-size:34px}
  .workflow-grid h3{font-size:18px;margin:10px 0 4px}
  .workflow-grid p{font-size:14px}
  .audience-card{max-width:var(--desktop-content);padding:44px 50px;gap:48px;border-radius:22px;box-shadow:var(--desktop-shadow)}
  .audience-metrics article{padding:18px;border-radius:14px}
  .audience-metrics strong{font-size:28px}
  .final-cta{padding:80px 24px}
  .landing-footer{padding:24px max(40px,calc((100vw - var(--desktop-content))/2))}

  /* Authenticated application shell */
  .app-shell{min-height:100vh;background:#f6f7fb}
  .sidebar{width:252px;padding:18px 14px;border-left:1px solid #e7e9f1;box-shadow:none;background:#fff}
  .sidebar .brand{padding:8px 10px 18px;margin-bottom:8px}
  .sidebar nav{gap:3px}
  .nav-item{min-height:44px;padding:10px 12px;border-radius:11px;font-size:14px}
  .nav-item svg{width:20px;height:20px}
  .trial-badge{margin:0 4px 14px;padding:11px;border-radius:12px}
  .main{margin-right:252px;width:calc(100% - 252px);min-height:100vh}
  .topbar{position:sticky;top:0;z-index:30;min-height:76px;padding:14px clamp(24px,3vw,42px);background:rgba(246,247,251,.92);backdrop-filter:blur(16px);border-bottom:1px solid #e7e9f1}
  .topbar h1{font-size:21px;margin:0}
  .topbar p{font-size:13px;margin-top:3px}
  .top-actions{gap:9px}
  .top-actions .primary{min-height:42px;padding:10px 16px}

  .main>.page{width:min(calc(100% - 56px),var(--desktop-content));margin:0 auto;padding:30px 0 48px}
  .page-title,.dashboard-head,.workspace-header{margin-bottom:24px;align-items:flex-end}
  .page-title h2,.dashboard-head h2,.workspace-header h2{font-size:30px;line-height:1.15;letter-spacing:-.6px;margin:6px 0}
  .page-title p,.dashboard-head p,.workspace-header p{font-size:14px;line-height:1.55;max-width:720px}
  .eyebrow{font-size:11px;letter-spacing:.04em}

  .panel,.stat,.attention-card,.inventory-card,.data-list>article,.form-card,.result-card{border:1px solid #e5e8f0;border-radius:var(--desktop-radius);box-shadow:0 5px 18px rgba(27,31,67,.045);background:#fff}
  .panel{padding:22px}
  .panel-head{margin-bottom:18px}
  .panel-head h3{font-size:19px;margin:4px 0 0}

  .attention-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .attention-card{min-height:132px;padding:18px}
  .attention-card strong{font-size:26px}
  .attention-card b{font-size:14px}
  .attention-card small{font-size:12px;line-height:1.45}

  .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .stat{min-height:145px;padding:20px}
  .stat>strong{font-size:29px}
  .stat>span{font-size:13px}
  .stat small{font-size:11px}

  .dashboard-main-grid{grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr);gap:18px;align-items:start}
  .dashboard-side-column{gap:18px}
  .event-list{gap:10px}
  .event-item{padding:14px;border-radius:12px}
  .dashboard-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .quick-action{min-height:76px;border-radius:12px;padding:13px}

  /* Calculator and forms */
  .calculator-mode-switch{width:max-content;max-width:100%;margin-bottom:18px;padding:4px;border-radius:12px}
  .calculator-mode{padding:9px 18px;border-radius:9px}
  .calc-layout,.calculator-workspace{grid-template-columns:minmax(0,1.5fr) minmax(330px,.65fr);gap:20px;align-items:start}
  .calculator-form{gap:16px}
  .calc-step{padding:22px}
  .calc-step legend{margin-bottom:18px}
  .field-grid{gap:15px}
  label{font-size:13px}
  input,select,textarea{min-height:43px;border-radius:10px;font-size:14px}
  textarea{min-height:96px}
  .addons{gap:9px}
  .addons label{min-height:64px;border-radius:11px}
  .calculator-result{position:sticky;top:96px;padding:22px}
  .recommended-result{padding:22px;border-radius:14px}
  .recommended-result strong{font-size:40px}
  .secondary-prices{gap:10px}
  .secondary-prices>div{padding:14px;border-radius:12px}

  /* Lists, tables and toolbars */
  .toolbar{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding:12px;background:#fff;border:1px solid #e5e8f0;border-radius:14px}
  .toolbar input{flex:1;min-width:220px}
  .toolbar select{width:190px}
  .data-list{gap:10px}
  .data-list>article{padding:16px 18px}
  .table-surface{overflow:hidden;border:1px solid #e5e8f0;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(27,31,67,.04)}
  .table-surface>article{border:0;border-radius:0;box-shadow:none;border-bottom:1px solid #edf0f5}
  .table-surface>article:last-child{border-bottom:0}
  .inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .inventory-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}

  /* Settings and modals */
  .form-card{max-width:1050px;padding:24px}
  .form-card .field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .full-span{grid-column:1/-1}
  .modal{padding:30px}
  .modal-card{width:min(560px,calc(100vw - 60px));max-height:calc(100vh - 60px);padding:24px;border-radius:18px}
  .wide-modal{width:min(860px,calc(100vw - 60px))}
  .modal-form.two-col{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

  button,.primary,.secondary,.link-btn{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease}
  button:hover,.primary:hover,.secondary:hover{transform:translateY(-1px)}
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(103,72,238,.22);outline-offset:2px}
}

@media (min-width: 1500px){
  :root{--desktop-content:1380px}
  .main>.page{width:min(calc(100% - 72px),var(--desktop-content))}
}
