@font-face {
  font-family: "Gowun Batang";
  src: url("/GowunBatang-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #444b40;
  --muted: #69715f;
  --paper: #fafaf7;
  --surface: #fffefb;
  --section-surface: #f4f5ef;
  --section-line: #e0e3d8;
  --line: #dce0d3;
  --accent: #62735b;
  --button: #62735b;
  --button-text: #ffffff;
  --soft: #eef0e7;
  --danger: #925744;
  --warning: #f5eee7;
  --focus: #7d8b70;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  --writing: "Gowun Batang", "Batang", serif;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --ink: #e8ecdf;
  --muted: #aab3a0;
  --paper: #222620;
  --surface: #343a2f;
  --section-surface: #2b3028;
  --section-line: #454d3e;
  --line: #4d5745;
  --accent: #bbc9a6;
  --button: #bbc9a6;
  --button-text: #283122;
  --soft: #3b4433;
  --danger: #e4b59d;
  --warning: #44382d;
  --focus: #c0cda9;
}
.dislike-paper {
  --surface: #ddd4c6;
  --section-line: #b9ae9b;
  --line: #b9ae9b;
  --ink: #49463f;
  --muted: #615a4e;
  --accent: #574f40;
  --danger: #834b38;
  --soft: #cec3b0;
  color: var(--ink);
}
:root[data-theme=dark] .dislike-paper {
  --surface: #454138;
  --section-line: #706657;
  --line: #706657;
  --ink: #f0e9dc;
  --muted: #c8bfae;
  --accent: #d4c5a9;
  --danger: #e4b59d;
  --soft: #514a3d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px var(--font);
  -webkit-font-smoothing: antialiased;
}
button, textarea, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .5; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  margin: -1px; padding: 0; border: 0; clip: rect(0,0,0,0); white-space: nowrap;
}
/* The empty board fits the first screen; expanded collections use page scrolling. */
.page-shell { width: min(1000px, calc(100% - 64px)); min-height: 100dvh; margin: auto; padding: 15px 0 9px; display: grid; grid-template-rows: 50px auto 30px; gap: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 5px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--writing); font-size: 26px; font-weight: 400; letter-spacing: -.7px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 34px; color: var(--accent); }
.brand-mark svg { width: 30px; height: 30px; fill: var(--surface); stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.help-trigger { min-height: 40px; padding: 8px; border: 0; background: transparent; color: var(--ink); font-size: 12px; white-space: nowrap; text-underline-offset: 4px; }
.help-trigger:hover { text-decoration: underline; }
.private-note { display: none; }
.private-note .icon { width: 13px; height: 13px; }
.theme-toggle { display: flex; align-items: center; padding: 2px; gap: 3px; }
.theme-button { display: flex; align-items: center; gap: 5px; padding: 7px 8px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 11px; }
.theme-button .icon { width: 15px; height: 15px; }
.theme-button[aria-pressed=true] { border-color: var(--accent); color: var(--ink); }
#app { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.intro { flex-shrink: 0; padding: 1px 2px 5px; text-align: center; }
.intro h1 { margin: 0; color: var(--muted); font-family: var(--writing); font-size: 15px; font-weight: 400; letter-spacing: .1px; line-height: 1.5; }
.collection { display: flex; flex: none; flex-direction: column; gap: 10px; min-height: 0; padding: 16px 22px; background: var(--section-surface) url("/paper-grain.svg"); border: 1px solid var(--section-line); border-radius: 5px; box-shadow: 0 1px 2px #29331f04; }
.collection.collection-like { min-height: 300px; }
.collection.collection-dislike { min-height: 240px; }
.page-shell:not(.has-records) .collection-like { flex: 3; min-height: 0; }
.page-shell:not(.has-records) .collection-dislike { flex: 1; min-height: 178px; }
.collection-hint { flex-shrink: 0; margin: -4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; flex-shrink: 0; }
.section-title { display: flex; align-items: center; gap: 9px; min-width: 0; flex-shrink: 0; }
.section-icon { display: grid; place-items: center; width: 23px; height: 28px; flex-shrink: 0; color: var(--accent); }
.section-icon .icon { width: 19px; height: 19px; stroke-width: 1.2; }
.section-title h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-family: var(--writing); font-size: 21px; font-weight: 400; letter-spacing: -.5px; white-space: nowrap; }
.count { padding-top: 3px; color: var(--muted); font: 10px var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.section-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.quick-add { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 32px; min-height: 34px; padding: 6px 9px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; }
.quick-add .icon { width: 15px; height: 15px; }
.collection-like .quick-add { border: 1px solid var(--line); color: var(--accent); white-space: nowrap; }
.collection-dislike .quick-add { color: var(--accent); }
.continue-add { display: flex; align-items: center; align-self: center; justify-content: center; flex-shrink: 0; gap: 6px; width: min(180px, 100%); min-height: 34px; padding: 7px 12px; border: 1px dashed var(--line); border-radius: 3px; background: var(--surface); color: var(--accent); font-size: 12px; }
.continue-add .icon { width: 17px; height: 17px; }
.continue-add:hover:not(:disabled) { border-color: var(--focus); background: var(--soft); }
.composer-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 23px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface) url("/paper-grain.svg"); color: var(--ink); box-shadow: 0 16px 65px #222b1c26; }
.composer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.composer-heading h2 { margin: 0; font: 22px var(--writing); letter-spacing: -.5px; }
.composer { border: 1px solid var(--line); border-radius: 3px; background: var(--surface); overflow: hidden; }
.composer:focus-within, .composer.drag-over { border-color: var(--focus); box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 15%, transparent); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
textarea { display: block; width: 100%; height: 130px; min-height: 100px; padding: 13px 14px; border: 0; resize: vertical; background: transparent; color: var(--ink); font: 16px/1.8 var(--writing); }
textarea::placeholder { color: var(--muted); }
textarea:focus-visible { outline: none; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; }
.photo-controls { display: flex; align-items: center; min-width: 0; }
.photo-button { display: flex; align-items: center; gap: 5px; padding: 7px; border: 0; background: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.photo-button .icon { width: 18px; height: 18px; }
.photo-button:hover { color: var(--ink); }
.file-input { display: none; }
.add-button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 5px; min-height: 34px; padding: 7px 12px; border: 0; border-radius: 4px; background: var(--button); color: var(--button-text); font-size: 12px; font-weight: 500; white-space: nowrap; }
.add-button .icon { width: 15px; height: 15px; }
.add-button:hover:not(:disabled) { filter: brightness(1.08); }
.collection-dislike .add-button { background: var(--soft); color: var(--accent); }
.composer:has(.attachment:not([hidden])) textarea { height: 116px; min-height: 100px; }
.attachment { position: relative; margin: 8px 8px 0; padding: 6px; background: var(--soft); border-radius: 3px; }
.attachment img { display: block; width: 100%; height: clamp(180px, 34dvh, 280px); border: 3px solid var(--surface); border-radius: 1px; object-fit: contain; background: var(--surface); }
.attachment .remove-attachment { position: absolute; top: 10px; right: 10px; background: var(--surface); border: 1px solid var(--line); }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.icon-button .icon { width: 16px; height: 16px; }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.collection-content { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 3px; overflow: visible; overflow-anchor: none; }

.items { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; width: 100%; margin-block: auto; }
.items.has-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; justify-items: center; margin-block: 0; }
.has-items .item-card { width: 100%; }
.has-items .add-slot { width: min(var(--add-size), 100%, var(--slot-height, var(--add-size))); height: min(var(--add-size), var(--slot-height, var(--add-size))); align-self: start; }
.has-items .more-slot { grid-column: 1 / -1; width: 100%; }
.add-slot { --add-size: 96px; flex: 0 0 96px; height: 96px; }
.add-card { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 1px solid var(--section-line); border-radius: 3px; background: var(--surface); color: var(--muted); box-shadow: 0 2px 3px #26311e05, 0 5px 13px #26311e04; transition: border-color .2s, box-shadow .2s; }
.add-card .icon { width: 21px; height: 21px; stroke-width: 1.1; }
.add-card:hover:not(:disabled) { border-color: var(--focus); box-shadow: 0 4px 12px #26311e12; }
.item-card { position: relative; flex: 0 0 168px; height: 184px; padding: 0; overflow: hidden; border: 1px solid var(--section-line); border-radius: 4px; background: var(--surface) url("/paper-grain.svg"); box-shadow: 0 2px 3px #26311e07, 0 5px 12px #26311e08; }
.item-card.photo-card { height: 220px; }
.item-card:hover { border-color: var(--accent); }
.card-open { display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; padding: 10px; border: 0; border-radius: inherit; background: transparent; color: var(--ink); text-align: left; user-select: text; }
.card-open:focus-visible { outline-offset: -3px; }
.item-image { display: block; flex: 1; min-height: 0; width: 100%; height: 140px; object-fit: contain; background: var(--surface); }
.item-content { display: flex; flex: 1; min-height: 0; }
.item-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 var(--writing); }
.photo-card .item-content { flex: 0 0 auto; }
.photo-card .item-text { -webkit-line-clamp: 2; line-height: 1.4; }
.item-date { display: block; flex: 0 0 auto; margin-top: auto; min-height: 22px; padding: 5px 28px 0 0; color: var(--muted); font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-card .delete-item { position: absolute; right: 4px; bottom: 5px; width: 30px; height: 30px; border-radius: 4px; }
.item-card .delete-item:hover { color: var(--danger); }
.collection-actions { display: flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; }
.collection-actions .continue-add { width: auto; min-height: 36px; padding: 7px 12px; }
.collection-expand { flex-shrink: 0; min-width: 64px; min-height: 30px; padding: 5px 7px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--accent); font-size: 11px; white-space: nowrap; }
.collection-expand:hover { border-color: var(--accent); }
.reaction-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 4px; min-width: 32px; min-height: 30px; padding: 3px 6px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; user-select: none; }
.reaction-button .icon { width: 18px; height: 18px; }
.reaction-like { --reaction-ink: #af4863; --reaction-surface: #f9e6eb; }
.reaction-dislike { --reaction-ink: #82532a; --reaction-surface: #ead4b2; }
:root[data-theme=dark] .reaction-like { --reaction-ink: #f5a6b9; --reaction-surface: #583d46; }
:root[data-theme=dark] .reaction-dislike { --reaction-ink: #f0c07b; --reaction-surface: #615039; }
.reaction-button:hover:not(:disabled), .reaction-button.reacted { color: var(--reaction-ink); background: var(--reaction-surface); }
.reaction-like.reacted .icon { fill: currentColor; }
.reaction-layer { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.reaction-layer-local { position: absolute; }
.reaction-particle { position: absolute; display: block; pointer-events: none; }
.reaction-heart { background: currentColor; clip-path: polygon(50% 93%, 9% 53%, 1% 34%, 3% 19%, 14% 8%, 29% 6%, 41% 12%, 50% 23%, 59% 12%, 71% 6%, 86% 8%, 97% 19%, 99% 34%, 91% 53%); }
.reaction-impact { background: currentColor; clip-path: polygon(50% 0, 60% 27%, 85% 7%, 78% 35%, 100% 43%, 77% 55%, 97% 80%, 66% 73%, 57% 100%, 44% 76%, 17% 94%, 24% 64%, 0 55%, 25% 42%, 8% 14%, 38% 27%); }
.reaction-ring { border: 2px solid currentColor; border-radius: 50%; }
.reaction-ray { background: currentColor; clip-path: polygon(35% 0, 65% 0, 52% 100%, 48% 100%); }
.reaction-hit-word { width: auto !important; height: auto !important; font-weight: 800; font-style: italic; line-height: 1; white-space: nowrap; text-shadow: -1px -1px #ffe9be, 1px 1px #ffe9be, 1px -1px #ffe9be, -1px 1px #ffe9be; }
.delete-item { width: 28px; height: 28px; }
.delete-item:hover { background: var(--soft); color: var(--accent); }
.bin-button { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; }
.bin-button .icon { width: 17px; height: 17px; }
.bin-button:hover:not(:disabled) { background: var(--soft); }
.bin-button.tossing { animation: bin-bounce .6s ease; }
.release-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface) url("/paper-grain.svg"); color: var(--ink); box-shadow: 0 16px 65px #222b1c26; }
.release-dialog .composer-heading { margin-bottom: 12px; }
.release-dialog .composer-heading h2 { font-size: 23px; }
#release-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.release-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.release-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 102px; padding: 14px 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font-size: 12px; white-space: nowrap; }
.release-option .icon { width: 25px; height: 25px; }
.release-option:hover:not(:disabled) { border-color: var(--focus); background: var(--soft); }
.release-option[data-release-method=burn] .icon { color: var(--danger); }
#release-error { margin: 16px 0 0; }
.releasing-card { position: fixed; z-index: 10; pointer-events: none; animation: none; }
.release-fire { position: fixed; z-index: 12; height: 54px; pointer-events: none; background: linear-gradient(0deg, #402b2010, #e7964466 20%, transparent 75%); }
.fire-tongue { position: absolute; bottom: 0; width: 22px; height: 48px; border-radius: 55% 45% 35% 35%; background: linear-gradient(0deg, #ffe9a4, #f2aa53 40%, #bd623244 85%, transparent); transform-origin: bottom; filter: blur(.6px); }
.release-ember { position: fixed; z-index: 13; width: 4px; height: 6px; border-radius: 50%; background: #e9af6b; box-shadow: 0 0 5px #e9af6b66; pointer-events: none; }
.more-slot { flex: 0 0 100%; }
.load-more { display: block; margin: 5px auto; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 3px; }
.site-footer > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.site-footer .icon { width: 12px; height: 12px; }
.reset-link { min-height: 30px; padding: 5px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.reset-link:hover { color: var(--accent); }
.help-is-open { overflow: hidden; }
.help-is-open body { padding-right: var(--help-scrollbar-gap, 0px); }
.help-dialog { width: min(700px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface) url("/paper-grain.svg"); color: var(--ink); box-shadow: 0 16px 65px #222b1c26; }
.help-dialog[open] { display: flex; flex-direction: column; animation: help-appear .18s ease-out; }
.help-dialog::backdrop { background: #30382a66; backdrop-filter: blur(4px); }
.help-heading { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; padding: 16px 22px 12px; }
.help-heading h2 { margin: 0; font: 25px var(--writing); letter-spacing: -.5px; }
.help-heading .icon-button { width: 44px; height: 44px; }
.help-heading .icon { width: 19px; height: 19px; }
.help-content { min-height: 0; padding: 0 24px 24px; overflow: auto; overscroll-behavior: contain; }
.help-content:focus-visible { outline-offset: -4px; }
.help-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.help-step { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 16px; min-width: 0; padding: 16px 18px; border: 1px solid var(--section-line); border-radius: 4px; background: var(--section-surface); }
.help-step > div { grid-column: 1; grid-row: 1; min-width: 0; }
.help-art { display: block; grid-column: 2; grid-row: 1; width: 112px; height: 70px; margin: 0; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.help-paper { fill: var(--surface); stroke: var(--line); }
.help-heart { color: #af4863; fill: #f9e6eb; }
.help-impact { fill: #ead4b2; stroke: #b68b55; }
.help-dislike-paper { fill: #ddd4c6; stroke: #b9ae9b; }
.help-flame { color: #925744; }
:root[data-theme=dark] .help-heart { color: #f5a6b9; fill: #583d46; }
:root[data-theme=dark] .help-impact { fill: #615039; stroke: #c19c65; }
:root[data-theme=dark] .help-dislike-paper { fill: #454138; stroke: #706657; }
:root[data-theme=dark] .help-flame { color: #e4b59d; }
.help-step h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font: 17px/1.5 var(--writing); letter-spacing: -.35px; word-break: keep-all; }
.help-step-number { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--button); color: var(--button-text); font: 12px var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.help-step p, .help-storage p { margin: 0; font-size: 13px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.help-step strong { font-weight: 600; }
.help-step .help-tip { margin-top: 8px; color: var(--muted); font-size: 12px; }
.help-storage { margin-top: 16px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); }
.help-storage h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 13px; font-weight: 600; line-height: 1.7; word-break: keep-all; }
.help-storage .icon { width: 16px; height: 16px; }
.help-storage p { color: var(--muted); font-size: 12px; }
.help-storage p + p { margin-top: 6px; }
@keyframes help-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.board-error { flex-shrink: 0; }
.form-error { margin: 2px 12px 9px; font-size: 12px; line-height: 1.6; color: var(--danger); }
.error-banner { flex-shrink: 0; padding: 10px 14px; margin: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--warning); color: var(--danger); font-size: 12px; line-height: 1.6; }
.image-dialog { width: min(94vw, 960px); max-width: 94vw; max-height: 92dvh; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); overflow: auto; }
.image-dialog::backdrop, .reset-dialog::backdrop, .composer-dialog::backdrop, .delete-dialog::backdrop, .release-dialog::backdrop { background: #30382a66; backdrop-filter: blur(4px); }
.photo-stage { position: relative; width: 100%; min-height: 140px; max-height: 58dvh; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: 3px; touch-action: none; cursor: zoom-in; user-select: none; }
.photo-stage.is-zoomed { cursor: grab; }
.photo-stage.is-dragging { cursor: grabbing; }
.photo-motion { position: absolute; inset: 0; pointer-events: none; }
.photo-stage img { position: absolute; left: 0; top: 0; display: block; max-width: none; max-height: none; transform-origin: 0 0; pointer-events: none; user-select: none; }
.photo-zoom-controls { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; }
.photo-zoom-controls button { display: grid; place-items: center; min-width: 34px; min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 19px; }
.photo-zoom-controls button:hover:not(:disabled) { background: var(--soft); }
.photo-zoom-controls .photo-fit { margin-left: 6px; font-size: 11px; }
.photo-zoom-value { min-width: 36px; color: var(--muted); text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.photo-zoom-hint { margin-top: 7px; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.6; }
.gestures-paused .photo-zoom-hint { visibility: hidden; }
.record-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin: 0 0 14px; }
.record-heading h2 { margin: 0 0 6px; font: 21px var(--writing); }
.record-date { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; }
.record-heading .icon-button { margin: 0; }
.record-heading-actions { display: flex; align-items: center; flex-shrink: 0; gap: 5px; }
.record-edit { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; }
.record-edit .icon { width: 15px; height: 15px; }
.record-edit:hover { background: var(--soft); color: var(--ink); }
.record-heading .reaction-button { min-height: 36px; gap: 5px; padding: 6px 9px; font-size: 12px; color: var(--reaction-ink); background: var(--reaction-surface); }
.record-heading .reaction-label { display: inline; }
.record-body { position: relative; }
.record-text-surface { display: flow-root; }
.text-record-dialog { width: min(94vw, 560px); }
.text-record-dialog .record-text-surface { min-height: 140px; }
.record-heading .reaction-mode-toggle { border: 1px solid var(--line); color: var(--muted); background: transparent; }
.reaction-mode-toggle[aria-pressed=true] { color: var(--reaction-ink); background: var(--reaction-surface); border-color: currentColor; }
.reaction-mode-state { padding: 2px 5px; border-radius: 3px; background: var(--soft); font-size: 10px; }
.reaction-mode-toggle[aria-pressed=true] .reaction-mode-state { background: var(--reaction-ink); color: var(--reaction-surface); }
.reaction-surface, .photo-stage.reaction-surface { cursor: crosshair; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.image-dialog p { max-width: 800px; margin: 10px 6px; font: 15px/1.7 var(--writing); white-space: pre-wrap; overflow-wrap: anywhere; }
.reset-dialog, .delete-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 70px #232b4125; }
.delete-dialog { width: min(380px, calc(100% - 32px)); }
.reset-eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 11px; }
.reset-dialog h2, .delete-dialog h2 { margin: 0 0 15px; font: 23px var(--writing); letter-spacing: -.8px; }
#reset-description, #like-delete-description { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.reset-warning { margin: 16px 0; padding: 11px 13px; border-radius: 3px; background: var(--warning); color: var(--danger); font-size: 12px; }
#reset-verification label { display: block; margin: 18px 0 10px; font-size: 13px; line-height: 1.85; }
#reset-phrase { display: block; width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 16px; letter-spacing: .7px; }
#reset-phrase-hint { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.reset-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.reset-actions button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); font-size: 13px; }
.reset-actions #reset-confirm { background: var(--button); border-color: var(--button); color: var(--button-text); }
.reset-actions #like-delete-confirm { background: var(--soft); color: var(--danger); }
.reset-actions #reset-confirm:disabled { cursor: not-allowed; }
#reset-error, #like-delete-error { margin: 16px 0 0; }
/* A turned paper corner; movement follows the user's actions. */
.add-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; background: linear-gradient(135deg, var(--surface) 45%, var(--line) 49%, var(--soft) 56%); border-radius: 0 0 2px 0; }
.item-card.just-added { animation: settle .44s cubic-bezier(.22,.8,.35,1) both; }
.paper-scrap { position: fixed; z-index: 11; width: 7px; height: 10px; border: 1px solid var(--section-line); background: var(--surface); pointer-events: none; }
@keyframes settle { from { opacity: 0; transform: translateY(-9px) rotate(-2deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes bin-bounce { 0%,100% { transform: rotate(0); } 40% { transform: rotate(-8deg); } 70% { transform: rotate(6deg); } }
@media (max-width: 800px) {
  .page-shell { width: calc(100% - 28px); }
  .header-actions .private-note { display: none; }

}
@media (max-width: 600px) {
  .page-shell { width: calc(100% - 24px); grid-template-rows: 40px auto 30px; gap: 8px; padding-top: 6px; }
  .brand { font-size: 22px; gap: 6px; }
  .brand-mark, .brand-mark svg { width: 26px; height: 26px; }
  .header-actions { gap: 6px; }
  .help-trigger { min-width: 44px; padding: 6px; font-size: 11px; }
  .help-dialog { position: fixed; inset: auto 0 0; width: 100%; max-height: calc(100dvh - 24px); margin: 0; border-width: 1px 0 0; border-radius: 14px 14px 0 0; }
  .help-heading { padding: 12px 14px 10px 20px; }
  .help-heading h2 { font-size: 23px; }
  .help-content { padding: 0 16px max(20px, env(safe-area-inset-bottom)); }
  .help-step { display: flow-root; padding: 15px 14px; }
  .help-art { float: right; width: 70px; height: 34px; margin: 0 0 8px 10px; }
  .help-step h3 { font-size: 16px; }
  .help-step p { clear: both; }
  .help-storage { padding: 15px; }
  .theme-toggle { padding: 2px; }
  .theme-button { padding: 6px 7px; gap: 4px; font-size: 10px; }
  .theme-button .icon { width: 13px; height: 13px; }
  #app { gap: 9px; }
  .intro { padding: 1px 2px 2px; }
  .intro h1 { font-size: 13px; letter-spacing: -.4px; }
  .collection { padding: 10px 11px; gap: 7px; border-radius: 4px; }
  .collection.collection-like { min-height: 260px; }
  .collection.collection-dislike { min-height: 210px; }
  .page-shell:not(.has-records) .collection-dislike { min-height: 145px; }
  .collection-hint { margin-top: -2px; font-size: 10px; }
  .section-title { gap: 7px; }
  .section-title h2 { font-size: 17px; gap: 6px; }
  .section-icon { width: 18px; height: 24px; }
  .section-icon .icon { width: 16px; height: 16px; }
  .bin-button { padding: 6px 8px; gap: 4px; font-size: 10px; }
  .bin-button .icon { width: 15px; height: 15px; }
  .photo-button { font-size: 11px; padding: 7px 5px; }
  .add-button { min-height: 32px; font-size: 11px; padding: 6px 10px; }
  .items { gap: 10px; }
  .add-slot { --add-size: 76px; flex-basis: 76px; height: 76px; }
  .add-card { border-radius: 3px; }
  .add-card .icon { width: 18px; height: 18px; }
  .item-card { flex-basis: 124px; height: 160px; }
  .item-card.photo-card { height: 198px; }
  .card-open { padding: 7px; gap: 6px; }
  .quick-add { padding: 6px; }
  .quick-add span { display: none; }
  .collection-like .quick-add span { display: inline; }
  .composer-dialog, .release-dialog { padding: 16px; }
  .item-text { font-size: 13px; }
  .item-date { font-size: 9px; }
  .item-year { display: none; }
  .reaction-label { display: none; }
  .reaction-button { min-width: 30px; padding: 3px 4px; }
  .site-footer > span, .reset-link { font-size: 10px; }
  .reset-dialog { padding: 23px 20px; }
}
@media (max-width: 520px) {
  .record-dialog .record-heading { flex-wrap: wrap; }
  .record-dialog .record-heading-info { flex-basis: 100%; order: 1; }
  .record-dialog .record-heading-actions { margin-left: auto; }
}
/* Keep controls usable on narrow screens. */
@media (max-width: 380px) {
  .item-date { font-size: 8px; white-space: nowrap; }
}
@media (max-height: 539px) {
  .page-shell { height: auto; min-height: 100dvh; }
  .collection.collection-like, .collection.collection-dislike { flex: none; min-height: 240px; }

}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
