:root{
  --hub-navy:#18284f;
  --hub-ink:#2f3447;
  --hub-muted:#667085;
  --hub-line:#d7ddea;
  --hub-soft:#f6f7fb;
  --hub-white:#ffffff;
}

.tool-page .page-hero{
  padding:88px 0 72px;
}

.tool-page .page-hero .desc{
  max-width:760px;
}

.tool-shell{
  padding:72px 0 96px;
}

.tool-shell .intro{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
  gap:28px;
  align-items:start;
  margin-bottom:32px;
}

.tool-shell .panel,
.tool-shell .embed-card,
.tool-shell .subject-card,
.tool-shell .subject-links{
  background:var(--hub-white);
  border:1px solid var(--hub-line);
}

.tool-shell .panel{
  padding:28px;
}

.tool-shell .panel h2,
.tool-shell .embed-card h2,
.tool-shell .subject-card h2{
  font-family:var(--serif);
  color:var(--primary);
  line-height:1.45;
}

.tool-shell .panel h2{
  font-size:28px;
  margin-bottom:14px;
}

.tool-shell .panel p,
.tool-shell .embed-card p,
.tool-shell .subject-card p,
.tool-shell .subject-links p{
  color:var(--hub-ink);
  font-size:14px;
  line-height:1.9;
}

.tool-shell .eyebrow{
  font-family:var(--en);
  font-size:11px;
  letter-spacing:3px;
  text-transform:uppercase;
  color:var(--accent);
  font-weight:700;
  margin-bottom:12px;
}

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

.tool-shell .stat{
  border:1px solid var(--hub-line);
  padding:16px 18px;
  background:var(--hub-soft);
}

.tool-shell .stat .label{
  display:block;
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--hub-muted);
  margin-bottom:8px;
  font-family:var(--en);
}

.tool-shell .stat strong{
  font-family:var(--serif);
  color:var(--primary);
  font-size:28px;
  line-height:1;
}

.tool-shell .switcher{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:28px;
}

.tool-shell .switcher .btn.current{
  background:var(--primary);
  color:var(--white);
  border-color:var(--primary);
  pointer-events:none;
}

.tool-shell .embed-card{
  padding:32px;
}

.tool-shell .embed-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 22px;
}

.tool-shell .embed-meta span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--subject-accent,var(--accent)) 16%, #d7ddea);
  background:color-mix(in srgb, var(--subject-accent,var(--accent)) 7%, #ffffff);
  color:var(--hub-ink);
  font-size:12px;
  line-height:1.2;
}

.tool-shell .embed-note{
  margin-top:16px;
  color:var(--hub-muted);
  font-size:12px;
  line-height:1.8;
}

.tool-shell .tool-frame-wrap{
  margin-top:24px;
  border:1px solid var(--hub-line);
  background:#fff;
  overflow:hidden;
}

.tool-shell .tool-frame{
  width:100%;
  min-height:1200px;
  border:0;
  display:block;
  background:#fff;
}

.tool-shell .placeholder{
  border:1px dashed var(--hub-line);
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);
  min-height:420px;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
}

.tool-shell .placeholder ul{
  list-style:none;
  padding:0;
  margin:0;
}

.tool-shell .placeholder li{
  position:relative;
  padding-left:18px;
  margin:8px 0;
  color:var(--hub-ink);
  font-size:14px;
  line-height:1.8;
}

.tool-shell .placeholder li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  color:var(--subject-accent,var(--accent));
}

.tool-shell .back-row{
  margin-top:24px;
}

.tool-shell .back-link{
  font-family:var(--en);
  font-size:13px;
  letter-spacing:2px;
  color:var(--primary);
}

.tool-shell .back-link:hover{
  color:var(--accent);
}

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

.subject-card{
  --subject-accent:var(--accent);
  padding:30px;
  display:flex;
  flex-direction:column;
  gap:18px;
  min-height:100%;
}

.subject-card .subject-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.subject-card .subject-head h2{
  font-size:30px;
  margin:0;
}

.subject-card .subject-head .en{
  font-family:var(--en);
  font-size:12px;
  letter-spacing:3px;
  text-transform:uppercase;
  color:var(--subject-accent);
  font-weight:700;
  margin-bottom:10px;
}

.subject-card .count{
  min-width:112px;
  padding:16px 18px;
  border:1px solid color-mix(in srgb, var(--subject-accent) 20%, #d7ddea);
  background:color-mix(in srgb, var(--subject-accent) 7%, #ffffff);
  text-align:right;
}

.subject-card .count .label{
  display:block;
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--hub-muted);
  margin-bottom:8px;
  font-family:var(--en);
}

.subject-card .count strong{
  display:block;
  font-family:var(--serif);
  color:var(--primary);
  font-size:28px;
  line-height:1;
}

.subject-links{
  padding:22px;
}

.subject-links .btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.subject-links .btn.subject{
  background:var(--subject-accent);
  color:#fff;
}

.subject-links .btn.subject:hover{
  filter:brightness(.95);
  transform:translateY(-1px);
}

.hub-note{
  margin-top:28px;
  padding:24px 28px;
  border:1px solid var(--hub-line);
  background:var(--hub-soft);
}

.hub-note p{
  margin:0;
  color:var(--hub-ink);
  font-size:14px;
  line-height:1.9;
}

@media (max-width: 1100px){
  .tool-shell .intro,
  .hub-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .tool-shell{
    padding:56px 0 72px;
  }

  .tool-shell .panel,
  .tool-shell .embed-card,
  .subject-card,
  .subject-links{
    padding:22px;
  }

  .tool-shell .tool-frame{
    min-height:980px;
  }

  .tool-shell .panel h2,
  .subject-card .subject-head h2{
    font-size:24px;
  }

  .subject-card .subject-head{
    flex-direction:column;
  }

  .subject-card .count{
    width:100%;
    text-align:left;
  }

  .tool-shell .stat-list{
    grid-template-columns:1fr;
  }
}
