:root {
  color-scheme: light;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  color: #173042;
  background: #f5f3ee;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: #1f6b78; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #f0a95b;
  outline-offset: 3px;
}
.site-header {
  min-height: 82px;
  padding: 14px max(26px, calc((100vw - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid #dedfd8;
  display: flex;
  align-items: center;
  gap: 38px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  color: #153746;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -.5px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  padding: 7px;
  background: #153746;
  border-radius: 12px;
  transform: rotate(-3deg);
}
.brand-mark i { display: block; width: 6px; border-radius: 8px; }
.brand-mark i:nth-child(1) { height: 14px; background: #f2aa59; }
.brand-mark i:nth-child(2) { height: 23px; background: #58c4ae; }
.brand-mark i:nth-child(3) { height: 18px; background: #7e93e7; }
nav { display: flex; gap: 25px; margin-left: 14px; }
nav a { color: #53686f; font-size: 13px; font-weight: 650; }
.public-badge {
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid #cddbd6;
  border-radius: 999px;
  background: #edf6f2;
  color: #326e61;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #dfeee9;
  color: #1e6b63;
  font-weight: 750;
}
.text-button { padding: 4px; border: 0; background: transparent; color: #687b82; cursor: pointer; font-size: 12px; }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 76px; min-height: calc(100vh - 145px); }
.eyebrow {
  margin: 0 0 12px;
  color: #5b7c84;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 1.8px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; color: #173747; font-size: clamp(38px, 5vw, 62px); line-height: 1.03; letter-spacing: -2.4px; max-width: 820px; }
h2 { margin: 0; color: #1d3947; font-size: 23px; line-height: 1.25; letter-spacing: -.55px; }
h3 { color: #1d3947; }
p { line-height: 1.7; }
.lead { color: #60737a; font-size: 17px; max-width: 710px; }
.muted { color: #74848a; }
.small { font-size: 11px; }
.panel {
  background: #fff;
  border: 1px solid #ddded7;
  border-radius: 18px;
  box-shadow: 0 12px 32px #19384608;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 19px;
  border: 1px solid #163b52;
  border-radius: 8px;
  background: #163b52;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.button:hover { background: #214e68; text-decoration: none; }
.button.secondary { background: #fff; color: #365c69; border-color: #cad3d3; }
.button.danger { background: #fff7f3; border-color: #e7cbc1; color: #9d5b45; }
.button:disabled { opacity: .65; cursor: wait; }
.full-width { width: 100%; }
.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  padding: 20px 0 57px;
}
.page-hero .button { white-space: nowrap; margin-bottom: 5px; }
.page-heading { margin-bottom: 34px; }
.page-heading.narrow { max-width: 810px; margin-bottom: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { font-size: 27px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.card-summary { padding: 29px 29px 25px; position: relative; overflow: hidden; min-height: 248px; }
.summary-accent { position: absolute; inset: 0 0 auto; height: 7px; }
.accent-0 { background: linear-gradient(90deg, #f0a95b, #efc582); }
.accent-1 { background: linear-gradient(90deg, #50b9a7, #87d0c2); }
.accent-2 { background: linear-gradient(90deg, #6f83d7, #9da7de); }
.summary-meta { display: flex; justify-content: space-between; color: #718087; font-size: 11px; margin-bottom: 30px; }
.card-summary h2 { max-width: 410px; font-size: 26px; }
.card-summary p { min-height: 50px; }
.card-link { display: inline-flex; gap: 9px; align-items: center; margin-top: 15px; font-size: 13px; font-weight: 750; }
.empty-state { padding: 34px; grid-column: 1 / -1; }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 25px; align-items: start; }
.composer, .guide-card { padding: 28px; }
label { display: block; margin: 0 0 9px; font-weight: 700; font-size: 12px; color: #344f5a; }
input, textarea {
  width: 100%;
  color: #193645;
  border: 1px solid #cbd4d3;
  border-radius: 8px;
  background: #fff;
  padding: 12px 13px;
}
textarea { resize: vertical; line-height: 1.55; font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.label-row label { margin-bottom: 9px; }
.form-actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 5px; }
.guide-card { position: sticky; top: 110px; }
.guide-card p { color: #66787e; }
.check-list { list-style: none; margin: 24px 0; padding: 0; }
.check-list li { position: relative; padding-left: 24px; margin: 14px 0; color: #5d7178; font-size: 13px; line-height: 1.55; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #50b9a7; box-shadow: 0 0 0 4px #e3f3ef; }
.text-link { font-weight: 700; font-size: 13px; }
.document-wrap { max-width: 930px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 35px; color: #667a81; font-size: 12px; font-weight: 700; }
.document-heading { margin-bottom: 33px; }
.document-heading h1 { font-size: clamp(38px, 5vw, 58px); }
.byline { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: #718187; font-size: 12px; }
.byline .avatar { width: 30px; height: 30px; }
.sanitized-card { padding: clamp(24px, 6vw, 65px); }
.sanitized-card > :first-child { margin-top: 0; }
.sanitized-card h2, .sanitized-card h3 { margin-top: 34px; }
.sanitized-card p, .sanitized-card li, .sanitized-card blockquote { color: #475f69; }
.sanitized-card svg { display: block; width: 100%; height: auto; max-width: 100%; margin: 32px 0; }
.sanitized-card svg a { cursor: pointer; }
.sanitized-card pre { overflow-x: auto; padding: 18px; border-radius: 9px; background: #edf2f1; }
.sanitized-card blockquote { margin: 26px 0; padding: 4px 0 4px 23px; border-left: 4px solid #73b9aa; font-size: 17px; }
.sanitized-card code { color: #326a78; }
.document-actions { display: flex; justify-content: flex-end; }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.policy-grid .panel { padding: 29px; }
.policy-grid p, .policy-note p { color: #63777e; }
.policy-number { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #e6f0ee; color: #2b756c; font-weight: 800; font-size: 11px; margin-bottom: 24px; }
.policy-grid code { display: block; color: #496b75; font-size: 11px; line-height: 1.65; padding: 13px; border-radius: 8px; background: #f2f5f3; }
.policy-note { margin-top: 20px; padding: 29px; }
.notice { padding: 14px 17px; border: 1px solid #d3e0df; border-radius: 8px; background: #edf5f3; color: #477169; line-height: 1.55; }
.notice.error { color: #925846; background: #fff3ee; border-color: #efd2c7; }
main > .notice { margin-bottom: 25px; }
.error-panel { max-width: 650px; margin: 50px auto; padding: 35px; }
footer { min-height: 63px; display: flex; justify-content: center; gap: 12px; padding: 20px 24px; border-top: 1px solid #dedfd8; color: #809097; font-size: 11px; }
@media (max-width: 850px) {
  .site-header { gap: 18px; flex-wrap: wrap; position: static; }
  nav { order: 3; width: 100%; margin: 0; }
  .public-badge { margin-left: auto; }
  main { width: min(100% - 32px, 1180px); padding-top: 34px; }
  .page-hero { display: grid; padding-top: 12px; }
  .page-hero .button { justify-self: start; }
  .card-grid, .composer-grid, .policy-grid { grid-template-columns: 1fr; }
  .guide-card { position: static; }
}
@media (max-width: 540px) {
  .site-header { padding: 15px 18px; }
  nav { gap: 16px; }
  nav a { font-size: 12px; }
  h1 { font-size: 39px; letter-spacing: -1.5px; }
  main { width: calc(100% - 28px); }
  .panel { border-radius: 13px; }
  .composer, .guide-card, .card-summary { padding: 22px; }
  .sanitized-card { padding: 23px; }
  .policy-grid .panel, .policy-note { padding: 23px; }
  footer { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
}
