:root{color-scheme:dark;font-family:system-ui,'Malgun Gothic',sans-serif;background:#0b1017;color:#e4e9ef}*{box-sizing:border-box}body{margin:0}header,main{max-width:1200px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #2b3949}a{color:#dec080}h1{font-size:28px;margin:12px 0}h2{font-size:19px;margin:0 0 18px}.intro,.hint{color:#a7b5c7;line-height:1.7}.hint{font-size:13px}button,input,select{font:inherit}button,a{touch-action:manipulation}button{background:#d9ba78;color:#181c22;border:1px solid #d9ba78;border-radius:7px;padding:12px 18px;min-height:44px;cursor:pointer;font-weight:600}button:disabled{opacity:.45;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,.table-scroll:focus-visible{outline:3px solid #f2d38f;outline-offset:3px}.secondary{background:#1a2736;color:#d8e2f1;border-color:#40536b}.toolbar,.section-head{display:flex;align-items:center;gap:16px;justify-content:space-between}.toolbar{justify-content:flex-start;margin:24px 0 16px}.item-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.item-tabs button{background:#15202e;color:#ccd7e7;border-color:#384a60;max-width:100%;text-align:left}.item-tabs button[aria-pressed=true]{border-color:#e2c17e;color:#e2c17e;background:#253447}.item-tabs small{display:block;font-size:12px;font-weight:400;margin-top:4px;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panel{padding:24px;border:1px solid #2b3949;border-radius:10px;background:#121c28;margin-bottom:22px;min-width:0}.fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.fields label{display:flex;flex-direction:column;gap:9px;min-width:0}input[type=number],select{background:#0d1520;border:1px solid #3d526b;color:#e4e9ef;padding:12px;border-radius:7px;width:100%;min-width:0;min-height:46px}.check{display:flex;gap:10px;align-items:center;min-height:44px;font-size:14px}.check input{width:18px;height:18px;flex-shrink:0;accent-color:#d9ba78}fieldset{border:1px solid #3d526b;border-radius:8px;margin:18px 0;padding:14px}legend{color:#dec080;padding:0 6px}.buff-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}.error{color:#ffb9a9;line-height:1.6}.table-scroll{overflow:auto;max-width:100%;border:1px solid #304157;border-radius:7px}table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px}th,td{padding:16px 14px;border-bottom:1px solid #2b3949;text-align:right;min-width:165px;vertical-align:top}thead th{background:#192638;color:#e7c885;text-align:left}thead span,thead small{display:block;margin-top:8px;font-weight:400;color:#c8d2df;font-size:12px;line-height:1.7;max-width:210px;overflow-wrap:anywhere}tbody th{position:sticky;left:0;z-index:1;background:#121c28;text-align:left;min-width:116px;max-width:136px;width:136px;font-weight:500}thead th:first-child{position:sticky;left:0;z-index:2;min-width:116px}td{white-space:nowrap;font-variant-numeric:tabular-nums}tbody tr:last-child>*{border-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#status{font-size:14px;color:#dec080;line-height:1.7}.section-head h2{margin:0}.section-head{margin-bottom:24px}.invalid{color:#ffb9a9}@media(max-width:700px){header,main{padding:18px 14px}h1{font-size:23px}.panel{padding:18px 14px}.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.buff-options{grid-template-columns:1fr}.section-head{align-items:flex-start;gap:10px}.section-head button{font-size:13px;padding:10px}.item-tabs button{flex:1 1 calc(50% - 8px);min-width:0}.item-tabs small{max-width:120px}th,td{padding:14px 10px;min-width:150px}tbody th,thead th:first-child{min-width:100px;max-width:110px;font-size:12px}}
[hidden]{display:none!important}

.setting-row td{white-space:pre-line;line-height:1.6;font-size:12px;overflow-wrap:anywhere}.result-start>*{border-top:2px solid #52627a}

.toolbar{flex-wrap:wrap}.form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.form-actions #status{margin:0}.back-editor{margin-top:16px}#editor-title,#comparison-title{scroll-margin-top:20px}.item-tabs small{white-space:normal;overflow-wrap:anywhere}.table-scroll{max-height:70vh}thead th{position:sticky;top:0;z-index:2}thead th:first-child{z-index:3}thead details{margin-top:8px}thead summary{font-size:12px;font-weight:400;cursor:pointer;min-height:28px}thead summary:focus-visible{outline:3px solid #f2d38f;outline-offset:2px}thead span{color:#e7c885;font-weight:600}

.settings-toggle{margin:0 0 12px;font-size:13px;padding:10px 14px}

.settings-control td{text-align:left;padding:0 14px;background:#152231;min-width:0}.settings-control .settings-toggle{position:sticky;left:14px;margin:0;padding:10px 0;border:0;border-radius:0;background:transparent;color:#dec080;font-weight:500;font-size:13px;min-height:44px}.settings-control .settings-toggle:hover{color:#f2d38f;text-decoration:underline}

thead .settings-toggle{position:static;display:flex;align-items:center;justify-content:flex-start;gap:5px;width:100%;margin:10px 0 0;padding:7px 0 0;border:0;border-top:1px solid #40536b;border-radius:0;background:transparent;color:#e2c17e;min-height:44px;font-size:12px;font-weight:500;white-space:nowrap}thead .settings-toggle img{flex-shrink:0}thead .settings-toggle span{display:inline;margin:0;font:inherit;color:inherit;line-height:1.4}thead .settings-toggle:hover{color:#f2d38f;text-decoration:underline}@media(max-width:700px){thead .settings-toggle{font-size:11px;gap:4px}thead .settings-toggle img{width:14px;height:14px}}

.input-group{margin:0 0 18px;padding:0;border:0;border-radius:0}.input-group>legend{padding:0;margin-bottom:12px;font-size:13px;font-weight:600}.weapon-fields{grid-template-columns:minmax(90px,1fr) minmax(0,3fr)}.buff-settings{border-top:1px solid #304157;border-bottom:1px solid #304157;margin:16px 0}.buff-settings>summary,.calculation-notes>summary{cursor:pointer;min-height:44px;padding:12px 0;color:#dec080;font-size:14px}.buff-content{padding-bottom:6px}.buff-content .fields{grid-template-columns:1fr}.buff-content fieldset{margin-bottom:12px}.calculation-notes{margin-top:8px}.calculation-notes .hint{margin:8px 0}.calculation-notes a{display:inline-block;min-height:44px;padding-top:10px}.buff-settings>summary:focus-visible,.calculation-notes>summary:focus-visible{outline:3px solid #f2d38f;outline-offset:3px}.item-tabs small{max-width:190px}.panel .input-group .hint{margin-bottom:0}.fields{gap:14px}.form-actions{margin-top:14px}@media(max-width:700px){.item-tabs small{max-width:none}.weapon-fields{grid-template-columns:80px minmax(0,1fr)}.buff-content .fields{grid-template-columns:1fr}}

.selected-summary{margin:0 0 12px;font-size:12px}.active-column{background:#1b2a3b}thead th.active-column{box-shadow:inset 0 3px #d9ba78}input[aria-invalid=true],select[aria-invalid=true]{border-color:#ffb9a9}td{white-space:normal;line-height:1.6}@media(max-width:700px){thead .settings-toggle{font-size:12px;flex-direction:column;gap:2px;align-items:flex-start}.single-item th,.single-item td{min-width:0}.single-item tbody th,.single-item thead th:first-child{width:43%;min-width:0;max-width:none}.single-item td{overflow-wrap:anywhere}}
/* Existing managed banners, in document flow above and below the comparison. */
.compare-banner{display:none}.compare-banner.banner-configured{display:block;position:relative;width:fit-content;max-width:100%;margin:24px auto}.compare-banner[hidden]{display:none}.compare-banner .banner-frame,.compare-banner .banner-frame a,.compare-banner picture{display:block;width:auto;max-width:100%;height:auto}.compare-banner img{display:block;width:auto;height:auto;max-width:100%;max-height:220px;object-fit:contain}.compare-banner .banner-next{position:absolute;z-index:2;right:5px;bottom:5px;min-width:0;min-height:0;width:30px;height:26px;padding:0;display:flex;align-items:center;justify-content:center;background:#101720d9;border:1px solid #d6b57880;border-radius:5px;color:#f2d28e;font-size:19px;line-height:1}.compare-banner .banner-next[hidden]{display:none}.compare-banner .banner-frame{overflow:hidden;position:relative}.compare-banner .banner-slide-ghost{position:absolute;inset:0;pointer-events:none}.compare-banner .banner-ad-label{position:absolute;z-index:2;color:#fff;background:#101720b3;font-size:10px;line-height:1.2;pointer-events:none}.compare-banner .banner-next:focus-visible{outline:2px solid white;outline-offset:2px}@media(max-width:700px){.compare-banner img{max-height:180px}.compare-banner.banner-desktop-only{display:none}}
.item-card{position:relative;max-width:100%;min-width:0}.item-tabs .item-select{width:100%;height:100%;padding-right:42px}.item-tabs .item-remove{position:absolute;right:2px;top:2px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;min-width:36px;padding:0;border:0;background:transparent;color:#b7c4d5;font-size:22px;line-height:1;text-align:center}.item-tabs .item-remove:hover:not(:disabled){background:#3b2930;color:#ffbdc4}.item-tabs .item-remove:disabled{opacity:.25}@media(max-width:700px){.item-card{flex:1 1 calc(50% - 8px)}.item-tabs .item-select{padding-right:46px}.item-tabs .item-remove{width:44px;height:44px;min-height:44px}}
/* Match the shared site navigation without changing comparison form/table styles. */
body>header{max-width:none;height:96px;padding:0 max(5vw,24px);display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #2b3949}.brand{display:flex;gap:14px;align-items:center;text-decoration:none;font-size:20px;font-weight:700;flex-shrink:0}.brand>span{color:#f2d28e}.brand small{display:block;font-size:12px;letter-spacing:2.5px;color:#f5f1e8}.brand small::after{content:'리니지 클래식 정보사이트';display:block;margin-top:1px;color:#bac5d4;font-size:11px;font-weight:500;letter-spacing:.6px;line-height:1.25}.brand-logo{width:56px;height:50px;display:block;object-fit:contain;flex-shrink:0;border-radius:8px}.site-nav{display:flex;align-items:center;gap:8px}.site-nav a{text-decoration:none;white-space:nowrap}.primary-menu{padding:5px;background:#080e17;border:1px solid #354255;border-radius:12px}.primary-menu a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 18px;background:#152132;color:#d7e5f7;border:1px solid #42546d;border-radius:8px;font-size:15px;font-weight:700}.primary-menu a:hover{background:#253750;border-color:#96b5dd}.primary-menu a[aria-current=page]{background:#d9ba78;color:#171a20;border-color:#d9ba78}.menu-icon{font-size:19px;line-height:1}.compare-banner img{max-height:154px}@media(max-width:1100px){body>header{height:auto;min-height:96px;flex-wrap:wrap;padding:16px 24px}.primary-menu{width:100%;gap:5px}.primary-menu a{flex:1;min-width:0;padding:10px 8px;font-size:14px;gap:5px}}@media(max-width:700px){body>header{padding:8px 10px;gap:6px 8px;min-height:0}.brand{gap:8px;font-size:16px}.brand small{font-size:10px;letter-spacing:1px}.primary-menu{flex-wrap:wrap;padding:4px}.primary-menu a{min-height:44px;padding:7px 8px;font-size:13px}.compare-banner img{max-height:126px}}@media(max-width:400px){.primary-menu a{font-size:12px}.primary-menu .menu-icon{display:none}}
/* Reserve the final banner frame before network/image loads; rotation keeps its height. */
.compare-banner,.compare-banner.banner-configured{display:block;position:relative;width:min(462px,100%);height:154px;min-height:154px;margin:24px auto}.compare-banner[hidden]{display:none!important}.compare-banner .banner-frame,.compare-banner .banner-frame a,.compare-banner .banner-frame picture{display:flex;align-items:center;justify-content:center;width:100%;height:100%;max-width:100%}.compare-banner img{max-height:154px;max-width:100%;width:auto;height:auto}.compare-banner .banner-slide-ghost{position:absolute;inset:0}.compare-banner .banner-next{width:44px;height:44px;min-width:44px;min-height:44px;font-size:21px}@media(max-width:700px){.compare-banner,.compare-banner.banner-configured{width:min(378px,100%);height:min(126px,calc((100vw - 43px)/3));min-height:min(126px,calc((100vw - 43px)/3));margin:16px auto}.compare-banner img{max-height:min(126px,calc((100vw - 43px)/3))}.compare-banner.banner-desktop-only{display:none!important}}
/* Keep the larger control outside the artwork so it cannot cover an advertiser CTA. */
.compare-banner .banner-frame{width:calc(100% - 48px)}.compare-banner .banner-next{right:0!important;bottom:50%!important;transform:translateY(50%)}
main{padding-top:8px}.compare-banner:first-child,.compare-banner.banner-configured:first-child{margin-top:4px;margin-bottom:16px}.toolbar{margin:12px 0 8px;min-height:0}.item-tabs .add-card{display:flex;align-items:center;justify-content:center;min-width:120px;min-height:68px;max-width:100%;padding:12px 18px;border:1px dashed #687c95;background:#101925;color:#d5bf89;text-align:center}.item-tabs .add-card:hover:not(:disabled){background:#253447;border-color:#e2c17e}.item-tabs .add-card:disabled{opacity:.4}.item-tabs .add-card:focus-visible{outline:3px solid #f2d38f;outline-offset:3px}@media(max-width:700px){main{padding-top:8px}.compare-banner:first-child,.compare-banner.banner-configured:first-child{margin-top:4px;margin-bottom:12px}.item-tabs .add-card{flex:1 1 calc(50% - 8px);min-width:0;min-height:68px}}

.item-tabs .add-card[hidden]{display:none!important}
/* Keep Korean weapon names intact without shrinking labels or the 44px delete target. */
.item-tabs .item-select small{word-break:keep-all;overflow-wrap:normal}
@media(max-width:360px){.item-card{flex-basis:100%}.item-tabs .item-select small{max-width:none}}
/* The narrow one-column list stays readable with less repeated vertical padding. */
@media(max-width:360px){.item-tabs{gap:6px}.item-tabs .item-select{min-height:60px;padding:8px 46px 8px 14px}.item-tabs .item-select small{font-size:13px}.item-tabs .add-card{min-height:60px}}
.not-found-page h1,.not-found-page .intro{word-break:keep-all;overflow-wrap:break-word}.not-found-page .home-return{display:inline-flex;align-items:center;min-height:44px;padding:8px 0}
