/* TrustScan internal panel. Colours and buttons come from tokens.css and base.css, so dark mode works. */
body.bt { margin: 0; }
.bt-app { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.bt-side { background: var(--neutral-0); border-right: 1px solid var(--neutral-30); padding: 1.25rem 0.75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.bt-brand { font: 600 1.125rem/1.2 var(--font-display); padding: 0 0.75rem 1rem; color: var(--neutral-100); }
.bt-brand small { display: block; font: 400 0.75rem/1.4 var(--font-body); color: var(--neutral-text-soft); }
.bt-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.bt-nav a { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem; color: var(--neutral-nav); text-decoration: none; font-size: 0.9375rem; }
.bt-nav a:hover { background: var(--page-bg); }
.bt-nav a[aria-current="page"] { background: var(--blue-100); color: var(--blue-700); font-weight: 500; }
.bt-nav .icon svg { width: 1.125rem; height: 1.125rem; }
.bt-main { padding: 1.5rem 2rem 3rem; min-width: 0; }
.bt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.bt-head h1 { font: 600 1.5rem/1.2 var(--font-display); margin: 0 0 0.25rem; color: var(--neutral-100); }
.bt-head p { margin: 0; color: var(--neutral-text-soft); font-size: 0.875rem; }
.bt-card { background: var(--neutral-0); border: 1px solid var(--neutral-30); border-radius: var(--radius-panel); padding: 1.25rem; box-shadow: var(--shadow-xs); }
.bt-card h2 { font: 600 1rem/1.3 var(--font-display); margin: 0 0 0.75rem; color: var(--neutral-100); }
.bt-grid { display: grid; gap: 1rem; }
.bt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bt-grid-2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.bt-stat .label { font-size: 0.8125rem; color: var(--neutral-text-soft); }
.bt-stat .value { font: 600 1.625rem/1.2 var(--font-display); color: var(--neutral-100); margin-top: 0.25rem; }
.bt-toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.875rem; }
.bt-toolbar .field__input { width: auto; min-width: 11rem; height: 2.5rem; padding: 0 0.875rem; }
.bt-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.bt-table th { text-align: left; font-weight: 500; color: var(--neutral-text-soft); padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--neutral-30); background: var(--surface-muted); }
.bt-table td { padding: 0.75rem; border-bottom: 1px solid var(--neutral-30); color: var(--neutral-100); vertical-align: middle; }
.bt-table tr.is-link { cursor: pointer; }
.bt-table tr.is-link:hover td { background: var(--surface-muted); }
.bt-muted { color: var(--neutral-text-soft); font-size: 0.8125rem; }
.bt-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bt-btn { height: 2.5rem; padding: 0 1rem; font-size: 0.875rem; }
.bt-btn--danger { background: var(--red-600); color: #fff; border: 0; border-radius: var(--radius-button); font: 500 0.875rem/1 var(--font-display); height: 2.5rem; padding: 0 1rem; cursor: pointer; }
.bt-btn--danger:disabled { opacity: 0.5; cursor: not-allowed; }
.bt-check { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid var(--neutral-30); }
.bt-check:last-child { border-bottom: 0; }
.bt-check input { margin-top: 0.25rem; width: 1.125rem; height: 1.125rem; }
.bt-check strong { display: block; font-weight: 500; color: var(--neutral-100); }
.bt-check span { font-size: 0.8125rem; color: var(--neutral-text-soft); }
.bt-kv { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.5rem 1rem; font-size: 0.875rem; margin: 0; }
.bt-kv dt { color: var(--neutral-text-soft); }
.bt-kv dd { margin: 0; color: var(--neutral-100); }
.bt-post { border: 1px solid var(--neutral-30); border-radius: 0.75rem; padding: 1rem; background: var(--surface-muted); font-size: 0.9375rem; line-height: 1.5; color: var(--neutral-100); }
.bt-pic { width: 100%; height: 10rem; border: 1px dashed var(--dashed); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface-muted); color: var(--neutral-text-soft); font-size: 0.8125rem; }
.bt-pic img { width: 100%; height: 100%; object-fit: contain; }
.bt-form { display: flex; flex-direction: column; gap: 1rem; }
.bt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bt-login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.bt-login .bt-card { width: min(24rem, 100%); }
.bt-theme { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; }
@media (max-width: 900px) {
  .bt-app { grid-template-columns: 1fr; }
  .bt-side { position: static; height: auto; }
  .bt-grid-4, .bt-grid-2, .bt-two { grid-template-columns: 1fr; }
  .bt-main { padding: 1rem; }
}

/* Sign-in screens (match the Figma admin sign-in frames) */
.bt-auth { min-height: 100vh; display: grid; grid-template-columns: 560px minmax(0, 1fr); }
.bt-auth-brand { background: #0055cc; color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.bt-auth-name { font: 600 1.375rem/1.2 var(--font-display); margin: 0; }
.bt-auth-message { display: flex; flex-direction: column; gap: 1.5rem; }
.bt-auth-message h2 { font: 600 2.5rem/3rem var(--font-display); margin: 0; max-width: 27rem; }
.bt-auth-message p { font: 400 1rem/1.5 var(--font-body); margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 27rem; }
.bt-auth-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; }
.bt-auth-steps li { display: flex; align-items: center; gap: 0.75rem; font: 500 0.9375rem/1.4 var(--font-body); }
.bt-auth-steps li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; flex-shrink: 0; }
.bt-auth-foot { font: 400 0.8125rem/1.5 var(--font-body); margin: 0; color: rgba(255, 255, 255, 0.7); max-width: 27rem; }
.bt-auth-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; padding: 2rem; background: var(--page-bg); }
.bt-auth-logo { width: 120px; height: auto; }
.bt-auth-card { background: var(--neutral-0); border: 1px solid var(--neutral-30); border-radius: 24px; padding: 2rem; width: min(497px, 100%); display: flex; flex-direction: column; gap: 1.5rem; }
.bt-auth-card h1 { font: 600 1.5rem/2rem var(--font-display); margin: 0; color: var(--neutral-100); }
.bt-auth-card .bt-sub { font: 400 0.875rem/1.45 var(--font-body); margin: 0.375rem 0 0; color: var(--neutral-60); }
.bt-auth-card .field__label { font: 500 0.875rem/1.4 var(--font-body); color: var(--neutral-100); }
.bt-auth-card .field__input { height: 3rem; padding: 0 1rem; border-radius: 0.75rem; font-size: 0.875rem; box-shadow: none; }
.bt-auth-card .btn--primary { height: 3.25rem; border-radius: 0.75rem; }
.bt-auth-card .field--error .field__input { border-color: #e2483d; border-width: 1.5px; }
.bt-auth-card .field--error .field__label { color: #b42318; }
.bt-err { background: var(--red-50); color: var(--red-700); border-radius: 12px; padding: 0.75rem 0.875rem; font: 500 0.8125rem/1.45 var(--font-body); }
.bt-notice { background: var(--surface-muted); color: var(--neutral-60); border-radius: 10px; padding: 0.75rem; font: 400 0.75rem/1.5 var(--font-body); }
.bt-link-right { display: flex; justify-content: flex-end; }
.bt-link { color: var(--neutral-100); font: 500 0.875rem/1.4 var(--font-body); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.bt-link:hover { text-decoration: underline; }
.bt-links { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bt-otp { display: flex; gap: 0.75rem; justify-content: center; }
.bt-otp input { width: 3.5rem; height: 4rem; text-align: center; font: 500 1.5rem var(--font-display); border: 1px solid var(--neutral-30); border-radius: 12px; background: var(--neutral-0); color: var(--neutral-100); }
.bt-otp input:focus { outline: none; border: 2px solid var(--blue-600); }
.bt-otp.is-error input { border-color: #e2483d; }
.bt-auth-area > .bt-foot { font: 400 0.8125rem/1.5 var(--font-body); color: var(--neutral-60); text-align: center; width: min(497px, 100%); margin: 0; }
@media (max-width: 900px) {
  .bt-auth { grid-template-columns: 1fr; }
  .bt-auth-brand { padding: 2rem; }
  .bt-auth-message h2 { font-size: 1.75rem; line-height: 2.25rem; }
}
