:root{--hub-panel:rgba(255,255,255,.94);--hub-line:rgba(185,208,222,.48);--hub-muted:#627489;--hub-danger:#a52f42;--hub-success:#08785a;--hub-warning:#926000}
*{box-sizing:border-box}[hidden]{display:none!important}
html,body{overflow-x:hidden}body{margin:0}.hub-shell{position:relative;z-index:1;width:min(1380px,calc(100% - 36px));margin:auto;padding:18px 0 68px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:18px}.topbar h1{font-size:22px;margin:0 0 3px}.topbar p{font-size:12px;color:var(--hub-muted);margin:0}.hub-top-actions{display:flex;align-items:center;gap:10px}.hub-role{padding:10px 13px;border:1px solid rgba(157,78,178,.22);border-radius:999px;background:linear-gradient(135deg,rgba(157,78,178,.1),rgba(35,245,239,.13));color:#63337b;font-size:11px;font-weight:800}.hub-notice{display:none;margin-bottom:16px;padding:13px 16px;border:1px solid rgba(35,245,239,.16);border-radius:14px;background:rgba(6,64,74,.86);color:#d9fffd;font-size:13px}.hub-notice.show{display:block}.hub-notice.error{border-color:rgba(255,130,151,.3);background:rgba(100,20,47,.88);color:#ffe7ec}.hub-notice.success{background:rgba(7,86,75,.88)}
.hub-hero{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(360px,.75fr);align-items:center;gap:36px;min-height:290px;padding:42px!important;border-radius:30px}.hub-hero h2{max-width:760px;margin:8px 0 14px;color:#fff;font-size:clamp(34px,4.4vw,58px);line-height:1.02}.hub-hero p{max-width:740px;line-height:1.6}.hub-hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hub-hero-stats article{padding:19px;border:1px solid rgba(255,255,255,.17);border-radius:18px;background:rgba(255,255,255,.1);backdrop-filter:blur(12px)}.hub-hero-stats strong{display:block;color:#fff;font-size:27px}.hub-hero-stats span{display:block;margin-top:5px;color:rgba(255,255,255,.72);font-size:11px}
.hub-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.hub-steps button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(3,29,43,.7);color:rgba(255,255,255,.68);font-weight:800;cursor:pointer}.hub-steps button span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:rgba(255,255,255,.1)}.hub-steps button.active{border-color:rgba(35,245,239,.46);background:linear-gradient(110deg,#082e41,#6f2f91 75%,#23f5ef 160%);color:#fff;box-shadow:0 12px 30px rgba(9,17,43,.28)}.hub-steps button:disabled{opacity:.45;cursor:not-allowed}
.hub-panel{margin-bottom:18px;padding:26px;border:1px solid rgba(255,255,255,.65);border-radius:24px;background:var(--hub-panel);box-shadow:0 24px 62px rgba(0,10,24,.28);backdrop-filter:blur(16px)}.hub-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}.hub-section-head h2{margin:5px 0 5px;font-size:25px;letter-spacing:-.035em}.hub-section-head p{margin:0;color:var(--hub-muted);font-size:13px;line-height:1.55}.hub-org-label{display:grid;gap:6px;min-width:260px;color:var(--hub-muted);font-size:11px;font-weight:700}.hub-panel input,.hub-panel select,.hub-panel textarea,.record-dialog input,.record-dialog textarea{width:100%;border:1px solid #c9dbe6;border-radius:11px;background:#fff;color:#082e41;padding:11px 12px;font:inherit}.hub-panel input:focus,.hub-panel select:focus,.hub-panel textarea:focus,.record-dialog input:focus,.record-dialog textarea:focus{outline:3px solid rgba(35,245,239,.2);border-color:#7161ca}.hub-panel button,.record-dialog button{border:0;border-radius:11px;padding:11px 16px;background:linear-gradient(108deg,#082e41,#9d4eb2 72%,#23f5ef 155%);color:#fff;font:inherit;font-weight:800;cursor:pointer}.hub-panel button.secondary,.record-dialog button.secondary{border:1px solid #d3e1e9;background:#f3f7fa;color:#082e41}.hub-panel button:disabled,.record-dialog button:disabled{opacity:.48;cursor:not-allowed}
.source-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:18px}.drop-zone{display:grid;place-items:center;align-content:center;min-height:300px;padding:34px;border:2px dashed rgba(111,47,145,.36);border-radius:22px;background:radial-gradient(circle at 50% 0,rgba(35,245,239,.1),transparent 35%),linear-gradient(145deg,#f9fbfd,#f4effa);text-align:center;cursor:pointer;transition:.2s}.drop-zone:hover,.drop-zone.dragging{transform:translateY(-2px);border-color:#23bfc3;box-shadow:0 18px 42px rgba(64,42,108,.12)}.drop-zone .hub-icon{width:72px;height:72px;margin-bottom:18px}.drop-zone strong{font-size:22px}.drop-zone>span:not(.hub-icon){margin-top:8px;color:var(--hub-muted);font-size:13px}.drop-zone small{margin-top:18px;color:#7c8b9c;font-size:11px}.source-card{display:flex;gap:18px;align-items:flex-start;padding:24px;border:1px solid var(--hub-line);border-radius:22px;background:linear-gradient(150deg,#fff,rgba(237,249,250,.95))}.source-card .hub-icon{flex:0 0 auto}.source-card strong{font-size:18px}.source-card p{color:var(--hub-muted);font-size:13px;line-height:1.6}.coming-soon{display:inline-flex;padding:7px 10px;border-radius:999px;background:#eee8f8;color:#6f2f91;font-size:10px;font-weight:800}.file-preview{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:16px;border:1px solid #cfe6e5;border-radius:16px;background:#edf9f7}.file-preview>div{display:flex;align-items:center;gap:14px}.file-preview strong,.file-preview span{display:block}.file-preview span{margin-top:4px;color:var(--hub-muted);font-size:12px}
.hub-icon,.icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid rgba(111,47,145,.16);border-radius:17px;background:linear-gradient(145deg,rgba(35,245,239,.18),rgba(157,78,178,.16));color:#082e41}.hub-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.catalog-fields{display:grid;grid-template-columns:1fr 1.4fr;gap:14px;margin-bottom:18px}.catalog-fields label{display:grid;gap:7px;color:var(--hub-muted);font-size:11px;font-weight:700}.mapping-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.summary-chip{padding:7px 10px;border-radius:999px;background:#eef3f7;color:#516678;font-size:11px;font-weight:700}.summary-chip.ok{background:#e5f8ef;color:#08785a}.summary-chip.warning{background:#fff3d9;color:#8e5d00}.mapping-table-wrap,.record-table-wrap{overflow:auto;border:1px solid #d8e5ec;border-radius:16px}.mapping-table,.record-table{width:100%;border-collapse:collapse;min-width:840px}.mapping-table th,.mapping-table td,.record-table th,.record-table td{padding:11px 12px;border-bottom:1px solid #e5edf2;text-align:left;vertical-align:middle}.mapping-table th,.record-table th{color:#65778c;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.mapping-table td,.record-table td{font-size:12px}.mapping-table tr:last-child td,.record-table tr:last-child td{border-bottom:0}.mapping-table code{font-size:12px;font-weight:800;color:#082e41}.sample-value{display:block;max-width:320px;overflow:hidden;color:#6a7a8d;text-overflow:ellipsis;white-space:nowrap}.field-state{display:inline-flex;padding:6px 8px;border-radius:999px;background:#eef3f7;color:#617183;font-size:10px;font-weight:800}.field-state.identity{background:#e4f7ef;color:#08785a}.field-state.custom{background:#eee8f8;color:#6f2f91}.hub-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.review-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}.review-summary article{padding:16px;border:1px solid #d7e4eb;border-radius:16px;background:#f7fafc}.review-summary strong{display:block;font-size:25px}.review-summary span{color:var(--hub-muted);font-size:10px}.review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.segmented{display:flex;gap:5px;padding:4px;border-radius:12px;background:#edf3f6}.segmented button{padding:8px 12px;background:transparent;color:#617286}.segmented button.active{background:#082e41;color:#fff}.review-toolbar>span,.pager{color:var(--hub-muted);font-size:11px}.record-table input{min-width:95px;padding:8px;font-size:11px}.record-table input.identity-field{min-width:190px}.record-status{display:inline-flex;padding:6px 8px;border-radius:999px;font-size:10px;font-weight:800}.record-status.valid{background:#e1f7eb;color:#08785a}.record-status.invalid{background:#fde9ed;color:#9b2f42}.record-status.duplicate{background:#fff1d2;color:#926000}.record-edit{padding:8px 10px!important;font-size:10px!important}.pager{display:flex;justify-content:center;gap:10px;margin-top:14px}
.publish-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:30px;align-items:start}.publish-layout h2{margin:10px 0;font-size:32px}.publish-layout p,.publish-layout li{color:var(--hub-muted);font-size:13px;line-height:1.65}.publish-layout aside{padding:22px;border:1px solid #d4e3ea;border-radius:20px;background:linear-gradient(150deg,#fff,#eef8f7)}.publish-layout aside h3{margin:0 0 14px}.publish-layout dl{margin:0 0 18px}.publish-layout dl div{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #dce8ed}.publish-layout dt{color:var(--hub-muted);font-size:11px}.publish-layout dd{margin:0;font-weight:800}.publish-layout aside button{width:100%}.publish-icon{width:64px;height:64px}.history-panel{margin-top:24px}.history-list{display:grid;gap:10px}.history-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(120px,.5fr) repeat(3,minmax(90px,.32fr));align-items:center;gap:14px;padding:14px;border:1px solid #dde8ee;border-radius:14px;background:#f8fafb}.history-row strong,.history-row span{display:block}.history-row span{margin-top:3px;color:var(--hub-muted);font-size:10px}.history-status{justify-self:start;padding:6px 9px;border-radius:999px;background:#edf2f6;font-size:10px;font-weight:800}.history-status.published,.history-status.ready{background:#e2f7ec;color:#08785a}.history-status.failed{background:#fde9ed;color:#9b2f42}.empty-state{text-align:center;color:var(--hub-muted);padding:22px}
.record-dialog{width:min(900px,calc(100% - 28px));padding:0;border:0;border-radius:24px;background:transparent}.record-dialog::backdrop{background:rgba(1,15,28,.76);backdrop-filter:blur(8px)}.record-dialog-card{overflow:hidden;border:1px solid rgba(255,255,255,.45);border-radius:24px;background:#f7fafc;box-shadow:0 32px 90px rgba(0,0,0,.38)}.record-dialog header{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;background:linear-gradient(120deg,#031d2b,#082e41 55%,#6f2f91);color:#fff}.record-dialog h2{margin:4px 0 0}.dialog-close{width:42px;height:42px;padding:0!important;border:1px solid rgba(255,255,255,.34)!important;border-radius:50%!important;background:rgba(255,255,255,.08)!important;font-size:24px!important}.record-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:22px 24px}.record-form-grid label{display:grid;gap:6px;color:var(--hub-muted);font-size:11px;font-weight:700}.record-form-grid .wide{grid-column:1/-1}.record-form-grid small{font-weight:500}.dialog-validation{min-height:18px;margin:0 24px;color:var(--hub-danger);font-size:11px}.record-dialog footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px 24px}
.denied{max-width:700px;margin:12vh auto;padding:40px;border:1px solid rgba(255,255,255,.64);border-radius:24px;background:rgba(255,255,255,.94);text-align:center}.denied h1{font-size:34px}.denied p{color:var(--hub-muted);line-height:1.6}.denied a{color:#087d79;font-weight:800}
@media(max-width:980px){.hub-hero,.source-grid,.publish-layout{grid-template-columns:1fr}.review-summary{grid-template-columns:repeat(3,1fr)}.hub-hero-stats{max-width:600px}.history-row{grid-template-columns:1fr 1fr}.record-form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.hub-shell{width:min(100% - 20px,1380px);padding-top:10px}.topbar,.hub-section-head{align-items:stretch;flex-direction:column}.hub-top-actions{justify-content:space-between}.hub-org-label{min-width:0}.hub-hero{padding:28px 22px!important}.hub-hero h2{font-size:36px}.hub-steps{grid-template-columns:1fr 1fr}.hub-panel{padding:18px}.catalog-fields,.review-summary{grid-template-columns:1fr 1fr}.record-form-grid{grid-template-columns:1fr}.record-form-grid .wide{grid-column:auto}.history-row{grid-template-columns:1fr}.history-status{justify-self:start}}
