/* =========================================================
   Africa Climate Negotiation Assistant — New Visual Identity
   Clean, professional, “briefing-room” look (not Clima-Verdict)
   ========================================================= */

:root{
  --page:#f6f1e8;
  --surface:#fffaf3;
  --surface2:#efe7da;
  --surface3:#132833;
  --stroke:rgba(19,40,51,.12);
  --stroke-strong:rgba(19,40,51,.2);

  --ink:#16232c;
  --muted:rgba(22,35,44,.74);
  --muted2:rgba(22,35,44,.56);

  --accent:#0f766e;
  --accent2:#d0842f;
  --accent3:#7c4c1c;
  --accent-soft:#dceee9;
  --danger:#c2410c;

  --shadow:0 18px 44px rgba(19,40,51,.10);
  --shadow2:0 10px 24px rgba(19,40,51,.08);
  --r12:14px;
  --r16:18px;
  --r20:24px;

  --max:1120px;
  --hero-img:url("/static/hero-unfccc.png");
}

/* =========================================================
   ClimateAction-AI Admin Control Panel
   ========================================================= */
.admin-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 10% 8%, rgba(0,107,95,.13), transparent 28%),
    radial-gradient(circle at 95% 0%, rgba(238,154,47,.14), transparent 30%),
    linear-gradient(180deg,#f7fbfa 0%,#eef6f5 100%);
}

.admin-shell{
  width:min(1180px,calc(100% - 32px));
  margin:24px auto 50px;
}

.admin-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px;
  border-radius:24px;
  color:#fff;
  background:linear-gradient(135deg,#053746,#075765);
  box-shadow:0 24px 54px rgba(7,54,69,.22);
}

.admin-brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.admin-brand img{
  width:72px;
  height:50px;
  object-fit:contain;
  border-radius:12px;
  background:#fff;
  padding:7px;
}

.admin-brand span,
.admin-kicker,
.admin-card-head span{
  display:block;
  color:#006b5f;
  font-size:12px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.admin-brand span{
  color:#a7eee4;
}

.admin-brand strong{
  display:block;
  color:#fff;
  font-size:22px;
  line-height:1.15;
}

.admin-logout,
.admin-login-form button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:11px 18px;
  border:0;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(135deg,#e08a16,#f0a53c);
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
}

.admin-login-card,
.admin-title-row,
.admin-card,
.admin-kpi{
  border:1px solid rgba(7,54,69,.13);
  border-radius:22px;
  background:rgba(255,255,255,.9);
  box-shadow:0 18px 40px rgba(17,35,49,.08);
}

.admin-login-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.42fr);
  gap:28px;
  align-items:start;
  margin-top:22px;
  padding:30px;
}

.admin-login-card h1,
.admin-title-row h1{
  margin:8px 0 10px;
  color:#142132;
  font-size:clamp(34px,5vw,64px);
  line-height:.98;
  letter-spacing:0;
}

.admin-login-card p,
.admin-title-row p{
  max-width:700px;
  margin:0;
  color:#526375;
  font-size:17px;
  line-height:1.55;
}

.admin-login-form{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid #dce8e6;
  border-radius:18px;
  background:#f8fcfb;
}

.admin-login-form label{
  display:grid;
  gap:7px;
  color:#3e5063;
  font-size:13px;
  font-weight:900;
}

.admin-login-form input,
.admin-range select{
  width:100%;
  min-height:46px;
  padding:11px 13px;
  border:1px solid #cdddda;
  border-radius:13px;
  color:#152337;
  background:#fff;
  font:inherit;
}

.admin-error{
  padding:11px 13px;
  border:1px solid #f4c7c2;
  border-radius:12px;
  color:#9f1d16;
  background:#fff5f4;
  font-weight:800;
}

.admin-title-row{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-top:22px;
  padding:26px;
}

.admin-range{
  display:grid;
  gap:7px;
  min-width:180px;
  color:#526375;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.admin-kpis{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}

.admin-kpi{
  padding:18px;
}

.admin-kpi span{
  color:#526375;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.admin-kpi strong{
  display:block;
  margin:8px 0 6px;
  color:#0d3845;
  font-size:30px;
  line-height:1;
}

.admin-kpi small{
  color:#748293;
  line-height:1.35;
}

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

.admin-card{
  padding:22px;
  overflow:hidden;
}

.admin-card-wide{
  grid-column:span 1;
}

.admin-card-head{
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid #e1ebe9;
}

.admin-card-head h2{
  margin:5px 0 0;
  color:#142132;
  font-size:24px;
  line-height:1.12;
}

.admin-card-head small{
  color:#718194;
  font-weight:800;
}

.admin-card canvas{
  display:block;
  width:100%;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff,#f7fbfb);
}

.admin-bars{
  display:grid;
  gap:11px;
}

.admin-bar-row{
  display:grid;
  grid-template-columns:minmax(130px,.55fr) minmax(120px,1fr) 54px;
  gap:12px;
  align-items:center;
  width:100%;
  padding:12px;
  border:1px solid #e3ecea;
  border-radius:14px;
  background:#fff;
  color:#182638;
  text-align:left;
}

.admin-bar-row span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:900;
}

.admin-bar-row div{
  height:11px;
  overflow:hidden;
  border-radius:999px;
  background:#e9f1f0;
}

.admin-bar-row i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#006b5f,#ee9a2f);
}

.admin-bar-row strong{
  color:#526375;
  text-align:right;
}

.admin-table-card{
  margin-top:18px;
}

.admin-table-wrap{
  overflow:auto;
}

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

.admin-table th,
.admin-table td{
  padding:12px 10px;
  border-bottom:1px solid #e6eeee;
  color:#405066;
  text-align:left;
  vertical-align:top;
  font-size:13px;
}

.admin-table th{
  color:#132333;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.admin-empty{
  margin:0;
  color:#748293;
}

@media (max-width:980px){
  .admin-login-card,
  .admin-title-row{
    grid-template-columns:1fr;
    display:grid;
  }
  .admin-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:620px){
  .admin-shell{
    width:min(100% - 20px,1180px);
    margin-top:10px;
  }
  .admin-hero{
    align-items:flex-start;
    flex-direction:column;
  }
  .admin-brand strong{
    font-size:18px;
  }
  .admin-login-card,
  .admin-title-row,
  .admin-card{
    padding:18px;
  }
  .admin-kpis{
    grid-template-columns:1fr;
  }
  .admin-bar-row{
    grid-template-columns:1fr;
  }
  .admin-bar-row strong{
    text-align:left;
  }
}

/* =========================================================
   ClimateAction-AI professional visual refresh
   Keeps existing IDs and behavior; updates the product shell.
   ========================================================= */

:root{
  --page:#f3f7f7;
  --surface:#ffffff;
  --surface2:#eef8f6;
  --surface3:#073645;
  --stroke:rgba(7,54,69,.12);
  --stroke-strong:rgba(7,54,69,.2);
  --ink:#172331;
  --muted:#526375;
  --muted2:#7b8a99;
  --accent:#006b5f;
  --accent2:#ee9a2f;
  --accent3:#0d7182;
  --accent-soft:#e3f4ef;
  --danger:#b42318;
  --shadow:0 24px 60px rgba(17,35,49,.13);
  --shadow2:0 14px 34px rgba(17,35,49,.08);
  --r12:12px;
  --r16:16px;
  --r20:22px;
  --max:1180px;
}

body{
  background:
    radial-gradient(circle at 10% 0%, rgba(7,113,130,.09), transparent 30%),
    radial-gradient(circle at 96% 4%, rgba(238,154,47,.1), transparent 28%),
    linear-gradient(180deg, #fbfcfb 0%, #edf4f4 52%, #f6f8f9 100%);
  color:var(--ink);
}

.app{
  max-width:1180px;
  margin:22px auto;
  padding:0 18px;
}

.app-shell{
  max-width:1220px;
}

.topbar{
  position:relative;
  top:auto;
  z-index:20;
  margin:0 auto -42px;
  padding:14px 22px;
  border:1px solid rgba(255,255,255,.22);
  border-bottom:1px solid rgba(255,255,255,.22);
  border-radius:0 0 22px 22px;
  background:linear-gradient(135deg, rgba(5,43,56,.97), rgba(7,66,79,.98));
  box-shadow:0 22px 48px rgba(7,54,69,.24);
}

.orglogo{
  width:46px;
  height:46px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.orgname{
  font-size:13px;
  letter-spacing:.01em;
}

.orgsub{
  color:rgba(255,255,255,.72);
}

.topbar-right{
  gap:10px;
}

.toplink{
  gap:9px;
  min-height:42px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  color:#eef9f7;
  background:rgba(255,255,255,.04);
  font-size:13px;
}

.toplink:hover,
.toplink.active{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.38);
  box-shadow:none;
}

.toplink.active::after{
  left:14px;
  right:14px;
  bottom:-9px;
  height:3px;
  background:#f7a83a;
}

.toplink-cta,
.cta-primary{
  background:linear-gradient(135deg, #ef9d32, #f6b34d);
  color:#fff;
  border-color:rgba(255,255,255,.28);
  box-shadow:0 14px 28px rgba(238,154,47,.25);
}

.toplink-cta:hover,
.cta-primary:hover{
  background:linear-gradient(135deg, #e99225, #f5ad42);
  color:#fff;
}

.nav-icon{
  position:relative;
  display:inline-flex;
  width:20px;
  height:20px;
  flex:0 0 20px;
}

.nav-icon::before,
.nav-icon::after{
  content:"";
  position:absolute;
  box-sizing:border-box;
}

.nav-home::before{
  left:3px;
  top:8px;
  width:14px;
  height:10px;
  border:2px solid currentColor;
  border-top:0;
  border-radius:2px;
}

.nav-home::after{
  left:4px;
  top:2px;
  width:12px;
  height:12px;
  border-left:2px solid currentColor;
  border-top:2px solid currentColor;
  transform:rotate(45deg);
}

.nav-library::before{
  left:3px;
  top:4px;
  width:14px;
  height:13px;
  border:2px solid currentColor;
  border-radius:3px;
}

.nav-library::after{
  left:10px;
  top:5px;
  height:12px;
  border-left:2px solid currentColor;
}

.nav-analysis::before{
  left:3px;
  bottom:3px;
  width:3px;
  height:8px;
  background:currentColor;
  box-shadow:6px -4px 0 currentColor, 12px -9px 0 currentColor;
  border-radius:999px;
}

.nav-analysis::after{
  left:1px;
  bottom:2px;
  width:18px;
  border-bottom:2px solid currentColor;
}

.nav-open::before{
  inset:4px;
  border:2px solid currentColor;
  border-radius:50%;
}

.nav-open::after{
  left:9px;
  top:1px;
  width:2px;
  height:18px;
  background:currentColor;
  transform:rotate(45deg);
  border-radius:999px;
}

.shell.landing{
  margin-top:0;
}

.landing-view{
  gap:18px;
}

.landing-hero{
  min-height:370px;
  border-radius:30px;
  border:1px solid rgba(7,54,69,.12);
  box-shadow:var(--shadow);
  background:#f7fbfb;
}

.landing-hero-bgimg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.01);
}

.landing-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 38%, rgba(255,255,255,.32) 70%, rgba(255,255,255,.1) 100%),
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(7,54,69,.12));
}

.landing-copy{
  position:relative;
  z-index:2;
  width:min(690px, 100%);
  min-height:370px;
  padding:54px 52px 62px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.landing-kicker{
  margin:0 0 14px;
  color:#006b5f;
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:13px;
}

.landing-title{
  margin:0;
  color:#063848;
  font-size:clamp(48px, 7vw, 82px);
  line-height:.92;
  letter-spacing:0;
  font-weight:950;
}

.landing-title::after{
  content:"";
  display:inline-block;
  width:.34em;
  height:.34em;
  margin-left:.04em;
  border-radius:60% 0 60% 0;
  background:linear-gradient(135deg, #1a8c62, #9ccf67);
  transform:translateY(-.58em) rotate(-12deg);
}

.landing-sub{
  margin:12px 0 0;
  max-width:590px;
  color:#315c68;
  font-size:17px;
  line-height:1.55;
}

.landing-sub span{
  display:block;
  color:#607785;
}

.landing-trust-card{
  width:min(520px, 100%);
  margin-top:26px;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 1px auto;
  align-items:center;
  gap:16px;
  padding:12px 18px;
  border:1px solid rgba(7,54,69,.12);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow:0 18px 36px rgba(12,45,58,.12);
  backdrop-filter:blur(10px);
}

.trust-logo{
  width:56px;
  height:56px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0b4964;
  overflow:hidden;
}

.trust-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:4px;
}

.trust-copy strong,
.trust-copy span,
.trust-badge span{
  display:block;
}

.trust-copy strong{
  font-size:14px;
  line-height:1.25;
}

.trust-copy span,
.trust-badge{
  color:#405967;
  font-size:12px;
  line-height:1.3;
}

.trust-divider{
  width:1px;
  height:42px;
  background:rgba(7,54,69,.16);
}

.trust-badge{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:150px;
}

.trust-icon{
  width:28px;
  height:28px;
  border:2px solid #006b5f;
  border-radius:50% 50% 48% 48%;
  position:relative;
}

.trust-icon::after{
  content:"";
  position:absolute;
  left:7px;
  top:6px;
  width:10px;
  height:6px;
  border-left:2px solid #006b5f;
  border-bottom:2px solid #006b5f;
  transform:rotate(-45deg);
}

.landing-cta{
  position:relative;
  z-index:5;
  margin:-48px 24px 0;
  padding:14px;
  display:flex;
  justify-content:flex-end;
  gap:16px;
  border-radius:24px;
  background:linear-gradient(135deg, #073545, #0a4351);
  box-shadow:0 20px 42px rgba(7,54,69,.26);
}

.cta-primary,
.cta-secondary,
.cta-tertiary{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:14px;
  padding:12px 22px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}

.cta-primary{
  border:0;
  min-width:150px;
}

.cta-secondary,
.cta-tertiary{
  color:#ecf8f6;
  border:1px solid rgba(255,255,255,.36);
  background:rgba(255,255,255,.04);
}

.cta-secondary:hover,
.cta-tertiary:hover{
  background:rgba(255,255,255,.1);
  text-decoration:none;
}

.scope-band{
  display:grid;
  grid-template-columns:78px minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap:22px;
  align-items:center;
  margin-top:20px;
  padding:22px 30px;
  border-radius:22px;
  border:1px solid rgba(0,107,95,.16);
  background:
    linear-gradient(135deg, rgba(238,250,248,.96), rgba(255,255,255,.86)),
    repeating-linear-gradient(160deg, transparent 0 16px, rgba(13,113,130,.06) 17px 18px);
  box-shadow:var(--shadow2);
}

.scope-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 12px 30px rgba(7,54,69,.12);
  position:relative;
}

.scope-icon::before{
  content:"";
  position:absolute;
  inset:17px;
  border:3px solid #0c796f;
  border-radius:50%;
}

.scope-icon::after{
  content:"";
  position:absolute;
  left:20px;
  right:20px;
  top:13px;
  bottom:13px;
  border-left:2px solid #0c796f;
  border-right:2px solid #0c796f;
  border-radius:50%;
  box-shadow:0 13px 0 -11px #0c796f, 0 -13px 0 -11px #0c796f;
}

.scope-copy span,
.landing-card-h,
.insight-kicker{
  color:#006b5f;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:900;
}

.scope-copy p{
  margin:6px 0 0;
  color:#344d5c;
  line-height:1.6;
}

.scope-point{
  display:flex;
  align-items:center;
  gap:12px;
  color:#304959;
  font-size:13px;
  line-height:1.35;
  padding-left:18px;
  border-left:1px solid rgba(7,54,69,.12);
}

.scope-small-icon{
  position:relative;
  width:30px;
  height:30px;
  flex:0 0 30px;
  color:#006b5f;
}

.shield-icon::before,
.clock-icon::before,
.lock-icon::before{
  content:"";
  position:absolute;
  inset:4px;
  border:2px solid currentColor;
}

.shield-icon::before{
  border-radius:9px 9px 14px 14px;
}

.clock-icon::before{
  border-radius:50%;
}

.clock-icon::after{
  content:"";
  position:absolute;
  left:15px;
  top:9px;
  width:7px;
  height:9px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
}

.lock-icon::before{
  top:12px;
  border-radius:5px;
}

.lock-icon::after{
  content:"";
  position:absolute;
  left:9px;
  top:4px;
  width:12px;
  height:12px;
  border:2px solid currentColor;
  border-bottom:0;
  border-radius:10px 10px 0 0;
}

.landing-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(320px, .98fr);
  gap:22px;
  margin-top:4px;
}

.landing-card,
.insight-card{
  border:1px solid rgba(7,54,69,.1);
  border-radius:20px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow2);
}

.landing-card{
  min-height:150px;
  padding:30px;
}

.landing-card-wide{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-left:120px;
  position:relative;
}

.landing-card-wide::before{
  content:"";
  position:absolute;
  left:34px;
  top:50%;
  width:66px;
  height:66px;
  border-radius:50%;
  transform:translateY(-50%);
  background:
    radial-gradient(circle at 48% 48%, #0a6f65 0 8%, transparent 9%),
    radial-gradient(circle at 26% 32%, #0a6f65 0 8%, transparent 9%),
    radial-gradient(circle at 70% 34%, #0a6f65 0 7%, transparent 8%),
    #f7fbfb;
  box-shadow:0 10px 28px rgba(7,54,69,.14);
}

.landing-card-h{
  margin-bottom:8px;
}

.landing-card-p{
  color:#384f5d;
  line-height:1.75;
}

.landing-card-feature{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(238,250,248,.95), rgba(255,255,255,.84)),
    repeating-linear-gradient(155deg, transparent 0 16px, rgba(13,113,130,.06) 17px 18px);
}

.prompt-chips{
  width:min(360px, 100%);
  display:flex;
  flex-direction:column;
  gap:8px;
  position:relative;
  z-index:2;
}

.prompt-chip{
  width:100%;
  min-height:40px;
  padding:10px 42px 10px 16px;
  text-align:left;
  border:1px solid rgba(7,54,69,.14);
  border-radius:10px;
  background:rgba(255,255,255,.7);
  color:#075b59;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(7,54,69,.08);
  position:relative;
}

.prompt-chip::after{
  content:"";
  position:absolute;
  right:17px;
  top:50%;
  width:8px;
  height:8px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
  transform:translateY(-50%) rotate(45deg);
}

.prompt-chip:hover{
  background:#fff;
  transform:translateY(-1px);
}

.prompt-orb{
  position:absolute;
  right:44px;
  bottom:18px;
  width:74px;
  height:74px;
  border-radius:50%;
  background:radial-gradient(circle at 38% 38%, #fff 0 7%, transparent 8%), linear-gradient(135deg, #2f837f, #075460);
  box-shadow:0 14px 28px rgba(7,54,69,.2);
}

.prompt-orb::before,
.prompt-orb::after{
  content:"";
  position:absolute;
  background:rgba(30,128,118,.58);
  border:1px solid rgba(255,255,255,.45);
}

.prompt-orb::before{
  width:48px;
  height:24px;
  left:-52px;
  top:20px;
  border-radius:50% 0 50% 0;
  transform:rotate(16deg);
}

.prompt-orb::after{
  width:34px;
  height:54px;
  left:-8px;
  top:-62px;
  border-radius:50% 0 50% 0;
  transform:rotate(8deg);
}

.landing-insight-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:20px;
}

.insight-card{
  padding:26px 28px 26px 94px;
  min-height:140px;
  position:relative;
}

.insight-card::before{
  content:"";
  position:absolute;
  left:28px;
  top:28px;
  width:52px;
  height:52px;
  border-radius:50%;
  background:linear-gradient(135deg, #e4f5ed, #d2e8d8);
  box-shadow:0 9px 20px rgba(7,54,69,.12);
}

.insight-card::after{
  content:"";
  position:absolute;
  right:20px;
  bottom:22px;
  width:8px;
  height:8px;
  border-top:2px solid #6b7d89;
  border-right:2px solid #6b7d89;
  transform:rotate(45deg);
}

.insight-card strong{
  display:block;
  margin:5px 0 9px;
  color:#172331;
  font-size:17px;
}

.insight-card p{
  margin:0;
  color:#4b5f70;
  line-height:1.65;
}

.shell.tool{
  gap:18px;
}

.sidebar{
  border-radius:24px;
  background:linear-gradient(180deg, #073545 0%, #0a4651 100%);
  box-shadow:0 18px 42px rgba(7,54,69,.22);
}

.sidebtn{
  border-radius:14px;
  background:linear-gradient(135deg, #ef9d32, #f4b54d);
  color:#fff;
}

.hero,
.chatpanel,
.composer,
#chat,
#composer,
.banner,
header.intro{
  border-color:rgba(7,54,69,.1);
  background:rgba(255,255,255,.92);
}

#chat{
  height:58vh;
}

.msg{
  border-radius:16px;
}

.msg.user{
  background:#e9f6f1;
  border-color:#c9e7dd;
}

.msg.bot{
  background:#eef8fb;
  border-color:#d1eaf0;
}

.msg.sys{
  background:#fff6e7;
  border-color:#f2d29f;
}

#prompt{
  border-radius:16px;
  background:#fff;
}

#send,
.primary{
  border:0;
  color:#fff;
  background:linear-gradient(135deg, #006b5f, #0d7182);
}

@media (max-width: 980px){
  .topbar{
    margin-bottom:14px;
    border-radius:24px;
    flex-direction:column;
    align-items:stretch;
  }

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

  .landing-copy{
    padding:34px 26px 82px;
  }

  .landing-cta{
    margin:-52px 16px 0;
    flex-wrap:wrap;
    justify-content:center;
  }

  .scope-band{
    grid-template-columns:64px minmax(0, 1fr);
  }

  .scope-point{
    grid-column:1 / -1;
    border-left:0;
    border-top:1px solid rgba(7,54,69,.1);
    padding:14px 0 0;
  }

  .landing-grid,
  .landing-insight-row,
  .shell.tool{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .app{
    margin:12px auto;
    padding:0 10px;
  }

  .orgmark{
    align-items:flex-start;
  }

  .topbar-right{
    grid-template-columns:1fr;
  }

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

  .landing-hero{
    min-height:560px;
    border-radius:24px;
  }

  .landing-hero-overlay{
    background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 72%, rgba(255,255,255,.55) 100%);
  }

  .landing-copy{
    min-height:560px;
    padding:28px 20px 130px;
    justify-content:flex-start;
  }

  .landing-title{
    font-size:46px;
  }

  .landing-trust-card{
    grid-template-columns:54px minmax(0, 1fr);
    gap:12px;
  }

  .trust-divider,
  .trust-badge{
    display:none;
  }

  .landing-cta{
    margin:-114px 12px 0;
    display:grid;
    grid-template-columns:1fr;
  }

  .scope-band{
    grid-template-columns:1fr;
    padding:20px;
  }

  .scope-icon{
    width:58px;
    height:58px;
  }

  .landing-card-wide{
    padding:94px 22px 22px;
  }

  .landing-card-wide::before{
    top:24px;
    left:22px;
    transform:none;
  }

  .landing-card{
    padding:22px;
  }

  .prompt-orb{
    opacity:.22;
    right:20px;
  }

  .insight-card{
    padding:92px 22px 24px;
  }

  .insight-card::before{
    top:22px;
    left:22px;
  }
}



*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--ink);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(circle at top left, rgba(15,118,110,.08), transparent 28%),
    radial-gradient(circle at top right, rgba(208,132,47,.1), transparent 24%),
    linear-gradient(180deg, #fbf7f0 0%, var(--page) 100%);
}


/* Layout */
.app{
  max-width: var(--max);
  margin: 22px auto;
  padding: 0 16px;
}
.full-width{
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 10px;
}

/* Shell Layout */
.app-shell{max-width:1200px}
.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  margin-bottom:0;
  background:linear-gradient(120deg, #10242d 0%, #173744 54%, #275662 100%);
  color:#fff;
  border-radius:0;
  box-shadow:0 12px 24px rgba(16,36,45,.18);
  border-bottom:3px solid rgba(208,132,47,.78);
}
.orgmark{display:flex;align-items:center;gap:12px}
.orglogo{
  width:56px;
  height:56px;
  border-radius:18px;
  background:rgba(255,250,243,.12);
  border:1px solid rgba(255,250,243,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.orglogo-img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  box-sizing:border-box;
  padding:0px;
}


.orgname{font-weight:700;font-size:13px;line-height:1.2}
.orgsub{font-size:12px;opacity:.9}
.topbar-right{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.toplink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  opacity:.92;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}
.toplink:hover{
  opacity: 1;
  background: rgba(255,255,255,.15);
  text-decoration:none;
}
.toplink.active{
  background: rgba(208,132,47,.18);
  opacity: 1;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(208,132,47,.2);
}
.toplink.active::after{
  content: '';
  position: absolute;
  bottom: -11px;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--accent2);
  border-radius: 2px;
}

.shell{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:16px;
}

.shell.landing{
  grid-template-columns: minmax(0, 1fr);
  margin-top: 20px;
}

.shell.tool{
  grid-template-columns: 320px minmax(0, 1fr);
  margin-top: 20px;
}

.shell.landing .sidebar{
  display: none;
}

.main{
  min-width: 0;
}

/* Sidebar */
.sidebar{
  background:linear-gradient(180deg, #17313d 0%, #132833 100%);
  color:#f8f3eb;
  border:1px solid rgba(255,250,243,.12);
  border-radius:24px;
  padding:18px;
  box-shadow:0 18px 34px rgba(19,40,51,.16);
}
.sidebar-title{font-size:18px;font-weight:800;margin-bottom:8px;letter-spacing:.02em}
.sidebar-tag{font-size:13px;color:rgba(248,243,235,.76);margin-bottom:14px;line-height:1.6}

.sidebtn{
  width:100%;
  border:0;
  background:linear-gradient(135deg, var(--accent2) 0%, #e0a45d 100%);
  color:#1f2428;
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  margin-bottom:12px;
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px rgba(208,132,47,.22);
}
.sidebtn:hover{
  background:linear-gradient(135deg, #d99546 0%, #ebb36e 100%);
  box-shadow: 0 14px 24px rgba(208,132,47,.28);
}

/* Chat History Styles */
.chat-history{
  margin-top: 16px;
  border-top: 1px solid var(--stroke);
  padding-top: 12px;
}

.chat-history-header{
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,248,238,.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.chat-list{
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--stroke) transparent;
}

.chat-list::-webkit-scrollbar{
  width: 4px;
}

.chat-list::-webkit-scrollbar-track{
  background: transparent;
}

.chat-list::-webkit-scrollbar-thumb{
  background: var(--stroke);
  border-radius: 2px;
}

.chat-item{
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: rgba(255,250,243,.1);
  border: 1px solid rgba(255,250,243,.08);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  line-height: 1.4;
  color: #fff8ef;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item:hover{
  background: rgba(255,250,243,.16);
  border-color: rgba(255,250,243,.14);
}

.chat-item.active{
  background: linear-gradient(135deg, rgba(208,132,47,.28) 0%, rgba(15,118,110,.24) 100%);
  color: #ffffff;
  border-color: rgba(208,132,47,.34);
  font-weight: 600;
}

.chat-item-title{
  font-weight: 600;
  margin-bottom: 2px;
  color: inherit;
}

.chat-item-preview{
  font-size: 11px;
  color: rgba(255,244,230,.78);
  opacity: 1;
}

.chat-item.active .chat-item-preview{
  color: rgba(255, 248, 239, 0.88);
}

.chat-item-delete{
  float: right;
  background: none;
  border: none;
  color: rgba(255,244,230,.72);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  opacity: 0.6;
}

.chat-item:hover .chat-item-delete{
  opacity: 1;
}

.chat-item-delete:hover{
  color: var(--danger);
}

.chat-item-actions-btn{
  float:right;
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#ffffff;
  border:1px solid rgba(29,78,216,.22);
  color:var(--accent);
  font-size:12px;
  cursor:pointer;
  padding:5px 9px;
  margin-left:8px;
  border-radius:999px;
  opacity:1;
  font-weight:800;
  box-shadow:0 2px 8px rgba(15,23,42,.08);
}

.chat-item-actions-btn:hover{
  background:rgba(29,78,216,.08);
  border-color:rgba(29,78,216,.4);
  transform:translateY(-1px);
}

.chat-item-actions-menu{
  position:absolute;
  top:30px;
  right:26px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:150px;
  padding:8px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(15,23,42,.12);
  z-index:25;
}

.chat-item-actions-menu[hidden]{
  display:none;
}

.chat-item-action{
  appearance:none;
  border:1px solid #cbd5e1;
  background:#fff;
  color:var(--ink);
  border-radius:10px;
  padding:8px 10px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  text-align:left;
}

.chat-item-action:hover{
  background:#f8fafc;
}

.sidecard{
  border: 1px solid rgba(255,250,243,.12);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,250,243,.08);
  margin-bottom: 12px;
}
.sidecard-muted{background:rgba(255,250,243,.08)}
.sidecard-h{font-weight:800;font-size:13px;margin-bottom:8px;color:#fff3e5}
.sideselect{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #cbd5e1;
  outline:none;
}
.sideselect:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(29, 78, 216, .18)}

.tribox{margin-top:12px}
.sidelabel{display:block;font-size:12px;font-weight:700;margin-bottom:6px;color:var(--muted)}
.sidetextarea{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:var(--ink);
  outline:none;
  resize:vertical;
}
.sidetextarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.sidehint{font-size:12px;color:var(--muted);margin-top:10px}
.sidecopy{font-size:13px;color:rgba(248,243,235,.78)}

/* Main */
.main{display:flex;flex-direction:column;gap:12px}

.landing-view{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.hero{
  background:linear-gradient(135deg, rgba(255,250,243,.96) 0%, rgba(241,233,220,.92) 100%);
  border:1px solid var(--stroke);
  border-radius:24px;
  padding:18px 20px;
  box-shadow:var(--shadow2);
}
.hero-mark{display:flex;align-items:center;gap:10px}
.hero-badge{
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,118,110,.1);
  color:var(--accent);
  border:1px solid rgba(15,118,110,.2);
  font-weight:800;
  font-size:12px;
}
.hero-title{font-weight:900;font-size:20px}
.hero-sub{margin-top:8px;color:var(--muted);font-size:13px;max-width:70ch}

.chatpanel{
  height:58vh;
  overflow:auto;
  background:linear-gradient(180deg, rgba(255,250,243,.98) 0%, rgba(250,245,236,.92) 100%);
  border:1px solid var(--stroke);
  padding:18px;
  border-radius:24px;
  box-shadow:var(--shadow2);
}

/* Composer */
.composer{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  background:linear-gradient(180deg, rgba(255,250,243,.98) 0%, rgba(247,240,230,.94) 100%);
  border:1px solid var(--stroke);
  padding:14px;
  border-radius:22px;
  box-shadow:var(--shadow2);
}
#prompt{flex:1;min-width:240px}
.primary{
  background:linear-gradient(135deg, var(--accent) 0%, #159b91 100%);
  color:#fff;
  border:0;
  padding:12px 16px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
  transition: all 0.2s ease;
  box-shadow: 0 12px 24px rgba(15,118,110,.18);
}
.primary:hover{
  background:linear-gradient(135deg, #11857d 0%, #16a79d 100%);
  box-shadow: 0 16px 28px rgba(15,118,110,.24);
}

#editBadge{
  display:none;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(34, 197, 94,.10);
  color:var(--accent2);
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(34, 197, 94,.28);
}

.footerbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 8px 2px;
  color:var(--muted);
  font-size:12px;
  border-top:1px solid rgba(19,40,51,.08);
}
.footerbar a{color:var(--accent3);text-decoration:none;font-weight:700}
.footerbar a:hover{text-decoration:underline}

/* Banner */
.banner{
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: var(--r20);
  background: linear-gradient(135deg, rgba(22,163,74,.14), rgba(29,78,216,.10));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.banner::before{
  content:"";
  position:absolute;
  inset:-60px;
  background: radial-gradient(closest-side, rgba(20,184,166,.25), transparent 70%);
  transform: translate(-10%, -20%);
  pointer-events:none;
}
.banner .brand{
  position: relative;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
}
.banner .tag{
  position: relative;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}


/* Intro / headers */
header.intro,
header.doc-header,
header{
  background: var(--surface);
  border: 1px solid var(--stroke);
  padding: 14px 16px;
  border-radius: var(--r20);
  box-shadow: var(--shadow2);
  margin-bottom: 14px;
}

h1{
  margin:0 0 6px 0;
  font-size: 20px;
  letter-spacing: .1px;
}
header p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.hint{
  margin-top: 8px;
  color: var(--muted2);
}

/* Chat area */
#chat{
  height: 60vh;
  overflow:auto;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r20);
  box-shadow: var(--shadow2);
  padding: 14px;
  scroll-behavior: smooth;
}

#chat::-webkit-scrollbar{ width: 10px; }
#chat::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.10);
  border-radius: 999px;
}
#chat::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.16);
}

/* Messages */
.msg{
  max-width: 84%;
  margin: 10px 0;
  padding: 12px 13px;
  border-radius: 14px;
  white-space: pre-wrap;
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 16px rgba(2,6,23,.06);
}

.msg.user{
  margin-left:auto;
  background: rgba(22,163,74,.10);  /* green tint */
  border-color: rgba(22,163,74,.22);
}

.msg-editable{
  cursor: pointer;
}

.msg.user.msg-editable:hover{
  background: rgba(22,163,74,.16);
  border-color: rgba(22,163,74,.34);
}

.msg.bot{
  margin-right:auto;
  background: rgba(29,78,216,.06);  /* blue tint */
  border-color: rgba(29,78,216,.18);
}

.msg.sys{
  max-width: 100%;
  background: rgba(245,158,11,.10);
  border: 1px dashed rgba(245,158,11,.45);
  color: var(--ink);
}

.msg.thinking{
  opacity:.75;
  font-style: italic;
}

.answer-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  max-width:84%;
  margin:4px 0 12px;
  position:relative;
}

.answer-action-btn,
.answer-share-option{
  appearance:none;
  border:1px solid #cbd5e1;
  background:#fff;
  color:var(--ink);
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}

.answer-action-btn:hover,
.answer-share-option:hover{
  background:#f8fafc;
  border-color:rgba(29,78,216,.35);
}

.answer-share-menu{
  position:absolute;
  top:100%;
  left:104px;
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:150px;
  padding:8px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(15,23,42,.12);
  z-index:20;
}

.answer-share-menu[hidden]{
  display:none;
}

/* Sources block */
.sources{
  margin: 6px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 12.5px;
}

.sources ul{
  margin: 8px 0 0 18px;
  padding: 0;
}
.sources a{
  color: var(--accent3);
  text-decoration: none;
  font-weight: 700;
}

.sources a:hover{
  text-decoration: underline;
}

.source-label{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(29,78,216,.08);
  color:var(--accent);
  font-size:11px;
  font-weight:800;
  vertical-align:middle;
}

.source-excerpt-panel{
  margin: 12px 0 14px;
  padding: 16px;
  border: 1px solid rgba(245,158,11,.38);
  border-radius: var(--r20);
  background: #fffdf5;
  box-shadow: var(--shadow2);
}

.source-excerpt-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.source-excerpt-kicker{
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.source-excerpt-label{
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(245,158,11,.16);
  color:#92400e;
  font-size:12px;
  font-weight:900;
}

.source-excerpt-panel h2{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.3;
}

.source-highlight{
  display:block;
  white-space:pre-wrap;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(245,158,11,.42);
  background:#fef08a;
  color:#111827;
  line-height:1.65;
}

.source-excerpt-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

/* Composer */
#composer{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}
#prompt{
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow2);
}
#prompt::placeholder{ color: rgba(15,23,42,.45); }
#prompt:focus{
  border-color: rgba(29,78,216,.55);
  box-shadow: 0 0 0 3px rgba(29,78,216,.16), var(--shadow2);
}


#send{
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(22,163,74,.55);
  background: linear-gradient(180deg, rgba(22,163,74,.95), rgba(22,163,74,.72));
  color: #03130a;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 14px 28px rgba(22,163,74,.18);
}

#send:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}
#send:active{
  transform: translateY(0);
}

/* Document controls */
.doc-controls{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
  margin: 10px 0 14px;
}
#docSearch{
  flex: 1 1 340px;
  min-width: 240px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  outline: none;
}
#docSearch:focus{
  border-color: rgba(42,111,219,.60);
  box-shadow: 0 0 0 3px rgba(42,111,219,.20);
}
select{
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--ink);
  outline:none;
}


/* Documents table */
.doc-table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--r20);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
}

.doc-table th, .doc-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  text-align: left;
  font-size: 13px;
  color: rgba(15,23,42,.92);
}

.doc-table th{
  color: rgba(15,23,42,.75);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--surface2);
}

.doc-table tr:hover td{
  background: rgba(22,163,74,.06);
}
.doc-table a{
  color: var(--accent3);
  text-decoration: none;
  font-weight: 700;
}
.doc-table a:hover{
  text-decoration: underline;
}

/* Document viewer actions */
.doc-actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.btn{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  color: #03130a;
  background: linear-gradient(180deg, rgba(22,163,74,.95), rgba(22,163,74,.75));
  border: 1px solid rgba(22,163,74,.55);
  box-shadow: 0 14px 28px rgba(22,163,74,.16);
  transition: transform .15s ease, filter .15s ease;
}

.btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.btn:active{ transform: translateY(0); }
.btn.secondary{
  color: var(--ink);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
}

/* PDF container */
.pdf-container{
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r20);
  box-shadow: var(--shadow2);
  height: calc(100vh - 220px);
  padding: 10px;
  margin-top: 12px;
}
.pdf-container embed{
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 0;
  background: #ffffff;
}


/* Responsive */
@media (max-width: 720px){
  .app{ margin: 14px auto; }
  #chat{ height: 56vh; }
  .msg{ max-width: 92%; font-size: 14px; }
  h1{ font-size: 18px; }
  .banner .brand{ font-size: 16px; }
  .banner .tag{ font-size: 12px; }
  #send{ padding: 12px 14px; }
  .pdf-container{ height: calc(100vh - 240px); }
}


/* Big hero with background image */
.landing-hero{
  position: relative;
  overflow: hidden;
  border-radius: var(--r20);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  min-height: clamp(430px, 58vh, 560px);
  isolation: isolate;
  background: linear-gradient(135deg, rgba(16,36,45,.94), rgba(16,36,45,.66));
}

.landing-hero-bgimg,
.landing-hero-overlay,
.landing-copy,
.landing-hero-fallback{
  position: absolute;
  inset: 0;
}

.landing-hero-bgimg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.landing-hero-overlay{
  background:
    linear-gradient(95deg, rgba(16,36,45,.95) 0%, rgba(16,36,45,.75) 46%, rgba(16,36,45,.34) 100%),
    linear-gradient(180deg, rgba(19,40,51,.18), rgba(19,40,51,.52));
  z-index: 1;
}

.landing-copy{
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 48px);
}

.landing-copy--onbg{
  max-width: min(640px, 100%);
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,.24);
}

.landing-scope--onbg{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15,23,42,.28);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}

.landing-scope-title{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

.landing-scope-text{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
}

.landing-hero-fallback{
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.fallback-card{
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15,23,42,.52);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}

.fallback-icon{
  font-size: 24px;
  line-height: 1;
}

.fallback-text{
  font-size: 13px;
  line-height: 1.55;
}

.landing-overlay{
  padding: 18px 18px 16px;
  color: #ffffff;
}

.landing-kicker{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(208,132,47,.18);
  border: 1px solid rgba(255,240,219,.24);
  color: #f8fafc;
}

.landing-title{
  margin: 12px 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: .2px;
  color: #ffffff;
}

.landing-sub{
  margin: 0;
  max-width: 62ch;
  color: rgba(255,255,255,.96);
  font-size: 15px;
  line-height: 1.72;
}

.landing-cta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn-primary,
.cta-primary{
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .01em;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent2) 0%, #e0a45d 100%);
  color: #1d2126;
  box-shadow: 0 18px 30px rgba(208,132,47,.24);
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn-primary:hover,
.cta-primary:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 20px 34px rgba(208,132,47,.28);
}
.btn-primary:active,
.cta-primary:active{ transform: translateY(0); }

.btn-secondary,
.btn-tertiary,
.cta-secondary,
.cta-tertiary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid rgba(255,245,232,.22);
  background: rgba(255,250,243,.12);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(2,6,23,.14);
  backdrop-filter: blur(8px);
  transition: transform .15s ease, background .15s ease, opacity .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-secondary:hover,
.btn-tertiary:hover,
.cta-secondary:hover,
.cta-tertiary:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 14px 28px rgba(2,6,23,.18);
}
.btn-secondary:active,
.btn-tertiary:active,
.cta-secondary:active,
.cta-tertiary:active{
  transform: translateY(0);
  opacity: .95;
}

.cta-secondary{
  color: #ffffff;
}

.cta-tertiary{
  color: #f8fafc;
}

.landing-pills{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill{
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}

/* Landing cards */
.landing-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.landing-card{
  background: linear-gradient(180deg, rgba(255,250,243,.96) 0%, rgba(247,240,230,.92) 100%);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  box-shadow: var(--shadow2);
  padding: 18px 18px 16px;
  min-height: 100%;
}

.landing-grid > .landing-card:nth-child(1){
  grid-column: span 5;
}

.landing-grid > .landing-card:nth-child(2){
  grid-column: span 4;
  background: linear-gradient(180deg, #132833 0%, #1b3946 100%);
  color: #fff9f0;
}

.landing-grid > .landing-card:nth-child(2) .landing-card-p,
.landing-grid > .landing-card:nth-child(2) .landing-card-h{
  color: inherit;
}

.landing-grid > .landing-card:nth-child(2) .prompt-chip{
  color: #fff8ef;
  border-color: rgba(255,250,243,.16);
  background: rgba(255,250,243,.1);
}

.landing-grid > .landing-card:nth-child(2) .prompt-chip:hover{
  background: rgba(255,250,243,.16);
  border-color: rgba(208,132,47,.42);
}

.landing-grid > .landing-card:nth-child(3){
  grid-column: span 3;
  background: linear-gradient(180deg, rgba(15,118,110,.08) 0%, rgba(255,250,243,.96) 100%);
}

.card-h{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
  margin-bottom: 8px;
}

.card-p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.prompt-chips{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-chip{
  text-align: left;
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,250,243,.14);
  background: rgba(255,250,243,.08);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease, background .15s ease;
}
.prompt-chip:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  background: rgba(255,250,243,.14);
  border-color: rgba(208,132,47,.3);
}
.prompt-chip:active{ transform: translateY(0); }

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

.insight-card{
  padding:18px;
  border-radius:22px;
  border:1px solid var(--stroke);
  background:rgba(255,250,243,.92);
  box-shadow:var(--shadow2);
}

.insight-kicker{
  display:inline-flex;
  margin-bottom:10px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,118,110,.1);
  color:var(--accent);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.insight-card strong{
  display:block;
  font-size:17px;
  margin-bottom:8px;
}

.insight-card p{
  margin:0;
  color:var(--muted);
}

.session-toolbar{
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(31,107,53,.12);
  box-shadow: 0 14px 32px rgba(31,107,53,.08);
}

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

.session-label{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.session-note{
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 12px;
}

.session-add{
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(217,119,6,.95), rgba(217,119,6,.82));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

.session-add:hover{ transform: translateY(-1px); filter: brightness(1.05); }

.session-list{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.session-item{
  position: relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap: 6px;
  width:100%;
  min-height: 88px;
  padding: 12px 132px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,250,243,.12);
  background: rgba(255,250,243,.1);
  color: #fff8ef;
  text-align:left;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.session-item:hover{
  transform: translateY(-1px);
  background: rgba(255,250,243,.16);
  border-color: rgba(255,250,243,.18);
}

.session-item.active{
  background: linear-gradient(135deg, rgba(208,132,47,.24), rgba(15,118,110,.18));
  border-color: rgba(208,132,47,.34);
}

.session-item-title{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}

.session-item-preview{
  font-size: 12px;
  color: rgba(255,244,230,.8);
  line-height: 1.4;
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}

.session-delete{
  position:absolute;
  top: 10px;
  right: 10px;
  border: none;
  padding: 0 6px;
  background: transparent;
  color: rgba(255,244,230,.74);
  font-size: 16px;
  cursor: pointer;
  opacity: .7;
}

.session-item:hover .session-delete,
.session-item.active .session-delete{
  opacity: 1;
}

.session-delete:hover{
  color: var(--danger);
}

.session-actions-btn{
  position:absolute;
  top:10px;
  right:38px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(29,78,216,.22);
  background:#ffffff;
  color:var(--accent);
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(15,23,42,.08);
}

.session-actions-btn:hover{
  background:rgba(29,78,216,.08);
  border-color:rgba(29,78,216,.4);
}

.session-item.active .session-actions-btn{
  background:#fff;
  color:var(--accent);
  border-color:rgba(255,255,255,.92);
}

.session-actions-icon{
  font-size:11px;
  line-height:1;
}

.session-actions-label{
  font-size:11px;
}

.session-actions-menu{
  position:absolute;
  top:42px;
  right:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:156px;
  padding:8px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(15,23,42,.12);
  z-index:25;
}

.session-actions-menu[hidden]{
  display:none;
}

.session-action{
  appearance:none;
  border:1px solid #cbd5e1;
  background:#fff;
  color:var(--ink);
  border-radius:10px;
  padding:8px 10px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  text-align:left;
}

.session-action:hover{
  background:#f8fafc;
}

@media (max-width: 860px){
  .landing-grid{ grid-template-columns: 1fr; }
  .landing-grid > .landing-card:nth-child(1),
  .landing-grid > .landing-card:nth-child(2),
  .landing-grid > .landing-card:nth-child(3){
    grid-column: auto;
  }
  .landing-insight-row{ grid-template-columns:1fr; }
  .landing-title{ font-size: 24px; }
  .landing-hero{ min-height: 500px; }
  .landing-copy{
    justify-content: flex-end;
    padding: 24px 20px;
  }
  .landing-hero-bgimg{ object-position: center; }
  .landing-scope--onbg{
    margin-top: 16px;
    padding: 12px 14px;
  }
  .landing-cta > *{
    width: 100%;
  }
}

/* Shell responsive styles */
@media (max-width: 980px){
  .shell{grid-template-columns:1fr}
  .shell.tool{grid-template-columns:1fr}
  .chatpanel{height:52vh}
  .sidebar{
    order:2;
  }
}
.app-shell{max-width:1200px;margin:0 auto;padding:0 16px;padding-top:14px}

/* Feedback analysis workspace */
.feedback-app{max-width:1240px}
.feedback-shell{padding:22px 0 46px}
.feedback-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:18px;
  align-items:stretch;
  padding:28px;
  background:linear-gradient(135deg, rgba(19,40,51,.96), rgba(15,118,110,.86));
  color:#fffaf3;
  border-radius:18px;
  box-shadow:var(--shadow);
  margin-bottom:18px;
}
.feedback-kicker{
  color:#f4c27a;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
}
.feedback-hero h1{
  margin:8px 0 8px;
  font-size:34px;
  line-height:1.05;
}
.feedback-hero p{
  margin:0;
  max-width:760px;
  color:rgba(255,250,243,.82);
}
.feedback-status-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  padding:18px;
  border:1px solid rgba(255,250,243,.18);
  background:rgba(255,250,243,.1);
  border-radius:14px;
}
.feedback-status-card span,
.feedback-status-card small{color:rgba(255,250,243,.72)}
.feedback-status-card strong{font-size:24px}
.feedback-grid{
  display:grid;
  grid-template-columns:430px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.feedback-panel{
  background:rgba(255,250,243,.92);
  border:1px solid var(--stroke);
  border-radius:18px;
  box-shadow:var(--shadow2);
}
.feedback-intake{padding:18px;position:sticky;top:94px}
.feedback-results{padding:18px;min-height:620px}
.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.panel-head > div{display:flex;align-items:center;gap:12px}
.panel-head span{
  display:inline-flex;
  width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:900;
}
.panel-head h2{margin:0;font-size:18px}
.feedback-label{
  display:block;
  margin:14px 0 6px;
  color:var(--ink);
  font-size:13px;
  font-weight:850;
}
.feedback-input,
.feedback-textarea{
  width:100%;
  border:1px solid rgba(19,40,51,.18);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  padding:12px 13px;
  font:inherit;
  outline:none;
}
.feedback-input:focus,
.feedback-textarea:focus{
  border-color:rgba(15,118,110,.58);
  box-shadow:0 0 0 4px rgba(15,118,110,.1);
}
.feedback-textarea{min-height:150px;resize:vertical}
.feedback-upload-row{display:grid;gap:10px;margin-top:16px}
.feedback-upload{
  display:grid;
  gap:4px;
  padding:16px;
  border:1px dashed rgba(15,118,110,.42);
  border-radius:14px;
  background:rgba(220,238,233,.46);
  cursor:pointer;
}
.feedback-upload input{display:none}
.feedback-upload span{font-weight:900;color:var(--accent)}
.feedback-upload strong{font-size:13px;color:var(--muted)}
.feedback-file-list{display:flex;flex-wrap:wrap;gap:8px}
.feedback-file-list span,
.question-list span{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--stroke);
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}
.recorder-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--stroke);
}
.recorder-card > div:first-child{display:grid;gap:2px}
.recorder-card small{color:var(--muted2)}
.recorder-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px rgba(15,118,110,.1);
}
.recorder-dot.recording{
  background:var(--danger);
  box-shadow:0 0 0 5px rgba(194,65,12,.14);
}
.recorder-actions{display:flex;gap:8px}
.feedback-primary,
.feedback-secondary{
  border:none;
  border-radius:12px;
  padding:11px 14px;
  font-weight:900;
  cursor:pointer;
}
.feedback-primary{
  width:100%;
  margin-top:16px;
  color:#fff;
  background:linear-gradient(135deg, var(--accent), #0b5f59);
  box-shadow:0 10px 20px rgba(15,118,110,.18);
}
.feedback-primary:disabled,
.feedback-secondary:disabled{opacity:.55;cursor:not-allowed}
.feedback-secondary{
  background:#fff;
  color:var(--accent);
  border:1px solid rgba(15,118,110,.22);
}
.recording-preview{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:10px;
  background:rgba(220,238,233,.45);
  border-radius:12px;
}
.recording-preview audio{width:220px;max-width:100%}
.feedback-notice{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:#fff;
  color:var(--muted);
  font-weight:700;
}
.feedback-notice.success{border-color:rgba(15,118,110,.24);background:rgba(220,238,233,.62);color:var(--accent)}
.feedback-notice.warning{border-color:rgba(208,132,47,.3);background:rgba(208,132,47,.1);color:var(--accent3)}
.feedback-notice.danger{border-color:rgba(194,65,12,.28);background:rgba(194,65,12,.08);color:var(--danger)}
.feedback-empty{
  display:grid;
  place-items:center;
  gap:6px;
  min-height:460px;
  text-align:center;
  color:var(--muted);
  border:1px dashed var(--stroke);
  border-radius:16px;
}
.feedback-empty strong{font-size:20px;color:var(--ink)}
.result-view{display:grid;gap:14px}
.result-summary{
  padding:18px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(220,238,233,.86), rgba(255,255,255,.88));
  border:1px solid rgba(15,118,110,.18);
}
.temperature-badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:12px;
  font-weight:900;
  text-transform:capitalize;
}
.temperature-badge.high-tension,
.temperature-badge.blocked{background:var(--danger)}
.temperature-badge.manageable-disagreement{background:var(--accent2)}
.temperature-badge.insufficient-evidence{background:#64748b}
.result-summary h3{margin:12px 0 6px;font-size:24px}
.result-summary p{margin:0;color:var(--muted)}
.result-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.result-card{
  padding:16px;
  border:1px solid var(--stroke);
  border-radius:16px;
  background:#fff;
}
.result-card h4{margin:0 0 12px;font-size:16px}
.stakeholder-cards{display:grid;gap:10px}
.stakeholder-card{
  display:grid;
  gap:8px;
  padding:12px;
  border-radius:14px;
  background:#fbf7f0;
  border:1px solid var(--stroke);
}
.stakeholder-card > div:first-child{
  display:flex;
  justify-content:space-between;
  gap:8px;
}
.stakeholder-card span{color:var(--muted2);font-size:12px;font-weight:800}
.stakeholder-card p{margin:0;color:var(--muted)}
.mini-block{display:grid;gap:4px;margin-top:8px}
.mini-block strong{font-size:12px;color:var(--accent3)}
.mini-block span{color:var(--muted2)}
.mini-block ul{margin:0;padding-left:18px;color:var(--muted)}
.action-list{display:grid;gap:10px}
.action-item{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(15,118,110,.16);
  background:rgba(220,238,233,.35);
}
.action-item strong{display:block}
.action-item span{display:block;color:var(--muted2);font-size:12px;font-weight:850;margin-top:2px}
.action-item p{margin:7px 0 0;color:var(--muted)}
.question-list{display:flex;flex-wrap:wrap;gap:8px}
.communication-note p{margin:0;color:var(--muted)}

@media (max-width: 980px){
  .feedback-hero,
  .feedback-grid,
  .result-columns{grid-template-columns:1fr}
  .feedback-intake{position:static}
}

/* =========================================================
   ClimateAction-AI premium refresh
   Reference-aligned landing experience, preserving app hooks
   ========================================================= */

:root{
  --ca-ink:#0c3340;
  --ca-ink-2:#173f4b;
  --ca-teal:#075c5d;
  --ca-teal-2:#0e7070;
  --ca-mint:#eaf8f5;
  --ca-line:#d6e6e3;
  --ca-soft:#f8fbfa;
  --ca-amber:#ee9a2f;
  --ca-amber-2:#f5b24b;
  --ca-shadow:0 24px 60px rgba(9, 38, 44, .13);
  --ca-shadow-soft:0 14px 36px rgba(9, 38, 44, .08);
}

body{
  background:
    radial-gradient(circle at 12% -5%, rgba(10, 100, 101, .10), transparent 28%),
    radial-gradient(circle at 90% 5%, rgba(238,154,47,.12), transparent 25%),
    linear-gradient(180deg, #f7faf9 0%, #eef4f3 100%);
  color:#182636;
  letter-spacing:0;
}

.app-shell{
  max-width: min(1480px, calc(100vw - 52px));
  margin:26px auto;
  padding:0;
}

.topbar{
  margin:0 28px -44px;
  position:relative;
  top:auto;
  z-index:20;
  min-height:76px;
  border-radius:28px;
  padding:13px 22px;
  background:rgba(255,255,255,.82);
  color:var(--ca-ink);
  border:1px solid rgba(214,230,227,.9);
  border-bottom:1px solid rgba(214,230,227,.9);
  box-shadow:0 18px 42px rgba(10, 48, 54, .10);
  backdrop-filter:blur(18px);
}

.orglogo{
  width:58px;
  height:58px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(7,92,93,.16);
  box-shadow:0 10px 24px rgba(7,92,93,.10);
}

.orgname{
  color:#13273a;
  font-size:14px;
  font-weight:850;
  max-width:300px;
}

.orgsub{
  color:#5c7080;
  font-size:12px;
}

.topbar-right{
  gap:10px;
}

.toplink{
  color:var(--ca-ink);
  min-height:42px;
  border-radius:12px;
  font-weight:760;
  opacity:1;
  padding:9px 13px;
}

.toplink:hover{
  background:rgba(7,92,93,.08);
}

.toplink.active{
  background:rgba(7,92,93,.10);
  color:var(--ca-teal);
  box-shadow:none;
}

.toplink.active::after{
  display:none;
}

.toplink-cta{
  background:linear-gradient(135deg, var(--ca-amber), var(--ca-amber-2));
  color:#fff;
  box-shadow:0 12px 24px rgba(238,154,47,.25);
}

.shell.landing{
  margin-top:0;
}

.landing-view{
  gap:22px;
}

.landing-hero{
  min-height:520px;
  border-radius:30px 30px 0 0;
  border:1px solid rgba(214,230,227,.95);
  box-shadow:var(--ca-shadow);
  background:#f8fbfa;
}

.landing-hero-bgimg{
  object-position:center;
  filter:saturate(1.03) contrast(1.02);
}

.landing-hero-overlay{
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.90) 34%, rgba(255,255,255,.44) 58%, rgba(255,255,255,.05) 100%),
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.60));
}

.landing-copy{
  justify-content:center;
  padding:84px clamp(34px, 5vw, 64px) 92px;
}

.landing-copy--onbg{
  color:var(--ca-ink);
  text-shadow:none;
  max-width:740px;
}

.landing-kicker{
  padding:0;
  background:transparent;
  border:0;
  color:var(--ca-teal);
  letter-spacing:.22em;
  font-size:13px;
  font-weight:900;
}

.landing-title{
  margin:18px 0 12px;
  max-width:780px;
  color:var(--ca-ink);
  font-size:clamp(52px, 7.4vw, 92px);
  line-height:.92;
  letter-spacing:0;
  font-weight:900;
}

.landing-title::after{
  content:"";
  display:inline-block;
  width:.28em;
  height:.28em;
  margin-left:.06em;
  margin-bottom:.45em;
  border-radius:75% 0 75% 0;
  background:linear-gradient(135deg, #6abf75, #0d756b);
  transform:rotate(-18deg);
}

.landing-sub{
  color:#335d69;
  font-size:20px;
  line-height:1.35;
  max-width:620px;
}

.landing-sub::after{
  content:"Insights. Context. Strategy.";
  display:block;
  margin-top:6px;
  color:#617784;
  font-size:18px;
}

.landing-cta{
  margin-top:28px;
  padding:14px;
  width:min(590px, 100%);
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  background:rgba(255,255,255,.84);
  border:1px solid rgba(214,230,227,.95);
  border-radius:22px;
  box-shadow:var(--ca-shadow-soft);
  backdrop-filter:blur(18px);
}

.cta-primary,
.cta-secondary,
.cta-tertiary{
  min-height:48px;
  border-radius:14px;
  box-shadow:none;
  backdrop-filter:none;
}

.cta-primary{
  color:#fff;
  background:linear-gradient(135deg, var(--ca-teal), #0e7880);
}

.cta-secondary,
.cta-tertiary{
  color:var(--ca-ink);
  border:1px solid transparent;
  background:transparent;
}

.cta-secondary:hover,
.cta-tertiary:hover{
  background:rgba(7,92,93,.08);
  color:var(--ca-teal);
  box-shadow:none;
}

.landing-scope--onbg{
  position:relative;
  margin-top:120px;
  width:calc(100vw - 124px);
  max-width:1390px;
  margin-left:0;
  padding:24px 30px 24px 150px;
  border-radius:24px;
  background:
    radial-gradient(circle at 8% 35%, rgba(255,255,255,.95), rgba(255,255,255,.82) 42%, transparent 43%),
    linear-gradient(135deg, rgba(232,248,245,.94), rgba(255,255,255,.86));
  border:1px solid rgba(188,226,221,.95);
  box-shadow:0 16px 34px rgba(7,92,93,.08);
  backdrop-filter:blur(18px);
  color:var(--ca-ink);
}

.landing-scope--onbg::before{
  content:"";
  position:absolute;
  left:36px;
  top:50%;
  width:86px;
  height:86px;
  transform:translateY(-50%);
  border-radius:50%;
  background:
    linear-gradient(90deg, transparent 46%, rgba(7,92,93,.95) 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(7,92,93,.95) 47% 53%, transparent 54%),
    radial-gradient(circle, transparent 47%, rgba(7,92,93,.95) 49% 54%, transparent 56%),
    #fff;
  border:1px solid rgba(7,92,93,.16);
  box-shadow:0 12px 24px rgba(7,92,93,.12);
}

.landing-scope-title{
  color:var(--ca-teal);
  letter-spacing:.18em;
  font-size:13px;
}

.landing-scope-text{
  color:#405a67;
  font-size:15px;
  max-width:720px;
}

.landing-grid{
  grid-template-columns:1fr .96fr;
  gap:24px;
}

.landing-card{
  border-radius:20px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(214,230,227,.95);
  box-shadow:var(--ca-shadow-soft);
  padding:34px 36px;
}

.landing-grid > .landing-card:nth-child(1),
.landing-grid > .landing-card:nth-child(2),
.landing-grid > .landing-card:nth-child(3){
  grid-column:auto;
}

.landing-grid > .landing-card:nth-child(1){
  display:grid;
  align-items:center;
  min-height:184px;
  padding-left:120px;
  position:relative;
}

.landing-grid > .landing-card:nth-child(1)::before{
  content:"";
  position:absolute;
  left:34px;
  top:50%;
  width:66px;
  height:66px;
  transform:translateY(-50%);
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, #0f7271 0 7px, transparent 8px),
    radial-gradient(circle at 32% 34%, #0f7271 0 4px, transparent 5px),
    radial-gradient(circle at 68% 68%, #0f7271 0 4px, transparent 5px),
    #fff;
  border:1px solid rgba(214,230,227,.95);
  box-shadow:0 12px 24px rgba(7,92,93,.10);
}

.landing-grid > .landing-card:nth-child(2){
  position:relative;
  min-height:184px;
  overflow:hidden;
  color:var(--ca-ink);
  background:
    radial-gradient(circle at 82% 64%, rgba(7,92,93,.18), transparent 18%),
    linear-gradient(135deg, rgba(232,248,245,.94), rgba(255,255,255,.82));
}

.landing-grid > .landing-card:nth-child(2)::after{
  content:"";
  position:absolute;
  right:42px;
  bottom:22px;
  width:82px;
  height:82px;
  border-radius:50% 50% 50% 12px;
  background:linear-gradient(135deg, #2c7776, #0f5358);
  border:6px solid #fff;
  box-shadow:0 16px 28px rgba(7,92,93,.22);
  transform:rotate(-8deg);
}

.landing-grid > .landing-card:nth-child(2) .landing-card-h{
  color:var(--ca-ink);
}

.landing-card-h{
  margin:0 0 10px;
  color:#1c3145;
  font-size:22px;
  line-height:1.22;
  font-weight:850;
}

.landing-card-p{
  color:#405467;
  font-size:15px;
  line-height:1.75;
}

.prompt-chips{
  max-width:390px;
  position:relative;
  z-index:2;
}

.prompt-chip,
.landing-grid > .landing-card:nth-child(2) .prompt-chip{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--ca-teal);
  border:1px solid rgba(188,226,221,.95);
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85), 0 8px 18px rgba(7,92,93,.08);
}

.prompt-chip::after{
  content:"›";
  font-size:24px;
  line-height:1;
  color:var(--ca-teal);
}

.prompt-chip:hover,
.landing-grid > .landing-card:nth-child(2) .prompt-chip:hover{
  background:#fff;
  border-color:rgba(7,92,93,.28);
  transform:translateY(-1px);
}

.landing-insight-row{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}

.insight-card{
  position:relative;
  display:grid;
  grid-template-columns:72px 1fr 18px;
  gap:18px;
  align-items:start;
  min-height:166px;
  padding:28px 24px;
  border-radius:18px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(214,230,227,.95);
  box-shadow:var(--ca-shadow-soft);
}

.insight-card::before{
  content:"";
  width:62px;
  height:62px;
  border-radius:50%;
  background:
    radial-gradient(circle at 32% 38%, rgba(7,92,93,.9) 0 5px, transparent 6px),
    radial-gradient(circle at 64% 60%, rgba(7,92,93,.7) 0 4px, transparent 5px),
    #e6f5ee;
  border:1px solid rgba(214,230,227,.95);
}

.insight-kicker{
  margin:0 0 8px;
  padding:0;
  background:transparent;
  color:var(--ca-teal);
  letter-spacing:.16em;
}

.insight-card strong{
  color:#1c3145;
  font-size:19px;
  line-height:1.25;
}

.insight-card p{
  color:#526171;
  font-size:14px;
  line-height:1.7;
}

.insight-card::after{
  content:"›";
  align-self:end;
  justify-self:end;
  color:#28465a;
  font-size:26px;
  line-height:1;
}

.shell.tool{
  gap:18px;
}

.shell.tool .sidebar,
.hero,
.chatpanel,
.composer{
  border-radius:20px;
}

.shell.tool .sidebar{
  background:linear-gradient(180deg, #0b3f4a, #0b2730);
  border-color:rgba(255,255,255,.10);
}

.hero{
  background:linear-gradient(135deg, #f8fbfa, #e8f6f3);
  border-color:rgba(214,230,227,.95);
}

.hero-badge{
  background:rgba(7,92,93,.10);
  color:var(--ca-teal);
}

.hero-title{
  color:var(--ca-ink);
}

.chatpanel,
.composer{
  background:rgba(255,255,255,.92);
  border-color:rgba(214,230,227,.95);
}

@media (max-width: 1100px){
  .app-shell{
    max-width:calc(100vw - 28px);
    margin:14px auto;
  }

  .topbar{
    margin:0 10px 14px;
    flex-direction:column;
    align-items:stretch;
  }

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

  .landing-copy{
    padding:42px 28px 48px;
  }

  .landing-scope--onbg{
    width:auto;
    margin-top:26px;
  }

  .landing-grid,
  .landing-insight-row{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  body{
    background:#eef4f3;
  }

  .app-shell{
    max-width:100%;
    margin:0;
  }

  .topbar{
    margin:0;
    border-radius:0 0 22px 22px;
    padding:12px;
  }

  .orgmark{
    align-items:flex-start;
  }

  .orglogo{
    width:50px;
    height:50px;
  }

  .topbar-right{
    grid-template-columns:1fr;
    gap:8px;
  }

  .shell.landing,
  .shell.tool{
    margin-top:12px;
    padding:0 10px;
  }

  .landing-hero{
    min-height:560px;
    border-radius:24px;
  }

  .landing-hero-overlay{
    background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 62%, rgba(255,255,255,.45) 100%);
  }

  .landing-copy{
    padding:26px 20px;
    justify-content:flex-start;
  }

  .landing-title{
    font-size:44px;
    line-height:.98;
  }

  .landing-sub{
    font-size:17px;
  }

  .landing-cta{
    grid-template-columns:1fr;
    width:100%;
  }

  .landing-scope--onbg{
    padding:92px 18px 18px;
    margin-top:22px;
  }

  .landing-scope--onbg::before{
    top:20px;
    left:18px;
    transform:none;
    width:58px;
    height:58px;
  }

  .landing-card,
  .landing-grid > .landing-card:nth-child(1){
    padding:22px;
  }

  .landing-grid > .landing-card:nth-child(1){
    padding-top:100px;
  }

  .landing-grid > .landing-card:nth-child(1)::before{
    top:22px;
    left:22px;
    transform:none;
  }

  .landing-grid > .landing-card:nth-child(2)::after{
    opacity:.28;
    right:18px;
  }

  .insight-card{
    grid-template-columns:58px 1fr 16px;
    padding:20px;
  }

  .insight-card::before{
    width:52px;
    height:52px;
  }
}

/* Final refresh overrides: keep these at EOF so legacy rules cannot win. */
body{
  background:
    radial-gradient(circle at 10% 0%, rgba(7,113,130,.09), transparent 30%),
    radial-gradient(circle at 96% 4%, rgba(238,154,47,.1), transparent 28%),
    linear-gradient(180deg, #fbfcfb 0%, #edf4f4 52%, #f6f8f9 100%);
  color:#172331;
}
.app,.app-shell{max-width:1220px}
.topbar{
  position:relative;
  top:auto;
  z-index:20;
  margin:0 auto -42px;
  padding:14px 22px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:0 0 22px 22px;
  background:linear-gradient(135deg, rgba(5,43,56,.97), rgba(7,66,79,.98));
  box-shadow:0 22px 48px rgba(7,54,69,.24);
}
.orglogo{width:46px;height:46px;border-radius:14px;background:#fff}
.topbar-right{gap:10px}
.toplink{
  gap:9px;
  min-height:42px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  background:rgba(255,255,255,.04);
  color:#eef9f7;
  box-shadow:none;
}
.toplink:hover,.toplink.active{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.38)}
.toplink-cta,.cta-primary{background:linear-gradient(135deg,#ef9d32,#f6b34d);color:#fff;border-color:rgba(255,255,255,.28)}
.nav-icon{position:relative;display:inline-flex;width:20px;height:20px;flex:0 0 20px}
.nav-icon::before,.nav-icon::after{content:"";position:absolute;box-sizing:border-box}
.nav-home::before{left:3px;top:8px;width:14px;height:10px;border:2px solid currentColor;border-top:0;border-radius:2px}
.nav-home::after{left:4px;top:2px;width:12px;height:12px;border-left:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg)}
.nav-library::before{left:3px;top:4px;width:14px;height:13px;border:2px solid currentColor;border-radius:3px}
.nav-library::after{left:10px;top:5px;height:12px;border-left:2px solid currentColor}
.nav-analysis::before{left:3px;bottom:3px;width:3px;height:8px;background:currentColor;box-shadow:6px -4px 0 currentColor,12px -9px 0 currentColor;border-radius:999px}
.nav-analysis::after{left:1px;bottom:2px;width:18px;border-bottom:2px solid currentColor}
.nav-open::before{inset:4px;border:2px solid currentColor;border-radius:50%}
.nav-open::after{left:9px;top:1px;width:2px;height:18px;background:currentColor;transform:rotate(45deg);border-radius:999px}
.shell.landing{margin-top:0}
.landing-hero{
  min-height:370px;
  border-radius:30px;
  border:1px solid rgba(7,54,69,.12);
  box-shadow:0 24px 60px rgba(17,35,49,.13);
  background:#f7fbfb;
}
.landing-hero-bgimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1.01)}
.landing-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 38%, rgba(255,255,255,.32) 70%, rgba(255,255,255,.1) 100%),
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(7,54,69,.12));
}
.landing-copy{position:relative;z-index:2;width:min(690px,100%);min-height:370px;padding:54px 52px 62px;display:flex;flex-direction:column;justify-content:center}
.landing-kicker{margin:0 0 14px;color:#006b5f;font-weight:900;letter-spacing:.22em;text-transform:uppercase;font-size:13px}
.landing-title{margin:0;color:#063848;font-size:clamp(48px,7vw,82px);line-height:.92;letter-spacing:0;font-weight:950}
.landing-title::after{content:"";display:inline-block;width:.34em;height:.34em;margin-left:.04em;border-radius:60% 0 60% 0;background:linear-gradient(135deg,#1a8c62,#9ccf67);transform:translateY(-.58em) rotate(-12deg)}
.landing-sub{margin:12px 0 0;max-width:590px;color:#315c68;font-size:17px;line-height:1.55}
.landing-trust-card{width:min(520px,100%);margin-top:26px;display:grid;grid-template-columns:64px minmax(0,1fr) 1px auto;align-items:center;gap:16px;padding:12px 18px;border:1px solid rgba(7,54,69,.12);border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 18px 36px rgba(12,45,58,.12);backdrop-filter:blur(10px)}
.trust-logo{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#0b4964;overflow:hidden}
.trust-logo img{width:100%;height:100%;object-fit:contain;padding:4px}
.trust-copy strong,.trust-copy span,.trust-badge span{display:block}
.trust-copy strong{font-size:14px;line-height:1.25}
.trust-copy span,.trust-badge{color:#405967;font-size:12px;line-height:1.3}
.trust-divider{width:1px;height:42px;background:rgba(7,54,69,.16)}
.trust-badge{display:flex;align-items:center;gap:10px;min-width:150px}
.trust-icon{width:28px;height:28px;border:2px solid #006b5f;border-radius:50%;position:relative}
.trust-icon::after{content:"";position:absolute;left:7px;top:6px;width:10px;height:6px;border-left:2px solid #006b5f;border-bottom:2px solid #006b5f;transform:rotate(-45deg)}
.landing-cta{position:relative;z-index:5;margin:-48px 24px 0;padding:14px;display:flex;justify-content:flex-end;gap:16px;border-radius:24px;background:linear-gradient(135deg,#073545,#0a4351);box-shadow:0 20px 42px rgba(7,54,69,.26)}
.cta-primary,.cta-secondary,.cta-tertiary{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;padding:12px 22px;font-weight:800;text-decoration:none;cursor:pointer}
.cta-primary{border:0;min-width:150px}
.cta-secondary,.cta-tertiary{color:#ecf8f6;border:1px solid rgba(255,255,255,.36);background:rgba(255,255,255,.04)}
.scope-band{display:grid;grid-template-columns:78px minmax(260px,1.5fr) repeat(3,minmax(150px,1fr));gap:22px;align-items:center;margin-top:20px;padding:22px 30px;border-radius:22px;border:1px solid rgba(0,107,95,.16);background:linear-gradient(135deg,rgba(238,250,248,.96),rgba(255,255,255,.86));box-shadow:0 14px 34px rgba(17,35,49,.08)}
.scope-icon{width:64px;height:64px;border-radius:50%;background:#fff;box-shadow:0 12px 30px rgba(7,54,69,.12);position:relative}
.scope-icon::before{content:"";position:absolute;inset:17px;border:3px solid #0c796f;border-radius:50%}
.scope-copy span,.landing-card-h,.insight-kicker{color:#006b5f;font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:900}
.scope-copy p{margin:6px 0 0;color:#344d5c;line-height:1.6}
.scope-point{display:flex;align-items:center;gap:12px;color:#304959;font-size:13px;line-height:1.35;padding-left:18px;border-left:1px solid rgba(7,54,69,.12)}
.scope-small-icon{position:relative;width:30px;height:30px;flex:0 0 30px;color:#006b5f}
.scope-small-icon::before{content:"";position:absolute;inset:4px;border:2px solid currentColor;border-radius:8px}
.clock-icon::before{border-radius:50%}
.lock-icon::before{top:12px;border-radius:5px}
.landing-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.98fr);gap:22px;margin-top:4px}
.landing-card,.insight-card{border:1px solid rgba(7,54,69,.1);border-radius:20px;background:rgba(255,255,255,.9);box-shadow:0 14px 34px rgba(17,35,49,.08)}
.landing-card{min-height:150px;padding:30px}
.landing-card-wide{display:flex;flex-direction:column;justify-content:center;padding-left:120px;position:relative}
.landing-card-wide::before{content:"";position:absolute;left:34px;top:50%;width:66px;height:66px;border-radius:50%;transform:translateY(-50%);background:#f7fbfb;box-shadow:0 10px 28px rgba(7,54,69,.14)}
.landing-card-p{color:#384f5d;line-height:1.75}
.landing-card-feature{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(238,250,248,.95),rgba(255,255,255,.84))}
.prompt-chips{width:min(360px,100%);display:flex;flex-direction:column;gap:8px;position:relative;z-index:2}
.prompt-chip{width:100%;min-height:40px;padding:10px 42px 10px 16px;text-align:left;border:1px solid rgba(7,54,69,.14);border-radius:10px;background:rgba(255,255,255,.7);color:#075b59;font-weight:700;cursor:pointer;box-shadow:0 8px 18px rgba(7,54,69,.08);position:relative}
.prompt-chip::after{content:"";position:absolute;right:17px;top:50%;width:8px;height:8px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:translateY(-50%) rotate(45deg)}
.prompt-orb{position:absolute;right:44px;bottom:18px;width:74px;height:74px;border-radius:50%;background:linear-gradient(135deg,#2f837f,#075460);box-shadow:0 14px 28px rgba(7,54,69,.2)}
.landing-insight-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.insight-card{padding:26px 28px 26px 94px;min-height:140px;position:relative}
.insight-card::before{content:"";position:absolute;left:28px;top:28px;width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#e4f5ed,#d2e8d8);box-shadow:0 9px 20px rgba(7,54,69,.12)}
.insight-card strong{display:block;margin:5px 0 9px;color:#172331;font-size:17px}
.insight-card p{margin:0;color:#4b5f70;line-height:1.65}
.sidebar{border-radius:24px;background:linear-gradient(180deg,#073545 0%,#0a4651 100%);box-shadow:0 18px 42px rgba(7,54,69,.22)}
.sidebtn{border-radius:14px;background:linear-gradient(135deg,#ef9d32,#f4b54d);color:#fff}
.hero,.chatpanel,.composer,#chat,#composer,.banner,header.intro{border-color:rgba(7,54,69,.1);background:rgba(255,255,255,.92)}
#chat{height:58vh}
.msg.user{background:#e9f6f1;border-color:#c9e7dd}
.msg.bot{background:#eef8fb;border-color:#d1eaf0}
.msg.sys{background:#fff6e7;border-color:#f2d29f}
#send,.primary{border:0;color:#fff;background:linear-gradient(135deg,#006b5f,#0d7182)}
@media (max-width:980px){
  .topbar{margin-bottom:14px;border-radius:24px;flex-direction:column;align-items:stretch}
  .topbar-right{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .landing-copy{padding:34px 26px 82px}
  .landing-cta{margin:-52px 16px 0;flex-wrap:wrap;justify-content:center}
  .scope-band{grid-template-columns:64px minmax(0,1fr)}
  .scope-point{grid-column:1 / -1;border-left:0;border-top:1px solid rgba(7,54,69,.1);padding:14px 0 0}
  .landing-grid,.landing-insight-row,.shell.tool{grid-template-columns:1fr}
}
@media (max-width:640px){
  .app{margin:12px auto;padding:0 10px}
  .topbar-right{grid-template-columns:1fr}
  .toplink{justify-content:flex-start}
  .landing-hero{min-height:560px;border-radius:24px}
  .landing-hero-overlay{background:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.9) 72%,rgba(255,255,255,.55) 100%)}
  .landing-copy{min-height:560px;padding:28px 20px 130px;justify-content:flex-start}
  .landing-title{font-size:46px}
  .landing-trust-card{grid-template-columns:54px minmax(0,1fr);gap:12px}
  .trust-divider,.trust-badge{display:none}
  .landing-cta{margin:-114px 12px 0;display:grid;grid-template-columns:1fr}
  .scope-band{grid-template-columns:1fr;padding:20px}
  .landing-card-wide{padding:94px 22px 22px}
  .landing-card-wide::before{top:24px;left:22px;transform:none}
  .landing-card{padding:22px}
  .prompt-orb{opacity:.22;right:20px}
  .insight-card{padding:92px 22px 24px}
  .insight-card::before{top:22px;left:22px}
}

/* Shared application navigation: final contrast and responsive authority. */
.app-shell > .topbar:not(.landing-nav){
  margin:0 0 20px;
  min-height:76px;
  padding:13px 18px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:0 0 22px 22px;
  background:linear-gradient(135deg,#063545 0%,#084b57 100%);
  color:#f4fbfa;
  box-shadow:0 18px 38px rgba(7,54,69,.20);
}

.app-shell > .topbar:not(.landing-nav) .orgname{
  color:#ffffff;
  font-weight:760;
}

.app-shell > .topbar:not(.landing-nav) .orgsub{
  color:rgba(238,249,247,.78);
  opacity:1;
}

.app-shell > .topbar:not(.landing-nav) .toplink{
  color:#f3fbfa;
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.23);
  opacity:1;
}

.app-shell > .topbar:not(.landing-nav) .toplink:hover{
  color:#ffffff;
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.45);
}

.app-shell > .topbar:not(.landing-nav) .toplink.active,
.app-shell > .topbar:not(.landing-nav) .toplink[aria-current="page"]{
  color:#064d57;
  background:#ffffff;
  border-color:#ffffff;
  box-shadow:0 8px 20px rgba(0,0,0,.16);
}

.app-shell > .topbar:not(.landing-nav) .toplink-cta{
  color:#153442;
  background:linear-gradient(135deg,#f4a436,#ffc25b);
  border-color:rgba(255,255,255,.42);
  box-shadow:0 10px 22px rgba(238,154,47,.24);
}

.app-shell > .topbar:not(.landing-nav) .toplink-cta:hover{
  color:#102d38;
  background:linear-gradient(135deg,#f8ad42,#ffca69);
}

.app-shell > .topbar:not(.landing-nav) .toplink:focus-visible,
.landing-nav .toplink:focus-visible{
  outline:3px solid #ffd27c;
  outline-offset:3px;
}

@media (max-width:1100px){
  .app-shell > .topbar:not(.landing-nav){
    align-items:stretch;
    flex-direction:column;
    border-radius:22px;
  }

  .app-shell > .topbar:not(.landing-nav) .topbar-right{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    margin-left:0;
  }

  .app-shell > .topbar:not(.landing-nav) .toplink{
    justify-content:center;
  }
}

@media (max-width:640px){
  .app-shell > .topbar:not(.landing-nav){
    padding:12px;
    gap:12px;
  }

  .app-shell > .topbar:not(.landing-nav) .orgmark{
    align-items:center;
  }

  .app-shell > .topbar:not(.landing-nav) .orgname{
    font-size:13px;
  }

  .app-shell > .topbar:not(.landing-nav) .topbar-right{
    grid-template-columns:1fr;
    gap:8px;
  }

  .app-shell > .topbar:not(.landing-nav) .toplink{
    justify-content:flex-start;
    width:100%;
  }
}

/* =========================================================
   Clean reference rebuild override
   This block intentionally wins over older duplicated rules.
   ========================================================= */
body{
  min-height:100%;
  background:
    linear-gradient(90deg, rgba(222,240,240,.8) 0 13%, transparent 13% 87%, rgba(249,238,219,.72) 87%),
    linear-gradient(180deg, #fbfaf7 0%, #eef6f5 100%);
}

.app.app-shell{
  max-width:1280px;
  margin:22px auto 34px;
  padding:0 34px;
}

.shell.landing{
  display:block;
  margin:0;
  padding:0;
}

.shell.landing .sidebar{
  display:none;
}

.main{
  display:block;
  gap:0;
}

.landing-view{
  display:flex;
  flex-direction:column;
  gap:0;
}

.landing-hero{
  min-height:342px;
  border-radius:28px 28px 0 0;
  overflow:hidden;
  border:0;
  box-shadow:0 28px 70px rgba(16,49,61,.16);
  background:#eef7f6;
}

.landing-hero-bgimg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:saturate(.98) contrast(.98);
}

.landing-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 36%, rgba(255,255,255,.42) 66%, rgba(255,255,255,.1) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(5,47,59,.08));
}

.landing-copy{
  position:relative;
  z-index:2;
  width:min(620px, 100%);
  min-height:342px;
  padding:34px 50px 64px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.landing-kicker{
  margin:0 0 12px;
  color:#006b5f;
  font-size:13px;
  line-height:1;
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.landing-title{
  margin:0;
  color:#073849;
  font-size:clamp(52px, 7.4vw, 76px);
  line-height:.95;
  font-weight:950;
  letter-spacing:0;
}

.landing-title::after{
  content:"";
  display:inline-block;
  width:.28em;
  height:.28em;
  margin-left:.04em;
  border-radius:70% 0 70% 0;
  background:linear-gradient(135deg,#1b8e5f,#95cb5e);
  transform:translateY(-.72em) rotate(-12deg);
}

.landing-sub{
  margin:12px 0 0;
  color:#2e5a67;
  font-size:17px;
  line-height:1.45;
}

.landing-sub span{
  display:block;
  color:#657b88;
  margin-top:2px;
}

.landing-trust-card{
  width:min(470px, 100%);
  margin-top:24px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 1px auto;
  align-items:center;
  gap:14px;
  padding:12px 16px;
  border:1px solid rgba(7,54,69,.12);
  border-radius:16px;
  background:rgba(255,255,255,.86);
  box-shadow:0 18px 38px rgba(7,54,69,.12);
  backdrop-filter:blur(10px);
}

.trust-logo{
  width:54px;
  height:54px;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#07495e;
}

.trust-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:3px;
}

.trust-copy strong{
  display:block;
  color:#0b2432;
  font-size:14px;
  line-height:1.2;
}

.trust-copy span,
.trust-badge{
  display:block;
  color:#496371;
  font-size:12px;
  line-height:1.28;
}

.trust-divider{
  width:1px;
  height:42px;
  background:rgba(7,54,69,.14);
}

.trust-badge{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:138px;
}

.trust-icon{
  width:27px;
  height:27px;
  border:2px solid #006b5f;
  border-radius:50%;
  position:relative;
}

.trust-icon::after{
  content:"";
  position:absolute;
  left:7px;
  top:6px;
  width:9px;
  height:6px;
  border-left:2px solid #006b5f;
  border-bottom:2px solid #006b5f;
  transform:rotate(-45deg);
}

.landing-hero .landing-cta{
  display:none;
}

.landing-nav{
  position:relative;
  top:auto;
  z-index:5;
  width:auto;
  margin:-42px 22px 22px;
  padding:14px 18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.28);
  background:linear-gradient(135deg,#063545,#084b57);
  box-shadow:0 18px 38px rgba(7,54,69,.24);
}

.landing-nav .topbar-right{
  display:grid;
  grid-template-columns:repeat(4, minmax(130px, 1fr));
  gap:14px;
  width:100%;
  align-items:center;
}

.landing-nav .toplink{
  min-height:46px;
  justify-content:center;
  gap:10px;
  padding:11px 16px;
  border-radius:13px;
  color:#eef9f7;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.04);
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  box-shadow:none;
}

.landing-nav .toplink:hover,
.landing-nav .toplink.active{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.44);
}

.landing-nav .toplink.active::after{
  left:18px;
  right:18px;
  bottom:-9px;
  height:3px;
  border-radius:999px;
  background:#f6a733;
}

.landing-nav .toplink-cta{
  background:linear-gradient(135deg,#ef9d32,#f7b44c);
  color:#fff;
  border-color:rgba(255,255,255,.2);
  box-shadow:0 12px 24px rgba(239,157,50,.23);
}

.scope-band{
  display:grid;
  grid-template-columns:78px minmax(320px, 1.4fr) repeat(3, minmax(150px, 1fr));
  align-items:center;
  gap:24px;
  margin:0 22px 24px;
  padding:24px 32px;
  border-radius:22px;
  border:1px solid rgba(0,107,95,.15);
  background:linear-gradient(135deg,rgba(238,250,248,.98),rgba(255,255,255,.92));
  box-shadow:0 16px 36px rgba(17,35,49,.08);
}

.scope-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 12px 30px rgba(7,54,69,.12);
}

.scope-copy span,
.landing-card-h,
.insight-kicker{
  color:#006b5f;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:900;
}

.scope-copy p{
  margin:7px 0 0;
  max-width:520px;
  color:#304c5d;
  line-height:1.6;
}

.scope-point{
  display:flex;
  align-items:center;
  gap:12px;
  padding-left:20px;
  min-width:0;
  border-left:1px solid rgba(7,54,69,.12);
  color:#304c5d;
  font-size:13px;
  line-height:1.35;
}

.landing-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(360px, .95fr);
  gap:24px;
  margin:0 22px 24px;
}

.landing-card{
  min-height:150px;
  padding:30px 34px;
  border-radius:20px;
  border:1px solid rgba(7,54,69,.1);
  background:rgba(255,255,255,.94);
  box-shadow:0 14px 34px rgba(17,35,49,.08);
}

.landing-card-wide{
  position:relative;
  display:block;
  padding-left:126px;
}

.landing-card-wide::before{
  content:"";
  position:absolute;
  left:34px;
  top:34px;
  width:64px;
  height:64px;
  border-radius:50%;
  background:#fbfefe;
  box-shadow:0 10px 28px rgba(7,54,69,.12);
}

.landing-card-p{
  max-width:660px;
  margin:0;
  color:#304c5d;
  line-height:1.75;
}

.landing-card-feature{
  position:relative;
  overflow:hidden;
  min-height:150px;
  background:linear-gradient(135deg,rgba(238,250,248,.98),rgba(255,255,255,.9));
}

.prompt-chips{
  width:min(380px, 72%);
  display:flex;
  flex-direction:column;
  gap:8px;
}

.prompt-chip{
  width:100%;
  min-height:40px;
  padding:10px 42px 10px 16px;
  border:1px solid rgba(0,107,95,.18);
  border-radius:10px;
  background:rgba(255,255,255,.75);
  color:#075b59;
  font-weight:800;
  text-align:left;
  cursor:pointer;
  position:relative;
  box-shadow:0 8px 18px rgba(7,54,69,.08);
}

.prompt-chip::after{
  content:"";
  position:absolute;
  right:18px;
  top:50%;
  width:8px;
  height:8px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
  transform:translateY(-50%) rotate(45deg);
}

.prompt-orb{
  position:absolute;
  right:48px;
  bottom:22px;
  width:78px;
  height:78px;
  border-radius:50%;
  background:linear-gradient(135deg,#2e827d,#075560);
  box-shadow:0 14px 28px rgba(7,54,69,.2);
}

.landing-insight-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
  margin:0 22px 10px;
}

.insight-card{
  position:relative;
  display:block;
  min-height:140px;
  padding:26px 28px 26px 104px;
  border-radius:20px;
  border:1px solid rgba(7,54,69,.1);
  background:rgba(255,255,255,.94);
  box-shadow:0 14px 34px rgba(17,35,49,.08);
}

.insight-card::before{
  content:"";
  position:absolute;
  left:28px;
  top:28px;
  width:54px;
  height:54px;
  border-radius:50%;
  background:linear-gradient(135deg,#e4f5ed,#d2e8d8);
  box-shadow:0 9px 20px rgba(7,54,69,.12);
}

.insight-card::after{
  content:"";
  position:absolute;
  right:24px;
  bottom:24px;
  width:8px;
  height:8px;
  border-top:2px solid #607785;
  border-right:2px solid #607785;
  transform:rotate(45deg);
}

.insight-card strong{
  display:block;
  max-width:280px;
  margin:6px 0 10px;
  color:#172331;
  font-size:18px;
  line-height:1.25;
}

.insight-card p{
  max-width:330px;
  margin:0;
  color:#3f5668;
  line-height:1.65;
}

@media (max-width:1050px){
  .app.app-shell{padding:0 20px}
  .landing-nav .topbar-right{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .scope-band{grid-template-columns:68px minmax(0,1fr);gap:18px}
  .scope-point{grid-column:1 / -1;border-left:0;border-top:1px solid rgba(7,54,69,.1);padding:14px 0 0}
  .landing-grid,.landing-insight-row{grid-template-columns:1fr}
  .prompt-chips{width:min(440px, 100%)}
}

@media (max-width:640px){
  .app.app-shell{margin:10px auto 24px;padding:0 10px}
  .landing-hero{min-height:520px;border-radius:24px 24px 0 0}
  .landing-hero-overlay{background:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.9) 70%,rgba(255,255,255,.55) 100%)}
  .landing-copy{min-height:520px;padding:28px 20px 76px;justify-content:flex-start}
  .landing-title{font-size:48px}
  .landing-trust-card{grid-template-columns:54px minmax(0,1fr)}
  .trust-divider,.trust-badge{display:none}
  .landing-nav{margin:-42px 14px 18px;padding:12px}
  .landing-nav .topbar-right{grid-template-columns:1fr}
  .landing-nav .toplink{justify-content:flex-start}
  .scope-band,.landing-grid,.landing-insight-row{margin-left:0;margin-right:0}
  .scope-band{grid-template-columns:1fr;padding:20px}
  .landing-card-wide{padding:94px 22px 24px}
  .landing-card-wide::before{left:22px;top:22px}
  .landing-card{padding:22px}
  .prompt-orb{opacity:.2;right:18px}
  .insight-card{padding:92px 22px 24px}
  .insight-card::before{left:22px;top:22px}
}

/* Icon and sticky navigation repairs */
.app-shell > .topbar:not(.landing-nav):not(.tool-nav),
.tool-nav,
.landing-nav{
  position:sticky;
  top:12px;
}

.tool-nav{
  z-index:30;
  margin:0 0 18px;
  border-radius:22px;
  padding:14px 18px;
  background:linear-gradient(135deg,#063545,#084b57);
  box-shadow:0 18px 38px rgba(7,54,69,.2);
}

.tool-nav .topbar-right{
  margin-left:auto;
}

.tool-nav .toplink{
  min-height:44px;
}

.scope-icon::before,
.scope-icon::after{
  content:"";
  position:absolute;
}

.scope-icon::before{
  inset:15px;
  border:3px solid #0a766c;
  border-radius:50%;
}

.scope-icon::after{
  left:19px;
  right:19px;
  top:12px;
  bottom:12px;
  border-left:2px solid #0a766c;
  border-right:2px solid #0a766c;
  border-radius:50%;
  box-shadow:
    0 14px 0 -12px #0a766c,
    0 -14px 0 -12px #0a766c;
}

.scope-small-icon::before,
.scope-small-icon::after{
  content:"";
  position:absolute;
  box-sizing:border-box;
}

.shield-icon::before{
  left:6px;
  top:4px;
  width:18px;
  height:22px;
  border:2px solid currentColor;
  border-radius:8px 8px 12px 12px;
}

.shield-icon::after{
  left:12px;
  top:12px;
  width:7px;
  height:4px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
}

.clock-icon::before{
  inset:4px;
  border:2px solid currentColor;
  border-radius:50%;
}

.clock-icon::after{
  left:15px;
  top:8px;
  width:7px;
  height:9px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
}

.lock-icon::before{
  left:6px;
  right:6px;
  bottom:4px;
  height:15px;
  border:2px solid currentColor;
  border-radius:5px;
}

.lock-icon::after{
  left:10px;
  top:4px;
  width:11px;
  height:12px;
  border:2px solid currentColor;
  border-bottom:0;
  border-radius:10px 10px 0 0;
}

.landing-card-wide::before{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%2300675f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.2 4.7L19 10l-4.8 2.2L12 17l-2.2-4.8L5 10l4.8-2.3L12 3z'/%3E%3Cpath d='M5 15l1 2 2 1-2 1-1 2-1-2-2-1 2-1 1-2z'/%3E%3C/svg%3E") center/34px 34px no-repeat,
    #fbfefe;
}

.insight-card::before{
  background-color:#dff2e8;
  background-repeat:no-repeat;
  background-position:center;
  background-size:34px 34px;
}

.insight-card:nth-child(1)::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%2300675f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 20v-2a4 4 0 0 0-8 0v2'/%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M4 20v-1.5A3.5 3.5 0 0 1 7.5 15'/%3E%3Cpath d='M20 20v-1.5a3.5 3.5 0 0 0-3.5-3.5'/%3E%3Ccircle cx='5.5' cy='10' r='2'/%3E%3Ccircle cx='18.5' cy='10' r='2'/%3E%3C/svg%3E");
}

.insight-card:nth-child(2)::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%2300675f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4'/%3E%3C/svg%3E");
}

.insight-card:nth-child(3)::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%2300675f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11l3 3a2 2 0 0 0 2.8 0l.7-.7'/%3E%3Cpath d='M3 12l4-4 4 4'/%3E%3Cpath d='M21 12l-4-4-4 4'/%3E%3Cpath d='M7 8h3l4 4 3-4'/%3E%3Cpath d='M8 15l2 2M12 15l2 2M16 14l1 1'/%3E%3C/svg%3E");
}

@media (max-width:1050px){
  .tool-nav{
    align-items:stretch;
    flex-direction:column;
  }
  .tool-nav .topbar-right{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-left:0;
  }
}

@media (max-width:640px){
  .app-shell > .topbar:not(.landing-nav):not(.tool-nav),
  .tool-nav,
  .landing-nav{
    top:8px;
  }
  .tool-nav .topbar-right{
    grid-template-columns:1fr;
  }
}

/* Final icon fidelity fixes */
.landing-title{
  white-space:nowrap;
}

.landing-title::after{
  content:none !important;
}

.title-leaf{
  display:inline-block;
  width:.28em;
  height:.38em;
  margin:0 .035em 0 .025em;
  border-radius:75% 0 75% 0;
  background:linear-gradient(135deg,#1a8f60 8%, #76bd57 90%);
  transform:translateY(-.54em) rotate(-14deg);
  box-shadow:0 4px 8px rgba(0,107,95,.12);
}

.scope-icon::before,
.scope-icon::after{
  content:none !important;
}

.scope-icon{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='none' stroke='%2300675f' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c2.4 2.5 3.6 5.5 3.6 9s-1.2 6.5-3.6 9'/%3E%3Cpath d='M12 3c-2.4 2.5-3.6 5.5-3.6 9s1.2 6.5 3.6 9'/%3E%3Cpath d='M5.6 6.1c1.6 1 3.7 1.5 6.4 1.5s4.8-.5 6.4-1.5'/%3E%3Cpath d='M5.6 17.9c1.6-1 3.7-1.5 6.4-1.5s4.8.5 6.4 1.5'/%3E%3C/svg%3E") center/42px 42px no-repeat,
    #fff;
}

.landing-card-wide::before{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 24 24' fill='none' stroke='%2300675f' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.6 4.2L18 9l-4.4 1.8L12 15l-1.6-4.2L6 9l4.4-1.8L12 3z'/%3E%3Cpath d='M5 14l.9 2.1L8 17l-2.1.9L5 20l-.9-2.1L2 17l2.1-.9L5 14z'/%3E%3Cpath d='M18 14l.7 1.5L20 16l-1.3.5L18 18l-.7-1.5L16 16l1.3-.5L18 14z'/%3E%3C/svg%3E") center/38px 38px no-repeat,
    #fff;
}

.prompt-orb{
  width:108px;
  height:96px;
  right:32px;
  bottom:12px;
  border-radius:0;
  border:0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='96' viewBox='0 0 108 96'%3E%3Cpath d='M31 14C17.5 23.4 10.4 39.6 13.4 56.1c2.8 15.4 14.7 26.9 30.5 29.5 6.4 1.1 13.6.5 19.7-1.8l21 7.4-5.2-19.2c8.1-8.2 11.9-19.8 9.7-31.6C85.3 17.9 55.4-3 31 14Z' fill='%23ffffff' fill-opacity='.92'/%3E%3Cpath d='M37 20.5C24.9 27.6 18.3 41.3 20.8 55.2c2.8 15.6 15.9 25.8 32.1 25 4.9-.2 9.4-1.4 13.5-3.7l12.2 4.3-3.2-11.9c6.4-6.9 9.2-16.6 7.4-26.2C79.3 24 55.1 9.8 37 20.5Z' fill='%230a6670'/%3E%3Cpath d='M48.3 43.2l3.8 8.2 8.3 3.8-8.3 3.7-3.8 8.3-3.8-8.3-8.2-3.7 8.2-3.8 3.8-8.2Z' fill='%23ffffff'/%3E%3Cpath d='M65 33.5l1.8 3.8 3.7 1.7-3.7 1.8-1.8 3.7-1.7-3.7-3.8-1.8 3.8-1.7 1.7-3.8Z' fill='%23ffffff'/%3E%3Cpath d='M70.5 51l1.1 2.4 2.4 1.1-2.4 1.1-1.1 2.4-1.1-2.4-2.4-1.1 2.4-1.1 1.1-2.4Z' fill='%23ffffff'/%3E%3C/svg%3E") center/contain no-repeat;
  box-shadow:none;
}

.prompt-orb::before{
  content:"";
  position:absolute;
  width:48px;
  height:25px;
  left:-42px;
  top:42px;
  border-radius:52% 0 52% 0;
  background:rgba(86,160,151,.76);
  border:1px solid rgba(255,255,255,.45);
  transform:rotate(14deg);
}

.prompt-orb::after{
  content:"";
  position:absolute;
  width:34px;
  height:62px;
  left:24px;
  top:-60px;
  border-radius:60% 0 60% 0;
  background:rgba(65,139,130,.78);
  border:1px solid rgba(255,255,255,.45);
  transform:rotate(6deg);
}

.insight-card:nth-child(1)::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 24 24' fill='none' stroke='%2300675f' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16.5 19v-1.4a4.5 4.5 0 0 0-9 0V19'/%3E%3Ccircle cx='12' cy='8.5' r='3'/%3E%3Cpath d='M4 18.8v-1a3.6 3.6 0 0 1 3.3-3.6'/%3E%3Cpath d='M20 18.8v-1a3.6 3.6 0 0 0-3.3-3.6'/%3E%3Ccircle cx='5.8' cy='10.2' r='1.9'/%3E%3Ccircle cx='18.2' cy='10.2' r='1.9'/%3E%3C/svg%3E") !important;
}

.insight-card:nth-child(2)::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 24 24' fill='none' stroke='%2300675f' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.2'/%3E%3Ccircle cx='12' cy='12' r='3.4'/%3E%3Ccircle cx='12' cy='12' r='1.1' fill='%2300675f'/%3E%3Cpath d='M12 2.5v4M12 17.5v4M2.5 12h4M17.5 12h4'/%3E%3C/svg%3E") !important;
}

.insight-card:nth-child(3)::before{
  background-size:42px 42px !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 24 24' fill='none' stroke='%2300675f' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.7 7.1 6l3.2 3.2-3.6 3.7-3.2-3.2Z'/%3E%3Cpath d='M20.5 9.7 16.9 6l-3.2 3.2 3.6 3.7 3.2-3.2Z'/%3E%3Cpath d='M7.1 6.1h3.2l4 4'/%3E%3Cpath d='M16.9 6.1h-2.8l-4.1 4.1a1.35 1.35 0 0 0 1.9 1.9l1.6-1.6'/%3E%3Cpath d='M7.1 12.8l4.5 4.5a2 2 0 0 0 2.8 0l2.5-2.5'/%3E%3Cpath d='M9.3 15l1.8 1.8'/%3E%3Cpath d='M11.8 15.7l1.5 1.5'/%3E%3Cpath d='M14.1 15.2l1.1 1.1'/%3E%3C/svg%3E") !important;
}

@media (max-width:640px){
  .landing-title{
    white-space:normal;
  }
  .title-leaf{
    transform:translateY(-.45em) rotate(-14deg);
  }
}

/* Keep application navigation legible after all page-specific theme rules. */
.app-shell > .topbar:not(.landing-nav){
  margin-bottom:20px;
  background:linear-gradient(135deg,#063545 0%,#084b57 100%);
  color:#f4fbfa;
}

.app-shell > .topbar:not(.landing-nav) .orgname{
  color:#ffffff;
}

.app-shell > .topbar:not(.landing-nav) .orgsub{
  color:rgba(238,249,247,.78);
  opacity:1;
}

.app-shell > .topbar:not(.landing-nav) .toplink{
  color:#f3fbfa;
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.23);
}

.app-shell > .topbar:not(.landing-nav) .toplink:hover{
  color:#ffffff;
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.45);
}

.app-shell > .topbar:not(.landing-nav) .toplink.active,
.app-shell > .topbar:not(.landing-nav) .toplink[aria-current="page"]{
  color:#064d57;
  background:#ffffff;
  border-color:#ffffff;
}

.app-shell > .topbar:not(.landing-nav) .toplink-cta,
.app-shell > .topbar:not(.landing-nav) .toplink-cta:hover{
  color:#153442;
  background:linear-gradient(135deg,#f4a436,#ffc25b);
  border-color:rgba(255,255,255,.42);
}

/* The tool header is nested inside #toolView, so it needs its own shell rules. */
.tool-nav{
  position:relative;
  top:auto;
  z-index:30;
  width:100%;
  margin:0 0 18px;
  padding:14px 18px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:22px;
  background:linear-gradient(135deg,#063545 0%,#084b57 100%);
  color:#f4fbfa;
}

.tool-nav .orgname{
  color:#ffffff;
  font-weight:760;
}

.tool-nav .orgsub{
  color:rgba(238,249,247,.78);
  opacity:1;
}

.tool-nav .toplink{
  color:#f3fbfa;
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.23);
  opacity:1;
}

.tool-nav .toplink:hover{
  color:#ffffff;
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.45);
}

.tool-nav .tool-open-link{
  display:none;
}

.tool-nav + .hero{
  position:relative;
  z-index:1;
  margin:0 0 12px;
}

@media (max-width:1100px){
  .tool-nav{
    align-items:stretch;
  }

  .tool-nav .topbar-right{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .tool-nav .toplink{
    justify-content:center;
  }
}

@media (max-width:720px){
  .tool-nav{
    padding:12px;
  }

  .tool-nav .topbar-right{
    grid-template-columns:1fr;
  }

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

/* AGNES identity lockup: respect the wide source logo and surface contrast. */
.orgmark{
  min-width:0;
  gap:12px;
}

.orglogo{
  width:78px;
  height:50px;
  flex:0 0 78px;
  padding:5px;
  border:1px solid rgba(214,230,227,.95);
  border-radius:12px;
  background:#ffffff;
  box-shadow:0 8px 18px rgba(4,39,49,.14);
}

.orglogo-img{
  width:100%;
  height:100%;
  padding:0;
  border-radius:7px;
  object-fit:contain;
  object-position:center;
}

.orgtext{
  min-width:0;
}

.orgname{
  max-width:320px;
  color:#ffffff;
  font-size:14px;
  font-weight:760;
  line-height:1.22;
  letter-spacing:0;
}

.orgsub{
  margin-top:3px;
  color:rgba(224,242,240,.78);
  font-size:12px;
  font-weight:500;
  line-height:1.3;
  letter-spacing:0;
}

.landing-trust-card{
  grid-template-columns:78px minmax(0,1fr) 1px minmax(140px,auto);
  gap:14px;
  padding:14px 16px;
}

.trust-logo{
  width:78px;
  height:52px;
  padding:5px;
  border:1px solid rgba(7,92,93,.14);
  border-radius:12px;
  background:#ffffff;
  box-shadow:0 8px 18px rgba(7,54,69,.10);
  overflow:hidden;
}

.trust-logo img{
  width:100%;
  height:100%;
  padding:0;
  border-radius:7px;
  object-fit:contain;
  object-position:center;
}

.trust-copy strong{
  color:#0a3441;
  font-size:15px;
  font-weight:760;
  line-height:1.18;
  letter-spacing:0;
}

.trust-copy span{
  margin-top:4px;
  color:#536b78;
  font-size:12px;
  font-weight:500;
  line-height:1.3;
}

.trust-badge{
  color:#3f5966;
}

@media (max-width:640px){
  .orglogo{
    width:70px;
    height:46px;
    flex-basis:70px;
  }

  .orgname{
    font-size:13px;
  }

  .landing-trust-card{
    grid-template-columns:70px minmax(0,1fr);
    gap:12px;
  }

  .trust-logo{
    width:70px;
    height:48px;
  }
}

/* Saved briefing actions and readable Markdown-free previews. */
.session-item{
  min-height:104px;
  padding:14px 112px 14px 14px;
  gap:7px;
  border-radius:14px;
}

.session-item-title{
  display:-webkit-box;
  width:100%;
  overflow:hidden;
  color:#ffffff;
  font-size:13px;
  font-weight:740;
  line-height:1.35;
  letter-spacing:0;
  white-space:normal;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.session-item-preview{
  display:-webkit-box;
  width:100%;
  overflow:hidden;
  color:rgba(232,245,243,.78);
  font-size:12px;
  font-weight:450;
  line-height:1.45;
  white-space:normal;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.session-actions-btn,
.session-delete{
  top:12px;
  height:30px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:8px;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}

.session-actions-btn{
  right:46px;
  min-width:72px;
  justify-content:center;
  gap:7px;
  padding:5px 9px;
  color:#075c5d;
  background:#ffffff;
  box-shadow:0 5px 14px rgba(2,28,36,.16);
}

.session-actions-btn:hover,
.session-actions-btn[aria-expanded="true"]{
  color:#063f49;
  background:#e9f7f4;
  border-color:#b8ddd6;
  transform:translateY(-1px);
}

.session-actions-icon{
  position:relative;
  width:14px;
  height:14px;
  flex:0 0 14px;
  font-size:0;
}

.session-actions-icon::before{
  content:"";
  position:absolute;
  left:6px;
  top:1px;
  width:2px;
  height:8px;
  border-radius:2px;
  background:currentColor;
}

.session-actions-icon::after{
  content:"";
  position:absolute;
  left:3px;
  bottom:1px;
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translate(-1px,-1px);
}

.session-actions-label{
  font-size:11px;
  font-weight:750;
}

.session-delete{
  right:10px;
  display:inline-flex;
  width:30px;
  align-items:center;
  justify-content:center;
  padding:0;
  color:rgba(238,249,247,.78);
  background:rgba(255,255,255,.055);
  opacity:1;
}

.session-delete span,
.session-delete span::before{
  display:block;
  width:13px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform:rotate(45deg);
}

.session-delete span::before{
  content:"";
  transform:rotate(90deg);
}

.session-delete:hover{
  color:#ffffff;
  background:#b42318;
  border-color:#d75045;
  transform:translateY(-1px);
}

.session-actions-btn:focus-visible,
.session-delete:focus-visible{
  outline:3px solid #ffd27c;
  outline-offset:2px;
}

.session-actions-menu{
  top:49px;
  right:10px;
  min-width:178px;
  gap:4px;
  padding:7px;
  border-color:#d8e4e3;
  border-radius:8px;
  box-shadow:0 16px 32px rgba(3,36,45,.22);
}

.session-action{
  border:0;
  border-radius:6px;
  padding:9px 10px;
  color:#173b47;
  background:#ffffff;
  font-size:12px;
  font-weight:650;
}

.session-action:hover,
.session-action:focus-visible{
  color:#064d57;
  background:#e9f7f4;
  outline:none;
}

/* Two-stage briefing export menu. */
.session-actions-menu{
  width:236px;
  min-width:236px;
  padding:8px;
  overflow:hidden;
}

.session-menu-view{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.session-menu-view[hidden]{
  display:none;
}

.session-menu-title{
  padding:5px 7px 8px;
  color:#526375;
  font-size:10px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.session-menu-trigger,
.session-action-row{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 12px;
  align-items:center;
  gap:9px;
  width:100%;
  min-height:50px;
  padding:7px 8px;
  text-align:left;
}

.session-action-row{
  grid-template-columns:32px minmax(0,1fr);
}

.session-menu-trigger > span:nth-child(2),
.session-action-label{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:1px;
  font-size:12px;
}

.session-menu-trigger strong,
.session-action-row strong{
  color:#173b47;
  font-size:12px;
  font-weight:720;
  line-height:1.25;
}

.session-menu-trigger small,
.session-action-row small{
  color:#6a7d89;
  font-size:10px;
  font-weight:500;
  line-height:1.3;
}

.session-platform-icon{
  display:inline-flex;
  width:30px;
  height:30px;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  color:#ffffff;
  background:#075c5d;
  font-size:10px;
  font-weight:800;
  line-height:1;
  letter-spacing:0;
}

.icon-download,
.icon-share{
  position:relative;
  color:#075c5d;
  background:#e6f5f1;
}

.icon-download::before{
  content:"";
  width:7px;
  height:10px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
}

.icon-download::after{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:6px;
  border-bottom:2px solid currentColor;
}

.icon-share::before{
  content:"";
  width:9px;
  height:9px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
}

.icon-share::after{
  content:"";
  position:absolute;
  width:10px;
  border-top:2px solid currentColor;
  transform:translate(-2px,2px) rotate(-45deg);
}

.icon-word{
  background:#2563a9;
}

.icon-pdf{
  background:#bf2d24;
  font-size:8px;
}

.icon-whatsapp{
  border-radius:50%;
  background:#1f9d55;
  font-size:8px;
}

.icon-email{
  background:#c57a16;
  font-size:16px;
}

.icon-linkedin{
  background:#0a66c2;
  font-family:Arial,sans-serif;
  font-size:13px;
}

.session-menu-chevron{
  width:7px;
  height:7px;
  justify-self:end;
  border-top:2px solid #78909a;
  border-right:2px solid #78909a;
  transform:rotate(45deg);
}

.session-menu-back{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  margin-bottom:3px;
  padding:7px 8px 9px;
  border:0;
  border-bottom:1px solid #e4eceb;
  color:#405a67;
  background:#ffffff;
  font-size:11px;
  font-weight:720;
  text-align:left;
  cursor:pointer;
}

.session-menu-back span{
  width:7px;
  height:7px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
}

.session-menu-back:hover,
.session-menu-back:focus-visible{
  color:#064d57;
  outline:none;
}

.session-action:disabled{
  cursor:wait;
  opacity:.68;
}

@media (max-width:420px){
  .session-actions-menu{
    right:6px;
    width:220px;
    min-width:220px;
  }
}

/* Per-answer actions use the same visual language as briefing exports. */
.answer-actions{
  max-width:100%;
  gap:8px;
  margin:6px 0 14px;
}

.answer-action-btn{
  display:inline-flex;
  min-height:36px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:7px 11px;
  border:1px solid #c6dcda;
  border-radius:8px;
  color:#075c5d;
  background:#ffffff;
  box-shadow:0 5px 14px rgba(3,36,45,.08);
  font-size:12px;
  font-weight:720;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}

.answer-action-btn:hover,
.answer-action-btn[aria-expanded="true"]{
  color:#063f49;
  background:#e9f7f4;
  border-color:#9fcfc7;
  transform:translateY(-1px);
}

.answer-action-btn:focus-visible{
  outline:3px solid #ffd27c;
  outline-offset:2px;
}

.answer-action-btn:disabled{
  cursor:wait;
  opacity:.68;
  transform:none;
}

.answer-action-icon{
  position:relative;
  display:inline-block;
  width:16px;
  height:16px;
  flex:0 0 16px;
  color:currentColor;
}

.answer-download-icon::before{
  content:"";
  position:absolute;
  left:7px;
  top:1px;
  width:2px;
  height:9px;
  border-radius:2px;
  background:currentColor;
}

.answer-download-icon::after{
  content:"";
  position:absolute;
  left:4px;
  bottom:1px;
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translate(-1px,-1px);
}

.answer-share-icon::before{
  content:"";
  position:absolute;
  left:3px;
  top:3px;
  width:8px;
  height:8px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
}

.answer-share-icon::after{
  content:"";
  position:absolute;
  left:2px;
  top:9px;
  width:10px;
  border-top:2px solid currentColor;
  transform:rotate(-45deg);
}

.answer-share-menu{
  top:calc(100% + 4px);
  left:134px;
  width:236px;
  min-width:236px;
  gap:4px;
  margin-top:0;
  padding:8px;
  border-color:#d8e4e3;
  border-radius:8px;
  box-shadow:0 16px 32px rgba(3,36,45,.20);
}

.answer-share-title{
  padding:5px 7px 8px;
  color:#526375;
  font-size:10px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.answer-share-option.answer-share-row{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  align-items:center;
  gap:9px;
  width:100%;
  min-height:50px;
  padding:7px 8px;
  border:0;
  border-radius:6px;
  color:#173b47;
  background:#ffffff;
  text-align:left;
}

.answer-share-row > span:last-child{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:1px;
}

.answer-share-row strong{
  color:#173b47;
  font-size:12px;
  font-weight:720;
  line-height:1.25;
}

.answer-share-row small{
  color:#6a7d89;
  font-size:10px;
  font-weight:500;
  line-height:1.3;
}

.answer-share-option.answer-share-row:hover,
.answer-share-option.answer-share-row:focus-visible{
  color:#064d57;
  background:#e9f7f4;
  border:0;
  outline:none;
}

.icon-copy{
  background:#526375;
}

@media (max-width:640px){
  .answer-share-menu{
    left:0;
    width:min(236px,calc(100vw - 56px));
    min-width:0;
  }
}

.admin-card canvas { cursor: crosshair; }
.admin-table td { max-width: 320px; overflow-wrap: anywhere; }
#inspectDay, #resetActivity { margin: 8px; padding: 8px; }
