/* ============================================================
   Agentic Vantage Studio — Platform Hub CSS
   Palette: ADS light theme + Accenture violet
   ============================================================ */

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

:root {
  --bg:        #ECECEC;
  --bg2:       #F5F5F5;
  --bg3:       #FFFFFF;
  --border:    #E0E0E0;
  --text:      #1A1A1A;
  --text-muted:#666666;
  --accent:    #0066CC;
  --accent2:   #0052A3;
  --ads:       #7B2D8B;
  --ass:       #FF6900;
  --ais:       #00BAFF;
  --green:     #16A34A;
  --red:       #DC2626;
  --radius:    10px;
  --sidebar-w: 240px;
  --font:      'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Login ---- */
.login-shell { min-height:100vh; display:flex; align-items:center; justify-content:center; background:radial-gradient(1200px 600px at 80% 0%,rgba(0,102,204,.07),transparent 60%),radial-gradient(900px 500px at 0% 100%,rgba(0,102,204,.05),transparent 60%),var(--bg); padding:24px; }
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.login-card { background:var(--bg3); border:1px solid var(--border); border-radius:16px; padding:32px 32px 28px; width:100%; max-width:420px; box-shadow:0 4px 20px rgba(0,0,0,.10),0 1px 4px rgba(0,0,0,.06); position:relative; overflow:hidden; }
.login-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--accent),var(--accent2)); }
.login-brand { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.login-brand .mark { width:28px; height:28px; border-radius:7px; background:var(--text); display:flex; align-items:center; justify-content:center; }
.login-brand .mark::after { content:''; width:11px; height:11px; background:var(--accent); clip-path:polygon(0 0,60% 0,100% 50%,60% 100%,0 100%,40% 50%); }
.login-brand .name { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:16px; letter-spacing:.05em; text-transform:uppercase; }
.login-studios { display:flex; gap:8px; margin-bottom:16px; }
.ls-badge { flex:1; text-align:center; padding:8px 4px; border-radius:8px; font-size:10px; font-weight:600; border:1px solid; cursor:default; line-height:1.4; }
.ls-badge.ads { color:var(--ads); border-color:rgba(123,45,139,.4); background:rgba(123,45,139,.1); }
.ls-badge.ass { color:var(--ass); border-color:rgba(255,105,0,.4); background:rgba(255,105,0,.1); }
.ls-badge.ais { color:var(--ais); border-color:rgba(0,186,255,.4); background:rgba(0,186,255,.1); }
.login-divider { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.login-divider::before,.login-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.login-divider span { font-size:11px; color:var(--text-muted); white-space:nowrap; }
.login-card h1 { font-family:'Barlow Condensed',sans-serif; font-size:26px; font-weight:700; letter-spacing:.02em; }
.login-card p.muted { font-size:12px; color:var(--text-muted); margin:4px 0 14px; }
.acc-input { width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg3); font-family:inherit; font-size:13.5px; color:var(--text); outline:none; transition:border-color .15s,box-shadow .15s; margin:4px 0 12px; }
.acc-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(0,102,204,.12); }
.acc-input::placeholder { color:var(--text-muted); }
.error-msg { color:var(--red); font-size:12px; margin-top:6px; }
.error-msg.hidden { display:none; }
.login-error { background:rgba(248,81,73,.12); border:1px solid rgba(248,81,73,.35); color:var(--red); padding:10px 14px; border-radius:8px; font-size:13px; margin-bottom:14px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:12px; font-weight:600; color:var(--text-muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:.5px; }
.form-group input { width:100%; padding:10px 14px; background:var(--bg3); border:1px solid var(--border); border-radius:8px; color:var(--text); font-size:14px; font-family:var(--font); outline:none; transition:border-color .15s; }
.form-group input:focus { border-color:var(--accent); }
.btn-primary { display:inline-flex; align-items:center; gap:8px; padding:9px 18px; border-radius:var(--radius); background:var(--accent); color:#fff; border:0; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; transition:background .15s,transform .1s; cursor:pointer; font-family:var(--font); }
.btn-primary:hover { background:var(--accent2); }
.btn-primary:active { transform:translateY(1px); }
.btn-primary:disabled { background:var(--border); cursor:not-allowed; }

/* ---- App shell ---- */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sidebar-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0;
}
.sidebar-app-name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.1; }
.sidebar-app-sub  { font-size: 11px; color: var(--text-muted); }

.sidebar-nav { padding: 12px 8px; flex: 1; }
.nav-section-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .7px; padding: 12px 8px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all .12s; margin-bottom: 2px; text-decoration: none;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(0,102,204,.12); color: var(--accent); }

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: var(--bg3); cursor: pointer;
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-name  { font-size: 13px; font-weight: 600; flex: 1; }
.user-role  { font-size: 11px; color: var(--text-muted); }
.logout-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; border-radius: 5px;
}
.logout-btn:hover { color: var(--red); }
.logout-btn svg { width: 16px; height: 16px; display: block; }

/* ---- Main content ---- */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  padding: 0 28px; height: 56px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-title { font-size: 17px; font-weight: 700; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.content { flex: 1; overflow-y: auto; padding: 28px; }

/* ---- Studio cards ---- */
.studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.studio-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .15s, box-shadow .15s;
  cursor: default;
}
.studio-card:hover { border-color: var(--studio-color, var(--border)); box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.sc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sc-badge {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  background: var(--studio-color, #444);
}
.sc-name  { font-size: 16px; font-weight: 700; color: var(--text); }
.sc-id    { font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.sc-roadmap-card { opacity: 0.85; }
.sc-roadmap {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; padding: 3px 8px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.sc-roadmap.coming-soon { background: #8b949e22; color: #8b949e; border: 1px solid #8b949e44; }
.sc-roadmap.in-progress { background: #e3a00820; color: #e3a008; border: 1px solid #e3a00840; }
.sc-stats { display: flex; gap: 20px; margin-bottom: 18px; }
.sc-stat  { flex: 1; }
.sc-stat-val  { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; }
.sc-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.sc-actions { display: flex; gap: 10px; }
.btn-launch {
  flex: 1; padding: 9px 16px;
  background: none; border: 1px solid;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.btn-launch svg { width: 14px; height: 14px; }
.btn-sm {
  padding: 7px 14px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--text-muted); font-family: var(--font); transition: all .15s;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.sc-no-url { font-size: 12px; color: var(--text-muted); font-style: italic; }

/* status pill on studio card */
.sc-status { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 16px; }
.sc-status .dot { width: 7px; height: 7px; border-radius: 50%; }
.sc-status.ok .dot { background: var(--green); box-shadow: 0 0 5px var(--green); }
.sc-status.err .dot { background: var(--red); }
.sc-status.unknown .dot { background: var(--text-muted); }

/* ---- Section header ---- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title  { font-size: 16px; font-weight: 700; }

/* ---- Table ---- */
.table-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--bg3); }
td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600;
  border: 1px solid; cursor: default;
}
.badge-ads   { color: var(--ads);   border-color: rgba(123,45,139,.4); background: rgba(123,45,139,.12); }
.badge-ass   { color: var(--ass);   border-color: rgba(255,105,0,.4);   background: rgba(255,105,0,.12); }
.badge-ais   { color: var(--ais);   border-color: rgba(0,186,255,.4);   background: rgba(0,186,255,.12); }
.badge-aits  { color: #A100FF;      border-color: rgba(161,0,255,.4);   background: rgba(161,0,255,.12); }
.badge-aas   { color: #E8A000; border-color: rgba(232,160,0,.4); background: rgba(232,160,0,.12); }
.badge-green { color: var(--green); border-color: rgba(63,185,80,.4);   background: rgba(63,185,80,.12); }
.badge-red   { color: var(--red);   border-color: rgba(248,81,73,.4);   background: rgba(248,81,73,.12); }
.badge-muted { color: var(--text-muted); border-color: var(--border);   background: var(--bg3); }
.badge-avs   { color: var(--accent); border-color: rgba(0,102,204,.4); background: rgba(0,102,204,.1); }

.dot-ok  { width:7px; height:7px; border-radius:50%; background:var(--green); display:inline-block; }
.dot-err { width:7px; height:7px; border-radius:50%; background:var(--red);   display:inline-block; }

/* ---- Buttons ---- */
.btn { padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid; transition: all .15s; font-family: var(--font); display:inline-flex; align-items:center; gap:6px; }
.btn svg { width:14px; height:14px; }
.btn-accent  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent2); }
.btn-ghost   { background: none; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-danger  { background: none; color: var(--red); border-color: rgba(248,81,73,.35); }
.btn-danger:hover { background: rgba(248,81,73,.1); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  width: 100%; max-width: 480px;
  box-shadow: 0 4px 20px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.modal-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end; }

/* ---- Radio tabs ---- */
.studio-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.studio-tab {
  flex: 1; padding: 8px 4px; text-align: center;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s; background: var(--bg3); color: var(--text-muted);
}
.studio-tab:hover { border-color: var(--text-muted); color: var(--text); }
.studio-tab.sel-ads { border-color: var(--ads); color: var(--ads); background: rgba(123,45,139,.12); }
.studio-tab.sel-ass { border-color: var(--ass); color: var(--ass); background: rgba(255,105,0,.12); }
.studio-tab.sel-ais { border-color: var(--ais); color: var(--ais); background: rgba(0,186,255,.12); }

/* ---- Password reveal ---- */
.pw-reveal { display:flex; gap:6px; align-items:center; }
.pw-reveal code { font-family:var(--mono); font-size:12px; background:var(--bg3); border:1px solid var(--border); padding:3px 8px; border-radius:5px; color:var(--accent); cursor:default; }
.pw-copy { background:none; border:none; cursor:pointer; color:var(--text-muted); padding:2px 4px; }
.pw-copy:hover { color:var(--accent); }
.pw-copy svg { width:14px; height:14px; display:block; }

/* ---- Toast ---- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; border: 1px solid; pointer-events: all; animation: toast-in .2s ease; }
.toast-ok  { background: rgba(63,185,80,.15);  border-color: rgba(63,185,80,.35);  color: var(--green); }
.toast-err { background: rgba(248,81,73,.15);  border-color: rgba(248,81,73,.35);  color: var(--red); }
.toast-info { background: rgba(0,102,204,.1); border-color: rgba(0,102,204,.3); color: var(--accent); }
@keyframes toast-in { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: none; } }

/* ---- Misc ---- */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-state p  { font-size: 13px; }
.spinner { width:20px; height:20px; border:2px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.loading-center { display:flex; align-items:center; justify-content:center; height:200px; }
.tag-row { display:flex; flex-wrap:wrap; gap:6px; }

.page-hidden { display: none !important; }

/* ---- Sidebar spacer + YAAR card ---- */
.sidebar-spacer { flex: 0 0 0; }
body.modal-open { overflow: hidden; }

.yaar-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; margin: 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: 0; cursor: pointer;
  text-align: left; width: calc(100% - 16px);
  position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.yaar-card:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,102,204,.30); }
.yaar-card::after { content:''; position:absolute; right:-22px; top:-28px; width:80px; height:80px; border:14px solid rgba(255,255,255,.10); border-radius:50%; pointer-events:none; }
.yaar-card .yaar-glyph { width:30px; height:30px; border-radius:8px; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.yaar-card .yaar-glyph svg { width:16px; height:16px; color:#fff; }
.yaar-card .yaar-info { flex:1; min-width:0; }
.yaar-card .yaar-name { font-size:16px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; display:block; }
.yaar-card .yaar-tag { font-size:10px; opacity:.85; letter-spacing:.04em; display:block; }
.yaar-card .yaar-fullform { display:block; font-size:8px; font-weight:500; font-style:italic; letter-spacing:.06em; opacity:.65; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.yaar-card .yaar-arrow { font-size:14px; opacity:.85; flex-shrink:0; }

/* ---- YAAR modal ---- */
.modal-backdrop { position:fixed; inset:0; z-index:500; background:rgba(0,0,0,.65); backdrop-filter:blur(2px); display:flex; align-items:center; justify-content:center; padding:24px; }
.modal-backdrop .modal { max-width:600px; max-height:82vh; display:flex; flex-direction:column; overflow:hidden; padding:0; }
.modal-head { display:flex; align-items:flex-start; gap:12px; padding:18px 22px 14px; border-bottom:1px solid var(--border); flex-shrink:0; }
.modal-head .yaar-glyph { width:36px; height:36px; border-radius:9px; background:linear-gradient(135deg,var(--accent),var(--accent2)); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.modal-head .yaar-glyph svg { width:18px; height:18px; color:#fff; }
.modal-head .modal-title { flex:1; }
.modal-head .modal-title h3 { font-size:16px; font-weight:700; margin:0; }
.modal-head .modal-title h3 span { color:var(--text-muted); font-weight:400; }
.modal-head .modal-title p { font-size:12px; color:var(--text-muted); margin:2px 0 0; }
.modal-close { margin-left:auto; background:none; border:1px solid var(--border); border-radius:6px; width:28px; height:28px; font-size:16px; color:var(--text-muted); cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.modal-close:hover { color:var(--accent); border-color:var(--accent); }
.modal-body { flex:1; overflow-y:auto; padding:16px 22px; display:flex; flex-direction:column; gap:12px; }
.modal-foot { display:flex; align-items:center; gap:10px; padding:14px 22px; border-top:1px solid var(--border); flex-shrink:0; }
.modal-foot .hint { font-size:11px; color:var(--text-muted); }
.modal-foot .spacer { flex:1; }
.acc-label { display:block; font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:5px; }
.acc-select { width:100%; padding:8px 12px; background:var(--bg3); border:1px solid var(--border); border-radius:7px; color:var(--text); font-size:13px; font-family:var(--font); outline:none; }
.acc-textarea { width:100%; padding:10px 12px; background:var(--bg3); border:1px solid var(--border); border-radius:7px; color:var(--text); font-size:13px; font-family:var(--font); outline:none; resize:vertical; min-height:72px; }
.acc-textarea:focus,.acc-select:focus { border-color:var(--accent); }

/* ---- Streaming transcript ---- */
.transcript { background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:12px 14px; font-family:var(--mono); font-size:12px; max-height:280px; overflow-y:auto; display:flex; flex-direction:column; gap:2px; margin-top:8px; }
.transcript.hidden { display:none; }
.ag-line { padding:2px 0; line-height:1.45; white-space:pre-wrap; }
.ag-spin { display:inline-block; width:14px; color:var(--accent); font-weight:700; animation:ag-pulse 1s ease infinite; }
.ag-active .ag-text { color:var(--text); }
.ag-ok .ag-spin,.ag-ok .ag-text { color:#79D78F; animation:none; }
.ag-fail .ag-spin,.ag-fail .ag-text { color:#FF8989; animation:none; }
.ag-muted-ok { color:var(--text-muted); }
@keyframes ag-pulse { 0%,100%{opacity:1}50%{opacity:.4} }

/* ---- Utilities ---- */
.muted { color:var(--text-muted); }
.small { font-size:12px; }
.hidden { display:none !important; }
.spacer { flex:1; }
ul.muted.small { padding-left:18px; }
ul.muted.small li { margin-bottom:4px; }
code.inline { background:var(--bg3); border:1px solid var(--border); border-radius:4px; padding:1px 5px; font-family:var(--mono); font-size:11px; color:var(--accent); }

/* ============================================================
   Lab Guide article — matches dashboard Barlow font stack
   ============================================================ */
.guide-article {
  max-width: 880px; margin: 12px 0 40px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 28px 36px;
  line-height: 1.7; color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14.67px;
}
.guide-article h1 { font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif; font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.guide-article h2 { font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif; font-size: 17px; font-weight: 600; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.guide-article h3 { font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif; font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.guide-article h4 { font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif; font-size: 13.5px; font-weight: 600; margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.guide-article p { margin: 8px 0; }
.guide-article ol, .guide-article ul { padding-left: 22px; margin: 8px 0 14px; }
.guide-article ol li, .guide-article ul li { margin: 6px 0; }
.guide-article code { background: var(--g-soft,#f3f4f6); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.guide-article pre { background: #1f2330; color: #e6e9ef; padding: 14px 16px; border-radius: 6px; overflow-x: auto; font-size: 13px; line-height: 1.5; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.guide-article pre code { background: transparent; padding: 0; color: inherit; }
.guide-article table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.guide-article th, .guide-article td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; font-size: 14px; }
.guide-article blockquote { margin: 14px 0; padding: 8px 14px; border-left: 3px solid var(--accent,#7c3aed); background: var(--g-soft,#f3f4f6); border-radius: 0 6px 6px 0; }


/* ============================================================
   STUDIO MONITOR PAGE
   ============================================================ */
.monitor-summary-row { display:flex; gap:14px; padding:24px 28px 0; flex-wrap:wrap; }
.monitor-stat-card { background:var(--bg3); border:1px solid var(--border); border-radius:10px; padding:16px 22px; min-width:130px; }
.monitor-stat-val { font-size:26px; font-weight:700; line-height:1.1; }
.monitor-stat-lbl { font-size:11px; color:var(--text-muted); margin-top:4px; text-transform:uppercase; letter-spacing:.05em; }

.monitor-groups { padding:20px 28px 28px; display:flex; flex-direction:column; gap:18px; }
.monitor-group { border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.monitor-group-header { display:flex; align-items:center; gap:10px; padding:12px 16px; background:var(--bg2); border-bottom:1px solid var(--border); }
.monitor-studio-badge { font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; letter-spacing:.04em; }
.monitor-studio-name { font-weight:600; font-size:13px; flex:1; }
.monitor-count { font-size:12px; color:var(--text-muted); }
.monitor-unreachable { font-size:12px; color:var(--red); font-weight:500; }

/* status dots */
.status-online  { color:#16a34a; font-size:12px; font-weight:500; }
.status-recent  { color:#d97706; font-size:12px; font-weight:500; }
.status-offline { color:#9ca3af; font-size:12px; }

/* role badges */
.role-badge { font-size:10px; font-weight:600; padding:2px 8px; border-radius:20px; letter-spacing:.04em; text-transform:uppercase; }
.role-admin   { background:#7c3aed22; color:#7c3aed; }
.role-trainer { background:#0284c722; color:#0284c7; }
.role-learner { background:#16a34a22; color:#16a34a; }

/* batch tag */
.batch-tag { font-size:11px; background:var(--bg2); border:1px solid var(--border); border-radius:4px; padding:1px 7px; }

/* table tweaks for monitor */
.monitor-group .table-wrap { border:none; border-radius:0; }
.mono-sm { font-family:var(--mono); font-size:11px; color:var(--text-muted); }
.activity-cell { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--text-muted); }

/* Batch sub-headers inside studio group */
.monitor-batch-header { display:flex; align-items:center; gap:10px; padding:8px 16px; background:var(--bg); border-top:1px solid var(--border); }
.monitor-batch-name { font-size:12px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }

/* Activity count badge */
.act-count-badge { display:inline-block; background:var(--accent); color:#fff; font-size:11px; font-weight:700; padding:1px 8px; border-radius:20px; min-width:24px; text-align:center; }

/* ---- Hub-spoke diagram (Studio Portals visual) ---- */
.hub-spoke-section {
  background: linear-gradient(135deg,#eff1f8 0%,#f4f5fb 100%);
  border: 1px solid rgba(160,170,210,.22);
  border-radius: 16px;
  padding: 28px 24px 18px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hub-spoke-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle,rgba(140,150,200,.18) 1px,transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hss-tagline {
  text-align: center;
  font-size: 13px;
  color: #8a90a8;
  letter-spacing: .02em;
  margin-bottom: 20px;
  position: relative;
}
.hss-diagram {
  position: relative;
  height: 400px;
  max-width: 900px;
  margin: 0 auto;
}
.hss-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.hss-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 84px;
  height: 84px;
  background: linear-gradient(145deg,#1a2540,#2e3f6a);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(20,30,80,.35),0 0 0 1px rgba(255,255,255,.08) inset,0 1px 0 rgba(255,255,255,.12) inset;
  z-index: 3;
}
.hss-hub-mark { width:40px; height:40px; }
.hss-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07),0 1px 3px rgba(0,0,0,.05);
  width: 205px;
  cursor: pointer;
  z-index: 3;
  transition: transform .15s ease,box-shadow .15s ease;
  border: 1px solid rgba(220,225,240,.8);
}
.hss-card:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.13); }
.hss-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  color: #fff; flex-shrink: 0;
  letter-spacing: -.02em;
}
.hss-card-name { font-size:12px; font-weight:600; color:#1a1a2e; line-height:1.35; }
.hss-card-short { font-size:10.5px; color:#9099b0; margin-top:2px; font-weight:500; }
.hss-left  { left: 0; }
.hss-right { right: 0; }
.hss-l1 { top: 20px; }
.hss-l2 { top: 100px; }
.hss-l3 { top: 180px; }
.hss-l4 { top: 260px; }
.hss-r1 { top: 45px; }
.hss-r2 { top: 140px; }
.hss-r3 { top: 235px; }
.hss-r4 { top: 310px; }
.hss-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 14px;
  position: relative;
}
.hss-feature { display:flex; flex-direction:column; align-items:center; gap:5px; }
.hss-feature-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(160,170,210,.45);
  display: flex; align-items: center; justify-content: center;
  color: #9099b0;
}
.hss-feature-icon svg { width:16px; height:16px; }
.hss-feature-label { font-size:11px; color:#9099b0; font-weight:500; }

/* ---- Agent Builder ---- */
.ab-wrap { display:grid; grid-template-columns:1fr 320px; gap:24px; align-items:start; }
@media (max-width: 900px) { .ab-wrap { grid-template-columns:1fr; } }
.ab-builder { background:var(--bg3); border:1px solid var(--border); border-radius:12px; padding:24px; }
.ab-templates { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.ab-tpl-label { font-size:12px; color:var(--text-muted); font-weight:600; margin-right:4px; }
.ab-tpl { font-size:12px; padding:6px 12px; }
.ab-hint { font-weight:400; text-transform:none; letter-spacing:0; color:var(--text-muted); font-size:11px; }
.form-row { display:flex; gap:16px; }
.ab-builder select.acc-input { margin:0; }
.ab-builder input[type=range] { width:100%; accent-color:var(--accent); margin-top:6px; }
.ab-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.ab-preview { margin-top:16px; }
.ab-preview summary { cursor:pointer; font-size:12px; color:var(--text-muted); font-weight:600; }
.ab-code { margin-top:10px; background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:12px 14px; font-family:var(--mono); font-size:12px; white-space:pre-wrap; word-break:break-word; color:var(--text); }
.ab-guide { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:20px; position:sticky; top:16px; }
.ab-guide h3 { display:flex; align-items:center; gap:8px; font-size:15px; margin-bottom:10px; }
.ab-guide h3 svg { width:18px; height:18px; color:var(--accent); }
.ab-steps { margin:14px 0; padding-left:20px; display:flex; flex-direction:column; gap:10px; font-size:13px; }
.ab-steps li { line-height:1.45; }
.ab-steps strong { color:var(--text); }
.ab-tip { margin-top:12px; background:var(--bg3); border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:6px; padding:10px 12px; font-size:12px; color:var(--text-muted); line-height:1.5; }
.ab-tip strong { color:var(--text); }
