:root {
  --paper: #f5f3ef;
  --surface: #fffefa;
  --surface-muted: #f7f6f2;
  --ink: #18172a;
  --muted: #777486;
  --line: #e7e3dd;
  --accent: #6657df;
  --accent-dark: #5143c7;
  --accent-soft: #eeebff;
  --danger: #b94c55;
  --danger-soft: #fff0f1;
  --success: #268a66;
  --shadow: 0 28px 75px rgba(37, 33, 61, 0.1), 0 3px 10px rgba(37, 33, 61, 0.04);
  --def-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-sans: var(--def-font-family);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.home-page,
.center-page {
  position: relative;
  overflow-x: hidden;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.page-glow-one {
  top: -210px;
  right: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(194, 185, 255, 0.38), rgba(194, 185, 255, 0) 69%);
}

.page-glow-two {
  bottom: -300px;
  left: -220px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(194, 227, 214, 0.34), rgba(194, 227, 214, 0) 68%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 64px));
  height: 92px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  color: white;
  border-radius: 10px;
  background: var(--ink);
  place-items: center;
  transform: rotate(-2deg);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.header-note span,
.footer-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47af83;
  box-shadow: 0 0 0 4px rgba(71, 175, 131, 0.1);
}

.home-main {
  width: min(1240px, calc(100% - 64px));
  margin: 58px auto 0;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.1px;
}

.result-copy h1,
.single-card h1,
.note-meta h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1.08;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 13px 16px;
  color: var(--danger);
  border: 1px solid #f2cfd2;
  border-radius: 12px;
  background: var(--danger-soft);
  font-size: 13px;
  font-weight: 600;
}

.alert svg {
  width: 18px;
  height: 18px;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.85fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(219, 215, 208, 0.88);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.editor-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.panel-topline,
.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-topline {
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-title strong,
.panel-title small {
  display: block;
}

.panel-title strong {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
}

.panel-title small {
  color: #aaa6b2;
  font-size: 10px;
}

.panel-icon {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  place-items: center;
}

.panel-icon svg {
  width: 18px;
  height: 18px;
}

.character-count {
  color: #aaa6b2;
  font-family: var(--font-mono);
  font-size: 10px;
}

.editor-panel textarea {
  width: 100%;
  min-height: 430px;
  flex: 1;
  resize: none;
  padding: 31px 32px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
}

.editor-panel textarea::placeholder {
  color: #b8b4bd;
}

.editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 28px;
  color: #aaa6b2;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

kbd {
  padding: 2px 5px;
  color: #8a8693;
  border: 1px solid #dedad4;
  border-radius: 4px;
  background: #f8f7f3;
  font-family: var(--font-sans);
  font-size: 9px;
  box-shadow: 0 1px 0 #d8d4ce;
}

.settings-panel {
  padding: 27px 29px;
  border-left: 1px solid var(--line);
  background: #fbfaf7;
}

.settings-heading {
  margin: 0 0 25px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.settings-heading > svg {
  width: 18px;
  height: 18px;
  color: #9894a1;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.field-label em {
  color: #aaa6b2;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.input-shell {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dedad4;
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-shell:focus-within {
  border-color: #9f95eb;
  box-shadow: 0 0 0 3px rgba(102, 87, 223, 0.1);
}

.input-shell > svg:first-child {
  width: 16px;
  height: 16px;
  margin-right: 9px;
  color: #9995a1;
  flex: 0 0 auto;
}

.input-shell input,
.input-shell select {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}

.input-shell input::placeholder {
  color: #aaa6b2;
}

.icon-button {
  display: grid;
  padding: 5px;
  color: #9995a1;
  border: 0;
  background: transparent;
  place-items: center;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.select-shell {
  position: relative;
}

.select-shell select {
  padding-right: 24px;
  appearance: none;
}

.select-shell .select-arrow {
  position: absolute;
  right: 12px;
  width: 15px;
  height: 15px;
  color: #85818f;
  pointer-events: none;
}

.slug-shell {
  padding-left: 0;
}

.slug-prefix {
  display: grid;
  height: 100%;
  padding: 0 12px;
  color: #8d8996;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  place-items: center;
}

.slug-shell input {
  padding: 0 11px;
  font-family: var(--font-mono);
}

.field-help {
  margin: 6px 0 0;
  color: #aaa6b2;
  font-size: 9px;
}

.primary-button,
.secondary-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary-button {
  min-height: 44px;
  padding: 0 19px;
  color: white;
  border: 1px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(102, 87, 223, 0.2);
}

.primary-button:hover,
.copy-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.primary-button svg {
  width: 17px;
  height: 17px;
}

.create-button {
  width: 100%;
  margin-top: 28px;
}

.privacy-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  color: #888491;
  border: 1px solid #e7e3dd;
  border-radius: 10px;
  background: #f5f4f0;
  font-size: 9px;
  line-height: 1.55;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  color: var(--success);
  flex: 0 0 auto;
}

.privacy-note strong {
  color: #6b6774;
  font-size: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 64px));
  height: 98px;
  margin: 0 auto;
  color: #9c98a4;
  font-size: 9px;
}

.footer-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tag i {
  display: block;
  width: 6px;
  height: 6px;
}

.compact-header {
  height: 82px;
}

.subtle-link {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.subtle-link:hover,
.back-link:hover {
  color: var(--accent);
}

.result-wrap {
  display: grid;
  min-height: calc(100vh - 110px);
  padding: 42px 32px 70px;
  place-items: center;
}

.result-card {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid rgba(219, 215, 208, 0.88);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result-copy {
  padding: 52px 54px 48px;
}

.success-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  color: white;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 8px 20px rgba(38, 138, 102, 0.2);
  place-items: center;
}

.success-mark svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.result-copy h1 {
  font-size: 39px;
  letter-spacing: -2.2px;
}

.result-lead,
.single-lead {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.result-lead {
  max-width: 420px;
  margin: 14px 0 29px;
}

.share-row {
  display: flex;
  min-width: 0;
  padding: 4px;
  border: 1px solid #dedad4;
  border-radius: 11px;
  background: var(--surface-muted);
}

.share-row input {
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  text-overflow: ellipsis;
}

.copy-button {
  min-width: 84px;
  height: 38px;
  color: white;
  border: 0;
  background: var(--ink);
}

.copy-button.copied {
  background: var(--success);
}

.copy-button svg {
  width: 15px;
  height: 15px;
}

.expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 6px 9px;
  color: #787382;
  border-radius: 7px;
  background: #f1efeb;
  font-size: 9px;
  font-weight: 600;
}

.expiry-badge svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #dedad4;
  background: white;
}

.secondary-button:hover {
  border-color: #bdb7dd;
  transform: translateY(-1px);
}

.secondary-button svg {
  width: 15px;
  height: 15px;
}

.secondary-button.copied {
  color: var(--success);
  border-color: #b8ddce;
  background: #eff9f5;
}

.qr-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px 38px;
  border-left: 1px solid var(--line);
  background: #f8f7f3;
}

.qr-frame {
  position: relative;
  width: 218px;
  height: 218px;
  padding: 14px;
  border: 1px solid #e1ddd7;
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 28px rgba(42, 38, 61, 0.08);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
}

.corner-one {
  top: -4px;
  left: -4px;
  border-width: 2px 0 0 2px;
  border-radius: 5px 0 0;
}

.corner-two {
  top: -4px;
  right: -4px;
  border-width: 2px 2px 0 0;
  border-radius: 0 5px 0 0;
}

.corner-three {
  bottom: -4px;
  left: -4px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 5px;
}

.corner-four {
  right: -4px;
  bottom: -4px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 5px;
}

.qr-panel > strong {
  margin-top: 25px;
  font-size: 12px;
}

.qr-panel > span {
  margin-top: 5px;
  color: #aaa6b2;
  font-size: 9px;
}

.result-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0;
  color: #9c98a4;
  font-size: 9px;
}

.result-hint svg {
  width: 14px;
  height: 14px;
}

.single-card-wrap {
  display: grid;
  min-height: calc(100vh - 120px);
  padding: 30px 24px 80px;
  place-items: center;
}

.single-card {
  width: min(440px, 100%);
  padding: 48px;
  text-align: center;
  border: 1px solid rgba(219, 215, 208, 0.88);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.large-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 25px;
  color: var(--accent);
  border-radius: 16px;
  background: var(--accent-soft);
  place-items: center;
}

.large-icon svg {
  width: 27px;
  height: 27px;
}

.single-card h1 {
  font-size: 27px;
  letter-spacing: -1.4px;
}

.single-lead {
  margin: 13px auto 29px;
}

.single-card form {
  text-align: left;
}

.single-card .field-label {
  margin-top: 0;
}

.full-button {
  width: 100%;
  margin-top: 15px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.back-link svg {
  width: 14px;
  height: 14px;
}

.compact-alert {
  justify-content: center;
  margin-top: -10px;
  font-size: 10px;
}

.message-card .primary-button {
  margin-top: 3px;
}

.note-page {
  background: #faf9f6;
}

.small-button {
  min-height: 36px;
  padding: 0 15px;
  font-size: 10px;
  box-shadow: none;
}

.note-wrap {
  width: min(920px, calc(100% - 64px));
  margin: 65px auto 90px;
}

.note-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.note-meta h1 {
  font-size: 32px;
  letter-spacing: -1.8px;
}

.note-meta .expiry-badge {
  margin-bottom: 3px;
  white-space: nowrap;
}

.note-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.content-copy-button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 9px;
}

.note-content {
  min-height: 340px;
  padding: 42px 46px;
  overflow-wrap: anywhere;
  color: #2b2939;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(37, 33, 61, 0.06);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.burn-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #9b655b;
  font-size: 10px;
}

.burn-notice svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 900px) {
  .home-main {
    margin-top: 35px;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-card {
    grid-template-columns: 1fr;
    max-width: 590px;
  }

  .qr-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .site-header,
  .home-main,
  .site-footer {
    width: calc(100% - 36px);
  }

  .site-header {
    height: 76px;
  }

  .header-note {
    display: none;
  }

  .home-main {
    margin-top: 28px;
  }

  .composer {
    border-radius: 17px;
  }

  .panel-topline {
    min-height: 68px;
    padding: 0 19px;
  }

  .editor-panel textarea {
    min-height: 360px;
    padding: 24px 21px;
    font-size: 13px;
  }

  .editor-foot {
    padding: 0 19px;
  }

  .settings-panel {
    padding: 24px 20px;
  }

  .result-wrap {
    display: block;
    padding: 28px 18px 60px;
  }

  .result-card {
    border-radius: 18px;
  }

  .result-copy {
    padding: 38px 24px 34px;
  }

  .result-copy h1 {
    font-size: 34px;
  }

  .share-row {
    display: block;
    padding: 6px;
  }

  .share-row input {
    width: 100%;
    height: 38px;
  }

  .copy-button {
    width: 100%;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .qr-panel {
    padding: 42px 24px;
  }

  .result-hint {
    justify-content: center;
    text-align: center;
  }

  .single-card {
    padding: 38px 24px;
  }

  .note-wrap {
    width: calc(100% - 36px);
    margin-top: 40px;
  }

  .note-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .note-tools {
    justify-content: flex-start;
  }

  .note-content {
    padding: 28px 23px;
  }

  .burn-notice {
    align-items: flex-start;
    line-height: 1.6;
  }
}
