@font-face { font-family: "Inter"; font-weight: 700; src: url("fonts/Inter-700.ttf") format("truetype"); font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #eceff2;
  color: #14263d;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 28px 14px;
  border-bottom: 1px solid #c8d0d9;
  background: #fff;
}
.mark {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.lines { min-width: 0; flex: 1; }
.line { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; }
.sub { margin: 3px 0 0; font-size: 13px; color: #55657a; }
.sub a { color: #0d3260; text-underline-offset: 2px; white-space: nowrap; }

.buy, .primary {
  background: #f0b23a;
  color: #14263d;
  border: 1px solid #c98d1c;
  border-radius: 6px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
}
.buy:hover, .primary:hover { background: #f5c05a; }
.proprice:not(:empty)::before { content: ", "; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "sheet panel" "key panel";
  grid-template-rows: auto 1fr;
  gap: 0 24px;
  padding: 22px 28px 8px;
  align-items: start;
}
.sheet { margin: 0; min-width: 0; grid-area: sheet; }
.panel { grid-area: panel; }
.stage > .key { grid-area: key; padding: 0; }
.plan { background: #0d3260; border-radius: 4px; overflow: hidden; line-height: 0; min-height: 200px; }
.plan svg { width: 100%; height: auto; display: block; }
.plan.print { background: #fff; outline: 1px solid #c8d0d9; }
.plan.terminal { background: #090b0a; }
figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: #55657a; }
.previewtag { background: #14263d; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; }
.link { background: none; border: 0; padding: 0; color: #0d3260; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: 13px; }

.tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.tabs button { border: 1px solid #c8d0d9; background: #fff; border-radius: 5px 5px 0 0; padding: 5px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #14263d; color: #fff; border-color: #14263d; }

.panel { background: #fff; border: 1px solid #c8d0d9; border-radius: 6px; padding: 14px; }
fieldset { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
legend { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #55657a; margin-bottom: 5px; padding: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.choice.three { grid-template-columns: 1fr 1fr 1fr; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; border: 1px solid #c8d0d9; border-radius: 5px; padding: 6px 8px; font-size: 13px; text-align: center; background: #f7f8fa; line-height: 1.3; }
.choice input:checked + span { background: #14263d; color: #fff; border-color: #14263d; }
.choice input:focus-visible + span { outline: 2px solid #f0b23a; outline-offset: 1px; }
.pro-tag { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: #9a6a10; }
.choice input:checked + span .pro-tag { color: #f0b23a; }
.seedrow { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.seedrow label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #55657a; }
.seedrow input { flex: 1; min-width: 0; padding: 7px 8px; border: 1px solid #c8d0d9; border-radius: 5px; }
.dark { background: #14263d; color: #fff; border: 1px solid #14263d; border-radius: 5px; padding: 7px 11px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hint { margin: 4px 0 10px; font-size: 12px; color: #55657a; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; }
.opts label { display: flex; flex-direction: column; gap: 2px; color: #55657a; font-size: 12px; }
.opts select { padding: 5px; border: 1px solid #c8d0d9; border-radius: 5px; background: #fff; color: #14263d; font-size: 13px; }
.opts .check { flex-direction: row; align-items: center; gap: 6px; color: #14263d; font-size: 13px; margin-top: 16px; }

.exports { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e1e6eb; }
.exports button { padding: 9px 10px; border-radius: 6px; border: 1px solid #c8d0d9; background: #f7f8fa; cursor: pointer; font-weight: 600; font-size: 14px; }
.exports button.primary { background: #f0b23a; border-color: #c98d1c; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.status { min-height: 1.4em; margin: 2px 0 0; font-size: 13px; color: #55657a; }
.saved summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.saved ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }

.key, .freepro, .about, .more { padding: 8px 28px; max-width: 980px; }
.key h2, .freepro h2 { font-size: 17px; margin: 14px 0 6px; }
.key ol { margin: 0; padding-left: 26px; columns: 2 320px; column-gap: 32px; font-size: 14px; }
.key li { break-inside: avoid; margin: 0 0 5px; }
.key li b { font-weight: 700; }
.key li .note { color: #34465c; }
.key li.locked .note { color: #8a97a6; }
.keymore { font-size: 13px; color: #55657a; }

.fp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fp-cols h3 { margin: 4px 0; font-size: 14px; }
.fp-cols ul { margin: 0; padding-left: 18px; font-size: 14px; }
.big { margin-top: 12px; font-size: 16px; padding: 11px 22px; }
.small { font-size: 12px; color: #55657a; }
.allbtn { background: none; border: 0; padding: 0; color: #0d3260; text-decoration: underline; cursor: pointer; font-weight: 600; }
.about p, .more p { font-size: 14px; color: #34465c; margin: 6px 0; }
.more a { margin-right: 16px; color: #0d3260; }
.foot { padding: 18px 28px 28px; font-size: 12px; color: #55657a; border-top: 1px solid #c8d0d9; margin-top: 18px; }
.foot p { margin: 3px 0; }

dialog.pro { border: 0; border-radius: 8px; padding: 20px; max-width: 460px; width: calc(100% - 32px); color: #14263d; }
dialog.pro::backdrop { background: rgba(10, 20, 35, 0.55); }
.pro h2 { margin: 0 0 6px; font-size: 19px; }
.pro-line { font-weight: 600; margin: 0 0 8px; }
.pro ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; }
.pro .pro-small { font-size: 12px; color: #55657a; }
.pro-actions { display: grid; gap: 8px; margin: 10px 0; }
.pro-actions button { padding: 10px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.pro-actions .ghost { background: #fff; border: 1px solid #c8d0d9; }
.pro form { display: flex; gap: 6px; margin-top: 6px; }
.pro form input { flex: 1; min-width: 0; padding: 7px; border: 1px solid #c8d0d9; border-radius: 5px; }
.pro-close { float: right; background: none; border: 0; font-size: 13px; text-decoration: underline; cursor: pointer; }

@media (max-width: 820px) {
  .top { flex-wrap: wrap; padding: 12px 16px; gap: 8px 12px; }
  .lines { order: 3; flex-basis: 100%; }
  .top .buy { margin-left: auto; }
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sheet" "panel" "key"; grid-template-rows: auto; padding: 14px 16px 4px; gap: 14px; }
  .key, .freepro, .about, .more { padding: 6px 16px; }
  .foot { padding: 16px; }
  .fp-cols { grid-template-columns: 1fr; gap: 6px; }
  .key ol { columns: 1; }
}
