/* SBI-1154/a: self-contained styles of the SCC skeleton (no CDN). Tokens follow the SCC prototype. */
:root{--bg:#eef0f4;--surface:#fff;--text:#111827;--text-2:#4b5563;--text-3:#6b7280;--border:#e5e7eb;
  --side:#0f172a;--on-side:#e5e7eb;--focus:#2563eb;--ok-bg:#ecfdf5;--ok:#047857;--err-bg:#fef2f2;--err:#b91c1c;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.5;
  min-height:100vh;display:flex;flex-direction:column}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.scc-top{background:var(--side);color:var(--on-side);display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:10px 16px}
.scc-top__brand{display:flex;align-items:center;gap:10px;font-weight:600}
.scc-top__mark{font-size:11px;font-weight:700;letter-spacing:.06em;border:1px solid currentColor;border-radius:6px;padding:1px 6px}
.scc-top__lang{display:flex;gap:4px}
.scc-top__lang a{color:var(--on-side);text-decoration:none;font-size:12px;font-weight:600;padding:4px 8px;border-radius:6px;opacity:.7}
.scc-top__lang a[aria-current]{opacity:1;background:rgba(255,255,255,.12)}
.scc-main{flex:1;width:100%;max-width:880px;margin:0 auto;padding:24px 16px}
h1{font-size:22px;line-height:1.3;margin:0 0 8px}
h2{font-size:15px;margin:0 0 10px}
.scc-lead{color:var(--text-2);margin:0 0 18px;max-width:70ch}
.scc-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px 16px}
.scc-rows{margin:0;display:grid;gap:8px}
.scc-rows div{display:flex;flex-wrap:wrap;gap:4px 16px;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:8px}
.scc-rows div:last-child{border-bottom:0;padding-bottom:0}
.scc-rows dt{color:var(--text-3)}
.scc-rows dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.scc-chip{display:inline-block;font-size:12px;font-weight:600;border-radius:999px;padding:0 10px}
.scc-chip--ok{background:var(--ok-bg);color:var(--ok)}
.scc-chip--err{background:var(--err-bg);color:var(--err)}
.scc-foot{color:var(--text-3);font-size:12px;text-align:center;padding:12px 16px}
/* SBI-1166: sign-in pages */
.scc-auth{max-width:420px;margin:24px auto 0;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:22px 20px}
.scc-form{display:grid;gap:8px;margin:0 0 12px}
.scc-form label{font-size:13px;font-weight:600;color:var(--text-2)}
.scc-form input[type=email],.scc-form input[type=password]{font:inherit;color:inherit;background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:9px 10px;width:100%;margin-bottom:6px}
.scc-check{display:flex;align-items:center;gap:8px;font-weight:400!important}
.scc-btn{font:inherit;font-weight:600;color:#fff;background:#1d4ed8;border:0;border-radius:8px;padding:10px 14px;cursor:pointer;min-height:44px}
.scc-btn:hover{background:#1e40af}
a.scc-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}
.scc-btn--ghost{background:#fff;color:#1d4ed8;border:1px solid #c7d2fe}
.scc-btn--ghost:hover{background:#eef2ff}
.scc-or{margin:14px 0 6px}
.scc-or .scc-btn{width:100%}
.scc-note{border-radius:8px;padding:8px 12px;margin:0 0 12px;font-size:14px}
.scc-note--err{background:var(--err-bg);color:var(--err)}
.scc-note--ok{background:var(--ok-bg);color:var(--ok)}
.scc-hint{color:var(--text-3);font-size:13px;margin:0 0 10px}
.scc-auth a{color:var(--focus)}
.scc-top__lang{align-items:center}
.scc-top__out{margin:0 0 0 8px}
.scc-top__out button{font:inherit;font-size:12px;font-weight:600;color:var(--on-side);background:transparent;border:1px solid rgba(255,255,255,.35);border-radius:6px;padding:3px 9px;cursor:pointer}

/* SBI-1168 B2: the frame of a signed-in page: dark side menu, header with search and scope, content */
.scc-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.scc-skip{position:absolute;left:-999px;top:8px;background:#fff;color:#1d4ed8;padding:8px 12px;border-radius:8px;z-index:50}
.scc-skip:focus{left:8px}
body.scc-app{display:block;padding:16px}
/* SBI-1169: the frame follows the SCC prototype: one rounded app shell, dark grouped side menu, header with the
   page's title on the left and the scope and search on the right. */
.scc-shell{display:flex;min-height:calc(100vh - 32px);border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#f9fafb;box-shadow:0 1px 3px rgba(17,24,39,.08),0 1px 2px rgba(17,24,39,.05)}
.scc-side{flex:none;width:212px;background:#111827;color:#d1d5db;display:flex;flex-direction:column;padding:14px 10px;gap:2px}
.scc-side__brand{display:flex;align-items:center;gap:10px;padding:4px 8px 14px;color:#fff;text-decoration:none;font-weight:700;font-size:14px;line-height:18px}
.scc-side__logo{width:28px;height:28px;flex:none;border-radius:8px;background:linear-gradient(135deg,#2563eb,#7c3aed);display:grid;place-items:center;font-size:11px;font-weight:800;color:#fff;letter-spacing:.02em}
.scc-side__brand small{display:block;font-weight:500;color:#9ca3af;font-size:11px;line-height:14px}
.scc-menu{flex:1}
.scc-menu__sec{margin:0;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#9ca3af;padding:12px 10px 4px}
.scc-menu__rule{border:0;border-top:1px solid #1f2937;margin:10px 0 6px}
.scc-menu ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.scc-menu a{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;color:#d1d5db;text-decoration:none;font-size:13px;font-weight:500;line-height:20px}
.scc-menu a:hover{background:#1f2937}
.scc-menu a[aria-current]{background:#1f2937;color:#fff;box-shadow:inset 3px 0 0 #3b82f6}
.scc-menu a:focus-visible{outline:2px solid #93c5fd;outline-offset:-2px}
.scc-menu svg{flex:none}
.scc-menu__label{flex:1;min-width:0}
.scc-menu__count{flex:none;font-size:11px;font-weight:700;border-radius:999px;padding:0 7px;line-height:18px;background:#d97706;color:#fff}
.scc-side__foot{margin:auto 0 0;padding:10px;font-size:11px;line-height:16px;color:#9ca3af;border-top:1px solid #1f2937;overflow-wrap:anywhere}
.scc-side__foot b{color:#fff}
.scc-body{flex:1;min-width:0;display:flex;flex-direction:column}
.scc-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--border)}
.scc-head__title{min-width:0;flex:1 1 260px}
.scc-head__h{font-size:18px;line-height:24px;margin:0;font-weight:700;color:var(--text)}
.scc-head__title p:not(.scc-head__h){margin:0;color:var(--text-3);font-size:12px;line-height:16px;max-width:90ch}
.scc-head__title p:empty{display:none}
.scc-head__right{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.scc-head__search{display:flex;align-items:center;gap:6px;border:1px solid #d1d5db;border-radius:6px;padding:0 10px;background:var(--surface);margin:0;color:var(--text-3)}
.scc-head__search input{font:inherit;font-size:13px;color:var(--text);border:0;outline:0;background:transparent;width:200px;max-width:40vw;min-height:32px;padding:0}
.scc-head__search:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.scc-head__tenant{display:flex;gap:6px;margin:0}
.scc-head__tenant select{font:inherit;font-size:13px;color:var(--text);background:var(--surface);border:1px solid #d1d5db;border-radius:6px;padding:0 8px;min-height:34px;width:auto;max-width:220px}
.scc-head__tenant select:disabled{color:var(--text-3)}
.scc-head__go{font:inherit;font-size:13px;font-weight:600;border:1px solid var(--border);background:var(--surface);border-radius:6px;padding:0 10px;cursor:pointer}
.scc-head__window{display:inline-flex;margin:0;border:1px solid #d1d5db;border-radius:6px;overflow:hidden;background:var(--surface)}
.scc-head__window button{font:inherit;font-size:12px;font-weight:600;color:var(--text-2);background:transparent;border:0;cursor:pointer;padding:6px 10px;white-space:nowrap}
.scc-head__window button[aria-pressed="true"]{background:#1d4ed8;color:#fff}
.scc-head .scc-top__lang a{color:var(--text-2)}
.scc-head .scc-top__lang a[aria-current]{background:var(--bg);color:var(--text)}
.scc-head .scc-top__out button{color:var(--text);border-color:var(--border)}
.scc-content{flex:1;min-width:0}
.scc-app .scc-main{max-width:none;margin:0;padding:18px 20px 24px}
.scc-app .scc-main--list{max-width:none;padding:16px}
.scc-card+.scc-card,.scc-card+.scc-undo,.scc-note+.scc-card{margin-top:14px}
.scc-empty p{margin:0 0 8px;max-width:70ch}
.scc-note--info{background:#eff6ff;color:#1e40af}
.scc-links{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.scc-links a{font-weight:600;color:#1d4ed8}
.scc-diff{width:100%;border-collapse:collapse;font-size:14px}
.scc-diff th,.scc-diff td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--border);overflow-wrap:anywhere;vertical-align:top}
.scc-diff thead th{color:var(--text-3);font-weight:600;font-size:12px}
.scc-diff tr.is-changed td:last-child{font-weight:700;background:var(--ok-bg)}
.scc-undo{margin-top:14px}
.scc-undo .scc-hint{margin-top:8px}
@media (max-width:760px){
  body.scc-app{padding:0}
  .scc-shell{display:block;border:0;border-radius:0;min-height:100vh}
  .scc-side{width:auto;flex-direction:row;align-items:center;padding:6px 10px;gap:8px}
  .scc-side__brand{padding:0}
  .scc-side__brand,.scc-side__foot,.scc-menu__sec,.scc-menu__rule{display:none}
  .scc-menu{min-width:0;overflow-x:auto;display:flex;gap:2px}
  .scc-menu ul{display:flex;gap:2px;width:max-content}
  .scc-menu a{min-height:44px;white-space:nowrap}
  .scc-menu a[aria-current]{box-shadow:inset 0 -3px 0 #3b82f6}
  .scc-band .scc-band__hint{display:block}
  .scc-head{padding:10px 12px}
  .scc-head__right{margin-left:0}
  .scc-head__search{flex:1 1 100%}
  .scc-head__search input{width:100%;max-width:none}
  .scc-app .scc-main{padding:16px 12px 20px}
}
/* SBI-1166 PR4: the user page */
.scc-form--wide{max-width:460px}
.scc-form input[type=text],.scc-form select{font:inherit;color:inherit;background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:9px 10px;width:100%;margin-bottom:6px;min-height:40px}
.scc-form .scc-btn{justify-self:start;margin-top:6px}
.scc-static{margin:0 0 4px;font-weight:600}
.scc-linkbtn{font:inherit;font-weight:600;color:#1d4ed8;background:none;border:0;padding:4px 0;cursor:pointer;text-decoration:underline;min-height:32px}
.scc-diff form{margin:0}

/* SBI-1168 B3: a thread key, shown once */
.scc-key{display:block;padding:10px 12px;border:1px dashed var(--border);border-radius:8px;font-size:14px;overflow-wrap:anywhere;user-select:all}

/* a History table on a narrow screen: one change is one block, the columns never squeeze into letters */
@media (max-width:600px){
  .scc-diff thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .scc-diff,.scc-diff tbody,.scc-diff tr{display:block;width:100%}
  .scc-diff tr{padding:8px 0;border-bottom:1px solid var(--border)}
  .scc-diff th,.scc-diff td{display:block;border:0;padding:2px 0}
  .scc-diff tbody th{color:var(--text-3);font-size:12px;font-weight:600}
  .scc-diff td[data-label]::before{content:attr(data-label) ": ";color:var(--text-3);font-size:12px;font-weight:600}
}
/* SBI-1169: the Overview, as the SCC prototype lays it out */
.scc-chip{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:18px;padding:0 8px;white-space:nowrap}
.scc-dot{width:8px;height:8px;border-radius:50%;flex:none;display:inline-block;background:#6b7280}
.scc-dot--ok{background:#10b981}.scc-dot--warn{background:#f59e0b}.scc-dot--err{background:#ef4444}
.scc-muted{color:var(--text-3);font-size:12px}
.scc-band{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-radius:12px;padding:14px 18px;margin:0 0 16px;border:1px solid var(--border);background:var(--surface)}
.scc-band h2{font-size:17px;font-weight:700;line-height:22px;margin:0}
.scc-band p{margin:2px 0 0;font-size:13px;color:var(--text-2);overflow-wrap:anywhere}
.scc-band p a{color:var(--text)}
.scc-band__text{flex:1;min-width:220px}
.scc-band__light{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:18px;color:#fff;background:#6b7280}
.scc-band--ok{background:var(--ok-bg);border-color:#a7f3d0}.scc-band--ok h2{color:#047857}
.scc-band--ok .scc-band__light{background:#10b981}
.scc-band--warn{background:#fffbeb;border-color:#fde68a}.scc-band--warn h2{color:#92400e}
.scc-band--warn .scc-band__light{background:#f59e0b}
.scc-band--err{background:var(--err-bg);border-color:#fecaca}.scc-band--err h2{color:#b91c1c}
.scc-band--err .scc-band__light{background:#ef4444}
.scc-btn-bia{display:inline-flex;align-items:center;gap:6px;border:1px solid #7c3aed;color:#7c3aed;background:#f5f3ff;border-radius:6px;padding:6px 12px;font-size:13px;font-weight:600;text-decoration:none}
.scc-btn-bia.is-off{opacity:.6;cursor:not-allowed}
.scc-tiles--links{margin:0 0 16px}
.scc-tiles--links .scc-tile{color:inherit;text-decoration:none;position:relative;overflow:hidden;gap:6px;box-shadow:0 1px 3px rgba(17,24,39,.08),0 1px 2px rgba(17,24,39,.05)}
.scc-tiles--links .scc-tile:hover{border-color:#d1d5db}
.scc-tiles--links .scc-tile::before{content:"";position:absolute;inset:0 auto 0 0;width:4px}
.scc-tiles--links .scc-tile--ok::before{background:#10b981}
.scc-tiles--links .scc-tile--warn::before{background:#f59e0b}
.scc-tiles--links .scc-tile--err::before{background:#ef4444}
.scc-tiles--links .scc-tile__head .scc-chip{margin-left:auto}
.scc-tiles--links .scc-tile small{font-size:12px;font-weight:500;color:var(--text-3);margin-left:4px}
.scc-tiles--links .scc-tile__note{min-height:32px}
.scc-tiles.scc-tiles--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.scc-tile__value--small{font-size:17px}
.scc-block{margin:0 0 16px}
.scc-card--flush{padding:0;box-shadow:0 1px 3px rgba(17,24,39,.08),0 1px 2px rgba(17,24,39,.05)}
.scc-card__h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--border)}
.scc-card__h h2{font-size:14px;font-weight:700;margin:0}
.scc-card__h .scc-muted{margin-left:auto}
.scc-card__b{padding:14px 16px;margin:0}
.scc-tablewrap{overflow-x:auto}
.scc-table{border-collapse:collapse;width:100%;font-size:13px}
.scc-table th{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3);text-align:left;padding:8px 12px;border-bottom:1px solid var(--border);background:#f9fafb;white-space:nowrap}
.scc-table td{padding:9px 12px;border-bottom:1px solid var(--border)}
.scc-alerts,.scc-night{margin:0;padding:0;list-style:none;display:grid;gap:8px;font-size:14px}
.scc-night.scc-card{padding:14px 16px}
.scc-alerts li{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;border-bottom:1px solid var(--border);padding-bottom:8px}
.scc-alerts li:last-child{border-bottom:0;padding-bottom:0}
.scc-alerts a{font-weight:600;color:var(--text)}
.scc-alerts__age{color:var(--text-3);font-size:12px}
@media (max-width:700px){.scc-tiles.scc-tiles--three{grid-template-columns:minmax(0,1fr)}}
.scc-band__hint{display:none;font-size:12px;color:var(--text-3);flex-basis:100%}
