:root {
  --blue: #a93620;
  --blue-dark: #84311e;
  --orange: #e7603f;
  --ink: #1d3028;
  --muted: #525c48;
  --paper: #fffcf3;
  --cream: #f6f0e2;
  --line: #dfd7c4;
  --mint: #e6efe0;
  --mono: "Cascadia Mono", "Courier New", monospace;
}

.shell { width: min(1112px, calc(100% - 60px)) }
.site-header { background: #faf4e9 }
.header-inner { min-height: 65px }
.header-inner a:focus-visible, :focus-visible { outline-color: #37604c }
.header-note { color: #48553d }
.kicker, .preview-label {
  font: 700 max(var(--copy-min, 0px), .77rem)/1.35 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.workspace { padding-top: 37px; scroll-margin-top: 13px }
.section-head { margin-bottom: 20px; align-items: flex-end }
.section-head > p { max-width: 325px; margin-bottom: 5px }
.workspace h1, .legal h1 {
  font-size: clamp(2.62rem, 5.2vw, 4.65rem);
  letter-spacing: -.075em;
  line-height: 1;
}
.workspace-card {
  background: var(--paper);
  border-color: #dcd0bb;
  box-shadow: 0 18px 37px #5134110c;
}
.tabstrip { padding: 9px 13px; background: #fffbf0; border-color: var(--line) }
.tabstrip a, .button { border-radius: 999px }
.tabstrip a { min-height: 40px; padding: 8px 14px; font-size: max(var(--copy-min, 0px), .92rem) }
.tabstrip a:hover, .tabstrip a[aria-current="page"] { background: var(--mint); color: #234333 }
.tabstrip a[aria-current="page"] { border-color: #cbd9c5 }
.tabstrip a > span:not(:empty) { background: #e8ded0; color: #4a483c; font-family: var(--mono) }
.single-grid { grid-template-columns: minmax(0, 1.19fr) minmax(0, .81fr) }
.receipt-form, .extra-panel { padding: 23px 25px 26px }
.form-head { margin-bottom: 16px }
.form-head p { margin-top: 4px }
.form-head h2 { font-size: 1.54rem }
.field-grid { gap: 12px }
label small { color: #656452 }
input:not([type="file"]), textarea, select {
  margin-top: 4px;
  min-height: 42px;
  border-color: #d9ceba;
  background-color: #fffdfa;
}
input::placeholder, textarea::placeholder { color: #706c5f }
select {
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, #505749 50%), linear-gradient(135deg, #505749 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.form-actions { gap: 8px }
.with-prefix > span { font-family: var(--mono) }
.button { min-height: 43px; padding: 8px 15px; font-size: max(var(--copy-min, 0px), .92rem) }
.secondary { background: #f9f1e2; color: #67371e; border-color: #dfc7a6 }
.secondary:hover { background: #f7e5cd; border-color: #d4ae88 }
.file-box { border-color: #93a88e; background: #f1f5e8 }
.entry-list li { border-color: var(--line) }

.preview {
  padding: 20px 29px 18px;
  background-color: #214638;
  background-image: radial-gradient(circle, #63806673 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.preview-label { color: #eff5e9; margin-bottom: 14px }
.preview-label span:last-child { color: #ffddb3 }
.layout-picker { padding: 0; border: 0; margin: 0 0 15px; min-width: 0 }
.layout-picker legend { color: #dceadc; margin-bottom: 6px; font-size: max(var(--copy-min, 0px), .78rem); font-weight: 700 }
.layout-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px }
.layout-options label {
  position: relative; display: grid; justify-items: center; gap: 5px;
  padding: 7px 3px; border: 1px solid #799283; border-radius: 7px;
  background: #183c30; color: #f7f4e8; cursor: pointer; font-size: max(var(--copy-min, 0px), .71rem);
}
.layout-options label:has(input:checked) { background: #fff8df; color: #203328; border-color: #fff8df }
.layout-options label:has(input:focus-visible) { outline: 2px solid #fff1be; outline-offset: 2px }
.layout-options input[type="radio"] { position: absolute; width: 1px; min-height: 0; height: 1px; padding: 0; margin: 0; opacity: 0 }
.layout-swatch { display: block; width: 28px; height: 21px; border: 1px solid #aeb9a3; background: #fff9e4 }
.swatch-ticket { border-bottom: 2px dashed #946346; background: repeating-linear-gradient(#fff9e4 0 4px,#c7b487 4px 5px) }
.swatch-classico { border: 2px solid #d8c998; background: linear-gradient(#1b4a57 0 36%,#fffdfa 36%) }
.swatch-minimalista { background: linear-gradient(#fff 0 42%,#535453 42% 49%,#fff 49%) }
.paper {
  margin: 0 auto;
  max-width: 350px;
  padding: 26px 20px 20px;
  color: #26342b;
  background: #fffbec;
  box-shadow: 0 15px 28px #102e2450;
  animation: feed-ticket .5s cubic-bezier(.15,.83,.33,1) both;
}
.paper::after {
  background: linear-gradient(135deg, #fffbec 50%, transparent 0) 0 0/14px 14px repeat-x,
    linear-gradient(225deg, #fffbec 50%, transparent 0) 0 0/14px 14px repeat-x;
}
.paper-staple {
  position: absolute;
  top: 10px;
  left: 17px;
  width: 26px;
  height: 5px;
  transform: rotate(-15deg);
  border: 1px solid #9a9d8b;
  border-radius: 3px;
  background: linear-gradient(0deg,#737961,#d2cdbd,#faf8e6);
  box-shadow: 1px 2px 2px #62564972;
}
.paper-head { align-items: baseline; border-color: #9d9f82; font-family: var(--mono) }
.paper-head strong { font: 700 max(var(--copy-min, 0px), .95rem)/1.1 var(--mono); text-transform: uppercase }
.paper-price { padding: 10px 0; border-color: #9d9f82 }
.paper-price small, .paper-details dt, .paper-sign small { font-family: var(--mono) }
.paper-price strong { font: 700 clamp(1.55rem, 3.3vw, 2.45rem)/1.07 var(--mono); letter-spacing: -.086em }
.paper-details dt, .paper-details dd, .paper-sign small { color: #465644 }
.paper-details div { align-items: baseline }
.paper-details dd { white-space: pre-wrap }
.paper-sign span { border-color: #82907b }
.paper-barcode {
  width: min(119px, 100%);
  height: 19px;
  margin: 13px auto 0;
  opacity: .68;
  background: repeating-linear-gradient(90deg, #253626 0 1px, transparent 1px 3px, #253626 3px 6px, transparent 6px 8px, #253626 8px 9px, transparent 9px 12px, #253626 12px 14px, transparent 14px 16px);
}
.preview-note { color: #edf2e4; text-align: center; margin-top: 18px }
.paper[data-layout="classico"] {
  background: #fffdfa; border: 1px solid #94aba6; border-top: 9px solid #264d55;
  border-radius: 4px; color: #1b3d45; padding-top: 18px;
}
.paper[data-layout="classico"] .paper-head { font-family: Georgia,serif; border-color: #94aba6 }
.paper[data-layout="classico"] .paper-head strong { font: 700 1.25rem/1.1 Georgia,serif; text-transform: none }
.paper[data-layout="classico"] .paper-price { background: #edf3ee; padding: 11px 9px; margin-top: 8px; border-bottom: 0 }
.paper[data-layout="classico"] .paper-price strong { color: #245c65; font-family: Georgia,serif; letter-spacing: -.05em }
.paper[data-layout="classico"] .paper-price small,.paper[data-layout="classico"] .paper-details dt,.paper[data-layout="classico"] .paper-sign small { font-family: var(--body) }
.paper[data-layout="minimalista"] { background: white; border: 1px solid #b1b5b4; color: #212424; border-radius: 0 }
.paper[data-layout="minimalista"] .paper-head { font-family: var(--body); border-bottom: 2px solid #212424 }
.paper[data-layout="minimalista"] .paper-head strong { font: 800 1.12rem/1.1 var(--heading); text-transform: none }
.paper[data-layout="minimalista"] .paper-price { border-bottom: 1px solid #b1b5b4 }
.paper[data-layout="minimalista"] .paper-price strong { color: #222; font-family: var(--heading) }
.paper[data-layout="minimalista"] .paper-price small,.paper[data-layout="minimalista"] .paper-details dt,.paper[data-layout="minimalista"] .paper-sign small { color: #3a3b3a; font-family: var(--body) }
.paper:not([data-layout="ticket"]) :is(.paper-staple,.paper-barcode), .paper:not([data-layout="ticket"])::after { display:none }
.backup-box {
  display: grid; align-items: center; gap: 10px 22px; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  margin-bottom: 20px; padding: 17px; border-radius: 10px; border: 1px solid #cbd8be; background: #edf3e6;
}
.backup-box h3 { font-size: 1.25rem }
.backup-box p { margin: 5px 0 0; color: var(--muted); font-size: max(var(--copy-min, 0px), .9rem) }
.backup-box .form-message { grid-column: 1/-1 }
.backup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px }
.backup-file input { display: block; max-width: 100%; margin-top: 4px; font-size: max(var(--copy-min, 0px), .78rem) }
.history-layout { max-width: 290px }
@keyframes feed-ticket {
  from { opacity: .55; transform: translateY(-8px) }
  to { opacity: 1; transform: translateY(0) }
}

.editorial { padding-bottom: 58px }
.editorial [id] { scroll-margin-top: 20px }
.reading-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px;
  margin-block: 24px; padding: 11px 0; border-block: 1px solid #e4d8c2;
  font-size: max(var(--copy-min, 0px), .87rem);
}
.reading-nav strong {
  margin-right: 5px; padding: 6px 1px; color: #53614c;
  font: 700 max(var(--copy-min, 0px), .73rem) var(--mono); letter-spacing: .035em; text-transform: uppercase;
}
.reading-nav a {
  padding: 5px 9px; border-radius: 999px; background: #f0e5d1;
  color: #50392a; text-decoration: none; font-weight: 700;
}
.reading-nav a:hover { background: #e8d5b9; text-decoration: underline }

.overview {
  padding: clamp(20px, 4vw, 39px); border-radius: 17px; color: #faf3e6;
  background: #214638 radial-gradient(circle at 90% 15%, #315c49, #214638 57%);
}
.overview :focus-visible { outline-color: #fac59a }
.overview-heading {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 15px 25px; align-items: end;
}
.overview-heading .kicker { color: #f8b58c }
.overview-heading .kicker span { background: #f8b58c }
.overview-heading > p { max-width: 39ch; margin: 0; color: #dae9d9 }
.feature-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px;
  margin-top: 20px;
}
.feature-grid article {
  display: flex; flex-direction: column; min-width: 0; padding: 14px;
  border: 1px solid #628373; border-radius: 11px; background: #315847;
}
.feature-grid h3 { margin-top: 9px; font-size: 1.2rem }
.feature-grid p { margin: 7px 0 11px; color: #e2ecdf; font-size: max(var(--copy-min, 0px), .91rem) }
.feature-grid a { margin-top: auto; font-size: max(var(--copy-min, 0px), .86rem); font-weight: 700; color: #ffd2b2 }
.feature-icon {
  position: relative; display: block; width: 36px; height: 36px;
  border-radius: 9px; color: #68361e; background: #f6c59c;
}
.feature-icon::before, .feature-icon::after { content: ""; position: absolute }
.icon-paper::before { inset: 8px 11px 8px; border: 1.5px solid currentColor; border-radius: 2px }
.icon-paper::after { top: 13px; left: 14px; width: 8px; height: 1.5px; background: currentColor; box-shadow: 0 4px currentColor, 0 8px currentColor }
.icon-stack::before, .icon-stack::after { width: 14px; height: 17px; border: 1.5px solid currentColor; border-radius: 2px }
.icon-stack::before { top: 8px; left: 13px }
.icon-stack::after { top: 12px; left: 9px; background: #f6c59c }
.icon-archive::before { width: 18px; height: 15px; top: 12px; left: 9px; border: 1.5px solid currentColor; border-radius: 2px }
.icon-archive::after { width: 10px; height: 1.5px; top: 17px; left: 13px; background: currentColor; box-shadow: 0 -7px currentColor }
.icon-print::before { width: 20px; height: 12px; top: 13px; left: 8px; border: 1.5px solid currentColor; border-radius: 3px }
.icon-print::after { width: 12px; height: 8px; top: 21px; left: 12px; border: 1.5px solid currentColor; background: #f6c59c }

.use-cases {
  margin-top: 38px; border-radius: 15px; border: 1px solid #e1d4b8;
  background: #fffcf3; overflow: hidden;
}
.use-cases:has(.case-photo) { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr) }
.use-cases-copy { padding: clamp(18px, 4vw, 35px) }
.use-cases-copy h2 { font-size: clamp(1.95rem, 3.6vw, 3.08rem) }
.use-cases-copy > p:not(.kicker) { max-width: 51ch; margin: 11px 0; color: #525c48 }
.use-cases-list { margin: 12px 0 0 }
.use-cases-list div { padding: 8px 0; border-top: 1px solid #e9dec8 }
.use-cases-list dt { font-weight: 700 }
.use-cases-list dd { margin: 2px 0 0; font-size: max(var(--copy-min, 0px), .92rem); color: #525c48 }
.case-photo { position: relative; min-width: 0; min-height: 340px; margin: 0; background: #b48b6a }
.case-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 54% 50% }

.editorial-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 17px 24px;
  margin-top: 39px; padding: clamp(17px, 4vw, 34px);
  border-radius: 13px; background: #efd4b3; color: #35291d;
}
.editorial-cta h2 { font-size: clamp(1.8rem, 3.3vw, 2.8rem) }
.editorial-cta p { margin: 7px 0 0; max-width: 44ch }
.editorial-cta a { flex: none; background: #873722; color: white; font-weight: 700 }
.editorial-cta a:hover { background: #6b2a1c; color: white }
.guide { margin-top: 48px; padding-bottom: 0 }
.guide-grid { margin-top: 17px; gap: 19px }
.guide-grid article {
  padding: 16px 18px;
  border: 1px solid #dfd4be;
  border-radius: 10px;
  background: #fffcf3;
}
.guide-icon {
  display: inline-grid; place-items: center; min-width: 34px; min-height: 34px;
  margin-bottom: 11px; border-radius: 50%; color: #753622; background: #f9e1d0;
  font: 700 max(var(--copy-min, 0px), .88rem) var(--mono);
}
.guide-grid h3 { font-size: 1.22rem }
.example-layout, .routine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 17px;
  margin-top: 18px;
}
.receipt-example { margin: 0 }
.receipt-example img { display: block; width: 100%; height: auto; border-radius: 12px }
.receipt-example figcaption { margin-top: 7px; color: var(--muted); font-size: max(var(--copy-min, 0px), .86rem) }
.example-copy, .routine-grid article {
  padding: 17px;
  border: 1px solid #dfd4be;
  border-radius: 10px;
  background: var(--paper);
}
.example-copy p, .routine-grid p, .editorial-note { margin: 9px 0 0; color: var(--muted) }
.example-copy ul, .routine-grid ol { margin: 11px 0 0; padding-left: 1.22em }
.example-copy li, .routine-grid li { margin-bottom: 6px }
.check-list li::marker { color: #a93620 }
.editorial-note { margin-top: 12px; font-size: max(var(--copy-min, 0px), .91rem) }
.editorial-note a, .faq a { color: #873a25 }
.table-wrap { min-width: 0; overflow-x: auto; margin-top: 14px; border: 1px solid #dfd4be; border-radius: 9px; background: var(--paper) }
.table-wrap table { width: 100%; min-width: 500px; border-collapse: collapse; text-align: left; font-size: max(var(--copy-min, 0px), .91rem) }
.table-wrap caption { padding: 9px 12px; color: var(--muted); text-align: left }
.table-wrap th, .table-wrap td { padding: 8px 11px; border-top: 1px solid #e6decb; vertical-align: top }
.table-wrap thead { background: #e6eee0 }
.table-wrap thead th { color: #284537 }
.csv-guide {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);
  gap: 15px 22px;
  margin-top: 11px;
  padding: 17px 19px;
  border: 1px dashed #b5c5af;
  border-radius: 9px;
  background: #edf2e5;
}
.csv-guide h3 { font-size: 1.19rem }
.csv-guide p { color: var(--muted); font-size: max(var(--copy-min, 0px), .92rem); margin: 6px 0 0 }
.csv-guide pre {
  overflow: auto;
  margin: 0;
  padding: 11px 13px;
  border-radius: 7px;
  color: #e9f2e5;
  background: #214638;
  font: max(var(--copy-min, 0px), .79rem)/1.55 var(--mono);
}
.faq { margin-top: 42px; padding: clamp(15px, 3vw, 28px); border-radius: 14px; background: #ebeede; border: 1px solid #d5dac4 }
.faq-intro { max-width: 32ch; margin: 10px 0 0; color: #4a5844 }
.faq-list details[open] summary { color: #753622 }
.site-footer { color: #fff9eb; background: #233e32 }
.site-footer p, .site-footer nav { color: #e2e8d8 }
.site-footer nav { display:flex; flex-wrap:wrap; gap: 8px 17px; font-size: max(var(--copy-min, 0px), .89rem) }
.site-footer .brand > span:last-child { color: #ffae8b }
.site-footer :focus-visible { outline-color: #ffd1a6 }
.legal { padding-block: 40px 58px }
.legal-lead { max-width: 660px; font-size: 1.11rem; color: var(--muted); margin-block: 14px 22px }
.legal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px }
.legal article { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px }
.legal article h2 { font-size: 1.47rem }
.legal article p { color: var(--muted); margin: 7px 0 0 }
.legal article a { color: #893b24 }

@media (max-width: 850px) {
  .shell { width: calc(100% - 42px) }
  .single-grid { grid-template-columns: 1.14fr .86fr }
  .receipt-form, .extra-panel { padding-inline: 16px }
  .preview { padding-inline: 17px }
  .form-actions .button { padding-inline: 11px }
  .paper { padding-inline: 13px }
  .paper-details div { grid-template-columns: 77px minmax(0, 1fr) }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 28px) }
  .header-inner { min-height: 59px; gap: 7px }
  .brand { font-size: 1.38rem }
  .header-inner nav { gap: 10px; font-size: max(var(--copy-min, 0px), .85rem) }
  .workspace { padding-top: 21px }
  .section-head { margin-bottom: 14px }
  .workspace h1, .legal h1 { font-size: clamp(2.32rem, 9.1vw, 3.45rem) }
  .section-head > p { margin: 7px 0 0; font-size: max(var(--copy-min, 0px), .94rem) }
  .workspace-card { border-radius: 13px }
  .tabstrip { padding: 6px; gap: 2px }
  .tabstrip a { font-size: max(var(--copy-min, 0px), .84rem); padding: 6px 8px }
  .single-grid, .guide-grid, .csv-guide, .faq, .legal-grid, .example-layout, .routine-grid { grid-template-columns: minmax(0, 1fr) }
  .receipt-form, .extra-panel { padding: 16px 13px }
  .form-head { margin-bottom: 12px; gap: 6px }
  .form-head h2,.form-head h3 { font-size: 1.2rem }
  .backup-box { grid-template-columns: minmax(0,1fr) }
  .field-grid { gap: 10px 8px }
  .field-grid label small { display: none }
  .paper { padding-inline: 18px }
  .guide, .faq { margin-top: 30px }
  .guide-grid, .faq { gap: 9px }
  .guide-grid article { padding: 13px 15px }
  .reading-nav { margin-block: 18px }
  .reading-nav strong { flex-basis: 100% }
  .overview-heading, .use-cases:has(.case-photo) { grid-template-columns: 1fr }
  .feature-grid article { padding: 11px }
  .case-photo { min-height: 225px; aspect-ratio: 1.68 }
  .editorial-cta { align-items: flex-start; flex-direction: column }
  .editorial { padding-bottom: 34px }
  .legal { padding-block: 26px 35px }
}
@media (max-width: 395px) {
  .header-inner { flex-wrap: wrap; padding-block: 9px }
}
@media (max-width: 345px) {
  .tabstrip a { padding-inline: 6px }
}

@media print {
  body.has-print-pages { color: #182b21 }
  #print-pages .paper {
    width: 145mm; max-width: 100%; margin: 9mm auto 0; padding: 10mm 9mm 8mm;
    box-shadow: none; animation: none; break-inside: avoid; break-after: page;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  #print-pages .paper:last-child { break-after: auto }
  #print-pages .paper[data-layout="ticket"] { border: 1px dashed #b8a585; border-bottom: 0 }
  #print-pages .paper-head strong { font-size: 15pt }
  #print-pages .paper-price strong { font-size: 27pt }
  #print-pages .paper-details { margin-bottom: 13mm; gap: 3mm }
  #print-pages .paper-details div { grid-template-columns: 29mm minmax(0,1fr) }
  #print-pages .paper-details .paper-meta { grid-template-columns: 15mm minmax(0,1fr) 13mm minmax(0,1.3fr) }
  #print-pages .paper-details dd { font-size: max(var(--copy-min, 0px), 10pt) }
}
