:root{--rm-ease:cubic-bezier(.22, 1, .36, 1);--rm-spring:cubic-bezier(.34, 1.32, .64, 1)}.ref-art{width:100%;height:100%;display:block}.ref-art--img{-o-object-fit:cover;object-fit:cover}.ref-art--palette{display:flex;overflow:hidden}.ref-swatch{flex:1;height:100%}.ref-art--words{background:var(--color-paper-dim,#f3f1ec);color:var(--color-ink);flex-direction:column;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px;display:flex;overflow:hidden}.ref-words-glyph{font-family:var(--font-display);letter-spacing:-.03em;font-size:34px;line-height:1}.ref-words-icon{opacity:.6;width:22px;height:22px}.ref-words-text{color:var(--color-ink-70);-webkit-line-clamp:4;-webkit-box-orient:vertical;font-size:12px;line-height:1.45;display:-webkit-box;overflow:hidden}.ref-art--voice{color:#fff;background:linear-gradient(160deg,#1d1d1f 0%,#2c2b30 100%);place-items:center;display:grid;position:relative}.ref-art--img.is-on-dark,.ref-card[data-type=brand] .ref-art--img.is-on-dark{background:#1d1d1f}.ref-voice-desc{color:#ffffffb8;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.35;display:-webkit-box;position:absolute;bottom:14px;left:14px;right:56px;overflow:hidden}.ref-art--voice .ref-wave{margin-bottom:18px}.ref-wave{align-items:center;gap:3px;height:28px;display:flex}.ref-wave-bar{opacity:.55;transform-origin:50%;background:currentColor;border-radius:2px;width:3px}.ref-art--voice.is-playing .ref-wave-bar{opacity:.95;animation:ref-wave .9s var(--rm-ease) infinite alternate}@keyframes ref-wave{0%{transform:scaleY(.35)}to{transform:scaleY(1)}}.ref-play.ref-play{color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff24;border-radius:999px;width:34px;height:34px;position:absolute;bottom:10px;right:10px}.ref-play.ref-play:hover{background:#ffffff3d}.ref-play svg{width:14px;height:14px}.rm{z-index:1000;-webkit-backdrop-filter:blur(24px)saturate(1.7);backdrop-filter:blur(24px)saturate(1.7);width:360px;color:var(--color-ink);transform-origin:0 0;animation:rm-open .24s var(--rm-spring) both;background:#ffffffdb;border:1px solid #00000012;border-radius:16px;flex-direction:column;font-size:13px;display:flex;position:fixed;overflow:hidden;box-shadow:0 1px 1px #00000008,0 12px 32px -8px #14141e2e,0 32px 64px -24px #14141e29}.rm--above{transform-origin:0 100%;animation-name:rm-open-up}@keyframes rm-open{0%{opacity:0;filter:blur(2px);transform:translateY(-6px)scale(.96)}}@keyframes rm-open-up{0%{opacity:0;filter:blur(2px);transform:translateY(6px)scale(.96)}}.rm-search{border-bottom:1px solid #0000000f;align-items:center;gap:8px;height:40px;padding:0 12px;display:flex}.rm-search-icon{width:15px;height:15px;color:var(--color-ink-50);flex:none}.rm-search-input,.rm-search-text{min-width:0;font:inherit;color:var(--color-ink);white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;outline:0;flex:1;overflow:hidden}.rm-search-input::-moz-placeholder{color:var(--color-ink-35)}.rm-search-input::placeholder,.rm-search-text.is-empty{color:var(--color-ink-35)}.rm-body{transition:height .26s var(--rm-ease);position:relative;overflow:hidden}.rm-list{overscroll-behavior:contain;height:100%;padding:6px;position:relative;overflow-y:auto;-webkit-mask-image:linear-gradient(#0000 0,#000 10px calc(100% - 14px),#0000 100%);mask-image:linear-gradient(#0000 0,#000 10px calc(100% - 14px),#0000 100%)}.rm-hl{transition:transform .2s var(--rm-ease), height .2s var(--rm-ease);pointer-events:none;background:#0000000e;border-radius:10px;position:absolute;top:0;left:6px;right:6px}.rm-view{animation:rm-in-fwd .26s var(--rm-ease) both;position:relative}.rm-view[data-dir=back]{animation-name:rm-in-back}@keyframes rm-in-fwd{0%{opacity:0;filter:blur(5px);transform:translate(18px)}}@keyframes rm-in-back{0%{opacity:0;filter:blur(5px);transform:translate(-18px)}}.rm-heading{color:var(--color-ink-50);padding:8px 8px 4px;font-size:11px;font-weight:500}.rm-row{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px;align-items:center;gap:10px;min-height:38px;padding:4px 8px;transition:color .12s;display:flex;position:relative}.rm-row-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:450;overflow:hidden}.rm-row-meta{color:var(--color-ink-50);font-variant-numeric:tabular-nums;flex:none;font-size:11.5px}.rm-row-caret{width:13px;height:13px;color:var(--color-ink-35);transition:transform .2s var(--rm-ease);flex:none}.rm-row.is-active .rm-row-caret{color:var(--color-ink-70);transform:translate(2px)}.rm-row--back{min-height:32px;color:var(--color-ink-70);font-weight:500}.rm-row--back .rm-row-caret{color:var(--color-ink-50)}.rm-row--back.is-active .rm-row-caret{transform:translate(-2px)}.rm-row-tile{width:28px;height:28px;color:var(--color-ink-70);transition:background .16s ease, transform .22s var(--rm-spring);background:#0000000b;border-radius:8px;flex:none;place-items:center;display:grid}.rm-row-tile svg{width:15px;height:15px}.rm-row.is-active .rm-row-tile{background:#fff;transform:scale(1.06);box-shadow:0 1px 2px #00000014}.rm-row-tile--add{background:0 0;border:1px dashed #0000002e}.rm-row-thumb{width:28px;height:28px;transition:transform .22s var(--rm-spring);background:#0000000d;border-radius:7px;flex:none;overflow:hidden;box-shadow:inset 0 0 0 1px #0000000d}.rm-row-thumb.is-round{border-radius:999px}.rm-row.is-active .rm-row-thumb{transform:scale(1.08)}.rm-row-thumb .ref-words-glyph{font-size:11px}.rm-row-thumb .ref-art--words{justify-content:center;align-items:center;padding:0}.rm-row-thumb .ref-wave{gap:1px;height:14px}.rm-row-thumb .ref-wave-bar{width:1px}.rm-row-thumb.is-pending{background:linear-gradient(110deg,#0000000d 30%,#0000001f 50%,#0000000d 70%) 0 0/200% 100%;animation:1.4s linear infinite rm-shimmer}@keyframes rm-shimmer{to{background-position:-200% 0}}.rm-empty{color:var(--color-ink-50);padding:14px 10px 16px;font-size:12.5px;line-height:1.45}.rm-foot{height:32px;color:var(--color-ink-50);border-top:1px solid #0000000f;align-items:center;gap:12px;padding:0 12px;font-size:11px;display:flex}.rm-keys{align-items:center;gap:3px;display:inline-flex}.rm-keys kbd{min-width:16px;height:16px;margin-right:2px;padding:0 3px;font-size:10px;line-height:16px}.rm-preview{z-index:1001;-webkit-backdrop-filter:blur(24px)saturate(1.6);backdrop-filter:blur(24px)saturate(1.6);pointer-events:none;transform-origin:0;width:232px;animation:rm-preview-in .22s var(--rm-spring) both;transition:top .2s var(--rm-ease);background:#ffffffeb;border:1px solid #0000000f;border-radius:18px;padding:8px 8px 12px;position:fixed;box-shadow:0 18px 40px -12px #14141e38,0 2px 6px #0000000d}.rm-preview--left{transform-origin:100%}@keyframes rm-preview-in{0%{opacity:0;transform:translate(-6px)scale(.94)}}.rm-preview--left{animation-name:rm-preview-in-left}@keyframes rm-preview-in-left{0%{opacity:0;transform:translate(6px)scale(.94)}}.rm-preview-art{aspect-ratio:4/5;background:#0000000a;border-radius:12px;overflow:hidden}.rm-preview-name{margin:10px 4px 2px;font-size:13px;font-weight:600}.rm-preview-desc{color:var(--color-ink-70);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0 4px;font-size:11.5px;line-height:1.4;display:-webkit-box;overflow:hidden}.refs{padding:28px clamp(16px,4vw,56px) 72px}@media (width>=768px) and (height>=501px),(width>=768px) and (pointer:fine),(width>=768px) and (pointer:none){.refs{padding-bottom:96px}}.refs-bar{z-index:5;background:color-mix(in srgb, var(--color-paper-shell,#f6f5f2) 88%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);flex-direction:column;gap:10px;margin:0 -16px 18px;padding:10px 16px;display:flex;position:sticky;top:0}@media (width>=768px) and (height>=501px),(width>=768px) and (pointer:fine),(width>=768px) and (pointer:none){.refs-bar{flex-direction:row;justify-content:space-between;align-items:center;margin:0 -32px 22px;padding:10px 32px}}.refs-types{flex:auto;gap:4px;min-width:0;margin:0 -4px;padding:2px 4px;display:flex;overflow-x:auto;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),#0000);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),#0000)}.refs-type.refs-type{height:34px;color:var(--color-ink-70);background:0 0;border:0;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:500;transition:background .16s,color .16s;display:inline-flex}.refs-type.refs-type:hover{color:var(--color-ink);background:#0000000d}.refs-type.refs-type.is-active{background:var(--color-ink);color:#fff}.refs-type svg{width:15px;height:15px}.refs-source{white-space:nowrap;flex:none}.refs-type-count{opacity:.55;font-variant-numeric:tabular-nums;font-size:11.5px}.refs-section{margin-bottom:36px}.refs-section-head{justify-content:space-between;align-items:baseline;margin-bottom:12px;display:flex}.refs-section-title{letter-spacing:-.01em;margin:0;font-size:16px;font-weight:600}.refs-section-more.refs-section-more{height:28px;color:var(--color-ink-70);padding:0 8px;font-size:12.5px}.refs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}@media (width>=640px){.refs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=1024px){.refs-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}}@media (width>=1400px){.refs-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}.refs-grid--wide{grid-template-columns:repeat(1,minmax(0,1fr))}@media (width>=640px){.refs-grid--wide{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1024px){.refs-grid--wide{grid-template-columns:repeat(4,minmax(0,1fr))}}.ref-card{appearance:none;font:inherit;color:inherit;cursor:pointer;text-align:left;width:100%;min-width:0;animation:ref-card-in .42s var(--rm-ease) both;animation-delay:calc(var(--i,0) * 28ms);-webkit-tap-highlight-color:transparent;background:0 0;border:0;flex-direction:column;gap:8px;margin:0;padding:0;display:flex;position:relative}@keyframes ref-card-in{0%{opacity:0;transform:translateY(10px)scale(.985)}}.ref-card-art{aspect-ratio:1;transition:transform .32s var(--rm-ease), box-shadow .32s var(--rm-ease);background:#0000000a;border-radius:16px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #0000000d}.ref-card-art>.ref-art,.ref-card-art>img{transition:transform .6s var(--rm-ease)}.ref-card[data-type=character] .ref-card-art{aspect-ratio:4/5}.ref-card[data-type=location] .ref-card-art,.ref-card[data-type=style] .ref-card-art,.ref-card[data-type=mood] .ref-card-art,.ref-card[data-type=camera] .ref-card-art,.ref-card[data-type=color] .ref-card-art,.ref-card[data-type=voice] .ref-card-art,.ref-card[data-type=brand] .ref-card-art{aspect-ratio:3/2}.ref-card[data-type=brand] .ref-art--img{-o-object-fit:contain;object-fit:contain;background:var(--color-paper-dim,#f3f1ec);padding:18%}@media (hover:hover){.ref-card:hover .ref-card-art{transform:translateY(-3px);box-shadow:inset 0 0 0 1px #0000000a,0 14px 28px -14px #14141e59}.ref-card:hover .ref-card-art>.ref-art--img{transform:scale(1.04)}}.ref-card:active .ref-card-art{transition-duration:.12s;transform:scale(.985)}.ref-card-stack{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font-variant-numeric:tabular-nums;background:#14141880;border-radius:999px;align-items:center;gap:4px;height:22px;padding:0 7px;font-size:11px;display:inline-flex;position:absolute;bottom:8px;right:8px}.ref-card-stack svg{width:12px;height:12px}.ref-card:focus-visible{outline:none}.ref-card:focus-visible .ref-card-art{box-shadow:0 0 0 2px var(--color-ink)}.ref-card-name{white-space:nowrap;text-overflow:ellipsis;padding:0 2px;font-size:13px;font-weight:500;overflow:hidden}.ref-card.is-pending .ref-card-art{background:linear-gradient(120deg,#ece9f5 0%,#f5efe6 35%,#e8f1ee 65%,#ece9f5 100%) 0 0/300% 300%;animation:4s ease-in-out infinite ref-aurora}.ref-card-drawing{color:var(--color-ink-70);align-items:center;gap:6px;font-size:11.5px;display:flex;position:absolute;inset:auto 10px 10px}.ref-card-drawing svg{width:14px;height:14px;animation:1.4s ease-in-out infinite ref-pulse}@keyframes ref-aurora{0%,to{background-position:0%}50%{background-position:100%}}@keyframes ref-pulse{50%{opacity:.35;transform:scale(.85)}}.ref-card--new .ref-card-art{color:var(--color-ink-50);transition:background .2s ease, color .2s ease, transform .32s var(--rm-ease);background:0 0;border:0;place-items:center;display:grid;box-shadow:inset 0 0 0 1px #0000001f}.ref-card--new .ref-card-art svg{width:22px;height:22px}@media (hover:hover){.ref-card--new:hover .ref-card-art{color:var(--color-ink);background:#00000008}}.refs-empty{color:var(--color-ink-50);text-align:center;padding:48px 0;font-size:14px}.ref-detail-scrim{z-index:60;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#f6f5f29e;animation:.26s both ref-fade;position:fixed;inset:0}.ref-detail-scrim.is-closing{animation:.22s both ref-fade-out}@keyframes ref-fade{0%{opacity:0}}@keyframes ref-fade-out{to{opacity:0}}.ref-detail{z-index:61;background:var(--color-paper);transform-origin:var(--ox,50%) var(--oy,50%);animation:ref-dive .42s var(--rm-ease) both;flex-direction:column;display:flex;position:fixed;inset:0;overflow-y:auto}@media (width>=768px) and (height>=501px),(width>=768px) and (pointer:fine),(width>=768px) and (pointer:none){.ref-detail{border:1px solid #0000000f;border-radius:24px;flex-direction:row;width:min(1040px,100vw - 64px);max-height:90vh;margin-left:calc(min(1040px,100vw - 64px)/-2);inset:5vh auto auto 50%;overflow:hidden;box-shadow:0 40px 80px -30px #14141e59,0 4px 12px #0000000d}}.ref-detail.is-closing{animation:ref-dive-out .24s var(--rm-ease) both}@keyframes ref-dive{0%{opacity:0;transform:translate(var(--dx,0), var(--dy,0)) scale(var(--ds,.9));border-radius:16px}60%{opacity:1}}@keyframes ref-dive-out{to{opacity:0;transform:translate(var(--dx,0), var(--dy,0)) scale(var(--ds,.9))}}.ref-detail-media{background:var(--color-paper-dim,#f3f1ec);flex-direction:column;gap:10px;padding:12px;display:flex;position:relative}@media (width>=768px) and (height>=501px),(width>=768px) and (pointer:fine),(width>=768px) and (pointer:none){.ref-detail-media{flex:1.35;min-width:0;padding:16px}}.ref-detail-stage{background:#0000000a;border-radius:16px;flex:1;min-height:280px;position:relative;overflow:hidden}.ref-detail-stage>.ref-art--img,.ref-detail-stage>img{-o-object-fit:contain;object-fit:contain;animation:.32s both ref-fade;position:absolute;inset:0}.ref-detail-stage>.ref-art--palette,.ref-detail-stage>.ref-art--voice,.ref-detail-stage>.ref-art--words{position:absolute;inset:0}.ref-detail-stage .ref-words-glyph{font-size:72px}.ref-detail-stage .ref-words-text{-webkit-line-clamp:12;max-width:520px;font-size:15px}.ref-detail-stage .ref-art--words{padding:32px}.ref-detail-thumbs{gap:8px;display:flex;overflow-x:auto}.ref-detail-thumb.ref-detail-thumb{opacity:.6;width:64px;height:64px;transition:opacity .16s ease, transform .22s var(--rm-spring);border:0;border-radius:12px;flex:none;padding:0;overflow:hidden;box-shadow:inset 0 0 0 1px #0000000f}.ref-detail-thumb.ref-detail-thumb:hover{opacity:.9}.ref-detail-thumb.ref-detail-thumb.is-active{opacity:1;box-shadow:0 0 0 2px var(--color-ink);transform:scale(1.02)}.ref-detail-thumb.is-drawing{background:linear-gradient(120deg,#ece9f5,#f5efe6,#e8f1ee) 0 0/300% 300%;animation:3s ease-in-out infinite ref-aurora}.ref-detail-info{flex-direction:column;gap:16px;padding:20px;display:flex}@media (width>=768px) and (height>=501px),(width>=768px) and (pointer:fine),(width>=768px) and (pointer:none){.ref-detail-info{flex:1;min-width:0;padding:28px 28px 24px;overflow-y:auto}}.ref-detail-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.ref-detail-kind{color:var(--color-ink-50);align-items:center;gap:6px;font-size:12.5px;display:inline-flex}.ref-detail-kind svg{width:14px;height:14px}.ref-detail-name{font-family:var(--font-display);letter-spacing:-.025em;margin:0;font-size:28px;font-weight:600;line-height:1.15}.ref-detail-name-input{font-family:var(--font-display);letter-spacing:-.02em;font-size:24px;font-weight:600}.ref-detail-desc{color:var(--color-ink-70);white-space:pre-wrap;margin:0;font-size:14px;line-height:1.55}.ref-detail-mention{background:var(--color-surface,#f5f5f7);color:var(--color-ink-70);border-radius:14px;align-items:center;gap:10px;padding:12px 14px;font-size:13px;display:flex}.ref-detail-mention code{color:var(--color-ink);font-family:var(--font-sans);background:#fff;border-radius:999px;padding:2px 8px;font-weight:500;box-shadow:inset 0 0 0 1px #00000014}.ref-detail-mention>span{flex:1;min-width:0}.ref-detail-colors{flex-wrap:wrap;gap:8px;display:flex}.ref-detail-color{font-variant-numeric:tabular-nums;color:var(--color-ink-70);align-items:center;gap:6px;font-size:12px;display:flex}.ref-detail-dot{border-radius:999px;width:18px;height:18px;box-shadow:inset 0 0 0 1px #0000001f}.ref-detail-actions{flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:8px;display:flex}.ref-detail-close.ref-detail-close{border-radius:999px;width:34px;height:34px}.ref-dialog-mode{margin:4px 0 12px}.ref-dialog-ai{align-items:center;gap:5px;display:inline-flex}.ref-dialog-ai svg{width:13px;height:13px}.ref-dialog-form{flex-direction:column;gap:8px;display:flex}.ref-dialog-form label{margin-top:4px}.ref-dialog-files{flex-wrap:wrap;gap:6px;display:flex}.ref-dialog-files img{-o-object-fit:cover;object-fit:cover;width:56px;height:56px;animation:ref-card-in .26s var(--rm-ease) both;border-radius:10px}.ref-dialog-colors{gap:6px;display:flex}.ref-color-input{cursor:pointer;background:0 0;border:0;border-radius:10px;flex:1;height:44px;padding:0}.ref-color-input::-webkit-color-swatch-wrapper{padding:0}.ref-color-input::-webkit-color-swatch{border:1px solid #0000001a;border-radius:10px}.ref-dialog-switch{color:var(--color-ink-70);align-items:center;gap:10px;margin-top:6px;font-size:13px;display:flex}.ref-dialog-error{color:var(--color-destructive);font-size:12.5px}.ref-dialog-actions{justify-content:flex-end;gap:8px;margin-top:10px;display:flex}.mention-wrap{width:100%;display:block;position:relative}.mention-wrap>textarea{z-index:1;position:relative}.mention-mirror{z-index:0;pointer-events:none;white-space:pre-wrap;overflow-wrap:break-word;color:#0000;position:absolute;top:0;left:0;overflow:hidden}.mention-chip{color:#0000;animation:mention-pop .32s var(--rm-spring) both;background:#e2ff528c;border-radius:6px;box-shadow:0 0 0 2px #e2ff528c}@keyframes mention-pop{0%{background:#e2ff5200;box-shadow:0 0 0 6px #e2ff5200}}@media (prefers-reduced-motion:reduce){.rm,.rm-view,.rm-preview,.ref-card,.ref-detail,.ref-detail-scrim,.mention-chip{animation:none}.rm-hl,.rm-body,.ref-card-art{transition:none}}.ref-pick-button.ref-pick-button{color:var(--color-ink-70);align-self:flex-start;gap:6px;margin-top:8px}.ref-pick-button svg{width:15px;height:15px}.ref-save-preview{background:var(--color-paper-dim,#f3f1ec);border-radius:14px;height:180px;margin:4px 0 10px;overflow:hidden}.ref-save-preview .ref-art--img{-o-object-fit:contain;object-fit:contain}.ref-save-types{flex-wrap:wrap;gap:4px;display:flex}.ref-save-addto{color:var(--color-ink-70);flex-wrap:wrap;align-items:center;gap:6px;margin:-2px 0 12px;font-size:12.5px;display:flex}.ref-save-addto svg{width:13px;height:13px}.rpp{flex-direction:column;height:100%;min-height:0;display:flex}.rpp-types{flex-wrap:wrap;gap:4px;margin:2px 0 12px;display:flex}.rpp-grid{-moz-columns:2;columns:2;-moz-column-gap:12px;column-gap:12px;padding:2px 2px 16px;overflow-y:auto}.rpp-grid>.ref-card{-moz-column-break-inside:avoid;break-inside:avoid;margin-bottom:14px}@media (width>=900px){.rpp-grid{-moz-columns:4;columns:4}}.rpp-check{background:var(--color-ink);color:#fff;width:24px;height:24px;animation:mention-pop .32s var(--rm-spring) both;border-radius:999px;place-items:center;display:grid;position:absolute;top:8px;right:8px}.rpp-check svg{width:13px;height:13px}.ref-card.is-added{cursor:default}.ref-card.is-added .ref-card-art{box-shadow:0 0 0 2px var(--color-ink)}.ref-seen-title{margin:4px 0 8px;font-size:13px;font-weight:600}.ref-seen-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}.ref-seen-tile{aspect-ratio:1;animation:ref-card-in .36s var(--rm-ease) both;background:#0000000a;border-radius:10px;position:relative;overflow:hidden}.ref-seen-link{width:100%;height:100%;display:block}.ref-seen-link .ref-art--img{transition:transform .4s var(--rm-ease)}.ref-seen-link:hover .ref-art--img{transform:scale(1.05)}.ref-seen-add.ref-seen-add{opacity:0;background:#ffffffeb;border-radius:999px;width:26px;height:26px;transition:opacity .16s;position:absolute;bottom:4px;right:4px}.ref-seen-tile:hover .ref-seen-add,.ref-seen-add:focus-visible{opacity:1}@media (hover:none){.ref-seen-add.ref-seen-add{opacity:1}}.ref-seen-add svg{width:13px;height:13px}.ref-pack-cost{background:var(--color-surface,#f5f5f7);color:var(--color-ink-70);border-radius:12px;margin:4px 0 8px;padding:10px 12px;font-size:13px}.ref-detail-credit{color:var(--color-ink-50);margin:6px 0 0;font-size:13px}.ref-detail-as{flex-wrap:wrap;align-items:center;gap:4px;width:100%;margin-bottom:4px;display:flex}.ref-detail-as-label{width:100%;color:var(--color-ink-50);font-size:12px}.ref-card-add.ref-card-add{opacity:0;justify-content:center;transition:opacity .16s,transform .2s cubic-bezier(.2,.8,.2,1);position:absolute;bottom:8px;left:8px;right:8px;transform:translateY(4px)}.ref-card:hover .ref-card-add,.ref-card:focus-within .ref-card-add,.ref-card-add.is-busy{opacity:1;transform:none}@media (hover:none){.ref-card-add.ref-card-add{opacity:1;transform:none}}.ref-card-added{background:var(--color-ink);width:24px;height:24px;color:var(--color-paper-dim,#f3f1ec);border-radius:999px;place-items:center;font-size:13px;animation:.26s cubic-bezier(.2,.8,.2,1) ref-added-in;display:grid;position:absolute;top:8px;right:8px}@keyframes ref-added-in{0%{opacity:0;transform:scale(.4)}}.ref-card-add-wrap{display:flex;position:absolute;bottom:8px;left:8px;right:8px}.ref-card-add-wrap .ref-card-add.ref-card-add{flex:1;position:static}.ref-card:hover .ref-card-add-wrap .ref-card-add,.ref-card:focus-within .ref-card-add-wrap .ref-card-add{opacity:1;transform:none}.ref-card-save-wrap{position:absolute;top:8px;left:8px}.ref-card-save.ref-card-save{width:30px;height:30px;min-height:0;color:var(--color-ink);opacity:0;background:#ffffffdb;border-radius:999px;transition:opacity .16s}.ref-card:hover .ref-card-save,.ref-card:focus-within .ref-card-save,.ref-card-save.is-on{opacity:1}@media (hover:none){.ref-card-save.ref-card-save{opacity:1}}.refs-shelves{border-bottom:1px solid var(--color-hairline,#00000014);gap:4px;margin:4px 0 18px;display:flex}.refs-shelf.refs-shelf{height:auto;color:var(--color-ink-50);background:0 0;border-radius:0;align-items:baseline;gap:8px;padding:10px 14px 12px;font-size:17px;font-weight:500;display:inline-flex;position:relative}.refs-shelf.refs-shelf:hover{color:var(--color-ink);background:0 0}.refs-shelf.refs-shelf.is-active{color:var(--color-ink)}.refs-shelf.is-active:after{content:"";background:var(--color-ink);border-radius:2px;height:2px;position:absolute;bottom:-1px;left:10px;right:10px}.refs-shelf-count{color:var(--color-ink-50);font-size:13px;font-weight:400}.refs-head+.refs-shelves+.refs-types,.refs-shelves+.refs-types{margin-bottom:14px}.refs-empty--inline{text-align:left;padding:8px 0 0}.refs-collections{gap:10px;margin:0 -16px 20px;padding:2px 16px 6px;display:flex;overflow-x:auto}.refs-collection{text-align:left;cursor:pointer;width:132px;color:inherit;font:inherit;background:0 0;border:0;flex:none;grid-template-columns:1fr auto;gap:2px 6px;padding:0;display:grid}.refs-collection-art{aspect-ratio:4/3;background:#0000000a;border-radius:14px;grid-column:1/-1;transition:box-shadow .18s,transform .22s cubic-bezier(.2,.8,.2,1);display:block;overflow:hidden;box-shadow:inset 0 0 0 1px #0000000d}.refs-collection-art>*{width:100%;height:100%}.refs-collection-art img{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.refs-collection:hover .refs-collection-art{transform:translateY(-2px)}.refs-collection.is-active .refs-collection-art{box-shadow:0 0 0 2px var(--color-ink)}.refs-collection-name{white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;overflow:hidden}.refs-collection-count{color:var(--color-ink-50);font-size:12px}@media (width>=768px) and (height>=501px),(width>=768px) and (pointer:fine),(width>=768px) and (pointer:none){.refs-collections{margin:0 -32px 22px;padding:2px 32px 6px}.refs-collection{width:150px}}.refs-masonry{-moz-columns:2 150px;columns:2 150px;-moz-column-gap:12px;column-gap:12px}.refs-masonry>.ref-card{-moz-column-break-inside:avoid;break-inside:avoid;margin-bottom:14px}@media (width>=768px) and (height>=501px),(width>=768px) and (pointer:fine),(width>=768px) and (pointer:none){.refs-masonry{-moz-columns:4 200px;columns:4 200px;-moz-column-gap:16px;column-gap:16px}}@media (width>=1400px){.refs-masonry{-moz-columns:5 220px;columns:5 220px}}.ref-art--prompt{background:var(--color-paper-dim,#f3f1ec);color:var(--color-ink);flex-direction:column;gap:10px;padding:16px 16px 0;display:flex;position:relative;overflow:hidden}.ref-art--prompt:after{content:"";background:linear-gradient(to bottom, color-mix(in srgb, var(--color-paper-dim,#f3f1ec) 0%, transparent), var(--color-paper-dim,#f3f1ec) 85%);pointer-events:none;height:40%;position:absolute;inset:auto 0 0}.ref-prompt-mark{width:16px;height:16px;color:var(--color-ink-50);flex:none}.ref-prompt-text{color:var(--color-ink-70);white-space:pre-wrap;overflow-wrap:anywhere;font-size:11.5px;line-height:1.55}.ref-art--prompt[data-size=thumb]{place-items:center;padding:0;display:grid}.ref-art--prompt[data-size=thumb]:after{content:none}.ref-art--prompt[data-size=thumb] .ref-prompt-mark{width:14px;height:14px}.ref-art--prompt[data-size=preview]{padding:22px 22px 0}.ref-art--prompt[data-size=preview] .ref-prompt-text{font-size:13px}.ref-art--clip{background:#111}.prompts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media (width>=768px) and (height>=501px),(width>=768px) and (pointer:fine),(width>=768px) and (pointer:none){.prompts-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=1024px){.prompts-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=1400px){.prompts-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}.ref-card[data-type=prompt] .ref-card-art{aspect-ratio:4/5}.ref-card[data-type=prompt]{gap:4px}.ref-card[data-type=prompt] .ref-card-art{margin-bottom:4px}.prompt-card-model{color:var(--color-ink-50);white-space:nowrap;text-overflow:ellipsis;padding:0 2px;font-size:12px;overflow:hidden}.pm-preview-art{aspect-ratio:4/3}.pm-preview-model{color:var(--color-ink-50);margin:0 4px 6px;font-size:11.5px}.pm-preview-text{color:var(--color-ink-70);white-space:pre-wrap;-webkit-line-clamp:9;-webkit-box-orient:vertical;margin:0 4px;font-size:11.5px;line-height:1.45;display:-webkit-box;overflow:hidden}.pm .rm-row-meta{text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;max-width:38%;overflow:hidden}.prompt-detail-words{background:var(--color-surface,#f5f5f7);max-height:34vh;color:var(--color-ink);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:14px;padding:14px 16px;font-size:13.5px;line-height:1.6;overflow-y:auto}.prompt-detail-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0;display:grid}.prompt-detail-settings>div{min-width:0}.prompt-detail-settings dt{color:var(--color-ink-50);font-size:12px}.prompt-detail-settings dd{text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;font-size:13.5px;font-weight:500;overflow:hidden}.prompt-detail .ref-detail-mention kbd{font-size:12px}@media (width>=768px) and (height>=501px),(width>=768px) and (pointer:fine),(width>=768px) and (pointer:none){.prompt-detail.is-words{width:min(720px,100vw - 64px);margin-left:calc(min(720px,100vw - 64px)/-2)}.prompt-detail.is-words .prompt-detail-words{max-height:46vh}}.prompt-dialog.prompt-dialog{max-width:560px}.prompt-dialog-result{align-items:center;gap:14px;margin-bottom:4px;display:flex}.prompt-dialog-thumb{background:var(--color-paper-dim,#f3f1ec);width:64px;height:64px;color:var(--color-ink-50);border-radius:12px;flex:none;place-items:center;display:grid;overflow:hidden}.prompt-dialog-thumb svg{width:22px;height:22px}.prompt-dialog-result .ref-dialog-switch{margin-top:0}.prompt-dialog-words{max-height:40vh;font-size:13px;line-height:1.55}.prompt-dialog-settings{border-radius:14px;margin-top:4px;padding:2px 12px;box-shadow:inset 0 0 0 1px #00000014}.prompts-hint{max-width:640px;color:var(--color-ink-50);margin:0 0 22px;font-size:13.5px;line-height:1.5}
