@font-face { font-family: ReceiptMono; src: url('fonts/receipt/DejaVuSansMono.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: ReceiptSans; src: url('fonts/receipt/DejaVuSans.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: ReceiptSerif; src: url('fonts/receipt/DejaVuSerif.ttf') format('truetype'); font-display: swap; }
.jeffery-terminal { display: block; font-size: 1.35rem; line-height: 1.25; }
.jeffery-surface { margin-inline: auto; transform: none; }
.mobile-advice { display: none; color: var(--dim); font-size: 1rem; }
.content-type { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.content-type select { color: var(--ink); background: var(--screen); border: 1px solid var(--edge); padding: 7px 12px; font: inherit; }
#image-controls { margin-top: 16px; padding: 18px 12px; border: 1px solid var(--edge); }
#image-text-sections button { padding: 8px 12px; margin-bottom: 8px; border: 1px solid var(--edge); text-decoration: none; }
#image-text-sections button[aria-pressed='true'] { color: var(--screen); background: var(--ink); text-shadow: none; }
#image-file { display: block; max-width: 100%; margin: 18px 0; }
.jeffery-title { margin: 28px 0 24px; padding: 12px 16px; font-size: 2rem; line-height: 1; font-weight: 400; color: var(--screen); background: var(--ink); text-shadow: none; }
.identity-view { min-height: 400px; }
#identity-form { max-width: 680px; padding-top: 10px; }
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.identity-fields label { display: grid; gap: 10px; min-width: 0; }
.identity-fields input { width: 100%; padding: 12px; border: 1px solid var(--edge); border-radius: 0; color: var(--bright); background: var(--screen); font: 1rem/1.4 'Courier New', monospace; }
.remember-sender { display: flex; align-items: center; gap: 12px; margin: 26px 0; cursor: pointer; }
.remember-sender input { width: 17px; height: 17px; accent-color: var(--ink); }
.jeffery-primary { min-height: 45px; padding: 10px 18px; border: 1px solid var(--ink); color: var(--screen); background: var(--ink); text-shadow: none; }
.jeffery-primary:hover:not(:disabled) { background: var(--bright); }
.jeffery-primary:disabled { color: var(--dim); background: transparent; border-color: var(--edge); cursor: not-allowed; }
.identity-note { font-size: 1.1rem; color: var(--dim); }
.connection-feedback { min-height: 2.5em; margin-top: 14px; color: var(--dim); white-space: pre-line; overflow-wrap: anywhere; }
.connection-feedback.error { color: #ffb2a1; }
.jeffery-status { margin: 26px 0 -13px; font-size: 1.15rem; color: var(--dim); }
.jeffery-status[data-status='open'] { color: var(--bright); }
.sender-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; padding-bottom: 14px; border-bottom: 2px dotted var(--edge); }
.sender-strip p { margin: 0; overflow-wrap: anywhere; }
.jeffery-link { padding: 5px 0; border: 0; color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: 5px; }
.sender-strip .jeffery-link { flex-shrink: 0; font-size: 1.1rem; }
.jeffery-composition { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(25px, 5vw, 65px); align-items: start; }
.editor-heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.editor-heading > span + span { color: var(--dim); }
.formatting { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--edge); border-bottom: 0; background: var(--soft-glow); }
.line-indicator { width: 100%; color: var(--dim); font-size: 1.05rem; }
.formatting select { min-height: 38px; padding: 5px 10px; border: 1px solid var(--edge); border-radius: 0; color: var(--bright); background: var(--screen); }
#line-font { flex: 1; }
.line-alignment { display: flex; gap: 4px; }
.line-alignment button { width: 38px; min-height: 38px; padding: 5px; border: 1px solid var(--edge); color: var(--ink); background: transparent; }
.line-alignment button[aria-pressed='true'] { color: var(--screen); background: var(--ink); text-shadow: none; }
.line-editor { min-height: 260px; padding: 14px 10px; border: 1px solid var(--edge); background: var(--screen); }
.message-line { min-height: 1.3em; margin: 0; padding: 5px 8px; border-left: 2px solid transparent; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--bright); line-height: 1.3; text-shadow: none; cursor: text; }
.message-line.is-active { border-color: var(--bright); background: var(--soft-glow); }
.message-line:focus { outline: none; }
.message-line:empty::before { content: '\200b'; }
.print-button { width: 100%; margin-top: 20px; }
.receipt-preview h2 { margin: 0 0 12px; font: inherit; }
.receipt-stage { padding: 8px 8px 16px; background: radial-gradient(var(--edge) .6px, transparent .6px) 0 0 / 8px 8px; }
#receipt-preview { display: block; width: 260px; max-width: 100%; height: auto; margin: auto; background: #fff; box-shadow: 0 12px 28px #0005; }
.jeffery-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 35px; margin-top: 30px; padding: 20px 0 0; border-top: 2px dotted var(--edge); font-size: 1.15rem; }
.jeffery-footer a, .jeffery-footer button { color: var(--dim); text-decoration: none; }
.jeffery-footer button { margin-left: auto; }
.jeffery-footer a:hover, .jeffery-footer button:hover { color: var(--bright); text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .jeffery-composition { grid-template-columns: 1fr; gap: 28px; }
  .identity-fields { grid-template-columns: 1fr; }
  .jeffery-terminal { padding: 22px 18px; font-size: 1.2rem; }
  .jeffery-title { font-size: 1.6rem; }
  .sender-strip { gap: 12px; align-items: flex-start; }
  .formatting { gap: 7px; }
  .line-alignment { margin-left: auto; }
}
@media (max-width: 760px) and (pointer: coarse) {
  .mobile-advice { display: block; }
}
