:root{
  --serenia-primary:#80B3F2;
  --serenia-bg:#ffffff;
  --serenia-surface:#f2f2f7;
  --serenia-border:#e5e5ea;
  --serenia-text:#000000;
  --serenia-text-secondary:rgba(60,60,67,.6);
  --serenia-shadow-1:0 2px 4px rgba(0,0,0,.05);
  --serenia-shadow-2:0 5px 10px rgba(0,0,0,.05);
  --serenia-nav:#0b1020;
  --serenia-nav-border:rgba(255,255,255,.08);
  --serenia-hero-1:#2b2f83;
  --serenia-hero-2:#1c1f55;
  --serenia-hero-3:rgba(128,179,242,.55);
  --r-8:8px;
  --r-10:10px;
  --r-12:12px;
  --r-16:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-rounded,system-ui,-apple-system,"SF Pro Rounded","SF Pro Display",sans-serif;
  color:var(--serenia-text);
  font-weight:400;
  background:var(--serenia-bg);
}

a{color:inherit;text-decoration:none}

.app{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:linear-gradient(180deg, rgba(11,16,32,.96), rgba(11,16,32,.9));
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--serenia-nav-border);
}

.topbar-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
  font-weight:400;
  color:#fff;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-name{
  font-size:20px;
}

.brand-claim{
  margin-top:2px;
  font-size:12px;
  color:rgba(255,255,255,.72);
  font-weight:400;
}

.brand-badge{
  width:34px;
  height:34px;
  border-radius:10px;
  background-image:url("/img/icona.png");
  background-size:contain;
  background-position:center;
  background-repeat:no-repeat;
  box-shadow:var(--serenia-shadow-1);
}

.top-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.pill{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:400;
  font-size:14px;
  transition:transform .15s ease, background .15s ease;
}

.pill.primary{
  border:none;
  background:rgba(255,255,255,.92);
  color:rgba(11,16,32,.96);
}

.pill:active{transform:translateY(1px)}

.container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:0px 0 90px;
}

.container > :not(.hero-wrap):not(.article-hero){
  padding-left:16px;
  padding-right:16px;
}

.hero-wrap{
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:150px 0px 150px 0px;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:rgba(11,16,32,.96);
  box-shadow:0 22px 70px rgba(11,16,32,.35);
  color:#fff;
}

.hero{
  max-width:1100px;
  margin:0 auto;
  padding:44px 6px 34px;
  position:relative;
  z-index:2;
}

.hero-wrap::before{
  content:"";
  position:absolute;
  inset:-40px;
  pointer-events:none;
  background-image:url("https://coreva-normal.trae.ai/api/ide/v1/text_to_image?prompt=photorealistic%2C%20elderly%20couple%20at%20home%20with%20a%20female%20nurse%20standing%20beside%20them%2C%20warm%20caring%20mood%2C%20soft%20natural%20light%2C%20shallow%20depth%20of%20field%2C%20bokeh%2C%20high%20detail%2C%20website%20hero%20background%2C%20composition%20with%20negative%20space%20on%20left%2C%20no%20text%2C%20no%20watermark&image_size=landscape_16_9");
  background-size:cover;
  background-position:80% 40%;
  filter:blur(10px) saturate(1.15) contrast(1.06);
  opacity:.82;
  transform:scale(1.06);
  z-index:0;
}

.hero-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(1200px 560px at 18% -10%, rgba(128,179,242,.38), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(43,47,131,.28), transparent 58%),
    linear-gradient(90deg, rgba(43,47,131,.78), rgba(11,16,32,.72) 55%, rgba(128,179,242,.18));
  z-index:1;
}

@media (max-width:680px){
  .hero-wrap{padding:0 16px}
}

.hero-title{
  font-size:40px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.02em;
  margin:0 0 6px 0;
}

.hero-subtitle{
  margin:10px 0 0 0;
  color:rgba(255,255,255,.8);
  font-size:18px;
  font-weight:400;
}

.row{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:14px;
}

.input{
  width:100%;
  padding:14px 14px;
  border-radius:var(--r-12);
  border:1px solid var(--serenia-border);
  background:#fff;
  color:var(--serenia-text);
  outline:none;
  font-size:16px;
  box-shadow:var(--serenia-shadow-1);
}

.input:focus{
  border-color:rgba(128,179,242,.55);
  box-shadow:0 0 0 4px rgba(128,179,242,.18), var(--serenia-shadow-1);
}

select.input{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  padding-right:44px;
  background-color:#fff;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(11,16,32,0.65)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px 18px;
}

.pw{
  position:relative;
}

.pw .input{
  padding-right:46px;
}

.pw-btn{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(11,16,32,.72);
}

.pw-btn .icon{
  width:18px;
  height:18px;
}

.pw-btn:active{
  transform:translateY(-50%) scale(.98);
}

.hero .pw-btn{
  color:rgba(255,255,255,.9);
}

.hero .input{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:#fff;
  box-shadow:0 10px 30px rgba(11,16,32,.28);
}

.hero .input::placeholder{color:rgba(255,255,255,.6)}

.hero select.input{
  background-color:rgba(255,255,255,.08);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}

.btn{
  border:0;
  border-radius:var(--r-12);
  padding:14px 16px;
  font-weight:400;
  font-size:16px;
  background:linear-gradient(180deg, rgba(128,179,242,1), rgba(128,179,242,.85));
  color:#fff;
  box-shadow:0 12px 30px rgba(128,179,242,.28);
  cursor:pointer;
  transition:transform .15s ease, filter .15s ease;
}

.btn:active{transform:translateY(1px);filter:saturate(1.1)}

.btn.dirty{
  background:linear-gradient(180deg, rgba(80,140,220,1), rgba(80,140,220,.88));
  box-shadow:0 12px 30px rgba(80,140,220,.34);
}

.btn.secondary{
  background:var(--serenia-surface);
  color:var(--serenia-text);
  border:1px solid var(--serenia-border);
  box-shadow:var(--serenia-shadow-1);
}

.btn.secondary.dirty{
  background:rgba(11,16,32,.06);
  border-color:rgba(11,16,32,.18);
  color:rgba(11,16,32,.92);
}

.hero .btn.secondary{
  background:rgba(255,255,255,.1);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 26px rgba(11,16,32,.22);
}

.section{
  margin-top:18px;
}

.section-title{
  font-size:20px;
  font-weight:800;
  margin:0 0 10px 0;
}

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

@media (min-width:720px){
  .grid{grid-template-columns:repeat(3, minmax(0, 1fr))}
}

.cat{
  border-radius:var(--r-12);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.55);
  padding:14px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 18px 50px rgba(11,16,32,.10);
  backdrop-filter:saturate(180%) blur(10px);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.cat:hover{transform:translateY(-1px);box-shadow:0 20px 60px rgba(11,16,32,.14)}

.cat-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  background:rgba(11,16,32,.06);
  border:1px solid rgba(11,16,32,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(11,16,32,.92);
}

.cat-content{
  flex:1;
  min-width:0;
}

.cat-check{
  margin-left:auto;
  transform:scale(1.1);
}

.icon{
  width:20px;
  height:20px;
  display:block;
}

.cat-icon .icon{
  width:18px;
  height:18px;
}

.cat-name{
  font-weight:400;
}

.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.card{
  border-radius:var(--r-16);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.7);
  box-shadow:0 18px 55px rgba(11,16,32,.10);
  backdrop-filter:saturate(180%) blur(12px);
  transition:transform .15s ease, box-shadow .15s ease;
}
.card:hover{transform:translateY(-1px);box-shadow:0 22px 70px rgba(11,16,32,.14)}

.pro-card{
  display:flex;
  gap:22px;
  padding:22px;
  align-items:flex-start;
}

.pro-left{
  flex:0 0 auto;
}

.pro-avatar{
  width:88px;
  height:88px;
  border-radius:999px;
  border:1px solid rgba(11,16,32,.10);
  background:#fff;
  box-shadow:0 12px 28px rgba(11,16,32,.10);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(11,16,32,.92);
}

.pro-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.avatar-fallback{
  background:rgba(255,255,255,.92);
  color:rgba(11,16,32,.92);
  font-weight:900;
  letter-spacing:.02em;
}

.pro-body{
  flex:1;
  min-width:0;
}

.pro-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.pro-name{
  font-size:20px;
  font-weight:900;
  margin:0;
}

.pro-title{
  margin-top:6px;
  font-weight:400;
  color:var(--serenia-text-secondary);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

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

.pro-rating{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:400;
}

.pro-chips{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.pro-chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:10px;
  background:rgba(128,179,242,.14);
  border:1px solid rgba(128,179,242,.18);
  color:rgba(11,16,32,.92);
  font-weight:400;
  font-size:12px;
}

.pro-chip-verified{
  background:rgba(52,199,89,.14);
  border:1px solid rgba(52,199,89,.18);
  color:#1b7f3a;
}

.pro-right{
  width:220px;
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:14px;
}

.pro-facts{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:10px;
  color:rgba(11,16,32,.86);
  font-weight:400;
}

.pro-fact strong{
  font-weight:900;
}

.pro-cta{
  width:100%;
}

@media (max-width:820px){
  .pro-right{width:180px}
}

@media (max-width:680px){
  .pro-card{flex-direction:column;align-items:stretch}
  .pro-right{width:100%;align-items:stretch}
  .pro-head{flex-direction:column;align-items:flex-start}
  .pro-badges{justify-content:flex-start}
  .pro-title{white-space:normal}
}

.pro-row{
  display:flex;
  gap:12px;
  padding:12px;
  cursor:pointer;
}

.pro-img{
  width:92px;
  height:92px;
  border-radius:14px;
  border:1px solid var(--serenia-border);
  background:#fff;
  flex:0 0 auto;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(11,16,32,.92);
}

.pro-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pro-main{
  min-width:0;
  flex:1;
}

.pro-name{
  font-size:18px;
  font-weight:900;
  margin:0;
}

.pro-meta{
  margin-top:4px;
  color:var(--serenia-text-secondary);
  font-weight:400;
  font-size:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--serenia-border);
  font-weight:400;
  font-size:12px;
}

.badge.verified{
  border:0;
  background:rgba(52,199,89,.15);
  color:#1b7f3a;
}

.rating{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:400;
}

.divider{
  height:1px;
  background:var(--serenia-border);
}

.detail{
  padding:16px;
}

.detail-title{
  margin:0;
  font-size:22px;
  font-weight:900;
}

.muted{color:var(--serenia-text-secondary)}

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.sectors-block{
  margin-top:4px;
}

.privacy-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  color:var(--serenia-text-secondary);
}

.privacy-row .db-link{
  font-weight:600;
}

.privacy-row input{
  margin-top:3px;
}

.policy{
  color:rgba(60,60,67,.86);
}

.policy h3{
  margin:18px 0 8px;
  font-size:16px;
  font-weight:900;
  color:rgba(11,16,32,.92);
}

.policy ul{
  margin:8px 0 0 18px;
}

.policy li{
  margin:6px 0;
}

.textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
  padding:14px;
  border-radius:var(--r-12);
  border:1px solid var(--serenia-border);
  background:#fff;
  font-size:16px;
  box-shadow:var(--serenia-shadow-1);
  outline:none;
}

.dash{
  display:grid;
  grid-template-columns:280px minmax(0, 1fr);
  gap:14px;
  align-items:start;
}

.dash-side{
  border-radius:var(--r-16);
  background:linear-gradient(180deg, rgba(11,16,32,.96), rgba(11,16,32,.92));
  border:1px solid var(--serenia-nav-border);
  color:#fff;
  padding:14px;
}

.dash-user{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:var(--r-12);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

.dash-avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.dash-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.dash-meta{
  min-width:0;
}

.dash-name{
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.dash-role{
  font-weight:400;
  font-size:12px;
  color:rgba(255,255,255,.7);
  margin-top:2px;
}

.dash-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:12px;
}

.dash-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  background:transparent;
  border:1px solid transparent;
  color:rgba(255,255,255,.78);
  cursor:pointer;
  font:inherit;
  text-align:left;
}

.dash-item .icon{
  width:18px;
  height:18px;
}

.dash-item.active{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
  color:#fff;
}

@media (max-width:860px){
  .dash{grid-template-columns:1fr}
  .dash-nav{flex-direction:row;overflow:auto;gap:8px;padding-bottom:4px}
  .dash-item{flex:0 0 auto;white-space:nowrap}
}

.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  border-top:1px solid var(--serenia-nav-border);
  background:linear-gradient(180deg, rgba(11,16,32,.92), rgba(11,16,32,.96));
  backdrop-filter:saturate(180%) blur(14px);
}

.bottom-nav-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  justify-content:space-around;
  padding:10px 8px;
}

.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-size:12px;
  color:rgba(255,255,255,.7);
  font-weight:400;
}

.nav-item.active{
  color:#fff;
}

.toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:76px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.85);
  color:#fff;
  font-weight:400;
  font-size:14px;
  max-width:90vw;
}

.cta{
  padding:14px;
  border-radius:var(--r-16);
  border:1px solid rgba(128,179,242,.35);
  background:rgba(128,179,242,.15);
  box-shadow:var(--serenia-shadow-1);
}

.cta-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.cta-grid .cta{
  margin-top:0;
}

@media (max-width: 820px){
  .cta-grid{grid-template-columns:1fr}
}

.cta-title{
  margin:0 0 6px 0;
  font-size:18px;
  font-weight:900;
}

.cta-subtitle{
  margin:0 0 12px 0;
  color:var(--serenia-text-secondary);
  font-weight:400;
}

body[data-page="dashboard"]{
  background:#f6f7fb;
}

body[data-page="dashboard"] .topbar,
body[data-page="dashboard"] .bottom-nav{
  display:none;
}

body[data-page="dashboard"] .container{
  max-width:none;
  padding:0;
}

body[data-page="dashboard"] .container > :not(.hero-wrap){
  padding-left:0;
  padding-right:0;
}

.db{
  min-height:100vh;
  display:flex;
  background:#f6f7fb;
}

.db-side{
  width:270px;
  flex:0 0 auto;
  background:#fff;
  border-right:1px solid rgba(11,16,32,.08);
  padding:18px 14px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}

.db-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:800;
  color:rgba(11,16,32,.92);
  padding:8px 10px;
  border-radius:12px;
}

.db-user{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:14px;
  padding:12px 10px;
  border-radius:14px;
  border:1px solid rgba(11,16,32,.08);
  background:#fff;
}

.db-avatar{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(11,16,32,.10);
  background:#fff;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.db-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.db-user-meta{min-width:0}

.db-user-name{
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.db-user-role{
  margin-top:2px;
  font-size:12px;
  color:rgba(60,60,67,.6);
  font-weight:400;
}

.db-menu{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:14px;
}

.db-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
  color:rgba(11,16,32,.74);
  cursor:pointer;
  font:inherit;
  text-align:left;
}

.db-item .icon{
  width:18px;
  height:18px;
  color:rgba(11,16,32,.82);
}

.db-item.active{
  background:rgba(128,179,242,.18);
  border-color:rgba(128,179,242,.30);
  color:rgba(11,16,32,.92);
}

.db-group{position:relative}
.db-group.open{background:rgba(11,16,32,.04);border-color:rgba(11,16,32,.08)}

.db-submenu{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding-left:10px;
  margin-top:-2px;
}

.db-subitem{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
  color:rgba(11,16,32,.68);
  cursor:pointer;
  font:inherit;
  text-align:left;
}

.db-subitem .icon{width:16px;height:16px;color:rgba(11,16,32,.78)}
.db-subitem.active{background:rgba(128,179,242,.14);border-color:rgba(128,179,242,.26);color:rgba(11,16,32,.92)}

.db-logout{
  width:100%;
  margin-top:14px;
  border-radius:12px;
  padding:10px 10px;
  border:1px solid rgba(11,16,32,.10);
  background:#fff;
  color:rgba(11,16,32,.92);
  cursor:pointer;
  font:inherit;
}

.db-content{
  flex:1;
  min-width:0;
  padding:22px 22px 34px;
}

.db-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.db-title{
  font-size:22px;
  font-weight:900;
  color:rgba(11,16,32,.92);
}

.db-panel{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.db-card{
  background:#fff;
  border:1px solid rgba(11,16,32,.08);
  border-radius:var(--r-16);
  padding:16px;
  box-shadow:0 10px 30px rgba(11,16,32,.06);
}

.db-card-title{
  font-weight:900;
  margin-bottom:10px;
}

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

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

.db-label{
  font-size:12px;
  color:rgba(60,60,67,.6);
  font-weight:400;
}

.db-span2{grid-column:1 / -1}

.db-actions{
  display:flex;
  justify-content:flex-start;
  gap:10px;
}

.db-table-wrap{overflow:auto}

.db-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

.db-table th{
  text-align:left;
  font-weight:700;
  font-size:12px;
  color:rgba(60,60,67,.65);
  padding:10px 8px;
  border-bottom:1px solid rgba(11,16,32,.08);
}

.db-table td{
  padding:12px 8px;
  border-bottom:1px solid rgba(11,16,32,.06);
  vertical-align:top;
}

.db-title-link{
  background:transparent;
  border:0;
  padding:0;
  color:rgba(43,47,131,.96);
  cursor:pointer;
  font:inherit;
  font-weight:800;
  text-align:left;
}

.db-row-actions{
  margin-top:6px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.db-link{
  background:transparent;
  border:0;
  padding:0;
  font:inherit;
  cursor:pointer;
  color:rgba(43,47,131,.92);
  font-weight:400;
}

.db-link.danger{color:#b42318}

.html-editor{
  min-height:320px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  line-height:1.4;
}

.html-editor-wrap{
  border:1px solid rgba(11,16,32,.10);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.html-tabs{
  display:flex;
  gap:6px;
  padding:10px;
  background:rgba(11,16,32,.03);
  border-bottom:1px solid rgba(11,16,32,.08);
}

.html-tab{
  border:1px solid rgba(11,16,32,.10);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font:inherit;
  color:rgba(11,16,32,.74);
}

.html-tab.active{
  background:rgba(128,179,242,.18);
  border-color:rgba(128,179,242,.30);
  color:rgba(11,16,32,.92);
}

.html-toolbar{
  display:flex;
  gap:6px;
  padding:10px;
  border-bottom:1px solid rgba(11,16,32,.08);
  background:#fff;
  flex-wrap:wrap;
}

.html-tool{
  border:1px solid rgba(11,16,32,.10);
  background:#fff;
  border-radius:12px;
  padding:7px 10px;
  cursor:pointer;
  font:inherit;
  color:rgba(11,16,32,.78);
}

.html-visual{
  min-height:320px;
  padding:12px;
  outline:none;
  font-size:15px;
  line-height:1.55;
  color:rgba(11,16,32,.92);
}

.html-editor-wrap .html-editor{
  border:0;
  border-radius:0;
  min-height:320px;
  padding:12px;
}

.news-cover{
  width:100%;
  max-width:560px;
  display:block;
  border-radius:14px;
  border:1px solid rgba(11,16,32,.08);
  box-shadow:0 10px 26px rgba(11,16,32,.08);
  margin:8px 0 10px;
}

.news-html{
  color:rgba(11,16,32,.92);
  font-weight:400;
}

.news-html p{margin:0 0 10px 0}
.news-html h1,.news-html h2,.news-html h3{margin:14px 0 8px 0}

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

@media (max-width: 980px){
  .news-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
}

@media (max-width: 640px){
  .news-grid{grid-template-columns:1fr}
}

.news-card{
  border:1px solid rgba(11,16,32,.08);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 12px 34px rgba(11,16,32,.06);
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.news-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 44px rgba(11,16,32,.10);
  border-color:rgba(128,179,242,.36);
}

.news-thumb{
  height:160px;
  background:linear-gradient(135deg, rgba(128,179,242,.20), rgba(43,47,131,.12));
  position:relative;
}

.news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.news-thumb.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(43,47,131,.72);
}

.news-thumb.placeholder .icon{
  width:34px;
  height:34px;
}

.news-card-body{
  padding:14px 14px 16px;
}

.news-card-title{
  font-weight:800;
  color:rgba(11,16,32,.92);
  line-height:1.2;
  font-size:16px;
  margin-bottom:8px;
}

.news-card-excerpt{
  color:rgba(60,60,67,.72);
  font-weight:400;
  line-height:1.45;
  font-size:13px;
}

.pager{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:18px;
}

.page-btn{
  border:1px solid rgba(11,16,32,.10);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  min-width:42px;
  cursor:pointer;
  font:inherit;
  color:rgba(11,16,32,.78);
}

.page-btn.active{
  background:rgba(128,179,242,.18);
  border-color:rgba(128,179,242,.36);
  color:rgba(11,16,32,.92);
}

.article-hero{
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  min-height:420px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  border-bottom:1px solid rgba(0,0,0,.06);
  background:#111;
  color:#fff;
}

.article-hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:1;
}

.article-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.42));
}

.article-hero-inner{
  width:100%;
  max-width:980px;
  margin:0 auto;
  padding:78px 16px 66px;
  position:relative;
  z-index:2;
  text-align:center;
}

.article-kicker{
  display:inline-block;
  padding:0;
  border-radius:0;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.86);
  font-size:14px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
}

.article-kicker:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}

.article-hero-title{
  margin-top:18px;
  font-size:62px;
  font-weight:600;
  line-height:1.04;
  text-shadow:0 12px 30px rgba(0,0,0,.35);
}

@media (max-width: 820px){
  .article-hero{min-height:360px}
  .article-hero-title{font-size:42px}
}

@media (max-width: 520px){
  .article-hero-inner{padding:56px 16px 48px}
  .article-hero-title{font-size:34px}
}

.article-wrap{
  max-width:980px;
  margin:0 auto;
  padding:54px 16px 70px;
}

.article-meta{
  margin-top:40px;
}

.article-meta-item + .article-meta-item{
  border-top:1px solid rgba(11,16,32,.12);
}

.article-meta-label{
  padding-top:16px;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(11,16,32,.82);
  font-weight:900;
}

.article-meta-value{
  padding-bottom:16px;
  margin-top:4px;
  color:rgba(60,60,67,.78);
  font-weight:500;
}

.article-body{
  background:#fff;
}

.article-content{
  font-size:16px;
  line-height:1.85;
  color:rgba(60,60,67,.78);
}

.article-content strong{
  color:rgba(11,16,32,.92);
  font-weight:800;
}

.article-content img{
  max-width:100%;
  height:auto;
  display:block;
  margin:26px 0;
}

.article-content a{
  color:rgba(43,47,131,.96);
  text-decoration:underline;
  text-underline-offset:3px;
}

.article-actions{
  margin-top:28px;
  display:flex;
  justify-content:flex-start;
}

.chat-wrap{
  background:#fff;
  border:1px solid rgba(11,16,32,.08);
  border-radius:var(--r-16);
  overflow:hidden;
  box-shadow:0 10px 30px rgba(11,16,32,.06);
}

.chat-list{
  height:360px;
  overflow:auto;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#fafbfe;
}

.chat-msg{display:flex}
.chat-msg.me{justify-content:flex-end}

.chat-bubble{
  max-width:min(520px, 90%);
  background:#fff;
  border:1px solid rgba(11,16,32,.08);
  border-radius:14px;
  padding:10px 12px;
  box-shadow:0 8px 22px rgba(11,16,32,.06);
}

.chat-msg.me .chat-bubble{
  background:rgba(128,179,242,.14);
  border-color:rgba(128,179,242,.30);
}

.chat-text{
  color:rgba(11,16,32,.92);
  font-weight:400;
  white-space:pre-wrap;
  word-break:break-word;
}

.chat-time{
  margin-top:6px;
  font-size:12px;
  color:rgba(60,60,67,.55);
}

.chat-form{
  display:flex;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(11,16,32,.08);
  background:#fff;
}

.chat-form .input{box-shadow:none}
.chat-form .btn{white-space:nowrap}

.icon-picker{
  display:flex;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

.icon-preview{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(11,16,32,.10);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.icon-preview .icon{
  width:22px;
  height:22px;
}

.icon-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.icon-opt{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(11,16,32,.10);
  background:#fff;
  cursor:pointer;
  font:inherit;
  color:rgba(11,16,32,.82);
}

.icon-opt .icon{
  width:18px;
  height:18px;
}

.icon-opt span{
  font-size:12px;
  color:rgba(11,16,32,.70);
  font-weight:400;
}

.icon-opt.active{
  background:rgba(128,179,242,.14);
  border-color:rgba(128,179,242,.45);
}

@media (max-width:920px){
  .db{flex-direction:column}
  .db-side{width:100%;height:auto;position:static;border-right:none;border-bottom:1px solid rgba(11,16,32,.08)}
  .db-menu{flex-direction:row;overflow:auto}
  .db-item{flex:0 0 auto;white-space:nowrap}
  .db-grid{grid-template-columns:1fr}
}
