:root{
  --primary:#0b5ed7;
  --accent:#2a99d6;
  --dark:#04122c;
  --portal-bg:#f4f4f4;
  --sidebar-bg:#efefef;
  --footer-bg:#f4f4f4;
  --footer-text:#616c7b;
  --bottom-text:#7b8798;
  --shape-1:#2a99d6;
  --shape-2:#04122c;
  --shape-3:#82bd41;
  --body-font:Arial, Helvetica, sans-serif;
  --business-font-size:28px;
  --portal-title-size:22px;
  --menu-font-size:16px;
  --heading-font-size:64px;
  --footer-title-size:23px;
  --footer-text-size:16px;
  --bottom-text-size:11px;
  --menu-text-transform:uppercase;
  --footer-align:left;
  --footer-columns:repeat(3,minmax(0,1fr));
  --bottom-align:space-between;
  --text:#132238;
}
*{box-sizing:border-box}
body{margin:0;font-family:var(--body-font);color:var(--text);background:var(--portal-bg);line-height:1.65}
button,input{font-family:inherit}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.eyebrow{color:var(--accent);text-transform:uppercase;font-weight:700;letter-spacing:.16em;font-size:.9rem;margin:0 0 14px}
.site-main{padding:0}
.portal-shell{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:100vh;background:var(--portal-bg)}
.portal-sidebar{background:var(--sidebar-bg);border-right:1px solid #dcdcdc;display:flex;flex-direction:column}
.portal-brand{padding:56px 32px 28px;text-align:center;border-bottom:1px solid #e2e2e2}
.portal-logo img{max-height:54px;width:auto}
.portal-logo-text{font-size:var(--business-font-size);font-weight:700;color:var(--primary);margin-bottom:20px}
.portal-brand h2{margin:30px 0 8px;font-size:var(--portal-title-size);letter-spacing:.14em;text-transform:uppercase;color:var(--dark)}
.portal-brand p{margin:0;color:#808a96;font-size:.9rem;font-style:italic}
.portal-topic-nav ul{list-style:none;margin:0;padding:0}
.portal-topic-nav li{border-bottom:1px solid #d9d9d9}
.portal-topic-btn{width:100%;font-size:var(--menu-font-size);text-transform:var(--menu-text-transform);border:none;background:transparent;text-align:left;padding:18px 14px;font:inherit;font-weight:700;color:var(--dark);cursor:pointer;line-height:1.4}
.portal-topic-btn:hover,.portal-topic-btn.is-active{background:var(--dark);color:#fff}
.portal-main{padding:56px 64px 28px;display:flex;flex-direction:column}
.portal-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding-bottom:28px;border-bottom:1px solid #e5e5e5;margin-bottom:36px}
.portal-header h1{margin:0;font-size:clamp(2.1rem,4vw,var(--heading-font-size));line-height:1.02;max-width:760px;color:var(--dark)}
.portal-header .fixed-part{display:inline-block;margin-right:.25em}
.portal-header-side{display:flex;flex-direction:column;align-items:flex-end;gap:18px}
.portal-shapes{display:flex;gap:18px;align-items:flex-start;min-width:180px;justify-content:flex-end}
.portal-shapes img{max-width:190px;max-height:95px;object-fit:contain}
.portal-shapes span{display:inline-block}
.portal-shapes--semi_circles span{width:80px;height:40px;border-radius:80px 80px 0 0}
.portal-shapes--semi_circles .shape-one{background:var(--shape-1)}
.portal-shapes--semi_circles .shape-two{background:var(--shape-2)}
.portal-shapes--semi_circles .shape-three{display:none}
.portal-shapes--pills span{width:76px;height:12px;border-radius:999px;margin-top:12px}
.portal-shapes--pills .shape-one{background:var(--shape-1)}
.portal-shapes--pills .shape-two{background:var(--shape-3)}
.portal-shapes--pills .shape-three{background:var(--shape-2)}
.portal-shapes--dots span{width:18px;height:18px;border-radius:50%;margin-top:8px}
.portal-shapes--dots .shape-one{background:var(--shape-1)}
.portal-shapes--dots .shape-two{background:var(--shape-2)}
.portal-shapes--dots .shape-three{background:var(--shape-3)}
.portal-content-wrap{flex:1;min-height:260px}
.portal-lock-box{max-width:580px;background:#f8f8f8;border:1px solid #e0e0e0;padding:40px;margin-bottom:42px}
.portal-lock-box p{text-align:center;color:#5d6877;font-style:italic;margin:0 0 26px}
.portal-auth-form{display:grid;grid-template-columns:1fr 130px;gap:10px;align-items:stretch}
.portal-auth-form input{min-height:52px;border:1px solid #cfd7df;background:#fff;border-radius:0;padding:12px 14px}
.portal-auth-form button{min-height:52px;border:none;background:var(--dark);color:#fff;font-weight:700;text-transform:uppercase;cursor:pointer}
.portal-error{color:#b42318;text-align:center;margin-bottom:14px;font-weight:700}
.portal-panel{display:none}
.portal-panel.is-active{display:block}
.portal-panel-card{max-width:980px}
.portal-panel-card h2{margin:0 0 18px;font-size:1.9rem;color:var(--dark)}
.portal-builder-content img{max-width:100%;height:auto}
.portal-clients-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.portal-clients{display:grid;gap:12px;width:280px}
.portal-clients--row{display:flex;flex-direction:row;gap:12px;width:auto}
.portal-client-card{display:grid;grid-template-columns:56px 1fr;gap:10px;align-items:start;background:#fff;border:1px solid #dde3ea;padding:10px;border-radius:10px;box-shadow:0 8px 20px rgba(4,18,44,.05);text-align:left}
.portal-client-card--compact{width:230px;cursor:pointer;font:inherit}
.portal-client-card--compact:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(4,18,44,.10)}
.portal-client-thumb img{width:56px;height:56px;object-fit:cover;border-radius:8px;display:block}
.portal-client-placeholder{width:56px;height:56px;border-radius:8px;background:#d9ecff;color:var(--primary);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.2rem}
.portal-client-copy h3{margin:0 0 4px;font-size:.92rem;line-height:1.2;color:var(--dark)}
.portal-client-copy p{margin:0;font-size:.8rem;line-height:1.35;color:#616c7b}
.portal-more-btn{border:none;background:var(--dark);color:#fff;padding:10px 18px;border-radius:8px;font-weight:700;cursor:pointer;min-width:88px}
.portal-client-modal[hidden]{display:none!important}
.portal-client-modal{position:fixed;inset:0;z-index:9999}
.portal-client-modal__backdrop{position:absolute;inset:0;background:rgba(4,18,44,.55)}
.portal-client-modal__dialog{position:relative;width:min(1000px,calc(100% - 32px));max-height:85vh;overflow:auto;margin:40px auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(4,18,44,.25)}
.portal-client-modal__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.portal-client-modal__header h2{margin:0;color:var(--dark)}
.portal-client-modal__close{border:none;background:transparent;font-size:2rem;line-height:1;cursor:pointer;color:var(--dark)}
.portal-client-modal__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.portal-client-card--full{grid-template-columns:72px 1fr;width:100%;cursor:pointer;font:inherit}
.portal-client-card--full .portal-client-thumb img,.portal-client-card--full .portal-client-placeholder{width:72px;height:72px}
.portal-client-detail{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start}
.portal-client-detail__image img{width:100%;height:auto;border-radius:12px;display:block}
.portal-client-placeholder--large{width:100%;min-height:220px;border-radius:12px;font-size:3rem}
.portal-client-detail__excerpt{font-weight:700;color:var(--dark);margin-top:0}
.portal-client-detail__text{color:#4f5e70}
body.portal-modal-open{overflow:hidden}
.portal-footer{display:grid;grid-template-columns:var(--footer-columns);gap:28px;padding:34px 0 0;margin-top:48px;border-top:1px solid #e5e5e5;background:var(--footer-bg);color:var(--footer-text);text-align:var(--footer-align);font-size:var(--footer-text-size)}
.portal-footer h3{margin:0 0 10px;font-size:var(--footer-title-size);color:var(--dark);text-transform:uppercase;letter-spacing:.08em}
.portal-editor-screen{padding:40px 24px}
.portal-editor-wrap{max-width:1100px;margin:0 auto;background:#fff;border:1px solid #e5e5e5;padding:32px}
@media (max-width:1024px){.portal-shell{grid-template-columns:1fr}.portal-main{padding:32px 22px 28px}.portal-brand{padding:28px 22px}.portal-footer{grid-template-columns:1fr}.portal-clients--row{flex-wrap:wrap}}
@media (max-width:768px){.portal-header{flex-direction:column}.portal-header-side{align-items:flex-start;width:100%}.portal-auth-form{grid-template-columns:1fr}.portal-shapes{justify-content:flex-start}.portal-client-modal__grid{grid-template-columns:1fr}.portal-client-detail{grid-template-columns:1fr}.portal-client-card--compact{width:100%}}

.portal-bottom-bar{
  display:flex;
  align-items:center;
  justify-content:var(--bottom-align);
  gap:18px;
  padding:18px 0 4px;
  margin-top:22px;
  color:var(--bottom-text);
  font-size:var(--bottom-text-size);
  text-transform:uppercase;
  letter-spacing:.22em;
}
.portal-bottom-bar p{margin:0}
.portal-bottom-shapes{display:flex;align-items:center;gap:8px}
.portal-bottom-shapes span{display:inline-block}
.portal-bottom-shapes img{max-width:90px;max-height:30px;object-fit:contain}
.portal-bottom-shapes.portal-shapes--semi_circles span{width:40px;height:7px;border-radius:999px}
.portal-bottom-shapes.portal-shapes--semi_circles .bottom-shape-one{background:var(--shape-1)}
.portal-bottom-shapes.portal-shapes--semi_circles .bottom-shape-two{background:var(--shape-3)}
.portal-bottom-shapes.portal-shapes--pills span{width:40px;height:7px;border-radius:999px}
.portal-bottom-shapes.portal-shapes--pills .bottom-shape-one{background:var(--shape-1)}
.portal-bottom-shapes.portal-shapes--pills .bottom-shape-two{background:var(--shape-3)}
.portal-bottom-shapes.portal-shapes--dots span{width:9px;height:9px;border-radius:50%}
.portal-bottom-shapes.portal-shapes--dots .bottom-shape-one{background:var(--shape-1)}
.portal-bottom-shapes.portal-shapes--dots .bottom-shape-two{background:var(--shape-3)}
@media (max-width:768px){
  .portal-bottom-bar{flex-direction:column;align-items:flex-start;letter-spacing:.12em}
}
