/* An ungated pilot tool using the landing page's type, color and spacing system. */
.note-page { --ink: #202020; --muted: var(--paper-muted); --line: var(--paper-line); color-scheme: light; background: var(--paper-bg); color: var(--ink); }
.note-nav { background: #090a0b; border-color: #2b2d30; color: #f5f5f2; }
.note-nav .text-link { font-size: 12px; gap: 12px; }
.note-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; padding-block: 52px 32px; }
.note-intro .eyebrow { color: var(--paper-muted); margin-bottom: 20px; }
.note-intro h1 { font-size: clamp(38px,4.5vw,64px); line-height: 1.08; letter-spacing: -.05em; margin-bottom: 0; }
.note-intro h1 span { color: var(--paper-muted); }
.note-intro > div > p:not(.eyebrow) { color: var(--paper-muted); font-size: 15px; line-height: 1.8; max-width: 420px; }
.note-intro .note-availability { margin-top: 16px; font-size: 11px !important; color: var(--paper-strong) !important; }
.note-workbench { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-surface); overflow: hidden; }
.note-inputs { padding: 32px; }
.note-panel-heading { padding-bottom: 24px; }
.note-panel-heading .eyebrow { font-size: 9px; color: var(--paper-muted); margin-bottom: 12px; }
.note-panel-heading h2 { font-size: 28px; letter-spacing: -.04em; line-height: 1.2; }
.note-panel-heading > p:last-child { font-size: 13px; color: var(--paper-muted); line-height: 1.8; margin-top: 12px; }
.note-inputs label { display: block; color: var(--paper-strong); font-size: 13px; font-weight: 550; margin-bottom: 10px; }
.note-inputs label > span { display: inline-block; color: var(--paper-muted); font-size: 10px; font-weight: 400; padding-left: 6px; }
.note-workbench :is(input,textarea,select) { font: inherit; font-size: 16px; color: #202020; background: var(--paper-surface); width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--paper-edge); border-radius: 9px; padding: 12px; line-height: 1.7; }
.note-workbench textarea { resize: vertical; }
.note-workbench :is(input,textarea)::placeholder { color: var(--paper-muted); opacity: 1; }
.note-workbench select { min-height: 52px; font-size: 13px; padding-inline: 10px; }
.note-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 24px; }
.note-field-row input { font-size: 13px; min-height: 52px; }
.note-hint { font-size: 11px; color: var(--paper-muted); line-height: 1.8; margin-top: 8px; }
.note-local { font-size: 11px; color: var(--paper-muted); line-height: 1.8; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--paper-line); }
.note-output { padding: 28px; background: var(--paper-inset); border-left: 1px solid var(--paper-line); min-width: 0; }
.note-paper { border: 1px solid var(--paper-line); border-radius: 10px; padding: 24px; background: var(--paper-surface); box-shadow: 0 5px 18px #34343410; }
.note-paper-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--paper-line); padding-bottom: 16px; margin-bottom: 20px; }
.note-paper-top .eyebrow { color: var(--paper-muted); font-size: 8px; margin: 0; }
.note-paper-dot { width: 6px; height: 6px; background: #d83218; border-radius: 50%; }
.note-paper h2 { font-size: 29px; line-height: 1.2; letter-spacing: -.04em; }
.note-kind { color: var(--paper-muted); font: 8px/1.8 ui-monospace,monospace; letter-spacing: .04em; margin-top: 12px; }
.note-empty { padding-block: 36px; }
.note-empty > p { color: var(--paper-muted); font-size: 26px; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; }
.note-empty > span { display: block; max-width: 300px; color: var(--paper-muted); font-size: 12px; line-height: 1.8; margin-top: 18px; }
.note-ready { margin-top: 20px; }
.note-workbench #note-export-text { font-size: 12px; border-color: var(--paper-line); min-height: 260px; background: var(--paper-surface); }
.note-limits { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--paper-line); }
.note-limits strong { color: var(--paper-strong); font-size: 12px; font-weight: 550; }
.note-limits > p { color: var(--paper-muted); font-size: 11px; line-height: 1.8; margin-top: 6px; }
.note-export-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.note-export-actions .button { flex: 1; justify-content: space-between; font-size: 13px; min-height: 48px; padding: 14px 18px; gap: 16px; }
.note-download { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; background: transparent; color: var(--paper-strong); border: 1px solid var(--paper-edge); border-radius: 9px; font-size: 12px; padding: 12px 16px; }
.note-download .icon { width: 17px; height: 17px; }
.note-status { font-size: 12px; line-height: 1.8; color: var(--paper-strong); margin-top: 12px; }
.note-status:empty { display: none; }
.note-clear-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.note-clear-row p { color: var(--paper-muted); font-size: 10px; }
.note-clear-row button { color: var(--paper-strong); background: transparent; border: 0; border-bottom: 1px solid var(--paper-edge); min-height: 44px; padding: 8px 0; font-size: 11px; }
.note-clear-confirm { border-top: 1px solid var(--paper-line); padding-top: 16px; margin-top: 12px; }
.note-clear-confirm p { color: var(--paper-strong); font-size: 12px; line-height: 1.8; }
.note-clear-confirm > div { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.note-clear-confirm button { min-height: 44px; padding: 10px 16px; background: var(--paper-surface); color: var(--paper-strong); border: 1px solid var(--paper-edge); border-radius: 9px; font-size: 12px; }
.note-workbench button:disabled { opacity: .55; cursor: not-allowed; }
.note-bridge { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 64px; padding-block: 56px; }
.note-bridge .eyebrow { color: var(--paper-muted); margin-bottom: 16px; font-size: 9px; }
.note-bridge h2 { font-size: clamp(27px,3vw,36px); line-height: 1.2; letter-spacing: -.04em; }
.note-bridge h2 span { color: var(--paper-muted); }
.note-bridge p:not(.eyebrow) { color: var(--paper-muted); font-size: 13px; line-height: 1.8; margin-top: 20px; max-width: 620px; }
.note-bridge-actions { display: flex; align-items: start; flex-direction: column; gap: 20px; justify-self: end; }
.note-bridge-actions .text-link { color: var(--paper-strong); font-size: 12px; gap: 14px; }
.note-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--paper-line); color: var(--paper-muted); font-size: 11px; }
.note-footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.note-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.note-fallback { padding: 32px; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-surface); }
.note-fallback h2 { font-size: 24px; }
.note-fallback p, .note-fallback li { color: var(--paper-muted); font-size: 14px; line-height: 1.8; }
.note-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.note-page :is(button,select,textarea,input,a):focus-visible { outline: 2px solid #ac301b; outline-offset: 3px; }
.note-page .note-nav a:focus-visible { outline-color: #ff8164; }
@media (max-width: 1000px) { .note-intro { gap: 32px; } .note-field-row { grid-template-columns: 1fr; gap: 16px; } .note-inputs { padding: 24px; } .note-output { padding: 24px; } .note-paper { padding: 20px; } }
@media (max-width: 750px) {
 .note-intro { grid-template-columns: 1fr; gap: 18px; padding-block: 34px 24px; }
 .note-workbench { grid-template-columns: 1fr; }
 .note-output { border-left: 0; border-top: 1px solid var(--paper-line); }
 .note-bridge { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
 .note-bridge-actions { justify-self: start; }
 .note-workbench select, .note-field-row input { font-size: 16px; }
}
@media (max-width: 420px) { .note-nav { gap: 12px; } .note-nav img { width: 135px; } .note-nav .text-link { font-size: 11px; gap: 8px; } .note-nav .icon { width: 15px; height: 15px; } .note-inputs, .note-output { padding: 20px; } .note-export-actions { flex-direction: column; } .note-export-actions .note-download { justify-content: space-between; } .note-intro h1 { font-size: 38px; } .note-footer { align-items: start; flex-direction: column; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .note-page * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.note-summary { margin: 0; }
.note-summary-meta { margin-top: 24px; }
.note-summary-meta dl { margin: 0; }
.note-summary-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--paper-line); }
:is(.note-summary,.note-summary-meta) dt { color: var(--paper-muted); font-size: 10px; font-weight: 500; }
:is(.note-summary,.note-summary-meta) dd { margin: 6px 0 0; font-size: 13px; color: var(--paper-strong); line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.note-summary-observation { padding-block: 24px; }
.note-summary-observation dt, .note-summary-question dt { font: 8px/1.8 ui-monospace,monospace; letter-spacing: .06em; }
.note-summary-observation dd { color: #202020; font-size: 19px; line-height: 1.6; letter-spacing: -.015em; }
.note-summary-question { border-left: 2px solid #cc6148; padding-left: 16px; }
.note-summary-question dd { font-size: 14px; }
.note-started { font-size: 9px; color: var(--paper-muted); margin-top: 24px; line-height: 1.8; }
.note-manual { margin-top: 16px; }
.note-manual summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--paper-line); color: var(--paper-muted); font-size: 10px; list-style: none; cursor: pointer; }
.note-manual summary::-webkit-details-marker { display: none; }
.note-manual summary span { font-size: 16px; }
.note-manual[open] summary span { transform: rotate(45deg); }
@media (max-width: 420px) { .note-summary-meta { grid-template-columns: 1fr; gap: 14px; } }

/* Keep the keyboard skip link visually hidden until focused, including mobile captures. */
.note-page .skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; }
/* Optional offline preparation stays compact until a pilot chooses to use it. */
.note-offline { margin-bottom: 28px; border: 1px solid var(--paper-line); border-radius: 12px; background: var(--paper-soft); overflow: hidden; }
.note-offline-panel > summary { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 20px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--paper-strong); }
.note-offline-panel > summary::-webkit-details-marker { display: none; }
.note-offline-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; color: var(--paper-muted); border-radius: 9px; background: var(--paper-icon); }
.note-offline-icon .icon { width: 18px; height: 18px; }
.note-offline-chevron { margin-left: auto; font-size: 19px; }
.note-offline-panel[open] > summary { border-bottom: 1px solid var(--paper-line); }
.note-offline-panel[open] > summary .note-offline-chevron { transform: rotate(180deg); }
.note-offline-body { display: flex; align-items: start; gap: 24px; padding: 20px; }
.note-offline-copy { flex: 1; min-width: 0; }
.note-offline-copy > p { font-size: 12px; color: var(--paper-muted); line-height: 1.8; max-width: 650px; }
.note-offline-help { margin-top: 4px; }
.note-offline-help summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper-strong); font-size: 11px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.note-offline-help p { font-size: 12px; line-height: 1.8; color: var(--paper-muted); max-width: 650px; padding-bottom: 12px; }
.note-offline-status:empty { display: none; }
.note-offline-copy > .note-offline-status { color: var(--paper-strong); margin-top: 8px; }
.note-offline-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.note-offline-actions button { display: inline-flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 44px; padding: 12px 16px; font-size: 12px; color: #fff; background: #292929; border: 1px solid #292929; border-radius: 9px; }
.note-offline-actions button .icon { width: 17px; height: 17px; }
.note-offline-actions [data-offline-remove] { color: var(--paper-strong); background: transparent; border-color: transparent; justify-content: center; font-size: 11px; }
.note-offline-actions button:disabled { opacity: .6; cursor: not-allowed; }
.note-offline[data-ready="true"] .note-offline-icon { color: #292929; background: var(--paper-icon); }
.note-page a[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.note-offline summary:focus-visible { outline: 2px solid #ac301b; outline-offset: -4px; border-radius: 9px; }
@media (max-width: 750px) { .note-offline-body { flex-direction: column; gap: 14px; } .note-offline-actions { width: 100%; } .note-offline-panel > summary { font-size: 14px; padding-inline: 16px; } }

/* A quiet, opt-in bridge from a local observation to a product conversation. */
.note-inquiry { grid-column: 1 / -1; padding: 0 32px; background: var(--paper-surface); border-top: 1px solid var(--paper-line); }
.note-inquiry[hidden] { display: none; }
.note-inquiry > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-block: 12px; list-style: none; color: var(--paper-strong); font-size: 13px; font-weight: 550; cursor: pointer; }
.note-inquiry > summary::-webkit-details-marker { display: none; }
.note-inquiry > summary .icon { width: 18px; height: 18px; flex-shrink: 0; }
.note-inquiry[open] > summary .icon { transform: rotate(45deg); }
.note-inquiry-body { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 28px; margin-bottom: 28px; padding: 24px; border: 1px solid var(--paper-line); border-radius: 10px; background: var(--paper-surface); }
.note-inquiry-intro > p { color: var(--paper-muted); font-size: 13px; line-height: 1.8; }
.note-inquiry-intro > .note-inquiry-boundary { margin-top: 12px; font-size: 11px; }
.note-inquiry-prepare { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 10px 14px; margin-top: 18px; border: 1px solid var(--paper-edge); border-radius: 8px; color: var(--paper-strong); background: var(--paper-soft); font-size: 12px; }
.note-inquiry-prepare .icon { width: 16px; height: 16px; }
.note-inquiry-prepare[hidden] { display: none; }
.note-inquiry-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 0; }
.note-inquiry-heading h3 { font-size: 18px; letter-spacing: -.03em; line-height: 1.4; }
.note-inquiry-heading button { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--paper-edge); border-radius: 8px; background: transparent; color: var(--paper-strong); font-size: 22px; }
.note-inquiry-address { font-size: 10px; line-height: 1.9; color: var(--paper-muted); margin: 14px 0; }
.note-inquiry-address strong { font-weight: 500; color: var(--paper-strong); }
.note-inquiry-draft label { display: block; margin-bottom: 8px; font-size: 11px; line-height: 1.7; color: var(--paper-muted); }
.note-workbench #note-inquiry-text { font-size: 12px; min-height: 220px; background: var(--paper-bg); }
.note-inquiry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.note-inquiry-actions .button { min-height: 48px; font-size: 12px; padding: 12px 16px; gap: 14px; }
.note-inquiry-actions button { min-height: 44px; padding: 10px 0; color: var(--paper-strong); background: transparent; border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.note-inquiry-send-note { font-size: 11px; line-height: 1.8; color: var(--paper-muted); margin-top: 16px; }
.note-inquiry-status { grid-column: 1 / -1; font-size: 12px !important; color: var(--paper-strong) !important; margin-top: 12px; }
.note-inquiry-status:empty { display: none; }
@media (max-width:420px) { .note-inquiry-body { padding: 14px; } .note-inquiry-actions { align-items: stretch; flex-direction: column; gap: 4px; } .note-inquiry-actions .button { justify-content: space-between; } }
@media (forced-colors:active) { .note-inquiry-body,.note-inquiry-prepare,.note-inquiry-heading button { border-color: ButtonText; } }

@media (max-width:750px) { .note-inquiry { padding-inline: 20px; } .note-inquiry-body { grid-template-columns: 1fr; gap: 18px; padding: 18px; } }

.note-inquiry-intro h3 { color: #202020; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 18px; }
@media (max-width:750px) { .note-inquiry-intro h3 { font-size: 24px; margin-bottom: 14px; } }

/* Reopen a visitor-selected export without a stored library or automatic replacement. */
.note-reopen { margin-bottom: 28px; border: 1px solid var(--paper-line); border-radius: 12px; background: var(--paper-surface); overflow: hidden; }
.note-reopen[hidden] { display: none; }
.note-reopen summary { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 20px; list-style: none; cursor: pointer; color: var(--paper-strong); font-size: 15px; font-weight: 500; }
.note-reopen summary::-webkit-details-marker { display: none; }
.note-reopen-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: var(--paper-soft); border-radius: 9px; color: var(--paper-muted); }
.note-reopen-icon .icon { width: 18px; height: 18px; }
.note-reopen-chevron { margin-left: auto; font-size: 19px; }
.note-reopen details[open] > summary { border-bottom: 1px solid var(--paper-line); }
.note-reopen details[open] .note-reopen-chevron { transform: rotate(180deg); }
.note-reopen-body { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: start; gap: 24px 48px; padding: 28px; }
.note-reopen-intro h2 { color: #202020; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 18px; }
.note-reopen-intro > p { color: var(--paper-muted); font-size: 14px; line-height: 1.8; }
.note-reopen-intro .note-reopen-local { color: var(--paper-strong); font-size: 12px; margin: 14px 0 24px; }
.note-reopen label { display: block; color: var(--paper-strong); font-size: 12px; margin-bottom: 10px; }
.note-reopen input { display: block; width: 100%; min-width: 0; font-size: 12px; color: var(--paper-muted); border: 1px solid var(--paper-edge); padding: 8px; border-radius: 9px; background: var(--paper-bg); }
.note-reopen input::file-selector-button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--paper-edge); border-radius: 6px; margin-right: 12px; color: #202020; background: var(--paper-surface); font: inherit; }
.note-reopen-preview { min-width: 0; padding: 24px; border: 1px solid var(--paper-line); border-radius: 10px; background: var(--paper-bg); }
.note-reopen-preview[hidden] { display: none; }
.note-reopen-preview .eyebrow { font-size: 9px; margin-bottom: 14px; color: var(--paper-muted); }
.note-reopen-preview h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.03em; color: #202020; margin-bottom: 20px; }
.note-reopen-preview dl { display: grid; gap: 14px; }
.note-reopen-preview dt { color: var(--paper-muted); font-size: 10px; line-height: 1.6; margin-bottom: 4px; }
.note-reopen-preview dd { color: var(--paper-strong); font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-reopen-warning { color: #93301f; border-top: 1px solid var(--paper-line); padding-top: 16px; font-size: 12px; line-height: 1.8; margin-top: 20px; }
.note-reopen-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.note-reopen-actions .button { min-height: 48px; font-size: 12px; gap: 18px; padding: 12px 16px; }
.note-reopen-actions [data-reopen-cancel] { min-height: 44px; padding: 10px 0; border: 0; color: var(--paper-strong); background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.note-reopen-status { grid-column: 1 / -1; color: var(--paper-strong); font-size: 12px; line-height: 1.8; }
.note-reopen-status:empty { display: none; }
@media(max-width:750px) { .note-reopen-body { grid-template-columns: 1fr; gap: 22px; padding: 20px; } .note-reopen summary { padding-inline: 16px; font-size: 14px; } .note-reopen-preview { padding: 18px; } .note-reopen-intro h2 { font-size: 27px; } }
@media(max-width:420px) { .note-reopen-actions { align-items: stretch; flex-direction: column; gap: 4px; } .note-reopen-actions .button { justify-content: space-between; } }
@media(forced-colors:active) { .note-reopen,.note-reopen-preview,.note-reopen input,.note-reopen input::file-selector-button { border-color: ButtonText; } }

.note-reopen-intro { min-width: 0; }
.note-reopen-intro > .note-hint { font-size: 11px; }
.note-reopen-preview dd { margin: 0; }

/* Comparison uses the existing local-file panel and paper palette. */
.note-reopen-actions [data-compare-open] {
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid #af3926;
  border-radius: 8px;
  background: var(--paper-surface);
  color: #9c2919;
  font-size: 12px;
  font-weight: 600;
}
.note-reopen-actions [data-compare-open]:hover { background: var(--paper-soft); }
.note-reopen-actions [data-compare-open]:not([hidden]) ~ [data-reopen-apply] {
  background: var(--paper-surface);
  border: 1px solid var(--paper-edge);
  color: var(--paper-strong);
}
.note-reopen-actions [data-compare-open]:not([hidden]) ~ [data-reopen-apply] .icon { color: currentColor; }
.note-compare { grid-column: 1 / -1; min-width: 0; }
.note-compare[hidden], .note-reopen-status[hidden] { display: none; }
.note-compare-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.note-compare-head .eyebrow { margin-bottom: 12px; color: var(--paper-muted); font-size: 9px; }
.note-compare-head h2 { color: var(--ink); font-size: clamp(28px, 3.2vw, 45px); font-weight: 550; letter-spacing: -.045em; line-height: 1.1; }
.note-compare-head h2:focus-visible { outline: 2px solid #a93020; outline-offset: 4px; }
.note-compare-head p:last-child { margin-top: 10px; color: var(--paper-muted); font-size: 14px; line-height: 1.65; }
.note-compare-head button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--paper-edge);
  border-radius: 8px;
  background: var(--paper-surface);
  color: var(--paper-strong);
  font-size: 12px;
}
.note-compare-head button:hover { background: var(--paper-soft); }
.note-compare-head button .icon { width: 16px; height: 16px; }
.note-compare-row { padding-block: 14px; border-top: 1px solid var(--paper-line); }
.note-compare-row h3 { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.note-compare-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note-compare-cell {
  min-width: 0;
  padding: 12px 15px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: var(--paper-soft);
}
.note-compare-current { border-left: 2px solid #b64736; background: var(--paper-bg); }
.note-compare-label { margin-bottom: 6px; color: var(--paper-muted); font: 10px/1.6 ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; }
.note-compare-current .note-compare-label { color: #963728; }
.note-compare-cell [data-compare-field] { color: var(--paper-strong); font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-compare-cell [data-compare-field="aircraft"] { font-weight: 600; }
.note-compare-time, .note-compare-time [data-compare-field] { color: var(--paper-muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.note-compare-time { margin-top: 5px; }
.note-compare-foot { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--paper-line); color: var(--paper-muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 580px) {
  .note-compare-pair { grid-template-columns: 1fr; gap: 7px; }
  .note-compare-head { gap: 12px; margin-bottom: 18px; }
  .note-compare-cell { padding: 10px 12px; }
}
@media (forced-colors: active) {
  .note-compare-cell, .note-compare-head button, .note-reopen-actions [data-compare-open] { border-color: ButtonText; }
  .note-compare-current { border-left-color: Highlight; }
}


/* Keep collapsed utilities in one row on wide screens and give expanded tools the full width. */
.note-tools { display: grid; gap: 10px; }
.note-tools:has(> section:not([hidden])) { margin-bottom: 22px; }
.note-tools > section { min-width: 0; margin: 0; }
.note-tools > section > details > summary { min-height: 56px; padding-block: 10px; }
@media (min-width: 761px) {
 .note-tools:has(> .note-offline:not([hidden])):has(> .note-reopen:not([hidden])):not(:has(> section > details[open])) {
   grid-template-columns: repeat(2, minmax(0, 1fr));
 }
}
