/* Rune recipes show every socket in insertion order, including duplicates. */
.runeword-runes{display:grid!important;grid-template-columns:repeat(var(--rune-columns,3),minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none;max-width:360px;width:100%;align-self:center;box-sizing:border-box}
.runeword-runes .rune-socket{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;padding:8px 3px;background:radial-gradient(ellipse at 50% 35%,#030605 24px,#1a1c13 28px,#10150f 32px);border:1px solid #78633966;box-sizing:border-box}
.runeword-runes .rune-socket img{width:44px;height:44px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 2px 3px #000)}
.runeword-runes .rune-socket span{font:12px/1.4 Arial,sans-serif;color:#dcc998;text-align:center;white-space:normal;overflow-wrap:anywhere}
body[data-theme=modern][data-view=library] .library-result[data-rune=true]>.library-item-icon{width:56px;height:72px;object-fit:contain;image-rendering:auto}
body[data-theme=modern][data-view=library] .item-rune-preview{width:64px;height:78px;object-fit:contain;image-rendering:auto}
body[data-theme=modern][data-view=library] .library-result[data-kind=runeword]{justify-content:start;min-height:250px}
@media(max-width:600px){.runeword-runes{gap:5px}.runeword-runes .rune-socket{padding:6px 2px}.runeword-runes .rune-socket img{width:34px;height:34px}.runeword-runes .rune-socket span{font-size:11px}}

body[data-theme=modern] .library-item-overview>.runeword-runes{align-self:start;margin-top:0}.runeword-runes .rune-socket>a{display:flex;flex-direction:column;align-items:center;gap:5px;text-decoration:none;width:100%}body[data-theme=modern] .library-rune-order{font:14px/1.7 Arial,sans-serif;color:#dbc488;margin:0 0 14px}

/* One coherent item card; native values and rolls are unchanged. */
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page)::before{display:none}
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page)>:is(h1,.library-item-base,.library-eyebrow){text-align:center;max-width:100%;overflow-wrap:anywhere}
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page)>h1{font-size:clamp(28px,3.2vw,42px);line-height:1.2;margin:10px 0}
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page)>.library-item-base{font-size:20px;margin:8px 0 20px}
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page) .library-item-overview{grid-template-columns:220px minmax(0,1fr);align-items:start;gap:22px;padding:0;margin:26px auto;max-width:1000px}
body[data-theme=modern][data-view=library][data-library-page=item] .library-item-art{margin:0;display:flex;align-items:center;justify-content:center;min-width:0;min-height:260px;padding:20px;box-sizing:border-box;border:1px solid #8e744a66;border-radius:8px;background:radial-gradient(ellipse at center,#8b713d22,transparent 68%),linear-gradient(145deg,#161c16,#0c110e);align-self:start}
body[data-theme=modern][data-view=library][data-library-page=item] .library-item-art .library-item-large{width:112px;height:170px;max-width:100%;max-height:170px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 8px 12px #000b)}
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page) .library-item-info{padding:18px 22px;border:1px solid #8e744a55;border-radius:8px;background:#11181088;box-sizing:border-box}
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page) .native-item-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:0 0 14px}
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page) .native-item-facts>div{padding:10px 0;min-width:0}
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page) .native-item-facts dt{font:11px/1.5 Arial,sans-serif}
body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page) .native-item-facts dd{font:24px/1.35 Georgia,serif;margin:5px 0 0;overflow-wrap:anywhere}
body[data-theme=modern][data-view=library][data-library-page=item] .library-item-affixes{border-top:1px solid #8e744a44;padding-top:12px;margin-top:12px}
body[data-theme=modern][data-view=library][data-library-page=item] .library-item-affixes>h2{font:18px/1.4 Georgia,serif;color:#dfc78e;margin:0 0 8px}
body[data-theme=modern][data-view=library][data-library-page=item] .library-item-info .catalog-mod{font:14px/1.65 Arial,sans-serif;margin:6px 0;padding:0}
body[data-theme=modern][data-view=library][data-library-page=item] .library-native-properties>.native-base-facts{margin:18px 0 0}
body[data-theme=modern][data-view=library][data-library-page=item] .library-native-properties>.catalog-class-restriction{padding:8px 0;margin:0;border:0}
@media(max-width:760px){
 body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page) .library-item-overview{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:20px}
 body[data-theme=modern][data-view=library][data-library-page=item] .library-item-art{width:min(100%,260px);min-height:180px;padding:15px;justify-self:center}
 body[data-theme=modern][data-view=library][data-library-page=item] .library-item-art .library-item-large{height:140px;max-height:140px;width:90px}
 body[data-theme=modern][data-view=library][data-library-page=item] .library-single-item:not(.library-set-page) .library-item-info{padding:14px}
 body[data-theme=modern][data-view=library][data-library-page=item] .library-item-overview>.runeword-runes{justify-self:center;max-width:320px}
 body[data-theme=modern][data-view=library][data-library-page=item] .library-item-info>.library-primary-link{display:flex;justify-content:center;width:100%;box-sizing:border-box}
}

/* Finished runewords use a single row of sockets in their equipped item panel. */
.native-item-title[data-item-tone="plain"] { color: #f2f1ec; }
.native-item-title[data-item-tone="socketed"], .native-runeword-base[data-item-tone="socketed"] { color: #bdbdb6; }
.native-runeword-base { margin: -7px 0 8px; font: 16px/1.4 Georgia,serif; }
.runeword-runes.native-runeword-strip { gap: 4px; max-width: none; margin: 10px 0 14px; }
.native-runeword-strip .rune-socket {
    padding: 5px 1px;
    gap: 3px;
    background: #131811;
}
.native-runeword-strip .rune-socket img { width: min(100%, 34px); height: 34px; }
.native-runeword-strip .rune-socket span { font-size: 11px; }
.native-runeword-bonuses {
    list-style: none;
    margin: 12px 0 16px;
    padding: 8px 0;
    border-block: 1px solid #705d353d;
}
.native-runeword-bonuses .catalog-mod { margin: 3px 0; }
