
  :root {
    --ink:    #151C24;
    --white:  #FEFEFE;
    --mag:    #D840C9;
    --slate:  #A9B2C0;   /* readable secondary text on dark */
    --slate-line:#4C5564;
    --light:  #F5F4F6;
    --mag-dim:#E07AD6;
    --grad-a: #FF5757;
    --grad-b: #8C52FF;
    --border: rgba(216,64,201,0.15);
    --card-bg:#1A2130;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--ink);
    color: var(--white);
    font-family: 'Instrument Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: 0.6;
  }

  .shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

  .sidebar {
    width: 260px; flex-shrink: 0;
    background: rgba(10,13,20,0.9);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    backdrop-filter: blur(12px);
  }

  .sidebar-logo { padding: 28px 24px 20px; border-bottom: 1px solid var(--border); }
  .logo-badge { display: inline-flex; align-items: center; gap: 10px; }
  .logo-glyph {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(135deg, var(--mag), var(--grad-b));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 16px; font-weight: 900; color: white; flex-shrink: 0;
  }
  .logo-text { line-height: 1.1; }
  .logo-text .l1 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; color: var(--white); letter-spacing: 0.01em; }
  .logo-text .l2 { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--mag); letter-spacing: 0.18em; text-transform: uppercase; }

  .sidebar-school { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .school-label { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
  .school-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.7); }

  .nav { padding: 16px 0; flex: 1; }
  .nav-section-label { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); padding: 12px 24px 6px; }

  .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 24px; cursor: pointer;
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.72);
    border-left: 2px solid transparent;
    transition: all 0.18s ease; text-decoration: none;
  }
  .nav-item:hover { color: rgba(255,255,255,0.8); background: rgba(216,64,201,0.06); }
  .nav-item.active { color: var(--white); border-left-color: var(--mag); background: rgba(216,64,201,0.1); }
  .nav-icon { width: 16px; text-align: center; font-size: 14px; flex-shrink: 0; }
  .nav-badge { margin-left: auto; background: var(--mag); color: white; font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 20px; }

  .sidebar-user { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
  .user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--mag), var(--grad-b));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0;
  }
  .user-info .u-name { font-size: 12px; font-weight: 600; color: var(--white); }
  .user-info .u-role { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--slate); letter-spacing: 0.1em; }
  .user-dot { width: 7px; height: 7px; border-radius: 50%; background: #3DDB85; margin-left: auto; flex-shrink: 0; box-shadow: 0 0 6px #3DDB85; }

  .main { flex: 1; overflow-y: auto; }

  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 36px; border-bottom: 1px solid var(--border);
    background: rgba(21,28,36,0.7); backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 10;
  }
  .topbar-left h1 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; }
  .topbar-left p { font-size: 12px; color: var(--slate); margin-top: 2px; }
  .topbar-right { display: flex; align-items: center; gap: 12px; }
  .top-btn { padding: 8px 16px; border-radius: 8px; font-family: 'Instrument Sans', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: all 0.16s; }
  .top-btn.ghost { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border: 1px solid var(--border); }
  .top-btn.ghost:hover { background: rgba(255,255,255,0.1); }
  .top-btn.primary { background: var(--mag); color: white; }
  .top-btn.primary:hover { background: var(--mag-dim); }

  .page { padding: 32px 36px; display: none; }
  .page.active { display: block; animation: fadeUp 0.3s ease; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

  .grad-rule { height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--mag), var(--grad-b), transparent); margin-bottom: 28px; }

  .sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
  .sec-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; }
  .sec-link { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--mag); text-transform: uppercase; cursor: pointer; text-decoration: none; }
  .sec-link:hover { text-decoration: underline; }

  .stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
  .stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: relative; overflow: hidden; transition: border-color 0.2s; }
  .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--mag), transparent); }
  .stat-card:hover { border-color: rgba(216,64,201,0.4); }
  .stat-label { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
  .stat-val { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--white); line-height: 1; }
  .stat-sub { font-size: 11px; color: var(--slate); margin-top: 4px; }
  .stat-badge { display: inline-block; margin-top: 8px; font-family: 'DM Mono', monospace; font-size: 11px; padding: 3px 8px; border-radius: 20px; background: rgba(61,219,133,0.15); color: #3DDB85; }

  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
  .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }

  .card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .card-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .card-head .ch-title { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; }
  .card-body { padding: 16px 20px; }

  .session-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: all 0.16s; }
  .session-item:last-child { border-bottom: none; }
  .session-item:hover { padding-left: 6px; }
  .sess-num { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; }
  .sess-num.done { background: rgba(61,219,133,0.15); color: #3DDB85; }
  .sess-num.active { background: rgba(216,64,201,0.2); color: var(--mag); }
  .sess-num.locked { background: rgba(255,255,255,0.05); color: var(--slate); }
  .sess-info { flex: 1; }
  .sess-title { font-size: 13px; font-weight: 600; color: var(--white); }
  .sess-meta { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--slate); letter-spacing: 0.1em; margin-top: 2px; }
  .sess-pill { font-family: 'DM Mono', monospace; font-size: 11px; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.08em; text-transform: uppercase; }
  .sess-pill.done { background: rgba(61,219,133,0.12); color: #3DDB85; }
  .sess-pill.live { background: rgba(216,64,201,0.2); color: var(--mag); border: 1px solid rgba(216,64,201,0.3); }
  .sess-pill.soon { background: rgba(255,255,255,0.06); color: var(--slate); }

  .prog-track { background: rgba(255,255,255,0.07); border-radius: 20px; height: 6px; overflow: hidden; margin: 8px 0 4px; }
  .prog-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--mag), var(--grad-b)); transition: width 0.8s ease; }
  .prog-label { display: flex; justify-content: space-between; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--slate); }

  .track-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: relative; overflow: hidden; transition: border-color 0.2s, transform 0.2s; cursor: pointer; }
  .track-card:hover { border-color: rgba(216,64,201,0.4); transform: translateY(-2px); }
  .track-icon { font-size: 24px; margin-bottom: 10px; }
  .track-name { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
  .track-desc { font-size: 11px; color: var(--slate); line-height: 1.5; }
  .track-partner { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-family: 'DM Mono', monospace; font-size: 11px; color: var(--mag); letter-spacing: 0.12em; text-transform: uppercase; }

  .ann-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .ann-item:last-child { border-bottom: none; }
  .ann-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mag); margin-top: 5px; flex-shrink: 0; box-shadow: 0 0 8px rgba(216,64,201,0.5); }
  .ann-dot.grey { background: var(--slate); box-shadow: none; }
  .ann-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
  .ann-body { font-size: 12px; color: var(--slate); line-height: 1.5; }
  .ann-time { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 4px; }

  .resource-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); margin-bottom: 8px; cursor: pointer; transition: all 0.16s; }
  .resource-item:hover { background: rgba(216,64,201,0.06); border-color: var(--border); }
  .res-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .res-icon.pdf { background: rgba(255,87,87,0.15); }
  .res-icon.vid { background: rgba(216,64,201,0.15); }
  .res-icon.link { background: rgba(140,82,255,0.15); }
  .res-name { font-size: 13px; font-weight: 600; }
  .res-meta { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--slate); margin-top: 2px; }
  .res-dl { margin-left: auto; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--mag); cursor: pointer; }

  .capstone-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; position: relative; overflow: hidden; margin-bottom: 28px; }
  .capstone-card::after { content: ''; position: absolute; bottom: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(216,64,201,0.12), transparent 70%); }
  .cap-eyebrow { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.22em; color: var(--mag); text-transform: uppercase; margin-bottom: 8px; }
  .cap-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
  .cap-body { font-size: 13px; color: var(--slate); line-height: 1.6; max-width: 540px; margin-bottom: 20px; }
  .cap-options { display: flex; gap: 10px; flex-wrap: wrap; }
  .cap-opt { padding: 9px 18px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); transition: all 0.16s; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.04); }
  .cap-opt:hover { border-color: var(--mag); color: var(--white); background: rgba(216,64,201,0.08); }
  .cap-opt.selected { border-color: var(--mag); color: var(--white); background: rgba(216,64,201,0.15); }

  .schedule-grid { display: grid; gap: 12px; }
  .sched-item { display: flex; align-items: stretch; gap: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .sched-date { width: 70px; flex-shrink: 0; background: rgba(255,255,255,0.04); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 8px; }
  .sched-month { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--mag); letter-spacing: 0.15em; text-transform: uppercase; }
  .sched-day { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900; color: var(--white); line-height: 1.1; }
  .sched-info { flex: 1; padding: 14px 18px; }
  .sched-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
  .sched-meta { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--slate); }
  .sched-tag { margin-left: auto; padding: 14px 18px; display: flex; align-items: center; }
  .sched-pill { font-family: 'DM Mono', monospace; font-size: 11px; padding: 4px 10px; border-radius: 20px; }
  .sched-pill.virtual { background: rgba(140,82,255,0.2); color: #A87FFF; }
  .sched-pill.inperson { background: rgba(216,64,201,0.2); color: var(--mag); }
  .sched-pill.upcoming { background: rgba(61,219,133,0.12); color: #3DDB85; }

  .cohort-table { width: 100%; border-collapse: collapse; }
  .cohort-table th { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
  .cohort-table td { padding: 12px 14px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .cohort-table tr:last-child td { border-bottom: none; }
  .cohort-table tr:hover td { background: rgba(216,64,201,0.04); }
  .td-name { font-weight: 600; color: var(--white); }
  .td-track { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--mag); letter-spacing: 0.08em; }
  .td-prog { min-width: 100px; }
  .mini-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
  .mini-fill { height: 100%; background: linear-gradient(90deg, var(--mag), var(--grad-b)); border-radius: 2px; }

  .view-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 4px; width: fit-content; }
  .view-tab { padding: 8px 18px; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.16s; color: var(--slate); }
  .view-tab.active { background: var(--mag); color: white; }
  .view-tab:not(.active):hover { color: var(--white); }

  .cap-stepper { display: flex; align-items: center; margin-bottom: 28px; padding: 20px 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; }
  .cap-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
  .step-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 600; border: 2px solid var(--slate-line); color: var(--slate); transition: all 0.3s; }
  .cap-step.done .step-circle { background: rgba(61,219,133,0.15); border-color: #3DDB85; color: #3DDB85; }
  .cap-step.active .step-circle { background: rgba(216,64,201,0.2); border-color: var(--mag); color: var(--white); }
  .cap-step.unlocked .step-circle { background: linear-gradient(135deg, var(--mag), var(--grad-b)); border-color: transparent; color: white; font-size: 14px; }
  .step-label { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); text-align: center; }
  .cap-step.done .step-label, .cap-step.active .step-label { color: var(--white); }
  .cap-step.unlocked .step-label { color: var(--mag); }
  .step-line { flex: 1; height: 2px; background: var(--slate); margin: 0 10px; margin-bottom: 16px; opacity: 0.3; transition: all 0.3s; }
  .step-line.done { background: #3DDB85; opacity: 1; }
  .step-line.active { background: linear-gradient(90deg, var(--mag), var(--slate)); opacity: 1; }

  .checklist-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .checklist-item:last-of-type { border-bottom: none; }
  .check-box { width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
  .checklist-item.done .check-box { background: rgba(61,219,133,0.15); color: #3DDB85; }
  .checklist-item.active .check-box { background: rgba(216,64,201,0.2); color: var(--mag); }
  .check-box.open { border: 2px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.3); }
  .check-title { font-size: 13px; font-weight: 600; color: var(--white); }
  .checklist-item:not(.done):not(.active) .check-title { color: rgba(255,255,255,0.4); }
  .check-meta { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--slate); margin-top: 2px; }
  .checklist-item.done .check-meta { color: #3DDB85; }
  .checklist-item.active .check-meta { color: var(--mag); }

  .submit-btn { width: 100%; padding: 11px; border-radius: 8px; background: rgba(216,64,201,0.12); border: 1px solid rgba(216,64,201,0.3); color: var(--mag); font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.18s; }
  .submit-btn:hover { background: rgba(216,64,201,0.22); border-color: var(--mag); }

  .cert-section { margin-top: 4px; }
  .cert-lock-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: center; }
  .cert-lock-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }
  .cert-lock-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; margin-bottom: 10px; }
  .cert-lock-body { font-size: 13px; color: var(--slate); line-height: 1.65; max-width: 500px; margin: 0 auto 20px; }
  .cert-steps-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
  .cert-step-badge { font-family: 'DM Mono', monospace; font-size: 11px; padding: 6px 14px; border-radius: 20px; letter-spacing: 0.08em; }
  .cert-step-badge.pending { background: rgba(255,255,255,0.05); color: var(--slate); border: 1px solid rgba(255,255,255,0.08); }
  .cert-arrow-small { color: var(--slate); font-size: 14px; }

  .certificate { background: #FEFEFE; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.5); margin-bottom: 20px; position: relative; }
  .cert-top-rule { height: 6px; background: linear-gradient(90deg, var(--mag), var(--grad-b), #8C52FF); }
  .cert-bottom-rule { height: 6px; background: linear-gradient(90deg, #8C52FF, var(--grad-b), var(--mag)); }
  .cert-inner { padding: 40px 52px; text-align: center; }
  .cert-logos { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 28px; }
  .cert-logo-block { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .cert-logo-glyph { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--mag), var(--grad-b)); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 900; color: white; }
  .cert-logo-name { font-family: 'DM Mono', monospace; font-size: 11px; color: #4C5564; letter-spacing: 0.12em; text-transform: uppercase; }
  .cert-logo-x { font-size: 18px; color: #CCC; font-weight: 300; }
  .cert-presents { font-family: 'Instrument Sans', sans-serif; font-size: 13px; color: #888; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
  .cert-name { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 900; color: #151C24; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 4px; }
  .cert-program { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #151C24; margin-top: 12px; }
  .cert-track { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #D840C9; margin-top: 6px; margin-bottom: 16px; }
  .cert-desc { font-size: 12px; color: #777; line-height: 1.7; max-width: 520px; margin: 0 auto; }
  .cert-divider { height: 1px; background: linear-gradient(90deg, transparent, #DDD, transparent); margin: 24px 0; }
  .cert-meta-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
  .cert-meta-val { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; color: #151C24; }
  .cert-meta-label { font-family: 'DM Mono', monospace; font-size: 11px; color: #999; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
  .cert-seal { display: flex; align-items: center; justify-content: center; }
  .cert-seal-ring { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #D840C9; display: flex; align-items: center; justify-content: center; background: rgba(216,64,201,0.05); }
  .cert-seal-inner { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 900; color: #D840C9; text-align: center; line-height: 1.2; }
  .cert-sig-row { display: flex; justify-content: space-between; margin-bottom: 20px; }
  .cert-sig-line { width: 160px; height: 1px; background: #DDD; margin-bottom: 6px; }
  .cert-sig-block:last-child .cert-sig-line { margin-left: auto; }
  .cert-sig-name { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; color: #151C24; }
  .cert-sig-title { font-size: 11px; color: #999; margin-top: 2px; }
  .cert-credential { font-family: 'DM Mono', monospace; font-size: 11px; color: #AAA; padding-top: 14px; border-top: 1px solid #EEE; }

  .cert-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
  .cert-action-btn { padding: 10px 22px; border-radius: 8px; cursor: pointer; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); transition: all 0.16s; }
  .cert-action-btn:hover { border-color: rgba(216,64,201,0.4); color: var(--white); }
  .cert-action-btn.primary-cert { background: var(--mag); border-color: var(--mag); color: white; }
  .cert-action-btn.primary-cert:hover { background: var(--mag-dim); }

  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); z-index: 200; display: none; align-items: center; justify-content: center; }
  .modal-overlay.open { display: flex; animation: fadeUp 0.2s ease; }
  .modal-box { background: #1A2130; border: 1px solid var(--border); border-radius: 16px; padding: 32px; max-width: 440px; width: 90%; text-align: center; }
  .modal-icon { font-size: 36px; margin-bottom: 12px; }
  .modal-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
  .modal-body { font-size: 13px; color: var(--slate); line-height: 1.65; margin-bottom: 24px; }
  .modal-btns { display: flex; gap: 10px; justify-content: center; }

  .partner-tool-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: all 0.18s; position: relative; }
  .partner-tool-card:not(.ptc-future):hover { border-color: rgba(216,64,201,0.5); transform: translateY(-2px); }
  .ptc-future { cursor: default; opacity: 0.65; }
  .ptc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
  .ptc-name { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
  .ptc-desc { font-size: 11px; color: var(--slate); line-height: 1.55; }
  .ptc-url { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--mag); margin-top: 8px; letter-spacing: 0.08em; }
  .ptc-arrow { position: absolute; top: 16px; right: 16px; font-size: 14px; color: var(--mag); opacity: 0; transition: opacity 0.16s; }
  .partner-tool-card:not(.ptc-future):hover .ptc-arrow { opacity: 1; }

  .role-switcher { position: fixed; bottom: 24px; right: 24px; background: rgba(10,13,20,0.95); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; backdrop-filter: blur(16px); z-index: 100; display: flex; flex-direction: column; gap: 6px; }
  .role-sw-label { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }
  .role-btn { padding: 7px 14px; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 600; border: 1px solid var(--border); background: transparent; color: rgba(255,255,255,0.5); transition: all 0.15s; font-family: 'Instrument Sans', sans-serif; }
  .role-btn:hover { color: var(--white); }
  .role-btn.active { background: rgba(216,64,201,0.15); border-color: var(--mag); color: var(--white); }

  .login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;z-index:1;padding:24px}
  .login-card{background:var(--card-bg);border:1px solid var(--border);border-radius:16px;padding:36px;max-width:400px;width:100%}
  .login-card h1{font-family:'Playfair Display',serif;font-size:24px;margin:18px 0 6px}
  .login-card p{font-size:13px;color:var(--slate);line-height:1.6;margin-bottom:20px}
  .field{width:100%;padding:11px 14px;border-radius:8px;border:1px solid var(--border);background:rgba(255,255,255,0.05);color:var(--white);font-family:inherit;font-size:13px;margin-bottom:12px}
  .msg{font-size:12px;margin-top:12px;min-height:16px;color:#3DDB85}
  .msg.err{color:#FF5757}
  .hidden{display:none!important}
  .empty{font-size:12px;color:var(--slate);padding:8px 0}


  /* Accessibility */
  :focus-visible { outline: 3px solid #FFD166; outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

  .sess-detail-body p { margin: 0 0 12px; }
  .sess-detail-body ul { margin: 0 0 14px 20px; }
  .sess-detail-body li { margin-bottom: 6px; }
