:root{
  --bg:#f4f7ff;
  --bg-soft:#eef3ff;
  --surface:rgba(255,255,255,.88);
  --surface-strong:#ffffff;
  --text:#1f2550;
  --muted:#6c7397;
  --line:rgba(67,89,159,.12);
  --line-strong:rgba(67,89,159,.2);
  --blue:#2f6bdf;
  --violet:#7b35cf;
  --magenta:#cc3f97;
  --green:#22b573;
  --red:#e05a72;
  --amber:#d89b2d;
  --radius-xl:32px;
  --radius-lg:24px;
  --radius-md:18px;
  --radius-sm:14px;
  --shadow-lg:0 28px 80px rgba(59,91,187,.16);
  --shadow-md:0 16px 40px rgba(55,83,173,.12);
  --shadow-sm:0 10px 22px rgba(70,94,177,.08);
  --gradient-brand:linear-gradient(90deg, var(--violet) 0%, var(--magenta) 38%, var(--blue) 100%);
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  color:var(--text);
  font-family:"Avenir Next","Trebuchet MS","Segoe UI",sans-serif;
  background:
    radial-gradient(1200px 480px at 5% -10%, rgba(47,107,223,.14), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(204,63,151,.12), transparent 58%),
    linear-gradient(180deg, #f7f9ff 0%, #f0f4ff 42%, #eef3ff 100%);
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

.page-ambient{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(800px 340px at 15% 20%, rgba(123,53,207,.08), transparent 65%),
    radial-gradient(720px 320px at 85% 10%, rgba(47,107,223,.08), transparent 65%),
    radial-gradient(900px 360px at 50% 100%, rgba(204,63,151,.05), transparent 68%);
}

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:10px;
  padding:14px 22px;
  margin:18px auto 0;
  width:min(1380px, calc(100% - 28px));
  border:1px solid rgba(255,255,255,.8);
  border-radius:24px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(24px);
  box-shadow:0 18px 50px rgba(82,108,196,.12);
}

.header-meta{
  display:flex;
  justify-content:flex-end;
  min-width:0;
}

.header-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-width:0;
}

.brand-lockup{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  min-width:160px;
}

.brand-logo-full{
  width:175px;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 10px 18px rgba(95,93,177,.12));
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  flex:1 1 auto;
  flex-wrap:nowrap;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.site-nav::-webkit-scrollbar{
  display:none;
}

.site-nav-btn{
  flex:0 0 auto;
  min-height:36px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid rgba(87,105,179,.16);
  background:rgba(245,248,255,.9);
  color:#34416f;
  cursor:pointer;
  font:inherit;
  font-size:12.5px;
  font-weight:800;
  white-space:nowrap;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.site-nav-btn:hover{
  transform:translateY(-1px);
}

.site-nav-btn.is-active{
  color:#fff;
  background:var(--gradient-brand);
  border-color:transparent;
  box-shadow:0 12px 22px rgba(85,83,186,.18);
}

.field-help{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.statusline{
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  max-width:100%;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.statusline::-webkit-scrollbar{
  display:none;
}

.header-account{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
  min-width:0;
  margin-left:auto;
}

.header-account-shell{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex-wrap:nowrap;
}

.header-account-name{
  max-width:170px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:13px;
  font-weight:900;
  color:#24305e;
}

.header-role-switch{
  display:flex;
  align-items:center;
}

.header-role-select{
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(87,105,179,.16);
  background:rgba(245,248,255,.95);
  color:#30406f;
  font:inherit;
  font-size:12px;
  font-weight:800;
  box-shadow:var(--shadow-sm);
  flex:0 0 auto;
}

.header-role-select:focus{
  outline:none;
  border-color:rgba(94,91,194,.42);
  box-shadow:0 0 0 4px rgba(94,91,194,.1);
}

.header-logout-btn{
  min-height:36px;
  padding:0 12px;
  font-size:12px;
  flex:0 0 auto;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(91,110,182,.12);
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 8px 18px rgba(76,102,185,.08);
  white-space:nowrap;
}

.pill.ok{color:#116841;background:rgba(34,181,115,.12);border-color:rgba(34,181,115,.24)}
.pill.bad{color:#ac2646;background:rgba(224,90,114,.12);border-color:rgba(224,90,114,.24)}
.pill.warn{color:#8f5e00;background:rgba(216,155,45,.14);border-color:rgba(216,155,45,.24)}
.pill.muted{color:var(--muted)}

.page{
  width:min(1380px, calc(100% - 28px));
  margin:26px auto 52px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:800;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  color:#fff;
  background:var(--gradient-brand);
  box-shadow:0 14px 26px rgba(85,83,186,.22);
}

.btn-secondary{
  color:#30406f;
  background:rgba(245,248,255,.95);
  border-color:rgba(87,105,179,.14);
  box-shadow:var(--shadow-sm);
}

.account-shell{
  margin-bottom:22px;
  padding:28px 32px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg, rgba(255,255,255,.97), rgba(246,249,255,.95));
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(255,255,255,.9);
}

.account-head{
  margin-bottom:18px;
}

.account-head.is-hidden{
  display:none;
}

.account-shell.is-authenticated{
  padding-top:22px;
}

.account-title-group{
  max-width:760px;
}

.account-title-group h1{
  margin:18px 0 12px;
  font-size:clamp(28px, 3.3vw, 42px);
  line-height:1;
  letter-spacing:-.04em;
}

.account-lead{
  margin:0;
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
}

.account-panel{
  min-height:120px;
}

.auth-shell,
.profile-card{
  padding:22px;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow-md);
}

.public-auth-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(360px, .9fr);
  gap:22px;
  align-items:start;
}

.public-landing{
  display:grid;
  gap:18px;
}

.public-hero,
.public-card{
  padding:24px;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow-md);
}

.public-hero{
  background:
    radial-gradient(540px 240px at 0% 0%, rgba(123,53,207,.14), transparent 68%),
    radial-gradient(520px 220px at 100% 100%, rgba(47,107,223,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.95));
}

.public-hero-title{
  margin:18px 0 12px;
  font-size:clamp(30px, 3.4vw, 44px);
  line-height:.98;
  letter-spacing:-.045em;
}

.public-hero-text{
  margin:0;
  max-width:760px;
  color:var(--muted);
  font-size:17px;
  line-height:1.65;
}

.public-hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.public-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.public-card h3{
  margin:0 0 14px;
  font-size:22px;
  line-height:1.1;
  letter-spacing:-.03em;
}

.public-list,
.public-steps-list{
  margin:0;
  padding-left:20px;
  color:#364373;
  line-height:1.7;
}

.public-list li + li,
.public-steps-list li + li{
  margin-top:8px;
}

.public-steps{
  background:linear-gradient(180deg, rgba(244,247,255,.95), rgba(255,255,255,.98));
}

.public-steps-list a,
.field-help a{
  color:var(--blue);
  font-weight:800;
}

.public-legal-card{
  margin-top:18px;
  padding:18px;
  border-radius:20px;
  background:rgba(244,248,255,.92);
  border:1px solid rgba(87,105,179,.14);
}

.public-legal-card h3{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.1;
  letter-spacing:-.03em;
}

.public-legal-text{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.public-legal-links{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:16px;
}

.public-legal-link{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0 14px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(87,105,179,.14);
  color:#31406d;
  font-weight:800;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.public-legal-link:hover{
  transform:translateY(-1px);
  border-color:rgba(94,91,194,.28);
  box-shadow:0 14px 28px rgba(71,95,177,.12);
}

.legal-page{
  padding:26px 14px 48px;
}

.legal-shell{
  width:min(980px, 100%);
  margin:0 auto;
}

.legal-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.legal-back{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(87,105,179,.14);
  font-weight:800;
  color:#31406d;
  box-shadow:var(--shadow-sm);
}

.legal-doc{
  padding:28px 32px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.96));
  border:1px solid rgba(255,255,255,.94);
  box-shadow:var(--shadow-lg);
}

.legal-kicker{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  color:#fff;
  background:var(--gradient-brand);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.legal-doc h1{
  margin:16px 0 12px;
  font-size:clamp(30px, 4vw, 44px);
  line-height:1;
  letter-spacing:-.045em;
}

.legal-doc h2{
  margin:28px 0 12px;
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.03em;
}

.legal-doc p,
.legal-doc li{
  color:#33416f;
  line-height:1.7;
}

.legal-doc ul,
.legal-doc ol{
  margin:12px 0 0;
  padding-left:22px;
}

.legal-doc li + li{
  margin-top:8px;
}

.legal-meta,
.legal-note{
  margin-top:16px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(47,107,223,.08);
  border:1px solid rgba(47,107,223,.14);
  color:#375083;
}

.legal-nav{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:22px;
}

.legal-nav a{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0 14px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(87,105,179,.14);
  font-weight:800;
  color:#31406d;
}

.auth-tabs{
  display:flex;
  gap:10px;
  margin-bottom:18px;
}

.auth-tab{
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(87,105,179,.16);
  background:rgba(245,248,255,.9);
  color:#34416f;
  cursor:pointer;
  font-weight:800;
}

.auth-tab.is-active{
  color:#fff;
  background:var(--gradient-brand);
  border-color:transparent;
  box-shadow:0 12px 22px rgba(85,83,186,.18);
}

.auth-form{
  display:block;
}

.auth-body{
  display:grid;
  gap:14px;
}

.consent-list{
  display:grid;
  gap:10px;
  margin-top:16px;
}

.consent-row{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(245,248,255,.92);
  border:1px solid rgba(87,105,179,.14);
  color:#33436f;
  line-height:1.55;
}

.consent-row input{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin-top:2px;
}

.consent-row a{
  color:#4a59d7;
  font-weight:700;
  text-decoration:none;
}

.consent-row a:hover{
  text-decoration:underline;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field-grow{
  flex:1 1 320px;
}

.field-compact{
  flex:0 0 240px;
}

.field-label{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.field input,
.field select{
  width:100%;
  min-height:48px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(87,105,179,.16);
  background:#fff;
  color:#24305e;
  font:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.field input:focus,
.field select:focus{
  outline:none;
  border-color:rgba(94,91,194,.42);
  box-shadow:0 0 0 4px rgba(94,91,194,.1);
}

.auth-note,
.auth-message{
  margin-top:14px;
  padding:14px 16px;
  border-radius:16px;
  line-height:1.55;
  font-size:14px;
}

.auth-note{
  background:rgba(47,107,223,.08);
  border:1px solid rgba(47,107,223,.14);
  color:#375083;
}

.auth-message.ok{
  background:rgba(34,181,115,.1);
  border:1px solid rgba(34,181,115,.2);
  color:#116841;
}

.auth-message.bad{
  background:rgba(224,90,114,.1);
  border:1px solid rgba(224,90,114,.2);
  color:#a12c48;
}

.account-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.subscription-card{
  margin-top:18px;
}

.profile-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.profile-name{
  font-size:28px;
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.03em;
}

.profile-meta{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.profile-meta-row{
  color:#38456f;
  line-height:1.5;
}

.profile-form{
  margin-top:18px;
}

.profile-section-title{
  margin:0 0 16px;
  font-size:24px;
  line-height:1.1;
  letter-spacing:-.03em;
}

.profile-dashboard{
  padding:22px;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow-md);
  margin-bottom:18px;
}

.profile-dashboard-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.profile-dashboard-copy{
  max-width:760px;
}

.profile-dashboard-title{
  margin:12px 0 10px;
  font-size:32px;
  line-height:1;
  letter-spacing:-.04em;
}

.profile-dashboard-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:12px;
}

.dashboard-metric-card{
  min-height:110px;
}

.metric-note{
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.period-switcher{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.period-switch-btn{
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(87,105,179,.16);
  background:rgba(245,248,255,.92);
  color:#34416f;
  cursor:pointer;
  font:inherit;
  font-weight:800;
  white-space:nowrap;
}

.period-switch-btn.is-active{
  color:#fff;
  background:var(--gradient-brand);
  border-color:transparent;
  box-shadow:0 12px 22px rgba(85,83,186,.16);
}

.profile-dashboard-note{
  margin-top:18px;
}

.profile-feed-shell{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid rgba(87,105,179,.12);
}

.workspace-feed-shell{
  margin-top:0;
}

.profile-feed-empty{
  margin-top:22px;
}

.workspace-tabs{
  margin-top:22px;
  margin-bottom:18px;
}

.products-search-form{
  flex:1 1 320px;
}

.products-shell{
  padding:20px 22px;
}

.products-shell .feed-head{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  align-items:start;
  gap:12px;
  margin-bottom:16px;
}

.products-shell .feed-title-group{
  max-width:none;
}

.products-shell .feed-head h1{
  margin:0 0 8px;
  font-size:clamp(28px, 3vw, 42px);
  line-height:1.02;
}

.products-shell .feed-lead{
  max-width:none;
  font-size:15px;
  line-height:1.55;
}

.products-shell .feed-summary{
  width:100%;
  min-width:0;
  padding:12px 14px;
  border-radius:16px;
  font-size:13px;
  line-height:1.45;
}

.products-shell .admin-tools{
  margin-bottom:12px;
}

.field-full{
  width:100%;
}

.admin-shell{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid rgba(87,105,179,.12);
}

.admin-head{
  margin-bottom:14px;
}

.admin-title{
  margin:0;
  font-size:24px;
  line-height:1.1;
  letter-spacing:-.03em;
}

.admin-lead{
  margin-top:8px;
  color:var(--muted);
  line-height:1.6;
}

.admin-users-wrap{
  margin-top:16px;
}

.admin-tools{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
  align-items:flex-end;
}

.admin-user-list{
  display:grid;
  gap:12px;
}

.admin-user-row{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  gap:14px;
  align-items:start;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(246,249,255,.92);
  border:1px solid rgba(87,105,179,.12);
  cursor:pointer;
}

.admin-user-check{
  width:18px;
  height:18px;
  margin-top:3px;
}

.admin-user-main{
  min-width:0;
}

.admin-user-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.admin-user-title{
  font-size:16px;
  font-weight:900;
  line-height:1.35;
  color:#24305e;
}

.admin-user-meta{
  margin-top:4px;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}

.admin-empty{
  padding:18px;
  border-radius:16px;
  background:rgba(246,249,255,.92);
  border:1px dashed rgba(87,105,179,.18);
  color:var(--muted);
}

.broadcast-form{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.broadcast-textarea{
  width:100%;
  min-height:140px;
  resize:vertical;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(87,105,179,.16);
  background:#fff;
  color:#24305e;
  font:inherit;
  line-height:1.55;
}

.broadcast-textarea:focus{
  outline:none;
  border-color:rgba(94,91,194,.42);
  box-shadow:0 0 0 4px rgba(94,91,194,.1);
}

.feed-shell{
  padding:24px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg, rgba(255,255,255,.97), rgba(246,249,255,.95));
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(255,255,255,.9);
}

.feed-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:20px;
}

.feed-title-group{
  max-width:760px;
}

.section-kicker{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 14px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#fff;
  background:var(--gradient-brand);
  box-shadow:0 14px 30px rgba(78,86,184,.18);
}

.feed-head h1{
  margin:18px 0 12px;
  font-size:clamp(32px, 4vw, 52px);
  line-height:.98;
  letter-spacing:-.04em;
}

.feed-lead{
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.6;
}

.feed-summary{
  flex:0 0 auto;
  padding:14px 16px;
  min-width:260px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(47,107,223,.1), rgba(123,53,207,.08) 54%, rgba(204,63,151,.08));
  border:1px solid rgba(86,104,183,.14);
  box-shadow:var(--shadow-sm);
  color:#324072;
  font-size:14px;
  font-weight:700;
  line-height:1.5;
}

.feed-list{
  display:grid;
  gap:14px;
}

.feed-card{
  padding:18px;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow-md);
}

.critical-feed-card{
  border-color:rgba(224,90,114,.3);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,241,244,.95));
  box-shadow:0 18px 40px rgba(224,90,114,.12);
}

.missing-cost-card{
  border-color:rgba(224,90,114,.28);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,245,247,.96));
  box-shadow:0 16px 42px rgba(224,90,114,.12);
}

.feed-card-head{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}

.meta-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.01em;
  border:1px solid rgba(91,110,182,.12);
  background:rgba(237,242,255,.88);
  color:#44507d;
}

.meta-badge.ok{background:rgba(34,181,115,.14);border-color:rgba(34,181,115,.24);color:#116841}
.meta-badge.bad{background:rgba(224,90,114,.14);border-color:rgba(224,90,114,.24);color:#a12c48}
.meta-badge.warn{background:rgba(216,155,45,.16);border-color:rgba(216,155,45,.24);color:#8d5a00}
.meta-badge.muted{background:rgba(237,242,255,.88);border-color:rgba(91,110,182,.12);color:#44507d}

.feed-card-top{
  display:grid;
  grid-template-columns:112px minmax(0, 1fr);
  gap:16px;
  align-items:start;
}

.product-media{
  width:112px;
  aspect-ratio:1/1;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(180deg, #fff, #eef3ff);
  border:1px solid rgba(83,102,178,.14);
  box-shadow:0 10px 18px rgba(71,94,175,.08);
}

.product-media-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.product-image{
  width:100%;
  height:100%;
  object-fit:cover;
}

.feed-card-body{
  min-width:0;
}

.feed-card-time{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  margin-bottom:8px;
}

.feed-card-title{
  margin:0 0 8px;
  font-size:24px;
  line-height:1.08;
  letter-spacing:-.03em;
}

.feed-card-subtitle,
.feed-card-context{
  color:var(--muted);
  line-height:1.55;
}

.feed-card-subtitle{
  font-size:13px;
  font-weight:700;
}

.feed-card-context{
  margin-top:6px;
  font-size:13px;
}

.product-cost-editor{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(87,105,179,.12);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 10px;
}

.product-cost-form{
  flex:1 0 100%;
  margin-top:4px;
}

.product-stock-editor{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(87,105,179,.12);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 10px;
}

.product-stock-form{
  flex:1 0 100%;
  margin-top:4px;
}

.item-action-panel{
  display:grid;
  gap:12px;
}

.product-price-editor{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(87,105,179,.12);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 10px;
}

.price-target-note{
  flex:1 0 100%;
  margin-top:4px;
  color:#5f678d;
  line-height:1.5;
  font-size:13px;
}

.inline-action-status{
  flex:1 0 100%;
  margin-top:2px;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
  line-height:1.5;
  border:1px solid transparent;
}

.inline-action-status.ok{
  color:#18543d;
  background:rgba(71, 177, 120, .12);
  border-color:rgba(71, 177, 120, .22);
}

.inline-action-status.warn{
  color:#7a5610;
  background:rgba(255, 210, 102, .16);
  border-color:rgba(235, 183, 63, .28);
}

.inline-action-status.bad{
  color:#8a2230;
  background:rgba(224, 90, 114, .12);
  border-color:rgba(224, 90, 114, .22);
}

.inline-action-status.muted{
  color:#546080;
  background:rgba(87, 105, 179, .08);
  border-color:rgba(87, 105, 179, .16);
}

.task-beacon{
  margin-bottom:18px;
  padding:22px 24px;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(224,90,114,.12), rgba(255,255,255,.96));
  border:1px solid rgba(224,90,114,.18);
  box-shadow:0 14px 30px rgba(224,90,114,.08);
}

.task-beacons{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.critical-profit-beacon{
  background:linear-gradient(135deg, rgba(255,198,78,.18), rgba(255,255,255,.96));
  border-color:rgba(218,154,42,.22);
  box-shadow:0 14px 30px rgba(216,155,45,.12);
}

.task-beacon-kicker{
  color:#a12c48;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.task-beacon-title{
  margin:10px 0 8px;
  font-size:28px;
  line-height:1.08;
  letter-spacing:-.03em;
}

.task-beacon-text{
  margin:0;
  color:#5f678d;
  line-height:1.6;
}

.metrics-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:10px;
  margin-top:14px;
}

.metric-card{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(246,249,255,.92);
  border:1px solid rgba(87,105,179,.12);
  min-height:72px;
}

.metric-card.ok{
  background:rgba(34,181,115,.08);
  border-color:rgba(34,181,115,.2);
}

.metric-card.bad{
  background:rgba(224,90,114,.08);
  border-color:rgba(224,90,114,.2);
}

.metric-card.warn{
  background:rgba(216,155,45,.1);
  border-color:rgba(216,155,45,.22);
}

.metric-label{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.metric-value{
  margin-top:6px;
  font-size:17px;
  line-height:1.2;
  font-weight:900;
  color:#233061;
}

.item-action-panel .account-actions{
  margin-top:0;
  gap:8px;
}

.item-action-panel .account-actions .btn{
  min-height:36px;
  padding:0 14px;
  font-size:12px;
  box-shadow:none;
}

.feed-empty{
  padding:34px 26px;
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.86);
  border:1px dashed rgba(91,110,182,.22);
  text-align:center;
}

.feed-empty-title{
  font-size:22px;
  font-weight:900;
}

.feed-empty-text{
  margin-top:10px;
  color:var(--muted);
  line-height:1.6;
}

.feed-hint{
  margin:20px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.section-pager-wrap{
  margin-top:18px;
}

.section-pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(246,249,255,.92);
  border:1px solid rgba(87,105,179,.12);
}

.section-pager-info{
  color:#31406d;
  font-size:14px;
  font-weight:800;
  text-align:center;
}

@media (max-width: 1180px){
  .site-header{
    gap:12px;
  }

  .header-meta{
    justify-content:flex-start;
  }

  .header-main{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .site-nav{
    width:100%;
    order:3;
  }

  .statusline{
    justify-content:flex-start;
  }

  .header-account{
    width:auto;
    justify-content:flex-end;
  }

  .feed-head{
    flex-direction:column;
    align-items:stretch;
  }

  .feed-summary{
    min-width:0;
  }

  .form-grid{
    grid-template-columns:1fr 1fr;
  }

  .public-auth-layout,
  .public-grid,
  .public-legal-links,
  .legal-nav{
    grid-template-columns:1fr;
  }

  .field-grow,
  .field-compact{
    flex:1 1 100%;
  }

  .admin-user-row{
    grid-template-columns:auto minmax(0, 1fr);
  }

  .metrics-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .profile-dashboard-head{
    flex-direction:column;
    align-items:stretch;
  }

  .profile-dashboard-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .task-beacons{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  .site-header,
  .page{
    width:min(100% - 18px, 100%);
  }

  .site-header{
    margin-top:10px;
    padding:12px;
    gap:12px;
  }

  .header-meta{
    width:100%;
  }

  .brand-logo-full{
    width:148px;
  }

  .header-main{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .header-account{
    width:100%;
    justify-content:flex-start;
    margin-left:0;
  }

  .header-account-shell{
    width:100%;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:8px;
  }

  .header-account-name{
    width:100%;
    max-width:none;
    font-size:15px;
  }

  .header-role-switch{
    flex:1 1 180px;
  }

  .header-role-select{
    width:100%;
    min-height:40px;
    font-size:13px;
  }

  .header-logout-btn{
    min-height:40px;
    padding:0 16px;
  }

  .statusline{
    width:100%;
    justify-content:flex-start;
    gap:6px;
    padding-bottom:2px;
  }

  .pill{
    min-height:24px;
    padding:4px 8px;
    font-size:10px;
  }

  .site-nav{
    gap:6px;
    width:100%;
  }

  .site-nav-btn{
    min-height:32px;
    padding:0 10px;
    font-size:11.5px;
  }

  .feed-shell{
    padding:18px 16px;
  }

  .products-shell{
    padding:18px 16px;
  }

  .account-shell{
    padding:18px 16px;
  }

  .account-title-group h1{
    font-size:30px;
  }

  .account-lead{
    font-size:15px;
    line-height:1.55;
  }

  .feed-card{
    padding:16px;
  }

  .feed-card-top{
    grid-template-columns:1fr;
    gap:16px;
  }

  .product-media{
    width:100%;
    max-width:150px;
  }

  .feed-card-title{
    font-size:22px;
  }

  .feed-card-head{
    gap:8px;
    margin-bottom:14px;
  }

  .meta-badge{
    min-height:32px;
    padding:6px 10px;
    font-size:11px;
  }

  .feed-card-time{
    font-size:12px;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .auth-tabs{
    gap:8px;
    flex-wrap:wrap;
  }

  .auth-tab{
    min-height:38px;
    padding:0 14px;
  }

  .field input,
  .field select,
  .broadcast-textarea{
    font-size:16px;
  }

  .public-hero,
  .public-card{
    padding:20px;
  }

  .public-legal-card,
  .legal-doc{
    padding:20px;
  }

  .public-hero-title{
    font-size:30px;
  }

  .public-hero-actions,
  .account-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .public-hero-actions .btn,
  .account-actions .btn{
    width:100%;
  }

  .metrics-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .item-action-panel .account-actions{
    display:flex;
    grid-template-columns:none;
    gap:8px;
  }

  .item-action-panel .account-actions .btn{
    width:auto;
    flex:0 1 auto;
    min-height:34px;
    padding:0 12px;
    font-size:11.5px;
  }

  .item-action-panel .inline-action-status,
  .item-action-panel .price-target-note,
  .item-action-panel .product-cost-form,
  .item-action-panel .product-stock-form{
    flex-basis:100%;
  }

  .profile-dashboard-grid{
    grid-template-columns:1fr;
  }

  .period-switcher{
    justify-content:flex-start;
  }

  .profile-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .task-beacon{
    padding:18px;
  }

  .task-beacon-title{
    font-size:24px;
  }

  .metric-value{
    font-size:18px;
  }

  .admin-user-row{
    grid-template-columns:1fr;
  }

  .admin-user-actions{
    justify-content:flex-start;
  }

  .section-pager{
    flex-direction:column;
    align-items:stretch;
  }

  .section-pager .btn{
    width:100%;
  }
}
