:root {
  color-scheme:dark;
  --bg:#10131a;
  --surface:#161a24;
  --surface-2:#1b202c;
  --edge:#2b3241;
  --edge-soft:#252b39;
  --text:#eef0f5;
  --muted:#a9b0c0;
  --subtle:#949cad;
  --gold:#a6b5d7;
  --gold-deep:#272c37;
  --accent:#aebbda;
  --serif:"Songti SC","Noto Serif KR","Nanum Myeongjo","Batang",serif;
  --sans:"Pretendard","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(ellipse 78% 480px at 50% 0,#151b28 0%,transparent 80%),var(--bg); color:var(--text); font:14px/1.55 var(--sans); }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; color:inherit; }
button:disabled { cursor:default; opacity:.38; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
a { color:inherit; text-decoration:none; }
p,h1,h2,h3,h4 { margin:0; }
.icon { flex:none; vertical-align:middle; }
.shell { width:min(1280px,calc(100% - 88px)); margin-inline:auto; }
.topbar { background:#11151eeb; border-bottom:1px solid #242a37; }
.top-inner { display:flex; align-items:center; justify-content:space-between; min-height:67px; gap:18px; }
.brand { display:flex; align-items:center; gap:11px; background:none; border:0; padding:0; text-align:left; white-space:nowrap; font-size:16px; font-weight:750; letter-spacing:-.04em; }
.brand small { display:block; color:var(--gold); font-size:8px; letter-spacing:.19em; line-height:1.25; font-weight:650; }
.brand-moon { width:37px; height:37px; display:grid; place-items:center; font:27px/1 Georgia,serif; padding-bottom:2px; color:var(--gold); background:#232a38; border:1px solid #414c63; border-radius:50%; }
.top-nav { align-self:stretch; display:flex; align-items:center; justify-content:center; gap:6px; }
.nav-btn { position:relative; display:inline-flex; align-items:center; gap:8px; padding:9px 13px; border:1px solid transparent; border-radius:8px; background:transparent; white-space:nowrap; font-size:13px; color:#afb6c4; }
.nav-btn .icon,.btn .icon { width:16px; height:16px; }
.nav-btn:hover { background:#1d2331; color:var(--text); }
.nav-btn.active { background:#242b3c; border-color:#333c4f; color:#e8ecf4; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; color:#dfe4ef; font-weight:630; white-space:nowrap; min-height:39px; padding:8px 13px; background:#1c212d; border:1px solid #333b4c; border-radius:8px; }
.btn:hover:not(:disabled),.icon-btn:hover:not(:disabled) { background:#283145; border-color:#505b74; color:#fff; }
.btn-small { min-height:34px; padding:6px 10px; font-size:12px; }
.primary { background:#9daed3; color:#181c24; border-color:#b1bedc; }
.primary:hover:not(:disabled) { background:#bbc6e0; color:#181c24; border-color:#d1d9eb; }
.icon-btn { display:inline-grid; place-items:center; background:#1b202c; border:1px solid #313849; color:#c4cde2; min-width:34px; height:34px; border-radius:8px; padding:5px; }
.icon-btn .icon { width:16px; height:16px; }
.icon-btn[aria-pressed="true"] { color:var(--gold); background:#2c3343; border-color:#48546e; }
.hero { margin:27px 0 23px; height:205px; border:1px solid #384155; border-radius:16px; overflow:hidden; position:relative; isolation:isolate; background:#181c26; box-shadow:0 14px 36px #06080b40; }
.hero-content { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:23px 42px; }
.hero-overline { font-size:12px; letter-spacing:.11em; color:var(--gold); font-weight:690; display:flex; align-items:center; gap:9px; }
.hero-overline span { font-size:15px; }
.hero h1 { font:700 clamp(32px,4vw,52px)/1.18 var(--serif); letter-spacing:-.055em; color:#eef1f7; margin:10px 0 11px; }
.hero p { color:#c2c9d8; font-size:14px; letter-spacing:-.01em; max-width:540px; }
.studio-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(310px,350px); gap:20px; align-items:start; }
.studio-main { display:grid; gap:17px; min-width:0; }
.panel { background:var(--surface); border:1px solid var(--edge); border-radius:13px; }
.spread-panel,.memo-panel,.detail-panel { padding:21px; min-width:0; }
.panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.heading-kicker { display:flex; align-items:center; gap:7px; margin-bottom:7px; color:var(--gold); font-size:11px; letter-spacing:.07em; font-weight:700; }
.heading-kicker .icon { width:15px; height:15px; }
.panel-heading h2 { margin:0; line-height:1.3; letter-spacing:-.04em; font-size:23px; overflow-wrap:anywhere; }
.panel-heading p { margin-top:6px; color:var(--muted); font-size:13px; }
.spread-controls,.board-actions,.detail-arrows,.detail-actions,.tile-actions,.photo-tools,.save-actions { display:flex; align-items:center; gap:7px; }
.spread-controls { padding-top:4px; }
.board-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:17px; padding:10px 0; border-top:1px solid var(--edge-soft); }
.board-count { color:var(--muted); font-size:12px; white-space:nowrap; display:flex; align-items:center; gap:5px; }
.board-count strong { color:#9daed3; font-variant-numeric:tabular-nums; }
.dot { width:6px; height:6px; border-radius:50%; background:#b6c2de; box-shadow:0 0 9px #b2bfdc61; display:inline-block; margin-right:3px; }
.layout-switch { display:flex; gap:2px; padding:2px; border:1px solid #303746; border-radius:8px; background:#151921; }
.layout-switch .icon-btn { border-color:transparent; background:transparent; height:27px; min-width:29px; border-radius:5px; }
.layout-switch .icon-btn[aria-pressed="true"] { background:#282f3e; color:var(--gold); }
.spread-board { display:grid; grid-template-columns:repeat(min(var(--slots),7),minmax(0,1fr)); justify-items:center; align-items:start; gap:14px 8px; position:relative; background:radial-gradient(ellipse at 50% 30%,#202737a1,transparent 76%),radial-gradient(circle at center,#95a7cf24 1px,transparent 1.5px) 0 0/19px 19px,#11151e; border:1px solid #272e3d; border-radius:10px; padding:15px 10px 14px; min-height:197px; }
.spread-board.cross { grid-template-columns:repeat(3,minmax(0,104px)); justify-content:center; }
.spread-board.cross > :nth-child(1) { grid-column:2; grid-row:2; }
.spread-board.cross > :nth-child(2) { grid-column:1; grid-row:1; }
.spread-board.cross > :nth-child(3) { grid-column:2; grid-row:1; }
.spread-board.cross > :nth-child(4) { grid-column:3; grid-row:1; }
.spread-board.cross > :nth-child(5) { grid-column:1; grid-row:3; }
.spread-board.cross > :nth-child(6) { grid-column:2; grid-row:3; }
.spread-board.cross > :nth-child(7) { grid-column:3; grid-row:3; }
.spread-board.custom { grid-template-columns:repeat(var(--columns),minmax(30px,91px)); justify-content:center; }
.spread-board.custom .card-slot { grid-area:var(--card-row)/var(--card-col); }
.card-slot { appearance:none; width:100%; max-width:101px; padding:0 2px 1px; min-width:0; min-height:0; display:flex; flex-direction:column; align-items:center; gap:6px; border:0; background:none; border-radius:7px; color:#b6bed0; }
.card-slot:hover .tarot-face { border-color:#b3c0dd; transform:translateY(-2px); }
.slot-number { font-size:10px; letter-spacing:.07em; font-weight:720; color:#99a3ba; font-variant-numeric:tabular-nums; padding:1px 6px; border:1px solid transparent; border-radius:4px; }
.card-slot.selected .slot-number { background:#3c4456; border-color:#505a71; color:#bfcae2; }
.slot-title { width:100%; text-align:center; letter-spacing:-.075em; font-size:11.5px; font-weight:650; line-height:1.3; overflow-wrap:anywhere; }
.card-slot.selected .slot-title { color:#b2bfdd; }
.tarot-face { position:relative; isolation:isolate; width:100%; max-width:82px; aspect-ratio:.63; display:grid; place-items:center; border-radius:6px; border:1px solid #485675; box-shadow:0 5px 12px #06080ca0; overflow:hidden; transition:transform .16s,border-color .16s; background:radial-gradient(ellipse at 50% 34%,#34415f,#19202f 72%); color:#adbbda; }
.tarot-face::before,.tarot-face::after { content:""; position:absolute; inset:6px; border:1px solid currentColor; opacity:.36; border-radius:3px; pointer-events:none; }
.tarot-face::after { inset:9px; opacity:.22; border-radius:47% 47% 9% 9%; }
.card-slot.selected .tarot-face { border-color:#a0b0d4; box-shadow:0 0 0 2px #8ca0cc39,0 3px 16px #728abf85; }
.face-ornament { position:absolute; inset:13% 16% 19%; display:grid; align-content:center; justify-items:center; gap:6%; background:radial-gradient(ellipse at center,transparent 31%,currentColor 32%,transparent 33%,transparent 58%,currentColor 59%,transparent 60%); }
.face-ornament i { width:3px; height:3px; background:currentColor; transform:rotate(45deg); opacity:.72; margin:4px; }
.face-ornament b { font:normal clamp(18px,3.1vw,39px)/1 Georgia,serif; text-shadow:0 0 12px currentColor; }
.card-back { color:#7f8dab; background:radial-gradient(ellipse at center,#28344e,#181f2d 77%); }
.card-back .face-ornament { inset:13% 18%; }
.card-back .face-ornament b { font-size:clamp(15px,1.8vw,22px); text-shadow:none; }
.illustrated { background:radial-gradient(ellipse at 50% 31%,#50596d,#1b2335 78%); color:#b2bfdc; }
.card-m18 { background:radial-gradient(ellipse at 50% 31%,#606c87,#29344b 65%,#1e273a); color:#b7c3de; }
.card-m2,.card-c { background:radial-gradient(ellipse at 50% 30%,#6a748b,#2e3b58 70%,#1c263c); color:#e2e7f2; }
.card-m8,.card-w { background:radial-gradient(ellipse at 50% 30%,#59688b,#222b40 70%,#1d232f); color:#b3c0dd; }
.card-s { background:radial-gradient(ellipse at 50% 30%,#676e7f,#293143 70%,#202735); color:#dee4f0; }
.card-p { background:radial-gradient(ellipse at 50% 30%,#5d6473,#262c38 70%,#1c212c); color:#b2bfdc; }
.face-name { position:absolute; bottom:8%; left:8%; right:8%; padding:1px 1px 0; z-index:2; text-align:center; font-size:9px; line-height:1.15; font-weight:750; color:#dae1ef; word-break:keep-all; text-shadow:0 1px 3px #0b0e15; }
.tarot-face.inverted .face-ornament,.tarot-face.inverted img { transform:rotate(180deg); }
.photo-face img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.photo-face .face-name { background:#141a27ce; border-radius:4px; padding:3px; }
.board-footer { min-height:24px; margin-top:10px; display:flex; justify-content:space-between; align-items:center; gap:5px; color:var(--subtle); font-size:11.5px; }
.board-footer .icon { width:13px; height:13px; margin-right:3px; }
.text-btn { background:transparent; border:0; padding:3px 0; color:#abb9d8; white-space:nowrap; font-size:11.5px; }
.text-btn:hover { color:var(--gold); }
.detail-panel { background:linear-gradient(152deg,#1b212d,#151a24 72%); border-color:#363f53; }
.detail-head { display:flex; align-items:center; justify-content:space-between; }
.detail-head .heading-kicker { margin-bottom:0; }
.detail-arrows { gap:4px; }
.detail-arrows .icon-btn { height:27px; min-width:27px; }
.slot-caption { display:flex; align-items:center; gap:9px; margin:9px 0 12px; }
.slot-caption h2 { font-size:19px; letter-spacing:-.035em; font-weight:750; margin:0; overflow-wrap:anywhere; }
.detail-number { background:#343b4b; color:#b8c4df; border:1px solid #475166; border-radius:5px; padding:3px 6px; line-height:1.2; font-size:11px; font-weight:750; }
.prompt-box { background:#212837; border:1px solid #363d4e; border-radius:8px; padding:11px 12px; }
.prompt-theme { display:flex; align-items:flex-start; gap:8px; color:#cfd7e9; font-size:12px; }
.prompt-label { color:#9eafd4; font-size:10px; padding:2px 5px; line-height:1.2; background:#373c47; border-radius:4px; flex:none; }
.prompt-box p { font-size:13px; font-weight:650; margin-top:6px; overflow-wrap:anywhere; }
.card-summary { display:flex; gap:12px; align-items:center; padding-top:15px; }
.mini-card { width:48px; flex:none; }
.mini-card .face-ornament b { font-size:21px; }
.mini-card .face-ornament { gap:0; }
.mini-card .face-ornament i { margin:2px; }
.mini-card .tarot-face::before { inset:3px; }
.mini-card .tarot-face::after { inset:4px; }
.mini-card .face-name { font-size:6px; }
.card-group { color:var(--accent); font-size:10px; font-weight:700; letter-spacing:.045em; }
.card-summary h3 { font-size:21px; margin:2px 0 1px; line-height:1.2; }
.card-summary p,.card-meta { color:var(--muted); font-size:11px; }
.orientation { display:inline-block; color:#c2cbdf; border:1px solid #434d63; border-radius:4px; padding:0 4px; margin-left:3px; }
.meaning { margin:11px 0 0; }
.tags,.seed-labels { display:flex; flex-wrap:wrap; gap:4px; }
.tags span,.seed-labels span,.pill { display:inline-block; padding:3px 7px; border-radius:20px; font-size:11px; line-height:1.2; background:#282f40; color:#cbd4e8; border:1px solid #384258; }
.meaning h4 { font-size:12px; margin:12px 0 3px; color:#e9ecf4; }
.meaning p,.reading-lens p,.personal-meaning p { font-size:12px; color:#c0c7d6; white-space:pre-wrap; overflow-wrap:anywhere; }
.reading-lens,.personal-meaning { margin-top:10px; padding:8px 10px; border-left:2px solid #606a7f; background:#1a202d; border-radius:0 6px 6px 0; }
.reading-lens strong,.personal-meaning strong { display:block; font-size:11px; color:var(--gold); margin-bottom:2px; }
.guide-link { display:flex; align-items:center; text-align:left; gap:7px; width:100%; color:#a6b5d7; font-size:11.5px; font-weight:630; background:#242832; border:1px solid #383f4d; border-radius:6px; padding:6px 8px; margin-top:9px; }
.guide-link:hover { background:#293041; }
.guide-link .icon { width:13px; height:13px; }
.guide-link .icon:last-child:not(:first-child) { margin-left:auto; }
.guide-link span { overflow-wrap:anywhere; }
.detail-actions { margin:11px 0; flex-wrap:wrap; gap:5px; }
.detail-actions .btn { padding-inline:7px; }
.detail-actions .icon-btn { min-width:31px; }
label { display:block; font-size:12px; font-weight:680; color:#dadfeb; }
label > span { color:var(--subtle); font-weight:450; }
input:not([type=checkbox]),textarea,select { display:block; width:100%; max-width:100%; background:#12161f; color:var(--text); border:1px solid #303849; border-radius:7px; padding:9px 10px; margin-top:5px; min-height:36px; font-size:13px; }
input::placeholder,textarea::placeholder { color:#929aad; opacity:1; }
textarea { resize:vertical; min-height:68px; }
.detail-note textarea { font-size:12px; }
.memo-fields,.seed-top-fields,.seed-row-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.full { grid-column:1/-1; }
.memo-bottom { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:12px; }
.memo-photos { min-width:0; }
.memo-photos strong { font-size:12px; }
.photo-tools { align-items:flex-start; flex-wrap:wrap; margin-top:5px; }
.photo-tray { display:flex; gap:5px; flex-wrap:wrap; }
.photo-tile { display:flex; align-items:center; gap:3px; min-width:0; }
.photo-open { display:flex; align-items:center; gap:4px; background:#1d2331; border:1px solid #363e4f; border-radius:7px; padding:4px 6px; max-width:138px; font-size:11px; }
.photo-open img { width:24px; height:24px; border-radius:3px; object-fit:cover; }
.photo-open span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.photo-tile .icon-btn { min-width:26px; height:30px; }
.save-actions { margin-left:auto; }
#save-status { color:var(--subtle); font-size:10.5px; white-space:nowrap; }
.footer { display:flex; justify-content:space-between; gap:8px; margin-top:23px; padding:15px 0 23px; color:#989eac; font-size:11px; border-top:1px solid #262b37; }
.footer span span { color:var(--gold); font-size:14px; }
.library { padding:0 0 10px; }
.library-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:3px 0 14px; }
.library-heading h2 { font-size:22px; line-height:1.3; letter-spacing:-.035em; }
.library-heading h2 small { color:var(--gold); font-size:13px; margin-left:3px; }
.library-heading p { color:var(--muted); font-size:13px; margin-top:4px; }
.subsection { margin-top:24px; }
.library-grid,.guide-grid,.seed-picker-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.seed-tile { padding:16px; min-width:0; }
.tile-meta { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.tile-icon { width:34px; height:34px; display:grid; place-items:center; flex:none; background:#272f41; color:#cad3e7; border-radius:8px; }
.tile-icon .icon { width:18px; height:18px; }
.seed-tile h3 { font-size:16px; overflow-wrap:anywhere; }
.seed-tile p { font-size:12px; color:var(--muted); margin:4px 0 9px; min-height:36px; overflow-wrap:anywhere; }
.seed-labels { min-height:25px; }
.seed-labels span { background:#222938; font-size:10px; }
.tile-actions { margin-top:12px; }
.list-empty { display:flex; align-items:center; gap:12px; padding:21px; color:var(--muted); }
.list-empty strong { color:var(--text); }
.list-empty p { margin-top:3px; }
.list-empty > .icon { color:var(--accent); width:22px; height:22px; }
.search-field { display:flex; align-items:center; gap:8px; color:#aebbd9; border:1px solid #323b50; background:#161c28; border-radius:8px; padding:0 10px; margin:0 0 11px; max-width:505px; }
.search-field input { border:0; padding-inline:0; background:transparent; margin:0; }
.search-field input:focus-visible { outline:0; }
.search-field:focus-within { outline:2px solid var(--gold); outline-offset:2px; }
.history-list { display:grid; gap:8px; }
.history-row { display:flex; align-items:center; gap:10px; padding:11px 13px; }
.history-info { flex:1; min-width:0; }
.history-info h3,.history-info p { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.history-info h3 { font-size:15px; }
.history-info p { color:var(--muted); font-size:11px; margin-top:2px; }
.filters { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.filter { background:#191f2b; border:1px solid #30394c; border-radius:20px; padding:5px 8px; font-size:11px; }
.filter[aria-pressed="true"],.filter:hover { color:var(--gold); border-color:#596275; background:#2c3342; }
.guide-tile { display:flex; align-items:center; text-align:left; gap:9px; min-width:0; padding:9px 11px; }
.guide-tile:hover,.seed-tile.tile-picker:hover { background:#232a3a; border-color:#4c5771; }
.guide-tile > span:nth-child(2) { flex:1; min-width:0; }
.guide-tile strong,.guide-tile small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.guide-tile small,.card-choice small { color:var(--muted); font-size:10px; }
.guide-symbol,.choice-symbol { font:22px/1 Georgia,serif; color:var(--gold); background:#252c3b; border-radius:6px; flex:none; width:34px; height:34px; display:grid; place-items:center; }
dialog { color:var(--text); background:#181e2b; border:1px solid #4a5670; border-radius:14px; width:min(510px,calc(100% - 28px)); max-height:calc(100dvh - 52px); padding:0; box-shadow:0 22px 85px #06080ddb; overflow:auto; }
dialog.wide { width:min(740px,calc(100% - 28px)); }
dialog::backdrop { background:#090d15bc; backdrop-filter:blur(4px); }
.modal-shell { padding:18px; }
.modal-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:13px; }
.modal-heading h2 { font-size:21px; letter-spacing:-.035em; overflow-wrap:anywhere; }
.modal-description,.fine-print { color:var(--muted); font-size:13px; margin:4px 0 11px; }
.fine-print { margin-top:9px; font-size:11px; }
.modal-foot { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin-top:15px; }
.menu-list,.seed-rows { display:grid; gap:7px; }
.menu-item,.card-choice { display:flex; align-items:center; gap:10px; border:1px solid #31394a; background:#1c2332; border-radius:8px; text-align:left; padding:8px; min-width:0; }
.menu-item:not(:disabled):hover,.card-choice:hover { background:#262f42; border-color:#535e77; }
.menu-item > span:nth-child(2),.card-choice > span:nth-child(2) { flex:1; min-width:0; }
.menu-item strong,.menu-item small,.card-choice strong,.card-choice small { display:block; }
.menu-item small { color:var(--muted); margin-top:2px; font-size:11px; }
.seed-picker-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.tile-picker { text-align:left; }
.seed-row { min-width:0; padding:9px; margin:0; border:1px solid #384257; border-radius:8px; position:relative; }
.seed-row legend { color:var(--gold); font-size:12px; padding:0 5px; }
.seed-row-fields { margin-top:3px; padding-top:9px; }
.row-controls { display:flex; gap:3px; position:absolute; right:8px; top:-13px; }
.row-controls .icon-btn { min-width:25px; height:25px; }
.row-controls .icon { width:13px; height:13px; }
.seed-rows { margin-top:14px; gap:10px; }
.seed-add,.starter-line,.pdf-page { display:flex; gap:8px; align-items:flex-end; margin-top:10px; }
.starter-line label { flex:1; }
.seed-add { align-items:center; justify-content:space-between; color:var(--muted); font-size:11px; }
.seed-grid-controls { grid-column:1/-1; display:flex; gap:8px; }
.seed-grid-controls label { flex:1; }
.checkbox { display:flex; gap:6px; align-items:center; margin:8px 0; }
.checkbox input { margin:0; accent-color:#99aad1; width:15px; height:15px; }
.card-picker-list { max-height:min(410px,50dvh); overflow:auto; display:grid; gap:4px; }
.card-choice { padding:4px 8px; }
.card-choice .choice-symbol { width:28px; height:28px; font-size:18px; }
.card-guide-summary { display:flex; gap:11px; align-items:center; }
.card-guide-summary p { color:var(--muted); margin:3px 0 4px; }
.card-guide-summary .filters { margin:0; }
#meaning-form { margin-top:12px; }
.upload-box,.attached-guide { border:1px dashed #485573; border-radius:9px; display:flex; align-items:center; gap:7px; padding:16px; }
.upload-box { flex-direction:column; justify-content:center; text-align:center; background:#1f2634; }
.upload-box > .icon { color:var(--gold); width:24px; height:24px; }
.upload-box > span,.attached-guide small { color:var(--muted); font-size:11px; display:block; }
.attached-guide strong { overflow-wrap:anywhere; }
.draw-settings { margin-top:11px; border-top:1px solid var(--edge); }
.photo-preview { width:auto; max-width:100%; max-height:calc(100dvh - 145px); display:block; margin:auto; border-radius:7px; }
#toast { position:fixed; z-index:10; pointer-events:none; bottom:20px; left:50%; transform:translate(-50%,15px); opacity:0; transition:opacity .18s,transform .18s; display:flex; align-items:center; gap:7px; background:#253550; color:#ecf2fc; border:1px solid #627dab; padding:9px 13px; box-shadow:0 7px 25px #0b0f19; border-radius:9px; max-width:calc(100% - 36px); width:max-content; }
#toast .icon { color:var(--gold); }
#toast.visible { transform:translate(-50%,0); opacity:1; }
@media(max-width:1100px) {
  .shell { width:calc(100% - 46px); }
  .studio-layout { grid-template-columns:minmax(0,1fr) minmax(285px,315px); gap:12px; }
  .spread-panel,.memo-panel,.detail-panel { padding:15px; }
  .studio-main { gap:12px; }
  .slot-title,.face-name { font-size:10px; }
  .tarot-face::before { inset:4px; }
  .tarot-face::after { inset:6px; }
}
@media(max-width:850px) {
  .shell { width:calc(100% - 28px); }
  .studio-layout { display:flex; flex-direction:column; }
  .studio-main { display:contents; }
  .spread-panel,.detail-panel,.memo-panel { width:100%; }
  .spread-panel { order:0; }
  .detail-panel { order:1; scroll-margin:12px; }
  .memo-panel { order:2; }
  .hero { margin:16px 0 13px; height:157px; }
  .hero-content { padding:18px 23px; }
  .hero p { font-size:12px; max-width:72%; }
  .top-inner { flex-wrap:wrap; gap:0; justify-content:space-between; padding-top:9px; }
  .top-nav { order:2; width:100%; margin:7px 0; justify-content:flex-start; overflow-x:auto; }
  .nav-btn { font-size:11px; gap:5px; padding:7px 8px; }
  .nav-btn .icon { width:14px; height:14px; }
  .import-top { min-height:32px; font-size:12px; }
  .library-grid,.guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .spread-board { min-height:160px; }
  .card-slot { max-width:90px; }
}
@media(max-width:520px) {
  .brand { font-size:14px; }
  .brand-moon { width:31px; height:31px; font-size:22px; }
  .hero { height:145px; }
  .hero h1 { font-size:33px; }
  .hero p { max-width:82%; }
  .hero-content { padding-inline:16px; }
  .spread-panel,.detail-panel,.memo-panel { padding:12px; }
  .spread-heading h2 { font-size:19px; }
  .spread-heading p { font-size:11.5px; }
  .spread-controls { gap:4px; }
  .spread-controls .btn { padding-inline:5px; }
  .spread-controls .icon-btn { min-width:30px; }
  .spread-board:not(.cross):not(.custom) { grid-template-columns:repeat(min(var(--slots),4),minmax(0,1fr)); }
  .spread-board { gap:9px 6px; padding:9px 6px; }
  .card-slot { max-width:68px; }
  .spread-board.custom .slot-title { font-size:9px; }
  .memo-fields,.seed-top-fields { grid-template-columns:1fr; }
  .memo-bottom { align-items:flex-start; flex-direction:column; }
  .save-actions { align-self:flex-end; }
  .footer { flex-wrap:wrap; }
  .library-heading { align-items:flex-start; }
  .library-heading h2 { font-size:18px; }
  .library-heading p { font-size:11px; }
  .library-grid,.seed-picker-grid { grid-template-columns:1fr; }
  .guide-grid { gap:6px; }
  .guide-tile { gap:5px; padding:6px; }
  .guide-tile .icon { display:none; }
  .guide-symbol { width:26px; height:26px; font-size:16px; }
  .guide-tile strong { font-size:12px; }
  .history-row { gap:5px; padding:7px; }
  .history-row > .tile-icon { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; }
}
.seed-source { display:block; color:#8096c6; font-size:10px; line-height:1.3; margin:-3px 0 8px; }
.library-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.seed-layout-label { margin-top:10px; }
.seed-photo-reference { display:flex; gap:10px; align-items:center; margin-top:11px; }
.seed-photo-reference img { height:auto; width:121px; max-height:140px; object-fit:contain; border-radius:6px; background:#131720; }
.scan-preview { position:relative; width:fit-content; margin:auto; }
.scan-preview img { max-width:100%; max-height:54dvh; display:block; border-radius:7px; }
.scan-preview span { position:absolute; border:2px solid #c4daf8; border-radius:3px; pointer-events:none; box-shadow:0 0 0 1px #223a61; }
.scanning { min-height:144px; }
.spread-board.cross .card-slot { max-width:65px; }
.spread-board.custom .card-slot { max-width:72px; }
.spread-board.custom { grid-template-columns:repeat(var(--columns),minmax(0,84px)); }
@media(max-width:520px) {
  .library-actions { flex-direction:column; align-items:flex-end; }
  .library-actions .btn { min-height:34px; font-size:11px; padding:5px 7px; }
}
[hidden] { display:none!important; }
.spread-board.cross { row-gap:8px; }
.spread-board.cross .card-slot { max-width:62px; }

:root {
  --bg:#10131b;
  --surface:#171c27;
  --surface-2:#202737;
  --edge:#303b4f;
  --edge-soft:#283245;
  --text:#eaf0fa;
  --muted:#b5c0d3;
  --subtle:#a2afc7;
  --gold:#d4e0f6;
  --accent:#b9cbed;
  --paper:#e8edf5;
  --ink:#1f2c42;
}
body { background:var(--bg); }
.shell { width:min(1136px,calc(100% - 88px)); }
.topbar { border:0; background:var(--bg); }
.top-inner { min-height:76px; gap:25px; border-bottom:1px solid #242d3b; }
.brand { font-size:16px; gap:8px; font-weight:700; }
.brand-moon { background:none; border:0; border-radius:0; width:26px; height:32px; font-size:30px; }
.top-nav { gap:19px; }
.nav-btn { background:none; border:0; border-radius:0; padding:10px 2px; color:#9caac1; font-weight:550; font-size:13px; }
.nav-btn:hover,.nav-btn.active { background:none; color:var(--text); }
.nav-btn.active::after { content:""; position:absolute; left:2px; right:2px; bottom:4px; height:1px; background:var(--gold); }
.top-actions,.library-actions { display:flex; align-items:center; gap:6px; }
.btn { background:#263146; border:0; border-radius:7px; font-weight:650; }
.btn:hover:not(:disabled),.icon-btn:hover:not(:disabled) { background:#364762; color:#f4f7ff; }
.btn.primary { color:#19253b; background:#c6d8f4; }
.btn.primary:hover:not(:disabled) { background:#dfebff; color:#19253b; }
.btn.quiet,.import-top,.icon-btn,.draw-btn { background:transparent; border:0; }
.icon-btn { color:var(--muted); border-radius:6px; }
.top-actions .btn { min-height:35px; padding-inline:9px; }
.hero { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; background:none; border:0; border-radius:0; box-shadow:none; height:auto; overflow:visible; margin:37px 0 24px; }
.hero-content { position:static; display:block; padding:0; }
.hero h1 { color:#eff3fc; margin:0; font:700 clamp(30px,3.8vw,43px)/1.18 var(--serif); letter-spacing:-.06em; }
.hero p { margin-top:8px; color:var(--muted); font-size:13px; }
#page-actions:empty { display:none; }
#page-actions .btn { padding:9px 16px; }
.studio-layout { grid-template-columns:minmax(0,1fr) minmax(310px,338px); gap:14px; align-items:stretch; }
.spread-panel,.detail-panel,.memo-panel { padding:0; }
.spread-panel { display:flex; flex-direction:column; background:#181e2b; border-radius:14px; min-height:494px; }
.spread-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:20px 21px 0; }
.spread-heading h2 { font-size:21px; line-height:1.25; letter-spacing:-.05em; overflow-wrap:anywhere; }
.spread-heading p { margin-top:5px; color:var(--subtle); font-size:11px; font-variant-numeric:tabular-nums; }
.spread-controls { padding:0; gap:2px; }
.spread-controls .btn { min-height:32px; padding:6px 8px; font-size:12px; color:#d2def1; }
.spread-controls .btn .icon { order:2; }
.spread-controls .icon-btn { min-width:29px; }
.spread-board { flex:1; align-content:center; background:none; border:0; min-height:0; padding:16px 17px; gap:14px 9px; }
.spread-board.cross { row-gap:12px; grid-template-columns:repeat(3,minmax(0,98px)); }
.spread-board.cross .card-slot { max-width:68px; }
.spread-board.custom .card-slot { max-width:67px; }
.card-slot { gap:7px; padding:1px; }
.slot-title { font-size:11px; line-height:1.28; letter-spacing:-.05em; color:#b9c6dd; }
.slot-position { color:#a1b0ce; margin-right:4px; font-size:9px; font-variant-numeric:tabular-nums; }
.card-slot.selected .slot-title,.card-slot.selected .slot-position { color:#d8e7ff; }
.tarot-face { display:grid; width:100%; aspect-ratio:.69; color:#d5e5ff; border:1px solid transparent; border-radius:7px; box-shadow:0 5px 12px #090b0e44; background:linear-gradient(153deg,#354669,#232e49); }
.tarot-face::before,.tarot-face::after,.face-name,.face-ornament i { display:none; }
.face-ornament,.card-back .face-ornament { inset:0; display:grid; place-items:center; background:none; }
.face-ornament b { font:normal clamp(19px,3vw,36px)/1 Georgia,serif; text-shadow:none; }
.card-back { background:#252f42; color:#7184a8; box-shadow:none; }
.card-back .face-ornament b { font-size:18px; }
.card-m18 { background:linear-gradient(153deg,#3d567d,#243550); color:#f0f4ff; }
.card-m2,.card-c { background:linear-gradient(153deg,#424f71,#2a3858); color:#e0eaff; }
.card-m8,.card-w { background:linear-gradient(153deg,#515475,#363b5c); color:#e6e9fa; }
.card-s { background:linear-gradient(153deg,#354f66,#23364b); color:#cfebf5; }
.card-p { background:linear-gradient(153deg,#475b62,#2b3d49); color:#dcecf0; }
.card-slot.selected .tarot-face { border-color:#c8defc; box-shadow:0 0 0 1px #c8defc49; }
.card-slot:hover .tarot-face { transform:none; border-color:#a9bee5; }
.board-footer { justify-content:center; gap:14px; margin:0; padding:5px 14px 16px; color:var(--muted); }
.draw-btn { color:#dde9ff; background:#263247; min-height:34px; }
.text-btn { color:#aebbd1; font-size:11px; }
.detail-panel { color-scheme:light; background:var(--paper); color:var(--ink); border:0; border-radius:14px; padding:20px 22px; height:100%; }
.detail-head { align-items:center; gap:8px; }
.detail-kicker { color:#556683; font-size:11px; font-weight:720; }
.detail-arrows .icon-btn,.detail-actions .icon-btn { color:#4c6287; background:transparent; }
.detail-arrows .icon-btn:hover:not(:disabled),.detail-actions .icon-btn:hover:not(:disabled) { color:#20304d; background:#d9e3f2; }
.slot-caption { margin:10px 0 7px; gap:7px; }
.slot-caption h2 { font:700 23px/1.25 var(--serif); letter-spacing:-.065em; }
.detail-number { border:0; border-radius:0; color:#536b91; background:none; padding:0; font-weight:650; font-size:12px; }
.prompt-box { background:none; border:0; padding:0 0 14px; border-bottom:1px solid #cbd5e5; border-radius:0; }
.prompt-theme { font-size:11px; color:#445a7d; gap:5px; margin:3px 0; }
.prompt-label { padding:0; background:none; color:#526b92; font-size:11px; line-height:1.55; }
.prompt-box p { color:#243750; font-size:13px; margin:3px 0 0; }
.card-summary { padding-top:15px; }
.card-summary h3 { font:700 34px/1.05 var(--serif); color:#1b2e4c; letter-spacing:-.085em; margin:5px 0; }
.card-group,.card-meta { color:#4b6288; font-size:11px; letter-spacing:0; }
.orientation { color:#486187; border:0; background:none; padding:0; margin-left:7px; }
.meaning { margin:12px 0 0; }
.reading-terms { color:#37547e; font-size:12px; font-weight:760; margin-bottom:6px; }
.detail-panel .meaning p { color:#354761; font-size:13px; line-height:1.65; }
.detail-panel .personal-meaning { color:var(--ink); background:#dbe5f1; border-color:#92a8cb; }
.detail-panel .personal-meaning strong { color:#405c86; }
.guide-link { background:none; border:0; padding:3px 0; width:auto; justify-content:flex-start; color:var(--gold); }
.guide-link:hover { background:none; text-decoration:underline; text-underline-offset:3px; }
.guide-link .icon:last-child:not(:first-child) { margin-left:0; }
.detail-panel .guide-link { color:#3b5884; }
.detail-actions { margin:10px 0 0; gap:4px; }
.detail-pick { color:#2b4367; background:#d8e2f1; font-size:12px; min-height:32px; padding:5px 9px; }
.detail-pick:hover:not(:disabled) { color:#233b60; background:#c9d8ee; }
.slot-note { margin-top:11px; }
.slot-note summary { color:#405c85; justify-content:flex-start; gap:7px; font-size:12px; font-weight:700; }
.slot-note textarea { color:#2a3b56; background:#f5f8ff; border-color:#b7c7e0; font-size:12px; }
.slot-note textarea::placeholder { color:#506382; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.memo-panel { grid-column:1/-1; background:none; border:0; border-top:1px solid #293345; border-radius:0; margin-top:3px; }
details summary { list-style:none; cursor:pointer; display:flex; align-items:center; }
details summary::-webkit-details-marker { display:none; }
details summary .icon { width:14px; height:14px; }
details[open] > summary .icon { transform:rotate(180deg); }
.memo-panel > summary { justify-content:space-between; gap:10px; padding:12px 1px 10px; color:#dce6f5; font-size:13px; font-weight:650; }
.memo-inner { padding:0 0 8px; }
.footer { border:0; justify-content:flex-end; margin-top:3px; padding:6px 0 18px; font-size:10px; }
.library-heading h2 { font-size:19px; }
.library-heading p { font-size:12px; }
.library-grid { gap:9px; }
.seed-tile { background:#181e2b; border:0; border-radius:9px; padding:15px; }
.seed-tile h3 { font-size:15px; }
.seed-tile p { margin:5px 0; min-height:0; }
.seed-source { margin:6px 0 0; color:#9eafce; }
.seed-tile .pill { background:none; border:0; color:#b8c7de; padding:0; font-size:11px; }
.seed-tile .tile-actions { margin-top:7px; justify-content:space-between; }
.seed-tile .tile-actions .btn { color:#d2e1f8; background:none; padding:0; min-height:32px; }
.seed-tile .tile-actions .icon-btn { min-width:29px; }
.guide-tile,.history-row,.list-empty { border:0; border-radius:8px; background:#181e2b; }
.guide-tile,.history-row { padding:11px 12px; }
.guide-symbol,.tile-icon { background:#252f42; color:var(--gold); }
dialog { background:#1c2433; border:1px solid #3b4963; }
.modal-shell { padding:19px 21px; }
.modal-heading { margin-bottom:14px; }
.modal-heading h2 { letter-spacing:-.045em; }
.menu-item,.card-choice { border:0; background:#263247; }
.menu-item:not(:disabled):hover,.card-choice:hover { background:#303f57; }
.tile-picker { padding:12px; min-height:82px; }
.tile-picker .seed-source { display:none; }
.tile-picker:hover { background:#35445f!important; }
.tags span,.filter { border:0; background:#2a3954; }
@media (max-width:920px) {
  .shell { width:calc(100% - 42px); }
}
@media (max-width:850px) {
  .top-inner { flex-wrap:nowrap; min-height:63px; gap:12px; padding:0; }
  .top-nav { order:0; width:auto; margin:0; gap:12px; overflow:visible; }
  .nav-btn { font-size:12px; }
  .hero { margin:24px 0 15px; }
  .hero h1 { font-size:35px; }
  .hero p { max-width:none; }
  .spread-panel { min-height:0; }
  .spread-board { flex:initial; padding:12px 9px; }
  .spread-board.cross { row-gap:10px; }
  .spread-board.cross .card-slot { max-width:58px; }
  .detail-panel { height:auto; padding:16px 17px; }
}
@media (max-width:535px) {
  .shell { width:calc(100% - 28px); }
  .top-inner { flex-wrap:wrap; padding-top:7px; gap:2px; }
  .top-nav { order:2; width:100%; justify-content:space-between; gap:6px; }
  .nav-btn { font-size:12px; }
  .hero { margin:20px 0 13px; }
  .hero h1 { font-size:29px; }
  .hero p { font-size:11px; margin-top:5px; }
  #page-actions .btn { min-height:34px; padding:5px 8px; font-size:11px; }
  .spread-heading { padding:15px 12px 0; }
  .spread-heading h2 { font-size:17px; }
  .spread-controls .btn { font-size:11px; padding:4px; }
  .spread-controls .icon-btn { min-width:24px; }
  .spread-board.cross { grid-template-columns:repeat(3,minmax(0,80px)); }
  .spread-board.cross .card-slot { max-width:49px; }
  .face-ornament b { font-size:24px; }
  .slot-title { font-size:10px; }
  .slot-position { font-size:8px; }
}
.seed-tile > .pill { float:right; margin-left:8px; }
.spread-board.cross .card-slot { max-width:96px; }
.spread-board.cross .tarot-face { max-width:68px; }
.slot-title { word-break:keep-all; }
@media (max-width:850px) {
  .spread-board.cross .tarot-face { max-width:58px; }
}
@media (max-width:535px) {
  .spread-board.cross .card-slot { max-width:78px; }
  .spread-board.cross .tarot-face { max-width:49px; }
}

.card-back .deck-rose {
  width:59%;
  height:auto;
  aspect-ratio:1;
  object-fit:contain;
  opacity:.84;
  filter:brightness(1.18) drop-shadow(0 4px 7px #111a2e85);
}
.card-slot.selected .card-back .deck-rose,.card-slot:hover .card-back .deck-rose { opacity:1; }

.hero-content { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:13px; min-width:0; }
#page-actions { display:flex; align-items:center; gap:5px; }
#page-back { min-height:35px; padding:5px 6px; color:var(--muted); font-size:12px; }
#page-back .icon { width:15px; height:15px; }
#page-actions [data-act="exit-reading"] { color:var(--muted); padding-inline:10px; }
.workspace-layout > #view { min-width:0; }
.resume-row { margin:0 0 13px; }

.seed-thumb {
  display:grid;
  place-items:center;
  min-width:0;
  height:108px;
  padding:7px;
  overflow:hidden;
  margin:0 0 10px;
  border-radius:6px;
  color:#b8c9e8;
  background:#111824;
}
.seed-thumb.photo-thumb { padding:0; background:#101620; }
.seed-thumb img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.seed-diagram {
  width:min(100%,calc(var(--diagram-cols) * 27px));
  height:min(100%,calc(var(--diagram-rows) * 29px));
  display:grid;
  gap:3px;
  grid-template-rows:repeat(var(--diagram-rows),minmax(0,1fr));
  grid-template-columns:repeat(var(--diagram-cols),minmax(0,1fr));
}
.seed-diagram > span {
  display:grid;
  place-items:center;
  margin:auto;
  background:#263851;
  border:1px solid #546d94;
  border-radius:3px;
  font-size:8px;
  line-height:1;
  color:#d5e1f6;
  width:min(100%,18px);
  height:min(100%,24px);
}
.seed-tile-copy { min-width:0; }
.seed-tile-copy > .pill { float:right; margin-left:7px; white-space:nowrap; }
.tile-picker { display:grid; grid-template-columns:70px minmax(0,1fr); align-items:center; gap:10px; }
.tile-picker .seed-thumb { height:59px; margin:0; padding:4px; }
.tile-picker .photo-thumb { padding:0; }
.tile-picker .seed-diagram > span { border-radius:2px; font-size:7px; }
.tile-picker .seed-diagram { gap:2px; }
.seed-cover-editor { display:flex; align-items:center; gap:12px; margin-top:12px; padding:10px; background:#182132; border-radius:8px; }
.seed-cover-editor > .seed-thumb { width:103px; height:74px; margin:0; flex:none; }
.seed-cover-editor strong { font-size:13px; }
.seed-cover-editor p { color:var(--muted); font-size:11px; margin:1px 0 5px; }
.seed-cover-actions { display:flex; flex-wrap:wrap; gap:4px; }

#pdf-shade { display:none; }
.pdf-dock {
  display:flex;
  flex-direction:column;
  position:sticky;
  top:12px;
  height:min(760px,calc(100dvh - 30px));
  min-width:0;
  min-height:355px;
  background:#1b2434;
  border-radius:12px;
  padding:12px;
  color:var(--text);
}
.pdf-dock-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:7px; padding:0 1px 5px; }
.pdf-dock-heading > div { flex:1; min-width:0; }
.pdf-dock-heading h2 { font-size:16px; line-height:1.35; }
#pdf-dock-file { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:11px; }
.pdf-nav,.pdf-dock-footer,.pdf-zoom,#pdf-dock-page-form { display:flex; align-items:center; gap:4px; }
.pdf-nav { padding:4px 0 7px; }
.pdf-nav .icon-btn { flex:none; min-width:30px; height:33px; }
.pdf-nav .pdf-external { margin-left:auto; }
.pdf-nav #pdf-dock-page-form input { width:61px; min-height:31px; margin:0; padding:5px 6px; text-align:center; }
#pdf-page-total { white-space:nowrap; min-width:34px; color:var(--muted); font-size:11px; }
.pdf-nav #pdf-dock-page-form button { min-height:30px; padding:4px 6px; font-size:11px; }
.pdf-view-body {
  position:relative;
  flex:1;
  min-height:0;
  border-radius:6px;
  background:#0f1622;
  overflow:auto;
  overscroll-behavior:contain;
  padding:10px;
}
.pdf-view-body canvas { display:block; margin-inline:auto; }
#pdf-view-status { color:var(--muted); font-size:12px; }
#pdf-view-status:not(:empty) { padding:5px 3px; }
.pdf-dock-footer { justify-content:space-between; padding-top:6px; gap:6px; }
.pdf-dock-footer .checkbox { margin:0; color:var(--muted); font-size:11px; }
.pdf-zoom { margin-left:auto; gap:0; }
.pdf-zoom .icon-btn,.pdf-zoom .btn { min-height:30px; height:30px; min-width:29px; padding:4px; }
.pdf-zoom .icon-btn { font-size:17px; }
.pdf-zoom .btn { font-size:10px; min-width:51px; }
@media (min-width:1101px) {
  .pdf-open .shell { width:min(1560px,calc(100% - 52px)); }
  .workspace-layout.with-pdf { display:grid; grid-template-columns:minmax(0,1fr) minmax(315px,37%); align-items:start; gap:13px; }
  .with-pdf .studio-layout { grid-template-columns:minmax(0,1fr) minmax(230px,37%); gap:10px; }
  .with-pdf .spread-panel { min-height:420px; }
  .with-pdf .spread-heading { padding:15px 12px 0; }
  .with-pdf .spread-heading h2 { font-size:17px; }
  .with-pdf .spread-board { padding:9px 7px; gap:9px 4px; }
  .with-pdf .detail-panel { padding:16px 13px; }
  .with-pdf .slot-title { font-size:10px; }
}
@media (max-width:1100px) {
  .pdf-open { overflow:hidden; }
  #pdf-shade:not([hidden]) { display:block; position:fixed; inset:0; background:#080d1679; border:0; z-index:5; }
  .pdf-dock { position:fixed; inset:8px 8px 8px auto; width:min(485px,calc(100vw - 16px)); height:auto; min-height:0; z-index:6; box-shadow:0 14px 52px #080d16c8; }
  .pdf-dock .icon-btn { min-width:36px; }
}
@media (max-width:535px) {
  .hero-content { gap:4px; }
  #page-back { font-size:11px; padding:4px 3px; }
  #page-back .icon { width:13px; height:13px; }
  #page-actions { gap:3px; }
  #page-actions [data-act="exit-reading"] { padding-inline:5px; }
  .pdf-dock { inset:auto 0 0; width:100%; height:min(88dvh,750px); padding-bottom:max(9px,env(safe-area-inset-bottom)); border-radius:12px 12px 0 0; }
  .pdf-dock-heading { padding-top:1px; }
}
