/* =============================================================
   KiteClass Pro v2 — kit overrides
   Persona: P2 Center Owner (medium density desktop)
   Direction B (HIGHEST priority Wave UI Kits Round 2)
   Extends _v1-baseline visual language; static-HTML adaptation.
   ============================================================= */

@import url('../_shared/colors_and_type.css');

* { box-sizing: border-box; }

:root {
  /* Pro v2 palette — dark-mode-first, light-mode parity */
  --pro-bg: #0B0F1A;
  --pro-surface: #12172A;
  --pro-surface-2: #1A2039;
  --pro-border: rgba(255,255,255,.08);
  --pro-border-2: rgba(255,255,255,.12);
  --pro-text: #E8ECF7;
  --pro-muted: #8892B0;
  --pro-accent: #6366F1;
  --pro-accent-2: #22D3EE;
  --pro-success: #22C55E;
  --pro-warn: #F59E0B;
  --pro-danger: #EF4444;
}

/* Light-mode parity (toggled via .pro-light on body) */
body.pro-light {
  --pro-bg: #F6F7FB;
  --pro-surface: #FFFFFF;
  --pro-surface-2: #F1F3F9;
  --pro-border: rgba(15,23,42,.08);
  --pro-border-2: rgba(15,23,42,.16);
  --pro-text: #0B0F1A;
  --pro-muted: #5A6478;
}

/* Contrast notes for AA verification:
   Dark:  #E8ECF7 on #12172A = 14.2:1 (AAA), #8892B0 on #12172A = 5.6:1 (AA),
          #6366F1 on #FFFFFF = 4.8:1 (AA large-text borderline; reserved for accents)
   Light: #0B0F1A on #FFFFFF = 19.5:1 (AAA), #5A6478 on #FFFFFF = 5.4:1 (AA),
          #6366F1 on #FFFFFF = 4.8:1 (AA), #22C55E on #FFFFFF = 3.1:1 (large UI)
*/

body {
  margin: 0;
  background: var(--pro-bg);
  color: var(--pro-text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.5;
}

/* === LAYOUT === */
.pro-app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

@media (max-width: 768px) {
  .pro-app { grid-template-columns: 1fr; }
  .pro-side { display: none; }
}

/* === SIDEBAR === */
.pro-side {
  background: var(--pro-surface);
  border-right: 1px solid var(--pro-border);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.pro-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--pro-border); }
.pro-brand-mark { width: 32px; height: 32px; border-radius: 10px; background: conic-gradient(from 180deg, #6366F1, #22D3EE, #A855F7, #6366F1); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 20px -6px rgba(99,102,241,.6); }
.pro-brand-name { font-weight: 700; font-size: 15px; line-height: 1.1; }
.pro-brand-sub { font-size: 10.5px; color: var(--pro-muted); font-family: var(--font-mono); letter-spacing: .02em; }
.pro-cmd { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--pro-surface-2); border: 1px solid var(--pro-border); border-radius: 8px; margin-bottom: 6px; font-size: 13px; color: var(--pro-muted); cursor: pointer; }
.pro-cmd:hover { border-color: var(--pro-accent); color: var(--pro-text); }
.pro-cmd kbd { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; background: rgba(255,255,255,.08); padding: 2px 5px; border-radius: 4px; border: 1px solid var(--pro-border); }
body.pro-light .pro-cmd kbd { background: rgba(15,23,42,.06); }
.pro-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.pro-nav-section { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--pro-muted); padding: 10px 10px 4px; }
.pro-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--pro-muted); text-decoration: none; font-size: 13.5px; cursor: pointer; transition: all .15s; }
.pro-nav a:hover { background: var(--pro-surface-2); color: var(--pro-text); }
.pro-nav a.is-active { background: linear-gradient(90deg, rgba(99,102,241,.18), rgba(34,211,238,.08)); color: var(--pro-text); font-weight: 500; box-shadow: inset 2px 0 0 var(--pro-accent); }
.pro-nav a .pro-badge { margin-left: auto; background: var(--pro-accent); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 9999px; font-weight: 600; }
.pro-user { display: flex; align-items: center; gap: 10px; padding: 8px; margin-top: 8px; border-top: 1px solid var(--pro-border); padding-top: 12px; }
.pro-avatar { width: 30px; height: 30px; border-radius: 9999px; background: linear-gradient(135deg, #6366F1, #A855F7); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.pro-user-name { font-size: 13px; font-weight: 500; }
.pro-user-role { font-size: 10.5px; color: var(--pro-muted); }

/* === MAIN === */
.pro-main { display: flex; flex-direction: column; min-width: 0; }
.pro-top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--pro-border); position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--pro-bg) 85%, transparent); backdrop-filter: blur(12px); }
.pro-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pro-muted); }
.pro-crumb b { color: var(--pro-text); font-weight: 600; }
.pro-top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pro-iconbtn { width: 32px; height: 32px; border-radius: 8px; background: var(--pro-surface); border: 1px solid var(--pro-border); color: var(--pro-text); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: all .2s ease-out; }
.pro-iconbtn:hover { border-color: var(--pro-border-2); background: var(--pro-surface-2); }
.pro-iconbtn .pulse { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: var(--pro-danger); border-radius: 9999px; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.pro-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; cursor: pointer; font-family: inherit; color: var(--pro-text); transition: all .15s; text-decoration: none; }
.pro-btn-primary { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; box-shadow: 0 6px 20px -8px rgba(99,102,241,.8); }
.pro-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(99,102,241,.9); }
.pro-btn-ghost { background: var(--pro-surface); border-color: var(--pro-border); }
.pro-btn-ghost:hover { border-color: var(--pro-border-2); background: var(--pro-surface-2); }
.pro-btn kbd { font-family: var(--font-mono); font-size: 10px; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
body.pro-light .pro-btn kbd { background: rgba(15,23,42,.06); }

/* === CONTENT === */
.pro-content { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; }
.pro-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pro-hello h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.pro-hello .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.5s ease-in-out infinite; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-8deg); }
}
.pro-hello p { margin: 4px 0 0; color: var(--pro-muted); font-size: 14px; }
.pro-hello .meta { display: flex; gap: 16px; font-size: 12px; color: var(--pro-muted); }
.pro-hello .meta b { color: var(--pro-text); font-weight: 600; }

@media (max-width: 480px) {
  .pro-content { padding: 16px 12px 32px; }
  .pro-hello { flex-direction: column; align-items: flex-start; }
  .pro-top { padding: 10px 14px; }
}

/* === GRID === */
.pro-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.pro-widget { background: var(--pro-surface); border: 1px solid var(--pro-border); border-radius: 14px; padding: 16px; position: relative; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.pro-widget:hover { border-color: var(--pro-border-2); transform: translateY(-2px); box-shadow: 0 14px 40px -18px rgba(0,0,0,.4); }
.pro-widget.is-dragging { opacity: .5; transform: scale(.98); }
.pro-widget.is-drop-target { border-color: var(--pro-accent); box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.pro-widget.edit-mode { border-style: dashed; cursor: grab; }
.pro-widget-handle { position: absolute; top: 10px; right: 10px; opacity: 0; transition: opacity .15s; color: var(--pro-muted); cursor: grab; font-size: 14px; }
.pro-widget:hover .pro-widget-handle { opacity: 1; }
.pro-widget.edit-mode .pro-widget-handle { opacity: 1; color: var(--pro-accent); }
.pro-widget-resize { position: absolute; bottom: 4px; right: 4px; width: 14px; height: 14px; background: var(--pro-accent); opacity: 0; border-radius: 3px; cursor: nwse-resize; transition: opacity .15s; }
.pro-widget.edit-mode .pro-widget-resize { opacity: .6; }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .span-3 { grid-column: span 6; }
  .span-4 { grid-column: span 6; }
  .span-8 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .span-3, .span-4, .span-6, .span-8 { grid-column: span 12; }
}

/* === STAT WIDGETS === */
.pro-stat-head { display: flex; justify-content: space-between; align-items: center; }
.pro-stat-label { font-size: 12px; color: var(--pro-muted); font-weight: 500; }
.pro-stat-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.pro-stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pro-stat-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 4px; gap: 10px; }
.pro-stat-trend { font-size: 12px; display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.pro-stat-trend.up { color: var(--pro-success); }
.pro-stat-trend.down { color: var(--pro-danger); }
.pro-spark { height: 32px; width: 80px; flex-shrink: 0; }

/* === CHART === */
.pro-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.pro-chart-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.pro-chart-tabs { display: flex; gap: 2px; background: var(--pro-surface-2); border-radius: 8px; padding: 2px; }
.pro-chart-tabs button { border: 0; background: transparent; padding: 4px 10px; font-size: 11.5px; border-radius: 6px; cursor: pointer; color: var(--pro-muted); font-family: inherit; font-weight: 500; }
.pro-chart-tabs button.is-active { background: var(--pro-surface); color: var(--pro-text); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
body.pro-light .pro-chart-tabs button.is-active { background: #fff; }
.pro-chart { height: 220px; width: 100%; }
.pro-chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--pro-muted); flex-wrap: wrap; }
.pro-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pro-chart-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* === SCHEDULE === */
.pro-sched-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; transition: background .15s; align-items: center; }
.pro-sched-item:hover { background: var(--pro-surface-2); }
.pro-sched-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--pro-muted); min-width: 54px; }
.pro-sched-time b { color: var(--pro-text); font-weight: 600; display: block; }
.pro-sched-bar { width: 3px; height: 38px; border-radius: 9999px; }
.pro-sched-body { flex: 1; min-width: 0; }
.pro-sched-title { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-sched-meta { font-size: 11.5px; color: var(--pro-muted); margin-top: 2px; }
.pro-sched-live { font-size: 10px; padding: 1px 6px; border-radius: 9999px; background: rgba(34,197,94,.15); color: var(--pro-success); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.pro-sched-live::before { content: ''; width: 5px; height: 5px; background: var(--pro-success); border-radius: 9999px; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 50% { opacity: .3; } }

/* === ACTIVITY === */
.pro-widget h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.pro-widget h3 a { font-size: 11.5px; color: var(--pro-muted); font-weight: 500; cursor: pointer; }
.pro-widget h3 a:hover { color: var(--pro-text); }
.pro-activity { display: flex; flex-direction: column; gap: 2px; }
.pro-activity-item { display: flex; gap: 10px; padding: 8px 4px; font-size: 13px; align-items: flex-start; }
.pro-activity-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pro-activity-body { flex: 1; min-width: 0; }
.pro-activity-body b { font-weight: 600; }
.pro-activity-time { font-size: 11px; color: var(--pro-muted); font-family: var(--font-mono); }

.pro-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pro-quick-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; background: var(--pro-surface-2); border: 1px solid var(--pro-border); border-radius: 10px; cursor: pointer; transition: all .15s; color: var(--pro-text); font-family: inherit; text-align: left; }
.pro-quick-btn:hover { border-color: var(--pro-accent); transform: translateY(-2px); }
.pro-quick-btn .ic { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.pro-quick-btn b { font-size: 12.5px; font-weight: 600; }
.pro-quick-btn span { font-size: 11px; color: var(--pro-muted); }

/* === COMMAND PALETTE === */
.pro-overlay { position: fixed; inset: 0; background: rgba(5,8,20,.6); backdrop-filter: blur(6px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.pro-palette { width: 560px; max-width: 90vw; background: var(--pro-surface); border: 1px solid var(--pro-border-2); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: palette-in .18s ease-out; }
@keyframes palette-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.pro-palette-input { width: 100%; padding: 16px 18px; background: transparent; border: 0; border-bottom: 1px solid var(--pro-border); color: var(--pro-text); font-size: 15px; font-family: inherit; }
.pro-palette-input:focus { outline: none; }
.pro-palette-list { max-height: 360px; overflow-y: auto; padding: 6px; }
.pro-palette-sec { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--pro-muted); padding: 8px 12px 4px; letter-spacing: .08em; }
.pro-palette-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.pro-palette-item.is-active { background: var(--pro-surface-2); }
.pro-palette-item .kbd-list { margin-left: auto; display: flex; gap: 3px; }
.pro-palette-item kbd { font-family: var(--font-mono); font-size: 10px; background: var(--pro-surface-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--pro-border); color: var(--pro-muted); }
.pro-palette-item.is-active kbd { background: rgba(255,255,255,.1); }
.pro-palette-hint { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--pro-border); font-size: 11px; color: var(--pro-muted); background: var(--pro-surface-2); }
.pro-palette-hint span { display: inline-flex; align-items: center; gap: 4px; }

/* === TOAST === */
.pro-toast-stack { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.pro-toast { display: flex; gap: 12px; padding: 12px 16px; background: var(--pro-surface); border: 1px solid var(--pro-border-2); border-radius: 12px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.5); min-width: 300px; animation: toast-in .25s ease-out; position: relative; overflow: hidden; }
.pro-toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pro-success); }
.pro-toast.err::before { background: var(--pro-danger); }
.pro-toast.warn::before { background: var(--pro-warn); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}
.pro-toast-ic { width: 32px; height: 32px; border-radius: 8px; background: rgba(34,197,94,.12); color: var(--pro-success); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pro-toast b { font-size: 13px; display: block; }
.pro-toast p { margin: 2px 0 0; font-size: 12px; color: var(--pro-muted); }

/* === SKELETON === */
.sk { background: linear-gradient(90deg, var(--pro-surface-2) 0%, color-mix(in oklab, var(--pro-surface-2) 60%, var(--pro-border)) 50%, var(--pro-surface-2) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 6px; }
@keyframes sk {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* === CONFETTI === */
.confetti-piece { position: absolute; width: 8px; height: 12px; top: -20px; pointer-events: none; }
.confetti-piece.cf-1 { left: 22%; background: #6366F1; animation: conf-fall 1.6s ease-in 0s forwards; transform: rotate(15deg); }
.confetti-piece.cf-2 { left: 35%; background: #22D3EE; animation: conf-fall 1.6s ease-in .15s forwards; transform: rotate(-10deg); }
.confetti-piece.cf-3 { left: 48%; background: #22C55E; animation: conf-fall 1.6s ease-in .05s forwards; transform: rotate(45deg); }
.confetti-piece.cf-4 { left: 62%; background: #F59E0B; animation: conf-fall 1.6s ease-in .25s forwards; transform: rotate(-30deg); }
.confetti-piece.cf-5 { left: 75%; background: #EC4899; animation: conf-fall 1.6s ease-in .1s forwards; transform: rotate(60deg); }
.confetti-piece.cf-6 { left: 28%; background: #A855F7; animation: conf-fall 1.6s ease-in .3s forwards; transform: rotate(-45deg); }
.confetti-piece.cf-7 { left: 55%; background: #6366F1; animation: conf-fall 1.6s ease-in .2s forwards; transform: rotate(20deg); }
.confetti-piece.cf-8 { left: 70%; background: #22D3EE; animation: conf-fall 1.6s ease-in .35s forwards; transform: rotate(-15deg); }
@keyframes conf-fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0; }
}

/* === PILLS === */
.pro-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 500; border: 1px solid transparent; }
.pro-pill-suc { background: rgba(34,197,94,.12); color: var(--pro-success); border-color: rgba(34,197,94,.25); }
.pro-pill-warn { background: rgba(245,158,11,.15); color: var(--pro-warn); border-color: rgba(245,158,11,.3); }
.pro-pill-err { background: rgba(239,68,68,.15); color: var(--pro-danger); border-color: rgba(239,68,68,.3); }

/* === EMPTY/ERROR STATES === */
.pro-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; text-align: center; min-height: 320px;
  background: var(--pro-surface); border: 1px solid var(--pro-border); border-radius: 14px;
}
.pro-empty-ic {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.10));
  display: flex; align-items: center; justify-content: center;
  color: var(--pro-accent); margin-bottom: 16px;
}
.pro-empty.err .pro-empty-ic { background: rgba(239,68,68,.12); color: var(--pro-danger); }
.pro-empty h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.pro-empty p { margin: 0 0 18px; color: var(--pro-muted); font-size: 13.5px; max-width: 380px; }
.pro-empty .pro-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* === DARK-MODE TOGGLE FRAMES === */
.morph-frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.morph-frame {
  background: var(--pro-surface); border: 1px solid var(--pro-border);
  border-radius: 14px; padding: 24px; text-align: center;
}
.morph-frame .frame-icon {
  width: 56px; height: 56px; border-radius: 12px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pro-surface-2);
}
.morph-frame .frame-pct {
  font-family: var(--font-mono); font-size: 11px; color: var(--pro-muted);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.morph-frame .frame-label {
  font-size: 13px; font-weight: 600; margin-top: 4px;
}

/* Sun→moon morph keyframes (300ms ease-out, animation: sun-moon-morph) */
@keyframes sun-moon-morph {
  0%   { transform: rotate(0deg)   scale(1);   opacity: 1; filter: hue-rotate(0deg); }
  33%  { transform: rotate(60deg)  scale(.85); opacity: .8; filter: hue-rotate(40deg); }
  66%  { transform: rotate(150deg) scale(.95); opacity: .9; filter: hue-rotate(180deg); }
  100% { transform: rotate(360deg) scale(1);   opacity: 1; filter: hue-rotate(220deg); }
}
.morph-demo { animation: sun-moon-morph 300ms ease-out forwards; }

/* === FLOATING NAV (kit-only, between screens) === */
.pro-tabs {
  position: fixed; top: 12px; right: 12px; z-index: 90;
  background: var(--pro-surface); border: 1px solid var(--pro-border);
  border-radius: 9999px; padding: 4px; display: flex; gap: 2px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.3);
  font-size: 11px;
}
.pro-tabs a {
  padding: 6px 12px; border-radius: 9999px; font-weight: 500;
  cursor: pointer; color: var(--pro-muted); text-decoration: none;
  font-family: inherit;
}
.pro-tabs a.is-active { background: var(--pro-accent); color: #fff; }
.pro-tabs a:hover:not(.is-active) { color: var(--pro-text); }

/* === EDIT-MODE BANNER === */
.pro-edit-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(99,102,241,.18), rgba(34,211,238,.08));
  border: 1px solid rgba(99,102,241,.35);
  font-size: 13px;
}
.pro-edit-banner b { font-weight: 600; }
.pro-edit-banner .ml-auto { margin-left: auto; display: flex; gap: 8px; }

/* === INDEX PAGE === */
.pro-index { padding: 32px; max-width: 1100px; margin: 0 auto; }
.pro-index h1 { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.pro-index .lead { color: var(--pro-muted); margin: 0 0 24px; font-size: 14px; }
.pro-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pro-index-card {
  background: var(--pro-surface); border: 1px solid var(--pro-border);
  border-radius: 12px; padding: 16px; text-decoration: none; color: inherit;
  display: block; transition: all .15s;
}
.pro-index-card:hover { border-color: var(--pro-accent); transform: translateY(-2px); }
.pro-index-card .card-name { font-size: 14px; font-weight: 600; }
.pro-index-card .card-desc { font-size: 12px; color: var(--pro-muted); margin-top: 4px; }
.pro-index-card .card-score { font-family: var(--font-mono); font-size: 11px; color: var(--pro-success); margin-top: 8px; font-weight: 600; }

.pro-section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--pro-muted); font-weight: 600; margin: 24px 0 8px;
}
