/* ReefATLAS Admin Pro v9 — Layout Rebuild */
#raAdminV9{position:fixed;inset:0;z-index:2147483400;display:none;background:#020813;color:#eaf4ff;font-family:Inter,Arial,Helvetica,sans-serif;overflow:hidden}#raAdminV9.open{display:grid;grid-template-columns:235px minmax(0,1fr)}
.ra9-sidebar{background:linear-gradient(180deg,#071d34,#03101e 68%,#020710);border-right:1px solid rgba(80,162,230,.24);padding:18px 12px;display:flex;flex-direction:column;gap:16px;min-width:0}.ra9-brand{display:flex;align-items:center;gap:10px;padding:0 6px 8px}.ra9-logo{width:42px;height:42px;border-radius:12px;background:#061827;display:block;object-fit:cover;box-shadow:0 0 24px rgba(0,130,255,.26)}.ra9-brand b{font-size:17px}.ra9-brand span{display:block;color:#91a9bd;font-size:11px;margin-top:2px}.ra9-navgroup{border-top:1px solid rgba(120,190,255,.12);padding-top:11px}.ra9-navlabel{font-size:10px;color:#7794ad;text-transform:uppercase;font-weight:950;margin:0 9px 8px;letter-spacing:.06em}.ra9-nav{display:grid;gap:6px}.ra9-nav button{height:38px;border:1px solid transparent;background:transparent;color:#d8eaff;text-align:left;border-radius:10px;padding:0 11px;font-weight:850;cursor:pointer}.ra9-nav button:hover,.ra9-nav button.active{background:linear-gradient(90deg,#0d3b66,#0b2a49);border-color:#1b75b9}.ra9-spacer{flex:1}.ra9-close{height:46px;border-radius:10px;border:1px solid #d04461;background:linear-gradient(180deg,#aa1c3a,#741426);color:#fff;font-weight:950;cursor:pointer}
.ra9-main{min-width:0;overflow:auto;padding:18px 20px 24px;background:radial-gradient(circle at 48% 0,#0e2e4e 0,#071b30 30%,#020813 72%)}.ra9-top{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;margin-bottom:14px}.ra9-crumb{color:#98b3ca;font-size:12px;margin-bottom:8px}.ra9-title h1{font-size:27px;margin:0;color:#fff}.ra9-title p{margin:6px 0 0;color:#a7bbcf;font-size:13px}.ra9-toolbar{display:flex;gap:9px;align-items:center}.ra9-search{width:260px;height:38px;border-radius:9px;border:1px solid #254e6d;background:#061827;color:#fff;padding:0 12px}.ra9-btn{height:39px;border-radius:9px;border:1px solid #2e76b5;background:#104b7e;color:#fff;font-weight:900;padding:0 13px;cursor:pointer}.ra9-btn:hover{filter:brightness(1.12)}.ra9-btn.primary{background:#075bd2;border-color:#2178ff}.ra9-btn.green{background:#16803f;border-color:#35e06e}.ra9-btn.danger{background:#8e1731;border-color:#e34361}.ra9-btn.warn{background:#8b640c;border-color:#ffc24b}.ra9-btn.ghost{background:#061827;border-color:#294d68;color:#d7ebff}.ra9-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}.ra9-stat{border:1px solid #254e6d;background:linear-gradient(180deg,rgba(8,30,52,.92),rgba(4,14,26,.92));border-radius:13px;padding:12px;min-height:70px}.ra9-stat span{display:block;color:#9fb5c8;font-size:10px;text-transform:uppercase;font-weight:950;letter-spacing:.06em}.ra9-stat b{display:block;font-size:21px;margin-top:8px}.ra9-stat small{color:#8aa4bc}.ra9-recordstrip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;border:1px solid #284f6e;border-radius:13px;overflow:hidden;background:rgba(8,28,48,.85);margin-bottom:14px}.ra9-recordstrip div{padding:12px 14px;border-right:1px solid rgba(120,190,255,.14)}.ra9-recordstrip div:last-child{border-right:0}.ra9-recordstrip span{display:block;color:#91a9bd;font-size:10px;text-transform:uppercase;font-weight:950}.ra9-recordstrip b{display:block;margin-top:6px;color:#fff;font-size:14px}.ra9-tabs{display:flex;gap:2px;border:1px solid #284f6e;background:rgba(6,22,38,.84);border-radius:12px;padding:6px;margin-bottom:14px;overflow:auto}.ra9-tabs button{height:34px;border:0;background:transparent;color:#b8cee2;border-radius:8px;padding:0 13px;white-space:nowrap;font-weight:800}.ra9-tabs button.active{background:#075bd2;color:#fff}.ra9-grid{display:grid;grid-template-columns:minmax(0,1fr) 435px;gap:16px;align-items:start}.ra9-left{display:grid;gap:14px;min-width:0}.ra9-row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ra9-card{border:1px solid #284f6e;background:linear-gradient(180deg,rgba(10,31,52,.92),rgba(5,18,32,.92));border-radius:14px;overflow:hidden;box-shadow:0 16px 42px rgba(0,0,0,.22)}.ra9-card h2{font-size:17px;margin:0;padding:14px 15px;border-bottom:1px solid rgba(120,190,255,.15)}.ra9-card-body{padding:14px}.ra9-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.ra9-formgrid.three{grid-template-columns:1fr 1fr 1fr}.ra9-formgrid.four{grid-template-columns:repeat(4,1fr)}.ra9-field label{display:block;color:#a3bbcf;font-size:10px;text-transform:uppercase;font-weight:950;letter-spacing:.04em;margin-bottom:5px}.ra9-field input,.ra9-field select,.ra9-field textarea{width:100%;box-sizing:border-box;background:#061827;border:1px solid #284f6e;color:#fff;border-radius:9px;padding:9px;font:inherit;min-height:38px}.ra9-field textarea{min-height:70px;resize:vertical}.ra9-field input:focus,.ra9-field select:focus,.ra9-field textarea:focus{outline:none;border-color:#68baff;box-shadow:0 0 0 2px rgba(104,186,255,.12)}.ra9-toggle{display:flex;gap:8px}.ra9-toggle button{flex:1;height:38px;border-radius:8px;border:1px solid #284f6e;background:#061827;color:#dcefff;font-weight:900}.ra9-toggle button.active{background:#075bd2;border-color:#2183ff}.ra9-source-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}.ra9-preview{position:sticky;top:18px}.ra9-tankpreview{border:1px solid #284f6e;background:radial-gradient(circle at 50% 20%,rgba(43,130,210,.22),transparent 45%),linear-gradient(180deg,#081d33,#020813);border-radius:14px;overflow:hidden}.ra9-preview-head{display:flex;justify-content:space-between;align-items:center;padding:14px}.ra9-preview-head h2{margin:0;font-size:17px}.ra9-chip{border:1px solid #426c89;background:#061827;color:#cfe9ff;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:950}.ra9-chip.good{border-color:#2fd86b;color:#a8ffc0}.ra9-chip.warn{border-color:#ffd166;color:#ffe09a}.ra9-chip.bad{border-color:#ff5a72;color:#ffb6c2}.ra9-preview-stage{height:355px;position:relative;display:grid;place-items:center;border-top:1px solid rgba(120,190,255,.11);border-bottom:1px solid rgba(120,190,255,.11)}.ra9-real-img{max-width:94%;max-height:92%;object-fit:contain;filter:drop-shadow(0 20px 28px rgba(0,0,0,.55))}.ra9-css-tank{position:relative;width:340px;height:230px;perspective:900px}.ra9-tank-front{position:absolute;left:36px;top:58px;width:250px;height:150px;border:3px solid rgba(155,221,255,.68);background:linear-gradient(180deg,rgba(68,173,255,.25),rgba(8,83,150,.22));box-shadow:inset 0 0 36px rgba(80,180,255,.18),0 20px 35px rgba(0,0,0,.45)}.ra9-tank-top{position:absolute;left:48px;top:27px;width:250px;height:42px;background:linear-gradient(180deg,#2c3338,#0d1115);transform:skewX(-25deg);border-radius:7px;box-shadow:0 8px 18px rgba(0,0,0,.45)}.ra9-tank-side{position:absolute;left:286px;top:68px;width:58px;height:147px;background:linear-gradient(90deg,rgba(35,92,150,.28),rgba(7,18,30,.62));transform:skewY(-22deg);border:2px solid rgba(155,221,255,.38)}.ra9-tank-water{position:absolute;left:0;right:0;bottom:0;height:72%;background:linear-gradient(180deg,rgba(62,180,255,.38),rgba(5,75,135,.24));border-top:2px solid rgba(210,245,255,.7)}.ra9-rock{position:absolute;border-radius:42% 58% 38% 62%;background:#5e5270;box-shadow:20px 5px 0 #74608c,-18px 12px 0 #4e425d,3px -12px 0 #8ab96a;opacity:.9}.ra9-rock.r1{width:82px;height:42px;left:70px;bottom:30px}.ra9-rock.r2{width:95px;height:52px;left:150px;bottom:25px;background:#6b5e78}.ra9-sand{position:absolute;left:0;right:0;bottom:0;height:24px;background:linear-gradient(180deg,#cdbd98,#a8946b)}.ra9-preview-caption{text-align:center;padding:12px 14px}.ra9-preview-caption b{display:block}.ra9-preview-caption span{display:block;color:#9fb5c8;font-size:12px;margin-top:4px}.ra9-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:0 14px 14px}.ra9-thumb{height:56px;border:1px solid #284f6e;border-radius:8px;background:#061827;display:grid;place-items:center;color:#8ea7bd;font-size:10px;overflow:hidden}.ra9-thumb img{width:100%;height:100%;object-fit:cover}.ra9-thumb.active{border-color:#2183ff;box-shadow:0 0 0 2px rgba(33,131,255,.22)}.ra9-volgrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.ra9-vol{border:1px solid #284f6e;background:rgba(255,255,255,.035);border-radius:11px;padding:13px;text-align:center}.ra9-vol span{display:block;color:#a3bbcf;font-size:11px}.ra9-vol b{display:block;font-size:22px;margin-top:7px}.ra9-vol small{display:block;color:#8aa4bc;margin-top:4px}.ra9-info{border:1px solid #284f6e;background:#061827;border-radius:10px;padding:10px;color:#9fb5c8;font-size:12px;margin-top:10px}.ra9-systems{display:grid;grid-template-columns:1fr 1.15fr 1.15fr 1fr;gap:12px}.ra9-checklist{border:1px solid #284f6e;border-radius:10px;overflow:hidden}.ra9-checkline{display:flex;justify-content:space-between;padding:8px 10px;border-bottom:1px solid rgba(120,190,255,.11);font-size:12px}.ra9-checkline:last-child{border-bottom:0}.ra9-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.ra9-footerrow{display:flex;justify-content:space-between;color:#8ba5bd;font-size:11px;margin-top:12px}.ra9-queue{max-height:420px;overflow:auto;border:1px solid #284f6e;border-radius:12px}.ra9-qitem{display:grid;grid-template-columns:72px 1fr auto;gap:11px;padding:10px;border-bottom:1px solid rgba(120,190,255,.12);cursor:pointer}.ra9-qitem:hover,.ra9-qitem.active{background:#0d3559}.ra9-qimg{height:62px;border:1px dashed #315b7a;border-radius:9px;display:grid;place-items:center;color:#829bb2;font-size:10px;overflow:hidden}.ra9-qimg img{width:100%;height:100%;object-fit:cover}.ra9-qitem h3{font-size:13px;margin:0 0 4px}.ra9-qitem p{margin:0;color:#9fb5c8;font-size:11px}.ra9-smallgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ra9-libgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.ra9-libcard{border:1px solid #284f6e;border-radius:12px;background:rgba(6,24,39,.88);padding:10px}.ra9-libimg{height:120px;border:1px dashed #315b7a;border-radius:9px;display:grid;place-items:center;overflow:hidden;color:#8ea7bd}.ra9-libimg img{max-width:100%;max-height:100%;object-fit:contain}.ra9-libcard b{display:block;margin-top:8px}.ra9-libcard span{color:#9fb5c8;font-size:12px}.ra9-page{display:none}.ra9-page.active{display:block}.ra9-modal{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:2147483500;display:none;align-items:center;justify-content:center}.ra9-modal.open{display:flex}.ra9-dialog{width:min(520px,94vw);border:1px solid #426c89;background:#081d33;border-radius:16px;padding:18px;box-shadow:0 30px 100px rgba(0,0,0,.7)}.ra9-dialog h2{margin:0 0 8px}.ra9-dialog p{color:#c1d2e2;line-height:1.45}.ra9-cost{border:1px solid #ffd166;background:rgba(255,209,102,.08);border-radius:12px;padding:12px;color:#ffe2a3;font-size:13px}.ra9-dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}
@media(max-width:1280px){#raAdminV9.open{grid-template-columns:205px 1fr}.ra9-grid{grid-template-columns:1fr}.ra9-preview{position:relative;top:auto}.ra9-summary{grid-template-columns:repeat(3,1fr)}.ra9-row2,.ra9-systems{grid-template-columns:1fr}.ra9-recordstrip{grid-template-columns:repeat(3,1fr)}}@media(max-width:820px){#raAdminV9.open{grid-template-columns:1fr}.ra9-sidebar{display:none}.ra9-main{padding:12px}.ra9-top{grid-template-columns:1fr}.ra9-toolbar{flex-wrap:wrap}.ra9-summary,.ra9-formgrid,.ra9-formgrid.three,.ra9-formgrid.four,.ra9-volgrid,.ra9-actions{grid-template-columns:1fr}.ra9-preview-stage{height:280px}.ra9-css-tank{transform:scale(.82)}}

/* ReefATLAS Admin Pro v11 — functional tabs + clean glass preview */
.ra9-tabs button{cursor:pointer;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;color:#cfe1f3;white-space:nowrap}
.ra9-tabs button.active{background:linear-gradient(135deg,#0e73de,#0758b1)!important;border-color:#59b5ff!important;color:#fff!important;box-shadow:0 0 0 1px rgba(70,156,255,.26),0 10px 24px rgba(0,86,190,.26)!important}
.ra11-glass-stage{min-height:350px!important;padding:10px 10px 0!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 50% 35%,rgba(65,158,255,.18),transparent 50%),linear-gradient(180deg,rgba(7,31,54,.96),rgba(2,13,25,.98))!important;overflow:hidden!important}
.ra11-glass-svg{width:100%;max-width:650px;height:auto;filter:drop-shadow(0 24px 36px rgba(0,0,0,.36))}
.ra11-dim-label{font-family:Inter,Arial,sans-serif;font-size:15px;font-weight:900;fill:#eef8ff;paint-order:stroke;stroke:rgba(1,12,24,.95);stroke-width:5px;stroke-linejoin:round}
.ra11-dim-small{font-family:Inter,Arial,sans-serif;font-size:12px;font-weight:700;fill:#a9c7df;paint-order:stroke;stroke:rgba(1,12,24,.95);stroke-width:3px;stroke-linejoin:round}
.ra11-preview-card .ra9-preview-stage{border-bottom:1px solid rgba(91,162,224,.16)}
.ra11-view-buttons{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:8px!important;padding:10px 14px 14px!important}
.ra11-view-buttons .ra9-thumb{min-height:42px!important;display:grid!important;place-items:center!important;font-weight:800!important;background:rgba(7,28,50,.9)!important;border:1px solid rgba(88,158,218,.35)!important;color:#bed4e8!important}
.ra11-view-buttons .ra9-thumb.active{background:rgba(0,98,205,.45)!important;border-color:#34a2ff!important;color:#fff!important}
.ra11-placeholder{min-height:260px}.ra11-placeholder .ra9-info{font-size:14px;line-height:1.55}
@media(max-width:1200px){.ra11-glass-stage{min-height:270px!important}.ra11-dim-label{font-size:13px}.ra11-dim-small{font-size:11px}.ra11-view-buttons{grid-template-columns:repeat(2,1fr)!important}}

/* ReefATLAS Catalog Manager v12 */
#reefAtlasAdminCornerBtn{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.loggedIn.reefatlasCanAdmin #reefAtlasAdminCornerBtn{display:block!important;visibility:visible!important;pointer-events:auto!important}
#raCatalogAdmin.ra9-admin{position:fixed;inset:0;z-index:2147483400;display:none;grid-template-columns:235px minmax(0,1fr);background:#020813;color:#eaf4ff;font-family:Inter,Arial,Helvetica,sans-serif;overflow:hidden}
#raCatalogAdmin.ra9-admin.show{display:grid}
#raCatalogAdmin .ra9-side{background:linear-gradient(180deg,#071d34,#03101e 68%,#020710);border-right:1px solid rgba(80,162,230,.24);padding:18px 12px;display:flex;flex-direction:column;gap:10px}
#raCatalogAdmin .ra9-brand h1{font-size:17px;margin:0}
#raCatalogAdmin .ra9-brand small{display:block;color:#91a9bd;font-size:11px;margin-top:2px}
#raCatalogAdmin .ra9-nav{height:40px;border:1px solid transparent;background:transparent;color:#d8eaff;text-align:left;border-radius:10px;padding:0 11px;font-weight:850;cursor:pointer}
#raCatalogAdmin .ra9-nav:hover,#raCatalogAdmin .ra9-nav.active{background:linear-gradient(90deg,#0d3b66,#0b2a49);border-color:#1b75b9}
#raCatalogAdmin .ra9-close-admin{margin-top:auto;height:46px;border-radius:10px;border:1px solid #d04461;background:linear-gradient(180deg,#aa1c3a,#741426);color:#fff;font-weight:950;cursor:pointer}
#raCatalogAdmin .ra9-top-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
#raCatalogAdmin input,#raCatalogAdmin select,#raCatalogAdmin textarea{box-sizing:border-box;background:#061827;border:1px solid #284f6e;color:#fff;border-radius:9px;padding:9px;font:inherit;min-height:38px}
#raCatalogAdmin textarea{min-height:86px;resize:vertical}
#raCatalogAdmin input[type="checkbox"]{width:auto;min-height:auto}
#raCatalogAdmin button{border-radius:9px;border:1px solid #2e76b5;background:#104b7e;color:#fff;font-weight:900;padding:9px 13px;cursor:pointer}
#raCatalogAdmin button.primary{background:#075bd2;border-color:#2178ff}
#raCatalogAdmin button.danger{background:#8e1731;border-color:#e34361}
#raCatalogAdmin button:hover{filter:brightness(1.1)}
#raCatalogAdmin .ra9-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}
#raCatalogAdmin .ra9-metric{border:1px solid #254e6d;background:linear-gradient(180deg,rgba(8,30,52,.92),rgba(4,14,26,.92));border-radius:13px;padding:12px;min-height:70px}
#raCatalogAdmin .ra9-metric span{display:block;color:#9fb5c8;font-size:10px;text-transform:uppercase;font-weight:950;letter-spacing:.06em}
#raCatalogAdmin .ra9-metric b{display:block;font-size:21px;margin-top:8px}
#raCatalogAdmin .ra9-metric small{color:#8aa4bc}
#raCatalogAdmin .ra9-grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
#raCatalogAdmin .ra9-list{display:grid;gap:8px;padding:14px;max-height:560px;overflow:auto}
#raCatalogAdmin .ra9-list button{display:flex;justify-content:space-between;gap:12px;text-align:left;background:#061827;border-color:#284f6e}
#raCatalogAdmin .ra9-list span{color:#9fb5c8;font-size:12px}
#raCatalogAdmin .ra9-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
#raCatalogAdmin .ra9-table-wrap{border:1px solid #284f6e;border-radius:13px;overflow:auto;background:rgba(6,24,39,.88)}
#raCatalogAdmin .ra9-table{width:100%;border-collapse:collapse;font-size:13px}
#raCatalogAdmin .ra9-table th,#raCatalogAdmin .ra9-table td{padding:10px 12px;border-bottom:1px solid rgba(120,190,255,.12);text-align:left}
#raCatalogAdmin .ra9-table th{color:#a3bbcf;text-transform:uppercase;font-size:10px;letter-spacing:.06em}
#raCatalogAdmin .ra9-table tr{cursor:pointer}
#raCatalogAdmin .ra9-table tr:hover{background:#0d3559}
#raCatalogAdmin .ra9-livestock-table-card{overflow:visible}
#raCatalogAdmin .ra9-livestock-filterbar{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(4,minmax(145px,1fr)) auto auto;gap:9px;padding:14px 14px 8px;align-items:center}
#raCatalogAdmin .ra9-livestock-filterbar input,#raCatalogAdmin .ra9-livestock-filterbar select{width:100%;box-sizing:border-box;background:#061827;border:1px solid #284f6e;color:#fff;border-radius:9px;padding:9px;font:inherit;min-height:38px}
#raCatalogAdmin .ra9-livestock-count{padding:0 14px 10px;color:#9fb5c8;font-size:12px;font-weight:800}
#raCatalogAdmin .ra9-livestock-table-wrap{max-height:calc(100vh - 360px);min-height:440px;border-radius:0 0 13px 13px}
#raCatalogAdmin .ra9-livestock-table{min-width:3300px;table-layout:fixed}
#raCatalogAdmin .ra9-livestock-table th{position:sticky;top:0;background:#071d31;z-index:2}
#raCatalogAdmin .ra9-livestock-table th,#raCatalogAdmin .ra9-livestock-table td{width:120px;max-width:220px;vertical-align:top}
#raCatalogAdmin .ra9-livestock-table th:nth-child(4),#raCatalogAdmin .ra9-livestock-table td:nth-child(4),#raCatalogAdmin .ra9-livestock-table th:nth-child(5),#raCatalogAdmin .ra9-livestock-table td:nth-child(5){width:170px}
#raCatalogAdmin .ra9-livestock-table th:nth-child(n+18),#raCatalogAdmin .ra9-livestock-table td:nth-child(n+18){width:220px}
#raCatalogAdmin .ra9-livestock-table td{white-space:normal;line-height:1.35;color:#d9e8f5}
#raCatalogAdmin .ra9-livestock-table td:nth-child(5){font-weight:900;color:#fff}
#raCatalogAdmin .ra9-equipment-table-card{overflow:visible}
#raCatalogAdmin .ra9-equipment-filterbar{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(145px,1fr)) auto auto;gap:9px;padding:14px 14px 8px;align-items:center}
#raCatalogAdmin .ra9-equipment-filterbar input,#raCatalogAdmin .ra9-equipment-filterbar select{width:100%;box-sizing:border-box;background:#061827;border:1px solid #284f6e;color:#fff;border-radius:9px;padding:9px;font:inherit;min-height:38px}
#raCatalogAdmin .ra9-equipment-table-wrap{max-height:calc(100vh - 360px);min-height:440px;border-radius:0 0 13px 13px}
#raCatalogAdmin .ra9-equipment-table{min-width:3900px;table-layout:fixed}
#raCatalogAdmin .ra9-equipment-table th{position:sticky;top:0;background:#071d31;z-index:2}
#raCatalogAdmin .ra9-equipment-table th,#raCatalogAdmin .ra9-equipment-table td{width:150px;max-width:240px;vertical-align:top}
#raCatalogAdmin .ra9-equipment-table th:nth-child(1),#raCatalogAdmin .ra9-equipment-table td:nth-child(1){width:240px}
#raCatalogAdmin .ra9-equipment-table th:nth-child(6),#raCatalogAdmin .ra9-equipment-table td:nth-child(6),#raCatalogAdmin .ra9-equipment-table th:nth-child(7),#raCatalogAdmin .ra9-equipment-table td:nth-child(7),#raCatalogAdmin .ra9-equipment-table th:nth-child(8),#raCatalogAdmin .ra9-equipment-table td:nth-child(8),#raCatalogAdmin .ra9-equipment-table th:nth-child(9),#raCatalogAdmin .ra9-equipment-table td:nth-child(9),#raCatalogAdmin .ra9-equipment-table th:nth-child(10),#raCatalogAdmin .ra9-equipment-table td:nth-child(10),#raCatalogAdmin .ra9-equipment-table th:nth-child(14),#raCatalogAdmin .ra9-equipment-table td:nth-child(14),#raCatalogAdmin .ra9-equipment-table th:nth-child(15),#raCatalogAdmin .ra9-equipment-table td:nth-child(15),#raCatalogAdmin .ra9-equipment-table th:nth-child(25),#raCatalogAdmin .ra9-equipment-table td:nth-child(25),#raCatalogAdmin .ra9-equipment-table th:nth-child(26),#raCatalogAdmin .ra9-equipment-table td:nth-child(26){width:230px}
#raCatalogAdmin .ra9-equipment-table td{white-space:normal;line-height:1.35;color:#d9e8f5}
#raCatalogAdmin .ra9-equipment-table td:nth-child(4){font-weight:900;color:#fff}
#raCatalogAdmin .ra9-par-profile-table-wrap{max-height:calc(100vh - 360px);min-height:440px;border-radius:0 0 13px 13px}
#raCatalogAdmin .ra9-par-profile-table{min-width:2600px;table-layout:fixed}
#raCatalogAdmin .ra9-par-profile-table th{position:sticky;top:0;background:#071d31;z-index:2}
#raCatalogAdmin .ra9-par-profile-table th,#raCatalogAdmin .ra9-par-profile-table td{width:140px;max-width:240px;vertical-align:top}
#raCatalogAdmin .ra9-par-profile-table th:nth-child(1),#raCatalogAdmin .ra9-par-profile-table td:nth-child(1),#raCatalogAdmin .ra9-par-profile-table th:nth-child(2),#raCatalogAdmin .ra9-par-profile-table td:nth-child(2),#raCatalogAdmin .ra9-par-profile-table th:nth-child(4),#raCatalogAdmin .ra9-par-profile-table td:nth-child(4),#raCatalogAdmin .ra9-par-profile-table th:nth-child(12),#raCatalogAdmin .ra9-par-profile-table td:nth-child(12),#raCatalogAdmin .ra9-par-profile-table th:nth-child(13),#raCatalogAdmin .ra9-par-profile-table td:nth-child(13){width:220px}
#raCatalogAdmin .ra9-par-profile-table td{white-space:normal;line-height:1.35;color:#d9e8f5}
#raCatalogAdmin .ra9-livestock-modal{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:2147483500;display:flex;align-items:center;justify-content:center;padding:18px}
#raCatalogAdmin .ra9-livestock-dialog{width:min(1120px,96vw);max-height:92vh;overflow:auto;border:1px solid #426c89;background:linear-gradient(180deg,#0b2842,#061827);border-radius:16px;box-shadow:0 30px 100px rgba(0,0,0,.7)}
#raCatalogAdmin .ra9-livestock-dialog-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border-bottom:1px solid rgba(120,190,255,.16);background:#0b2842}
#raCatalogAdmin .ra9-livestock-dialog-head h2{margin:0;font-size:20px;color:#fff}
#raCatalogAdmin .ra9-livestock-dialog-head p{margin:4px 0 0;color:#9fb5c8}
#raCatalogAdmin .ra9-livestock-dialog .ra9-form{grid-template-columns:1fr 1fr;padding:14px}
#raCatalogAdmin .ra9-livestock-dialog .ra9-actions{position:sticky;bottom:0;background:#061827;border-top:1px solid rgba(120,190,255,.16);padding:12px 14px}
#raCatalogAdmin .ra9-form{display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:14px}
#raCatalogAdmin .ra9-form label{display:grid;gap:5px;color:#a3bbcf;font-size:10px;text-transform:uppercase;font-weight:950;letter-spacing:.04em}
#raCatalogAdmin .ra9-form small{font-size:11px;text-transform:none;letter-spacing:0;font-weight:800}
#raCatalogAdmin .ra9-assumed{color:#ffd166}
#raCatalogAdmin .ra9-published{color:#8ff0ae}
#raCatalogAdmin .ra9-form label.ra9-glass-field{grid-column:1/-1}
#raCatalogAdmin .ra9-form label.ra9-glass-field input{max-width:calc(50% - 6px)}
#raCatalogAdmin .ra9-form label:has(textarea),#raCatalogAdmin .ra9-form label:has(input[type="checkbox"]){grid-column:1/-1}
#raCatalogAdmin .ra9-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 14px 14px}
#raCatalogAdmin .ra9-collapsible-card>h2{display:flex;align-items:center;justify-content:space-between;gap:10px}
#raCatalogAdmin .ra9-card-collapse{margin-left:auto;padding:6px 9px!important;border-color:#315b7a!important;background:#061827!important;color:#dcefff!important;font-size:11px!important;text-transform:uppercase;letter-spacing:.05em}
#raCatalogAdmin .ra9-collapsible-card.isCollapsed>:not(h2){display:none!important}
#raCatalogAdmin .ra9-empty{border:1px dashed #315b7a;border-radius:9px;display:grid;place-items:center;color:#8ea7bd;background:#061827;padding:16px;text-align:center}
#raCatalogAdmin .ra9-json{white-space:pre-wrap;font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#cfe5fa;background:#061827;border:1px solid #284f6e;border-radius:12px;margin:14px;padding:14px;overflow:auto}
#raCatalogAdmin .aiAdminGrid{align-items:start}
#raCatalogAdmin .aiAdminForm{grid-template-columns:1fr}
#raCatalogAdmin .aiAdminForm textarea{min-height:150px}
#raCatalogAdmin .aiAdminResult{display:grid;gap:13px;padding:14px}
#raCatalogAdmin .aiAdminResult h3{margin:4px 0 0;color:#9fd0ff;font-size:13px;text-transform:uppercase;letter-spacing:.07em}
#raCatalogAdmin .aiAdminSummary{border:1px solid rgba(159,208,255,.16);border-radius:12px;background:rgba(6,24,39,.82);padding:12px;display:grid;gap:6px}
#raCatalogAdmin .aiAdminSummary b{color:#ffd166;text-transform:uppercase;font-size:12px}
#raCatalogAdmin .aiAdminSummary p{margin:0;color:#dbeeff;line-height:1.45}
#raCatalogAdmin .aiAdminSummary small{color:#9fb5c8}
#raCatalogAdmin .aiAdminList{display:grid;gap:8px}
#raCatalogAdmin .aiAdminList>div{border:1px solid rgba(159,208,255,.14);border-radius:10px;background:#061827;padding:10px;display:grid;gap:5px}
#raCatalogAdmin .aiAdminList b{color:#eef8ff}
#raCatalogAdmin .aiAdminList span{color:#d7e8f7;line-height:1.35}
#raCatalogAdmin .aiAdminList small{color:#9fb5c8;line-height:1.35}
#raCatalogAdmin .aiAdminApply{padding:0}
@media(max-width:980px){#raCatalogAdmin.ra9-admin.show{grid-template-columns:1fr}#raCatalogAdmin .ra9-side{display:none}#raCatalogAdmin .ra9-top{grid-template-columns:1fr}#raCatalogAdmin .ra9-metrics,#raCatalogAdmin .ra9-grid2,#raCatalogAdmin .ra9-form,#raCatalogAdmin .ra9-livestock-filterbar,#raCatalogAdmin .ra9-equipment-filterbar,#raCatalogAdmin .ra9-livestock-dialog .ra9-form{grid-template-columns:1fr}#raCatalogAdmin .ra9-livestock-table-wrap,#raCatalogAdmin .ra9-equipment-table-wrap{max-height:60vh;min-height:360px}}
