:root{
  --portal-forest:#00BFA6;
  --portal-forest-deep:#071F1D;
  --portal-forest-soft:#E6FBF7;
  --portal-mint:#D9F8F3;
  --portal-pink:#2F6BFF;
  --portal-pink-soft:#E7EEFF;
  --portal-lime:#C8F66F;
  --portal-lime-soft:#F3FFE2;
  --portal-ink:#071F1D;
  --portal-text:#102724;
  --portal-muted:#5D746F;
  --portal-border:rgba(0,191,166,.14);
  --portal-border-strong:rgba(0,191,166,.24);
  --portal-surface:#ffffff;
  --portal-surface-soft:rgba(255,255,255,.76);
  --portal-shadow:0 22px 60px rgba(7,31,29,.12);
  --portal-shadow-soft:0 14px 32px rgba(7,31,29,.08);
  --portal-radius-xl:30px;
  --portal-radius-lg:22px;
  --portal-radius-md:16px;
  --portal-radius-sm:12px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body.portal-body{
  margin:0;
  min-height:100vh;
  color:var(--portal-text);
  background:
    radial-gradient(circle at top left, rgba(0,191,166,.16), transparent 38%),
    radial-gradient(circle at top right, rgba(47,107,255,.12), transparent 24%),
    linear-gradient(180deg, #F7FFFD 0%, #F0FBF8 100%);
  font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

body.portal-private-zone{
  background:
    radial-gradient(circle at top left, rgba(0,191,166,.22), transparent 34%),
    radial-gradient(circle at top right, rgba(47,107,255,.09), transparent 24%),
    linear-gradient(180deg, #F6FFFD 0%, #EEF9F6 100%);
}

body.portal-private-zone .portal-shell{
  width:min(1420px, calc(100% - 40px));
}

a{
  color:inherit;
}

.portal-shell{
  width:min(1440px, calc(100% - 40px));
  margin:0 auto;
}

.portal-site-header{
  padding:24px 0 10px;
}

.portal-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:999px;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(18px);
  box-shadow:0 14px 34px rgba(7,31,29,.08);
}

.portal-brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.portal-brand__mark{
  width:64px;
  height:64px;
  border-radius:20px;
  background:linear-gradient(160deg, rgba(47,107,255,.16), rgba(0,191,166,.14), rgba(200,246,111,.22));
  border:1px solid rgba(0,191,166,.14);
  display:grid;
  place-items:center;
  overflow:hidden;
  flex-shrink:0;
}

.portal-brand__mark img{
  width:78%;
  height:auto;
  object-fit:contain;
}

.portal-brand__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--portal-muted);
  font-weight:800;
}

.portal-brand__eyebrow::before{
  content:"";
  width:26px;
  height:1px;
  background:rgba(0,191,166,.34);
}

.portal-brand__title{
  margin:5px 0 0;
  font-size:18px;
  font-weight:900;
  color:var(--portal-ink);
}

.portal-brand__subtitle{
  margin:4px 0 0;
  color:var(--portal-muted);
  font-size:13px;
}

.portal-nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.portal-chip,
.portal-chip:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 16px;
  text-decoration:none;
  border-radius:999px;
  border:1px solid transparent;
  font-size:14px;
  font-weight:800;
  transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

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

.portal-chip--primary{
  background:linear-gradient(135deg, var(--portal-pink), var(--portal-forest) 56%, var(--portal-lime));
  color:#fff;
  box-shadow:0 12px 24px rgba(0,191,166,.22);
}

.portal-chip--primary:hover{
  box-shadow:0 16px 28px rgba(0,191,166,.28);
}

.portal-chip--ghost{
  border-color:rgba(0,191,166,.18);
  background:rgba(255,255,255,.76);
  color:var(--portal-forest);
}

.portal-chip--soft{
  border-color:rgba(47,107,255,.2);
  background:rgba(255,255,255,.76);
  color:#2F6BFF;
}

.portal-main{
  padding:12px 0 42px;
}

.portal-hero{
  position:relative;
  overflow:hidden;
  margin-top:10px;
  padding:38px;
  border-radius:var(--portal-radius-xl);
  background:
    linear-gradient(125deg, rgba(7,31,29,.96), rgba(0,191,166,.92)),
    linear-gradient(135deg, rgba(47,107,255,.18), transparent 55%);
  color:#fff;
  box-shadow:var(--portal-shadow);
}

.portal-hero::before,
.portal-hero::after{
  content:"";
  position:absolute;
  border-radius:999px;
  pointer-events:none;
}

.portal-hero::before{
  width:340px;
  height:340px;
  right:-90px;
  top:-110px;
  background:radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 70%);
}

.portal-hero::after{
  width:260px;
  height:260px;
  left:-60px;
  bottom:-120px;
  background:radial-gradient(circle, rgba(47,107,255,.18) 0%, rgba(47,107,255,0) 72%);
}

.portal-hero__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0, 1.45fr) minmax(320px, .95fr);
  gap:28px;
  align-items:stretch;
}

.portal-hero__grid--news{
  grid-template-columns:minmax(0, 1.85fr) minmax(260px, .65fr);
}

.portal-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.12);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:900;
}

.portal-kicker__dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#C8F66F;
  box-shadow:0 0 0 6px rgba(200,246,111,.18);
}

.portal-hero__title{
  margin:18px 0 14px;
  font-size:clamp(32px, 5vw, 54px);
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.03em;
}

.portal-hero__title span{
  color:#9bf0bc;
}

.portal-hero__lead{
  max-width:720px;
  margin:0;
  font-size:18px;
  line-height:1.65;
  color:rgba(255,255,255,.86);
}

.portal-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px;
}

.portal-hero__trust{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:28px;
}

.portal-stat{
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
}

.portal-stat__value{
  display:block;
  font-size:23px;
  font-weight:900;
}

.portal-stat__label{
  display:block;
  margin-top:6px;
  font-size:12px;
  color:rgba(255,255,255,.76);
  line-height:1.45;
}

.portal-hero-card{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:24px;
  border-radius:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(16px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.portal-hero-card--compact{
  position:relative;
  justify-content:center;
  align-items:center;
  min-height:100%;
  overflow:hidden;
}

.portal-hero-card--compact::before{
  content:"";
  position:absolute;
  inset:auto auto 18px 50%;
  width:220px;
  height:220px;
  border-radius:50%;
  transform:translateX(-50%);
  background:radial-gradient(circle, rgba(255,255,255,.26) 0%, rgba(255,255,255,0) 72%);
  pointer-events:none;
}

.portal-hero-card__logo{
  display:flex;
  justify-content:flex-start;
}

.portal-hero-card--compact .portal-hero-card__logo{
  position:relative;
  z-index:1;
  justify-content:center;
  width:100%;
  padding:22px 18px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 18px 34px rgba(7,31,29,.12);
}

.portal-hero-card__logo img{
  width:min(100%, 340px);
  height:auto;
  object-fit:contain;
  filter:
    drop-shadow(0 12px 24px rgba(255,255,255,.08))
    drop-shadow(0 8px 18px rgba(7,31,29,.2));
}

.portal-hero-card--compact .portal-hero-card__logo--brandmark{
  position:relative;
  z-index:1;
  justify-content:center;
  width:100%;
  background:#ffffff;
  border:1px solid rgba(16,33,26,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    0 18px 34px rgba(7,31,29,.18);
  padding:26px 22px;
  border-radius:24px;
}

.portal-hero-card--compact .portal-hero-card__logo--brandmark img{
  width:min(100%, 300px);
  height:auto;
  object-fit:contain;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.28))
    drop-shadow(0 8px 18px rgba(7,31,29,.10));
}

.portal-hero-card__title{
  font-size:22px;
  font-weight:900;
  line-height:1.15;
}

.portal-hero-card__text{
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.65;
}

.portal-hero-card__meta{
  margin:12px 0 0;
  color:rgba(255,255,255,.7);
  font-size:14px;
  line-height:1.5;
}

.portal-hero-card__meta a{
  color:#ffffff;
  text-decoration:underline;
}

.portal-hero__news-body{
  max-width:760px;
}

.portal-hero__news-body,
.portal-hero__news-body p,
.portal-hero__news-body li{
  color:rgba(255,255,255,.88);
  line-height:1.75;
}

.portal-hero__news-body a{
  color:#ffffff;
  text-decoration:underline;
}

.portal-rich-content p{
  margin:0 0 .85em;
}

.portal-rich-content p:last-child,
.portal-rich-content ul:last-child,
.portal-rich-content ol:last-child,
.portal-rich-content blockquote:last-child,
.portal-rich-content pre:last-child{
  margin-bottom:0;
}

.portal-rich-content ul,
.portal-rich-content ol{
  margin:.55em 0 .9em 1.35em;
  padding:0;
}

.portal-rich-content li{
  margin:.25em 0;
}

.portal-rich-content h2,
.portal-rich-content h3{
  margin:1em 0 .45em;
  line-height:1.2;
}

.portal-rich-content blockquote{
  margin:.85em 0;
  padding:10px 14px;
  border-left:4px solid var(--portal-primary);
  background:rgba(0,191,166,.08);
  border-radius:0 8px 8px 0;
}

.portal-rich-content pre{
  overflow:auto;
  margin:.85em 0;
  padding:12px 14px;
  border-radius:8px;
  background:#071F1D;
  color:#f3fff8;
  font-family:"SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size:13px;
  line-height:1.55;
}

.portal-rich-content a{
  color:var(--portal-primary);
  text-decoration:underline;
  text-underline-offset:3px;
}

.portal-hero__news-body.portal-rich-content a{
  color:#ffffff;
}

.portal-list{
  display:grid;
  gap:10px;
}

.portal-list__item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,.9);
}

.portal-list__item::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  margin-top:7px;
  flex-shrink:0;
  background:linear-gradient(135deg, #C8F66F, #2F6BFF);
}

.portal-section{
  margin-top:22px;
}

.portal-section__header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
  margin-bottom:14px;
}

.portal-section__eyebrow{
  margin:0 0 5px;
  color:var(--portal-forest);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:900;
}

.portal-section__title{
  margin:0;
  font-size:30px;
  font-weight:900;
  color:var(--portal-ink);
  line-height:1.1;
}

.portal-section__text{
  margin:0;
  max-width:760px;
  color:var(--portal-muted);
  line-height:1.65;
}

.portal-grid{
  display:grid;
  gap:18px;
}

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

.portal-grid--three{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.portal-card{
  position:relative;
  overflow:hidden;
  border-radius:var(--portal-radius-lg);
  border:1px solid var(--portal-border);
  background:var(--portal-surface-soft);
  box-shadow:var(--portal-shadow-soft);
  backdrop-filter:blur(12px);
}

.portal-card::before{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:5px;
  background:linear-gradient(90deg, var(--portal-pink), var(--portal-forest), var(--portal-lime));
}

.portal-card__body{
  padding:24px;
}

.portal-card__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:var(--portal-forest-soft);
  color:var(--portal-forest);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}

.portal-card__badge--pink{
  background:var(--portal-pink-soft);
  color:#2F6BFF;
}

.portal-card__title{
  margin:16px 0 10px;
  font-size:25px;
  line-height:1.14;
  color:var(--portal-ink);
}

.portal-card__text{
  margin:0;
  color:var(--portal-muted);
  line-height:1.7;
}

.portal-efemeride__description{
  display:block;
  overflow:visible;
}

.portal-efemeride__meta{
  margin:12px 0 0;
  color:var(--portal-muted);
  font-size:14px;
  line-height:1.5;
}

.portal-efemeride__meta a{
  color:var(--portal-primary);
  text-decoration:underline;
}

.portal-card__list{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.portal-card__list div{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--portal-text);
  line-height:1.55;
}

.portal-card__list div::before{
  content:"";
  width:10px;
  height:10px;
  margin-top:7px;
  border-radius:999px;
  flex-shrink:0;
  background:linear-gradient(135deg, rgba(47,107,255,.92), rgba(0,191,166,.9) 58%, rgba(200,246,111,.82));
}

.portal-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.portal-tile-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:18px;
}

.tile{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-height:120px;
  padding:20px;
  border-radius:18px;
  border:1px solid var(--portal-border);
  background:#fff;
  text-decoration:none;
  box-shadow:0 10px 26px rgba(7,31,29,.06);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tile:hover{
  transform:translateY(-3px);
  border-color:var(--portal-border-strong);
  box-shadow:0 18px 36px rgba(7,31,29,.12);
}

.tile-img{
  width:52px;
  height:52px;
  border-radius:16px;
  object-fit:cover;
  flex-shrink:0;
  background:linear-gradient(135deg, rgba(47,107,255,.10), rgba(0,191,166,.12), rgba(200,246,111,.16));
  border:1px solid rgba(0,191,166,.12);
}

.tile-t{
  font-size:17px;
  font-weight:900;
  color:var(--portal-ink);
  line-height:1.2;
}

.tile-s{
  margin-top:6px;
  color:var(--portal-muted);
  font-size:14px;
  line-height:1.55;
}

.portal-posts{
  display:grid;
  gap:14px;
}

.portal-post{
  padding:22px 24px;
  border-radius:20px;
  border:1px solid var(--portal-border);
  background:#fff;
  box-shadow:0 10px 26px rgba(7,31,29,.05);
}

.portal-post__title{
  margin:0 0 10px;
  font-size:20px;
  color:var(--portal-ink);
}

.portal-post__body{
  color:var(--portal-muted);
  line-height:1.75;
  font-size:14px;
}

.portal-post__body p:first-child{
  margin-top:0;
}

.portal-empty{
  padding:24px;
  border-radius:18px;
  border:1px dashed rgba(0,191,166,.24);
  background:rgba(255,255,255,.62);
  color:var(--portal-muted);
  line-height:1.7;
}

.portal-auth-layout{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px 16px;
}

.portal-auth-shell{
  width:min(1120px, 100%);
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(360px, .9fr);
  gap:22px;
}

.portal-auth-panel{
  position:relative;
  overflow:hidden;
  padding:34px;
  border-radius:var(--portal-radius-xl);
  background:
    linear-gradient(140deg, rgba(7,31,29,.97), rgba(0,191,166,.9)),
    linear-gradient(140deg, rgba(47,107,255,.16), transparent 55%);
  color:#fff;
  box-shadow:var(--portal-shadow);
}

.portal-auth-panel__logo img{
  width:min(100%, 320px);
  height:auto;
  object-fit:contain;
}

.portal-auth-panel__title{
  margin:28px 0 12px;
  font-size:40px;
  line-height:1.02;
  font-weight:900;
}

.portal-auth-panel__text{
  max-width:560px;
  margin:0;
  color:rgba(255,255,255,.84);
  line-height:1.7;
}

.portal-auth-highlights{
  display:grid;
  gap:14px;
  margin-top:28px;
}

.portal-auth-highlight{
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
}

.portal-auth-highlight strong{
  display:block;
  margin-bottom:6px;
  font-size:15px;
}

.portal-auth-card{
  border-radius:var(--portal-radius-xl);
  border:1px solid rgba(0,191,166,.12);
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  box-shadow:var(--portal-shadow-soft);
  overflow:hidden;
}

.portal-auth-card__header{
  padding:28px 28px 18px;
  border-bottom:1px solid rgba(0,191,166,.1);
}

.portal-auth-card__header h1{
  margin:0;
  font-size:30px;
  color:var(--portal-ink);
}

.portal-auth-card__header p{
  margin:10px 0 0;
  color:var(--portal-muted);
  line-height:1.65;
}

.portal-auth-card__body{
  padding:24px 28px 28px;
}

.portal-msg{
  margin-bottom:16px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(0,191,166,.12);
  background:var(--portal-forest-soft);
  color:var(--portal-forest);
  font-weight:700;
}

.portal-msg--err{
  border-color:rgba(194,32,92,.18);
  background:rgba(255,226,239,.72);
  color:#2F6BFF;
}

.portal-form{
  display:grid;
  gap:14px;
}

.portal-field{
  display:grid;
  gap:8px;
}

.portal-label{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  color:var(--portal-muted);
}

.portal-input{
  width:100%;
  min-height:52px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(0,191,166,.14);
  background:#fff;
  color:var(--portal-ink);
  font-size:15px;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.portal-input:focus{
  outline:none;
  border-color:rgba(0,191,166,.4);
  box-shadow:0 0 0 5px rgba(0,191,166,.12);
  transform:translateY(-1px);
}

.portal-select{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--portal-forest) 50%),
    linear-gradient(135deg, var(--portal-forest) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 18px) calc(50% - 3px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:42px;
}

.portal-textarea{
  min-height:116px;
  padding:14px 16px;
  resize:vertical;
  font-family:inherit;
}

.portal-textarea--lg{
  min-height:180px;
}

.portal-rich-editor__original{
  display:none !important;
}

.portal-rich-editor{
  border:1px solid rgba(0,191,166,.16);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95);
}

.portal-rich-editor:focus-within{
  border-color:rgba(0,191,166,.42);
  box-shadow:0 0 0 5px rgba(0,191,166,.12);
}

.portal-rich-editor__toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:10px;
  border-bottom:1px solid rgba(0,191,166,.12);
  background:linear-gradient(180deg, #ffffff, #F7FFFD);
}

.portal-rich-editor__select,
.portal-rich-editor__button,
.portal-rich-editor__color{
  height:38px;
  border:1px solid rgba(0,191,166,.18);
  border-radius:8px;
  background:#fff;
  color:var(--portal-ink);
  font:inherit;
  font-size:13px;
  font-weight:800;
}

.portal-rich-editor__select{
  min-width:128px;
  padding:0 10px;
}

.portal-rich-editor__button{
  min-width:38px;
  padding:0 11px;
  cursor:pointer;
}

.portal-rich-editor__button:hover,
.portal-rich-editor__select:hover,
.portal-rich-editor__color:hover{
  border-color:rgba(0,191,166,.34);
  background:#f7fcf9;
}

.portal-rich-editor__button[aria-pressed="true"]{
  background:var(--portal-primary);
  border-color:var(--portal-primary);
  color:#fff;
}

.portal-rich-editor__color{
  width:42px;
  padding:3px;
  cursor:pointer;
}

.portal-rich-editor__modes{
  display:flex;
  gap:6px;
  margin-left:auto;
}

.portal-rich-editor__surface,
.portal-rich-editor__source{
  width:100%;
  min-height:240px;
  border:0;
  padding:16px;
  color:var(--portal-ink);
  font-size:15px;
  line-height:1.7;
  background:#fff;
}

.portal-rich-editor--compact .portal-rich-editor__surface,
.portal-rich-editor--compact .portal-rich-editor__source{
  min-height:160px;
}

.portal-rich-editor__surface:focus,
.portal-rich-editor__source:focus{
  outline:none;
}

.portal-rich-editor__source{
  display:none;
  resize:vertical;
  font-family:"SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size:13px;
  line-height:1.55;
  background:#071F1D;
  color:#f3fff8;
}

.portal-rich-editor[data-mode="source"] .portal-rich-editor__surface{
  display:none;
}

.portal-rich-editor[data-mode="source"] .portal-rich-editor__source{
  display:block;
}

.portal-btn{
  min-height:52px;
  border:none;
  border-radius:16px;
  background:linear-gradient(135deg, var(--portal-pink), var(--portal-forest) 56%, var(--portal-lime));
  color:#fff;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 28px rgba(0,191,166,.24);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.portal-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 20px 32px rgba(0,191,166,.28);
}

.portal-auth-meta{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.portal-auth-note{
  padding:14px 16px;
  border-radius:16px;
  background:rgba(0,191,166,.06);
  color:var(--portal-text);
  line-height:1.65;
  font-size:14px;
}

.portal-auth-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
  align-items:center;
}

.portal-dashboard-hero{
  position:relative;
  overflow:hidden;
  margin-top:10px;
  border-radius:var(--portal-radius-xl);
  padding:32px;
  background:
    linear-gradient(130deg, rgba(7,31,29,.96), rgba(0,191,166,.88)),
    linear-gradient(140deg, rgba(47,107,255,.12), transparent 60%);
  color:#fff;
  box-shadow:var(--portal-shadow);
}

.portal-dashboard-hero--private{
  background:
    linear-gradient(132deg, rgba(7,31,29,.98), rgba(0,191,166,.9)),
    linear-gradient(140deg, rgba(47,107,255,.14), transparent 58%);
}

.portal-dashboard-hero--private::after{
  content:"";
  position:absolute;
  inset:auto -40px -70px auto;
  width:220px;
  height:220px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(200,246,111,.16) 0%, rgba(200,246,111,0) 70%);
}

.portal-dashboard-hero__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(260px, .75fr);
  gap:24px;
  align-items:stretch;
}

.portal-dashboard-hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}

.portal-pill{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}

.portal-dashboard-hero__title{
  margin:0;
  font-size:44px;
  line-height:1.02;
  font-weight:900;
}

.portal-dashboard-hero__text{
  max-width:700px;
  margin:14px 0 0;
  color:rgba(255,255,255,.84);
  line-height:1.7;
}

.portal-dashboard-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.portal-dashboard-summary{
  display:grid;
  gap:12px;
}

.portal-dashboard-summary__card{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
}

.portal-dashboard-summary__label{
  display:block;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.72);
  font-weight:900;
}

.portal-dashboard-summary__value{
  display:block;
  margin-top:8px;
  font-size:20px;
  font-weight:900;
}

.portal-private-console__card{
  min-height:100%;
}

.portal-private-zone .portal-topbar{
  border-color:rgba(255,255,255,.78);
  box-shadow:0 18px 38px rgba(7,31,29,.1);
}

body.portal-private-zone .portal-dashboard-hero__grid{
  grid-template-columns:minmax(0, 1.55fr) minmax(320px, .8fr);
  gap:28px;
}

body.portal-private-zone .portal-dashboard-hero__title{
  max-width:14ch;
  font-size:clamp(3rem, 3vw + 1.8rem, 4.5rem);
}

body.portal-private-zone .portal-tile-grid{
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:18px;
}

.portal-private-zone .tile{
  min-height:132px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,251,247,.94));
}

.portal-private-zone .tile-img{
  width:58px;
  height:58px;
  border-radius:18px;
}

.portal-chip--button{
  cursor:pointer;
  font:inherit;
}

.portal-group-grid{
  display:grid;
  gap:18px;
}

.portal-group{
  border-radius:var(--portal-radius-lg);
  border:1px solid var(--portal-border);
  background:rgba(255,255,255,.84);
  box-shadow:var(--portal-shadow-soft);
  overflow:hidden;
}

.portal-group__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  padding:22px 24px 0;
}

.portal-group__title{
  margin:0;
  font-size:24px;
  color:var(--portal-ink);
}

.portal-group__text{
  margin:8px 0 0;
  color:var(--portal-muted);
  line-height:1.6;
}

.portal-group__body{
  padding:20px 24px 24px;
}

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

.portal-kpi{
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(0,191,166,.1);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(232,246,238,.8));
}

.portal-kpi__value{
  display:block;
  font-size:27px;
  font-weight:900;
  color:var(--portal-forest);
}

.portal-kpi__label{
  display:block;
  margin-top:8px;
  color:var(--portal-muted);
  font-size:13px;
  line-height:1.55;
}

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

.portal-stage{
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(0,191,166,.1);
  background:#fff;
}

.portal-stage__step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:var(--portal-pink-soft);
  color:#2F6BFF;
  font-weight:900;
}

.portal-stage h3{
  margin:14px 0 8px;
  font-size:18px;
  color:var(--portal-ink);
}

.portal-stage p{
  margin:0;
  color:var(--portal-muted);
  line-height:1.6;
}

.portal-admin-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(280px, .9fr);
  gap:18px;
}

.portal-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:8px;
  border-radius:22px;
  border:1px solid var(--portal-border);
  background:rgba(255,255,255,.82);
  box-shadow:var(--portal-shadow-soft);
}

.portal-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  color:var(--portal-muted);
  border:1px solid transparent;
  transition:background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.portal-tab:hover{
  transform:translateY(-1px);
  color:var(--portal-forest);
}

.portal-tab.is-active{
  background:linear-gradient(135deg, var(--portal-pink), var(--portal-forest) 56%, var(--portal-lime));
  color:#fff;
  box-shadow:0 12px 24px rgba(0,191,166,.18);
}

.portal-tab-panel{
  display:block;
}

.portal-tab-panel[hidden]{
  display:none !important;
}

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

.portal-list-controls{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-bottom:16px;
  align-items:end;
}

.portal-admin-form{
  margin-top:18px;
}

.portal-admin-inline{
  display:grid;
  grid-template-columns:minmax(130px, 180px) auto auto;
  gap:14px;
  align-items:end;
}

.portal-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(0,191,166,.14);
  background:#fff;
  font-weight:800;
  color:var(--portal-ink);
}

.portal-toggle input{
  margin:0;
}

.portal-admin-feedback{
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(0,191,166,.18);
  background:rgba(232,246,238,.82);
  color:var(--portal-forest);
  font-weight:800;
  box-shadow:var(--portal-shadow-soft);
}

.portal-admin-feedback--error{
  border-color:rgba(194,32,92,.18);
  background:rgba(255,226,239,.82);
  color:#2F6BFF;
}

.portal-admin-feedback--ok{
  border-color:rgba(0,191,166,.18);
}

.portal-inline-code{
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:10px;
  background:#f2f7f4;
  border:1px solid rgba(0,191,166,.12);
  color:var(--portal-ink);
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:12px;
}

.portal-admin-tablewrap{
  overflow:auto;
  border-radius:22px;
  border:1px solid var(--portal-border);
  background:rgba(255,255,255,.88);
  box-shadow:var(--portal-shadow-soft);
}

.portal-admin-table{
  width:100%;
  border-collapse:collapse;
  min-width:860px;
}

.portal-admin-table th,
.portal-admin-table td{
  padding:16px 18px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid rgba(0,191,166,.08);
}

.portal-admin-table th{
  background:rgba(0,191,166,.06);
  color:var(--portal-forest);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.table-filter-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
}

.table-filter-label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  color:var(--portal-muted);
}

.table-filter-input{
  min-height:44px;
  min-width:min(100%, 280px);
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--portal-border);
  background:#fff;
  color:var(--portal-ink);
  font:inherit;
}

.table-filter-input:focus{
  outline:none;
  border-color:rgba(0,191,166,.42);
  box-shadow:0 0 0 4px rgba(0,191,166,.11);
}

.table-filter-count{
  color:var(--portal-muted);
  font-size:13px;
  font-weight:800;
}

table.table-sortable thead th.th-sortable,
.portal-admin-table thead th.th-sortable{
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  position:relative;
  padding-right:28px;
}

table.table-sortable thead th.th-sortable::after,
.portal-admin-table thead th.th-sortable::after{
  content:"\21C5";
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:.85em;
  opacity:.38;
}

table.table-sortable thead th.th-sortable[data-sort-dir="asc"]::after,
.portal-admin-table thead th.th-sortable[data-sort-dir="asc"]::after{
  content:"\25B2";
  opacity:.8;
}

table.table-sortable thead th.th-sortable[data-sort-dir="desc"]::after,
.portal-admin-table thead th.th-sortable[data-sort-dir="desc"]::after{
  content:"\25BC";
  opacity:.8;
}

table.table-sortable thead th.th-sortable:focus,
.portal-admin-table thead th.th-sortable:focus{
  outline:2px solid rgba(0,191,166,.28);
  outline-offset:2px;
  border-radius:8px;
}

.portal-admin-table thead th.th-sortable:hover{
  background:rgba(0,191,166,.1);
}

.portal-admin-row--focus{
  outline:2px solid rgba(0,191,166,.28);
  outline-offset:-2px;
  background:linear-gradient(180deg, rgba(232,246,238,.86), rgba(255,255,255,.98));
  animation:portalRowPulse 1.6s ease;
}

.portal-admin-subtext{
  margin-top:6px;
  color:var(--portal-muted);
  line-height:1.55;
  font-size:13px;
}

.portal-admin-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.portal-admin-actions form{
  margin:0;
}

.portal-modal[hidden]{
  display:none;
}

.portal-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:grid;
  place-items:center;
  padding:24px;
}

.portal-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,25,16,.46);
  backdrop-filter:blur(8px);
}

.portal-modal__dialog{
  position:relative;
  z-index:1;
  width:min(720px, calc(100vw - 24px));
  max-height:min(88vh, 980px);
  overflow:auto;
  padding:24px;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.68);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,250,246,.97));
  box-shadow:0 28px 80px rgba(7,31,29,.24);
}

.portal-modal__header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:12px;
}

.portal-modal__title{
  margin:10px 0 0;
  color:var(--portal-ink);
  font-size:24px;
  line-height:1.1;
}

.portal-modal__close{
  display:inline-grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--portal-border);
  background:rgba(255,255,255,.9);
  color:var(--portal-forest);
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.portal-modal__close:hover{
  background:var(--portal-forest-soft);
}

@keyframes portalRowPulse{
  0%{ box-shadow:inset 0 0 0 999px rgba(0,191,166,.10); }
  100%{ box-shadow:inset 0 0 0 999px rgba(0,191,166,0); }
}

.portal-status-pill{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.portal-status-pill--ok{
  background:rgba(0,191,166,.1);
  color:var(--portal-forest);
}

.portal-status-pill--soft{
  background:rgba(47,107,255,.12);
  color:#0f5c81;
}

.portal-status-pill--pink{
  background:rgba(47,107,255,.14);
  color:#2F6BFF;
}

.portal-status-pill--muted{
  background:rgba(100,116,139,.14);
  color:#475569;
}

.portal-alert-section{
  margin-top:22px;
}

.portal-alert-section--compact{
  margin-top:16px;
}

.portal-alert-section__header{
  margin-bottom:18px;
}

.portal-alert-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
}

.portal-alert-card{
  padding:18px 20px;
  border-radius:24px;
  border:1px solid rgba(0,191,166,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(232,246,238,.88));
  box-shadow:var(--portal-shadow-soft);
}

.portal-alert-card--urgent{
  border-color:rgba(194,32,92,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,226,239,.92));
}

.portal-alert-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.portal-alert-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(0,191,166,.1);
  color:var(--portal-forest);
  font-size:12px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.portal-alert-card__days{
  font-size:13px;
  font-weight:800;
  color:var(--portal-ink);
}

.portal-alert-card__title{
  margin:0;
  color:var(--portal-ink);
  font-size:20px;
  line-height:1.15;
}

.portal-alert-card__text{
  margin:10px 0 0;
  color:var(--portal-text);
  line-height:1.55;
}

.portal-alert-card__meta{
  margin:12px 0 0;
  color:var(--portal-muted);
  font-size:13px;
  font-weight:700;
}

.portal-footer{
  padding:20px 0 30px;
  color:var(--portal-muted);
  font-size:13px;
}

.portal-footer__inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.portal-footer__logos{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.portal-footer__logos img{
  height:36px;
  width:auto;
  object-fit:contain;
}

@media (max-width: 1080px){
  .portal-hero__grid,
  .portal-auth-shell,
  .portal-dashboard-hero__grid{
    grid-template-columns:1fr;
  }

  .portal-hero-card,
  .portal-dashboard-summary{
    max-width:none;
  }

  .portal-shell{
    width:min(100% - 28px, 1320px);
  }

  .portal-hero__grid--news{
    grid-template-columns:minmax(0, 1.45fr) minmax(220px, .75fr);
  }

  body.portal-private-zone .portal-shell{
    width:min(100% - 28px, 1280px);
  }

  body.portal-private-zone .portal-dashboard-hero__title{
    max-width:none;
  }
}

@media (max-width: 900px){
  .portal-grid--split,
  .portal-grid--three,
  .portal-kpi-grid,
  .portal-stage-grid{
    grid-template-columns:1fr;
  }

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

  .portal-admin-grid,
  .portal-admin-inline,
  .portal-form-grid{
    grid-template-columns:1fr;
  }

  .portal-list-controls{
    grid-template-columns:1fr;
  }

  .portal-hero{
    padding:28px 24px;
  }

  .portal-auth-panel,
  .portal-auth-card__body,
  .portal-auth-card__header,
  .portal-dashboard-hero{
    padding-left:22px;
    padding-right:22px;
  }

  .portal-hero{
    padding:30px 24px;
  }

  .portal-hero__trust{
    grid-template-columns:1fr;
  }

  .portal-modal{
    padding:16px;
  }

  body.portal-private-zone .portal-tile-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  body.portal-private-zone .tile{
    min-height:unset;
  }

  body.portal-private-zone .portal-dashboard-hero{
    padding:24px 20px;
  }

  body.portal-private-zone .portal-dashboard-summary{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .portal-shell{
    width:calc(100% - 16px);
  }

  .portal-topbar{
    border-radius:28px;
    padding:16px;
    align-items:flex-start;
  }

  .portal-brand{
    align-items:flex-start;
  }

  .portal-brand__mark{
    width:54px;
    height:54px;
    border-radius:16px;
  }

  .portal-nav{
    width:100%;
    justify-content:flex-start;
  }

  .portal-section__header,
  .portal-footer__inner{
    display:grid;
    gap:8px;
  }

  .portal-section__title{
    font-size:26px;
  }

  .portal-hero{
    padding:24px 18px;
  }

  .portal-hero__grid--news{
    grid-template-columns:1fr;
  }

  .portal-hero-card--compact{
    min-height:auto;
  }

  .portal-hero__title,
  .portal-auth-panel__title,
  .portal-dashboard-hero__title{
    font-size:32px;
  }

  .portal-tile-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .tile{
    padding:16px;
    gap:12px;
  }

  .portal-modal{
    padding:12px;
  }

  .portal-modal__dialog{
    width:min(100vw - 12px, 720px);
    padding:18px;
    border-radius:20px;
  }

  body.portal-private-zone .portal-shell{
    width:calc(100% - 16px);
  }

  body.portal-private-zone .portal-topbar{
    gap:14px;
    padding:14px;
  }

  body.portal-private-zone .portal-nav{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  body.portal-private-zone .portal-nav .portal-chip{
    justify-content:center;
    width:100%;
  }

  body.portal-private-zone .portal-dashboard-hero{
    border-radius:24px;
    padding:20px 16px;
  }

  body.portal-private-zone .portal-dashboard-hero__meta,
  body.portal-private-zone .portal-dashboard-hero__actions{
    gap:8px;
  }

  body.portal-private-zone .portal-dashboard-hero__title{
    font-size:clamp(2.2rem, 7vw, 2.8rem);
    line-height:1.05;
  }

  body.portal-private-zone .portal-dashboard-summary{
    grid-template-columns:1fr;
  }

  body.portal-private-zone .portal-tile-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  body.portal-private-zone .tile{
    padding:16px;
    gap:12px;
  }

  body.portal-private-zone .tile-img{
    width:52px;
    height:52px;
    border-radius:16px;
  }
}
