body { background: var(--tint); }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.side img { height: 26px; margin: 0 6px 6px; align-self: flex-start; }
.side .sub { font-size: 12px; color: #c2c9c4; margin: 0 6px 12px; display: flex; gap: 8px; align-items: center; }
.side a { color: #d4d9d5; text-decoration: none; padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.side a.on, .side a:hover { background: var(--navy-2); color: #fff; }
.side a small { color: var(--orange); font-weight: 600; }
.side .grow { flex: 1; }
.side .links { font-size: 12.5px; }
.main { padding: 26px 30px 60px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { font-size: 24px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { background: #fff; border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--orange); }
.tile b { display: block; font-size: 28px; color: var(--navy); line-height: 1.1; }
.tile span { font-size: 12.5px; color: var(--muted); }
.tile.met { border-left-color: var(--green); } .tile.bad { border-left-color: var(--crimson); }
.panel { background: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.panel h2 { font-size: 16px; margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--slate); border-bottom: 2px solid var(--line); padding: 7px 8px; white-space: nowrap; }
td { padding: 7px 8px; border-bottom: 1px solid var(--tint); vertical-align: top; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f8f9f7; }
td.n, th.n { text-align: right; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.tools input, .tools select { border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; font-size: 13px; }
.tools input:not([type=checkbox]) { flex: 1; min-width: 180px; }
.tools input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange); padding: 0; }
.seg { display: inline-grid; grid-auto-flow: column; background: #e3e7e3; border-radius: 9px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 7px; padding: 7px 12px; font-weight: 600; font-size: 12.5px; color: var(--slate); }
.seg button.on { background: #fff; color: var(--navy); }
.note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.alert { background: var(--fail-bg); color: var(--crimson); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 500; margin-top: 8px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.plans h3 { font-size: 13px; margin-bottom: 6px; }
.scroll { overflow-x: auto; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---- shell ---- */
body { background: #f1f3f0; color: #3d4543; font-size: 15px; }
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { background: #13201f; color: #3d4543; padding: 0 12px 20px; display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; box-shadow: 0 2px 8px rgba(21, 25, 27, 0.18); }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 64px; padding: 0 8px; }
.side .brand img { height: 26px; margin: 0; align-self: center; }
.side .brand .demo-tag { align-self: center; }
#portal .pump { display: grid; gap: 8px; } #portal .pump + .pump { margin-top: 18px; } #portal .ewis-h { font-size: 13.5px; color: #66706c; margin: 8px 0 0; }
.dnav { display: grid; gap: 4px; }
.grp { font-size: 11.5px; letter-spacing: 0.6px; text-transform: uppercase; color: #66706c; padding: 16px 12px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .dnav a { display: flex; align-items: center; justify-content: flex-start; gap: 10px; height: 38px; padding: 0 12px; border-radius: 6px; color: #3d4543; font-size: 15px; font-weight: 400; text-decoration: none; }
.side .dnav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.side .dnav a:hover { background: rgba(225, 222, 245, 0.07); color: #fff; }
.side .dnav a.on { background: var(--orange); color: #fff; box-shadow: 0 3px 8px rgba(21, 25, 27, 0.14); }
.col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 12px; z-index: 15; width: calc(100% - 48px); max-width: 1100px; margin: 12px auto 0; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(21, 25, 27, 0.1); display: flex; align-items: center; gap: 4px; padding: 0 14px; min-height: 56px; }
.topbar svg { width: 18px; height: 18px; flex-shrink: 0; }
.org { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #3d4543; padding: 0 8px; white-space: nowrap; }
.org svg { color: var(--orange); }
.tb-sep { width: 1px; height: 30px; background: #e3e7e3; margin: 0 6px; }
.pick { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; padding: 0 8px; color: #3d4543; position: relative; }
.pick > svg:first-child { color: #0c6b47; }
.pick select { border: 0; background: transparent; font-weight: 500; font-size: 15px; color: #3d4543; appearance: none; -webkit-appearance: none; min-width: 0; max-width: 340px; height: 44px; padding-right: 26px; margin-right: -24px; text-overflow: ellipsis; cursor: pointer; position: relative; z-index: 1; }
.pick > svg:last-child { width: 16px; height: 16px; pointer-events: none; }
.avatar { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: #cfe9eb; color: #075560; font-weight: 600; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.burger { display: none; border: 0; background: transparent; width: 40px; height: 40px; border-radius: 8px; place-items: center; color: #3d4543; }
.burger svg { width: 22px; height: 22px; }
.scrim { display: none; }
.main { width: calc(100% - 48px); max-width: 1100px; margin: 0 auto; padding: 22px 0 60px; }
.head { margin-bottom: 14px; }
.head h1 { font-size: 22px; font-weight: 600; color: #13201f; }
.head .muted { font-size: 13.5px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip2 { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 4px; background: #e8ebe8; color: #3d4543; white-space: nowrap; }
.chip2.ok { background: #dff1e7; color: #0c6b47; } .chip2.warn { background: #cfe9eb; color: #075560; }
.chip2.tester { background: #cfe9eb; color: #075560; } .chip2.mon { background: #e8ebe8; color: #3d4543; }
.tiles { gap: 14px; margin-bottom: 14px; }
.tile { border-left: 0; border-radius: 8px; box-shadow: 0 2px 8px rgba(21, 25, 27, 0.08); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.tile::before { content: ""; width: 30px; height: 30px; border-radius: 6px; background: #cfe9eb; grid-column: 1; grid-row: 1; }
.tile.met::before { background: #dff1e7; } .tile.bad::before { background: #fbe0e5; }
.tile b { grid-column: 2; grid-row: 1; font-size: 24px; font-weight: 600; color: #13201f; text-align: right; }
.tile span { grid-column: 1 / -1; font-size: 14px; font-weight: 500; color: #13201f; }
.tile small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: -6px; }
.panel { border-radius: 8px; box-shadow: 0 2px 8px rgba(21, 25, 27, 0.08); margin-bottom: 14px; scroll-margin-top: 84px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel h2 { font-size: 17px; font-weight: 500; color: #13201f; }
.panel.regp { border-left: 0; box-shadow: 0 2px 8px rgba(21, 25, 27, 0.08), inset 4px 0 0 var(--crimson); }
th { font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: #66706c; font-weight: 600; background: #f8f9f7; border-bottom: 0; padding: 9px 12px; }
td { padding: 11px 12px; border-bottom: 1px solid #eef1ee; }
.btn.small { border-radius: 6px; }
.emptyc { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 34px 18px; }
.emptyc strong { color: #13201f; }
.main > .note { margin: -4px 4px 0; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 40; transform: translateX(-105%); transition: transform 0.2s ease; height: auto; }
  .shell.open .side { transform: none; }
  .shell.open .scrim { display: block; position: fixed; inset: 0; background: rgba(21, 25, 27, 0.5); z-index: 35; }
  .burger { display: grid; }
  .org, .tb-sep { display: none; }
  .topbar { width: calc(100% - 24px); top: 8px; margin-top: 8px; padding: 0 8px; }
  .pick { flex: 1; }
  .pick select { flex: 1; max-width: none; }
  .main { width: calc(100% - 24px); padding-top: 16px; }
  .side .dnav a { height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

.choices { display: grid; grid-template-columns: 1fr; gap: 10px; }
.choice { display: flex; width: 100%; box-sizing: border-box; font-weight: 400; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.choice.on { border-color: var(--orange); background: var(--warm); }
.choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
.choice strong { display: block; color: #13201f; font-size: 15px; } .choice span { flex: 1; } .choice small { display: block; font-weight: 400; font-size: 13.5px; color: var(--slate); margin-top: 2px; line-height: 1.45; }
.stdref { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.stdref h3 { font-size: 15px; margin: 0 0 10px; color: #13201f; } .stdref h4 { font-size: 13.5px; margin: 16px 0 6px; color: #13201f; }
.stdref dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 20px; }
.stdref dt { font-size: 12px; color: var(--muted); } .stdref dd { margin: 0; font-size: 14px; font-weight: 600; color: #13201f; }
.stdref ul { margin: 0; padding-left: 18px; } .stdref li, .stdref p { font-size: 14px; line-height: 1.5; margin: 0 0 6px; }

/* ---- TestHut look: flat, ruled, light rail ---- */
.side { background: #fff; color: var(--ink); box-shadow: none; border-right: 2px solid var(--ink); }
.side .brand { border-bottom: 1px solid var(--line); margin: 0 -12px; padding: 0 20px; }
.side .dnav a { color: var(--slate); border-radius: 4px; }
.side .dnav a:hover { background: var(--tint); color: var(--ink); }
.side .dnav a.on { background: var(--orange); color: #fff; font-weight: 600; box-shadow: none; }
.grp { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.topbar { top: 0; width: 100%; max-width: none; margin: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); padding: 0 24px; }
.org svg { color: var(--ink); } .pick > svg:first-child { color: var(--green); }
.avatar { background: var(--ink); color: #fff; border-radius: 6px; }
.head h1 { font-weight: 750; font-stretch: 108%; letter-spacing: -0.4px; font-size: 26px; }
.tile, .panel { box-shadow: none !important; border: 1px solid var(--line); border-radius: 6px; }
.tile::before { border-radius: 3px; }
.chip2 { border-radius: 3px; }
.panel.regp { border-left: 4px solid var(--crimson); }

/* ---- TestHut portal layout: header, tab row, panel bar. No side menu. ---- */
.shell { display: block; }
.hbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.bar-in { width: min(1180px, 100% - 40px); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.hbar > .bar-in { height: 58px; }
.hbar .th-logo { color: #fff; } .hbar .demo-tag { background: #fff; color: var(--ink); }
.bar-org { margin-left: auto; font-size: 14.5px; font-weight: 550; color: #d4d9d5; }
.hbar .avatar { margin-left: 0; background: var(--orange); color: #fff; }
.tabs1 { border-top: 1px solid #2a3033; }
.tabs1 .bar-in { gap: 2px; flex-wrap: wrap; }
.tabs1 a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; color: #c2c9c4; text-decoration: none; font-size: 14.5px; font-weight: 550; border-bottom: 3px solid transparent; }
.tabs1 a svg { width: 17px; height: 17px; }
.tabs1 a:hover { color: #fff; } .tabs1 a.on { color: #fff; border-bottom-color: var(--orange); }
.tabs1 .sp { flex: 1; }
.sitebar { background: #fff; border-bottom: 2px solid var(--ink); padding: 12px 0; }
.sitebar .bar-in { align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; }
.sitebar .pick { border: 2px solid var(--ink); border-radius: 4px; padding: 0 10px; flex: 0 0 auto; max-width: 100%; }
.sitebar .pick select { height: 40px; font-weight: 650; color: var(--ink); max-width: 300px; }
.secs { flex: 1 1 520px; min-width: 0; }
.secs summary { display: none; list-style: none; cursor: pointer; font-weight: 650; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 4px; padding: 0 12px; height: 44px; justify-content: space-between; }
.secs summary::-webkit-details-marker { display: none; } .secs summary svg { width: 16px; height: 16px; }
.secs .dnav { display: flex; flex-wrap: wrap; gap: 4px; }
.secs .dnav a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 4px; color: var(--slate); font-size: 14px; font-weight: 550; text-decoration: none; }
.secs .dnav a svg { width: 16px; height: 16px; }
.secs .dnav a:hover { background: var(--tint); color: var(--ink); }
.secs .dnav a.on { background: var(--orange); color: #fff; }
.main { width: min(1180px, 100% - 40px); max-width: none; padding-top: 26px; }
.panel { scroll-margin-top: 120px; }
/* figures first, no icon chip */
.tile { display: block; padding: 16px 18px 14px; border: 0 !important; border-top: 3px solid var(--ink) !important; border-radius: 0; }
.tile::before { display: none; }
.tile.met { border-top-color: var(--green) !important; } .tile.bad { border-top-color: var(--crimson) !important; }
.tile b { display: block; text-align: left; font-size: 38px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.tile span { display: block; font-size: 14.5px; font-weight: 650; } .tile small { display: block; margin-top: 2px; font-size: 13px; }
th { text-transform: none; letter-spacing: 0; font-size: 13px; background: transparent; border-bottom: 2px solid var(--ink); color: var(--ink); }
@media (max-width: 900px) {
  .bar-org { display: none; } .hbar .avatar { margin-left: auto; }
  .bar-in, .main { width: calc(100% - 28px); }
  .tabs1 a { padding: 10px 9px; font-size: 13.5px; } .tabs1 a svg { display: none; } .tabs1 .sp { flex-basis: 100%; height: 0; }
  .sitebar .pick { flex: 1 1 100%; } .sitebar .pick select { max-width: none; flex: 1; }
  .secs { flex-basis: 100%; } .secs summary { display: flex; }
  .secs .dnav { display: grid; grid-template-columns: 1fr 1fr; padding-top: 8px; } .secs .dnav a { height: 42px; }
}
.sitebar .pick svg { width: 18px; height: 18px; flex-shrink: 0; } .sitebar .pick > svg:last-child { width: 15px; height: 15px; }
.sitebar .pick > svg:first-child { color: var(--ink); }
@media (max-width: 900px) { .hbar { position: static; } }
