/* ListingPixels workspace. No external assets or fonts. */
.lp-workspace { padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: 0; font-family: var(--lp-sans, sans-serif); color: var(--lp-ink, #202e29); }
.lp-workspace * { box-sizing: border-box; }
.lp-workspace [hidden] { display: none !important; }
.lp-intro { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 1.75rem; }
.lp-intro h1 { font: 400 clamp(1.85rem, 3.1vw, 2.8rem)/1.15 var(--lp-serif, Georgia, serif); letter-spacing: -.035em; margin: .65rem 0 .75rem; }
.lp-intro h1 em { font-weight: 400; color: var(--lp-pine, #235b49); }
.lp-intro p:not(.lp-eyebrow) { margin: 0; font-size: .9375rem; color: var(--lp-muted, #59665e); }
.lp-proof { color: var(--lp-rust, #a53d28); font-weight: 700; margin-right: .5rem; }
.lp-local-note { display: block; flex-shrink: 0; padding-left: 1.25rem; border-left: 1px solid var(--lp-line, #d0d5cc); font-size: .75rem; line-height: 1.8; color: var(--lp-pine, #235b49); }
.lp-local-note > span { margin-right: .4rem; }
.lp-local-note small { font-size: .6875rem; color: var(--lp-muted, #59665e); }
.lp-console { border: 1px solid var(--lp-control-line, #849287); border-radius: 4px; background: #fff; box-shadow: 0 4px 12px #202e2907; }
.lp-tool-nav { display: flex; align-items: stretch; border-bottom: 1px solid var(--lp-control-line, #849287); background: #eef0e9; border-radius: 4px 4px 0 0; }
.lp-tool-nav a { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .75rem clamp(.75rem, 1.7vw, 1.75rem); color: var(--lp-muted, #59665e); font-size: .8125rem; font-weight: 600; text-decoration: none; border-right: 1px solid var(--lp-line, #d0d5cc); box-shadow: inset 0 -3px transparent; }
.lp-tool-nav a:hover { background: #e2e8dd; color: var(--lp-ink, #202e29); }
.lp-tool-nav a:active { background: #d6e2d3; }
.lp-tool-nav a[aria-selected="true"] { background: #fff; color: var(--lp-pine, #235b49); box-shadow: inset 0 -3px var(--lp-pine, #235b49); }
.lp-tool-nav a:focus-visible { outline-offset: -5px; }
.lp-tab-number { font: .625rem var(--lp-mono, monospace); font-weight: 400; color: var(--lp-muted, #59665e); }
.lp-console-label { display: flex; align-items: center; margin-left: auto; padding-inline: 1.25rem; font: .5625rem var(--lp-mono, monospace); letter-spacing: .12em; color: var(--lp-muted, #59665e); }
.lp-workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.lp-source-pane, .lp-results-pane { min-width: 0; padding: clamp(1rem, 2.3vw, 2rem); }
.lp-source-pane { display: flex; flex-direction: column; }
.lp-results-pane { background: #f8f9f5; border-left: 1px solid var(--lp-line, #d0d5cc); }
.lp-pane-heading { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.lp-pane-heading label, .lp-pane-heading h2 { font: 600 .9375rem/1.4 var(--lp-sans, sans-serif); letter-spacing: -.01em; margin: 0; }
.lp-live-label { color: var(--lp-pine, #235b49); font: .625rem var(--lp-mono, monospace); white-space: nowrap; }
.lp-live-label::before { content: ''; width: 5px; height: 5px; display: inline-block; background: currentColor; border-radius: 50%; margin-right: .5rem; vertical-align: middle; }
.lp-field-help { margin: .5rem 0 1rem; font-size: .75rem; line-height: 1.65; color: var(--lp-muted, #59665e); }
.lp-workspace textarea, .lp-workspace input, .lp-workspace select { font-family: var(--lp-sans, sans-serif); color: var(--lp-ink, #202e29); background: #fff; border: 1px solid var(--lp-control-line, #849287); border-radius: 3px; width: 100%; max-width: 100%; min-height: 44px; font-size: 1rem; line-height: 1.65; padding: .65rem .8rem; transition: border-color .12s ease, box-shadow .12s ease; }
.lp-workspace :is(textarea, input, select):hover { border-color: var(--lp-pine, #235b49); }
.lp-workspace :is(textarea, input, select):focus-visible { outline: 3px solid var(--lp-rust, #a53d28); outline-offset: 3px; }
.lp-workspace :is(textarea, input, select)[aria-invalid="true"] { border: 2px solid var(--lp-rust, #a53d28); }
.lp-workspace :is(textarea, input, select):disabled { background: #e9ece5; color: #59665e; cursor: not-allowed; }
.lp-workspace textarea { resize: vertical; overflow-wrap: anywhere; white-space: pre-wrap; }
.lp-workspace textarea::placeholder, .lp-workspace input::placeholder { opacity: 1; color: #6a756e; }
.lp-workspace .lp-source { flex: 1; min-height: 325px; font-size: 1rem; line-height: 1.8; padding: 1rem; background: #fff; }
.lp-source-pane > .lp-field-help { min-height: 2.5em; }
.lp-source-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .5rem; margin-top: .75rem; }
.lp-action-group { display: flex; flex-wrap: wrap; gap: .25rem; }
.lp-button { appearance: none; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; border: 1px solid var(--lp-control-line, #849287); border-radius: 3px; padding: .55rem .9rem; font: 600 .75rem/1.5 var(--lp-sans, sans-serif); color: var(--lp-ink, #202e29); background: transparent; cursor: pointer; transition: background .12s ease, border-color .12s ease; }
.lp-button:hover { background: #e6ece1; border-color: var(--lp-pine, #235b49); }
.lp-button:active { background: #d4e1cf; }
.lp-button:focus-visible { outline: 3px solid var(--lp-rust, #a53d28); outline-offset: 3px; }
.lp-button-primary { background: var(--lp-pine, #235b49); color: #fff; border-color: var(--lp-pine, #235b49); }
.lp-button-primary:hover { color: #fff; background: #174334; border-color: #174334; }
.lp-button-primary:active { background: #0d3023; }
.lp-button-quiet { border-color: transparent; font-weight: 500; padding-inline: .5rem; }
.lp-button:disabled, .lp-button:disabled:hover, .lp-button:disabled:active { color: #626f65; background: #eff1eb; border-color: #cdd5c9; cursor: not-allowed; }
.lp-button-quiet:disabled { border-color: transparent; background: transparent; }
.lp-input-note { margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid var(--lp-line, #d0d5cc); font-size: .6875rem; color: var(--lp-muted, #59665e); }
/* Render one panel before scripts initialize to keep the editor height stable.
   Native fragment links still reveal each tool when JavaScript is unavailable. */
.lp-tool-panel { display: none; scroll-margin-top: 1.5rem; min-height: 484px; }
.lp-tool-panel:first-child, .lp-tool-panel:target { display: block; }
.lp-results-pane:has(.lp-tool-panel:target) .lp-tool-panel:first-child:not(:target) { display: none; }
.lp-enhanced .lp-tool-panel { display: block; border: 0; margin: 0; padding: 0; }
.lp-word-total { display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: baseline; margin-block: 1rem; }
.lp-word-total > strong { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 500; letter-spacing: -.065em; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lp-word-total > span { color: var(--lp-muted, #59665e); font-family: var(--lp-serif, Georgia, serif); font-size: 1.25rem; }
.lp-word-total > p { grid-column: 1 / -1; color: var(--lp-muted, #59665e); font-size: .75rem; margin: .75rem 0 0; min-height: 1.65em; }
.lp-stat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 1.25rem 0 0; border-top: 1px solid var(--lp-line, #d0d5cc); }
.lp-stat-grid > div { min-width: 0; padding: .7rem 0 .75rem; border-bottom: 1px solid var(--lp-line, #d0d5cc); }
.lp-stat-grid > div:nth-child(odd) { border-right: 1px solid var(--lp-line, #d0d5cc); padding-right: 1rem; }
.lp-stat-grid > div:nth-child(even) { padding-left: 1.5rem; }
.lp-stat-grid dt { font-size: .6875rem; color: var(--lp-muted, #59665e); }
.lp-stat-grid dd { margin: .2rem 0 0; font: 500 1.4rem/1.3 var(--lp-sans, sans-serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lp-reading-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: .75rem; font-size: .75rem; border-bottom: 1px solid var(--lp-line, #d0d5cc); }
.lp-reading-row strong { font-weight: 600; }
.lp-goal-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; }
.lp-goal-row label { font-size: .75rem; }
.lp-goal-row label span { color: var(--lp-muted, #59665e); display: inline-block; }
.lp-workspace .lp-goal-row input { width: 120px; flex-shrink: 0; padding: .4rem .65rem; }
.lp-workspace progress { appearance: none; display: block; width: 100%; height: 5px; border: 0; background: #d8e0d3; margin-top: 1rem; accent-color: var(--lp-pine, #235b49); }
.lp-workspace progress::-webkit-progress-bar { background: #d8e0d3; }
.lp-workspace progress::-webkit-progress-value { background: var(--lp-pine, #235b49); }
.lp-workspace progress::-moz-progress-bar { background: var(--lp-pine, #235b49); }
.lp-method { border-top: 1px solid var(--lp-line, #d0d5cc); margin-top: 1rem; }
.lp-method summary { min-height: 44px; display: list-item; align-content: center; padding: .7rem 0; cursor: pointer; font-size: .6875rem; color: var(--lp-pine, #235b49); }
.lp-method summary:hover { color: #174334; text-decoration: underline; }
.lp-method summary:active { color: #a53d28; }
.lp-method p { font-size: .75rem; color: var(--lp-muted, #59665e); margin: .25rem 0 .75rem; }
.lp-control-label { display: block; font-size: .75rem; font-weight: 600; margin: 1rem 0 .4rem; }
.lp-workspace select { cursor: pointer; padding-right: 2rem; }
.lp-workspace .lp-output { font: .875rem/1.8 var(--lp-mono, monospace); background: #fff; }
.lp-workspace .lp-case-output { min-height: 220px; }
.lp-workspace .lp-slug-output { min-height: 120px; }
.lp-output-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.lp-url-preview { padding-block: 1.5rem 1rem; margin-top: 1.5rem; border-top: 1px solid var(--lp-line, #d0d5cc); }
.lp-url-preview p { margin: .5rem 0 .75rem; font: .875rem/1.8 var(--lp-mono, monospace); overflow-wrap: anywhere; }
.lp-url-preview p > span { color: var(--lp-muted, #59665e); }
.lp-url-preview strong { color: var(--lp-pine, #235b49); font-weight: 500; }
.lp-url-preview small { font-size: .6875rem; color: var(--lp-muted, #59665e); }
.lp-error { font-size: .75rem; color: var(--lp-rust, #a53d28); background: #fff2ec; border-left: 3px solid var(--lp-rust, #a53d28); margin: .75rem 0; padding: .5rem .75rem; overflow-wrap: anywhere; }
.lp-error::before { content: 'Note: '; font-weight: 700; }
.lp-notice { padding: 1rem; border: 1px solid #a53d28; color: #202e29; background: #fff2ec; font-size: .875rem; }
.lp-console-bottom { padding: .65rem clamp(1rem, 2.3vw, 2rem); border-top: 1px solid var(--lp-line, #d0d5cc); background: #eef0e9; border-radius: 0 0 4px 4px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; }
.lp-console-bottom p { margin: 0; font-size: .6875rem; color: var(--lp-muted, #59665e); }
.lp-console-bottom p > span[aria-hidden] { color: var(--lp-rust, #a53d28); margin-right: .4rem; }
.lp-console-bottom .lp-status { font-family: var(--lp-mono, monospace); color: var(--lp-pine, #235b49); min-height: 1.65em; overflow-wrap: anywhere; }
.lp-desk-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-block: 1.75rem clamp(2.5rem, 5vw, 4rem); }
.lp-desk-notes > div { padding-left: 1rem; border-left: 1px solid var(--lp-line, #d0d5cc); }
.lp-desk-notes p { font-size: .75rem; color: var(--lp-muted, #59665e); margin: .4rem 0 0; }
@media (min-width: 768px) { .lp-workbench { min-height: 560px; } }
@media (max-width: 1100px) {
  .lp-console-label { display: none; }
  .lp-local-note { display: none; }
}
@media (max-width: 767px) {
  .lp-workbench { grid-template-columns: minmax(0, 1fr); }
  .lp-results-pane { border-left: 0; border-top: 1px solid var(--lp-line, #d0d5cc); }
  .lp-intro { margin-bottom: 1.5rem; }
  .lp-intro h1 em { display: block; }
  .lp-tool-nav { overflow-x: auto; scrollbar-width: thin; }
  .lp-tool-nav a { flex: 1 0 auto; min-height: 54px; font-size: .75rem; gap: .4rem; padding-inline: .9rem; }
  .lp-tool-nav .lp-tab-number { display: none; }
  .lp-workspace .lp-source { min-height: 240px; }
  .lp-source-pane > .lp-field-help { min-height: 0; }
  .lp-tool-panel { min-height: 0; }
  .lp-desk-notes { gap: 1rem; }
  .lp-desk-notes br { display: none; }
  .lp-goal-row { gap: .5rem; }
  .lp-word-total > strong { font-size: clamp(3rem, 12vw, 4rem); }
}
@media (max-width: 520px) {
  .lp-desk-notes { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .lp-desk-notes p { margin-top: .25rem; }
  .lp-console-bottom { align-items: flex-start; flex-direction: column; padding-block: .75rem; }
  .lp-source-actions { align-items: flex-start; }
  .lp-action-group { margin-left: auto; }
  .lp-workspace .lp-goal-row input { width: 108px; }
  .lp-pane-heading { align-items: baseline; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-workspace *, .lp-workspace *::before, .lp-workspace *::after { animation: none !important; transition: none !important; }
}
