.svst{display:flex;gap:14px;align-items:flex-start}
.svst.svst-right .svst-profile{order:2}
.svst.svst-right .svst-search{order:1}
.svst.svst-left .svst-profile{order:1}
.svst.svst-left .svst-search{order:2}
.svst *{box-sizing:border-box}

.svst-search{flex:0 0 360px;min-width:280px}
.svst-profile{flex:0 0 420px;min-width:300px}

.svst-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.svst-card-header{padding:12px 14px;border-bottom:1px solid rgba(0,0,0,.06);display:flex;align-items:center;justify-content:space-between}
.svst-title{font-weight:700;font-size:13px;color:#111}
.svst-sub{font-size:12px;color:#666}
.svst-card-body{padding:12px 14px}

.svst-input{width:100%;padding:10px 12px;border:1px solid rgba(0,0,0,.12);border-radius:12px;outline:none;font-size:14px}
.svst-input:focus{border-color:rgba(0,0,0,.25)}
.svst-results{margin-top:10px;max-height:420px;overflow:auto;border-radius:12px;border:1px solid rgba(0,0,0,.08)}
.svst-item{padding:10px 12px;cursor:pointer;display:flex;gap:10px;align-items:flex-start;background:#fff;border-bottom:1px solid rgba(0,0,0,.06)}
.svst-item:last-child{border-bottom:none}
.svst-item:hover{background:rgba(0,0,0,.03)}
.svst-badge{padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.12);font-size:11px;color:#333;white-space:nowrap}
.svst-sym{font-weight:800;font-size:13px;color:#111}
.svst-name{font-size:12px;color:#444;line-height:1.25;margin-top:2px}
.svst-muted{color:#888;font-size:12px}

.svst-kv{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.svst-kv .kv{padding:10px 12px;border:1px solid rgba(0,0,0,.07);border-radius:12px;background:rgba(0,0,0,.015)}
.svst-kv .k{font-size:11px;color:#666}
.svst-kv .v{font-size:14px;font-weight:800;color:#111;margin-top:4px}

/* Insights (difference-maker UI) */
.svst-insights{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.svst-insight{padding:12px 12px;border:1px solid rgba(0,0,0,.07);border-radius:12px;background:rgba(0,0,0,.012)}
.svst-insight .h{font-size:11px;color:#666;font-weight:700;letter-spacing:.2px}
.svst-insight-score .score{font-size:28px;font-weight:900;color:#111;margin-top:4px;line-height:1}
.svst-insight-score .score small{font-size:12px;font-weight:800;color:#666;margin-left:4px}
.svst-insight-score .sub{margin-top:8px;font-size:12px;color:#666}
.svst-risk{display:inline-block;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.12);font-size:11px;color:#111;background:#fff}
.svst-insight-regime .reg{margin-top:6px;display:grid;gap:6px}
.svst-insight-regime .row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.svst-insight-regime .row .k{font-size:12px;color:#666}
.svst-insight-regime .row .v{font-size:12px;font-weight:800;color:#111;padding:3px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:#fff;white-space:nowrap}


.svst-btn[disabled]{opacity:.55;cursor:not-allowed}

.svst-kv-2{margin:10px 0}

@media (max-width: 520px){
  .svst-insights{grid-template-columns:1fr}
}
.svst-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.svst-btn{display:inline-block;padding:8px 10px;border-radius:12px;border:1px solid rgba(0,0,0,.12);background:#fff;color:#111;font-size:12px;text-decoration:none}
.svst-btn:hover{background:rgba(0,0,0,.03)}
.svst-pill{padding:6px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.12);font-size:12px;color:#111;background:#fff}

.svst-regime-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.svst-btn-analyze{padding:6px 10px;border-radius:999px;font-weight:800}
.svst-btn-analyze[disabled]{opacity:.6;cursor:not-allowed}

/* Modal (analysis) */
.svst-modal{position:fixed;inset:0;z-index:99999;display:none;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.svst-modal[aria-hidden="false"]{display:block}
.svst-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35)}
.svst-modal-panel{position:relative;max-width:880px;width:calc(100% - 24px);max-height:calc(100% - 24px);margin:12px auto;background:#fff;border-radius:18px;box-shadow:0 18px 48px rgba(0,0,0,.25);overflow:hidden;border:1px solid rgba(0,0,0,.08)}
.svst-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid rgba(0,0,0,.06)}
.svst-modal-title{font-weight:900;font-size:13px;color:#111}
.svst-modal-sub{font-size:12px;color:#666;margin-top:2px}
.svst-modal-body{padding:12px 14px;overflow:auto;max-height:calc(100vh - 120px)}
.svst-modal-section{padding:12px;border:1px solid rgba(0,0,0,.07);border-radius:14px;background:rgba(0,0,0,.012);margin-bottom:10px}
.svst-modal-h{font-size:12px;font-weight:900;color:#111;margin-bottom:8px}
.svst-modal-p{font-size:13px;color:#222;line-height:1.5}
.svst-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.svst-modal-list{font-size:13px;color:#222;line-height:1.5}
.svst-modal-list ul{margin:0;padding-left:18px}
.svst-modal-list li{margin:6px 0}
.svst-modal-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:10px}
.svst-modal-kpi{padding:10px 12px;border:1px solid rgba(0,0,0,.07);border-radius:14px;background:rgba(0,0,0,.012)}
.svst-modal-kpi .k{font-size:11px;color:#666;font-weight:800}
.svst-modal-kpi .v{margin-top:4px;font-size:13px;font-weight:900;color:#111}
.svst-modal-table table{width:100%;border-collapse:separate;border-spacing:0}
.svst-modal-table th,.svst-modal-table td{padding:8px 10px;border-bottom:1px solid rgba(0,0,0,.06);font-size:12px;text-align:left;vertical-align:top}
.svst-modal-table th{font-weight:900;color:#111;background:rgba(0,0,0,.015)}
.svst-modal-table td{color:#222}
.svst-modal-pill{display:inline-block;padding:3px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:#fff;font-weight:900;font-size:11px;white-space:nowrap}
.svst-modal-note{margin-top:10px;font-size:12px;color:#666;line-height:1.4}

.svst-modal-panel,.svst-modal-head,.svst-modal-close{pointer-events:auto}

@media (max-width: 720px){
  .svst-modal-grid{grid-template-columns:1fr}
  .svst-modal-kpis{grid-template-columns:1fr 1fr}
}

@media (max-width: 980px){
  .svst{flex-direction:column}
  .svst-search,.svst-profile{flex:1 1 auto;min-width:0;width:100%}
}

/* Screener (frontend) */
.svst-screener{margin:10px 0 14px}
.svst-screener-header{font-size:14px}
.svst-screener-empty{padding:12px 14px;border:1px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.04)}

.svst-screener-summary{margin:10px 0 12px}
.svst-screener-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.svst-card-title{font-size:11px;color:#666;font-weight:900;letter-spacing:.2px}
.svst-card-value{margin-top:4px;font-size:22px;font-weight:900;color:#111;line-height:1}
.svst-screener-meta{margin-top:8px;color:#666;font-size:12px}

.svst-card-buy{border-color:rgba(0,128,0,.20)}
.svst-card-watch{border-color:rgba(255,165,0,.25)}
.svst-card-loai{border-color:rgba(220,20,60,.20)}

.svst-details{margin-top:6px}
.svst-details summary{cursor:pointer;color:#111;font-weight:800;font-size:12px}
.svst-details-metrics{margin-top:8px;font-size:12px;color:#444}
.svst-details-list{margin:8px 0 0;padding-left:18px}
.svst-details-list li{margin:6px 0;font-size:12px;color:#333}

@media (max-width: 860px){
  .svst-screener-cards{grid-template-columns:1fr 1fr}
}

/* Screener frontend (Phase 2.1c) */
.svst-screener-loading{padding:14px 16px;border:1px dashed #ddd;border-radius:12px;color:#555;background:#fafafa;margin:10px 0;}
.svst-screener-empty{padding:10px 12px;color:#555;background:#fff7e6;border:1px solid #ffe3a3;border-radius:10px;margin:8px 0;}
.svst-screener-group{margin:12px 0 18px;}
.svst-screener-group-title{margin:8px 0 10px;font-size:18px;}
.svst-screener-count{color:#666;font-weight:normal;}
.svst-screener-tablewrap{overflow:auto;border:1px solid #eee;border-radius:12px;background:#fff;}


/* --- Screener table readability (theme-safe) --- */
.svst-screener-tablewrap table{width:100%;border-collapse:separate;border-spacing:0}
.svst-screener-tablewrap th,.svst-screener-tablewrap td{padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.06);font-size:12px;text-align:left;vertical-align:top;color:#111}
.svst-screener-tablewrap th{font-weight:900;background:rgba(0,0,0,.015)}
.svst-screener-tablewrap td{color:#111}
.svst-screener-tablewrap td a{color:#111;text-decoration:none;font-weight:900}
.svst-screener-tablewrap td a:hover{text-decoration:underline}


/* --- Screener ultra-override (fix theme forcing white text) --- */
.svst-screener-tablewrap table th,
.svst-screener-tablewrap table td{
  color:#111 !important;
}
.svst-screener-tablewrap table td a,
.svst-screener-tablewrap table td a:visited,
.svst-screener-tablewrap table td a span,
.svst-screener-tablewrap table td span{
  color:#111 !important;
}
.svst-screener-tablewrap table td:first-child,
.svst-screener-tablewrap table td:first-child *{
  color:#111 !important;
  font-weight:900;
}

/* === SVST: Loading overlay while fetching profile (CafeF priority fetch + DB read) === */
.svst-profile { position: relative; }
.svst-loading-overlay{
  position:absolute; inset:0;
  display:none;
  align-items:center; justify-content:center;
  flex-direction:column;
  gap:10px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(2px);
  z-index: 50;
  border-radius: 16px;
}
.svst-root.svst-loading .svst-loading-overlay{ display:flex; }
.svst-spinner{
  width:34px; height:34px;
  border-radius:50%;
  border: 3px solid rgba(0,0,0,0.12);
  border-top-color: rgba(0,0,0,0.55);
  animation: svstSpin 0.9s linear infinite;
}
@keyframes svstSpin { to { transform: rotate(360deg); } }
.svst-loading-text{
  font-size: 13px;
  color: rgba(0,0,0,0.72);
}



/* Screener report header */
.svst-report-title{font-size:16px;font-weight:800;margin-top:10px;margin-bottom:4px;}


/* ===== SVST Funnel (Alert Settings) ===== */
.svst-funnel{max-width:980px;margin:18px auto;padding:0 12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
.svst-funnel-hero{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;box-shadow:0 6px 18px rgba(0,0,0,.06);padding:16px 16px 12px}
.svst-funnel-title{margin:0 0 6px;font-size:28px;line-height:1.15;font-weight:900;color:#0f172a}
.svst-funnel-sub{color:#475569;font-size:14px;line-height:1.4}
.svst-funnel-steps{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.svst-step{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid rgba(0,0,0,.08);border-radius:999px;background:rgba(0,0,0,.015)}
.svst-step .n{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:12px;background:#0f172a;color:#fff}
.svst-step .t{font-size:12px;font-weight:800;color:#0f172a;white-space:nowrap}
.svst-funnel-tabs{display:flex;gap:10px;margin:12px 0 0}
.svst-tab{border:1px solid rgba(0,0,0,.10);background:#fff;border-radius:999px;padding:8px 12px;font-weight:800;cursor:pointer}
.svst-tab.is-active{background:#0f172a;color:#fff;border-color:#0f172a}
.svst-funnel-body{margin-top:12px}
.svst-pane{display:none}
.svst-pane.is-active{display:block}
@media (max-width:640px){
  .svst-funnel-title{font-size:22px}
  .svst-step .t{white-space:normal}
}

/* 107.128: Owner resource panel compact/readable UI */
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-panel{padding:13px 14px!important;border-radius:24px!important;overflow:hidden!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-panel h3{font-size:16px!important;margin:0 0 10px!important;display:flex!important;align-items:center!important;gap:8px!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-panel h3:before{content:'📊';width:26px;height:26px;border-radius:11px;display:grid;place-items:center;background:rgba(255,248,220,.9);border:1px solid rgba(215,165,41,.35);font-size:14px}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-list{display:grid!important;gap:7px!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-row{display:grid!important;grid-template-columns:108px minmax(0,1fr) 86px!important;gap:8px!important;align-items:center!important;min-height:22px!important;font-size:11.5px!important;color:#0f172a!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-row>span:first-child{font-size:11px!important;line-height:1.1!important;white-space:normal!important;color:#334155!important;font-weight:950!important;overflow:visible!important;text-overflow:clip!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-row b{font-size:11px!important;line-height:1!important;text-align:right!important;color:#0f172a!important;background:transparent!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-bar{height:8px!important;border-radius:999px!important;background:rgba(226,232,240,.82)!important;overflow:hidden!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.05)!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-queue{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:11px 0 8px!important;clear:both!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-queue span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;padding:8px 9px!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(248,250,252,.72))!important;border:1px solid rgba(226,232,240,.86)!important;color:#475569!important;font-size:11px!important;font-weight:900!important;line-height:1.25!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;text-shadow:none!important;white-space:normal!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-queue span b{display:inline-block!important;min-width:34px!important;text-align:right!important;color:#0f172a!important;font-size:12px!important;font-weight:950!important;white-space:nowrap!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-row-soft{margin-top:3px!important;padding-top:7px!important;border-top:1px dashed rgba(203,213,225,.75)!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-desc{display:block!important;white-space:normal!important;overflow:hidden!important;line-height:1.25!important;color:#64748b!important;background:rgba(255,255,255,.66)!important;border-radius:12px!important;padding:6px 8px!important}
body .svre-owner-page-breakout .svre-owner-quick .svre-quota-status{margin-top:9px!important;padding:9px 10px!important;border-radius:15px!important;font-size:11.5px!important;line-height:1.35!important;color:#475569!important;background:rgba(255,255,255,.88)!important;max-height:none!important;overflow:visible!important}
@media(max-width:760px){body .svre-owner-page-breakout .svre-owner-quick .svre-quota-row{grid-template-columns:92px minmax(0,1fr) 72px!important}body .svre-owner-page-breakout .svre-owner-quick .svre-quota-queue{grid-template-columns:1fr!important}}

/* 107.128: admin resource detail labels */
.svre-admin-projects .svre-owner-resource-grid span{min-height:58px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.svre-admin-projects .svre-owner-resource-grid b{font-size:16px!important;line-height:1.05!important}
.svre-admin-projects .svre-owner-resource-grid em{margin-top:4px!important;line-height:1.25!important}
