/* 我的收藏：盒組頁的收藏列、願望清單、人偶按鈕、購買資料視窗與收藏頁。配色沿用圖卡庫獨立介面的變數。 */
.tll-collect-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;flex-shrink:0;margin:0 0 16px}
.tll-library .tll-collect-bar .tll-collect-toggle,.tll-collect-primary,.tll-collection-tools button{min-height:44px;padding:9px 18px;border:0;border-radius:9px;background:var(--tll-bright,#ffd85a);color:#20202b;font:inherit;font-weight:700;cursor:pointer}
.tll-library .tll-collect-bar .tll-collect-toggle.is-collected{border:1px solid var(--tll-bright,#ffd85a);background:transparent;color:var(--tll-bright,#a9261b)}
.tll-library .tll-collect-bar .tll-collect-wish{min-height:44px;padding:9px 16px;border:1px solid var(--tll-bright,#ffd85a);border-radius:9px;background:transparent;color:var(--tll-bright,#a9261b);font:inherit;font-weight:600;cursor:pointer}
.tll-library .tll-collect-bar .tll-collect-wish[hidden]{display:none}
.tll-collect-summary{margin:0;color:var(--tll-dim,#5c626b);font-size:13px}
.tll-collect-page{margin-left:auto;font-size:13px}
/* 圖卡｜卡牌切換放在收藏列右邊（1.6.80）：兩顆接在一起，高度和收藏按鈕一樣，不多佔一列 */
.tll-collect-summary:empty{display:none}
.tll-collect-bar .tll-detail-views{display:flex;flex-wrap:nowrap;gap:6px;margin:0}  /* 1.6.82：靠左，緊接在收藏、願望清單後面（使用者：「圖卡 卡牌要靠左不是靠右」） */
/* 外觀和同一列的「加入願望清單」一樣：圓角 9、高 44、框線 1、字 600；選中的是黃框黃字 */
.tll-library .tll-collect-bar .tll-detail-views button{min-width:0;min-height:44px;padding:9px 16px;border-width:1px;border-radius:9px;font-weight:600;text-align:center;white-space:nowrap}
/* 同一列放不下時（collection.js 量過才加）：按鈕只留短字（☆ 收藏、♡ 願望清單、♥ 目標 NT$…）；還放不下，購買資料／人偶數排到最後 */
.tll-collect-bar.tll-collect-tight{gap:8px}
.tll-collect-bar.tll-collect-tight .tll-collect-long{display:none}
.tll-library .tll-collect-bar.tll-collect-tight .tll-collect-toggle,.tll-library .tll-collect-bar.tll-collect-tight .tll-collect-wish{padding:9px 12px}
.tll-library .tll-collect-bar.tll-collect-tight .tll-detail-views button{padding:9px 8px}
.tll-collect-bar.tll-collect-stack .tll-collect-summary{order:9}
/* 手機寬度（600 以下）收藏列不放「我的收藏 →」，頁首已有「我的收藏」（1.6.81，使用者選的）；平板、電腦照舊 */
@media(max-width:600px){.tll-collect-bar.tll-collect-has-views .tll-collect-page{display:none}}
.tll-collect-figure{display:block;min-height:36px;margin-top:10px;padding:6px 12px;border:1px solid #d2bd88;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.tll-collect-figure.is-collected{border-color:var(--tll-bright,#ffd85a);color:var(--tll-bright,#ffd85a)}
.tll-collect-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:22px;border:1px solid #333d50;border-radius:16px;background:#191f2d;color:#f6f7fb}
.tll-collect-dialog::backdrop{background:#000a}
.tll-collect-dialog h2{margin:0 0 14px;color:inherit;font-size:18px;line-height:1.4;overflow-wrap:anywhere}
.tll-collect-dialog label{display:flex;flex-direction:column;gap:6px;margin:12px 0 0;font-size:13px;font-weight:600}
.tll-collect-dialog input,.tll-collect-dialog select{box-sizing:border-box;width:100%;min-height:46px;padding:9px 12px;border:1px solid #46526a;border-radius:9px;background:#10162a;color:inherit;color-scheme:dark;font:inherit}
.tll-collect-note{margin:0;color:#aeb9cd;font-size:13px}
.tll-collect-copy{min-width:0;margin:12px 0 0;padding:0;border:0}
.tll-collect-copy+.tll-collect-copy{padding-top:12px;border-top:1px solid #333d50}
.tll-collect-copy legend{padding:0;font-size:14px;font-weight:700}
.tll-collect-copy legend[hidden]{display:none}
.tll-collect-add{display:block;width:100%;min-height:44px;margin-top:12px;padding:9px 16px;border:1px solid #46526a;border-radius:9px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.tll-collect-add[hidden],.tll-collect-remove-copy[hidden],.tll-collect-dialog label[hidden],.tll-collect-copy div[hidden]{display:none}
.tll-collect-dialog .tll-collect-check{flex-direction:row;align-items:center}
.tll-collect-dialog .tll-collect-check input{width:auto;min-height:0}
.tll-collect-remove-copy{display:block;min-height:36px;margin:6px 0 0;padding:6px 0;border:0;background:none;color:#ff9b8f;font:inherit;font-size:13px;cursor:pointer}
.tll-collect-link,.tll-collect-remove{display:block;min-height:36px;margin:6px 0 0;padding:6px 0;border:0;background:none;color:#ffd85a;font:inherit;font-size:13px;cursor:pointer}
.tll-collect-link[hidden],.tll-collect-remove[hidden],.tll-collect-note[hidden]{display:none}
.tll-collect-remove{margin-top:12px;color:#ff9b8f}
.tll-collect-result{margin-top:8px;color:#ffd85a;font-size:15px;font-weight:700}
.tll-collect-error{margin:8px 0 0;color:#ff9b8f;font-size:13px}
.tll-collect-error:empty{display:none}
.tll-collect-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.tll-collect-secondary{min-height:44px;padding:9px 16px;border:1px solid #46526a;border-radius:9px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.tll-collection-backup{margin:0 0 14px;padding:12px 14px;border-left:4px solid var(--tll-bright,#a86c08);border-radius:6px;background:var(--tll-panel,#f4f4f4);font-size:14px}
.tll-collection-tools{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 8px}
.tll-collection-tools button+button{border:1px solid var(--tll-bright,#ffd85a);background:transparent;color:inherit}
.tll-collection-status{min-height:22px;margin:0 0 12px;color:var(--tll-dim,#5c626b);font-size:13px}
.tll-collection-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.tll-collection-tabs button{min-height:44px;padding:9px 20px;border:1px solid var(--tll-line,#dadada);border-radius:9px;background:transparent;color:inherit;font:inherit;font-weight:600;cursor:pointer}
.tll-collection-tabs button[aria-selected="true"]{border-color:var(--tll-bright,#a9261b);color:var(--tll-bright,#a9261b)}
.tll-collection-controls{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;margin:0 0 20px}
.tll-collection-controls.is-search-only{grid-template-columns:minmax(0,1fr)}
.tll-collection-controls.is-search-only label+label{display:none}
.tll-collection-controls label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;font-weight:600}
.tll-collection-controls input,.tll-collection-controls select{box-sizing:border-box;width:100%;min-height:46px;padding:9px 12px;border:1px solid #46526a;border-radius:9px;background:var(--tll-panel,#fff);color:inherit;font:inherit}
.tll-collection-group h2{margin:22px 0 10px;color:inherit;font-size:17px;overflow-wrap:anywhere}
.tll-collection-group h2 small{color:var(--tll-dim,#5c626b);font-size:13px;font-weight:500}
.tll-collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.tll-collection-item{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;padding:10px;border:1px solid var(--tll-line,#dadada);border-radius:12px;background:var(--tll-panel,#fff)}
.tll-collection-image{position:relative;display:block;overflow:hidden;min-height:110px;border-radius:8px;background:#10162a}
.tll-collection-image img{display:block;width:100%;height:100%;object-fit:cover}
.tll-collection-image>:not(img){display:none}
.tll-collection-figure .tll-collection-image{background:#fff}
.tll-collection-figure .tll-collection-image img{object-fit:contain}
.tll-collection-copy{min-width:0}
.tll-collection-id{margin:0;color:#d2bd88;font-family:ui-monospace,Consolas,monospace;font-size:12px;letter-spacing:.04em}
.tll-collection-copy h3{margin:2px 0 4px;color:inherit;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.tll-collection-copy h3 a{color:inherit}
.tll-collection-purchase{margin:0;color:var(--tll-dim,#5c626b);font-size:12px}
.tll-collection-edit{min-height:36px;margin-top:6px;padding:4px 12px;border:1px solid var(--tll-line,#dadada);border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.tll-collection-retiring{margin:2px 0 0;color:var(--tll-bright,#a9261b);font-size:12px;font-weight:700}
.tll-collection-empty{padding:28px 0;color:var(--tll-dim,#5c626b);text-align:center}
@media (max-width:640px){.tll-collection-controls{grid-template-columns:minmax(0,1fr)}.tll-collect-page{margin-left:0}.tll-collection-tabs button{padding:9px 14px}}
.tll-collection-account{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px;font-size:14px}
.tll-collection-account:empty{display:none}
.tll-collection-account p{flex:1 1 100%;margin:0}
.tll-collection-account button{min-height:44px;padding:9px 16px;border:1px solid var(--tll-line,#999);border-radius:9px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.tll-feedback form{display:grid;gap:14px;max-width:640px}
.tll-feedback label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.tll-feedback input,.tll-feedback select,.tll-feedback textarea{width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--tll-line,#999);border-radius:8px;background:var(--tll-panel,#fff);color:inherit;font:inherit}
.tll-feedback button{justify-self:start;min-height:44px;padding:9px 22px;border:0;border-radius:9px;background:var(--tll-bright,#ffd85a);color:#1b2233;font:inherit;font-weight:700;cursor:pointer}
.tll-feedback button:disabled{opacity:.6}
.tll-feedback-status{min-height:1.6em;margin:0}
.tll-feedback-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* 組裝紀錄與缺件（1.6.70） */
.tll-collect-extra{margin:10px 0 4px;padding:8px 10px;border:1px solid var(--tll-border,#dadada);border-radius:10px}
.tll-collect-extra summary{min-height:36px;padding:6px 0;font-weight:600;cursor:pointer}
.tll-collect-hint{margin:6px 0;color:var(--tll-muted,#5c626b);font-size:13px}
.tll-collect-subhead{margin:10px 0 4px;font-weight:600}
.tll-collect-missing{display:grid;gap:6px}
.tll-collect-missing-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 72px;gap:6px;align-items:center;padding:6px 0;border-bottom:1px solid var(--tll-border,#dadada)}
.tll-collect-missing-row input[type=text],.tll-collect-missing-row input[type=number]{min-width:0;width:100%;box-sizing:border-box}
.tll-collect-missing-row input[aria-label="備註"]{grid-column:1 / 3}
.tll-collect-missing-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}
/* 1.6.87 幾折按鈕：金額欄下面一列，按了填入金額；和算出來的金額一樣時亮起；沒定價時變灰 */
.tll-collect-offs{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 10px}
.tll-collect-off{min-width:52px;min-height:40px;padding:6px 10px;border:1px solid #46526a;border-radius:9px;background:#101621;color:#eef1f8;font:600 14px/1.2 inherit;cursor:pointer}
.tll-collect-off[aria-pressed="true"]{border-color:#ffda55;color:#ffda55;background:#2a2610}
.tll-collect-off:disabled{opacity:.4;cursor:not-allowed}
@media (pointer:coarse){.tll-collect-off{min-height:44px}}
/* 1.6.88 喜歡／不喜歡：和收藏按鈕同高，放在收藏列右邊；放不下時 collection.js 把它移到主圖下面（tll-vote-below） */
.tll-vote{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}
.tll-vote-below{margin:10px 0 0;flex-wrap:wrap}
.tll-library .tll-vote-btn{min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #46526a;border-radius:9px;background:transparent;color:inherit;font:inherit;font-weight:600;white-space:nowrap;cursor:pointer}
.tll-library .tll-vote-btn[aria-pressed="true"]{border-color:var(--tll-bright,#ffd85a);color:var(--tll-bright,#a9261b)}
.tll-library .tll-vote-btn:disabled{opacity:.45;cursor:not-allowed}
.tll-library .tll-vote-login{min-height:44px;padding:8px 12px;border:1px dashed #46526a;border-radius:9px;background:transparent;color:inherit;font:inherit;font-size:14px;white-space:nowrap;cursor:pointer}
.tll-library .tll-vote-login[hidden]{display:none}
.tll-vote-result{font-size:13px;color:var(--tll-dim,#5c626b);white-space:nowrap}
.tll-vote-result:empty{display:none}
.tll-library .tll-collect-bar .tll-collect-toggle.is-pre,.tll-collect-figure.is-pre{opacity:.45;cursor:not-allowed;filter:grayscale(1)}  /* 1.7.23 還沒上市不能加入收藏 */
