/* A shared alignment grid and a quieter first screen. */
:root { --desktop: #008080; --title-end: #147ec0; }
.taskbar { height: 42px; align-items: center; }
.taskbar .brand, .taskbar .nav-button, .tools select { height: 34px; }
.brand { padding: 0 12px; font-size: 14px; }
.taskbar nav, .tools { height: 34px; }
.taskbar .nav-button { display: flex; align-items: center; justify-content: center; }
.tools { align-items: center; }
.language-picker { position: relative; display: flex; flex: none; width: 124px; height: 34px; }
.tools select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 26px 0 33px;
  line-height: normal;
  text-align: left;
  text-indent: 0;
}
.language-globe {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  stroke-width: 1.8;
}
.language-chevron {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  stroke-width: 1.5;
}
.hero h1 { margin-top: 22px; margin-bottom: 20px; }
.hero h1>span[data-i] { margin-top: 0; }
.lead { max-width: 455px; line-height: 1.8; }
.features { margin-top: 34px; gap: 13px; }
.features li { font-weight: 600; }
.check-box { width: 25px; height: 25px; }
.window-body { padding: 16px 16px 18px; }
.titlebar { height: 30px; }
.window-buttons { align-items: center; gap: 4px; flex: none; }
.window-buttons i { display: grid; place-items: center; height: 20px; width: 20px; line-height: 0; }
.window-buttons svg { display: block; width: 12px; height: 12px; stroke-width: 1.5; }
.stepper { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.stepper li { min-width: 0; gap: 8px; flex: initial; align-items: center; }
.stepper li:last-child { flex: initial; }
.stepper b { width: 27px; height: 27px; }
.stepper li>span { white-space: nowrap; }
.stepper li:not(:last-child)::after { min-width: 8px; }
.rule { margin: 14px 0 22px; }
.pane, .pane>label, .label-line, .actions, input.cdk-input, textarea, .primary { max-width: 100%; }
.pane>label { margin-bottom: 12px; }
.pane>input, .pane>textarea, .pane>.primary { margin-left: 0; margin-right: 0; width: 100%; }
#code-form .primary { margin-top: 27px; height: 48px; }
#code-form .hint { margin-top: 11px; }
#plan-cancel { display: block; margin: 12px auto 0; font-size: 12px; }
.plan-notice { padding: 12px; margin: -5px 0 18px; border-left: 3px solid var(--navy); background: var(--light); }
.plan-banner { flex-wrap: wrap; }
.plan-banner strong { overflow-wrap: anywhere; }
.plan-banner .small-tag { flex-shrink: 0; }
.code-helper { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.code-helper .text-button { font-size: 12px; white-space: nowrap; }
.query-row { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 12px; padding: 15px; }
.query-row-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; min-width: 0; }
.query-row code { min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.query-row .query-status { display: grid; gap: 5px; text-align: right; overflow-wrap: anywhere; flex-shrink: 1; min-width: 90px; }
.query-status strong { font-size: 12px; font-weight: 600; }
.query-status small { font-size: 11px; line-height: 1.5; }
.query-metadata { display: grid; gap: 10px; margin: 0; padding-top: 12px; border-top: 1px dotted #a1a1a1; text-align: left; }
.query-metadata>div { display: grid; grid-template-columns: minmax(108px, .8fr) minmax(0, 1.7fr); gap: 12px; align-items: baseline; }
.query-metadata dt { color: var(--muted); font-size: 12px; line-height: 1.6; }
.query-metadata dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; color: var(--text); font-variant-numeric: tabular-nums; }
@media(max-width:440px) { .query-metadata>div { grid-template-columns: 1fr; gap: 3px; } }
#query-notice { font-size: 12px; line-height: 1.7; margin-top: 16px; }
#query-cancel { display: block; margin: 14px auto 0; }
#query-cancel[hidden] { display: none; }
.actions { display: grid; grid-template-columns: minmax(90px,.75fr) minmax(0,2fr); align-items: stretch; }
.actions>button { width: 100%; min-width: 0; min-height: 46px; margin: 0; }
.tutorial-media { margin: 20px 0 22px; }
.tutorial-media figcaption { margin-bottom: 10px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.tutorial-video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; padding: 2px; background: #000; object-fit: contain; }
.tutorial-media .hint { font-size: 12px; margin-top: 10px; }
.tutorial-open { display: inline-block; margin-top: 8px; padding: 3px 0; font-size: 12px; text-underline-offset: 3px; }
.guide-steps { padding: 14px 0; border-top: 1px solid var(--shadow); border-bottom: 1px solid var(--hi); }
.guide-steps summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.guide-steps .guide-list { margin-bottom: 0; }
#guide-view>.primary { margin-top: 20px; }
footer { margin: 54px auto 40px; font-size: 13px; }
.purchase-guide { width: min(100%, 600px); margin: 0 auto 30px; }
.purchase-guide h2 { margin: 0 0 16px; color: #e4eeee; font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: 1px; }
.purchase-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.purchase-link { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 48px; padding: 12px 10px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.4; }
.purchase-link.buy-link { color: var(--navy); font-weight: 700; }
.purchase-link svg { width: 18px; height: 18px; }
.contact-dot { flex: none; width: 7px; height: 7px; background: #428364; }
.purchase-link:hover { background: var(--light); }
.purchase-link:active { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--deep), inset -2px -2px var(--light), inset 2px 2px var(--shadow); }
.footer-line { margin: 0; }
.preview-controls { width: fit-content; max-width: 100%; margin: 13px auto 0; font-size: 11px; color: #b4d6d6; }
.preview-controls summary { cursor: pointer; padding: 5px; list-style-position: inside; }
.preview-controls summary:hover { color: #fff; }
.preview-content { margin-top: 8px; padding: 12px 18px; border: 1px solid #b4d6d64d; }
.preview-content>p { margin: 0; font-size: 11px; }
.preview-content button { color: #ecf6f6; }
.preview-content .demo-toolbar { gap: 16px; margin: 10px 0 4px; }
.preview-actions { display: flex; gap: 20px; justify-content: center; }
@media(max-width:760px) {
  .taskbar { height: auto; }
  .taskbar nav { height: 34px; }
  .taskbar .brand { font-size: 13px; padding: 0 10px; gap: 7px; }
  .tools { height: 34px; }
  .language-picker { width: 116px; }
  main { margin-top: 28px; gap: 27px; }
  .hero h1 { margin: 17px 0 16px; }
  .lead { font-size: 15px; }
  .features { margin-top: 23px; gap: 10px; }
  .features li { font-size: 12px; }
  .check-box { width: 23px; height: 23px; }
  .window-body { padding: 15px 14px 17px; }
  .stepper { gap: 7px; }
  .stepper b { width: 25px; height: 25px; }
  .stepper li { gap: 6px; font-size: 11px; }
  .stepper li:not(:last-child)::after { min-width: 0; }
  .rule { margin: 15px 0 21px; }
  input.cdk-input { font-size: 15px; letter-spacing: .6px; }
  .actions { grid-template-columns: minmax(76px,.7fr) minmax(0,2fr); }
  .actions>button { padding: 12px 10px; font-size: 13px; }
  footer { margin: 32px auto 30px; font-size: 11px; }
}
@media(max-width:360px) {
  .stepper { gap: 5px; }
  .stepper li { gap: 4px; font-size: 10px; }
  .stepper b { width: 23px; height: 23px; }
  .taskbar .brand { font-size: 12px; padding: 0 8px; }
}
@media(max-width:440px) {
  .purchase-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .purchase-link.buy-link { grid-column: 1 / -1; }
  .purchase-guide { margin-bottom: 25px; }
}
