/* Shared layout. System fonts and local assets keep the site small and private. */
:root {
  --red: #e34b43;
  --red-dark: #c6312b;
  --ink: #202734;
  --muted: #626b79;
  --line: #e3e6eb;
  --bg: #f6f7f9;
  --blue: #426aa2;
  --radius: 12px;
  --header: 72px;
  --anchor: 76px;
  color-scheme: light;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #436dc9;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}
p {
  color: var(--muted);
}
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.visually-hidden,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  z-index: 100;
  background: white;
  padding: 16px;
}
.site-header {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand-light {
  font-weight: 420;
}
.main-nav {
  display: flex;
  gap: 27px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  height: 100%;
}
.main-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current] {
  color: var(--red);
  border-color: var(--red);
}
.header-note {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.header-note .icon {
  width: 16px;
  height: 16px;
}
.language-label {
  font-size: 12px;
  font-weight: 700;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  letter-spacing: 0.06em;
}
.eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 15px;
}
.home-intro {
  max-width: 860px;
  margin: auto;
  text-align: center;
  padding: 66px 24px 42px;
}
.home-intro h1 {
  font-size: clamp(36px, 4.5vw, 57px);
  font-weight: 730;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  line-height: 1.12;
}
.home-intro h1 span {
  color: var(--red);
}
.home-intro > p {
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto 23px;
}
.trust-line {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
}
.trust-line span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust-line .icon {
  width: 15px;
  height: 15px;
}
.trust-line span + span:before {
  content: "";
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: #aab2bc;
  margin-right: 5px;
}
.catalog-wrap {
  max-width: 1190px;
  padding: 0 30px;
  margin: auto;
}
.tool-section {
  margin-bottom: 34px;
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-heading h2 {
  font-size: 19px;
  margin: 0;
}
.section-heading > span {
  font-size: 13px;
  color: var(--muted);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 218px;
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    border-color 0.16s;
  background: #fff;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: #cbd0d8;
  box-shadow: 0 9px 28px #2027340a;
}
.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff0ef;
  color: var(--red);
  border-radius: 10px;
  margin-bottom: 20px;
}
.card-icon .icon {
  width: 27px;
  height: 27px;
}
.tone-paper .card-icon {
  background: #edf3fc;
  color: var(--blue);
}
.tool-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
}
.tool-card p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 22px;
}
.card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}
.card-action span {
  font-size: 18px;
}
.privacy-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg);
  border: 1px solid #eef0f3;
  border-radius: var(--radius);
  padding: 22px 25px;
  margin: 40px 0 28px;
}
.privacy-strip > .icon {
  width: 29px;
  height: 29px;
  color: var(--blue);
}
.privacy-strip strong {
  font-size: 15px;
}
.privacy-strip p {
  font-size: 13px;
  margin: 3px 0 0;
}
.privacy-strip > a {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ad-home,
.ad-sidebar,
.ad-anchor {
  color: #8a919c;
  background: #fafbfc;
  border: 1px dashed #dfe3e8;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.015em;
}
.ad-home > span,
.ad-sidebar > span,
.ad-anchor > span {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.ad-home {
  max-width: 970px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 35px;
}
.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px 40px;
  margin-top: 35px;
}
.footer-brand {
  font-size: 18px;
  gap: 0;
}
.site-footer p {
  font-size: 12px;
  margin: 0;
}
.site-footer nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--red);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  min-height: 48px;
}
.button:hover:not(:disabled) {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.button .icon {
  width: 19px;
  height: 19px;
}
.button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover {
  background: var(--bg);
  border-color: #c3c9d3;
}
.button.small {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 14px;
}
.text-button {
  background: none;
  border: 0;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover {
  color: var(--ink);
}
/* The work area fills the first screen; instructions remain below it. */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  height: calc(100svh - var(--header));
  min-height: 560px;
  background: var(--bg);
}
.page-tool.ad-preview:not(.ad-dismissed) .workspace {
  height: calc(100svh - var(--header) - var(--anchor));
}
.work-area {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.work-toolbar {
  padding: 20px 28px;
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.back-link {
  color: var(--muted);
  font-size: 13px;
}
.back-link:before {
  content: "‹";
  margin-right: 7px;
  font-size: 18px;
}
.back-link:hover,
.help-link:hover {
  color: var(--red);
}
.work-label {
  padding-left: 20px;
  border-left: 1px solid #d8dde5;
}
.help-link {
  margin-left: auto;
}
.canvas-area {
  overflow: auto;
  min-height: 0;
  padding: 18px 34px 28px;
  flex: 1;
  min-width: 0;
}
.drop-zone {
  border: 1.5px dashed #ccd3dd;
  border-radius: 16px;
  background: #fff;
  min-height: 410px;
  max-width: 760px;
  margin: 38px auto 15px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.drop-zone.drag-over {
  background: #fff4f3;
  border-color: var(--red);
}
.upload-icon {
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff1ef;
  width: 82px;
  height: 82px;
  color: var(--red);
  margin-bottom: 24px;
}
.upload-icon .icon {
  width: 40px;
  height: 40px;
}
.drop-zone h2 {
  font-size: 27px;
  margin-bottom: 9px;
}
.drop-zone p {
  font-size: 15px;
  margin-bottom: 24px;
}
.drop-zone small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.file-limits {
  font-size: 11px;
  color: #87909b;
  margin-top: 25px;
}
.local-note {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px 20px;
  margin: 0;
}
.local-note .icon {
  width: 16px;
  height: 16px;
}
.settings-panel {
  overflow: auto;
  background: white;
  border-left: 1px solid var(--line);
  padding: 28px 24px;
  min-width: 0;
}
.settings-heading h1 {
  font-size: 26px;
  margin-bottom: 10px;
}
.settings-heading .eyebrow {
  margin-bottom: 10px;
  font-size: 10px;
}
.settings-heading p {
  font-size: 13px;
  margin-bottom: 25px;
}
.settings-panel form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.settings-panel label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
}
.settings-panel input[type="number"],
.settings-panel input[type="text"],
.settings-panel select {
  border: 1px solid #dce0e7;
  border-radius: 7px;
  padding: 10px 11px;
  width: 100%;
  min-height: 42px;
  background: white;
  color: var(--ink);
  font-size: 13px;
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 10px;
}
.field-row select {
  padding-left: 8px;
  padding-right: 4px;
  font-size: 12px;
}
.settings-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.settings-panel legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
  padding: 0;
}
.segmented {
  display: flex;
  padding: 3px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.segmented label {
  flex: 1;
  position: relative;
}
.segmented input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.segmented span {
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-radius: 5px;
}
.segmented input:checked + span {
  background: #fff;
  box-shadow: 0 1px 4px #20273412;
  color: var(--ink);
}
.segmented input:focus-visible + span {
  outline: 2px solid #436dc9;
}
.unit-label {
  float: right;
  color: var(--muted);
  font-size: 11px;
  margin-top: -25px;
  text-align: right;
  font-weight: 400;
}
.color-field {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
}
.color-field input {
  width: 52px;
  height: 34px;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.field-help {
  font-size: 12px;
  margin: -5px 0 0;
  line-height: 1.55;
}
.action-area {
  padding-top: 6px;
}
.primary-action {
  width: 100%;
}
.print-tip {
  font-size: 11px;
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}
.status {
  font-size: 12px;
  margin-bottom: 10px;
}
.status:empty {
  display: none;
}
.error {
  color: #a62d26;
  background: #fff0ef;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #bcd4c7;
  background: #f1f8f4;
  border-radius: 8px;
  margin-top: 12px;
}
.result strong {
  font-size: 14px;
}
.result .button {
  background: #236548;
  border-color: #236548;
}
.result > span {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}
.ad-sidebar {
  height: 250px;
  width: 300px;
  max-width: 100%;
  margin: 34px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ad-anchor {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--anchor);
  background: #f9fafcf5;
  backdrop-filter: blur(8px);
  border-width: 1px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.ad-anchor button {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: var(--muted);
  font-size: 18px;
}
.page-tool.ad-preview:not(.ad-dismissed) {
  padding-bottom: var(--anchor);
}
.option-note {
  display: flex;
  gap: 14px;
  padding: 17px;
  background: var(--bg);
  border-radius: 9px;
}
.option-note .icon {
  color: var(--red);
}
.option-note p {
  font-size: 13px;
  margin: 0;
}
.selection-actions {
  display: flex;
  justify-content: space-between;
}
.rotation-buttons {
  display: flex;
  gap: 7px;
}
.rotation-buttons button {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
}
.rotation-buttons button:hover {
  border-color: var(--red);
  color: var(--red);
}
.file-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.file-actions > span {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.preview {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}
.preview.paper-preview {
  min-height: 0;
  align-items: center;
}
.paper-preview .sheet-preview {
  width: clamp(220px, calc((100svh - 350px) * 0.707), 360px);
}
.paper-preview .sheet-preview.landscape {
  width: clamp(320px, calc((100svh - 350px) * 1.414), 620px);
}
.sheet-preview {
  max-width: 100%;
  width: 360px;
  background: white;
  box-shadow: 0 3px 14px #26344717;
  border: 1px solid #e6e9ef;
  line-height: 0;
}
.sheet-preview canvas {
  width: 100%;
  height: auto;
  display: block;
}
.preview-caption {
  font-size: 11px;
  text-align: center;
  margin: 20px 0 0;
}
.page-card {
  width: 168px;
  position: relative;
}
.thumbnail-button {
  display: block;
  width: 100%;
  border: 2px solid transparent;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 8px #2634470d;
  border-radius: 8px;
  min-height: 180px;
  position: relative;
  color: var(--ink);
}
.thumbnail-button.selected {
  border-color: var(--red);
  background: #fff9f8;
}
.thumbnail-button canvas {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
}
.thumbnail-button .selection-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid #ccd3dd;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
}
.thumbnail-button.selected .selection-mark {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.page-caption {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin: 8px 0 0;
  word-break: break-word;
}
.doc-card {
  width: 186px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  cursor: grab;
}
.doc-card.drag-over {
  border-color: var(--red);
  box-shadow: 0 0 0 2px #e34b4340;
}
.doc-canvas {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 5px;
  overflow: hidden;
}
.doc-canvas canvas {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
}
.doc-title {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 10px 0 3px;
  font-weight: 600;
}
.doc-detail {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.item-actions {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 10px;
}
.item-actions button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  min-width: 30px;
  height: 30px;
  font-size: 15px;
  color: var(--muted);
}
.item-actions button:hover {
  color: var(--red);
  border-color: var(--red);
}
.photo-order {
  display: flex;
  gap: 10px;
  overflow: auto;
  max-width: 100%;
  width: 100%;
  padding: 3px 1px 14px;
  margin-bottom: 5px;
}
.photo-item {
  flex: 0 0 100px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
}
.photo-item img {
  width: 84px;
  height: 68px;
  object-fit: contain;
  display: block;
  background: var(--bg);
}
.photo-item .item-actions {
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.photo-item .item-actions button {
  min-width: 36px;
  flex: 1;
}
.photo-item .doc-title {
  margin-top: 6px;
  max-width: 84px;
}
.tool-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1030px;
  padding: 65px 30px 35px;
  margin: auto;
  scroll-margin-top: 30px;
}
.tool-guide h2 {
  font-size: 23px;
  margin-bottom: 20px;
}
.tool-guide ol {
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}
.tool-guide li {
  padding-left: 8px;
  margin-bottom: 13px;
}
.guide-notes {
  padding-top: 32px;
}
.guide-notes p {
  font-size: 14px;
  line-height: 1.75;
}
.related-tools {
  max-width: 1030px;
  margin: 0 auto;
  padding: 20px 30px 30px;
}
.related-tools h2 {
  font-size: 18px;
}
.related-tools > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.related-tools a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
}
.related-tools .icon {
  width: 20px;
  color: var(--red);
}
.related-tools a:hover {
  border-color: var(--red);
}
.info-page {
  max-width: 800px;
  min-height: 60vh;
  padding: 65px 30px;
  margin: auto;
}
.info-page h1 {
  font-size: 42px;
  margin: 20px 0;
}
.info-page .intro {
  font-size: 19px;
  margin-bottom: 35px;
}
.info-page section {
  margin: 32px 0;
}
.info-page h2 {
  font-size: 21px;
}
.info-page p {
  font-size: 15px;
}
.noscript-note {
  padding: 20px;
  color: #a62d26;
  text-align: center;
}
@media (min-width: 1400px) {
  .settings-panel {
    padding-top: 35px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  .canvas-area {
    padding-left: 60px;
    padding-right: 60px;
  }
  .drop-zone {
    margin-top: 60px;
    min-height: 460px;
  }
}
@media (max-width: 1050px) {
  .site-header {
    padding: 0 24px;
    gap: 25px;
  }
  .header-note {
    display: none;
  }
  .language-label {
    margin-left: auto;
  }
  .tool-card {
    padding: 20px;
  }
  .tool-grid {
    gap: 12px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 332px;
  }
  .settings-panel {
    padding: 24px 16px;
  }
  .canvas-area {
    padding: 15px 22px;
  }
  .drop-zone {
    padding: 22px;
    min-height: 360px;
  }
  .drop-zone h2 {
    font-size: 24px;
  }
  .work-label {
    display: none;
  }
  .work-toolbar {
    padding: 18px 22px;
  }
  .tool-guide {
    gap: 35px;
  }
  .home-intro {
    padding-top: 50px;
  }
}
@media (max-width: 760px) {
  :root {
    --header: 62px;
    --anchor: 62px;
  }
  .site-header {
    padding: 0 18px;
    gap: 16px;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .main-nav {
    margin-left: auto;
    font-size: 12px;
  }
  .main-nav a:not(:first-child) {
    display: none;
  }
  .language-label {
    padding-left: 14px;
    margin-left: 0;
    font-size: 11px;
  }
  .home-intro {
    padding: 40px 20px 30px;
  }
  .home-intro h1 {
    font-size: 38px;
  }
  .home-intro > p {
    font-size: 15px;
    max-width: 440px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .trust-line {
    gap: 10px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .trust-line span + span:before {
    margin-right: 0;
  }
  .catalog-wrap {
    padding: 0 18px;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .section-heading > span {
    display: none;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .tool-card {
    padding: 18px;
    min-height: 215px;
  }
  .tool-card h3 {
    font-size: 16px;
  }
  .tool-card p {
    font-size: 13px;
  }
  .card-icon {
    margin-bottom: 16px;
  }
  .privacy-strip {
    padding: 20px;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .privacy-strip > div {
    flex: 1;
    min-width: 210px;
  }
  .privacy-strip > a {
    margin-left: 42px;
  }
  .site-footer {
    padding: 24px 20px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .site-footer p {
    font-size: 11px;
  }
  .site-footer nav {
    width: 100%;
    margin: 0;
  }
  .workspace,
  .page-tool.ad-preview:not(.ad-dismissed) .workspace {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .work-toolbar {
    padding: 14px 18px;
  }
  .canvas-area {
    overflow: visible;
    padding: 12px 18px 20px;
  }
  .drop-zone {
    margin: 0;
    min-height: 320px;
    padding: 24px 16px;
  }
  .drop-zone h2 {
    font-size: 25px;
  }
  .drop-zone p {
    font-size: 14px;
  }
  .upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 19px;
  }
  .upload-icon .icon {
    width: 31px;
    height: 31px;
  }
  .file-limits {
    font-size: 10px;
  }
  .local-note {
    font-size: 10px;
    padding: 10px 15px 18px;
  }
  .settings-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 22px;
  }
  .settings-heading h1 {
    font-size: 23px;
  }
  .settings-heading p {
    margin-bottom: 20px;
  }
  .settings-panel form {
    max-width: 500px;
    margin: auto;
  }
  .settings-heading {
    max-width: 500px;
    margin: auto;
  }
  .settings-panel label,
  .settings-panel legend {
    font-size: 13px;
  }
  .settings-panel input[type="number"],
  .settings-panel input[type="text"],
  .settings-panel select {
    font-size: 16px;
    min-height: 44px;
  }
  .field-row {
    grid-template-columns: 1fr 85px;
  }
  .field-row select {
    font-size: 14px;
  }
  .ad-sidebar {
    display: none;
  }
  .preview.paper-preview {
    min-height: 0;
  }
  .sheet-preview,
  .paper-preview .sheet-preview,
  .paper-preview .sheet-preview.landscape {
    width: 265px;
  }
  .preview {
    gap: 15px;
  }
  .page-card {
    width: 135px;
  }
  .thumbnail-button {
    min-height: 150px;
  }
  .doc-card {
    width: 145px;
    padding: 10px;
  }
  .doc-canvas {
    height: 125px;
  }
  .file-actions {
    gap: 12px;
  }
  .file-actions > span {
    width: 100%;
    margin: 0;
  }
  .tool-guide {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 40px 22px 20px;
  }
  .guide-notes {
    padding-top: 0;
  }
  .related-tools {
    padding: 20px 22px;
  }
  .related-tools > div {
    flex-direction: column;
  }
  .tool-guide h2 {
    font-size: 22px;
  }
  .info-page {
    padding: 35px 22px;
  }
  .info-page h1 {
    font-size: 34px;
  }
  .ad-anchor {
    font-size: 9px;
  }
  .ad-anchor button {
    right: 9px;
    top: 9px;
  }
  .ad-home {
    min-height: 90px;
  }
  .page-tool .site-footer {
    margin-top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Advertising slots are temporarily disabled, including preview placeholders. */
.ad-home,
.ad-sidebar,
.ad-anchor {
  display: none !important;
}
