:root {
  color-scheme: light;
  font: 16px/1.6 Inter, system-ui, sans-serif;
  color: #183046;
  background: #f2f6fa;
}
* { box-sizing: border-box; }
body[data-page] { margin: 0; }
[hidden] { display: none !important; }
a { color: #195b86; }
.mast { background: #132c40; color: #fff; }
.bar {
  max-width: 1120px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #91bcda;
  border-radius: 8px;
  color: #c4e7fc;
  font: 700 14px ui-monospace, monospace;
}
.mast a { color: inherit; text-decoration: none; }
.mast nav { display: flex; flex-wrap: wrap; gap: 4px; }
.mast nav a { display: block; border-radius: 6px; padding: 5px 10px; }
.mast nav a:hover, .mast nav a[aria-current="page"] { background: #28475f; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1120px;
  padding: 38px 24px;
  margin: auto;
}
.panel { min-width: 0; padding: clamp(20px, 4vw, 34px); background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; }
.layout h1 { margin: .15em 0 .45em; line-height: 1.15; font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.035em; }
.layout h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .7em; }
.layout h3 { font-size: .94rem; margin: 18px 0 6px; }
.layout p { margin: .65em 0; }
.layout .eyebrow { color: #375e79; font-weight: 700; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.small { font-size: .88rem; color: #466277; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.layout button, .layout .primary, .layout .secondary {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 7px;
  background: #195b86;
  border: 1px solid #195b86;
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.layout button:hover, .layout .primary:hover { background: #164769; }
.layout .secondary { color: #195b86; background: #fff; }
.layout .secondary:hover { background: #edf4fa; }
.layout button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #b94d00; outline-offset: 3px; }
.product-cover { display: grid; place-items: center; min-height: 220px; margin-bottom: 24px; background: #e6f0f5; border-radius: 8px; }
.notebook {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 165px;
  width: 130px;
  padding: 12px 10px 10px 15px;
  background: #184a56;
  border-left: 8px solid #14323e;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 6px 9px 0 #b8cbd7;
  color: #fff;
}
.notebook strong { font-size: 20px; line-height: 1.12; }
.notebook small, .notebook span { font-size: 8px; letter-spacing: .08em; }
.price { font-size: 1.5rem; font-weight: 750; }
.price span { font-size: .8rem; color: #466277; }
.line-item, .total, .summary div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.line-item { flex-wrap: wrap; border-bottom: 1px solid #d6e0e8; padding: 8px 0 14px; }
.line-item h2 { margin: 0; }
.layout .total { margin: 16px 0; }
.summary { padding: 0; margin: 18px 0; }
.summary div { border-bottom: 1px solid #d6e0e8; padding: 9px 0; }
.summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.confirm-status { color: #206047; font-weight: 700; }
.layout form { display: grid; gap: 6px; margin-top: 18px; }
.layout form label { font-weight: 650; }
.layout form :is(input, select, textarea) { width: 100%; border: 1px solid #839aaa; border-radius: 6px; padding: 9px; margin-bottom: 8px; font: inherit; color: inherit; background: #fff; }
.layout textarea { resize: vertical; }
.evidence pre { margin: 0; padding: 12px; max-height: 29rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #edf3f8; border-radius: 7px; font: .82rem/1.5 ui-monospace, monospace; }
#journey-count { padding-left: 6px; color: #375e79; }
#page-status { min-height: 1.2em; }
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; }
  .bar { padding: 12px 16px; }
}

.sandbox-notice { padding: 12px 24px; background: #e5f2fb; color: #183e5b; border-bottom: 1px solid #b4d4e9; font-size: 0.94rem; line-height: 1.45; text-align: center; }
.sandbox-notice strong { color: #12344e; }

.help-page { max-width: 960px; margin: auto; padding: 38px 24px 56px; }
.help-intro { max-width: 760px; margin-bottom: 24px; }
.help-intro h1 { margin: 0 0 .35em; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.035em; line-height: 1.15; }
.help-intro p { margin: .5em 0; }
.help-eyebrow { color: #375e79; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.help-card { background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; padding: clamp(20px, 4vw, 32px); margin: 18px 0; }
.help-card h2 { margin: 0 0 .65em; font-size: 1.35rem; line-height: 1.3; }
.help-card h3 { margin: 1.2em 0 .4em; font-size: 1.1rem; }
.help-card p { margin: .75em 0; }
.help-card li { margin: .65em 0; }
.help-card code { overflow-wrap: anywhere; }
@media (max-width: 760px) { .help-page { padding: 26px 16px 40px; } }
