/* Shared screen components (page heading, cards, progress label, form fields,
   list/empty cards) and the Przegląd (overview) screen. */

/* page heading */
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:28px}
.page-heading>div{min-width:0}
.page-heading h1{font-size:36px;font-weight:800;letter-spacing:-.035em;line-height:1.08;margin:8px 0;overflow-wrap:anywhere}
.lead{color:var(--mut);max-width:680px}
.card>p{margin-top:10px}
.card h2{font-size:20px;font-weight:800;letter-spacing:-.02em;margin-bottom:10px}
.card>p+p{margin-top:8px}
.card>p+:is(.btn,.badge,.row,.note,ul,ol,form){margin-top:16px}

/* vertical rhythm: stacked blocks on account/overview screens sit 16px apart */
:where(#app:is([data-screen=overview],[data-screen=billing],[data-screen=integrations],[data-screen=wearfits],[data-screen=storage],[data-screen=api]))>:where(*+*){margin-top:16px}
.card h2:not(:first-child){margin-top:24px}

.progress-label{font-size:12px;color:var(--mut);margin-top:6px}

/* forms (capture) */
.field{display:grid;gap:8px}
.field>label{font-weight:700;font-size:13px}
.field input,.field select,.field textarea{width:100%;min-height:46px;border:1px solid var(--line);border-radius:12px;padding:0 14px;background-color:#fff;color:var(--ink)}
.field select{padding-right:40px}
.field input[type="checkbox"],.field input[type="radio"]{width:auto;min-height:0}
.field input:focus,.field select:focus{border-color:var(--acc);outline:none;box-shadow:0 0 0 3px var(--accs)}

/* overview */
#app>.note[role=alert]{margin:16px 0}
a.h3{display:block}
a.h3:hover{color:var(--acc2)}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-top:28px}
.kpi{padding:20px}
.kpi .big{margin:14px 0 8px}
.kpi .sub,.list-row .sub{font-size:13px}
.ov-split{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px;align-items:stretch}
.ov-lists{flex:999 1 520px;min-width:0;gap:16px}
.kpis.kpis-2{grid-template-columns:repeat(auto-fit,minmax(200px,280px));margin-top:20px}
.kpis-2+.ov-lists{margin-top:16px}
.kpis-2 .kpi{padding:16px 18px}
.kpis-2 .kpi .big{margin:8px 0 4px}
.list-card{padding:0}
.list-head{padding:22px 24px 14px;gap:12px}
.list-head h2,.list-head .h2{margin:0}
.list-card>h2:first-child{margin:0;padding:22px 24px 14px}
.list-card>p.sub{padding:16px 24px 22px;border-top:1px solid var(--line);margin:0}
.list-row{padding:16px 24px;border-top:1px solid var(--line)}
.list-row .sp{width:64px;height:64px;background-size:90% auto;flex:none}
.list-row .bar{margin:8px 0 6px}
.list-row .sub{margin-top:2px}
.list-empty{padding:16px 24px 22px;border-top:1px solid var(--line);color:var(--mut);font-size:13px}
.cta{flex:1 1 300px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:300px}
.cta>*{position:relative}
.cta .flare.a{position:absolute;width:320px;height:320px;right:-120px;top:-110px;background:radial-gradient(circle,#6C5CFF 0%,rgba(108,92,255,0) 68%)}
.cta .flare.b{position:absolute;width:150px;height:150px;right:30px;bottom:-60px;background:radial-gradient(circle,rgba(205,245,100,.85) 0%,rgba(205,245,100,0) 70%)}
.cta h2{font-size:28px;font-weight:800;letter-spacing:-.03em;line-height:1.15;margin:18px 0 0}
.cta p{color:#B9BAD3;margin-top:10px}
.cta .row{margin-top:24px}
.models-head{margin:36px 0 16px;gap:12px}
.models{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.model{padding:12px;display:block}
.model:hover{border-color:#C9C9DA}
.model .sp{height:190px;position:relative}
.model .chip{position:absolute;top:12px}
.model .chip.l{left:12px}
.model .chip.r{right:12px}
.model-body{padding:14px 8px 8px}
.model-body .h3{margin:6px 0 4px;overflow-wrap:anywhere}
.add-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;min-height:280px}
.add-tile:hover{border-color:var(--acc)}
.round-ico{width:48px;height:48px;border-radius:50%;background:var(--accs);color:var(--acc2);display:grid;place-items:center}
.round-ico .ico{width:22px;height:22px}
.empty-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:0;padding:40px 32px;min-height:320px;width:100%;max-width:none;flex:999 1 420px}
.empty-card .round-ico{margin-bottom:16px}
.empty-card.empty-card>:is(h1,h2,strong){margin:0 0 8px}
.empty-card .sub{font-size:13px;max-width:400px;margin:0;text-wrap:balance}
.empty-card>.btn,.empty-card>.row{margin-top:16px}

@media (max-width:900px){
  .page-heading{margin-bottom:20px}
  .page-heading h1{font-size:28px}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
  .kpi{padding:16px}
  .kpi .big{font-size:26px;margin:10px 0 6px}
  .list-head,.list-row,.list-card>h2:first-child,.list-card>p.sub,.list-empty{padding-left:18px;padding-right:18px}
  .list-row{flex-wrap:wrap}
  .empty-card{padding:32px 20px;min-height:260px}
  .list-row .sp{width:52px;height:52px}
  .list-row .grow{flex-basis:calc(100% - 64px)}
  .list-row>.sp~.badge{margin-left:64px}
  .list-row>.grow:first-child{flex-basis:0}
  .list-row .btn{margin-left:auto}
  .cta{min-height:0}
  .cta h2{font-size:22px}
  .models{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
  .models-head{margin-top:28px}
  .model .sp{height:140px}
  .add-tile{min-height:200px}
}
