/* PRIMARY PALETTE: warm-control (v1.2.1a) */
:root{
  --bg:#F6F7FA;
  --card:rgba(255,255,255,.90);
  --line:rgba(11,18,32,.10);
  --text:#0B1220;
  --muted:rgba(15,23,42,.60);
  --brand:#345FDB;
  --brand2:#FF8A4C;
  --warn:#F59E0B;
  --danger:#EF4444;
  --shadow:0 18px 50px rgba(2,6,23,.10);
  --shadow2:0 10px 22px rgba(2,6,23,.08);
  --r:18px;
  --r2:24px;
  --max: 1180px;
  --maxWide: 1360px;
  --maxUltra: 1540px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 560px at 18% -10%, rgba(22,163,74,.16), transparent 58%),
    radial-gradient(950px 520px at 92% 8%, rgba(255,138,76,.12), transparent 58%),
    var(--bg);
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 clamp(16px, 2vw, 28px)}
.nav{position:sticky;top:0;z-index:50;backdrop-filter:blur(10px);background:rgba(255,255,255,.72);border-bottom:1px solid var(--line)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:36px;width:auto;display:block}
.menu{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.menu a{padding:8px 10px;border-radius:999px;color:var(--muted);font-weight:800}
.menu a:hover{background:rgba(255,255,255,.85);color:var(--text)}
.menu a.active{background:rgba(0,48,96,.10);border:1px solid rgba(0,48,96,.22);color:var(--text)}
.nav-cta{display:flex;gap:10px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 14px;border-radius:999px;border:1px solid rgba(0,0,0,0);background:var(--brand);color:#fff;font-weight:950;box-shadow:var(--shadow2)}
.btn:hover{filter:brightness(.98)}
.btn.secondary{background:rgba(255,255,255,.86);color:var(--text);border:1px solid var(--line);box-shadow:none}
.btn.small{padding:9px 12px;font-size:13px}
.btn.danger{background:var(--danger)}
.badge{display:inline-flex;gap:8px;align-items:center;padding:6px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.72);color:var(--muted);font-size:12px;font-weight:850}
.hero{padding:46px 0 18px}
.h1{font-size:clamp(30px, 2.6vw + 14px, 58px);line-height:1.05;margin:10px 0}
.lead{font-size:16px;color:var(--muted);max-width:820px}
.grid{display:grid;gap:14px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r2);box-shadow:var(--shadow)}
.pad{padding:16px}
.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.panel-title h3{margin:0;font-size:16px}
.mini{color:var(--muted);font-size:13px;line-height:1.45}
.value{font-weight:950;font-size:28px}
.hr{height:1px;background:var(--line);margin:14px 0}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.tile{background:rgba(255,255,255,.78);border:1px solid var(--line);border-radius:var(--r);padding:14px}
.tile .label{color:var(--muted);font-size:12px;font-weight:900;letter-spacing:.02em}
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;border:1px solid var(--line);background:rgba(255,255,255,.78);color:var(--muted)}
.pill.ok{border-color:rgba(34,197,94,.25);background:rgba(34,197,94,.10);color:#166534}
.pill.warn{border-color:rgba(245,158,11,.25);background:rgba(245,158,11,.10);color:#92400e}
.pill.bad{border-color:rgba(239,68,68,.25);background:rgba(239,68,68,.10);color:#991b1b}
.form{display:grid;gap:10px}
.input{display:flex;flex-direction:column;gap:6px}
.input label{font-size:12px;font-weight:900;color:var(--muted)}
.input input,.input select,.input textarea{padding:11px 12px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.88);outline:none;font-weight:650}
.input textarea{min-height:110px;resize:vertical}
.footer{padding:34px 0 44px;border-top:1px solid var(--line);margin-top:24px;background:rgba(255,255,255,.48)}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:14px}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
.toast{position:fixed;right:16px;bottom:16px;z-index:100;background:rgba(15,23,42,.92);color:white;padding:12px 14px;border-radius:16px;box-shadow:var(--shadow);display:none;max-width:360px}
.toast.show{display:block}

.app{padding:22px 0 40px}
.app-shell{display:grid;grid-template-columns:260px 1fr;gap:14px;align-items:start}
.sidebar{position:sticky;top:84px;padding:14px}
.side-nav{display:grid;gap:8px;margin-top:12px}
.side-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid transparent;color:var(--muted);font-weight:850}
.side-nav a:hover{background:rgba(255,255,255,.78);border-color:var(--line);color:var(--text)}
.side-nav a.active{background:rgba(14,165,233,.10);border-color:rgba(14,165,233,.22);color:var(--text)}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.search{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.82);min-width:280px}
.search input{border:0;outline:none;width:100%;background:transparent;font-weight:650;color:var(--text)}
.table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.84)}
.table th,.table td{padding:12px 12px;border-bottom:1px solid var(--line);font-size:14px}
.table th{text-align:left;color:var(--muted);font-weight:950;background:rgba(246,250,255,.55)}
.table tr:last-child td{border-bottom:0}
.progress{height:10px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.88);overflow:hidden}
.progress>div{height:100%;background:linear-gradient(90deg,var(--brand),var(--brand2));width:50%}
.callout{display:flex;gap:12px;padding:12px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.74)}
.dot{width:10px;height:10px;border-radius:50%;background:var(--brand);margin-top:4px}
.steps{display:grid;gap:10px}
.step{display:flex;gap:10px;padding:12px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.74)}
.step b{width:28px;height:28px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(0,48,96,.12);border:1px solid rgba(0,48,96,.22)}
@media (max-width:980px){
  .grid-2,.grid-3{grid-template-columns:1fr}
  .tiles{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .menu{display:none}
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:relative;top:auto}
}

/* --- Responsive: large monitors + ultra-wide --- */
@media (min-width: 1280px){
  .container{max-width: var(--maxWide)}
  .hero{padding:56px 0 22px}
  .lead{max-width:920px}
  .app-shell{grid-template-columns:300px 1fr}
}
@media (min-width: 1536px){
  .container{max-width: var(--maxUltra)}
  .lead{font-size:18px;max-width:960px}
  .app-shell{grid-template-columns:320px 1fr;gap:18px}
  .sidebar{padding:16px}
  .card{border-radius:28px}
  .tile{border-radius:22px}
}
/* Keep text readable on ultra-wide screens */
@media (min-width: 1700px){
  .lead{max-width:980px}
}


/* Footer (new) */
.footer.footer-new{padding:36px 0 28px;margin-top:48px}
.footer-new .footer-top{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap:24px;
  align-items:start;
}
.footer-new .footer-brand .brand{display:inline-flex;align-items:center;gap:10px}
.footer-new .footer-brand img{height:34px;width:auto;display:block}
.footer-new .footer-title{
  font-weight:950;
  letter-spacing:.02em;
  margin-bottom:10px;
  color:var(--text);
}
.footer-new .footer-col{display:grid;gap:10px}
.footer-new .footer-col a{color:var(--muted)}
.footer-new .footer-col a:hover{color:var(--text)}
.footer-new .footer-bottom{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer-new .footer-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.footer-new .footer-links .sep{opacity:.45}
.footer-new .footer-cta{display:flex;gap:10px;flex-wrap:wrap}
.footer.footer-app{margin-top:24px}
@media (max-width: 980px){
  .footer-new .footer-top{grid-template-columns:1fr 1fr;gap:18px}
}
@media (max-width: 640px){
  .footer-new{padding:28px 0 22px}
  .footer-new .footer-top{grid-template-columns:1fr}
  .footer-new .footer-brand img{height:32px}
}


/* Header (new) */
.skip-link{
  position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip-link:focus{
  left:18px;top:12px;width:auto;height:auto;z-index:9999;
  background:var(--card);border:1px solid var(--line);
  padding:10px 12px;border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.12);
}
.nav.nav-sticky{
  position:sticky;top:0;z-index:80;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(246,247,250,.86);
  border-bottom:1px solid var(--line);
}
.nav-inner{display:flex;align-items:center;gap:14px;padding:12px 0}
.nav .brand img{height:34px;width:auto;display:block}
.nav .menu{display:flex;gap:16px;align-items:center}
.nav .menu a{color:var(--muted);padding:8px 10px;border-radius:12px}
.nav .menu a:hover{color:var(--text);background:rgba(52,95,219,.06)}
.nav .menu a.active{color:var(--text);background:rgba(52,95,219,.10);border:1px solid rgba(52,95,219,.18)}
.nav .menu a.pill-link{border:1px solid var(--line);background:rgba(255,255,255,.70);color:var(--text)}
.nav .nav-cta{margin-left:auto;display:flex;gap:10px;align-items:center}
.nav-toggle{
  display:none;margin-left:auto;
  width:42px;height:42px;border-radius:14px;
  border:1px solid var(--line);background:rgba(255,255,255,.70);
}
.nav-toggle span{display:block;height:2px;margin:6px 10px;background:rgba(15,23,42,.70);border-radius:2px}
.nav-meta{display:flex;flex-direction:column;gap:2px}
.nav-title{font-weight:950;letter-spacing:.01em}
@media (max-width: 980px){
  .nav .menu{display:none}
  .nav-toggle{display:block}
  .nav .nav-cta{display:none}
  .nav[data-open="1"] .menu{
    display:flex;
    position:absolute;
    left:12px;right:12px;top:62px;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:18px;
    padding:10px;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    box-shadow:0 10px 30px rgba(15,23,42,.10);
  }
  .nav[data-open="1"] .menu a{padding:10px 12px}
  .nav[data-open="1"] .nav-cta{display:flex;position:absolute;left:12px;right:12px;top: calc(62px + 10px + 6*0px);margin-top:0}
}


/* Typography (reading) */
.prose{
  max-width: 74ch;
}
.prose .lead{
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}
.prose p{
  line-height: 1.7;
  color: rgba(15,23,42,.86);
}
.prose h2, .prose h3, .prose h4{
  letter-spacing: .01em;
}
.prose h2{
  font-size: 22px;
  line-height: 1.25;
  margin: 20px 0 10px;
}
.prose h3{
  font-size: 18px;
  line-height: 1.25;
  margin: 18px 0 8px;
}
.prose h4{
  font-size: 16px;
  line-height: 1.3;
  margin: 16px 0 8px;
}
.prose ul, .prose ol{
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.prose li{
  line-height: 1.55;
  color: rgba(15,23,42,.84);
}
.prose b{font-weight:950}
.kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(15,23,42,.55);
}
.keypoints{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.keypoint{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(255,255,255,.75);
}
.keypoint .icon{
  width:28px;height:28px;border-radius:12px;
  display:grid;place-items:center;
  background: rgba(52,95,219,.12);
  color: var(--text);
  flex:0 0 auto;
}
.keypoint .title{font-weight:950;line-height:1.2}
.keypoint .text{margin-top:2px;color: rgba(15,23,42,.76);line-height:1.5}
blockquote.note{
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(52,95,219,.35);
  background: rgba(52,95,219,.06);
  border-radius: 16px;
  color: rgba(15,23,42,.82);
}
@media (max-width: 640px){
  .prose .lead{font-size: 17px}
  .prose h2{font-size: 20px}
}


/* Article full-width layout */
.prose-full{
  max-width: none;
}
.prose-full > *{
  max-width: 78ch;
}
.prose-full h1{
  max-width: 90ch;
}


/* Content template */
.page-header{
  padding: 34px 0 10px;
}
.page-header .breadcrumbs{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
  color: rgba(15,23,42,.55);
  font-size: 13px;
}
.page-header .breadcrumbs a{color: rgba(15,23,42,.55)}
.page-header .breadcrumbs a:hover{color: var(--text)}
.page-header h1{
  font-size: 34px; line-height:1.12; margin:10px 0 0;
  letter-spacing: -.01em;
}
.page-header .subtitle{
  margin-top:10px;
  color: rgba(15,23,42,.76);
  max-width: 78ch;
  line-height: 1.6;
}
.content-layout{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 22px;
  align-items:start;
  margin-top: 18px;
}
.content-main .card{overflow:hidden}
.content-aside{position:sticky; top:84px}
.aside-block{display:grid; gap:10px}
.aside-title{font-weight:950; letter-spacing:.01em}
.meta-row{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center;
  margin-top:12px;
  color: rgba(15,23,42,.60);
  font-size: 13px;
}
.meta-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}
.toc{
  margin-top: 10px;
  padding: 12px 12px;
  border:1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.75);
}
.toc a{color: rgba(15,23,42,.74)}
.toc a:hover{color: var(--text)}
.toc ul{margin:8px 0 0; padding-left:18px; display:grid; gap:6px}
.hub-top{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center;
  margin-top: 14px;
}
.hub-search{
  flex: 1 1 320px;
  display:flex; gap:10px; align-items:center;
  padding: 10px 12px;
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.75);
}
.hub-search input{
  border:0; outline:0; background:transparent;
  width:100%;
  font-size:14px;
  color: var(--text);
}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
  color: rgba(15,23,42,.76);
  font-size: 13px;
}
.chip.active{
  background: rgba(52,95,219,.10);
  border-color: rgba(52,95,219,.18);
  color: var(--text);
}
.article-card{
  display:block;
  transition: transform .08s ease, box-shadow .08s ease;
}
.article-card:hover{
  transform: translateY(-1px);
  box-shadow:0 12px 34px rgba(15,23,42,.10);
}
.article-card h3{margin:8px 0 6px; line-height:1.25}
.article-card .mini{line-height:1.55}
@media (max-width: 980px){
  .content-layout{grid-template-columns:1fr}
  .content-aside{position:static}
  .page-header h1{font-size: 30px}
}
@media (max-width: 640px){
  .page-header h1{font-size: 26px}
}


/* Homepage hero */
.hero{
  padding: 44px 0 24px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items:start;
}
.hero-copy h1{
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}
.hero-copy .lead{
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(15,23,42,.82);
  max-width: 70ch;
}
.hero-cta{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap}
.hero-meta{margin-top:14px;display:flex;gap:8px;flex-wrap:wrap}
.feature-list{display:grid;gap:10px}
.feature{display:flex;gap:10px;align-items:flex-start}
.feature .icon{
  width:30px;height:30px;border-radius:12px;
  display:grid;place-items:center;
  background: rgba(52,95,219,.10);
  border:1px solid rgba(52,95,219,.14);
  flex:0 0 auto;
}
.section{padding: 20px 0}
.faq summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:baseline;
}
.faq summary::-webkit-details-marker{display:none}
.faq[open] summary{margin-bottom:8px}
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .hero-copy h1{font-size: 34px}
}
@media (max-width: 640px){
  .hero{padding-top: 32px}
  .hero-copy h1{font-size: 28px}
}


/* Pricing */
.toggle-btn{
  border:0;
  padding:10px 12px;
  border-radius: 12px;
  background: transparent;
  cursor:pointer;
  font-weight:850;
  color: rgba(15,23,42,.76);
}
.pricing-grid{align-items:stretch}
.pricing-card{display:flex;flex-direction:column;gap:10px}
.pricing-card .plan-title{margin:0; font-size:22px}
.price{
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -.02em;
  display:flex;
  align-items:baseline;
  gap:8px;
  margin: 2px 0 4px;
}
.price.inline{font-size:28px}
.price .currency{font-size: 18px; opacity:.9}
.price .period{font-size: 14px; opacity:.7}
.checklist{margin:0; padding-left:18px; display:grid; gap:8px}
.featured{outline:2px solid rgba(52,95,219,.20); position:relative}
.featured .badge{
  position:absolute; top:14px; right:14px;
  background: rgba(52,95,219,.10);
  border:1px solid rgba(52,95,219,.18);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}
.table-wrap{overflow:auto; border:1px solid var(--line); border-radius:18px; background: rgba(255,255,255,.70)}
table.compare{width:100%; border-collapse:collapse; min-width:720px}
table.compare th, table.compare td{padding:12px 14px; border-bottom:1px solid var(--line); text-align:left}
table.compare thead th{background: rgba(255,255,255,.85)}
table.compare tbody tr:last-child td{border-bottom:0}
@media (max-width: 980px){
  table.compare{min-width:640px}
}


/* About */
.about-hero{padding-top: 26px; padding-bottom: 8px}
.about-hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items:start;
  margin-top: 10px;
}
.about-hero h1{
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}
.about-hero .lead{
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(15,23,42,.82);
  max-width: 75ch;
}
@media (max-width: 980px){
  .about-hero-grid{grid-template-columns:1fr}
  .about-hero h1{font-size: 34px}
}
@media (max-width: 640px){
  .about-hero h1{font-size: 28px}
}


/* Articles Hub */
.hub-filters .pill{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.hub-filters .pill.is-active{
  background: rgba(52,95,219,.12);
  border-color: rgba(52,95,219,.22);
}
.hub-search input[type="search"]{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,.75);
  outline: none;
}


/* Pricing Hover */
.pricing-card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  will-change: transform;
}
.pricing-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(15,23,42,.10);
  border-color: rgba(52,95,219,.22);
}
.pricing-card:hover .plan-title{
  text-decoration: none;
}
.pricing-card:hover .btn{
  transform: translateY(-1px);
}
.pricing-card .btn{
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.pricing-card:hover .btn.secondary{
  background: rgba(52,95,219,.10);
  border-color: rgba(52,95,219,.18);
}
.pricing-card:hover .price{
  letter-spacing: -.015em;
}
.pricing-card.featured:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 54px rgba(15,23,42,.12);
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce){
  .pricing-card, .pricing-card .btn{transition:none}
  .pricing-card:hover{transform:none}
}


/* App UX Refresh */
.app .toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}
.app .toolbar .badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  padding: 6px 10px;
  border-radius: 999px;
}
.app-shell{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items:start;
}
@media (max-width: 980px){
  .app-shell{grid-template-columns:1fr}
}
.sidebar{
  position: sticky;
  top: 92px;
  padding: 14px;
}
@media (max-width: 980px){
  .sidebar{position: static; top:auto}
}
.side-nav{
  display:grid;
  gap: 6px;
  margin-top: 10px;
}
.side-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(15,23,42,.88);
  background: transparent;
  font-weight: 750;
}
.side-nav a:hover{
  background: rgba(52,95,219,.08);
  border-color: rgba(52,95,219,.14);
}
.side-nav a.active{
  background: rgba(52,95,219,.12);
  border-color: rgba(52,95,219,.22);
}
.app .content{
  padding: 14px;
}
.app h1.h1{
  letter-spacing: -.02em;
}
.kpi{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 980px){
  .kpi{grid-template-columns: repeat(2, minmax(0,1fr))}
}
@media (max-width: 520px){
  .kpi{grid-template-columns: 1fr}
}
.kpi .card{
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.kpi .card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(15,23,42,.10);
  border-color: rgba(52,95,219,.18);
}
.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(148,163,184,.25);
  vertical-align: top;
}
.table th{
  text-align:left;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(15,23,42,.62);
  background: rgba(255,255,255,.6);
}
.table tr:last-child td{border-bottom:none}
.table .num{font-variant-numeric: tabular-nums}
.card.pad .actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.input input, .input select, .input textarea{
  width:100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,.75);
}
.input label{
  display:block;
  font-size: 12px;
  letter-spacing:.04em;
  text-transform: uppercase;
  color: rgba(15,23,42,.6);
  margin-bottom: 6px;
  font-weight: 800;
}
.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin: 16px 0 10px;
}
.section-title h2{
  margin:0;
  font-size: 18px;
}
.mini.muted{opacity:.7}


/* Pricing Toggle Animation */
.price.animated{
  position: relative;
}
.price.animated .amount{
  display:inline-block;
  transition: transform .22s ease, opacity .22s ease;
}
.price.animated.is-changing .amount{
  transform: translateY(-6px);
  opacity: 0;
}
.price.animated.is-enter .amount{
  transform: translateY(6px);
  opacity: 0;
}


/* Pricing Benefit Badge */
.pricing-card{
  position: relative;
}
.pricing-card .badge.выгодно{
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(22,163,74,.35);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .22s ease, transform .22s ease;
}
.pricing-card.is-project .badge.выгодно{
  opacity: 1;
  transform: scale(1);
}


/* Pricing Savings */
.savings{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: rgba(15,23,42,.68);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .22s ease, transform .22s ease;
}
.savings.on{
  opacity: 1;
  transform: translateY(0);
}


/* Toggle Slider */
.toggle{
  position: relative;
}
.toggle-inner{
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  overflow: hidden;
}
.toggle-inner .toggle-btn{
  position: relative;
  z-index: 2;
  background: transparent;
}
.toggle-slider{
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 0px);
  height: calc(100% - 8px);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 999px;
  box-shadow:
    0 10px 28px rgba(15,23,42,.22),
    inset 0 0 0 1px rgba(52,95,219,.25);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.toggle.project .toggle-slider{
  transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce){
  .toggle-slider{transition:none}
}


/* Toggle Slider binding */
.pricing-toggle.toggle{
  display: inline-block;
}
.pricing-toggle.toggle .toggle-inner{
  width: 100%;
}


/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}
.modal.is-open{display:flex;}
.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.46);
  backdrop-filter: blur(6px);
}
.modal-dialog{
  position: relative;
  width: min(560px, 100%);
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 22px 80px rgba(15,23,42,.22);
}
.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}
.modal-body{
  padding: 0 16px 16px;
}
.icon-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  cursor: pointer;
  font-weight: 900;
}
.icon-btn:hover{background: rgba(52,95,219,.08); border-color: rgba(52,95,219,.18);}
.toast{
  margin-top: 10px;
  font-weight: 800;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .toast{transition:none}
}


/* Status (Dashboard) */
.status-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.status-title .h2{
  font-size: 18px;
  line-height: 22px;
  margin: 6px 0 0;
  font-weight: 950;
}
.status-title .muted{color: rgba(15,23,42,.65);}
.status-chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.grid-4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
@media (max-width: 1100px){
  .grid-4{grid-template-columns: repeat(2, minmax(0,1fr));}
}
@media (max-width: 640px){
  .grid-4{grid-template-columns:1fr;}
  .status-head{flex-direction:column;}
  .status-chips{justify-content:flex-start;}
}

.kpi .kpi-bar{
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,.25);
  overflow: hidden;
  margin-top: 10px;
}
.kpi .kpi-bar > div{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52,95,219,.85), rgba(52,95,219,.45));
}

.task-list{display:flex; flex-direction:column; gap:10px;}
.task{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 10px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
}
.task-left{display:flex; gap:10px; align-items:flex-start;}
.task-day{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  background: rgba(52,95,219,.10);
  border: 1px solid rgba(52,95,219,.18);
}
.task-title{font-weight: 950;}

.alert-list{display:flex; flex-direction:column; gap:10px;}
.alert{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.65);
}
.alert-ico{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  margin-top: 2px;
}
.alert-title{font-weight: 950; margin-bottom: 2px;}
.alert.warn .alert-ico{background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.25);}
.alert.bad .alert-ico{background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.22);}


/* KPI one-line */
.kpi .value{
  font-size: 20px;
  line-height: 24px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi .panel-title h3{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Infographic */
.infographic{
  margin: 16px 0 18px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.65);
}
.infographic svg{
  width: 100%;
  height: auto;
  display: block;
}
.infographic figcaption{
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 16px;
  color: rgba(15,23,42,.7);
}
.content-article .lead{
  font-size: 16px;
  line-height: 22px;
}
.content-article .article-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color: rgba(15,23,42,.6);
  font-size: 12.5px;
  margin: 8px 0 10px;
}
.content-article ol{
  padding-left: 20px;
}
.content-article li{
  margin: 6px 0;
}
.product-soft{
  margin-top: 18px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(52,95,219,.22);
  background: rgba(52,95,219,.06);
}


/* --- Cabinet: Documents --- */
.mini-card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:16px;
  padding:14px 14px;
  box-shadow: var(--shadow-sm);
}
.pill-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.55);
  color:var(--text);
  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.pill:hover{ transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: rgba(52,95,219,.35); }
.timeline{ display:flex; flex-direction:column; gap:14px; margin-top:10px; }
.t-item{ display:flex; gap:12px; align-items:flex-start; }
.t-item .dot{
  width:10px; height:10px; border-radius:999px; margin-top:7px;
  background: rgba(52,95,219,.65);
  box-shadow: 0 0 0 4px rgba(52,95,219,.15);
}
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed var(--line);
  background: rgba(15,23,42,.04);
  overflow:auto;
  margin-top:10px;
}
/* --- Documents UX v1.7.36b --- */
.doc-head{ padding:18px; }
.doc-head__top{ display:flex; justify-content:space-between; gap:14px; align-items:flex-start; flex-wrap:wrap; }
.doc-head__actions{ display:flex; gap:10px; flex-wrap:wrap; }

.doc-controls{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap:12px;
  margin-top:14px;
}
@media (max-width: 980px){
  .doc-controls{ grid-template-columns: 1fr; }
}
.doc-search input{ width:100%; }

.doc-tabs{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.doc-tab{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.55);
  text-decoration:none;
  color:var(--text);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.doc-tab:hover{ transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: rgba(52,95,219,.35); }
.doc-tab.active{
  background: rgba(52,95,219,.12);
  border-color: rgba(52,95,219,.28);
  font-weight: 700;
}

.doc-stats{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:14px;
}
.stat{
  border:1px solid var(--line);
  background: rgba(255,255,255,.55);
  border-radius:14px;
  padding:10px 12px;
  min-width: 120px;
}
.stat__num{ font-size:18px; font-weight: 850; line-height: 1.1; }
.stat__lbl{ font-size:12.5px; color: rgba(15,23,42,.65); margin-top:2px; }

.doc-grid{ display:flex; flex-direction:column; gap:14px; }
.doc-block{ padding:16px; }

.doc-list{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.doc-list.compact .doc-item{ padding:12px; }

.doc-item{
  display:flex; gap:12px; align-items:flex-start;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background: rgba(255,255,255,.55);
}
.doc-ico{
  width:54px; height:54px;
  border-radius:16px;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-weight: 850;
  background: rgba(15,23,42,.04);
  flex: 0 0 auto;
}
.doc-body{ flex:1 1 auto; min-width: 220px; }
.doc-title{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.doc-meta{ margin-top:6px; font-size: 12.5px; color: rgba(15,23,42,.65); }
.doc-actions{
  display:flex; flex-direction:column; gap:8px;
  align-items:flex-end;
  flex: 0 0 auto;
}
@media (max-width: 720px){
  .doc-item{ flex-direction:column; }
  .doc-actions{ flex-direction:row; align-items:center; justify-content:flex-start; }
}

.photo-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
@media (max-width: 720px){
  .photo-grid{ grid-template-columns: 1fr; }
}
.photo-card{
  display:block;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background: rgba(255,255,255,.55);
  text-decoration:none;
  color: var(--text);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.photo-card:hover{ transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: rgba(52,95,219,.35); }
.photo-card__tag{
  display:inline-flex;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(245,158,11,.10);
  margin-bottom: 10px;
}

.btn-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.subtle{ background: rgba(255,255,255,.35); }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}


/* --- Fix: field inputs styling (Documents) --- */
.field{display:flex;flex-direction:column;gap:6px}
.field > span{font-size:12px;font-weight:900;color:var(--muted)}
.field input,.field select,.field textarea{
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.88);
  outline:none;
  font-weight:650;
}
.field textarea{min-height:110px;resize:vertical}
/* --- Dropzone --- */
.dropzone{
  display:flex;
  gap:12px;
  align-items:center;
  border:1px dashed rgba(52,95,219,.35);
  background: rgba(52,95,219,.06);
  border-radius:16px;
  padding:14px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  user-select:none;
}
.dropzone:focus{ outline: none; box-shadow: 0 0 0 4px rgba(52,95,219,.16); }
.dropzone:hover{ transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: rgba(52,95,219,.45); }
.dropzone.is-dragover{
  background: rgba(52,95,219,.10);
  border-color: rgba(52,95,219,.65);
  box-shadow: 0 0 0 4px rgba(52,95,219,.14);
}
.dropzone__icon{
  width:44px;height:44px;
  border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line);
  background: rgba(255,255,255,.7);
  flex:0 0 auto;
}
.dropzone__title{ line-height:1.25; }
.dropzone__input{ display:none; }
.dropzone__list{ margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.file-pill{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(255,255,255,.75);
}
.file-pill__meta{ font-size:12.5px; color: rgba(15,23,42,.65); margin-top:2px; }
.file-pill__btn{
  border:1px solid var(--line);
  background: rgba(15,23,42,.04);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:800;
}
.file-pill__btn:hover{ box-shadow: var(--shadow-sm); transform: translateY(-1px); }
/* --- Storage pricing blocks --- */
.storage-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
  align-items:stretch;
}
@media (max-width: 980px){
  .storage-grid{ grid-template-columns: 1fr; }
}
.storage-card__head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.storage-packs{ display:flex; flex-direction:column; gap:10px; }

.pack{
  position:relative;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,255,255,.65);
}
.pack.featured{
  border-color: rgba(52,95,219,.30);
  background: rgba(52,95,219,.06);
}
.pack__left{ min-width: 220px; }
.pack__title{ font-weight: 900; font-size: 16px; line-height: 1.2; }
.pack__desc{ margin-top:4px; font-size: 12.5px; color: rgba(15,23,42,.70); line-height: 1.35; }
.pack__right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  flex: 0 0 auto;
}
.pack__price{
  font-weight: 950;
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
}
.pack__price span{
  font-weight: 800;
  font-size: 12.5px;
  color: rgba(15,23,42,.65);
  margin-left:4px;
}
.pack__badge{
  display:inline-flex;
  margin-top:8px;
  font-size: 11.5px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(16,185,129,.12);
  align-self:flex-start;
}
.btn.small{
  padding:9px 12px;
  border-radius:14px;
  font-size: 13px;
}
@media (max-width: 540px){
  .pack{ flex-direction:column; }
  .pack__right{ align-items:flex-start; flex-direction:row; justify-content:space-between; width:100%; }
  .pack__left{ min-width: 0; }
}
/* --- Status KPI layout refinement --- */
.status-kpi-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}
@media (max-width: 900px){
  .status-kpi-grid{
    grid-template-columns: 1fr;
  }
}
.kpi .value{
  margin-top:6px;
  font-size:20px;
  line-height:1.25;
}
.kpi .mini{
  margin-top:8px;
  line-height:1.4;
  display:block;
}


/* --- KPI rows --- */
.kpi-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.kpi-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.55);
}
.kpi-row span{
  color: rgba(15,23,42,.70);
  font-size: 12.5px;
  line-height: 1.35;
}
.kpi-row b{
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1.35;
  text-align:right;
  white-space: normal;
}
@media (max-width: 520px){
  .kpi-row{ flex-direction:column; align-items:flex-start; }
  .kpi-row b{ text-align:left; }
}
