/* Shared working surfaces follow the directory's typography and cobalt accent. */
.audio-waveform { display: block; width: 100%; height: auto; background: var(--paper); border: 1px solid var(--line); margin: 24px 0 12px; }
.tool-workspace .markdown-source { min-height: 440px; font-family: ui-monospace, Consolas, monospace; }
.markdown-preview { padding: 24px; margin-top: 24px; background: var(--paper); border: 1px solid var(--line); line-height: 1.8; overflow-wrap: anywhere; }
.markdown-preview:empty { display: none; }
.markdown-preview > :first-child { margin-top: 0; }
.markdown-preview > :last-child { margin-bottom: 0; }
.markdown-preview :is(h1,h2,h3,h4,h5,h6) { margin: 1.4em 0 0.6em; line-height: 1.45; letter-spacing: -0.03em; }
.markdown-preview h1 { font-size: 30px; }
.markdown-preview h2 { font-size: 24px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.markdown-preview h3 { font-size: 20px; }
.markdown-preview :is(h4,h5,h6) { font-size: 17px; }
.markdown-preview :is(p,ul,ol,blockquote,pre,table) { margin: 1em 0; }
.markdown-preview :is(ul,ol) { padding-left: 1.5em; }
.markdown-preview li > :is(ul,ol) { margin: 0.3em 0; }
.markdown-preview blockquote { margin-left: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.markdown-preview code { font: 0.9em/1.65 ui-monospace, Consolas, monospace; background: var(--subtle); padding: 2px 4px; }
.markdown-preview pre { padding: 16px; overflow-x: auto; background: var(--subtle); }
.markdown-preview pre code { padding: 0; }
.markdown-preview table { border-collapse: collapse; table-layout: fixed; width: 100%; }
.markdown-preview :is(th,td) { border: 1px solid var(--line); padding: 8px; text-align: left; overflow-wrap: anywhere; }
.markdown-preview th { background: var(--subtle); font-weight: 650; }
.markdown-preview .markdown-align-center { text-align: center; }
.markdown-preview .markdown-align-right { text-align: right; }
.markdown-link { color: var(--accent); text-decoration: underline; }
.markdown-image { color: var(--muted); font-size: 0.95em; }
.markdown-preview hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
@page sseulmo-markdown { size: A4 portrait; margin: 16mm; }
@media print {
  body.markdown-print { background: white; color: black; min-width: 0; }
  body.markdown-print > :not(main), body.markdown-print .detail-page > :not(.tool-workspace),
  body.markdown-print .markdown-layout > .tool-inputs, body.markdown-print .markdown-screen-only { display: none !important; }
  body.markdown-print main, body.markdown-print .detail-page, body.markdown-print .tool-workspace,
  body.markdown-print .markdown-layout, body.markdown-print .tool-results { display: block; width: auto; max-width: none; margin: 0; padding: 0; border: 0; background: white; }
  body.markdown-print .markdown-preview { page: sseulmo-markdown; margin: 0; padding: 0; border: 0; font-size: 11pt; }
  body.markdown-print .markdown-preview :is(h1,h2,h3,h4,h5,h6) { break-after: avoid; }
  body.markdown-print .markdown-preview pre { white-space: pre-wrap; overflow: visible; }
  body.markdown-print .markdown-preview tr { break-inside: avoid; }
}
.password-options { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; border: 0; }
.password-options legend { margin-bottom: 12px; font-size: 14px; font-weight: 550; }
.password-options label { min-height: 32px; align-items: center; }
.checklist-sheet { color-scheme: light; background: #fff; color: #141820; padding: 24px; border: 1px solid var(--line); }
.checklist-sheet h2 { margin: 0 0 24px; font-size: 24px; line-height: 1.5; overflow-wrap: anywhere; }
.checklist-items { list-style: none; padding: 0; margin: 0; }
.checklist-items li { border-bottom: 1px solid #dfe1e6; break-inside: avoid; }
.checklist-items label { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 12px 0; font-size: 16px; line-height: 1.6; cursor: pointer; }
.checklist-items span { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.tool-workspace .checklist-items input[type="checkbox"] { appearance: none; border: 1.5px solid currentColor; border-radius: 0; width: 20px; height: 20px; background: white; color: #141820; display: grid; place-content: center; }
.checklist-items input:checked::after { content: '✓'; font-size: 17px; font-weight: 700; line-height: 1; }
@page sseulmo-checklist { size: A4 portrait; margin: 16mm; }
@media print {
  body.checklist-print { background: white; color: black; min-width: 0; }
  body.checklist-print > :not(main),
  body.checklist-print .detail-page > :not(.tool-workspace),
  body.checklist-print .checklist-layout > .tool-inputs,
  body.checklist-print .checklist-screen-only { display: none !important; }
  body.checklist-print main, body.checklist-print .detail-page,
  body.checklist-print .tool-workspace, body.checklist-print .checklist-layout,
  body.checklist-print .tool-results { display: block; width: auto; max-width: none; margin: 0; padding: 0; border: 0; background: white; }
  body.checklist-print .checklist-sheet { page: sseulmo-checklist; border: 0; padding: 0; }
  body.checklist-print .checklist-sheet h2 { font-size: 20pt; break-after: avoid; }
  body.checklist-print .checklist-items label { font-size: 11pt; min-height: 10mm; padding: 3mm 0; }
}
.everyday-row { min-width: 0; margin: 24px 0; padding: 20px 0; border: 0; border-top: 1px solid var(--line); }
.everyday-row legend { padding: 0 12px 0 0; font-size: 14px; font-weight: 650; }
.everyday-output { min-height: 340px !important; }
.zone-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; padding: 20px 0; margin-top: 24px; }
.zone-options legend { font-size: 14px; font-weight: 650; }
.timer-display { font-size: clamp(25px, 4vw, 44px); letter-spacing: -0.5px; }
.timer-laps { padding-left: 24px; font-variant-numeric: tabular-nums; }
.timer-laps li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pixel-scroll { overflow: auto; max-height: 65vh; margin: 20px 0; border: 1px solid var(--line); }
.pixel-readout { position: sticky; top: 0; left: 0; z-index: 1; padding: 10px; background: var(--paper); border-bottom: 1px solid var(--line); font: 13px/1.5 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.pixel-scroll .pixel-canvas { width: 100%; max-width: none; margin: 0; image-rendering: pixelated; }
.pixel-zoom-2 .pixel-canvas { width: 200%; }
.pixel-zoom-4 .pixel-canvas { width: 400%; }
.pixel-zoom-8 .pixel-canvas { width: 800%; }
.pixel-lens, .pixel-swatch { display: block; max-width: 100%; border: 1px solid var(--line); background: repeating-conic-gradient(#e4e6eb 0% 25%, white 0% 50%) 0 0 / 16px 16px; }
.pixel-lens { width: 176px; height: 176px; }
.pixel-swatch { width: 176px; height: 40px; margin: 16px 0; }
.pixel-code-row { margin-top: 24px; }
.pixel-code-row .tool-field { margin-bottom: 10px; }
.pixel-code-row input { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.image-source { position: relative; border: 1px dashed var(--line); padding: 16px; margin-bottom: 20px; }
.image-source.is-dragging { border-color: var(--accent); background: var(--accent-light); }
.image-source-label { display: block; font-size: 14px; font-weight: 550; margin-bottom: 10px; }
.image-source-control { display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--paper); }
.tool-workspace .image-source-control input { flex: 1; min-width: 0; width: 0; border: 0; background: transparent; }
.image-source-control .outline-button { flex: 0 0 auto; border: 0; border-left: 1px solid var(--line); padding: 12px; }
.image-source-control:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-workspace .image-source-native { position: absolute; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0; clip-path: inset(50%); overflow: hidden; opacity: 0; }
.image-source-help summary { font-size: 13px; min-height: 32px; cursor: pointer; color: var(--muted); }
.image-source [data-source-status]:empty { display: none; }
@media (min-width: 851px) { .tool-layout.pixel-layout { grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); } }
.dev-tool .dev-code { font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.dev-result-list { margin-top: 0; }
.dev-result-list > div { display: block; }
.dev-result-list dd { margin-top: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dev-result-list dt { font-weight: 500; }
.dev-table-scroll { max-width: 100%; overflow-x: auto; margin-top: 28px; }
.dev-query-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.dev-query-table caption { text-align: left; margin-bottom: 12px; font-weight: 600; }
.dev-query-table :is(th, td) { width: 50%; padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.dev-query-table th { border-top: 1px solid var(--line); }
.dev-color-preview { margin: 24px 0 0; }
.dev-color-preview canvas { display: block; width: 100%; height: 160px; border: 1px solid var(--line); }
.tool-workspace {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.tool-workspace > .tool-section-title { padding: 20px 32px; margin: 0; border-bottom: 1px solid var(--line); }
.tool-inputs,
.tool-results {
  min-width: 0;
  padding: 32px;
}
.tool-results {
  background: var(--subtle);
  border-left: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.tool-section-title,
.tool-inputs > h2,
.tool-results > h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 24px;
  letter-spacing: -0.4px;
}
.tool-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 550;
}
.tool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tool-workspace :is(input, select, textarea, button) { font: inherit; }
.tool-workspace :is(input:not([type="checkbox"]):not([type="range"]):not([type="file"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}
.tool-workspace select { padding-right: 30px; }
.tool-workspace textarea {
  min-height: 240px;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tool-workspace textarea[readonly] { background: var(--paper); }
.tool-workspace :is(select, textarea, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tool-workspace input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.tool-workspace input[type="range"] {
  width: 100%;
  min-height: 32px;
  accent-color: var(--accent);
}
.tool-workspace [aria-invalid="true"] { border-color: var(--error) !important; }
.tool-options { display: grid; gap: 12px; margin: 4px 0 24px; }
.tool-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tool-actions > :is(button, a) { min-height: 48px; }
.tool-workspace :is(button, input, select):disabled,
.tool-workspace [aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.tool-hint,
.tool-privacy,
.result-detail,
.image-meta { font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.75; }
.tool-hint { margin: 12px 0; }
.tool-field .tool-hint { margin: 0; }
.tool-privacy { margin: 16px 0 0; font-size: 13px; }
.tool-error { color: var(--error); font-size: 14px; line-height: 1.7; margin-top: 16px; }
.tool-error:empty { display: none; }
.result-label { display: block; color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.result-value {
  display: block;
  color: var(--accent);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  margin-bottom: 16px;
}
.result-list { margin: 24px 0 0; padding: 0; }
.result-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.result-list dt { color: var(--muted); font-size: 14px; }
.result-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-list dd.result-value { font-size: 20px; line-height: 1.5; letter-spacing: -0.4px; }
.tool-check + .tool-fields { margin-top: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.stat-item { min-width: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.stat-item :is(dt, .result-label) { font-size: 14px; color: var(--muted); }
.stat-item :is(dd, .result-value) { font-size: 32px; font-weight: 700; color: var(--accent); margin: 6px 0 0; line-height: 1.3; }
.file-picker {
  display: block;
  padding: 22px;
  border: 1px dashed var(--field-line);
  background: var(--accent-light);
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.file-picker input[type="file"] { display: block; width: 100%; max-width: 100%; margin-top: 12px; font-size: 14px; }
.file-picker input::file-selector-button {
  font: inherit;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--paper);
  padding: 10px 12px;
  color: var(--accent);
  margin-right: 12px;
  cursor: pointer;
}
.image-preview {
  display: block;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin: 16px auto;
  background: repeating-conic-gradient(#e4e6eb 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}
.image-meta { overflow-wrap: anywhere; }
.image-queue-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.image-queue-heading > div { min-width: 0; }
.image-queue-heading canvas { max-width: 90px; max-height: 70px; object-fit: contain; flex-shrink: 0; }
.crop-canvas { display: block; max-width: 100%; height: auto; margin: 20px auto; touch-action: none; cursor: crosshair; background: var(--subtle); }
.crop-canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pdf-organizer { padding: 32px; border-top: 1px solid var(--line); }
.pdf-organizer-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.pdf-organizer-heading .tool-section-title { margin-bottom: 8px; }
.pdf-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0; list-style: none; }
.pdf-page-item { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.pdf-page-preview { display: flex; align-items: center; justify-content: center; height: 312px; padding: 16px; background: var(--subtle); margin: 12px 0; }
.pdf-page-preview canvas { display: block; max-width: 100%; height: auto; max-height: 280px; object-fit: contain; border: 1px solid var(--line); }
.pdf-page-move { display: flex; align-items: end; gap: 8px; margin-top: 16px; }
.pdf-page-move .tool-field { flex: 1; margin: 0; }
.pdf-page-move > button { min-height: 50px; }
.pdf-image-results { display: grid; gap: 24px; }
.pdf-image-result { padding-top: 20px; border-top: 1px solid var(--line); }
.pdf-image-result canvas { display: block; max-width: 100%; height: auto; margin: 16px 0; border: 1px solid var(--line); }
.pdf-image-result a { display: inline-flex; flex-wrap: wrap; }
[data-offset="excluded"] { min-height: 120px !important; }
.tool-workspace input[type="color"] { padding: 5px !important; cursor: pointer; }
@media (max-width: 850px) {
  .pdf-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pdf-organizer { padding: 24px; }
}
@media (max-width: 650px) {
  .pdf-organizer { padding: 24px 18px; }
  .pdf-page-grid { grid-template-columns: 1fr; }
  .pdf-page-preview { height: 280px; }
  .pdf-page-preview canvas { max-height: 248px; }
}
.tool-workspace [hidden] { display: none !important; }
.product-row { min-width: 0; margin: 0 0 24px; padding: 16px; border: 1px solid var(--line); }
.product-row legend { padding: 0 8px; font-size: 15px; font-weight: 650; }
.price-results { list-style: none; padding: 0; margin-top: 24px; }
.price-results li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.price-results strong { color: var(--accent); font-size: 23px; font-variant-numeric: tabular-nums; }
.diff-results { border-left: 0; border-top: 1px solid var(--line); }
.diff-output { margin-top: 20px; }
.diff-line { display: grid; grid-template-columns: 72px 16px minmax(0,1fr); gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.diff-line pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 var(--font); }
.diff-line-number { color: var(--muted); font: 12px/2 var(--mono); }
.diff-added { background: var(--added-paper); color: var(--added-ink); }
.diff-removed { background: var(--removed-paper); color: var(--removed-ink); }
.qr-preview { display: block; width: min(100%, 360px); height: auto; margin: 24px auto; image-rendering: pixelated; background: white; }
.file-queue { padding: 0; list-style: none; margin: 0 0 24px; }
.file-queue li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.queue-name { display: block; overflow-wrap: anywhere; font-weight: 600; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.queue-actions .outline-button { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.file-queue .tool-field { margin-bottom: 12px; }
@media (max-width: 650px) {
  .diff-inputs > .tool-fields { grid-template-columns: 1fr; }
  .diff-line { grid-template-columns: 54px 12px minmax(0,1fr); gap: 6px; padding: 6px; }
  .product-row { padding: 12px; }
}
@media (max-width: 850px) {
  .tool-inputs, .tool-results { padding: 24px; }
}
@media (max-width: 650px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-inputs, .tool-results { padding: 24px 18px; }
  .tool-results { border-left: 0; border-top: 1px solid var(--line); }
  .tool-fields { gap: 12px; }
  .tool-workspace textarea { min-height: 190px; }
  .tool-workspace :is(input:not([type="checkbox"]):not([type="range"]):not([type="file"]), select, textarea) { padding: 11px 10px; }
  .result-value { font-size: 34px; }
  .file-picker { padding: 16px; }
}
@media (max-width: 480px) {
  .encryption-methods { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 360px) {
  .tool-fields { grid-template-columns: 1fr; gap: 0; }
  .tool-inputs, .tool-results { padding: 22px 14px; }
  .tool-actions { gap: 8px; }
  .tool-actions > :is(button, a) { padding: 12px 14px; }
}
