@font-face{font-family:KeepsakeUI;src:url('/vendor/fonts/NotoSansKR.ttf') format('truetype');font-display:swap}
html.keepsake-open{overflow:hidden}
html .keepsake-entry{--ui-control-background:var(--salon-panel,#243026);display:inline-flex;align-items:center;gap:10px;width:auto;margin:24px 0 4px;padding:13px 18px;border:1px solid var(--salon-line,#52604c);border-radius:100px;background:transparent;color:var(--salon-gold,#dabf7d);font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;cursor:pointer;text-decoration:none;box-shadow:none}
html .keepsake-entry:hover{background:var(--salon-panel,#243026);transform:translateY(-1px)}
.keepsake-entry svg,.keepsake-dialog svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
html .keepsake-dialog{--ks-bg:#16221c;--ks-panel:#101b16;--ks-text:#f5f0e5;--ks-muted:#adb8aa;--ks-line:#3a4c3e;--ks-gold:#dbbf80;box-sizing:border-box;width:min(1030px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--ks-line);border-radius:24px;background:var(--ks-bg);color:var(--ks-text);box-shadow:0 25px 100px #0006;overflow:hidden;font:14px/1.6 KeepsakeUI,'Noto Sans KR',sans-serif;text-align:left}
html .keepsake-dialog[open]{display:flex;flex-direction:column}
html.theme-light .keepsake-dialog{--ks-bg:#faf7ef;--ks-panel:#f0ebdf;--ks-text:#20362b;--ks-muted:#66705f;--ks-line:#d4d8c9;--ks-gold:#80612e}
.keepsake-dialog::backdrop{background:rgba(4,13,10,.78);backdrop-filter:blur(8px)}
.keepsake-dialog *{box-sizing:border-box}
.keepsake-head{display:flex;align-items:flex-start;justify-content:space-between;flex:0 0 auto;gap:20px;margin:0;padding:24px 28px 20px;background:var(--ks-bg)}
.keepsake-head>div{min-width:0;overflow-wrap:anywhere}
.keepsake-eyebrow{font-size:10px;letter-spacing:.23em;font-weight:700;color:var(--ks-gold,var(--salon-gold,#cdb477))}
.keepsake-head h2{margin:5px 0 8px;color:var(--ks-text);font-family:'Noto Serif KR',Batang,Georgia,serif;font-size:26px;font-weight:500;letter-spacing:-.04em;line-height:1.5}
.keepsake-head p{margin:0;color:var(--ks-muted);font-size:12px}
html .keepsake-dialog .keepsake-head :is(h2,p){text-align:left}
html .keepsake-dialog :is(h2,label,legend){color:var(--ks-text)!important;-webkit-text-fill-color:currentColor!important}
html .keepsake-dialog .keepsake-head p{color:var(--ks-muted)!important;-webkit-text-fill-color:currentColor!important}
html .keepsake-dialog button{--ui-control-background:var(--ks-panel);font:inherit;cursor:pointer;box-shadow:none;letter-spacing:0;transition:background .15s,border-color .15s;min-width:0;min-height:44px;text-transform:none;-webkit-text-fill-color:currentColor}
html .keepsake-dialog .keepsake-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--ks-line);border-radius:50%;background:transparent;color:var(--ks-text)}
.keepsake-studio{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:28px;align-items:start;min-height:0;padding:0 28px 28px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.keepsake-preview{display:grid;grid-template-rows:minmax(0,1fr) auto;place-items:center;gap:12px;padding:20px;min-width:0;min-height:0;height:clamp(320px,58dvh,610px);border-radius:16px;background:var(--ks-panel);border:1px solid var(--ks-line)}
.keepsake-preview canvas{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 14px 17px #0003)}
.keepsake-preview-label{color:var(--ks-muted);font-size:11px;text-align:center}
.keepsake-controls{min-width:0}
.keepsake-controls label,.keepsake-controls legend{display:block;font-size:12px;font-weight:700;color:var(--ks-text);margin:0 0 9px;padding:0}
html .keepsake-dialog textarea,html .keepsake-dialog select{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:12px 13px;border:1px solid var(--ks-line);border-radius:10px;background:var(--ks-panel);color:var(--ks-text);font:14px/1.7 KeepsakeUI,sans-serif;box-shadow:none}
html .keepsake-dialog :is(textarea,select){background:var(--ks-panel)!important;border-color:var(--ks-line)!important;color:var(--ks-text)!important;-webkit-text-fill-color:currentColor!important}
html .keepsake-dialog select{margin-bottom:18px;text-overflow:ellipsis;padding-right:25px}
html .keepsake-dialog textarea{resize:vertical;min-height:116px;max-height:230px}
html .keepsake-dialog textarea[aria-invalid=true]{border-color:#c36f64!important}
.keepsake-text-meta{display:flex;justify-content:space-between;gap:8px;color:var(--ks-muted);font-size:10px;margin-top:7px}
.keepsake-dialog fieldset{border:0;margin:20px 0 0;padding:0;min-width:0}
.keepsake-swatches,.keepsake-formats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html .keepsake-swatches button,html .keepsake-formats button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin:0;padding:10px 5px;border:1px solid var(--ks-line);border-radius:9px;background:transparent;color:var(--ks-muted);font-size:11px;line-height:1.6}
.keepsake-formats button{flex-wrap:wrap;row-gap:0}
.keepsake-swatches i{width:14px;height:14px;border-radius:50%;border:1px solid #8888;flex-shrink:0}
html .keepsake-dialog [aria-pressed=true]{border-color:var(--ks-gold);color:var(--ks-text);background:var(--ks-panel)}
.keepsake-formats small{font-size:10px;opacity:.75}
.keepsake-privacy{margin:18px 0;color:var(--ks-muted);font-size:11px;line-height:1.8}
.keepsake-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
html .keepsake-actions button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin:0;padding:11px 8px;border:1px solid var(--ks-line);border-radius:9px;background:transparent;color:var(--ks-text);font-size:12px;line-height:1.5}
html .keepsake-actions button[data-action=download]{--ui-control-background:#d8bd7c;background:#d8bd7c;color:#18271e;border-color:#d8bd7c;font-weight:700}
html .keepsake-dialog button:disabled{cursor:wait;opacity:.45}
html .keepsake-dialog button:hover:not(:disabled){border-color:var(--ks-gold)}
.keepsake-how{margin:14px 0 0;font-size:10px;line-height:1.8;color:var(--ks-muted)}
.keepsake-status{margin:12px 0 0;min-height:20px;font-size:12px;line-height:1.65;color:var(--ks-gold);overflow-wrap:anywhere}
html .keepsake-dialog :focus-visible,html .keepsake-entry:focus-visible,#library-keepsakes button:focus-visible{outline:2px solid var(--ks-gold,var(--salon-gold,#d8bd7c));outline-offset:4px}
#library-keepsakes{margin:8px 0 36px;padding:25px 0;border-bottom:1px solid var(--salon-line,#3f4b39);color:var(--salon-ink,#eeeadd)}
.keepsake-library-tabs{display:flex;gap:8px;margin:26px 0 14px;border-bottom:1px solid var(--salon-line,#3f4b39);padding-bottom:12px}
html .keepsake-library-tabs button{--ui-control-background:var(--salon-panel,#243026);flex:1;min-width:0;min-height:48px;border:1px solid transparent;border-radius:100px;padding:10px 18px;background:transparent;color:var(--salon-muted,#a3ac9c);font:inherit;font-size:13px;cursor:pointer;box-shadow:none;-webkit-text-fill-color:currentColor}
html .keepsake-library-tabs button[aria-pressed=true]{border-color:var(--salon-line,#3f4b39);background:var(--salon-panel,#243026);color:var(--salon-ink,#eeeadd)}
html .keepsake-library-tabs button:is(:hover,:focus-visible){color:var(--salon-ink,#eeeadd)}
#library-readings-panel[hidden],#library-keepsakes-panel[hidden]{display:none}
#library-keepsakes[hidden]{display:none}
#library-keepsakes>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
#library-keepsakes h2{font-family:'Noto Serif KR',Batang,serif;font-weight:500;font-size:22px;color:inherit;margin:5px 0}
.keepsake-library-count{font-size:12px;color:var(--salon-muted,#a3ac9c)}
.keepsake-library-body>p{font-size:13px;line-height:1.8;color:var(--salon-muted,#a3ac9c);max-width:48ch}
.keepsake-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-height:620px;overflow-y:auto;padding:4px}
.keepsake-tile{display:flex;flex-direction:column;position:relative;padding:18px;border:1px solid #b99b5e66;border-radius:3px;background:linear-gradient(145deg,#102c26,#071d19);color:#f6f0df;min-width:0}
.keepsake-tile[data-theme=ivory]{background:linear-gradient(145deg,#f7f0e2,#e9dfcb);color:#253b32}
.keepsake-tile[data-theme=plum]{background:linear-gradient(145deg,#39273c,#211b2e);color:#f7eee5}
html .keepsake-tile-open{display:flex;flex:1;flex-direction:column;align-items:center;width:100%;padding:0;margin:0;background:none;border:0;color:inherit;text-align:center;font:inherit;cursor:pointer;box-shadow:none}
/* Keep the card itself still; shared button hover/focus styling must not paint an inner panel. */
html body.site-ui :is(.keepsake-tile-open,.keepsake-delete){--ui-control-background:transparent;transition:none;border-radius:0;-webkit-text-fill-color:currentColor}
.keepsake-tile-star{font-size:25px;color:#b79757}
.keepsake-tile blockquote{margin:17px 0 22px;font-size:14px;line-height:1.85;color:inherit;overflow-wrap:anywhere;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.keepsake-tile-open>span:last-child{margin-top:auto;font-size:10px;opacity:.75}
html .keepsake-delete{display:block;align-self:flex-end;width:auto;min-height:0;margin:15px 0 0;padding:3px 0;border:0;background:none;color:inherit;opacity:.65;font-family:inherit;font-size:11px;font-weight:400;line-height:1.5;cursor:pointer;box-shadow:none}
@media(max-width:700px){html .keepsake-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:18px}.keepsake-head{gap:12px;padding:18px 16px 16px}.keepsake-head h2{font-size:22px}.keepsake-head p{font-size:11px}.keepsake-studio{grid-template-columns:1fr;gap:22px;padding:0 16px max(20px,env(safe-area-inset-bottom));scrollbar-gutter:auto}.keepsake-preview{height:clamp(320px,55dvh,420px);padding:16px}.keepsake-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.keepsake-tile{padding:15px 11px}.keepsake-tile blockquote{font-size:13px}.keepsake-swatches button{font-size:10px}.keepsake-text-meta{flex-wrap:wrap}}
@media(max-height:550px){.keepsake-head{padding-top:12px;padding-bottom:12px}.keepsake-head h2{margin:3px 0;font-size:22px}.keepsake-preview{height:280px}}
@media(prefers-reduced-motion:reduce){.keepsake-dialog button,.keepsake-entry{transition:none!important;transform:none!important}}
@media print{.keepsake-entry,.keepsake-dialog{display:none!important}}
