.server-tabs{display:flex;align-items:center;width:fit-content;gap:4px;padding:5px;margin:18px 0 10px;border:1px solid #c9e3cd;border-radius:999px;background:#ffffffed;box-shadow:0 3px 12px #24422d08}
.server-tabs a{display:block;min-width:90px;padding:8px 22px;border-radius:999px;text-align:center;text-decoration:none;font-size:13px;font-weight:700;line-height:1.5;color:#3d6750;transition:background .15s}
.server-tabs a:hover{background:#eaf5e9;color:#205b34}
.server-tabs a[aria-current=page]{background:#2f9e3a;color:white;box-shadow:0 2px 5px #2f9e3a24}
.server-tabs a:focus-visible{outline:3px solid #e8509f;outline-offset:3px}
@media(max-width:600px){.server-tabs{margin-top:14px}.server-tabs a{min-width:86px;padding:7px 20px}}

:root{--tw-ink:#193e39;--tw-green:#17715d;--tw-soft:#edf6f2;--tw-border:#d5e5dd;--tw-muted:#61756c}
body{font-family:"Microsoft JhengHei","PingFang TC",system-ui,sans-serif}
.tw-eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:800;color:var(--tw-green)}
.pl-toolbar-btns{flex-wrap:wrap}
.tw-toolbar-events{font-size:12px;white-space:nowrap;padding:4px 3px}
.tw-settings .tw-controls{margin-top:0;padding-top:0;border-top:0}
.tw-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:36px;padding:8px 15px;border:1px solid var(--tw-border);border-radius:9px;background:#fff;color:var(--tw-ink);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.tw-button:hover{background:var(--tw-soft);border-color:#8db4a4}
.tw-primary{background:var(--tw-green);color:#fff;border-color:var(--tw-green);font-weight:700}
.tw-primary:hover{background:#105948;color:#fff}
.tw-controls{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:23px;padding-top:18px;border-top:1px solid var(--tw-border);font-size:12px}
.tw-profile-label{display:flex;align-items:center;gap:12px;font-weight:700;white-space:nowrap}
.tw-controls select,.tw-lookup-dialog select{padding:8px 26px 8px 10px;border:1px solid var(--tw-border);border-radius:7px;background:#fff;color:var(--tw-ink);font:inherit;min-height:36px;max-width:100%}
.tw-check{display:flex;align-items:center;gap:7px;cursor:pointer;color:#465d53}
.tw-check input{accent-color:var(--tw-green);width:15px;height:15px}
.tw-basis{margin-top:14px;border-left:3px solid #c19b52;border-radius:0 6px 6px 0;background:#fbf6eb;padding:11px 14px;font-size:12px;line-height:1.8;color:#70582e}
.tw-counts{display:flex;gap:18px;flex-wrap:wrap;margin-top:15px;font-size:12px;color:var(--tw-muted)}
.tw-counts b{font-size:15px;color:var(--tw-ink);font-variant-numeric:tabular-nums;margin-right:3px}
.tw-date{margin-left:auto;font-size:11px}
.tw-source-details{margin-top:13px;font-size:12px;color:var(--tw-muted);line-height:1.9}
.tw-source-details summary{cursor:pointer;width:fit-content}
.tw-source-details p{margin:8px 0;max-width:1000px}
.tw-source-details a{color:var(--tw-green)}
.tw-ja{display:block;margin-top:2px;font-size:10px;font-weight:400;color:#6a786f;line-height:1.3;white-space:normal}
.tw-missing{display:block;font-size:9px;color:#8a6836;margin-top:2px}
.tw-no-dual .tw-ja{display:none}
.tw-detail-meta{font-size:12px;line-height:1.8;padding:10px 14px;background:#f4f8f5;border-radius:8px;color:#54695c;overflow-wrap:anywhere}
.tw-lookup-dialog{box-sizing:border-box;width:min(1000px,calc(100vw - 32px));max-height:90vh;padding:26px;border:1px solid var(--tw-border);border-radius:17px;color:var(--tw-ink);box-shadow:0 24px 100px #132f3440}
.tw-lookup-dialog::backdrop{background:#122f3659;backdrop-filter:blur(3px)}
.tw-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.tw-dialog-head h2{font-size:23px;margin:6px 0 0}
.tw-dialog-intro{color:var(--tw-muted);font-size:13px;line-height:1.8;margin:14px 0}
.tw-lookup-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.tw-search-label{flex:1;min-width:180px}
.tw-lookup-dialog input[type=search],.tw-lookup-dialog textarea{box-sizing:border-box;width:100%;border:1px solid var(--tw-border);border-radius:8px;background:#fbfdfb;padding:11px 12px;font:inherit;font-size:13px;color:var(--tw-ink)}
.tw-lookup-dialog textarea{resize:vertical;line-height:1.65}
.tw-result-count{font-size:11px;color:var(--tw-muted);margin:13px 0;line-height:1.7}
.tw-table-wrap{overflow-x:auto;border:1px solid var(--tw-border);border-radius:9px;max-height:47vh;overflow-y:auto}
.tw-table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.5;text-align:left}
.tw-table th{position:sticky;top:0;z-index:1;background:#eef5f0;font-weight:700;color:#51685a;font-size:11px}
.tw-table td,.tw-table th{padding:12px 13px;border-bottom:1px solid #e7eee8;vertical-align:middle}
.tw-table th:first-child{width:82px}.tw-table th:last-child{width:142px}
.tw-table tr:last-child td{border-bottom:0}.tw-table tr:hover td{background:#f9fbf8}
.tw-id{font:11px ui-monospace,monospace;color:#7a8b80}
.tw-status{display:inline-block;border-radius:5px;padding:3px 7px;font-size:10px;white-space:nowrap}
.tw-status.is-in{background:#e9f4ec;color:#37714d}.tw-status.is-out{background:#f4f1eb;color:#8b7653}
.tw-kind{display:block;font-size:10px;color:#947033;margin-top:3px}
.tw-untranslated{font-size:11px;color:#987b4e}.tw-empty{text-align:center;padding:30px!important;color:var(--tw-muted)}
.tw-more{margin:13px auto 0;display:flex}.tw-more[hidden]{display:none}
.tw-batch{margin-top:22px;padding-top:18px;border-top:1px solid var(--tw-border)}
.tw-batch summary{cursor:pointer;font-size:13px;font-weight:700}.tw-batch p{font-size:12px;color:var(--tw-muted);line-height:1.7}
.tw-batch-actions{display:flex;gap:9px;margin:10px 0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:3px solid #5aab85;outline-offset:3px}
.tw-image-missing{background:#eaf0eb;color:#6c7d70;font-size:10px;object-fit:contain}
.pl-dialog,.tw-lookup-dialog{overscroll-behavior:contain}
@media(max-width:680px){.tw-controls{gap:14px}.tw-profile-label{width:100%;flex-direction:column;align-items:flex-start;gap:7px}.tw-profile-label select{width:100%}.tw-counts{gap:11px 16px}.tw-date{margin-left:0;width:100%}.tw-basis{font-size:11px}.tw-lookup-dialog{width:calc(100vw - 20px);max-height:94vh;padding:18px 13px}.tw-dialog-head h2{font-size:20px}.tw-dialog-head{gap:8px}.tw-dialog-head .tw-button{padding:8px 10px}.tw-search-label{flex-basis:100%}.tw-lookup-tools select{flex:1}.tw-table{font-size:11px}.tw-table td,.tw-table th{padding:9px 7px}.tw-table th:first-child{width:60px}.tw-table th:last-child{width:100px}.tw-table td:nth-child(2),.tw-table td:nth-child(3){min-width:96px;overflow-wrap:anywhere}.tw-status{white-space:normal;font-size:9px}.tw-table-wrap{max-height:43vh}.tw-ja{font-size:9px}.cap{max-width:100%}.cap-n{overflow-wrap:anywhere}.tw-lookup-dialog .tw-batch-actions{flex-wrap:wrap}}
@media(max-width:480px){.tw-table,.tw-table tbody{display:block}.tw-table thead{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.tw-table tr{display:grid;grid-template-columns:1fr 1fr;padding:7px 6px 11px;border-bottom:1px solid var(--tw-border);gap:0 4px}.tw-table tr:last-child{border-bottom:0}.tw-table td{display:block;width:auto!important;min-width:0!important;border:0;padding:5px 6px;text-align:left}.tw-table td:first-child{grid-column:1;grid-row:1;align-self:center}.tw-table td:first-child:before{content:'ID ';color:#87938a}.tw-table td:last-child{grid-column:2;grid-row:1;text-align:right}.tw-table td:nth-child(2){grid-column:1;grid-row:2;font-size:13px}.tw-table td:nth-child(3){grid-column:2;grid-row:2;font-size:12px}.tw-table td:nth-child(2):before,.tw-table td:nth-child(3):before{display:block;font-size:9px;color:#87938a;margin-bottom:4px}.tw-table td:nth-child(2):before{content:'繁中'}.tw-table td:nth-child(3):before{content:'日文'}.tw-table .tw-status{white-space:nowrap}.tw-table .tw-empty{grid-column:1/-1!important;grid-row:auto!important}.tw-table .tw-empty:before{content:none!important}}

/* 種馬卡組：03 已覆蓋遮罩、04 第二顆按鈕 */
.pl-rbtns { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pl-rbtns .go-btn { padding: 8px 14px; font-size: 13px; }
.go-btn.stud { background: linear-gradient(180deg, #8fe03a, #3aa31d); box-shadow: 0 4px 0 #2b7d14; }
.go-btn.stud:active { box-shadow: 0 2px 0 #2b7d14; }
.cap.stud-got .cap-n,
.cap.stud-got img.pic,
.cap.stud-got .ph,
.cap.stud-got .cap-t,
.cap.stud-got .cap-gw { opacity: .38; }
.cap .stud-mask { position: absolute; top: -7px; right: -6px; left: auto; bottom: auto; width: 18px; height: 18px; margin: 0; padding: 0; border-radius: 50%; background: #fff; opacity: 1; color: transparent; font-size: 0; line-height: 0; letter-spacing: 0; overflow: hidden; display: grid; place-items: center; pointer-events: none; z-index: 6; box-shadow: none; }
.cap .stud-mask::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2f9e5a; opacity: .38; }
.cap .stud-mask::after { content: "✓"; position: relative; z-index: 1; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; opacity: 1; }

#pl-rec #pl-stud { margin-top: 0; margin-bottom: 12px; }
