:root {
  --navy: #102a43;
  --blue: #1f5f8b;
  --teal: #2a7f7f;
  --teal-dark: #206565;
  --surface: #ffffff;
  --background: #f4f7fa;
  --text: #243b53;
  --muted: #627d98;
  --border: #d9e2ec;
  --success: #2f855a;
  --warning: #9c6515;
  --error: #c53030;
  --shadow: 0 14px 42px rgba(16, 42, 67, 0.08);
  --radius: 12px;
  --content: 1120px;
  --form-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.viewport-page,
.home-page {
  display: flex;
  height: 100svh;
  overflow: hidden;
  flex-direction: column;
}

.viewport-page > .site-header,
.home-page > .site-header {
  flex: 0 0 auto;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 420px;
  background:
    radial-gradient(circle at 78% 0%, rgba(42, 127, 127, 0.08), transparent 30%),
    linear-gradient(180deg, #edf4f7 0%, rgba(244, 247, 250, 0) 100%);
  content: "";
  pointer-events: none;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(42, 127, 127, 0.34);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgba(217, 226, 236, 0.84);
  background: rgba(244, 247, 250, 0.9);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content));
  min-height: 76px;
  margin-inline: auto;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 38px;
  place-items: center;
  overflow: visible;
  border: 2px solid var(--navy);
  border-radius: 5px 5px 8px 5px;
  background: #fff;
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.brand-mark::before {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--navy);
  border-left: 2px solid var(--navy);
  background: var(--background);
  content: "";
}

.brand-mark::after {
  position: absolute;
  right: -12px;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 7px 0 0 rgba(42, 127, 127, 0.52), 13px 0 0 rgba(42, 127, 127, 0.22);
  content: "";
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(31, 95, 139, 0.07);
  color: var(--blue);
}

.nav-links .nav-cta {
  padding-inline: 17px;
  background: var(--navy);
  color: #fff;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta[aria-current="page"] {
  background: #183f61;
  color: #fff;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.narrow {
  max-width: var(--form-width);
}

.hero {
  padding: 72px 0 30px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  background: var(--teal);
  content: "";
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 820px;
  margin-right: auto;
  margin-bottom: 22px;
  margin-left: auto;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 760;
}

h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
}

h3 {
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 710px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.18rem);
}

.home-main {
  min-height: 0;
  padding: 0;
  flex: 1 1 auto;
}

.home-workspace {
  display: grid;
  height: 100%;
  min-height: 0;
  align-items: center;
  grid-template-areas: "intro create";
  grid-template-columns: minmax(0, 0.82fr) minmax(540px, 1.18fr);
  gap: clamp(44px, 6vw, 86px);
}

.home-intro {
  grid-area: intro;
  padding: 32px 0 54px;
}

.home-intro h1 {
  max-width: 560px;
  margin: 0 0 20px;
  font-size: clamp(2.55rem, 4.1vw, 3.65rem);
  line-height: 1.08;
}

.home-intro .hero-copy {
  max-width: 520px;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.62;
}

.home-benefits {
  display: grid;
  margin: 28px 0 24px;
  padding: 0;
  gap: 9px;
  color: #486581;
  font-size: 0.94rem;
  font-weight: 620;
  list-style: none;
}

.home-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-benefits span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e4f3ef;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 850;
  place-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.landing-ad {
  width: 100%;
  min-height: 64px;
  max-width: 420px;
  margin: 12px 0 0;
}

.mobile-landing-ad {
  display: none;
}

.home-create {
  width: 100%;
  padding-block: 34px;
  grid-area: create;
}

.home-create .form-card {
  max-width: none;
  margin: 0;
  padding: 27px 30px 25px;
}

.home-create .form-intro {
  align-items: center;
  margin-bottom: 20px;
}

.home-create .form-intro h2 {
  margin-bottom: 2px;
  font-size: 1.28rem;
}

.home-create .form-intro p {
  font-size: 0.86rem;
}

.home-create .field-group {
  margin-bottom: 17px;
}

.home-create .field-label-row {
  margin-bottom: 6px;
}

.home-create label {
  font-size: 0.94rem;
}

.home-create input {
  min-height: 46px;
  padding: 10px 13px;
}

.home-create textarea {
  min-height: 205px;
  padding: 12px 13px;
}

.home-create .field-help,
.home-create .field-error,
.home-create .field-meta {
  margin-top: 5px;
  font-size: 0.78rem;
}

.home-create .button {
  min-height: 48px;
}

.home-create .trust-line {
  margin-top: 8px;
  font-size: 0.79rem;
}

.home-secondary {
  display: grid;
  align-items: stretch;
  padding: 20px 0 56px;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
}

.home-secondary .ad-slot {
  width: 100%;
  max-width: none;
  min-height: 88px;
  margin: 0;
}

.home-page .site-footer {
  display: none;
}

.viewer-page > .site-footer,
.flow-page > .site-footer {
  display: none;
}

.viewer-main,
.flow-page > .page-main {
  min-height: 0;
  flex: 1 1 auto;
}

.viewer-main {
  padding: 16px 0;
}

.viewer-container {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.viewer-with-ads {
  display: grid;
  width: min(calc(100% - 32px), 1740px);
  margin-inline: auto;
  align-items: stretch;
  justify-content: center;
  grid-template-columns: clamp(120px, 14vw, 260px) minmax(0, var(--content)) clamp(160px, 18vw, 320px);
  gap: 20px;
}

.viewer-center {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  flex: 1 1 auto;
}

.viewer-solo {
  width: 100%;
  height: 100%;
}

.viewer-page .ad-rail {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(237, 244, 247, 0.74));
}

.viewer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 28px;
}

.viewer-heading .eyebrow {
  margin-bottom: 3px;
}

.viewer-heading h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.viewer-heading > p {
  max-width: 470px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.viewer-card {
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  flex: 1 1 auto;
}

.viewer-layout {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 230px minmax(0, 1fr);
}

.viewer-tabs {
  display: flex;
  min-height: 0;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: #f8fafc;
  flex-direction: column;
  gap: 4px;
}

.viewer-tab {
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #486581;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 670;
  text-align: left;
}

.viewer-tab:hover {
  background: #edf3f7;
  color: var(--navy);
}

.viewer-tab[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
}

.viewer-content {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 22px 26px 16px;
  flex-direction: column;
}

.viewer-select-label {
  display: none;
}

.viewer-panels {
  min-height: 0;
  flex: 1 1 auto;
}

.viewer-panel {
  height: 100%;
  min-height: 0;
  outline: none;
}

.viewer-panel[hidden] {
  display: none;
}

.viewer-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.viewer-panel h3 {
  margin-bottom: 5px;
  font-size: 0.96rem;
}

.viewer-panel p,
.viewer-panel li {
  color: #3e566d;
  font-size: clamp(0.82rem, 1.25vw, 0.94rem);
  line-height: 1.5;
}

.viewer-panel p {
  margin: 0 0 12px;
}

.viewer-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 32px;
}

.viewer-panel li {
  margin-bottom: 7px;
  break-inside: avoid;
}

.viewer-panel .principle-grid,
.viewer-panel .transparency-meta {
  margin: 16px 0;
}

.viewer-panel .principle,
.viewer-panel .meta-item {
  padding: 14px;
}

.viewer-panel .table-wrap {
  margin: 12px 0;
}

.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.viewer-controls span {
  min-width: 54px;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.compact-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.compact-steps li {
  display: flex;
  align-items: flex-start;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f8fafc;
  gap: 13px;
}

.compact-steps > li > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  place-items: center;
}

.compact-steps strong {
  color: var(--navy);
}

.compact-steps p {
  margin: 2px 0 0;
}

.flow-page > .page-main {
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.flow-page > .page-main > .container {
  max-height: 100%;
}

.flow-page .status-card {
  padding: 25px 30px;
}

.flow-page .status-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.flow-page .status-card h1 {
  margin-bottom: 7px;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
}

.flow-page .status-lead {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.flow-page .status-list {
  margin: 13px 0;
}

.flow-page .status-list li {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.82rem;
}

.flow-page .status-list li::before {
  top: 11px;
}

.flow-page .notice {
  margin: 12px 0;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.flow-page .profile-panel {
  margin: 12px 0;
  padding: 12px;
}

.flow-page .ad-slot {
  min-height: 34px;
  margin-top: 8px;
  font-size: 0.62rem;
}

.note-flow-page > .page-main > .container {
  height: 100%;
}

.note-flow-page .note-shell {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.note-flow-page .note-toolbar {
  margin-bottom: 8px;
}

.note-flow-page .note-panel {
  min-height: 0;
  padding: 20px 25px;
  overflow: hidden;
  flex: 1 1 auto;
}

.note-flow-page .note-text {
  font-size: clamp(0.96rem, 1.7vw, 1.12rem);
  line-height: 1.6;
}

.note-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  gap: 12px;
}

.note-pagination span {
  min-width: 82px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.note-flow-page .note-actions {
  margin-top: 8px;
}

.note-flow-page .deletion-time {
  margin-top: 7px;
  font-size: 0.76rem;
}

.card {
  border: 1px solid rgba(217, 226, 236, 0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-card {
  max-width: var(--form-width);
  margin: 24px auto 0;
  padding: clamp(24px, 5vw, 42px);
}

.form-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 24px;
}

.form-intro h2 {
  margin-bottom: 7px;
  font-size: 1.42rem;
}

.form-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #c7e4dc;
  border-radius: 999px;
  background: #f0faf7;
  color: #276749;
  font-size: 0.78rem;
  font-weight: 750;
}

.field-group {
  margin-bottom: 25px;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 16px;
}

label,
.label {
  color: var(--navy);
  font-weight: 720;
}

.optional {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 550;
}

input,
textarea {
  width: 100%;
  border: 1px solid #bcccdc;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input {
  min-height: 50px;
  padding: 12px 14px;
}

textarea {
  min-height: 190px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

.editor-shell {
  overflow: hidden;
  border: 1px solid #bcccdc;
  border-radius: 9px;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.editor-shell:hover {
  border-color: #8da4ba;
}

.editor-shell:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(42, 127, 127, 0.12);
}

.editor-shell:has(.rich-editor[aria-invalid="true"]) {
  border-color: var(--error);
}

.editor-toolbar {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 5px 7px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  gap: 5px;
}

.large-view-button {
  white-space: nowrap;
}

.toolbar-help {
  text-decoration: none;
}

.options-button.has-custom-options {
  border-color: #9fc7c7;
  background: #e4f3ef;
  color: var(--teal-dark);
}

.format-button {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 720;
  gap: 4px;
}

.format-bold {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.format-button:hover {
  border-color: var(--border);
  background: #fff;
}

.format-button[aria-pressed="true"] {
  border-color: #9fc7c7;
  background: #e4f3ef;
  color: var(--teal-dark);
}

.toolbar-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.7rem;
}

.rich-editor {
  min-height: 166px;
  max-height: 166px;
  padding: 12px 13px;
  overflow-y: auto;
  color: var(--text);
  line-height: 1.5;
  outline: none;
  overflow-wrap: anywhere;
}

.rich-editor:empty::before {
  color: #829ab1;
  content: attr(data-placeholder);
  pointer-events: none;
}

.rich-editor p {
  margin: 0 0 0.55em;
}

.rich-editor ul {
  margin: 0.2em 0 0.55em;
  padding-left: 1.35em;
}

.rich-editor li + li {
  margin-top: 0.2em;
}

.editor-expanded-actions {
  display: none;
}

body.editor-expanded::after {
  position: fixed;
  z-index: 850;
  background: rgba(16, 42, 67, 0.68);
  backdrop-filter: blur(6px);
  content: "";
  inset: 0;
}

.editor-shell.is-expanded {
  position: fixed;
  z-index: 900;
  display: flex;
  width: auto;
  max-width: 1040px;
  margin-inline: auto;
  border-color: #9fc7c7;
  border-radius: 13px;
  box-shadow: 0 28px 80px rgba(16, 42, 67, 0.32);
  flex-direction: column;
  inset: clamp(12px, 3vw, 34px);
}

.editor-shell.is-expanded .editor-toolbar {
  flex: 0 0 auto;
  padding: 10px 12px;
}

.editor-shell.is-expanded .rich-editor {
  height: auto;
  min-height: 0 !important;
  max-height: none !important;
  padding: clamp(18px, 3vw, 30px);
  flex: 1 1 auto;
  font-size: 1.05rem;
}

.editor-shell.is-expanded .editor-expanded-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  gap: 10px;
}

.editor-shell.is-expanded .editor-expanded-actions .button {
  min-width: 150px;
}

.options-dialog {
  width: min(calc(100% - 28px), 620px);
  max-height: calc(100svh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(16, 42, 67, 0.34);
}

.options-dialog::backdrop {
  background: rgba(16, 42, 67, 0.68);
  backdrop-filter: blur(6px);
}

.options-card {
  padding: clamp(22px, 4vw, 32px);
}

.options-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.options-heading .eyebrow {
  margin-bottom: 2px;
}

.options-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #f8fafc;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  place-items: center;
}

.options-intro {
  margin: 15px 0 20px;
  color: var(--muted);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.option-field {
  display: grid;
  margin-bottom: 15px;
  gap: 6px;
}

.option-field > span {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 720;
}

.option-field small {
  color: var(--muted);
  font-weight: 550;
}

.option-field select {
  min-height: 48px;
  padding: 10px 38px 10px 12px;
  border: 1px solid #bcccdc;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.option-field select:hover {
  border-color: #8da4ba;
}

.option-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(42, 127, 127, 0.12);
  outline: none;
}

.local-only-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f4f7fa;
  color: var(--muted);
  font-size: 0.82rem;
}

.created-reference {
  display: grid;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  gap: 1px;
}

.created-reference span,
.created-reference small {
  color: var(--muted);
  font-size: 0.75rem;
}

.created-reference strong {
  color: var(--navy);
}

.options-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 10px;
}

input:hover,
textarea:hover {
  border-color: #8da4ba;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(42, 127, 127, 0.12);
  outline: none;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

::placeholder {
  color: #829ab1;
  opacity: 1;
}

.field-help,
.field-error,
.field-meta {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.field-help,
.field-meta {
  color: var(--muted);
}

.field-error {
  display: none;
  color: var(--error);
  font-weight: 650;
}

.field-error:not(:empty) {
  display: block;
}

.counter {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.counter.is-near-limit {
  color: var(--warning);
  font-weight: 700;
}

.counter.is-over-limit {
  color: var(--error);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button:hover {
  background: var(--teal-dark);
  color: #fff;
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button-block {
  width: 100%;
}

.button-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--navy);
}

.button-secondary:hover {
  border-color: #9fb3c8;
  background: #f7fafc;
  color: var(--navy);
}

.button-danger {
  border-color: #fed7d7;
  background: #fff5f5;
  color: var(--error);
}

.button-danger:hover {
  background: #fed7d7;
  color: #9b2c2c;
}

.button-small {
  min-height: 42px;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.submit-note {
  margin-top: 3px;
}

.submit-note::after {
  margin-left: 10px;
  content: "→";
  font-size: 1.12em;
}

.button.is-loading::after {
  width: 14px;
  height: 14px;
  margin-left: 11px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  content: "";
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.trust-line {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.ad-slot {
  display: grid;
  min-height: 92px;
  max-width: var(--form-width);
  margin: 28px auto 0;
  border: 1px dashed #bcccdc;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.45);
  color: #829ab1;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  place-items: center;
  text-transform: uppercase;
}

.ad-detection-bait {
  position: fixed;
  top: -100px;
  left: -100px;
  display: block;
  width: 2px;
  height: 2px;
  pointer-events: none;
}

.adblock-gate[hidden] {
  display: none;
}

.adblock-gate {
  position: fixed;
  z-index: 1000;
  display: grid;
  padding: 20px;
  background: rgba(16, 42, 67, 0.72);
  backdrop-filter: blur(8px);
  inset: 0;
  place-items: center;
}

.adblock-card {
  width: min(100%, 520px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(217, 226, 236, 0.96);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 42, 67, 0.28);
  text-align: center;
}

.adblock-symbol {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #e4f3ef;
  color: var(--teal-dark);
  font-size: 1.12rem;
  font-weight: 850;
  place-items: center;
}

.adblock-card .eyebrow {
  justify-content: center;
  margin-bottom: 7px;
}

.adblock-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 5vw, 2rem);
}

.adblock-card p {
  margin: 0 0 13px;
  color: #486581;
  line-height: 1.55;
}

.adblock-card .adblock-privacy {
  padding: 11px 13px;
  border-radius: 8px;
  background: #f4f7fa;
  color: var(--text);
  font-size: 0.88rem;
}

.adblock-card .button {
  margin-top: 18px;
}

.adblock-instructions[hidden],
.adblock-intro[hidden] {
  display: none;
}

.adblock-instructions {
  text-align: left;
}

.adblock-instructions .eyebrow {
  justify-content: flex-start;
}

.adblock-instructions h2 {
  margin-bottom: 20px;
}

.adblock-steps {
  display: grid;
  gap: 17px;
  margin: 0;
  padding-left: 24px;
  color: var(--text);
}

.adblock-steps li {
  padding-left: 4px;
}

.adblock-steps strong,
.adblock-steps span {
  display: block;
}

.adblock-steps strong {
  margin-bottom: 3px;
}

.adblock-steps span {
  color: #486581;
  font-size: 0.9rem;
  line-height: 1.5;
}

.adblock-browser-note {
  display: grid;
  gap: 3px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4f7fa;
  color: #486581;
  font-size: 0.86rem;
  line-height: 1.45;
}

.adblock-browser-note strong {
  color: var(--text);
}

.adblock-instructions .button {
  margin-top: 20px;
}

.adblock-back {
  display: block;
  margin: 13px auto 0;
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: #486581;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.adblock-back:hover,
.adblock-back:focus-visible {
  color: var(--navy);
}

.adblock-card .text-link {
  justify-content: center;
  margin-top: 16px;
}

.adblock-detected > :not(.adblock-gate) {
  pointer-events: none;
  user-select: none;
}

@media (max-width: 560px) {
  .adblock-gate {
    padding: 12px;
  }

  .adblock-card {
    max-height: calc(100dvh - 24px);
    padding: 24px 20px;
  }

  .adblock-symbol {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  .adblock-steps {
    gap: 13px;
  }
}

@media (max-width: 1100px) {
  .viewer-with-ads {
    display: flex;
    width: min(calc(100% - 40px), var(--content));
  }

  .viewer-page .ad-rail {
    display: none;
  }
}

.page-main {
  padding: 66px 0 88px;
}

.page-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.page-heading h1 {
  margin-bottom: 17px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.status-card {
  max-width: var(--form-width);
  margin: 0 auto;
  padding: clamp(25px, 5vw, 44px);
  text-align: center;
}

.status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e9f7f1;
  color: var(--success);
  font-size: 1.55rem;
  font-weight: 850;
  place-items: center;
}

.status-icon.neutral {
  background: #eaf1f6;
  color: var(--blue);
}

.status-icon.warning {
  background: #fff8e8;
  color: var(--warning);
}

.status-card h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.status-lead {
  max-width: 620px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.link-box {
  display: flex;
  align-items: stretch;
  margin: 25px 0 14px;
  gap: 9px;
}

.link-box input {
  min-width: 0;
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.notice {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid #f0d7aa;
  border-radius: 9px;
  background: #fffbeb;
  color: #805b1c;
  font-size: 0.9rem;
  text-align: left;
}

.notice strong {
  color: #684510;
}

.notice.info {
  border-color: #c8dae8;
  background: #f1f6fa;
  color: #365f7c;
}

.notice.error {
  border-color: #f4c7c7;
  background: #fff5f5;
  color: #9b2c2c;
}

.status-list {
  display: grid;
  margin: 24px 0;
  padding: 0;
  gap: 0;
  border-top: 1px solid var(--border);
  list-style: none;
  text-align: left;
}

.status-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.status-list li::before {
  position: absolute;
  top: 17px;
  left: 3px;
  color: var(--teal);
  content: "✓";
  font-weight: 800;
}

.profile-panel {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.profile-panel p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-url {
  display: block;
  max-width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-shell {
  max-width: 860px;
  margin: 0 auto;
}

.note-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 18px;
}

.note-toolbar-title {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.centered-actions {
  justify-content: center;
}

.home-footer {
  margin-top: 84px;
}

.timer-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer-ring {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 4px solid #d9eeee;
  border-top-color: var(--teal);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 850;
  place-items: center;
}

.timer-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.timer-value {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.note-panel {
  position: relative;
  min-height: 260px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.note-text {
  margin: 0;
  color: #1f3448;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2.2vw, 1.24rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.note-text p {
  margin: 0 0 0.8em;
}

.note-text p:last-child,
.note-text ul:last-child {
  margin-bottom: 0;
}

.note-text ul {
  margin: 0 0 0.8em;
  padding-left: 1.35em;
}

.note-text li + li {
  margin-top: 0.25em;
}

.note-panel.is-hidden .note-text {
  visibility: hidden;
}

.hidden-cover {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, #f6f9fb, #f6f9fb 12px, #eef3f7 12px, #eef3f7 24px);
  color: var(--navy);
  font-weight: 750;
  text-align: center;
}

.note-panel.is-hidden .hidden-cover {
  display: flex;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
  gap: 10px;
}

.deletion-time {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.content-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(26px, 6vw, 54px);
}

.content-card.viewer-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

.content-card > :last-child {
  margin-bottom: 0;
}

.content-card h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  font-size: 1.42rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: #3e566d;
}

.content-card ul {
  padding-left: 1.3rem;
}

.content-card li + li {
  margin-top: 8px;
}

.steps {
  display: grid;
  max-width: 1000px;
  margin: 38px auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.step-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  place-items: center;
}

.step-card h2 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.principle-grid {
  display: grid;
  margin: 28px 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.principle {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.principle h3 {
  margin-bottom: 7px;
}

.principle p {
  margin: 0;
  font-size: 0.9rem;
}

.table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.88rem;
}

th,
td {
  min-width: 150px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef4f8;
  color: var(--navy);
  font-weight: 760;
}

th:nth-child(2),
th:nth-child(3),
td:nth-child(2),
td:nth-child(3) {
  text-align: right;
}

.empty-row td {
  padding: 28px 14px;
  color: var(--muted);
  text-align: center;
}

.transparency-meta {
  display: grid;
  margin: 26px 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.meta-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f8fafc;
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-item strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: #eaf0f5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  max-width: 390px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-heading {
  margin: 0 0 11px;
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 7px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.copyright {
  width: min(calc(100% - 40px), var(--content));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid #cbd6e0;
  color: #829ab1;
  font-size: 0.78rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hidden {
  display: none !important;
}

.noscript {
  margin: 20px auto;
  padding: 14px;
  border: 1px solid #f4c7c7;
  border-radius: 9px;
  background: #fff5f5;
  color: #9b2c2c;
}

@media (max-width: 940px) {
  .home-main {
    padding-top: 22px;
  }

  .home-workspace {
    width: min(calc(100% - 40px), var(--form-width));
    min-height: auto;
    grid-template-areas: "create";
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-intro {
    display: none;
  }

  .home-intro h1,
  .home-intro .hero-copy {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
  }

  .home-intro h1 {
    margin-bottom: 14px;
    font-size: clamp(2.25rem, 6vw, 3.1rem);
  }

  .home-benefits {
    justify-content: center;
    margin: 18px 0 14px;
    grid-template-columns: repeat(3, auto);
    gap: 18px;
  }

  .home-create {
    max-width: var(--form-width);
    margin: 0 auto;
    padding-block: 18px;
  }

  .mobile-landing-ad {
    display: grid;
    min-height: 32px;
    margin: 6px 0 0;
    font-size: 0.58rem;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    width: min(calc(100% - 28px), var(--content));
    min-height: 68px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .nav-links .nav-cta {
    min-height: 42px;
  }

  .container,
  .copyright {
    width: min(calc(100% - 28px), var(--content));
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }

  .form-intro,
  .note-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-card,
  .status-card,
  .content-card {
    padding: 24px 20px;
  }

  .link-box {
    flex-direction: column;
  }

  .link-box .button {
    width: 100%;
  }

  .steps,
  .principle-grid,
  .transparency-meta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 13px;
  }

  .footer-grid {
    gap: 28px;
  }

  .page-main {
    padding: 46px 0 64px;
  }

  .home-main {
    padding-top: 14px;
  }

  .home-workspace {
    width: min(calc(100% - 28px), var(--form-width));
    gap: 16px;
  }

  .home-intro {
    padding-top: 8px;
    text-align: left;
  }

  .home-intro .eyebrow {
    margin-bottom: 8px;
  }

  .home-intro h1 {
    margin-bottom: 10px;
    font-size: clamp(1.95rem, 9.5vw, 2.55rem);
  }

  .home-intro .hero-copy {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .home-benefits {
    display: none;
  }

  .home-intro .text-link {
    margin-top: 10px;
    font-size: 0.86rem;
  }

  .home-create .form-card {
    padding: 21px 19px 19px;
  }

  .home-create .form-intro {
    align-items: center;
    flex-direction: row;
    margin-bottom: 17px;
    gap: 12px;
  }

  .home-create .form-intro p {
    display: none;
  }

  .home-create textarea {
    min-height: 180px;
  }

  .home-create .rich-editor {
    min-height: 120px;
    max-height: 120px;
  }

  .toolbar-hint {
    display: none;
  }

  .home-secondary {
    padding: 18px 0 40px;
    grid-template-columns: 1fr;
  }

  .viewer-main {
    padding: 8px 0;
  }

  .viewer-heading {
    align-items: flex-start;
    margin-bottom: 7px;
    flex-direction: column;
    gap: 2px;
  }

  .viewer-heading .eyebrow {
    display: none;
  }

  .viewer-heading h1 {
    font-size: 1.35rem;
  }

  .viewer-heading > p {
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 0.75rem;
    text-align: left;
  }

  .viewer-layout {
    grid-template-columns: 1fr;
  }

  .viewer-tabs {
    display: none;
  }

  .viewer-content {
    padding: 12px 14px 10px;
  }

  .viewer-select-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 720;
  }

  .viewer-select {
    min-width: 0;
    min-height: 40px;
    padding: 7px 30px 7px 9px;
    border: 1px solid #bcccdc;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    flex: 1 1 auto;
  }

  .viewer-panel h2 {
    margin-bottom: 9px;
    font-size: 1.16rem;
  }

  .viewer-panel p,
  .viewer-panel li {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .viewer-panel p {
    margin-bottom: 8px;
  }

  .viewer-panel ul {
    columns: 1;
  }

  .viewer-panel li {
    margin-bottom: 4px;
  }

  .viewer-panel .principle-grid,
  .viewer-panel .transparency-meta {
    margin: 9px 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .viewer-panel .table-wrap {
    overflow: hidden;
  }

  .viewer-panel table {
    min-width: 0;
    table-layout: fixed;
  }

  .viewer-panel th,
  .viewer-panel td {
    min-width: 0;
    padding: 6px 4px;
    font-size: 0.66rem;
    overflow-wrap: anywhere;
  }

  .viewer-panel .principle,
  .viewer-panel .meta-item {
    padding: 9px;
  }

  .viewer-controls {
    padding-top: 7px;
  }

  .viewer-controls .button {
    min-height: 38px;
    padding: 6px 10px;
  }

  .compact-steps {
    gap: 7px;
  }

  .compact-steps li {
    padding: 8px 9px;
  }

  .compact-steps > li > span {
    width: 26px;
    height: 26px;
  }

  .flow-page > .page-main {
    padding: 8px 0;
  }

  .flow-page .status-card {
    padding: 18px 17px;
  }

  .flow-page .link-box {
    margin: 12px 0 8px;
  }

  .note-flow-page .note-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .note-flow-page .note-toolbar .eyebrow {
    display: none;
  }

  .note-flow-page .note-toolbar-title {
    font-size: 1.3rem;
  }

  .note-flow-page .timer-ring {
    width: 45px;
    height: 45px;
  }

  .note-flow-page .note-panel {
    padding: 15px 17px;
  }
}

@media (max-width: 430px) {
  .wordmark-text {
    font-size: 1rem;
  }

  .brand-mark {
    width: 31px;
    height: 34px;
  }

  .button-row .button {
    width: 100%;
  }

  .note-actions .button {
    flex: 1 1 135px;
  }

  .home-create .form-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .home-create .privacy-chip {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .editor-shell.is-expanded {
    inset: 8px;
  }

  .editor-shell.is-expanded .editor-expanded-actions {
    flex-direction: column-reverse;
  }

  .editor-shell.is-expanded .editor-expanded-actions .button {
    width: 100%;
    min-width: 0;
  }

  .toolbar-hint {
    display: none;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .options-actions {
    flex-direction: column-reverse;
  }

  .options-actions .button {
    width: 100%;
  }

  .viewer-container,
  .flow-page > .page-main > .container {
    width: min(calc(100% - 20px), var(--content));
  }

  .viewer-heading > p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .viewer-content {
    padding-right: 11px;
    padding-left: 11px;
  }

  .viewer-select-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .viewer-select {
    width: 100%;
  }

  .viewer-controls {
    justify-content: space-between;
    gap: 6px;
  }

  .viewer-controls span {
    min-width: 42px;
  }

  .viewer-controls .button {
    font-size: 0.75rem;
  }

  .note-pagination {
    justify-content: space-between;
    gap: 5px;
  }

  .note-pagination .button {
    padding: 6px 9px;
    font-size: 0.72rem;
  }
}

/* Keep the complete creation workspace visible on common laptop-height screens. */
@media (max-height: 780px) {
  .home-intro {
    padding: 10px 0;
  }

  .home-intro h1 {
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 3.7vw, 3.15rem);
  }

  .home-intro .hero-copy {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .home-benefits {
    margin: 17px 0 14px;
    gap: 6px;
  }

  .landing-ad {
    min-height: 52px;
    margin-top: 8px;
  }

  .home-create {
    padding-block: 12px;
  }

  .home-create .form-card {
    padding: 18px 22px 16px;
  }

  .home-create .form-intro {
    margin-bottom: 11px;
  }

  .home-create .form-intro p {
    display: none;
  }

  .home-create .field-group {
    margin-bottom: 10px;
  }

  .home-create .field-label-row {
    margin-bottom: 4px;
  }

  .home-create input {
    min-height: 42px;
    padding: 8px 11px;
  }

  .home-create .field-help,
  .home-create .field-error,
  .home-create .field-meta {
    margin-top: 3px;
    font-size: 0.73rem;
  }

  .editor-toolbar {
    min-height: 34px;
    padding: 3px 6px;
  }

  .home-create .rich-editor {
    min-height: 124px;
    max-height: 124px;
    padding: 10px 11px;
  }

  .home-create .button {
    min-height: 44px;
  }

  .home-create .trust-line {
    margin-top: 4px;
  }
}

@media (max-height: 680px) {
  .home-main {
    padding-top: 6px;
  }

  .home-create .form-card {
    padding: 12px 16px 10px;
  }

  .home-create {
    padding-block: 6px;
  }

  .home-create .form-intro {
    margin-bottom: 7px;
  }

  .home-create .form-intro h2 {
    font-size: 1.08rem;
  }

  .home-create .field-group {
    margin-bottom: 7px;
  }

  .home-create .field-help,
  .home-create .field-meta {
    display: none;
  }

  .home-create .rich-editor {
    min-height: 98px;
    max-height: 98px;
  }

  .home-create .trust-line {
    display: none;
  }

  .mobile-landing-ad {
    min-height: 28px;
    margin-top: 4px;
  }

  .home-intro .hero-copy,
  .home-benefits {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .ad-slot,
  .note-actions,
  .notice {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card,
  .note-panel {
    border-color: #999;
    box-shadow: none;
  }
}
