@font-face{font-family:Norwester;src:url("/static/fonts/norwester.woff") format("woff");font-display:swap}
:root{color-scheme:dark;--bg:#080b11;--panel:#101722;--panel2:#141e2d;--line:#253246;--ink:#eef3ff;--muted:#9caac0;--blue:#69adff;--mint:#7af0dd;--danger:#ff8796;font-family:Manrope,system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;min-height:100vh;color:var(--ink);background:radial-gradient(ellipse at 12% 0%,#17304a 0,transparent 34rem),radial-gradient(ellipse at 100% 70%,#122b32 0,transparent 28rem),var(--bg)}a{color:inherit}.page-wrap{width:min(1440px,calc(100% - 32px));margin:0 auto;padding:22px 0 32px}.page-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:10px 2px 26px}.brand{font:30px Norwester,sans-serif;letter-spacing:.04em;color:var(--blue);text-decoration:none;text-shadow:0 0 18px #5ba7ff40}.page-header nav{display:flex;gap:20px;flex-wrap:wrap}.page-header nav a,.page-footer a{color:#b5c6df;text-decoration:none;font-size:13px}.page-header nav a:hover,.page-footer a:hover{color:white}.intro{padding:24px 4px 28px;max-width:720px}.eyebrow{color:var(--mint);font-size:10px;font-weight:800;letter-spacing:.2em}.intro h1{font-size:clamp(32px,5vw,58px);line-height:1.04;letter-spacing:-.055em;margin:12px 0}.intro>p:last-child{color:var(--muted);font-size:15px;line-height:1.7;max-width:650px}.data-panel{border:1px solid #29384c;border-radius:20px;background:linear-gradient(145deg,#111a27f2,#0c121bf5);box-shadow:0 25px 70px #0008;overflow:hidden}.tabs{display:flex;gap:6px;padding:14px 16px 0;border-bottom:1px solid var(--line)}.tab{border:0;background:transparent;color:var(--muted);font:700 14px Manrope,sans-serif;padding:13px 16px;cursor:pointer;border-bottom:2px solid transparent}.tab.is-active{color:var(--ink);border-color:var(--blue)}.table-panel{padding:22px 16px 14px}.table-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:0 4px 16px}.table-toolbar h2{font-size:19px;margin:0}.result-count{font-size:12px;color:var(--muted);margin:4px 0 0}.search-label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:700;min-width:min(340px,100%)}input,select,textarea{font:inherit;color:var(--ink);background:#0a111b;border:1px solid #2d3b50;border-radius:9px;padding:11px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #69adff21}.table-scroll{overflow:auto;border:1px solid #253246;border-radius:12px;max-height:70vh}table{border-collapse:separate;border-spacing:0;width:100%;min-width:1180px;font-size:12px}th,td{padding:12px 11px;text-align:left;border-bottom:1px solid #1f2a3a;vertical-align:top;max-width:260px;overflow-wrap:anywhere}th{position:sticky;top:0;background:#172233;color:#c8d5e8;white-space:nowrap;font-size:11px;z-index:1}th:first-child,td:first-child{position:sticky;left:0;background:#111a27;z-index:2;min-width:120px}th:first-child{z-index:3;background:#172233}td{color:#d9e3f2}tbody tr:hover td{background:#162235}tbody tr:hover td:first-child{background:#19263a}th button{border:0;padding:0;color:inherit;background:none;font:inherit;cursor:pointer}th button:hover{color:white}.empty-state{padding:30px;text-align:center;color:var(--muted);font-size:14px}.pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding:16px;color:var(--muted);font-size:12px}.pagination button,.button{border:1px solid #34465f;background:#162235;color:var(--ink);border-radius:8px;padding:9px 13px;font:700 12px Manrope,sans-serif;cursor:pointer}.pagination button:disabled,.button:disabled{opacity:.45;cursor:not-allowed}.page-footer{display:flex;justify-content:space-between;gap:12px;padding:24px 3px;color:#8292aa;font-size:12px}.admin-wrap{max-width:1160px}.admin-card{background:#101722eF;border:1px solid #29384c;border-radius:16px;padding:20px;box-shadow:0 20px 55px #0006}.admin-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.admin-title h1{font-size:24px;margin:0}.admin-actions,.form-grid,.admin-tabs,.inline-form{display:flex;gap:10px;flex-wrap:wrap}.admin-tabs{margin:16px 0;border-bottom:1px solid var(--line)}.admin-tabs button{border:0;background:none;color:var(--muted);padding:12px;cursor:pointer;font-weight:700}.admin-tabs button.active{color:var(--blue);border-bottom:2px solid var(--blue)}.admin-table{width:100%;min-width:700px}.admin-form{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px;padding:16px 0}.admin-form label{display:grid;gap:5px;font-size:12px;color:var(--muted)}.admin-form label.wide{grid-column:1/-1}.admin-notice{padding:12px;border-radius:9px;background:#152235;color:#cad7e8;margin:12px 0}.admin-notice.error{background:#351c27;color:#ffc4cb}.login-panel{max-width:410px;margin:10vh auto}.login-panel form{display:grid;gap:12px}.login-panel h1{margin:0 0 8px}.primary{background:#286ab0;border-color:#3988d4}.danger{color:#ffc3cb;border-color:#78404a}.muted{color:var(--muted)}[hidden]{display:none!important}
.filter-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.period-label{display:grid;gap:6px;min-width:170px;color:var(--muted);font-size:11px;font-weight:700}.filter-controls .search-label{min-width:260px}
.admin-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:20px;margin:16px 0;border:1px solid #29384c;border-radius:13px;background:linear-gradient(145deg,#111b29,#0d141f)}
.admin-form>label{display:flex;flex-direction:column;justify-content:flex-start;gap:7px;min-width:0;color:#bac8dc;font-size:12px;font-weight:700;letter-spacing:.01em}
.admin-form>label input,.admin-form>label select,.admin-form>label textarea{width:100%;min-height:42px;font-size:14px;font-weight:500}
.admin-form>label textarea{min-height:82px;resize:vertical}
.admin-form>label.wide,.admin-form>.wide{grid-column:1/-1}
.admin-form>label.field-period{grid-column:1/-1;max-width:340px;padding-bottom:4px;border-bottom:1px solid #2b3a4e}
.admin-form>p.wide{grid-column:1/-1;margin:0;color:var(--muted);font-size:12px}
.admin-form input[readonly]{color:var(--mint);background:#0c1b20;border-color:#254943}
.admin-table-scroll{max-height:70vh;overflow:auto;border:1px solid #34445a;border-radius:12px;background:#0b111a}
#admin-view .admin-table{min-width:1420px;width:max-content;border-collapse:separate;border-spacing:0;white-space:nowrap;font-size:13px;line-height:1.45}
#admin-view .admin-table.users-table{width:100%;min-width:0;table-layout:auto;white-space:normal}
#admin-view .admin-table.audit-table{width:100%;min-width:1100px;table-layout:fixed;white-space:normal}
#admin-view .admin-table.audit-table th,#admin-view .admin-table.audit-table td{padding:12px 14px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;word-break:normal}
#admin-view .admin-table.audit-table th:nth-child(1),#admin-view .admin-table.audit-table td:nth-child(1){width:180px}
#admin-view .admin-table.audit-table th:nth-child(2),#admin-view .admin-table.audit-table td:nth-child(2){width:145px}
#admin-view .admin-table.audit-table th:nth-child(3),#admin-view .admin-table.audit-table td:nth-child(3){width:160px}
#admin-view .admin-table.audit-table th:nth-child(4),#admin-view .admin-table.audit-table td:nth-child(4){width:65px}
#admin-view .admin-table.audit-table th:nth-child(5),#admin-view .admin-table.audit-table td:nth-child(5){width:180px}
#admin-view .admin-table.audit-table th:nth-child(6),#admin-view .admin-table.audit-table td:nth-child(6){width:auto;min-width:360px}
#admin-view .audit-details summary{cursor:pointer;color:#b8d8ff;font-weight:700;white-space:normal;overflow-wrap:anywhere;line-height:1.55}
#admin-view .audit-summary{margin:9px 0;color:#dce8f7;white-space:normal;overflow-wrap:anywhere;line-height:1.55}
#admin-view .audit-details pre{max-width:100%;max-height:320px;overflow:auto;margin:8px 0 0;padding:12px;border:1px solid #2b3a4e;border-radius:8px;background:#09111b;color:#dce8f7;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 ui-monospace,monospace}
#admin-view .admin-table.users-table{width:100%;min-width:0;table-layout:auto;white-space:normal}
#admin-view .admin-table.audit-table{width:100%;min-width:1120px;table-layout:fixed;white-space:normal}
#admin-view .admin-table.audit-table th,#admin-view .admin-table.audit-table td{padding:12px 14px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;word-break:normal}
#admin-view .admin-table.audit-table th:nth-child(1),#admin-view .admin-table.audit-table td:nth-child(1){width:180px}
#admin-view .admin-table.audit-table th:nth-child(2),#admin-view .admin-table.audit-table td:nth-child(2){width:150px}
#admin-view .admin-table.audit-table th:nth-child(3),#admin-view .admin-table.audit-table td:nth-child(3){width:170px}
#admin-view .admin-table.audit-table th:nth-child(4),#admin-view .admin-table.audit-table td:nth-child(4){width:70px}
#admin-view .admin-table.audit-table th:nth-child(5),#admin-view .admin-table.audit-table td:nth-child(5){width:190px}
#admin-view .admin-table.audit-table th:nth-child(6),#admin-view .admin-table.audit-table td:nth-child(6){width:auto;min-width:360px}
#admin-view .audit-details summary{cursor:pointer;color:#b8d8ff;font-weight:700;white-space:normal;overflow-wrap:anywhere}
#admin-view .audit-details pre{max-width:100%;max-height:320px;overflow:auto;margin:10px 0 0;padding:12px;border:1px solid #2b3a4e;border-radius:8px;background:#09111b;color:#dce8f7;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 ui-monospace,monospace}
#admin-view .admin-table thead{position:sticky;top:0;z-index:8}
#admin-view .admin-table th{position:static;padding:10px 12px;background:#1a293d;color:#f0f5ff;border-bottom:2px solid #5a779b;text-align:center;white-space:nowrap}
#admin-view .admin-table thead tr.subhead th{padding:4px 3px;background:#17263a;border-bottom-width:1px}
#admin-view .admin-table.hardness-table thead tr:first-child th{padding:3px 8px;background:#1a293d;color:#f0f5ff}
#admin-view .admin-table.hardness-table thead tr:first-child th[colspan="5"]{width:320px;min-width:320px;text-align:center;vertical-align:middle;padding:3px 0;border-bottom:2px solid #1a293d}
#admin-view .admin-table.hardness-table thead tr.subhead th{width:64px;min-width:64px;max-width:64px;padding:2px 3px;background:#17263a;color:#f0f5ff;border-bottom:1px solid #5a779b;text-align:center;vertical-align:middle}
.record-editor{margin-top:16px;scroll-margin-top:18px}
.record-editor .admin-title{margin-bottom:4px}
#admin-view .admin-table td{padding:11px 12px;color:#e4ebf7;border-bottom:1px solid #29374a;white-space:nowrap;overflow-wrap:normal;word-break:normal}
#admin-view .admin-table td.num{text-align:left;font-variant-numeric:tabular-nums}
#admin-view .admin-table td.comment-cell{white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:left;vertical-align:top;min-width:220px;max-width:320px;line-height:1.55}
#admin-view .admin-table tbody tr:nth-child(even) td{background:#111a27}
#admin-view .admin-table tbody tr:hover td,#admin-view .admin-table tbody tr:nth-child(even):hover td{background:#1c2b40}
#admin-view .admin-table th:first-child,#admin-view .admin-table td:first-child{position:sticky;left:0;z-index:3;background:#172233}
#admin-view .admin-table th:first-child{z-index:6}
#admin-view .admin-table th:last-child,#admin-view .admin-table td:last-child{min-width:190px}
.actions-cell{min-width:190px;white-space:nowrap}
.icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;margin:0 7px 0 0;padding:0;border:1px solid #49617f;border-radius:10px;background:#18263a;color:#e2edff;cursor:pointer;vertical-align:middle;box-shadow:0 2px 7px #0005;transition:background .14s,border-color .14s,color .14s,transform .14s}
.icon-button:last-child{margin-right:0}
.icon-button svg{display:block;width:20px;height:20px;min-width:20px;min-height:20px;flex:none}
.icon-button:hover{background:#2b4669;border-color:#83baff;color:#fff;transform:translateY(-1px)}
.icon-button:focus-visible{outline:2px solid #69adff;outline-offset:2px}
.icon-button.danger{color:#ffb1bb;border-color:#804955;background:#2c1b24}
.icon-button.danger:hover{color:#fff;background:#773341;border-color:#ff8796}
.admin-form-wrap-actions{display:flex;align-items:center;gap:10px;padding:0 20px 18px}
.table-panel thead th{text-align:center}
.export-button{text-decoration:none;white-space:nowrap;align-self:end}
@media(max-width:900px){.admin-form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.page-wrap{width:calc(100% - 20px);padding-top:12px}.page-header{align-items:flex-start;padding-bottom:12px}.page-header nav{justify-content:flex-end;gap:8px 13px}.page-header nav a{font-size:11px}.brand{font-size:25px}.intro{padding:25px 2px}.intro>p:last-child{font-size:13px}.tabs{padding-left:8px}.tab{padding:12px 10px;font-size:12px}.table-panel{padding:18px 9px 10px}.table-toolbar{align-items:stretch;flex-direction:column;gap:12px}.search-label{min-width:0}.filter-controls{display:grid;grid-template-columns:1fr;width:100%}.filter-controls .search-label,.period-label{min-width:0}.table-scroll{max-height:68vh}.page-footer{flex-direction:column}.admin-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}.admin-title{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){#admin-view .admin-table.audit-table{min-width:980px}}
@media(max-width:420px){.admin-form{grid-template-columns:1fr}.admin-form>label.field-period{max-width:none}}
.steel-reference-cell{display:inline-flex;align-items:center;gap:7px}.steel-reference-trigger,.steel-composition-trigger{display:inline-grid;place-items:center;width:20px;height:20px;padding:0;border:1px solid #607c9d;border-radius:50%;background:#16283d;color:#b9d8ff;font:700 12px/1 Manrope,sans-serif;cursor:pointer}.steel-composition-trigger{font-size:15px}.steel-reference-trigger:hover,.steel-reference-trigger:focus-visible,.steel-composition-trigger:hover,.steel-composition-trigger:focus-visible{background:#23466b;border-color:#83baff;color:#fff;outline:2px solid #69adff;outline-offset:2px}.steel-reference-popover{position:fixed;z-index:1000;max-height:min(72vh,620px);overflow:auto;padding:15px;border:1px solid #49617e;border-radius:13px;background:#101a28;box-shadow:0 18px 54px #000b;color:#eef3ff;font-size:12px;white-space:normal}.steel-reference-popover[hidden]{display:none}.steel-reference-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}.steel-reference-heading>div{display:grid;gap:3px}.steel-reference-heading strong{font-size:14px}.steel-reference-heading span,.steel-reference-candidates span{color:#9fb2cc;font-size:11px}.steel-reference-close{flex:0 0 28px;width:28px;height:28px;border:1px solid #465d7b;border-radius:8px;background:#18263a;color:#e9f2ff;font-size:19px;line-height:1;cursor:pointer}.steel-reference-profile{display:grid;gap:5px;margin:8px 0;color:#adbed4;font-size:11px;font-weight:700}.steel-reference-profile select{width:100%;padding:8px;font-size:12px}.steel-reference-note,.steel-reference-loading{margin:8px 0;color:#aab9cd;line-height:1.5}.steel-reference-grid{display:grid;grid-template-columns:minmax(55px,.55fr) minmax(85px,1fr) minmax(95px,1.15fr);gap:0 8px;margin-top:10px}.steel-reference-grid>span{padding:6px 4px;border-top:1px solid #2a394d;font-variant-numeric:tabular-nums}.steel-reference-grid>span:nth-child(3n+1){color:#aebed3;font-weight:700}.steel-reference-grid>span:nth-child(-n+3){color:#9fb2cc;font-size:10px;font-weight:800;text-transform:uppercase}.steel-reference-candidates{display:grid;gap:6px;max-height:38vh;overflow:auto}.steel-reference-candidates button{display:grid;gap:3px;width:100%;padding:9px 10px;border:1px solid #30435c;border-radius:8px;background:#142236;color:#edf4ff;text-align:left;cursor:pointer}.steel-reference-candidates button:hover,.steel-reference-candidates button:focus-visible{border-color:#72aff0;background:#1c3451;outline:2px solid #69adff;outline-offset:1px}.steel-composition-matches small{color:#8fa4bd;line-height:1.45}
.steel-reference-back{padding:6px 9px;border:1px solid #405771;border-radius:7px;background:#152235;color:#c4d8f0;font:600 11px Manrope,sans-serif;cursor:pointer}.steel-reference-back:hover,.steel-reference-back:focus-visible{border-color:#83baff;background:#1c3451;outline:2px solid #69adff;outline-offset:1px}.steel-composition-detail-grid{grid-template-columns:minmax(46px,.55fr) repeat(4,minmax(66px,1fr))}.steel-composition-detail-grid>span:nth-child(5n+1){color:#aebed3;font-weight:700}.steel-composition-detail-grid>span:nth-child(-n+5){color:#9fb2cc;font-size:10px;font-weight:800;text-transform:uppercase}
@media(max-width:720px){.steel-reference-popover{max-height:68vh;padding:12px}.steel-reference-grid{grid-template-columns:minmax(42px,.5fr) minmax(65px,1fr) minmax(80px,1.1fr);gap:0 5px}.steel-reference-grid>span{padding:7px 3px}}
.catalog-toolbar{align-items:flex-end}.catalog-search-label{min-width:min(100%,420px)}.catalog-hint{margin:12px 0;color:#aab9cd;font-size:13px;line-height:1.5}.steel-catalog-results{display:grid;gap:10px;margin-top:14px}.steel-catalog-card{overflow:hidden;border:1px solid #2c3c51;border-radius:12px;background:#111d2b}.steel-catalog-card>details>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;color:#edf4ff;cursor:pointer;list-style:none}.steel-catalog-card>details>summary::-webkit-details-marker,.catalog-profile>summary::-webkit-details-marker{display:none}.steel-catalog-card>details>summary::after{content:"+";color:#8fb9e9;font-size:18px}.steel-catalog-card>details[open]>summary::after{content:"−"}.steel-catalog-card>details>summary span{margin-left:auto;color:#9aacc2;font-size:11px}.steel-catalog-card-body{padding:0 16px 16px;border-top:1px solid #29394d}.catalog-aliases,.catalog-profile-description{margin:11px 0;color:#aab9cd;font-size:12px;line-height:1.5}.catalog-aliases strong{color:#d2deee}.catalog-profiles{display:grid;gap:8px}.catalog-profile{border:1px solid #293b51;border-radius:9px;background:#0d1724}.catalog-profile>summary{padding:10px 12px;color:#cfddf0;font-size:12px;line-height:1.4;cursor:pointer}.catalog-profile>summary::marker{color:#82addf}.catalog-profile-description{padding:0 12px}.catalog-composition-scroll{max-height:300px;overflow:auto;border-top:1px solid #26364a}.catalog-composition{width:100%;border-collapse:collapse;font-size:12px}.catalog-composition th,.catalog-composition td{padding:7px 11px;border-bottom:1px solid #223146;text-align:left;font-variant-numeric:tabular-nums}.catalog-composition thead{position:sticky;top:0;background:#152338;color:#a9bdd6}.catalog-composition tbody th{width:36%;color:#d6e2f0}.catalog-composition tbody td{color:#f1f5fb}.catalog-composition tbody tr:last-child th,.catalog-composition tbody tr:last-child td{border-bottom:0}.catalog-panel .pagination{margin-top:16px}
.catalog-composition-filter{margin:14px 0 0;padding:12px;border:1px solid #30445e;border-radius:10px}.catalog-composition-filter legend{padding:0 6px;color:#d5e2f3;font-size:13px;font-weight:700}.catalog-composition-filter>p{margin:0 0 10px;color:#aab9cd;font-size:12px}.catalog-element-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:8px}.catalog-element-fields label{display:grid;gap:4px;color:#b9cce3;font-size:11px;font-weight:700}.catalog-element-fields input{width:100%;min-width:0;padding:7px 8px;border:1px solid #344a65;border-radius:7px;background:#0d1724;color:#f1f5fb;font:inherit}.catalog-element-fields input:focus{border-color:#83baff;outline:2px solid #69adff;outline-offset:1px}.catalog-profile-match{margin:9px 12px;color:#9fcaff;font-size:12px;font-weight:700}.catalog-composition tr.is-match td:last-child{color:#8de0b0}.catalog-composition tr.is-mismatch td:last-child{color:#ffc47d}
@media(max-width:720px){.catalog-toolbar{align-items:stretch}.catalog-search-label{min-width:0}.steel-catalog-card>details>summary{padding:12px}.steel-catalog-card-body{padding:0 10px 12px}.catalog-profile>summary{padding:9px}.catalog-composition-scroll{max-height:45vh}}
