.tp-admin,.tp-app,.tp-upload,.tp-offer {
    --tp-ink:#301c29; --tp-muted:#68515e; --tp-red:#a01238; --tp-line:#c7a9b766;
    --tp-glass:rgba(255,253,254,.78); --tp-surface:linear-gradient(150deg,#fff9 12%,#fefcfd99 72%),var(--tp-glass);
    --tp-shadow:inset 0 1px 1px #fff,0 8px 25px -18px #5c173f85;
    box-sizing:border-box; color:var(--tp-ink); font-family:inherit; line-height:1.7; text-align:start;
}
.tp-admin *,.tp-app *,.tp-upload * {box-sizing:border-box}
.tp-admin,.tp-app,.tp-upload {
    background:radial-gradient(ellipse 80% 400px at 105% 0,#f4bac9bf,transparent 72%),
        radial-gradient(ellipse 65% 480px at -10% 28%,#dccdea99,transparent 74%),linear-gradient(122deg,#fbf4f5,#f1e9ef 94%);
    border:1px solid #dfc9d2; border-radius:26px; box-shadow:inset 0 1px #fff,0 12px 50px -36px #651d3aab;
    padding:clamp(18px,3.1vw,36px); max-width:100%;
}
.tp-admin {max-width:1130px;margin:25px auto 60px}
.tp-app,.tp-upload {max-width:880px;margin:1.5rem auto}
.tp-app [hidden],.tp-upload [hidden] {display:none!important}
.tp-head {display:flex;align-items:center;gap:14px;margin:0 0 20px}
.tp-head h1,.tp-head h2,.tp-head p,.tp-card h2,.tp-book strong {margin:0!important;padding:0!important}
.tp-head h1,.tp-head h2 {color:var(--tp-ink);font-weight:750;line-height:1.42}
.tp-admin .tp-head h1 {font:750 32px/1.12 system-ui;letter-spacing:-1.6px}
.tp-head p,.tp-card small,.tp-book small,.tp-offer small,.tp-line small {font-size:13px;color:var(--tp-muted)}
.tp-logo {width:50px;height:50px;flex:none;filter:drop-shadow(0 4px 4px #651a3b24)}
.tp-nav,.tp-card,.tp-wallet-strip,.tp-app .tp-book,.tp-packs,.tp-tabs,.tp-controls,.tp-upload-actions a {
    background:var(--tp-surface);border:1px solid #fffc;box-shadow:var(--tp-shadow);
}
@supports ((backdrop-filter:blur(8px)) or (-webkit-backdrop-filter:blur(8px))) {
    .tp-admin,.tp-app,.tp-upload {--tp-glass:rgba(255,255,255,.32)}
    .tp-nav,.tp-card,.tp-wallet-strip,.tp-app .tp-book,.tp-packs,.tp-tabs,.tp-controls {
        -webkit-backdrop-filter:blur(14px) saturate(128%);backdrop-filter:blur(14px) saturate(128%);
    }
}
.tp-nav,.tp-tabs,.tp-controls,.tp-line,.tp-upload-foot,.tp-pack,.tp-upload-actions,.tp-filters,.tp-tools {display:flex;align-items:center;gap:10px}
.tp-nav {border-radius:17px;padding:5px;margin:0 0 20px;flex-wrap:wrap;gap:3px}
.tp-nav a,.tp-filters a {display:inline-flex;text-decoration:none;color:var(--tp-muted);border-radius:12px;padding:8px 13px}
.tp-nav a.active,.tp-filters a.active {background:#fff;box-shadow:0 2px 8px #4d133318;color:var(--tp-red);font-weight:700}
.tp-nav a:hover,.tp-filters a:hover,.tp-upload-actions a:hover {color:var(--tp-red);background:#fff}
.tp-card,.tp-packs {border-radius:20px;padding:clamp(16px,2.4vw,27px);margin-bottom:16px}
.tp-card h2 {font-size:18px;color:var(--tp-ink);line-height:1.6}
.tp-grid,.tp-books {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 22px}
.tp-grid {margin-top:16px}
.tp-field,.tp-credit-form label,.tp-tools label {display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.tp-field>label:first-child,.tp-credit-form label,.tp-tools label {font-weight:600}
.tp-field input:not([type=checkbox]),.tp-field select,.tp-credit-form input,.tp-credit-form select,.tp-tools input {
    width:100%;max-width:none;min-height:40px;border:1px solid #c7b7c0;background:#fffdfefa;border-radius:10px;padding-inline:10px;color:var(--tp-ink)
}
.tp-field select[multiple] {height:auto}
.tp-field small,.tp-line small,.tp-book small {display:block}
.tp-field input[type=checkbox],.tp-offer input {accent-color:var(--tp-red)}
.tp-clear {font-size:12px;color:var(--tp-muted)}
.tp-button,.tp-app button,.tp-upload button {font-family:inherit;cursor:pointer;letter-spacing:normal;text-transform:none}
.tp-button,.tp-upload button.tp-button,.tp-app button.tp-button {
    border:1px solid #961637;border-radius:12px;background:linear-gradient(158deg,#ba3558,#941237);color:white;
    box-shadow:inset 0 1px #f4b7c66b,0 3px 9px #74233b21;font-weight:650;padding:9px 18px;line-height:1.55
}
.tp-button:hover,.tp-app button.tp-button:hover,.tp-upload button.tp-button:hover {background:#851234;color:#fff}
.tp-admin :focus-visible,.tp-app :focus-visible,.tp-upload :focus-visible,.tp-offer :focus-visible {outline:3px solid #98405b;outline-offset:3px}
.tp-admin form+.tp-card {margin-top:20px}
.tp-line {justify-content:space-between;flex-wrap:wrap;padding:13px 0;border-bottom:1px solid var(--tp-line)}
.tp-line>div:first-child {flex:1;min-width:120px}
.tp-line:last-child,.tp-pack:last-child {border:0}
.tp-wallet-strip {display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:16px;padding:13px 21px;margin-bottom:16px}
.tp-wallet-strip>span,.tp-book strong {font-size:1rem;font-weight:650}
.tp-wallet-strip strong {color:var(--tp-red);font-weight:700;font-size:1.55rem;line-height:1.4;font-variant-numeric:tabular-nums}
.tp-wallet-strip small {font-weight:500;font-size:13px}
.tp-app .tp-book {border-radius:18px;color:var(--tp-ink);padding:17px;display:flex;align-items:center;text-align:start;gap:12px;transition:transform .16s ease,box-shadow .16s ease}
.tp-book-info {min-width:0;overflow-wrap:anywhere}
.tp-app .tp-book:hover {transform:translateY(-2px);box-shadow:inset 0 1px #fff,0 6px 15px #63173d18;border-color:#dfbccb}
.tp-bookmark {display:grid;place-items:center;width:40px;height:49px;flex:none;border-radius:7px 12px 12px 7px;color:#8e1b40;font:27px/1 serif;background:linear-gradient(145deg,#fff6f8,#ebbfce);box-shadow:inset 2px 0 #fff9,0 3px 8px #6c24491a}
.tp-arrow {margin-inline-start:auto;color:var(--tp-red);font-size:27px}
.tp-credit-pills {display:flex;align-items:center;gap:4px 6px;flex-wrap:wrap;margin-top:8px}
.tp-credit-pills>span {padding:2px 8px;border-radius:12px;color:#65324d;background:#f5e7ee;font-size:11px}
.tp-credit-pills b {font-variant-numeric:tabular-nums}
.tp-app .tp-back {color:var(--tp-red);background:transparent;border:0;padding:6px 0;font-size:14px}
.tp-app .tp-shelf-buy {margin-inline-start:auto;background:#fff9;border:1px solid #fff;border-radius:20px;padding:6px 12px;white-space:nowrap}
.tp-title {margin:12px 0;font-size:1.35rem;overflow-wrap:anywhere}
.tp-tabs,.tp-controls {width:fit-content;gap:4px;padding:4px;border-radius:18px}
.tp-tabs {margin-block:12px}
.tp-app .tp-tabs button {background:transparent;color:var(--tp-muted);padding:7px 18px;border:0;border-radius:14px;font-size:15px}
.tp-app .tp-tabs button[aria-pressed=true] {color:#fff;background:var(--tp-red)}
.tp-paper {min-height:350px;background:#fffefc;border:1px solid #fff;box-shadow:0 10px 23px -16px #5125386b;padding:clamp(18px,5vw,54px);border-radius:17px}
.tp-body {white-space:pre-wrap;overflow-wrap:anywhere;text-align:start;font-size:1.07rem;line-height:2.05;color:#282226}
.tp-status {text-align:center;color:var(--tp-muted)}.tp-status:empty {display:none}
.tp-controls {margin:16px auto 8px}.tp-counter {padding:0 10px;font-size:.92rem}
.tp-app .tp-controls button {border:0;background:#fff;color:var(--tp-red);border-radius:14px;min-width:40px;min-height:38px;font-size:20px}
.tp-app button:disabled,.tp-upload button:disabled {opacity:.48;cursor:default}
.tp-balance {display:block;text-align:center;font-size:13px;color:var(--tp-muted)}
.tp-loading {text-align:center;margin:48px auto 0}
.tp-star-big,.tp-star-small {fill:#ab2550;transform-box:fill-box;transform-origin:center;animation:tp-star 1.5s ease-in-out infinite alternate}
.tp-star-small {fill:#d26a70;animation-delay:-.8s}@keyframes tp-star {from{transform:scale(.64);opacity:.52}to{transform:scale(1);opacity:1}}
.tp-pack {padding:14px 0;flex-wrap:wrap;border-bottom:1px solid var(--tp-line);text-decoration:none;color:var(--tp-ink)}
.tp-pack span:last-child {margin-inline-start:auto;color:var(--tp-red)}
.tp-drop {position:relative;display:grid;place-items:center;gap:6px;padding:33px 16px;margin:18px 0;border:1.5px dashed #aa7085;background:linear-gradient(155deg,#ffffffda,#f9eef3ad);border-radius:18px;cursor:pointer}
.tp-drop>span {display:grid;place-items:center;border-radius:13px;background:#fff;width:40px;height:40px;color:var(--tp-red);font:24px/1 sans-serif}
.tp-drop input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.tp-drop:focus-within,.tp-drop.over {outline:2px solid var(--tp-red)}
.tp-upload-foot,.tp-upload-actions,.tp-tools,.tp-filters {flex-wrap:wrap}
.tp-upload-actions {margin-top:12px}.tp-upload-actions a {text-decoration:none;color:var(--tp-red);padding:6px 13px;border-radius:12px}
.tp-offer {width:100%;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;border-inline-start:3px solid var(--tp-red);border-radius:10px;background:#fff4f6;padding:10px 14px;margin:8px 0 14px}
.tp-offer label {cursor:pointer}.tp-offer output:not(:empty) {display:block;flex-basis:100%;font-weight:600}
.tp-metrics {display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin:16px 0}
.tp-metrics>div {padding:13px 15px;border:1px solid #fff;border-radius:13px;background:#ffffffb3}
.tp-metrics strong {display:block;color:var(--tp-red);font-size:1.45rem;line-height:1.5;font-variant-numeric:tabular-nums}
.tp-filters {gap:4px;margin:10px 0}.tp-filters a {padding:4px 11px;border:1px solid var(--tp-line)}
.tp-tools,.tp-credit-form {align-items:end;margin:14px 0}
.tp-credit-form {display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:12px}
.tp-scroll {overflow-x:auto;margin-top:12px}
.tp-scroll table {width:100%;border-collapse:collapse;font-size:13px}
.tp-scroll th,.tp-scroll td {text-align:start;white-space:nowrap;padding:9px 10px;border-bottom:1px solid var(--tp-line)}
.tp-scroll th {color:var(--tp-muted);background:#fff8}.tp-scroll td a,.tp-line a,.tp-card>a {color:var(--tp-red)}
@media(max-width:680px) {
    .tp-grid,.tp-books {grid-template-columns:1fr}
    .tp-admin {margin-inline:0}.tp-admin,.tp-app,.tp-upload {padding:14px;border-radius:19px}
    .tp-paper {min-height:270px}.tp-logo {width:40px;height:40px}.tp-nav a {padding:7px 9px}
    .tp-wallet-strip {padding:10px 14px}.tp-head {gap:9px}.tp-head h2 {font-size:1.25rem}
}
@media(prefers-reduced-motion:reduce) {.tp-star-big,.tp-star-small {animation:none}.tp-app .tp-book {transition:none}.tp-app .tp-book:hover {transform:none}}
@media(prefers-reduced-transparency:reduce) {.tp-admin,.tp-app,.tp-upload {--tp-surface:#fff}.tp-nav,.tp-card,.tp-app .tp-book,.tp-wallet-strip,.tp-packs,.tp-tabs,.tp-controls {-webkit-backdrop-filter:none;backdrop-filter:none}}

/* Library cards can also sit in a narrow WooCommerce account column on a wide screen. */
.tp-app,.tp-app .tp-shelf,.tp-app .tp-books,.tp-app .tp-reader {min-inline-size:0;max-inline-size:100%}
.tp-app {width:min(100%,880px);container-type:inline-size}
.tp-app .tp-books {grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr))}
.tp-app button.tp-book {min-width:0;width:100%;max-width:100%;white-space:normal;overflow:hidden}
.tp-app .tp-book-info {flex:1 1 0;min-width:0;max-width:100%}
.tp-app .tp-book-title,.tp-app h3.tp-title {
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
    overflow-wrap:anywhere;word-break:break-word;white-space:normal;text-overflow:ellipsis;
    line-height:1.55;max-height:3.1em;text-align:start;
}
.tp-app .tp-reader-frame {
    display:grid;grid-template-rows:auto minmax(0,1fr) auto;position:relative;
    height:min(76vh,54rem);height:min(78dvh,54rem);min-width:0;isolation:isolate;
    background:#fffefc;border:1px solid #dfcbd3;border-radius:19px;box-shadow:var(--tp-shadow)
}
.tp-reader-bar,.tp-reader-foot {background:#fcf6f9;position:relative;z-index:2;padding:5px 9px}
.tp-reader-bar {display:flex;align-items:center;justify-content:space-between;gap:7px;border-radius:18px 18px 0 0;border-bottom:1px solid var(--tp-line);z-index:3}
.tp-app .tp-reader-bar .tp-tabs {margin:0;min-width:0;max-width:calc(100% - 45px)}
.tp-app .tp-tabs button {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-app .tp-reader-frame .tp-paper {min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;border:none;border-radius:0;box-shadow:none;-webkit-overflow-scrolling:touch}
.tp-app .tp-body {font-family:var(--tp-target-font,inherit);font-size:calc(var(--tp-target-size,18px) * var(--tp-zoom,1));color:var(--tp-target-color);line-height:var(--tp-target-leading);text-align:var(--tp-target-align);user-select:text}
.tp-app .tp-body[data-language="source"] {font-family:var(--tp-source-font,inherit);font-size:calc(var(--tp-source-size,18px) * var(--tp-zoom,1));color:var(--tp-source-color);line-height:var(--tp-source-leading);text-align:var(--tp-source-align)}
.tp-reader-foot {border-radius:0 0 18px 18px;border-top:1px solid var(--tp-line);padding-bottom:max(5px,env(safe-area-inset-bottom))}
.tp-app .tp-reader-foot .tp-controls {display:flex;justify-content:center;gap:4px;max-width:100%;width:auto;margin:0;padding:0;background:none;border:none;box-shadow:none;backdrop-filter:none}
.tp-app .tp-controls svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}
.tp-app .tp-controls .tp-save-page[aria-pressed=true] svg {fill:currentColor}
.tp-app .tp-reader-frame .tp-controls button,.tp-app .tp-options button,.tp-app .tp-options summary,.tp-app .tp-selection-action {
    background:#fff;color:#851737;border:1px solid #d6bdc9;border-radius:10px;display:inline-grid;place-items:center;
    margin:0;min-width:36px;min-height:38px;padding:3px 7px;font:inherit;line-height:1.3;cursor:pointer
}
.tp-app .tp-reader-frame .tp-controls button:is(:hover,:active,:focus,:focus-visible),
.tp-app .tp-options button:is(:hover,:active,:focus),.tp-app .tp-options summary:hover,.tp-app .tp-selection-action:hover {
    color:#761034!important;background:#f8e4ec!important;border-color:#a7516f
}
.tp-app .tp-reader-frame .tp-controls button:disabled {color:#705361;opacity:.5;cursor:default}
.tp-app .tp-jump,.tp-app .tp-jump label,.tp-app .tp-size-row {display:flex;align-items:center;justify-content:center;gap:5px;margin:0}
.tp-app .tp-jump,.tp-app .tp-counter {font-size:13px;padding:0;white-space:nowrap}
.tp-app .tp-jump input {box-sizing:border-box;width:3.1em;min-width:0;height:36px;margin:0;padding:0 2px;text-align:center;background:#fff;color:#33202d;border:1px solid #c3aaba;border-radius:8px;font:inherit}
.tp-app .tp-reader-frame .tp-jump button {min-width:28px;font-size:12px;padding:3px}
.tp-app .tp-options {position:relative;margin:0;padding:0;flex:none}
.tp-app .tp-options summary {list-style:none;letter-spacing:2px}.tp-options summary::-webkit-details-marker {display:none}
.tp-options-panel,.tp-selection-tools {
    padding:12px;border:1px solid #d9bfca;border-radius:14px;background:#fffcfe;
    box-shadow:0 8px 22px #45233828;position:absolute;inset-inline-end:0;z-index:4
}
.tp-options-panel {top:calc(100% + 6px);width:180px;max-height:min(45vh,320px);overflow:auto}
.tp-options-panel>span {display:block;font-size:13px;color:var(--tp-muted);margin-bottom:6px}
.tp-size-row output {min-width:3.1em;text-align:center}.tp-app .tp-options .tp-list-marks {width:100%;margin-top:9px}
.tp-mark-list {display:flex;flex-wrap:wrap;gap:5px;padding-top:8px;font-size:13px}
.tp-selection-tools {bottom:calc(100% + 4px);inset-inline-end:8px;padding:4px}
.tp-note-message:not(:empty) {font-size:12px;color:var(--tp-muted);text-align:center;margin:3px 0}
.tp-body mark {background:#ffe188;color:inherit;border-radius:3px;padding:0;cursor:pointer}
@container (max-width:390px) {
    .tp-app .tp-reader-foot {padding-inline:3px}.tp-app .tp-reader-foot .tp-controls {gap:2px}
    .tp-app .tp-jump label span {display:none}.tp-app .tp-jump {gap:3px}.tp-app .tp-tabs button {padding-inline:10px}
}
@media(max-width:600px) {.tp-reader-frame {scroll-margin-top:8px}.tp-app .tp-reader-frame{height:75vh;height:76dvh}.tp-app .tp-paper {padding:16px 13px}}

.tp-offer[hidden] {display:none!important}
.tp-shelf-search {display:flex;align-items:center;justify-content:flex-end;gap:.5em;font-size:.86rem;color:var(--tp-muted);margin:6px 0 12px}
.tp-shelf-search input,.tp-text-search input {min-width:0;max-width:100%;border:1px solid var(--tp-line);background:#fffcfd;border-radius:9px;padding:6px 10px;color:var(--tp-ink);font:inherit}
.tp-shelf-search input {width:min(14em,60%)}
.tp-reader-bar {flex-wrap:wrap}.tp-reader-bar .tp-full {margin-inline-start:auto}
.tp-app button.tp-full,.tp-app .tp-source-modes button,.tp-swatches button {display:grid;place-items:center;border:1px solid #ceb6c1;border-radius:9px;padding:6px;background:#fff;color:#801638}
.tp-full svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tp-app .tp-source-modes {display:flex;gap:3px;flex-basis:100%;justify-content:center}
.tp-app .tp-source-modes button {font:inherit;font-size:12px;padding:3px 10px}
.tp-source-modes button[aria-pressed=true] {background:#7d1737;color:#fff}
.tp-options-panel {width:min(230px,75vw);max-height:min(57dvh,440px);overscroll-behavior:contain}
.tp-text-search {margin:10px 0 3px;display:flex;align-items:end;gap:4px}
.tp-text-search label {min-width:0;font-size:13px}.tp-text-search input {width:100%}
.tp-hits {display:flex;flex-wrap:wrap;gap:4px;font-size:12px}
.tp-swatches {display:flex;gap:5px;justify-content:center;margin-bottom:4px}
.tp-app .tp-swatches button {background:var(--swatch)!important;color:#000;min-width:28px;min-height:28px}
.tp-swatches button[aria-pressed=true] {outline:2px solid #601533;outline-offset:1px}
.tp-pdf-view {width:100%;min-width:0;text-align:center;line-height:0}
.tp-pdf-view canvas {display:block;width:100%;max-width:100%;height:auto;margin:auto}
.tp-paper:has(.tp-pdf-view:not([hidden])) {padding:4px;background:#eae4e6}
::highlight(trapdf-found){background:#ffb857;color:#21170b}
.tp-app.tp-expanded {position:fixed!important;inset:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;max-width:none!important;z-index:2147483646;border:0;border-radius:0;background:#fff}
.tp-app.tp-expanded .tp-reader,.tp-app.tp-expanded .tp-reader-frame {width:100%!important;max-width:none!important;height:100%!important;margin:0!important;border:0;border-radius:0}
.tp-expanded .tp-reader>.tp-back,.tp-expanded .tp-title,.tp-expanded .tp-balance {display:none}
.tp-expanded .tp-reader-bar {padding-top:max(5px,env(safe-area-inset-top))}
@media(max-width:680px) {
    .tp-app .tp-reader-frame {width:calc(100vw - 8px);max-width:none;margin-inline:calc(50% - 50vw + 4px);height:88vh;height:88dvh;border-radius:12px}
    .tp-app .tp-reader-frame .tp-paper {padding:13px 10px}
    .tp-app .tp-reader-frame .tp-paper:has(.tp-pdf-view:not([hidden])) {padding:2px}
    .tp-app .tp-reader-bar .tp-tabs {max-width:calc(100% - 92px)}
    .tp-app .tp-reader-foot {padding-bottom:max(4px,env(safe-area-inset-bottom))}
}

.tp-app .tp-reader-bar button.tp-full:is(:hover,:focus,:focus-visible,:active) {
    color:#761034!important;background:#f8e4ec!important;border-color:#a7516f
}
.tp-app .tp-reader-bar button.tp-full svg,.tp-app .tp-reader-bar button.tp-full path {color:inherit!important;stroke:currentColor!important;fill:none!important}
.tp-reading-actions {display:flex;gap:8px;margin:12px 0 4px}
.tp-reading-actions svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tp-app .tp-night[aria-pressed=true] {background:#392e36;color:white}
.tp-app.tp-dark .tp-reader-frame .tp-paper,.tp-app.tp-dark .tp-body[data-language] {background:#202126;color:#fff}
.tp-app.tp-dark .tp-status {color:#f4e8ee}
.tp-app.tp-dark .tp-body mark {color:#19151a}
.tp-app .tp-search-dialog {box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(28rem,calc(100vw - 24px));height:fit-content;max-height:80dvh;overflow:auto;padding:18px 20px;border:1px solid #d8c2ca;border-radius:18px;background:#fffafb;color:#33202b;box-shadow:0 14px 70px #30192333}
.tp-search-dialog:not([open]) {display:none}
.tp-search-dialog::backdrop {background:#22141b77}
.tp-dialog-head,.tp-pack-actions {display:flex;align-items:center;justify-content:space-between;gap:10px}
.tp-dialog-head button,.tp-search-dialog .tp-hits button,.tp-search-dialog .tp-more-hits {border-radius:8px;border:1px solid #c5a8b6;background:#fff;color:#7b183b;padding:5px 10px;cursor:pointer}
.tp-search-dialog .tp-text-search {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;margin:12px 0}
.tp-search-dialog fieldset {grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;padding:6px 10px;border:1px solid #e1d1d8;border-radius:9px}
.tp-search-dialog fieldset label {display:flex;align-items:center;gap:3px}
.tp-search-dialog input[type=radio] {width:auto}
.tp-search-dialog input[type=search] {display:block;margin:4px 0 0;width:100%;box-sizing:border-box}
.tp-app .tp-pack {gap:12px;justify-content:space-between}
.tp-pack strong,.tp-pack p {margin:0}
.tp-pack-actions {flex-wrap:wrap}.tp-pack-result {width:100%;font-size:.9em}.tp-pack-result:has(span:empty) {display:none}
.tp-admin .tp-category-picker {width:min(100%,24rem);min-width:0}
.tp-admin .tp-category-list {margin-block-start:6px;max-height:12rem;overflow:auto;border:1px solid #cfbdc6;border-radius:9px;padding:5px 10px;background:#fff}
.tp-admin .tp-category-list label {display:flex;align-items:center;gap:8px;padding:4px;cursor:pointer}
.tp-admin .tp-category-list input[type=checkbox] {width:1rem;min-height:1rem;margin:0;flex:none}
.tp-admin [hidden] {display:none!important}
.tp-model-row,.tp-gift-form {display:flex;flex-wrap:wrap;align-items:end;gap:6px}
.tp-model-row {margin:5px 0}.tp-model-row output,.tp-gift-form h3 {flex-basis:100%}
.tp-model-list .tp-model-row input {flex:1 1 130px;min-width:0;width:auto}
.tp-gift-form {padding-block:12px 18px}.tp-gift-form label {display:grid;gap:5px}
.tp-gift-form select {max-width:min(300px,100%)}.tp-gift-form output:empty {display:none}
.tp-app.tp-dark .tp-pdf-view canvas {filter:invert(1) hue-rotate(180deg)}
.tp-pack-choices {display:flex;gap:8px;flex-wrap:wrap}.tp-pack-choices label {display:grid;gap:4px}
