:root {
    --bg: #061226;
    --bg2: #071b49;
    --panel: rgba(255,255,255,.085);
    --panel2: rgba(255,255,255,.12);
    --line: rgba(138,185,255,.22);
    --line2: rgba(124,255,215,.22);
    --text: #edf5ff;
    --muted: #aebdd5;
    --blue: #2d7dff;
    --blue2: #70d7ff;
    --green: #74ffba;
    --red: #ff6f91;
    --yellow: #ffe08a;
    --shadow: 0 24px 80px rgba(0,0,0,.34);
    --radius: 28px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 12% 8%, #102f75 0, transparent 36%), radial-gradient(circle at 82% 15%, #0d6d9c 0, transparent 27%), linear-gradient(135deg, var(--bg), #020611 70%);
    color: var(--text);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.nw-background { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.nw-background span { position: absolute; display: block; border-radius: 999px; filter: blur(40px); opacity: .22; animation: floatGlow 12s ease-in-out infinite alternate; }
.nw-background span:nth-child(1) { width: 380px; height: 380px; background: #2d7dff; top: 8%; left: 14%; }
.nw-background span:nth-child(2) { width: 280px; height: 280px; background: #70d7ff; bottom: 8%; right: 10%; animation-delay: 2s; }
.nw-background span:nth-child(3) { width: 220px; height: 220px; background: #74ffba; top: 44%; right: 24%; animation-delay: 4s; }
@keyframes floatGlow { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(32px,-24px,0) scale(1.12); } }
.auth-shell { min-height: 100vh; position: relative; z-index: 1; display: grid; place-items: center; padding: 36px; }
.auth-panel { width: min(1120px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: stretch; }
.auth-copy, .auth-card, .setup-panel, .panel, .stat-card, .product-card {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}
.auth-copy { border-radius: 36px; padding: 52px; min-height: 560px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-copy:after, .panel:after, .stat-card:after, .product-card:after {
    content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.14) 45%, transparent 72%); transform: translateX(-120%); animation: lightSweep 7s ease-in-out infinite;
}
@keyframes lightSweep { 0%, 35% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
.brand-mark { display: inline-flex; align-items: baseline; gap: 8px; letter-spacing: -.04em; margin-bottom: 32px; }
.brand-mark strong { font-size: 34px; font-weight: 760; color: white; }
.brand-mark span { font-size: 34px; font-weight: 460; color: var(--blue2); }
.auth-copy h1 { font-size: clamp(40px, 6vw, 76px); line-height: .94; letter-spacing: -.065em; margin: 0 0 22px; max-width: 780px; }
.auth-copy p { color: var(--muted); max-width: 520px; font-size: 17px; line-height: 1.7; }
.auth-lines { display: grid; gap: 14px; max-width: 480px; margin-top: 54px; }
.auth-lines span { height: 1px; background: linear-gradient(90deg, transparent, var(--blue2), transparent); opacity: .75; }
.auth-card { border-radius: 36px; padding: 42px; align-self: center; }
.auth-card h2, .setup-panel h1, .panel h2 { margin: 0 0 18px; letter-spacing: -.035em; }
label { display: grid; gap: 8px; color: #dceaff; font-size: 14px; margin-bottom: 16px; }
input, select, textarea {
    width: 100%; border: 1px solid rgba(138,185,255,.28); background: rgba(4,12,28,.62); color: var(--text); border-radius: 16px; padding: 13px 14px; outline: none; transition: border .18s, box-shadow .18s, background .18s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(112,215,255,.82); box-shadow: 0 0 0 4px rgba(45,125,255,.16); background: rgba(5,17,42,.82); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(138,185,255,.28); color: white; background: rgba(255,255,255,.08); border-radius: 16px; padding: 12px 18px; cursor: pointer; transition: transform .16s ease, border .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); border-color: rgba(112,215,255,.72); background: rgba(45,125,255,.22); }
.btn.primary { width: 100%; background: linear-gradient(135deg, var(--blue), #0bb4ff); border-color: rgba(112,215,255,.6); font-weight: 700; box-shadow: 0 14px 40px rgba(45,125,255,.32); }
.btn.small { padding: 8px 12px; border-radius: 12px; font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.flash { border-radius: 18px; padding: 14px 16px; margin: 0 0 20px; border: 1px solid rgba(124,255,186,.28); background: rgba(116,255,186,.09); color: #dfffee; }
.flash.error { border-color: rgba(255,111,145,.42); background: rgba(255,111,145,.1); color: #ffe7ee; }
.flash.floating { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 10; width: min(520px, calc(100% - 32px)); }
.nw-sidebar { position: fixed; inset: 18px auto 18px 18px; width: 270px; z-index: 2; border: 1px solid var(--line); background: rgba(4,12,30,.7); backdrop-filter: blur(24px); border-radius: 30px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; }
.nw-brand { display: flex; align-items: baseline; gap: 7px; padding: 8px 6px 26px; letter-spacing: -.04em; }
.nw-brand strong { font-size: 25px; } .nw-brand span { color: var(--blue2); font-size: 25px; }
.nw-sidebar nav { display: grid; gap: 7px; }
.nw-sidebar nav a { color: #cbd8ef; padding: 13px 14px; border: 1px solid transparent; border-radius: 16px; transition: .18s ease; }
.nw-sidebar nav a:hover, .nw-sidebar nav a.active { color: white; background: rgba(45,125,255,.16); border-color: rgba(112,215,255,.24); }
.nw-user-mini { margin-top: auto; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.06); display: grid; gap: 5px; }
.nw-user-mini span { font-weight: 700; } .nw-user-mini small { color: var(--muted); overflow-wrap: anywhere; } .nw-user-mini a { color: var(--blue2); font-size: 13px; margin-top: 8px; }
.nw-main { position: relative; z-index: 1; margin-left: 306px; padding: 26px 28px 42px; min-height: 100vh; }
.nw-topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 4px 0 26px; }
.nw-topbar p { color: var(--blue2); margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.nw-topbar h1 { margin: 0; font-size: clamp(34px, 4vw, 58px); letter-spacing: -.055em; line-height: 1; }
.nw-top-actions { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; }
.stat-card { position: relative; overflow: hidden; min-height: 154px; border-radius: 26px; padding: 23px; }
.stat-card p { color: var(--muted); margin: 0 0 18px; }
.stat-card strong { display: block; font-size: 42px; letter-spacing: -.05em; }
.stat-card small { color: #bdd9ff; }
.panel { position: relative; overflow: hidden; border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 24px; }
.panel-head p { margin: 0; color: var(--muted); max-width: 560px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.form-card { position: sticky; top: 26px; }
table { width: 100%; border-collapse: collapse; }
th { color: #9fb2d1; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; text-align: left; padding: 0 14px 12px; }
td { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); color: #e8f1ff; vertical-align: top; }
td small { color: var(--muted); }
tr:hover td { background: rgba(255,255,255,.035); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; font-size: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #dceaff; }
.badge-active { background: rgba(116,255,186,.12); color: #c9ffe4; border-color: rgba(116,255,186,.32); }
.badge-pending, .badge-draft { background: rgba(255,224,138,.12); color: #fff0bd; border-color: rgba(255,224,138,.32); }
.badge-suspended, .badge-blocked, .badge-revoked, .badge-archived { background: rgba(255,111,145,.12); color: #ffdbe4; border-color: rgba(255,111,145,.32); }
.timeline { display: grid; gap: 10px; }
.timeline-item { padding: 14px 16px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.045); border-radius: 18px; display: flex; justify-content: space-between; gap: 20px; }
.timeline-item span { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card { position: relative; overflow: hidden; border-radius: 24px; padding: 22px; display: grid; gap: 12px; }
.product-card h3 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.product-card p { color: var(--muted); line-height: 1.55; margin: 0; }
.product-card small { color: #bdd9ff; overflow-wrap: anywhere; }
.inline { display: inline; }
.error-panel pre { overflow:auto; max-height: 460px; background: rgba(0,0,0,.3); padding: 16px; border-radius: 16px; color: #ffdbe4; }
.setup-panel { width: min(980px, 100%); border-radius: 36px; padding: 38px; }
.setup-panel h1 { font-size: clamp(34px, 5vw, 58px); }
.setup-panel p { color: var(--muted); line-height: 1.6; }
.setup-form { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
@media (max-width: 1180px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } .form-card { position: static; } }
@media (max-width: 850px) {
    .auth-panel { grid-template-columns: 1fr; }
    .auth-copy { min-height: 360px; padding: 32px; }
    .nw-sidebar { inset: auto 12px 12px; width: auto; height: auto; padding: 10px; border-radius: 24px; }
    .nw-sidebar .nw-brand, .nw-user-mini { display:none; }
    .nw-sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .nw-sidebar nav a { text-align:center; padding: 10px 8px; font-size: 12px; }
    .nw-main { margin-left: 0; padding: 20px 16px 112px; }
    .nw-topbar { align-items: flex-start; }
    .stats-grid { grid-template-columns: 1fr; }
    .product-grid, .form-grid { grid-template-columns: 1fr; }
    table { display:block; overflow-x:auto; white-space: nowrap; }
}


/* Netwiz ID v0.1.3 */
.stats-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.command-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:18px; margin-bottom:18px; }
.command-card { border:1px solid var(--line); background:linear-gradient(135deg, rgba(45,125,255,.22), rgba(255,255,255,.055)); border-radius:26px; padding:22px; box-shadow:var(--shadow); color:var(--text); transition:transform .18s ease, border .18s ease, background .18s ease; position:relative; overflow:hidden; }
.command-card:hover { transform:translateY(-2px); border-color:rgba(112,215,255,.55); background:linear-gradient(135deg, rgba(45,125,255,.32), rgba(255,255,255,.075)); }
.command-card span, .eyebrow { color:var(--blue2); text-transform:uppercase; letter-spacing:.13em; font-size:12px; }
.command-card strong { display:block; font-size:22px; letter-spacing:-.035em; margin:12px 0 6px; }
.command-card small { color:var(--muted); line-height:1.45; }
.split-dashboard { grid-template-columns:minmax(0, 1.35fr) minmax(320px, .65fr); }
.product-top { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.product-top h3 { margin:0; }
.mini-metrics { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.mini-metrics span { border:1px solid rgba(138,185,255,.2); background:rgba(255,255,255,.055); color:#dceaff; border-radius:999px; padding:7px 10px; font-size:12px; }
.compact-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-product { min-height:0; }
.compact-timeline .timeline-item { display:grid; gap:6px; }
.filter-panel { margin-bottom:18px; }
.filter-form { display:grid; grid-template-columns: minmax(240px, 1fr) 220px auto; gap:14px; align-items:end; }
.filter-form label { margin:0; }
.profile-hero { display:flex; justify-content:space-between; align-items:center; gap:24px; }
.profile-hero h2 { font-size:42px; line-height:1; margin:8px 0 4px; letter-spacing:-.055em; }
.profile-hero p { color:var(--muted); margin:0; }
.profile-badges { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.compact-primary { width:auto; margin-top:4px; }
.btn.danger { border-color:rgba(255,111,145,.35); background:rgba(255,111,145,.1); color:#ffe7ee; margin-top:10px; width:100%; }
.org-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; }
.org-card { border:1px solid rgba(138,185,255,.18); background:rgba(255,255,255,.055); border-radius:24px; padding:20px; display:grid; gap:12px; }
.org-card h3 { margin:0; font-size:24px; letter-spacing:-.04em; }
.org-card p { margin:0; color:var(--muted); }
.org-card small { color:#bdd9ff; }
.copy-panel input { margin-top:10px; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
.check-group { border:1px solid rgba(138,185,255,.22); border-radius:18px; padding:14px; margin:8px 0 16px; background:rgba(4,12,28,.32); }
.check-group > span { display:block; color:#dceaff; font-size:14px; margin-bottom:10px; }
.check-line { display:flex; grid-template-columns:none; align-items:center; gap:10px; margin:8px 0; color:#dceaff; }
.check-line input { width:auto; }
.security-note { background:linear-gradient(135deg, rgba(45,125,255,.18), rgba(116,255,186,.08)); }
.auth-card.standalone { width:min(520px, 100%); }
.invite-panel { grid-template-columns: .95fr 1.05fr; }
.badge-sent, .badge-opened, .badge-failed, .badge-not_sent { background:rgba(255,224,138,.12); color:#fff0bd; border-color:rgba(255,224,138,.32); }
.badge-accepted, .badge-success, .badge-sent { background:rgba(116,255,186,.12); color:#c9ffe4; border-color:rgba(116,255,186,.32); }
.badge-expired, .badge-cancelled { background:rgba(255,111,145,.12); color:#ffdbe4; border-color:rgba(255,111,145,.32); }
.flash.warning { border-color:rgba(255,224,138,.42); background:rgba(255,224,138,.12); color:#fff4cf; }
@media (max-width: 1380px) { .stats-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .command-grid, .filter-form, .org-grid, .compact-products, .split-dashboard { grid-template-columns:1fr; } .profile-hero { align-items:flex-start; flex-direction:column; } .profile-badges { justify-content:flex-start; } }
@media (max-width: 850px) { .stats-grid-6 { grid-template-columns:1fr; } .command-card { padding:18px; border-radius:22px; } .nw-sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } .nw-sidebar nav a { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .profile-hero h2 { font-size:32px; } }

/* Netwiz ID v0.2.0 connectors */
.nw-sidebar nav { overflow-y: auto; padding-right: 2px; }
.nw-sidebar nav::-webkit-scrollbar { width: 4px; }
.nw-sidebar nav::-webkit-scrollbar-thumb { background: rgba(112,215,255,.28); border-radius: 999px; }
.connector-hero { display:grid; grid-template-columns:minmax(0, 1fr) minmax(360px, .6fr); gap:22px; align-items:center; background:linear-gradient(135deg, rgba(45,125,255,.22), rgba(112,215,255,.08), rgba(255,255,255,.045)); }
.connector-hero h2 { font-size:42px; line-height:1; letter-spacing:-.055em; margin:8px 0 12px; }
.connector-hero p { color:var(--muted); line-height:1.65; margin:0; max-width:760px; }
.connector-endpoints { display:grid; gap:10px; }
.connector-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:18px; align-items:start; }
.connector-card { display:grid; gap:14px; }
.codebox { border:1px solid rgba(138,185,255,.2); background:rgba(1,8,22,.46); border-radius:20px; padding:16px; display:grid; gap:9px; overflow:hidden; }
.codebox span { color:var(--blue2); text-transform:uppercase; letter-spacing:.12em; font-size:11px; }
code { display:block; font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color:#dff3ff; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:10px 12px; overflow-wrap:anywhere; white-space:normal; }
.connector-form { display:grid; gap:8px; }
.connector-form label { margin-bottom:8px; }
.button-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.button-row .btn { width:auto; }
.btn.danger-inline { border-color:rgba(255,111,145,.35); background:rgba(255,111,145,.11); color:#ffe7ee; }
.connector-meta { display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:12px; }
.connector-meta span { border:1px solid rgba(138,185,255,.16); background:rgba(255,255,255,.045); border-radius:999px; padding:7px 10px; }
.doc-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; }
.secret-panel { border-color:rgba(116,255,186,.35); background:linear-gradient(135deg, rgba(116,255,186,.13), rgba(45,125,255,.13)); }
.badge-ok, .badge-allowed { background:rgba(116,255,186,.12); color:#c9ffe4; border-color:rgba(116,255,186,.32); }
.badge-denied, .badge-invalid { background:rgba(255,111,145,.12); color:#ffdbe4; border-color:rgba(255,111,145,.32); }
@media (max-width: 1180px) { .connector-grid, .connector-hero, .doc-grid { grid-template-columns:1fr; } }
@media (max-width: 850px) {
    .nw-sidebar nav { display:flex; gap:6px; overflow-x:auto; overflow-y:hidden; padding-bottom:4px; }
    .nw-sidebar nav a { min-width:104px; }
    .connector-hero h2 { font-size:32px; }
    .button-row { display:grid; grid-template-columns:1fr; }
    .button-row .btn { width:100%; }
}

/* Netwiz ID v0.2.2 product readiness */
.product-muted { opacity:.74; background:rgba(255,255,255,.035) !important; }
.product-muted .product-top h3,
.product-muted .product-top h2 { color:#dbe7ff; }
.badge-draft { background:rgba(255,224,138,.12); color:#fff0bd; border-color:rgba(255,224,138,.32); }
.inline-product-status { margin-top:14px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.inline-product-status select { min-width:170px; }
.btn.compact { width:auto; padding:10px 14px; font-size:13px; }
.warning-note { border:1px solid rgba(255,224,138,.28); background:rgba(255,224,138,.08); color:#fff0bd; border-radius:16px; padding:12px 14px; margin:0; }
.btn[disabled] { opacity:.48; cursor:not-allowed; }
@media (max-width:850px){ .inline-product-status { display:grid; grid-template-columns:1fr; } .inline-product-status .btn, .inline-product-status select { width:100%; } }

.product-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.head-action-form{margin:0;display:flex;align-items:center;justify-content:flex-end}
.product-muted{opacity:.72}
.badge-draft{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.24);color:#dbe7ff}
.badge-inactive,.badge-archived{background:rgba(20,28,46,.72);border-color:rgba(255,255,255,.14);color:#aebbd2}
@media (max-width:900px){.product-head{display:block}.head-action-form{margin-top:14px;justify-content:flex-start}}

/* Netwiz ID v0.3.0 multi-client foundation */
.text-link { display:inline-flex; margin-top:14px; color:var(--blue2); font-weight:650; }
.text-link:hover { color:white; }
.fingerprint-lock { width:86px; height:86px; border-radius:28px; margin:0 auto 24px; border:1px solid rgba(112,215,255,.38); background: radial-gradient(circle at 50% 50%, rgba(112,215,255,.18), rgba(45,125,255,.08) 42%, rgba(255,255,255,.045)); display:grid; place-items:center; position:relative; overflow:hidden; box-shadow:0 18px 60px rgba(45,125,255,.24); }
.fingerprint-lock:before { content:""; width:48px; height:58px; border-radius:44% 44% 40% 40%; border:2px solid rgba(220,244,255,.86); border-left-color:rgba(112,215,255,.55); border-right-color:rgba(112,215,255,.55); box-shadow:inset 0 0 0 7px rgba(112,215,255,.08), inset 0 0 0 15px rgba(112,215,255,.045); }
.fingerprint-lock:after { content:""; position:absolute; left:13px; right:13px; height:2px; background:linear-gradient(90deg, transparent, #70d7ff, transparent); animation:fingerprintScan 2.7s ease-in-out infinite; filter:drop-shadow(0 0 10px #70d7ff); }
.fingerprint-lock span { position:absolute; width:34px; height:42px; border-radius:45%; border:1px solid rgba(255,255,255,.36); }
@keyframes fingerprintScan { 0%,100%{ top:18px; opacity:.35;} 50%{ top:66px; opacity:1;} }
.hero-glow { background:linear-gradient(135deg, rgba(45,125,255,.24), rgba(112,215,255,.08), rgba(255,255,255,.055)); }
.hero-glow:before { content:""; position:absolute; inset:auto -10% -40% 10%; height:180px; background:radial-gradient(circle, rgba(112,215,255,.22), transparent 64%); pointer-events:none; }
.product-card .btn.small { margin-top:8px; width:max-content; }
.auth-card .text-link { justify-content:center; width:100%; }
.nw-topbar:after { content:""; width:min(260px,25vw); height:1px; background:linear-gradient(90deg, transparent, rgba(112,215,255,.7), transparent); opacity:.75; }
.panel .product-grid p.muted { padding:14px 0; }
@media (max-width:850px){ .fingerprint-lock{width:74px;height:74px;border-radius:24px}.nw-topbar:after{display:none}.product-card .btn.small{width:100%} }
.inline-details{margin-top:14px;border-top:1px solid rgba(255,255,255,.12);padding-top:12px}.inline-details summary{cursor:pointer;font-weight:700;color:#dfeaff}.compact-stack{display:grid;gap:10px;margin-top:12px}.compact-stack label{display:grid;gap:6px}.compact-stack input,.compact-stack select{min-height:38px}.form-card small{display:block;margin-top:6px;color:rgba(226,236,255,.7);font-size:.82rem}

/* v0.4.1 - Product launcher context UX */
.product-launcher-hero { position:relative; overflow:hidden; }
.product-launcher-hero:after { content:""; position:absolute; width:260px; height:260px; border-radius:50%; right:-90px; top:-120px; background:radial-gradient(circle, rgba(112,215,255,.24), transparent 66%); filter:blur(4px); pointer-events:none; }
.context-help { margin-top:18px; border-color:rgba(112,215,255,.24); background:linear-gradient(135deg, rgba(255,255,255,.075), rgba(45,125,255,.055)); }
.context-help strong { display:block; margin-bottom:6px; color:#ecfbff; }
.context-help p { margin:0; color:rgba(229,241,255,.76); }
.context-product-grid { margin-top:18px; }
.context-card { min-height:260px; position:relative; overflow:hidden; }
.context-card:before { content:""; position:absolute; inset:0; background:linear-gradient(115deg, transparent 20%, rgba(112,215,255,.12) 42%, transparent 62%); transform:translateX(-120%); animation:nwContextSweep 7s ease-in-out infinite; pointer-events:none; }
.context-card .context-type { display:inline-flex; align-items:center; padding:7px 10px; border-radius:999px; background:rgba(112,215,255,.12); border:1px solid rgba(112,215,255,.24); color:#dff7ff; font-size:12px; font-weight:800; letter-spacing:.02em; }
.context-card h3 { margin-top:16px; }
.context-org { display:flex; flex-direction:column; gap:4px; margin:6px 0 12px; }
.context-org small { color:rgba(229,241,255,.55); }
@keyframes nwContextSweep { 0%, 65% { transform:translateX(-120%); opacity:0; } 75% { opacity:1; } 100% { transform:translateX(120%); opacity:0; } }

/* Netwiz ID v0.4.6 - clarity layer */
.id-guide-panel { margin-top:18px; }
.guide-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; }
.guide-grid div { border:1px solid rgba(138,185,255,.16); background:rgba(255,255,255,.045); border-radius:18px; padding:16px; }
.guide-grid strong { display:block; color:#f2fbff; margin-bottom:8px; font-size:14px; }
.guide-grid p { margin:0; color:rgba(226,236,255,.72); line-height:1.55; font-size:13px; }
@media (max-width:1200px){ .guide-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:760px){ .guide-grid { grid-template-columns:1fr; } }

/* Netwiz ID v0.4.7 — premium UX, clearer language and access management */
body { letter-spacing: -0.012em; }
.nw-topbar h1, .auth-copy h1 { font-weight: 720; letter-spacing: -0.055em; }
.panel h2, .auth-card h2 { font-weight: 690; letter-spacing: -0.035em; }
.nw-sidebar nav a { font-weight: 560; }
.nw-brand-logo { align-items:center; gap:8px; }
.id-symbol { width:34px; height:34px; border-radius:12px; display:grid; place-items:center; font-size:18px !important; font-weight:760; color:#051226 !important; background:linear-gradient(135deg,#76ecff,#2d7dff); box-shadow:0 10px 30px rgba(45,125,255,.28); }
.nw-footer { margin-top:34px; padding:18px 6px 0; display:flex; align-items:center; gap:12px; color:rgba(218,230,250,.62); font-size:12px; border-top:1px solid rgba(138,185,255,.12); }
.nw-footer img { width:86px; height:auto; object-fit:contain; opacity:.7; filter:drop-shadow(0 8px 18px rgba(45,125,255,.2)); }
.role-under-name { display:block; margin:-8px 0 12px; color:rgba(218,230,250,.7); font-size:14px; font-weight:550; }
.software-card-description { margin:10px 0 12px !important; min-height:38px; }
.guidance-card p { margin:0 0 12px; }
.access-search-panel { margin-bottom:18px; }
.access-search-panel label { margin-bottom:0; }
.access-identity-list { display:grid; gap:14px; }
.access-person-card { border:1px solid rgba(138,185,255,.18); border-radius:22px; background:rgba(255,255,255,.045); padding:16px; transition:border .16s ease, transform .16s ease, background .16s ease; }
.access-person-card:hover { transform:translateY(-1px); border-color:rgba(112,215,255,.36); background:rgba(255,255,255,.07); }
.access-person-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.access-person-head strong { display:block; font-size:16px; }
.access-person-head small { color:var(--muted); }
.access-chip-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:10px; }
.access-chip { border:1px solid rgba(138,185,255,.14); background:rgba(4,12,28,.38); border-radius:18px; padding:12px; display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.access-chip strong { display:block; margin-bottom:3px; }
.access-chip small { color:rgba(218,230,250,.64); }
.access-chip-actions { display:grid; gap:8px; justify-items:end; }
.inline-form { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.btn.mini { padding:7px 10px; border-radius:10px; font-size:12px; }
.danger-inline { border-color:rgba(255,111,145,.4) !important; color:#ffe6ee !important; }
.product-card h3 { font-weight:690; }
.context-card .context-type { font-weight:650; }
.profile-badges .badge { font-weight:610; }
@media (max-width:850px){ .nw-footer { display:grid; } .access-chip { display:grid; } .access-chip-actions { justify-items:start; } }

/* v0.4.7.2 official Netwiz ID logo placement */
.auth-logo{display:block;width:330px;max-width:76%;height:auto;margin:0 0 28px;filter:drop-shadow(0 22px 46px rgba(0,128,255,.22));}
.auth-copy .brand-mark{display:none;}
.nw-brand-logo .id-symbol{display:none;}
.nw-brand-logo::before{content:'';display:block;width:140px;height:104px;background:url('/assets/img/netwiz-id-logo.png') left center/contain no-repeat;margin:0 0 4px;}
.nw-brand-logo strong,.nw-brand-logo span:not(.id-symbol){display:none;}
.nw-footer img{width:82px;max-height:30px;object-fit:contain;}


/* Netwiz ID v0.4.8 email settings and login copy */
.auth-copy h1 { font-size: clamp(48px, 7vw, 92px); letter-spacing: -0.06em; }
.auth-copy p { font-size: 18px; max-width: 560px; }
.settings-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:22px; align-items:start; }
.settings-grid > div { border:1px solid rgba(138,185,255,.16); background:rgba(4,12,28,.28); border-radius:22px; padding:18px; }
.settings-grid h2 { margin:0 0 14px; font-size:20px; }
.two-cols { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
@media (max-width: 980px) { .settings-grid, .two-cols { grid-template-columns:1fr; } }

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.auth-main-copy{font-size:clamp(22px,2.4vw,34px)!important;line-height:1.22!important;font-weight:680;color:#edf5ff!important;letter-spacing:-.035em;max-width:720px!important;}


/* Netwiz ID v0.4.8.1 refined login identity */
.auth-copy{
    align-items:center;
    text-align:center;
    padding:56px 42px;
}
.auth-logo{
    width:min(360px,78%);
    max-height:260px;
    object-fit:contain;
    object-position:center;
    margin:0 auto 24px!important;
    filter:drop-shadow(0 18px 46px rgba(0,146,255,.22));
}
.auth-main-copy{
    max-width:520px!important;
    margin:0 auto!important;
    font-size:clamp(17px,1.55vw,23px)!important;
    line-height:1.45!important;
    font-weight:520!important;
    letter-spacing:-.018em!important;
    color:#dceaff!important;
}
.auth-lines{
    width:min(420px,72%);
    margin:46px auto 0;
}
.auth-copy:after{
    opacity:.44;
}
@media (max-width: 980px){
    .auth-copy{min-height:360px;padding:34px 24px;}
    .auth-logo{width:min(300px,80%);}
}

.security-mini-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 16px;
}
.security-mini-list p {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(21, 38, 66, .08);
    border-radius: 14px;
    background: rgba(255,255,255,.72);
}
.stack-actions {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
}
.stack-actions .btn {
    justify-content: center;
}

/* Netwiz ID v0.5.1 security controls */
.security-admin-panel { display:grid; gap:20px; }
.security-admin-head { align-items:flex-start; }
.security-status-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; }
.security-status-grid div { border:1px solid rgba(138,185,255,.18); background:rgba(4,12,28,.32); border-radius:20px; padding:16px; min-height:116px; }
.security-status-grid span { display:block; color:var(--blue2); text-transform:uppercase; letter-spacing:.12em; font-size:11px; margin-bottom:8px; }
.security-status-grid strong { display:block; color:var(--text); font-size:21px; letter-spacing:-.03em; margin-bottom:6px; overflow-wrap:anywhere; }
.security-status-grid small { display:block; color:var(--muted); line-height:1.35; }
.security-action-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; }
.security-action-grid-two { grid-template-columns:1fr 1fr; }
.security-action-card { border:1px solid rgba(138,185,255,.18); background:rgba(255,255,255,.055); border-radius:20px; padding:16px; display:grid; gap:12px; align-content:start; min-height:178px; }
.security-action-card h3 { margin:0; color:var(--text); font-size:18px; letter-spacing:-.025em; }
.security-action-card p { margin:0; color:var(--muted); line-height:1.45; font-size:13px; }
.security-action-card label { margin:0; }
.security-action-card .btn { width:100%; justify-content:center; }
.security-action-card .button-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:1280px){ .security-status-grid, .security-action-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:760px){ .security-status-grid, .security-action-grid, .security-action-grid-two { grid-template-columns:1fr; } .security-action-card .button-row { grid-template-columns:1fr; } }

/* Netwiz ID v0.5.4 email recovery visibility */
.security-copy-link,
.security-mail-last {
    border: 1px solid rgba(138,185,255,.20);
    background: rgba(255,255,255,.065);
    border-radius: 18px;
    padding: 14px 16px;
}
.security-copy-link {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 14px;
    align-items: center;
}
.security-copy-link strong,
.security-mail-last strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}
.security-copy-link small {
    display: block;
    color: var(--muted);
}
.security-copy-link input {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
}
.security-mail-last {
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}
@media (max-width:900px){
    .security-copy-link { grid-template-columns: 1fr; }
}
