:root{
  --bg:#0d0e11;--bg2:#15171c;--surface:#1a1d23;--surface2:#22262e;
  --text:#f4f2ed;--muted:#aaa79f;--line:#323741;--accent:#d8b46a;
  --accent2:#f0d69b;--danger:#d76e6e;--shadow:0 18px 50px rgba(0,0,0,.28);
  --radius:22px;--max:1180px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Tahoma,Arial,sans-serif;background:radial-gradient(circle at 80% 0,#24211a 0,transparent 34%),linear-gradient(180deg,var(--bg2),var(--bg));color:var(--text);line-height:1.8;min-height:100vh}a{color:inherit;text-decoration:none}button,input{font:inherit}.hidden{display:none!important}

/* Portal */
.portal-page{min-height:100vh;padding:34px 16px 50px}.portal{width:min(690px,100%);margin:auto;text-align:center}.portal-avatar{width:112px;height:112px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#806534,#27231c);border:3px solid rgba(240,214,155,.65);box-shadow:var(--shadow);font-weight:800;font-size:34px}.portal-avatar img{width:100%;height:100%;object-fit:cover}.portal h1{font-size:34px;margin:8px 0 2px}.portal-sub{color:var(--muted);margin:0 0 26px}.portal-links{display:grid;gap:13px}.portal-btn{min-height:62px;padding:13px 18px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;border-radius:18px;background:rgba(28,31,38,.94);border:1px solid var(--line);box-shadow:0 10px 25px rgba(0,0,0,.18);transition:.18s ease;text-align:center}.portal-btn:hover{transform:translateY(-2px);border-color:#806b41;background:#20242b}.portal-btn.primary{background:linear-gradient(135deg,#8e713d,#4d402a);border-color:#a88950;font-weight:700}.portal-btn.support{border-style:dashed;color:#d9d5cc}.portal-btn.disabled{opacity:.62;cursor:not-allowed}.portal-icon{font-size:23px}.portal-arrow{color:var(--muted);direction:ltr}.portal-heading{font-size:15px;color:var(--muted);margin:26px 0 9px}.portal-note{font-size:12px;color:#87837a;margin-top:26px}

/* Library */
.site-header{position:sticky;top:0;z-index:20;background:rgba(13,14,17,.86);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-inner{max-width:var(--max);margin:auto;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#806534,#27231c);font-weight:700}.brand img{width:45px;height:45px;border-radius:50%;object-fit:cover}.brand strong{display:block}.brand small{display:block;color:var(--muted);font-size:11px}.top-nav{display:flex;gap:6px;flex-wrap:wrap}.top-nav a{padding:7px 10px;border-radius:11px;color:#dedbd4}.top-nav a:hover{background:var(--surface2)}.wrap{max-width:var(--max);margin:auto;padding:28px 18px 60px}.hero{border:1px solid var(--line);border-radius:28px;padding:34px;background:linear-gradient(135deg,#30291f,#1a1d23 62%);box-shadow:var(--shadow)}.hero h1{font-size:clamp(30px,6vw,56px);margin:0}.hero p{color:#d0ccc3;margin:6px 0 0}.badge{display:inline-block;padding:5px 10px;border-radius:999px;background:#ffffff13;color:#d5d0c7;font-size:12px;margin-bottom:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.stat{background:var(--surface);border:1px solid var(--line);padding:16px;border-radius:17px}.stat strong{display:block;color:var(--accent2);font-size:28px}.stat span{color:var(--muted);font-size:13px}.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:18px 0}.action,.card,.panel,.search-result{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px}.action{display:flex;align-items:center;gap:10px}.action:hover,.card:hover,.search-result:hover{border-color:#826c42;background:var(--surface2)}.section-heading{font-size:25px;margin:30px 0 12px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.card h2,.card h3{margin:0;line-height:1.5}.meta{font-size:12px;color:var(--muted)}.panel{margin:14px 0}.breadcrumbs{display:flex;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:13px;margin-bottom:12px}.page-title{font-size:clamp(28px,5vw,45px);line-height:1.4;margin:0 0 16px}.index-section{margin:26px 0}.index-section>h2{padding:12px 14px;border-right:4px solid var(--accent);background:var(--surface);border-radius:13px;margin:0 0 12px}.index-topic{margin:16px 0}.index-topic h3{font-size:18px;color:var(--accent2);margin:0 0 6px}.doc-list{list-style:none;padding:0;margin:0}.doc-list li{padding:7px 0;border-bottom:1px dashed var(--line)}.doc-num{display:inline-block;min-width:52px;color:var(--muted);font-size:12px}.search-box{width:100%;padding:15px;border:1px solid var(--line);background:#111319;color:var(--text);border-radius:14px;outline:none}.search-box:focus{border-color:#927746}.search-results{display:grid;gap:10px;margin-top:12px}.search-result strong{display:block}.search-result small{color:var(--muted)}.doc-text{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:16px}.media-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin-top:16px}.media-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}.media-card img,.media-card video{display:block;width:100%;height:auto;background:#0b0c0f}.media-card audio{width:100%;margin:18px 0}.media-caption{padding:7px 10px;color:var(--muted);font-size:12px}.doc-nav{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:20px}.doc-nav a,.doc-nav span{padding:11px;border:1px solid var(--line);border-radius:13px;text-align:center;background:var(--surface)}.doc-nav span{opacity:.4}.external-box{display:grid;gap:9px}.external-row{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#15181e}.external-row:hover{border-color:#826c42}.contact-strip{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.site-footer{max-width:var(--max);margin:auto;padding:24px 18px 36px;text-align:center;color:var(--muted);border-top:1px solid var(--line)}
.lightbox{display:none;position:fixed;inset:0;z-index:100;background:#000e;align-items:center;justify-content:center;padding:18px}.lightbox.open{display:flex}.lightbox img{max-width:96vw;max-height:94vh}.lightbox button{position:absolute;left:16px;top:14px;width:44px;height:44px;border:0;border-radius:50%;font-size:25px;cursor:pointer}
@media(max-width:820px){.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:repeat(2,1fr)}.media-grid{grid-template-columns:1fr}}@media(max-width:600px){.header-inner{align-items:flex-start;flex-direction:column}.top-nav{width:100%;overflow:auto;flex-wrap:nowrap}.wrap{padding-inline:13px}.hero{padding:24px 18px}.actions,.grid,.contact-strip,.doc-nav{grid-template-columns:1fr}.portal-page{padding-top:24px}.portal-avatar{width:96px;height:96px}.portal h1{font-size:29px}}

/* WEB6 LOCAL CHANNEL IMAGES */
.portal-avatar{width:132px;height:132px}
.portal-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.portal-icon{width:42px;height:42px;display:grid;place-items:center}
.portal-icon img,.external-thumb{
  width:42px;height:42px;border-radius:50%;object-fit:cover;display:block;
  border:1px solid rgba(240,214,155,.32);box-shadow:0 4px 12px rgba(0,0,0,.24)
}
.external-row .external-thumb{flex:0 0 42px}
.library-hero-with-image{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,360px);
  gap:26px;align-items:center
}
.library-hero-image{
  width:100%;max-width:360px;aspect-ratio:1/1;object-fit:cover;
  border-radius:28px;border:1px solid rgba(240,214,155,.34);
  box-shadow:0 18px 42px rgba(0,0,0,.34);justify-self:end
}
.library-hero-copy{min-width:0}
.brand img{
  width:42px;height:42px;border-radius:50%;object-fit:cover;display:block;
  border:1px solid rgba(240,214,155,.38);box-shadow:0 4px 12px rgba(0,0,0,.22)
}
@media(max-width:720px){
  .library-hero-with-image{grid-template-columns:1fr}
  .library-hero-image{max-width:320px;justify-self:center;order:-1}
  .portal-avatar{width:112px;height:112px}
}
/* WEB6 FIX2 COMPACT IMAGES */
.portal .portal-avatar{
  width:72px !important;height:72px !important;
  min-width:72px !important;min-height:72px !important;
  max-width:72px !important;max-height:72px !important;
  margin:0 auto 12px !important;border-radius:50% !important;
  overflow:hidden !important;display:block !important;
}
.portal .portal-avatar > img{
  width:72px !important;height:72px !important;
  min-width:72px !important;max-width:72px !important;
  object-fit:cover !important;border-radius:50% !important;
  display:block !important;margin:0 !important;
}
.portal .portal-btn .portal-icon{
  width:36px !important;height:36px !important;
  min-width:36px !important;min-height:36px !important;
  max-width:36px !important;max-height:36px !important;
  flex:0 0 36px !important;border-radius:50% !important;
  overflow:hidden !important;display:inline-flex !important;
  align-items:center !important;justify-content:center !important;
  padding:0 !important;margin:0 !important;
}
.portal .portal-btn .portal-icon > img{
  width:36px !important;height:36px !important;
  min-width:36px !important;max-width:36px !important;
  object-fit:cover !important;border-radius:50% !important;
  display:block !important;margin:0 !important;padding:0 !important;
}
.portal .portal-btn{align-items:center !important;}
.hero.library-hero-with-image{
  display:flex !important;flex-direction:row !important;
  align-items:center !important;justify-content:space-between !important;
  gap:16px !important;
}
.hero.library-hero-with-image .library-hero-copy{
  flex:1 1 auto !important;min-width:0 !important;
}
.hero.library-hero-with-image .library-hero-image{
  width:96px !important;height:96px !important;
  min-width:96px !important;min-height:96px !important;
  max-width:96px !important;max-height:96px !important;
  flex:0 0 96px !important;object-fit:cover !important;
  border-radius:18px !important;display:block !important;margin:0 !important;
}
.site-header .brand > img{
  width:36px !important;height:36px !important;
  min-width:36px !important;max-width:36px !important;
  object-fit:cover !important;border-radius:50% !important;display:block !important;
}
.external-row .external-thumb,
.external-row > img.external-thumb{
  width:34px !important;height:34px !important;
  min-width:34px !important;min-height:34px !important;
  max-width:34px !important;max-height:34px !important;
  flex:0 0 34px !important;object-fit:cover !important;
  border-radius:50% !important;display:block !important;margin:0 !important;
}
@media(max-width:720px){
  .portal .portal-avatar,.portal .portal-avatar > img{
    width:64px !important;height:64px !important;
    min-width:64px !important;min-height:64px !important;
    max-width:64px !important;max-height:64px !important;
  }
  .hero.library-hero-with-image .library-hero-image{
    width:72px !important;height:72px !important;
    min-width:72px !important;min-height:72px !important;
    max-width:72px !important;max-height:72px !important;
    flex-basis:72px !important;border-radius:14px !important;
  }
  .portal .portal-btn .portal-icon,
  .portal .portal-btn .portal-icon > img{
    width:32px !important;height:32px !important;
    min-width:32px !important;min-height:32px !important;
    max-width:32px !important;max-height:32px !important;
  }
}


/* WEB7 CONTACT APP ICONS */
.portal .portal-btn .portal-icon.app-logo{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  min-height:36px !important;
  max-width:36px !important;
  max-height:36px !important;
  flex:0 0 36px !important;
  border-radius:12px !important;
  overflow:hidden !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.portal .portal-btn .portal-icon.app-logo > img{
  width:36px !important;
  height:36px !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:12px !important;
}
@media (max-width:720px){
  .portal .portal-btn .portal-icon.app-logo,
  .portal .portal-btn .portal-icon.app-logo > img{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    max-width:34px !important;
    max-height:34px !important;
  }
}

/* WATHAEQ SEARCH V2 */
.search-v2-snippet{display:block;margin-top:6px;font-size:.9em;line-height:1.65;opacity:.82;font-weight:400}
