:root {
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: #202b40;
  background: #f6f7f9;
  font-synthesis: none;
  color-scheme: light;
  --blue: #2563eb;
  --border: #e1e5ec;
  --muted: #67748b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,input,select,textarea {
  font: inherit;
}
button,a,select,input {
  touch-action: manipulation;
}
button,select {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: .4;
}
a[aria-disabled=true] {
  pointer-events: none;
  opacity: .4;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 3px solid #93b4ff;
  outline-offset: 3px;
}
button,select,input {
  border-radius: 7px;
}
button {
  background: transparent;
}
button:hover:not(:disabled),.text-button:hover {
  color: #1d4ed8;
}
select,input {
  min-width: 0;
}
.site-header {
  max-width: 1440px;
  margin: auto;
  padding: 24px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.7px;
}
.brand-label {
  margin-left: 9px;
  padding: 4px 7px;
  background: #e9edf3;
  color: #61708a;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.1px;
  border-radius: 4px;
}
.source-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  gap: 14px;
  align-items: center;
}
.source-link span {
  font-size: 19px;
  color: var(--muted);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 42px;
}
.intro {
  padding: 46px 0 33px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 700;
  color: #64718a;
  margin: 0 0 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
h1 {
  font-size: clamp(29px,3.1vw,44px);
  letter-spacing: -1.8px;
  line-height: 1.15;
  font-weight: 650;
  margin: 0;
}
h1 span {
  color: #7b879a;
}
.lede {
  margin: 13px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.privacy-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  flex-shrink: 0;
}
.privacy-note svg {
  color: #4e7890;
}
.privacy-note strong,.privacy-note span {
  display: block;
}
.privacy-note strong {
  font-size: 12px;
  font-weight: 600;
}
.privacy-note span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.settings {
  background: white;
  display: flex;
  align-items: end;
  gap: 15px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px #18284a03;
}
.settings>label {
  display: grid;
  gap: 8px;
  flex: 1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .25px;
  color: var(--muted);
}
.settings select,.filename-input {
  height: 38px;
  background: #fff;
  border: 1px solid #dce1e8;
  padding: 0 10px;
  width: 100%;
  font-size: 12px;
  color: #2a3548;
  font-weight: 450;
  letter-spacing: 0;
}
.filename-field {
  flex: 1.35!important;
}
.filename-input {
  display: flex;
  align-items: center;
  border-radius: 7px;
  padding-right: 10px;
}
.filename-input input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  outline-offset: 3px;
}
.filename-input>span {
  color: #8c96a8;
  font-size: 11px;
}
.button {
  border: 1px solid var(--border);
  height: 39px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 4px #2563eb25;
}
.primary:hover:not(:disabled) {
  color: #fff;
  background: #1d4ed8;
}
.button kbd {
  font: 10px inherit;
  background: #ffffff20;
  border: 1px solid #ffffff25;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 7px;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-width: 0;
}
.panel {
  min-width: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 5px #17274503;
}
.panel-heading {
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 650;
  margin: 0;
  white-space: nowrap;
}
.panel-icon,h2 svg {
  color: #8793a8;
}
.panel-icon {
  font: 14px ui-monospace,SFMono-Regular,monospace;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.panel-actions>select {
  max-width: 136px;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: var(--muted);
  padding: 6px 3px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  padding: 7px 0;
  font-size: 11px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.text-button>span {
  font-size: 17px;
  font-weight: 400;
}
.download {
  color: var(--blue);
}
.editor-wrap {
  display: flex;
  height: 510px;
  position: relative;
  background: #fcfcfd;
  min-width: 0;
}
.line-numbers {
  flex: none;
  width: 47px;
  padding: 22px 9px 22px 0;
  text-align: right;
  font: 11px/22px ui-monospace,SFMono-Regular,Consolas,monospace;
  white-space: pre;
  color: #b2bac8;
  overflow: hidden;
  user-select: none;
}
textarea {
  width: 100%;
  height: 100%;
  min-width: 0;
  resize: none;
  border: 0;
  background: transparent;
  padding: 22px 18px 22px 8px;
  font: 11px/22px ui-monospace,SFMono-Regular,Consolas,monospace;
  tab-size: 2;
  color: #344d70;
  outline: none;
  overflow: auto;
}
textarea:focus-visible {
  box-shadow: inset 0 0 0 2px #93b4ff;
}
.panel-footer {
  min-height: 38px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: #8390a5;
  background: #fff;
}
.panel-footer>span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.code-dot {
  width: 5px;
  height: 5px;
  background: #e3a567;
  border-radius: 50%;
}
.preview-surface {
  height: 510px;
  background: #edf0f4;
  overflow: auto;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  position: relative;
  background-image: radial-gradient(#d8dfe8 .7px,transparent .7px);
  background-size: 10px 10px;
}
.preview-surface canvas {
  display: block;
  flex: none;
  max-width: none;
  background: white;
  box-shadow: 0 3px 15px #1f2e4b18;
  margin: 0 auto;
}
.preview-placeholder {
  margin: auto;
  text-align: center;
  color: #8b98ad;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px;
}
.preview-placeholder strong {
  color: #64748b;
  font-size: 14px;
  font-weight: 550;
}
.preview-placeholder>span {
  font-size: 11px;
}
.paper-icon {
  width: 48px;
  height: 61px;
  border: 1px solid #c3cbd7;
  border-radius: 3px;
  transform: rotate(-7deg);
  background: #ffffff70;
  padding: 18px 10px;
  margin-bottom: 8px;
}
.paper-icon span {
  display: block;
  height: 2px;
  background: #c3cbd7;
  margin-bottom: 7px;
}
.paper-icon span:last-child {
  width: 65%;
}
.badge {
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef2f6;
  color: #718098;
  white-space: nowrap;
}
.badge.ready {
  color: #217054;
  background: #e9f5ed;
}
.badge.stale {
  color: #9a6a1b;
  background: #fff4df;
}
.badge.busy {
  color: #2563eb;
  background: #edf3ff;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pagination>button {
  border: 0;
  font-size: 19px;
  line-height: 22px;
  width: 25px;
  height: 28px;
}
.pagination>span {
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.zoom-control select {
  background: transparent;
  border: 0;
  color: #738096;
  font-size: 10px;
  width: 76px;
}
.workspace-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 2px;
}
.advanced {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 11px;
  color: #61718a;
}
.advanced label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.advanced input {
  accent-color: var(--blue);
  margin: 0;
  width: 13px;
  height: 13px;
}
#status {
  font-size: 11px;
  margin: 0;
  color: #7e8ca2;
  text-align: right;
}
.error {
  padding: 14px 17px;
  background: #fff0f0;
  color: #a43838;
  border: 1px solid #f0cece;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
}
.replace-confirm {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff7e8;
  padding: 10px 18px;
  border: 1px solid #ead7b4;
  border-radius: 8px;
  margin-bottom: 16px;
}
.replace-confirm p {
  font-size: 12px;
  flex: 1;
}
.details {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 42px;
  border-top: 1px solid var(--border);
  padding: 31px 2px 20px;
  margin-top: 21px;
}
.details>div {
  position: relative;
  padding-left: 32px;
}
.feature-index {
  position: absolute;
  left: 0;
  top: 2px;
  color: #9da9bc;
  font: 10px ui-monospace,monospace;
}
.details h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 8px;
}
.details p {
  font-size: 11px;
  color: #7b889d;
  line-height: 1.8;
  max-width: 320px;
  margin: 0;
}
.details a {
  color: #5f7292;
  text-underline-offset: 3px;
}
.limitations {
  font-size: 11px;
  color: #7b889d;
  padding: 8px 2px 25px;
  line-height: 1.8;
}
.limitations summary {
  cursor: pointer;
  width: fit-content;
}
.limitations p {
  max-width: 900px;
}
.site-footer {
  max-width: 1440px;
  margin: auto;
  padding: 20px 42px 26px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: #8d99ac;
}
.footer-dot {
  margin: 0 12px;
  color: #bdc5d1;
}
.drop-overlay {
  display: none;
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--blue);
  border-radius: 7px;
  background: #eff5fff2;
  color: var(--blue);
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 14px;
}
.dragging .drop-overlay {
  display: flex;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none!important;
}
@media(min-width:1500px) {
  .editor-wrap,.preview-surface {
    height: 580px;
  }
}
@media(max-width:1100px) {
  .privacy-note {
    display: none;
  }
  .settings {
    gap: 10px;
  }
  .button kbd {
    display: none;
  }
  .panel-heading {
    padding: 0 12px;
  }
  .panel-actions {
    gap: 8px;
  }
  .panel-actions>select {
    max-width: 112px;
  }
  .badge {
    display: none;
  }
}
@media(max-width:800px) {
  main {
    padding: 0 22px;
  }
  .site-header {
    padding: 20px 22px;
  }
  .intro {
    padding-top: 34px;
  }
  .settings {
    flex-wrap: wrap;
  }
  .settings>label {
    flex-basis: 25%;
  }
  .filename-field {
    flex-basis: 55%!important;
  }
  .settings .primary {
    flex: 1;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .editor-wrap {
    height: 360px;
  }
  .preview-surface {
    height: 520px;
  }
  .badge {
    display: inline-block;
  }
  .details {
    gap: 20px;
  }
  .details>div {
    padding-left: 0;
  }
  .feature-index {
    position: static;
    display: block;
    margin-bottom: 10px;
  }
  .site-footer {
    padding: 20px 22px;
  }
  .workspace-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  #status {
    text-align: left;
  }
}
@media(max-width:480px) {
  main {
    padding: 0 14px;
  }
  .site-header {
    padding: 17px 14px;
  }
  .brand-label {
    display: none;
  }
  .source-link {
    font-size: 11px;
    gap: 6px;
  }
  .intro {
    padding: 30px 0 25px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -1.2px;
  }
  h1 span {
    display: block;
    margin-top: 3px;
  }
  .lede {
    font-size: 12px;
    max-width: 290px;
  }
  .settings {
    padding: 13px;
    gap: 13px 9px;
  }
  .settings>label {
    flex-basis: 42%;
  }
  .filename-field {
    flex-basis: 42%!important;
  }
  .settings .primary {
    flex-basis: 100%;
  }
  .panel-heading {
    height: 55px;
    padding: 0 11px;
  }
  h2 {
    font-size: 11px;
    gap: 6px;
  }
  .panel-actions>select {
    max-width: 105px;
    font-size: 10px;
  }
  .text-button {
    font-size: 10px;
  }
  .preview-surface {
    height: 440px;
    padding: 18px;
  }
  .details {
    grid-template-columns: 1fr;
    gap: 23px;
    padding-top: 27px;
  }
  .details>div {
    padding-left: 29px;
  }
  .feature-index {
    position: absolute;
  }
  .details p {
    max-width: none;
  }
  .site-footer {
    padding: 20px 14px;
  }
  .site-footer>span:last-child {
    display: none;
  }
  .replace-confirm {
    flex-wrap: wrap;
    gap: 7px 16px;
  }
  .replace-confirm p {
    flex-basis: 100%;
  }
}
