@import "https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap";

/* src/styles.css */
html,
body {
  margin: 0;
  padding: 0;
  background: #0d1929;
  font-family: "Instrument Sans", sans-serif;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(100, 130, 170, 0.25);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 130, 170, 0.45);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 130, 170, 0.3) transparent;
}
app-workspace {
  --navy: #111e35;
  --navy-mid: #1a3357;
  --gold: #3b82f6;
  --gold-bright:#60a5fa;
  --bg: #f0f4f8;
  --surface: #ffffff;
  --border: #dde4ee;
  --text: #1e2d45;
  --text-sub: #5a7090;
  --text-muted: #8fa5bc;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-bd: #bbf7d0;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --radius: 12px;
  --sidebar-w: 240px;
  display: block;
  height: 100vh;
  overflow: hidden;
  font-family:
    "Instrument Sans",
    system-ui,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
.workspace {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.logo-icon {
  width: 32px;
  height: 32px;
  background:
    linear-gradient(
      135deg,
      var(--gold-bright),
      var(--gold));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #12243d;
  flex-shrink: 0;
}
.logo-text {
  font-family: "DM Serif Display", serif;
  font-size: 20px;
  color: #f5f0e8;
  letter-spacing: -0.3px;
}
.logo-text span {
  color: var(--gold);
}
.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: rgba(201, 214, 234, 0.7);
  font-size: 14px;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.12s, color 0.12s;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.nav-item.active {
  background: rgba(59, 130, 246, 0.18);
  color: #ffffff;
}
.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--gold-bright),
      var(--gold));
  color: #12243d;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.user-details {
  overflow: hidden;
}
.user-email {
  font-size: 12px;
  color: #c9d6ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}
.sign-out-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: rgba(201, 214, 234, 0.5);
  font-size: 13px;
  font-family: "Instrument Sans", sans-serif;
  cursor: pointer;
  width: 100%;
  transition: background 0.12s, color 0.12s;
}
.sign-out-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #c9d6ea;
}
.main {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-greeting {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.topbar-greeting-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  line-height: 1;
  margin-bottom: 2px;
}
.topbar-greeting-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.assessment-picker {
  position: relative;
  min-width: 260px;
  max-width: 500px;
}
.ap-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.ap-trigger:hover,
.assessment-picker.open .ap-trigger {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.assessment-picker.ap-locked .ap-trigger {
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}
.assessment-picker.ap-locked .ap-chevron {
  display: none;
}
.ap-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ap-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #7b9ab8);
  line-height: 1;
  margin-bottom: 2px;
}
.ap-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-placeholder {
  color: var(--text-muted, #7b9ab8);
  font-weight: 400;
}
.ap-status-chip {
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.ap-chevron {
  font-size: 12px;
  color: var(--text-muted, #7b9ab8);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.ap-chevron.rotated {
  transform: rotate(180deg);
}
.ap-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
}
.ap-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: 420px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  z-index: 200;
  overflow: hidden;
}
.ap-search-wrap {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  gap: 8px;
}
.ap-search {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #1e293b;
  background: transparent;
}
.ap-search-icon {
  color: #94a3b8;
  font-size: 14px;
}
.ap-list {
  max-height: 280px;
  overflow-y: auto;
}
.ap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #1e293b;
  gap: 12px;
  transition: background 0.1s;
}
.ap-item:hover {
  background: #f8fafc;
}
.ap-item-active {
  background: #f0f9ff;
}
.ap-item-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-item-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  flex-shrink: 0;
}
.ap-empty {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.ap-footer {
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
}
.ap-new-btn {
  width: 100%;
  background: none;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ap-new-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}
.top-bar {
  justify-content: space-between;
}
.profile-menu {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.user-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.user-avatar-btn:hover {
  opacity: 0.88;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.profile-menu.open .user-avatar-btn {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}
.pd-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  z-index: 200;
  overflow: hidden;
}
.pd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.pd-avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pd-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.pd-email {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}
.pd-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0;
}
.pd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #1e293b;
  text-align: left;
  transition: background 0.1s;
}
.pd-item:hover {
  background: #f8fafc;
}
.pd-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.pd-item-expandable {
  justify-content: flex-start;
}
.pd-item-signout {
  color: #d97060;
}
.pd-item-signout:hover {
  background: rgba(217, 112, 96, 0.08);
  color: #c0533f;
}
.pd-chevron {
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s;
}
.pd-chevron.rotated {
  transform: rotate(180deg);
}
.pd-submenu {
  background: #f8fafc;
}
.pd-subitem {
  display: block;
  width: 100%;
  padding: 8px 16px 8px 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #475569;
  text-align: left;
  transition: background 0.1s, color 0.1s;
}
.pd-subitem:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.pd-toggle-wrap {
  margin-left: auto;
}
.pd-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.pd-toggle.on {
  background: #3b82f6;
}
.pd-toggle-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.pd-toggle.on .pd-toggle-knob {
  transform: translateX(16px);
}
.pd-version {
  padding: 8px 16px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}
.workspace.dark-mode {
  --bg: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --text: #e2e8f0;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
}
.workspace.dark-mode .ap-dropdown,
.workspace.dark-mode .pd-panel {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.workspace.dark-mode .ap-item,
.workspace.dark-mode .pd-item,
.workspace.dark-mode .pd-name {
  color: #e2e8f0;
}
.workspace.dark-mode .ap-item:hover,
.workspace.dark-mode .pd-item:hover {
  background: #273549;
}
.workspace.dark-mode .ap-item-active {
  background: #1e3a5f;
}
.workspace.dark-mode .ap-search {
  color: #e2e8f0;
}
.workspace.dark-mode .ap-divider,
.workspace.dark-mode .pd-divider {
  background: #334155;
}
.workspace.dark-mode .ap-search-wrap,
.workspace.dark-mode .ap-footer {
  border-color: #334155;
}
.workspace.dark-mode .pd-submenu {
  background: #162032;
}
.workspace.dark-mode .pd-subitem {
  color: #94a3b8;
}
.workspace.dark-mode .pd-subitem:hover {
  background: #1e293b;
  color: #e2e8f0;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.profile-avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.profile-display-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.profile-role-chip {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.account-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  max-width: 960px;
}
.account-right-col {
  display: flex;
  flex-direction: column;
}
.account-intro {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0 0 20px;
  line-height: 1.6;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s;
}
.contact-channel:hover {
  border-color: var(--gold);
}
.cc-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.cc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.cc-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 1px;
}
.account-message-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.billing-plan-badge {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 99px;
  background: var(--gold);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.billing-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.billing-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.br-label {
  color: var(--text-sub);
}
.br-value {
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}
.view {
  padding: 28px 32px 60px 32px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: "DM Mono", monospace;
  margin-bottom: 4px;
}
.page-title {
  font-family: "DM Serif Display", serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}
.header-meta {
  font-size: 14px;
  color: var(--text-sub);
  max-width: 340px;
  text-align: right;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.saq-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}
.selector-label {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
}
.saq-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.saq-tab {
  padding: 5px 14px;
  border-radius: 6px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.saq-tab.active {
  background: var(--navy);
  color: var(--gold-bright);
}
.saq-tab:not(.active):hover {
  background: var(--bg);
}
.saq-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.saq-badge {
  background: var(--navy);
  color: var(--gold-bright);
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.saq-info-body {
  flex: 1;
}
.saq-who {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.saq-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}
.saq-req-count {
  text-align: center;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 20px;
}
.req-num {
  font-family: "DM Serif Display", serif;
  font-size: 28px;
  color: var(--navy);
  line-height: 1;
}
.req-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.quick-actions-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.qa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.qa-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}
.qa-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.qa-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.qa-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}
.qa-arrow {
  position: absolute;
  bottom: 14px;
  right: 16px;
  color: var(--gold);
  font-size: 14px;
}
.how-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.how-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.how-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.how-text {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}
.how-arrow {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.panel-overflow-visible {
  overflow: visible !important;
}
.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fafbfd;
}
.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.panel-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.panel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.panel-badge-ok {
  background: #dcfce7;
  color: #15803d;
}
.panel-badge-warn {
  background: #fef3c7;
  color: #92400e;
}
.mono-val {
  font-family: "DM Mono", monospace;
  font-size: 13px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--gold-bright);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Instrument Sans", sans-serif;
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
}
.btn-primary:hover:not(:disabled) {
  background: var(--navy-mid);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary.compact {
  padding: 7px 14px;
  font-size: 13px;
}
.btn-primary.large {
  padding: 13px 28px;
  font-size: 15px;
  width: 100%;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Instrument Sans", sans-serif;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.btn-secondary:hover:not(:disabled) {
  background: #e4eaf2;
  border-color: #c0ccd8;
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-secondary.compact {
  padding: 7px 14px;
  font-size: 13px;
}
.btn-approve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  width: 100%;
  background:
    linear-gradient(
      135deg,
      #16a34a,
      #15803d);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: "Instrument Sans", sans-serif;
  cursor: pointer;
  transition: opacity 0.12s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
.btn-approve:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-approve:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-ghost-sm {
  padding: 5px 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  font-family: "Instrument Sans", sans-serif;
}
.btn-ghost-sm:hover {
  background: var(--bg);
}
.btn-delete {
  padding: 4px 8px;
  background: none;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  color: var(--red);
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-delete:hover:not(:disabled) {
  background: var(--red-bg);
}
.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.field-label.inline {
  flex-direction: row;
  align-items: center;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.field-input,
.field-select,
.field-textarea {
  padding: 9px 12px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: "Instrument Sans", sans-serif;
  outline: none;
  transition: border-color 0.12s, background-color 0.12s;
  width: 100%;
  box-sizing: border-box;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--navy);
  background-color: var(--surface);
}
.field-input.sm {
  width: 80px;
  padding: 6px 10px;
}
.field-textarea {
  resize: vertical;
  min-height: 80px;
}
.field-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7090' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.msg-success {
  padding: 10px 14px;
  background: var(--green-bg);
  border: 1px solid var(--green-bd);
  border-radius: 8px;
  font-size: 13px;
  color: var(--green);
}
.msg-error {
  padding: 10px 14px;
  background: var(--red-bg);
  border: 1px solid #fca5a5;
  border-radius: 8px;
  font-size: 13px;
  color: var(--red);
}
.approve-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--navy);
  background: #e8edf5;
}
.drop-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.drop-zone.small {
  padding: 18px 14px;
}
.drop-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.small-icon {
  font-size: 20px;
}
.drop-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.drop-types {
  font-size: 12px;
  color: var(--text-muted);
}
.selected-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-sub);
}
.info-box {
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
}
.info-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}
.info-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.search-icon {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: "Instrument Sans", sans-serif;
}
.search-input::placeholder {
  color: var(--text-muted);
}
.search-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-sub);
  font-size: 13px;
  padding: 5px 24px 5px 8px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a7090' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}
.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  min-height: 500px;
}
.results-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-y: auto;
  max-height: 640px;
}
.q-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.q-item:last-child {
  border-bottom: none;
}
.q-item:hover {
  background: var(--bg);
}
.q-item.active {
  background: #eef2f8;
  border-left: 3px solid var(--navy);
}
.q-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.4;
}
.q-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.q-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.q-detail.empty-detail {
  align-items: center;
  justify-content: center;
}
.q-detail-head h2 {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  margin: 0 0 10px;
}
.q-meta-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.meta-chip {
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
}
.q-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
}
.q-text-sm {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}
.view--answers {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rq-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}
.rq-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rq-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.rq-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.rq-sidebar-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 2px 7px;
}
.rq-loading,
.rq-empty {
  padding: 24px 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.rq-empty-link {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  margin-top: 8px;
  display: block;
}
.rq-list {
  flex: 1;
  overflow-y: auto;
}
.rq-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.1s;
}
.rq-item:hover {
  background: #f8fafc;
}
.rq-item-active {
  background: #f0f4ff !important;
  border-left: 3px solid var(--gold);
}
.rq-item-approved {
  opacity: 0.75;
}
.rq-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.rq-item-id {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  flex: 1;
}
.rq-conf-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 6px;
}
.rq-conf-high {
  background: #dcfce7;
  color: #16a34a;
}
.rq-conf-mid {
  background: #fef9c3;
  color: #92400e;
}
.rq-conf-low {
  background: #fee2e2;
  color: #dc2626;
}
.rq-item-status {
  margin-top: 4px;
}
.rq-badge-approved {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
}
.rq-badge-draft {
  font-size: 11px;
  color: var(--text-muted);
}
.rq-detail {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
}
.answer-view {
  display: contents;
}
.aw-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}
.aw-back {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.aw-back:hover {
  color: var(--gold);
}
.aw-req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.aw-req-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.aw-req-id-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.aw-req-id {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  font-family: "DM Mono", monospace;
}
.aw-status {
  font-size: 11px;
}
.aw-req-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}
.aw-req-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.aw-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
}
.aw-tag--framework {
  background: #e0e7ff;
  color: #3730a3;
}
.aw-tag--saq {
  background: #fef3c7;
  color: #92400e;
}
.aw-tag--domain {
  background: var(--bg);
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.aw-req-section {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.aw-req-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.aw-req-section-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.aw-testing {
  color: var(--text-sub);
  font-style: italic;
}
.aw-req-mapping {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.aw-mapping-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.aw-mapping-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}
.aw-mapping-key {
  color: var(--text-sub);
  min-width: 90px;
  flex-shrink: 0;
}
.aw-mapping-val {
  color: var(--text);
  font-weight: 600;
}
.aw-status-row {
  padding: 14px 20px;
}
.aw-status-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.aw-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  padding: 0 20px;
  border: 1px solid var(--border);
}
.aw-tabs .ans-tab {
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 18px;
  margin-bottom: -1px;
  font-size: 13px;
  font-weight: 600;
}
.aw-tabs .ans-tab.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}
.aw-tab-count {
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 6px;
  margin-left: 4px;
}
.aw-answer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 400px;
}
.aw-approved-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  color: #15803d;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.btn-reopen {
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  background: none;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
  flex-shrink: 0;
}
.btn-reopen:hover:not(:disabled) {
  background: #dcfce7;
}
.btn-reopen:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.aw-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aw-toolbar-left {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 28px;
}
.btn-ai-draft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-ai-draft:hover:not(:disabled) {
  background: var(--gold-bright, #60a5fa);
  transform: translateY(-1px);
}
.btn-ai-draft:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-ai-regen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted, #7b9ab8);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ai-regen:hover:not(:disabled) {
  border-color: var(--gold, #3b82f6);
  color: var(--gold, #3b82f6);
}
.btn-ai-regen:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-danger-outline:hover:not(:disabled) {
  background: #ef4444;
  color: #fff;
}
.btn-danger-outline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.answer-textarea.aw-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.7;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  min-height: 240px;
}
.answer-textarea.aw-textarea:focus {
  border-color: var(--gold);
  background: var(--surface);
}
.answer-textarea.aw-textarea:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.aw-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.aw-approve-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.aw-evidence-intro,
.aw-history-intro {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.le-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.le-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.le-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.le-section-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 1px 7px;
}
.le-spinner {
  display: inline-block;
}
.le-section-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.le-action-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.le-action-btn:hover {
  background: rgba(59, 130, 246, 0.18);
}
.le-action-btn-busy {
  opacity: 0.5;
  pointer-events: none;
}
.le-upload-busy {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}
.le-picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.le-picker-empty {
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.le-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.le-picker-item:last-child {
  border-bottom: none;
}
.le-picker-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.le-picker-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  width: 36px;
  flex-shrink: 0;
}
.le-picker-name {
  font-size: 12px;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.le-picker-link-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 5px;
  padding: 2px 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.le-picker-link-btn:hover {
  background: rgba(59, 130, 246, 0.12);
}
.le-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 0;
}
.le-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.le-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.le-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.le-item-source-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.le-source-auto {
  color: var(--gold);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}
.le-source-upload {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.25);
}
.le-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.le-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.le-unlink-btn {
  font-size: 11px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.1s, border-color 0.1s;
}
.le-unlink-btn:hover {
  color: var(--red, #ef4444);
  border-color: var(--red, #ef4444);
}
@media (max-width: 900px) {
  .aw-layout {
    grid-template-columns: 1fr;
  }
}
.meta-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.answer-tabs {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
}
.ans-tab {
  padding: 5px 14px;
  border-radius: 6px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  font-family: "Instrument Sans", sans-serif;
}
.ans-tab.active {
  background: var(--navy);
  color: var(--gold-bright);
}
.ans-tab:not(.active):hover {
  background: var(--bg);
}
.answer-panel {
  min-height: 300px;
}
.draft-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.conf-badge {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.conf-badge.high {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-bd);
}
.conf-badge.med {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid #fde68a;
}
.conf-badge.low {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid #fca5a5;
}
.status-chip {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.status-chip.approved {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-bd);
}
.status-chip.draft {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.answer-textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.65;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}
.answer-textarea:focus {
  border-color: var(--navy);
  background: var(--surface);
}
.answer-save-status {
  font-size: 11px;
  font-weight: 600;
}
.answer-save-status.saving {
  color: var(--text-sub);
}
.answer-save-status.saved {
  color: var(--green, #16a34a);
}
.evidence-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ev-doc {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.ev-score {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.ev-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}
.ev-id {
  font-size: 10px;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
}
.history-item {
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.history-item:hover {
  background: var(--bg-card);
  border-color: var(--border);
}
.history-item.hi-selected {
  border-color: var(--gold);
  background: rgba(59, 130, 246, 0.06);
}
.hi-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hi-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}
.hi-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  max-height: 80px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}
.hi-active-badge {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}
.hi-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}
.hi-use-btn {
  font-size: 12px;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
}
.hi-use-btn:hover {
  text-decoration: underline;
}
.doc-list-section {
  margin-top: 28px;
}
.doc-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.doc-list-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.doc-list-count {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}
.doc-list-loading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.doc-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px dashed var(--border);
}
.doc-table {
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.doc-row {
  display: grid;
  grid-template-columns: 2fr 80px 120px 60px 70px 90px 40px;
  align-items: center;
  padding: 10px 14px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.doc-row:last-child {
  border-bottom: none;
}
.doc-row-head {
  background: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 14px;
}
.doc-row:not(.doc-row-head):hover {
  background: rgba(255, 255, 255, 0.02);
}
.doc-row-deleting {
  opacity: 0.4;
  pointer-events: none;
}
.dc-name {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-icon {
  flex-shrink: 0;
}
.dc-type {
  font-size: 12px;
}
.dc-domain {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-blocks {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}
.dc-size {
  font-size: 12px;
  color: var(--text-muted);
}
.dc-date {
  font-size: 11px;
  color: var(--text-muted);
}
.dc-actions {
  display: flex;
  justify-content: center;
}
.doc-type-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.12);
  color: var(--gold);
}
.doc-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
.doc-del-btn:hover:not(:disabled) {
  color: #e05c5c;
  background: rgba(224, 92, 92, 0.1);
}
.doc-del-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.export-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}
.export-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.format-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.format-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.format-card.active {
  border-color: var(--navy);
  background: #eef2f8;
}
.format-card:not(.active):hover {
  border-color: #c0ccd8;
}
.format-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.format-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.user-row:last-child {
  border-bottom: none;
}
.user-row-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-row-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.role-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-size: 12px;
  padding: 4px 22px 4px 8px;
  color: var(--text-sub);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a7090' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  cursor: pointer;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
}
.empty-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.empty-icon {
  font-size: 32px;
}
.empty-icon.lg {
  font-size: 48px;
}
.empty-title {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}
.empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}
.list-empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.list-msg {
  padding: 16px;
  font-size: 13px;
  color: var(--text-sub);
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner.dark {
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--navy);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  padding: 1px 7px;
  border-radius: 20px;
}
.progress-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px 16px;
  margin-bottom: 24px;
}
.progress-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.progress-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.progress-pct {
  font-weight: 700;
  font-size: 22px;
  color: var(--gold);
  font-family: "DM Mono", monospace;
}
.progress-bar-wrap {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-bar-fill {
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--gold),
      var(--gold-bright));
  border-radius: 4px;
  transition: width 0.4s ease;
}
.progress-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pchip {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.pchip.complete {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.pchip.na {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}
.pchip.in-progress {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.pchip.not-started {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.q-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.status-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.stab {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
}
.stab:hover {
  border-color: var(--navy-mid);
  color: var(--text);
}
.stab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.stab-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
.stab:not(.active) .stab-count {
  background: var(--bg);
}
.stab.active .stab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.stab-count.in-prog {
  color: #1d4ed8;
}
.stab-count.na {
  color: #a16207;
}
.stab-count.done {
  color: #16a34a;
}
.q-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-input-sm {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  min-width: 180px;
}
.search-input-sm:focus {
  outline: none;
  border-color: var(--gold);
}
.q-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.q-item-body {
  flex: 1;
  min-width: 0;
}
.q-status-chip {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.chip-not-started {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.chip-in-progress {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.chip-na {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}
.chip-complete {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.q-req-id {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.q-status-actions {
  margin: 20px 0 16px;
}
.q-status-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.q-status-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.qsb {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all .15s;
}
.qsb:hover {
  border-color: var(--navy);
  color: var(--text);
}
.qsb.qsb-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.qsb.qsb-blue.qsb-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.qsb.qsb-amber.qsb-active {
  background: #a16207;
  border-color: #a16207;
  color: #fff;
}
.qsb.qsb-green.qsb-active {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.q-action-row {
  margin-top: 16px;
}
.view-questions {
  padding-bottom: 40px;
}
.q-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}
.q-ph-left {
  flex: 1;
}
.q-ph-right {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}
.q-count-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  vertical-align: middle;
}
.q-view-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.qvt-btn {
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}
.qvt-btn:hover {
  background: var(--surface);
  color: var(--text);
}
.qvt-btn.active {
  background: var(--navy);
  color: var(--gold);
}
.q-saq-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.q-saq-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-sub);
  transition: all 0.15s;
  letter-spacing: 0.03em;
}
.q-saq-tab:hover {
  border-color: var(--navy-mid);
  color: var(--text);
}
.q-saq-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.q-saq-tab-empty {
  font-size: 12px;
  color: var(--text-muted);
}
.q-load-sources {
  margin-bottom: 20px;
}
.q-load-toggle {
  margin-bottom: 12px;
}
.q-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.q-filter-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}
.q-filter-bar-right {
  flex-shrink: 0;
}
.q-status-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-import-ready {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #16a34a;
  color: #fff;
  border: 1.5px solid #16a34a;
  transition: background .15s;
}
.btn-import-ready:hover:not(:disabled) {
  background: #15803d;
  border-color: #15803d;
}
.btn-import-ready:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-sm {
  padding: 5px 12px !important;
  font-size: 13px !important;
}
.import-pending-warning {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #92400e;
  font-weight: 500;
}
.import-warning-icon {
  font-size: 16px;
}
.import-warning-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.btn-add-question {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  background: transparent;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.btn-add-question:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.field-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.btn-autocomplete {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--navy);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn-autocomplete:hover:not([disabled]) {
  background: var(--gold);
  color: var(--navy);
}
.btn-autocomplete-disabled,
.btn-autocomplete[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--border);
  color: var(--text-muted);
  background: var(--surface);
}
.btn-autocomplete[disabled]:hover {
  background: var(--surface);
  color: var(--text-muted);
}
.q-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s;
}
.q-pill:hover {
  border-color: var(--navy-mid);
  color: var(--text);
}
.q-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.q-pill-n {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--bg);
}
.q-pill.active .q-pill-n {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.q-pill-prog .q-pill-n {
  color: #1d4ed8;
}
.q-pill-na .q-pill-n {
  color: #a16207;
}
.q-pill-done .q-pill-n {
  color: #16a34a;
}
.q-search-box {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s;
}
.q-search-box:focus-within {
  border-color: var(--navy-mid);
}
.q-search-icon {
  padding: 0 8px 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.q-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  padding: 7px 8px 7px 0;
  min-width: 200px;
}
.q-search-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.q-search-btn:hover {
  background: var(--navy-mid);
}
.q-search-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.q-empty-state {
  text-align: center;
  padding: 60px 20px;
}
.q-empty-icon {
  font-size: 40px;
  opacity: 0.3;
  margin-bottom: 12px;
}
.q-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.q-empty-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.q-no-results {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.q-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.q-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.q-table thead {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.q-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-sub);
  white-space: nowrap;
}
.q-th-num {
  width: 40px;
}
.q-th-id {
  width: 90px;
}
.q-th-saq {
  width: 80px;
}
.q-th-domain {
  width: 140px;
}
.q-th-title {
  min-width: 200px;
}
.q-th-status {
  width: 110px;
}
.q-row {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.q-row:last-child {
  border-bottom: none;
}
.q-row:hover {
  background: #f8fafc;
}
.q-row-selected {
  background: #eff6ff;
}
.q-table td {
  padding: 10px 14px;
  vertical-align: middle;
}
.q-td-num {
  color: var(--text-muted);
  font-size: 12px;
}
.q-req-id-badge {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.12);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.q-req-id-badge.lg {
  font-size: 13px;
  padding: 3px 8px;
}
.q-req-id-empty {
  color: var(--border);
}
.q-saq-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.q-saq-badge.sm {
  font-size: 9px;
  padding: 1px 5px;
}
.q-td-domain {
  color: var(--text-sub);
  font-size: 12px;
}
.q-td-title {
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}
.q-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.qk-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qk-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 3px solid;
  border-bottom: 1px solid var(--border);
}
.qk-col-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.qk-col-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
}
.qk-cards {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  max-height: 600px;
  overflow-y: auto;
}
.qk-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qk-card:hover {
  border-color: var(--navy-mid);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.qk-card-active {
  border-color: var(--navy);
  background: #eff6ff;
}
.qk-card-id {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.qk-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.qk-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.qk-domain {
  font-size: 10px;
  color: var(--text-muted);
}
.qk-col-empty {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--border);
}
.q-inline-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 3px solid var(--navy);
}
.qid-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.qid-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qid-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.qid-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.qid-close:hover {
  color: var(--text);
}
.qid-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.qid-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}
.qid-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  .q-kanban {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .q-kanban {
    grid-template-columns: 1fr;
  }
}
.catalog-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.path-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.path-card.primary-path {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}
.path-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.path-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 20px;
}
.path-badge.outline {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.path-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.path-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}
.path-note {
  font-size: 11px;
  color: var(--text-muted);
}
.path-card--disabled {
  opacity: 0.55;
}
@media (max-width: 1100px) {
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-strip {
    flex-wrap: wrap;
  }
  .how-arrow {
    display: none;
  }
}
@media (max-width: 860px) {
  .sidebar {
    width: 64px;
    min-width: 64px;
  }
  .nav-label,
  .logo-text,
  .user-pill {
    display: none;
  }
  .sidebar-footer {
    padding: 10px 6px;
  }
  .sign-out-btn {
    justify-content: center;
  }
  .view {
    padding: 16px 16px 40px;
  }
  .two-col,
  .results-layout,
  .export-layout,
  .catalog-paths {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
  }
  .field-group {
    grid-template-columns: 1fr;
  }
}
.first-time-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbf0;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.db-assessment-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.db-selector-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}
.db-select {
  max-width: 420px;
  flex: 1;
}
.saq-ref-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}
.saq-ref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.saq-ref-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #7b9ab8);
}
.saq-ref-toggle {
  margin-left: auto;
}
.saq-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.saq-type-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted, #7b9ab8);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  letter-spacing: 0.03em;
}
.saq-type-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(59, 130, 246, 0.08);
}
.saq-type-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}
.saq-ref-detail {
  width: 100%;
  color: var(--text-muted, #7b9ab8);
  font-size: 12px;
  line-height: 1.5;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
@media (max-width: 540px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .format-selector {
    grid-template-columns: 1fr;
  }
  .saq-info-card {
    flex-direction: column;
  }
}
.workflow-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #7b9ab8);
  margin-bottom: 14px;
}
.workflow-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
}
.wf-step {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px 18px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.wf-step:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  background: #fdfaf4;
}
.wf-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.wf-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.wf-desc {
  font-size: 12px;
  color: var(--text-muted, #7b9ab8);
  line-height: 1.5;
  flex: 1;
}
.wf-go {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.wf-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 20px;
  padding: 0 6px;
  flex-shrink: 0;
  align-self: center;
}
@media (max-width: 900px) {
  .workflow-steps {
    flex-direction: column;
  }
  .wf-connector {
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .overview-charts {
    grid-template-columns: 1fr;
  }
}
.overview-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px 18px;
}
.overview-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.overview-card-body {
  display: flex;
  gap: 20px;
  align-items: center;
}
.donut-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}
.donut-svg {
  width: 120px;
  height: 120px;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.donut-big {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.donut-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted, #7b9ab8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.donut-empty {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted, #7b9ab8);
  text-align: center;
  background: var(--bg);
  border-radius: 50%;
  flex-shrink: 0;
}
.donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dleg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.dleg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dleg-label {
  flex: 1;
  color: var(--text);
}
.dleg-count {
  font-weight: 700;
  color: var(--text);
  min-width: 20px;
  text-align: right;
}
.nav-divider {
  padding: 16px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.nav-divider-line {
  margin: 12px 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-section-label {
  padding: 14px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.nav-section-line {
  margin: 12px 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stage-nav-item {
  align-items: flex-start;
  padding: 8px 12px;
}
.stage-nav-item .nav-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.stage-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(201, 214, 234, 0.5);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.15s, color 0.15s;
}
.stage-num.stage-done {
  background: rgba(22, 163, 74, 0.25);
  color: #4ade80;
}
.stage-num.stage-warn {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
.stage-num.stage-empty {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(201, 214, 234, 0.3);
}
.nav-item--sub {
  padding-left: 28px;
}
.nav-item.active .stage-num:not(.stage-done):not(.stage-warn) {
  background: rgba(59, 130, 246, 0.25);
  color: var(--gold-bright);
}
.stage-label-text {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  line-height: 1.2;
}
.stage-sub-text {
  font-size: 10px;
  color: rgba(201, 214, 234, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  line-height: 1.2;
}
.stage-badge-inline {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.6;
}
.stage-badge-inline.badge-ok {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
}
.stage-badge-inline.badge-warn {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
.stage-badge-inline.badge-empty {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(201, 214, 234, 0.4);
}
.active-assessment-banner {
  background:
    linear-gradient(
      135deg,
      var(--navy) 0%,
      var(--navy-mid) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  color: #fff;
}
.active-assessment-banner.empty {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}
.aab-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.aab-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.aab-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}
.aab-sep {
  margin: 0 6px;
  opacity: 0.4;
}
.aab-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aab-status-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.aab-open {
  background: rgba(255, 255, 255, 0.12);
  color: #c9d6ea;
}
.aab-in_progress {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}
.aab-action_required {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}
.aab-submitted {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}
.aab-under_review {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}
.aab-accepted {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}
.active-assessments-section {
  margin-bottom: 28px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #7b9ab8);
  margin-bottom: 12px;
}
.assessment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.assessment-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
.assessment-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.assessment-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.assessment-card.add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-style: dashed;
  color: var(--text-muted, #7b9ab8);
}
.assessment-card.add-card:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.add-icon {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.add-label {
  font-size: 12px;
  font-weight: 600;
}
.ac-type-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.ac-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.ac-client {
  font-size: 12px;
  color: var(--text-muted, #7b9ab8);
  margin-bottom: 10px;
}
.ac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ac-year {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #7b9ab8);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #7b9ab8);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr.row-selected td {
  background: rgba(59, 130, 246, 0.06);
}
.td-name {
  font-weight: 600;
  color: var(--text);
}
.td-email {
  font-size: 12px;
  color: var(--text-muted, #7b9ab8);
}
.type-badge {
  background: var(--navy);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.status-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.td-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}
.row-clickable {
  cursor: pointer;
}
.row-clickable:hover td {
  background: rgba(59, 130, 246, 0.04);
}
.panel-hint {
  font-size: 12px;
  color: var(--text-muted, #7b9ab8);
  font-style: italic;
}
.kebab-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.btn-kebab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted, #7b9ab8);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn-kebab:hover {
  background: var(--surface, rgba(255,255,255,0.06));
  border-color: var(--border);
  color: var(--text);
}
.kebab-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 100;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  min-width: 172px;
  padding: 6px 0;
  overflow: hidden;
}
.km-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.12s;
}
.km-item:hover {
  background: #f1f5f9;
}
.km-item-danger {
  color: #c0185a;
}
.km-item-danger:hover {
  background: #fff0f5;
}
.km-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
}
.km-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}
.km-confirm {
  padding: 10px 14px;
}
.km-confirm-label {
  font-size: 12px;
  font-weight: 600;
  color: #c0185a;
  display: block;
  margin-bottom: 8px;
}
.km-confirm-btns {
  display: flex;
  gap: 6px;
}
.btn-confirm-yes {
  background:
    linear-gradient(
      180deg,
      #c0185a 0%,
      #8b0a3e 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(139, 10, 62, 0.35);
  transition: transform 0.1s, box-shadow 0.15s;
}
.btn-confirm-yes:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(139, 10, 62, 0.45);
}
.btn-confirm-no {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-confirm-no:hover {
  border-color: #94a3b8;
  color: #334155;
}
.cde-badge {
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  padding: 3px 10px;
  white-space: nowrap;
}
.cde-badge-ok {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.cde-badge-warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.row-archived td:not(.td-actions) {
  opacity: 0.55;
}
.row-archived {
  background: rgba(0, 0, 0, 0.02);
}
.badge-archived {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 4px;
  padding: 2px 7px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.status-archived-label {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}
.td-muted {
  color: var(--text-muted, #7b9ab8);
  font-size: 13px;
}
.btn-toggle-archived {
  background:
    linear-gradient(
      180deg,
      #1e3a5f 0%,
      #132741 100%);
  color: #c9d6ea;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition:
    box-shadow 0.15s,
    transform 0.1s,
    background 0.15s,
    color 0.15s;
  letter-spacing: 0.03em;
  font-family: "Instrument Sans", sans-serif;
}
.btn-toggle-archived:hover {
  background:
    linear-gradient(
      180deg,
      #254878 0%,
      #1a3357 100%);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}
.btn-toggle-archived-on {
  background:
    linear-gradient(
      180deg,
      #3b82f6 0%,
      #9c7c2e 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.btn-toggle-archived-on:hover {
  background:
    linear-gradient(
      180deg,
      #60a5fa 0%,
      #b08c35 100%) !important;
  transform: translateY(-1px);
}
.td-cde {
  white-space: nowrap;
}
.btn-cde {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-muted);
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}
.btn-cde:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(59, 130, 246, 0.05);
}
.btn-cde-done {
  border-color: var(--green-bd);
  color: var(--green);
  background: var(--green-bg);
}
.btn-cde-done:hover {
  border-color: var(--green);
  background: #dcfce7;
}
.panel-body.no-pad {
  padding: 0;
}
.list-empty.padded {
  padding: 40px 20px;
  text-align: center;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border-radius: 16px;
  width: 480px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted, #7b9ab8);
  line-height: 1;
  padding: 2px 6px;
}
.modal-close:hover {
  color: var(--text);
}
.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 24px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}
.modal-wide {
  max-width: 760px;
  width: 90vw;
}
.modal-autocomplete {
  width: 520px;
}
.ac-coverage {
  margin-bottom: 16px;
}
.ac-cov-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 14px;
}
.ac-cov-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #15803d;
  font-weight: 500;
}
.ac-cov-ok-icon {
  font-size: 16px;
  color: #16a34a;
}
.ac-cov-warn {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 14px 16px;
}
.ac-cov-warn-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 6px;
}
.ac-cov-warn-icon {
  font-size: 16px;
  color: #f59e0b;
}
.ac-cov-warn-text {
  font-size: 12px;
  color: #78350f;
  margin: 0 0 10px;
  line-height: 1.5;
}
.ac-cov-bar-track {
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.ac-cov-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 3px;
  transition: width 0.4s;
}
.ac-cov-gap-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.ac-cov-gap-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #374151;
}
.ac-cov-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-ok {
  background: #16a34a;
}
.dot-miss {
  background: #d1d5db;
  border: 1px solid #9ca3af;
}
.ac-cov-gap-name {
  flex: 1;
}
.ac-cov-gap-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}
.ac-cov-gap-tag.aws {
  background: rgba(6, 182, 212, 0.12);
  color: #0e7490;
}
.ac-cov-gap-tag.upload {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  font-weight: 400;
  font-style: italic;
}
.ac-cov-actions {
  display: flex;
  justify-content: flex-end;
}
.ac-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.ac-desc strong {
  color: var(--navy);
  font-weight: 700;
}
.ac-desc-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.ac-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.ac-check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.ac-check-row:last-child {
  border-bottom: none;
}
.ac-check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 1px;
}
.ac-check-ok {
  background: #dcfce7;
  border: 1.5px solid #86efac;
  color: #16a34a;
}
.ac-check-fail {
  background: #fee2e2;
  border: 1.5px solid #fca5a5;
  color: #dc2626;
}
.ac-check-pending {
  background: rgba(59, 130, 246, 0.12);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  color: var(--gold);
  font-size: 14px;
}
.ac-check-loading {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
}
.ac-check-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}
.ac-check-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.ac-check-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.ac-check-sub-warn {
  color: #dc2626 !important;
}
.ac-running {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0 8px;
}
.ac-running-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.ac-running-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.ac-running-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.ac-progress-track {
  width: 100%;
  height: 10px;
  background: #e9eef5;
  border-radius: 99px;
  overflow: hidden;
}
.ac-progress-bar {
  height: 100%;
  border-radius: 99px;
  background:
    linear-gradient(
      90deg,
      #4ade80,
      #22d3ee,
      #818cf8,
      #f472b6,
      #facc15);
  background-size: 300% 100%;
  animation: ac-shimmer 2.5s linear infinite;
  transition: width 0.4s ease;
  min-width: 6px;
}
@keyframes ac-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}
.ac-running-msg {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  min-height: 18px;
  transition: opacity 0.4s;
}
.ac-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 8px;
  text-align: center;
}
.ac-done-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 2px solid var(--green-bd);
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ac-done-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.ac-done-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.ac-done-sub strong {
  color: var(--navy);
}
.btn-autocomplete-running {
  background: var(--navy) !important;
  color: var(--gold) !important;
  border-color: var(--gold) !important;
  opacity: 1 !important;
  cursor: default !important;
}
.btn-autocomplete-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spinner-small {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.modal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.sq-intro {
  font-size: 13px;
  color: var(--text-muted, #7b9ab8);
  margin: 0 0 20px;
  line-height: 1.6;
}
.sq-loaded-state {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 20px;
}
.sq-loaded-icon {
  font-size: 22px;
  color: #16a34a;
  line-height: 1;
}
.sq-loaded-text {
  font-size: 14px;
  font-weight: 600;
  color: #14532d;
}
.sq-loaded-note {
  font-size: 12px;
  color: #166534;
  margin-top: 4px;
}
.btn-link-inline {
  background: none;
  border: none;
  color: var(--gold);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.btn-link-inline:hover {
  opacity: 0.8;
}
.saq-type-static {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.saq-type-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.saq-type-warn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
}
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.btn-link:hover {
  opacity: 0.75;
}
.saq-type-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.saq-type-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
}
.str-badge {
  min-width: 68px;
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  margin-top: 2px;
}
.str-body {
  flex: 1;
}
.str-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.str-who {
  font-size: 12px;
  color: var(--text-muted, #7b9ab8);
  margin-bottom: 2px;
}
.str-req {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
}
.view--cde {
  display: flex;
  flex-direction: column;
}
.cde-page {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.cde-page-header {
  padding: 20px 40px 0;
  flex-shrink: 0;
}
.cde-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
}
.cde-title {
  font-family: "DM Serif Display", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 8px;
}
.cde-subtitle {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0 0 10px;
  line-height: 1.6;
  max-width: 520px;
}
.cde-assessment-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 3px 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cde-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 4px;
}
.cde-q-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.cde-q-note {
  font-size: 11px;
  color: var(--text-muted);
}
.cde-body {
  padding: 20px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cde-q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}
.cde-q-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
}
.cde-q-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.cde-q-content {
  flex: 1;
}
.cde-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
  padding: 16px 0 8px;
}
.cde-group-label--optional {
  color: var(--text-muted);
  margin-top: 8px;
}
.cde-q-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}
.cde-required {
  color: var(--red);
  font-weight: 700;
}
.cde-select {
  width: 100%;
  max-width: 420px;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7090' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-size: 15px;
}
.cde-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.cde-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cde-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  background: var(--bg);
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.cde-pill input[type=checkbox] {
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.cde-pill:hover {
  border-color: var(--gold);
  color: var(--text);
}
.cde-pill.active {
  border-color: var(--gold);
  background: rgba(59, 130, 246, 0.08);
  color: var(--navy);
  font-weight: 600;
}
.cde-q-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}
.cde-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.cde-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.cde-loading {
  padding: 60px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.cde-footer {
  padding: 16px 40px 40px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.cde-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cde-footer-note {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
}
.cde-save-btn {
  padding: 11px 32px;
  font-size: 14px;
  font-weight: 700;
  min-width: 260px;
  flex-shrink: 0;
}
.cde-q-card--locked {
  opacity: 0.75;
  background: var(--bg-card);
}
.cde-q-badge--locked {
  background: var(--border);
  color: var(--text-muted);
}
.cde-locked-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}
.cde-readonly-value {
  font-size: 15px;
  color: var(--text);
  padding: 6px 0;
  font-weight: 500;
}
.cde-readonly-notice {
  padding: 12px 20px;
  margin: 0 40px 16px;
  background: rgba(90, 112, 144, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}
.cde-readonly-notice--admin {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--text);
}
.ev-main-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}
.ev-upload-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ev-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ev-section-sub {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}
.ev-drop {
  min-height: 140px;
}
.ev-label-input {
  margin-top: -4px;
}
.ev-staged-files {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-staged-file {
  font-size: 12px;
  color: var(--text-sub);
  padding: 4px 8px;
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.ev-upload-btn {
  width: 100%;
  justify-content: center;
}
.ev-aws-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.ev-aws-label {
  font-weight: 600;
}
.ev-docs-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ev-docs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.ev-docs-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.ev-docs-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.ev-docs-loading {
  margin-left: auto;
}
.ev-docs-drag-hint {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}
.ev-refresh-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.ev-refresh-btn:hover {
  color: var(--gold);
}
.ev-docs-empty {
  padding: 14px 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.ev-doc-item.ev-doc-dragging {
  opacity: 0.35;
  background: rgba(59, 130, 246, 0.06);
}
.ev-doc-item.ev-doc-tagged {
  border-left: 3px solid rgba(59, 130, 246, 0.4);
}
.ev-doc-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.ev-tag-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  color: var(--gold);
  white-space: nowrap;
}
.ev-tag-remove {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 0;
  font-size: 9px;
  line-height: 1;
}
.ev-tag-remove:hover {
  color: #e87c7c;
}
.ev-tag-picker {
  position: relative;
}
.ev-tag-add {
  background: none;
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.ev-tag-add:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.ev-tag-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 220px;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.ev-tag-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.ev-tag-check:hover {
  background: rgba(255, 255, 255, 0.05);
}
.ev-tag-check input {
  accent-color: var(--gold);
  cursor: pointer;
}
.ev-doc-grip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 3px;
  flex-shrink: 0;
  width: 10px;
  padding: 1px 0;
}
.ev-doc-grip span {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  display: block;
}
.ev-doc-name {
  font-size: 12px;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-doc-domain-badge {
  font-size: 10px;
  color: var(--gold);
  background: rgba(59, 130, 246, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ev-del {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
}
.ev-guidance-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 16px;
}
.ev-guidance-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.ev-guidance-sub {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
}
.ev-guidance-empty {
  padding: 20px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.ev-guidance-intro {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.ev-domain-list {
  max-height: 520px;
  overflow-y: auto;
}
.ev-domain-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.ev-domain-row:last-child {
  border-bottom: none;
}
.ev-domain-row.ev-domain-drag-over {
  background: rgba(59, 130, 246, 0.14);
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.ev-domain-row.ev-domain-drag-over .ev-domain-name {
  color: var(--gold);
}
.ev-domain-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.ev-domain-header:hover {
  background: rgba(255, 255, 255, 0.03);
}
.ev-domain-chevron {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 12px;
}
.ev-domain-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.ev-domain-doc-count {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.ev-domain-count {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ev-domain-hint {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 14px 8px 32px;
  line-height: 1.4;
}
.ev-domain-body {
  padding: 0 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev-domain-docs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-domain-doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.ev-domain-no-docs {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0;
}
.ev-domain-staged {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ev-mini-upload {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
}
.ev-mini-browse {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--gold);
  font-family: inherit;
}
.ev-mini-browse:hover {
  text-decoration: underline;
}
.aws-collect-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 20px 24px;
  background:
    linear-gradient(
      135deg,
      #111e35 0%,
      #1a3357 100%);
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.aws-collect-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.aws-collect-icon {
  font-size: 28px;
  line-height: 1;
  margin-top: 2px;
}
.aws-collect-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.aws-collect-sub {
  font-size: 13px;
  color: #94b4d4;
  max-width: 560px;
  line-height: 1.5;
}
.btn-collect {
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-collect:hover {
  background: var(--gold-bright, #60a5fa);
}
.modal-collect {
  width: 620px;
  max-width: 95vw;
}
.collect-info {
  margin-bottom: 16px;
}
.aws-connected-panel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  margin-bottom: 12px;
}
.aws-conn-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aws-conn-body {
  flex: 1;
  min-width: 0;
}
.aws-conn-label {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 4px;
}
.aws-conn-arn {
  font-size: 12px;
  font-family: "DM Mono", monospace;
  color: #1e293b;
  word-break: break-all;
  margin-bottom: 2px;
}
.aws-conn-region {
  font-size: 11px;
  color: #64748b;
}
.aws-conn-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}
.aws-conn-disconnect {
  color: #dc2626 !important;
}
.aws-conn-disconnect:hover {
  color: #b91c1c !important;
}
.collect-method-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.cmt-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.cmt-btn:hover:not(.cmt-disabled) {
  border-color: #3b82f6;
  background: #fffef5;
}
.cmt-btn.cmt-active {
  border-color: #3b82f6;
  background: #fffef5;
}
.cmt-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cmt-icon {
  font-size: 20px;
  line-height: 1;
}
.cmt-btn strong {
  display: block;
  font-size: 13px;
  color: #1a202c;
}
.cmt-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 3px;
}
.cmt-badge-rec {
  background: #d1fae5;
  color: #065f46;
}
.cmt-badge-soon {
  background: #e2e8f0;
  color: #64748b;
}
.collect-policy-warn {
  margin-top: 8px;
  font-size: 12px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 6px;
  padding: 7px 10px;
}
.collect-policy-info {
  margin-top: 8px;
  font-size: 12px;
  color: #1e40af;
  background: #eff6ff;
  border-radius: 6px;
  padding: 7px 10px;
  line-height: 1.5;
}
.collect-policy-info code {
  font-family: "DM Mono", monospace;
  background: #dbeafe;
  padding: 1px 4px;
  border-radius: 3px;
}
.collect-intro {
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 12px;
}
.collect-steps {
  padding-left: 20px;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.collect-steps li {
  font-size: 13.5px;
  color: #2d3748;
  line-height: 1.6;
}
.collect-steps li strong {
  color: #1a202c;
}
.collect-steps li code {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  background: #edf2f7;
  border-radius: 4px;
  padding: 1px 5px;
  color: #2b6cb0;
}
.collect-link {
  color: #3b82f6;
  text-decoration: underline;
}
.collect-link:hover {
  color: #2563eb;
}
.collect-policy-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
}
.collect-policy-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-copy-policy {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--navy, #111e35);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-copy-policy:hover {
  background: var(--navy-mid, #1a3357);
}
.collect-policy-code {
  font-size: 11px;
  font-family: "DM Mono", monospace;
  color: #2d3748;
  white-space: pre;
  word-break: normal;
  overflow-x: auto;
  margin: 0;
  line-height: 1.55;
}
.collect-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.collect-progress {
  padding: 4px 0;
}
.collect-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.collect-progress-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.collect-progress-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
.collect-domains {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.collect-domain-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}
.collect-domain-row:last-child {
  border-bottom: none;
}
.collect-domain-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.cd-ok {
  background: #dcfce7;
  color: #16a34a;
}
.cd-err {
  background: #fee2e2;
  color: #dc2626;
}
.cd-run {
  background: #f1f5f9;
}
.cd-pend {
  background: #f8fafc;
  color: #94a3b8;
  font-size: 13px;
}
.collect-domain-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.collect-domain-blocks {
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
}
.collect-domain-err {
  font-size: 11px;
  color: #dc2626;
}
.ev-view {
  max-width: none;
  padding: 32px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}
.ev2-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.cov-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.cov-banner.cov-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(201, 214, 234, 0.5);
  font-size: 13px;
}
.cov-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cov-title {
  font-size: 14px;
  color: #c9d6ea;
}
.cov-all-ok {
  color: #4ade80;
  font-weight: 600;
}
.cov-pct {
  font-size: 20px;
  font-weight: 700;
  color: #fbbf24;
}
.cov-pct.cov-pct-ok {
  color: #4ade80;
}
.cov-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}
.cov-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.cov-bar-ok {
  background: #4ade80;
}
.cov-bar-warn {
  background: #fbbf24;
}
.cov-bar-empty {
  background: #ef4444;
}
.cov-gaps {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cov-gap-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(201, 214, 234, 0.7);
  padding: 2px 0;
}
.cov-gap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cov-dot-ok {
  background: #4ade80;
}
.cov-dot-miss {
  background: rgba(201, 214, 234, 0.2);
  border: 1px solid rgba(201, 214, 234, 0.3);
}
.cov-gap-domain {
  flex: 1;
}
.cov-gap-count {
  color: rgba(201, 214, 234, 0.4);
  font-size: 11px;
}
.cov-gap-aws {
  font-size: 10px;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  padding: 1px 7px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}
.cov-gap-upload {
  font-size: 10px;
  color: rgba(201, 214, 234, 0.35);
  font-style: italic;
}
.cov-gap-expand-icon {
  font-size: 8px;
  color: rgba(201, 214, 234, 0.3);
  margin-left: auto;
  flex-shrink: 0;
}
.cov-gap-row {
  flex-wrap: wrap;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 6px;
  transition: background 0.1s;
}
.cov-gap-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.cov-gap-row.cov-gap-row-expand {
  background: rgba(255, 255, 255, 0.04);
}
.cov-gap-detail {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 2px solid rgba(59, 130, 246, 0.4);
}
.cov-gap-detail-head {
  font-size: 11px;
  font-weight: 600;
  color: rgba(201, 214, 234, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.cov-gap-hint {
  font-size: 12px;
  color: #c9d6ea;
  line-height: 1.5;
  margin-bottom: 10px;
}
.cov-gap-upload-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-bright);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.12s;
}
.cov-gap-upload-btn:hover {
  background: rgba(59, 130, 246, 0.18);
}
.cov-footer {
  margin-top: 14px;
}
.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}
.ev2-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}
.ev-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.ev-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ev-card-ai {
  border-color: rgba(201, 168, 76, 0.35);
  background: #fffdf5;
}
.ev-card-upload {
  background: #f8fafc;
}
.ev-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ev-card-icon {
  font-size: 22px;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}
.ev-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 3px;
}
.ev-card-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}
.ev-ai-targets-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}
.ev-ai-targets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ev-ai-target {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
}
.ev-target-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a84c;
  margin-top: 4px;
  flex-shrink: 0;
}
.ev-target-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.ev-target-detail {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.ev-ai-no-questions {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
  flex: 1;
}
.ev-card-cta {
  margin-top: auto;
  align-self: flex-start;
}
.ev-card-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ev2-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.ev2-upload-zone.dragover {
  border-color: var(--gold);
  background: rgba(59, 130, 246, 0.04);
}
.ev2-drop-icon {
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.ev2-drop-text {
  font-size: 14px;
  color: var(--text-sub);
}
.ev2-browse-link {
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.ev2-drop-types {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.ev2-staged {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 8px;
  flex-wrap: wrap;
}
.ev2-staged-files {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.ev2-staged-file {
  font-size: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--text);
}
.ev2-label-input {
  width: 180px;
  flex-shrink: 0;
}
.ev2-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.ev2-table-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.ev2-count {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}
.ev2-loading {
  display: inline-flex;
  align-items: center;
}
.ev2-empty {
  padding: 28px 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.ev2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ev2-table thead th {
  text-align: left;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.ev2-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s;
}
.ev2-table tbody tr:last-child {
  border-bottom: none;
}
.ev2-table tbody tr:hover {
  background: #f8fafc;
}
.ev2-table tbody tr.ev2-row-tagged {
  background: rgba(59, 130, 246, 0.04);
}
.ev2-table td {
  padding: 10px 14px;
  vertical-align: middle;
}
.ev2-td-name {
  font-weight: 600;
  color: var(--text);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev2-td-type {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ev2-td-size {
  color: var(--text-sub);
  white-space: nowrap;
}
.ev2-td-date {
  color: var(--text-sub);
  white-space: nowrap;
}
.ev2-td-req {
  min-width: 200px;
}
.ev2-td-del {
  width: 40px;
  text-align: center;
}
.ev2-req-select {
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.ev2-req-select:hover {
  border-color: var(--gold);
}
.ev2-req-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}
.doc-del-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
}
.doc-del-btn:hover:not(:disabled) {
  color: var(--red);
  background: var(--red-bg);
}
.doc-del-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ev-workspace {
  display: flex;
  gap: 20px;
  height: calc(100vh - 200px);
  min-height: 400px;
  overflow: hidden;
  margin-top: 16px;
}
.ev-docs-panel {
  width: 300px;
  min-width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}
.ev-panel-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ev-panel-count {
  color: var(--text-sub);
}
.ev-panel-hint {
  margin-left: auto;
  font-size: 10px;
  font-style: italic;
  opacity: 0.7;
}
.ev-doc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-doc-empty {
  padding: 16px 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.ev-doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.ev-doc-item:hover {
  background: #faf8f2;
  border-color: var(--gold);
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.15);
}
.ev-doc-item.ev-doc-selected {
  background: #fffbee;
  border-color: var(--gold);
  box-shadow: 0 1px 6px rgba(59, 130, 246, 0.25);
}
.ev-doc-info {
  flex: 1;
  min-width: 0;
}
.ev-doc-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-doc-meta {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.ev-doc-domain-tag {
  font-size: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: #9a7a30;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}
.ev-domains-panel {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}
.ev-domains-loading {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-sub);
  font-size: 13px;
}
.ev-domain-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ev-domain-covered {
  border-color: #b2d4ae;
  background: #fafffe;
}
.ev-domain-open {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}
.ev-domain-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.ev-domain-header:hover {
  background: #f8f9fc;
}
.ev-domain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-ok {
  background: #52a84d;
  box-shadow: 0 0 5px rgba(82, 168, 77, 0.4);
}
.dot-miss {
  background: transparent;
  border: 1.5px solid #cbd5e1;
}
.ev-domain-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.ev-domain-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.ev-domain-qcount {
  color: var(--text-muted);
}
.ev-domain-dcount {
  color: #2d8a27;
  font-weight: 600;
}
.ev-domain-none {
  color: #c0592a;
  font-size: 10px;
  font-weight: 500;
}
.ev-domain-upload-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #9a7a30;
  padding: 4px 10px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 4px;
  cursor: pointer;
  background: rgba(59, 130, 246, 0.07);
  transition: background 0.15s;
  white-space: nowrap;
}
.ev-domain-upload-btn:hover {
  background: rgba(59, 130, 246, 0.18);
}
.ev-domain-chevron {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ev-domain-body {
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.ev-domain-upload-feedback {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  background: rgba(59, 130, 246, 0.06);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--text-sub);
}
.ev-question-row {
  padding: 12px 14px 12px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  position: relative;
}
.ev-question-row:last-child {
  border-bottom: none;
}
.ev-question-row:hover {
  background: #f4f6fa;
}
.ev-q-has-links {
  background: #f2faf2;
}
.ev-q-drop-target {
  background: #fffbee !important;
  outline: 1px dashed var(--gold);
  outline-offset: -3px;
}
.ev-q-content {
  margin-bottom: 6px;
}
.ev-q-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.ev-q-id {
  font-size: 10px;
  font-weight: 700;
  color: #9a7a30;
  background: rgba(59, 130, 246, 0.12);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.ev-q-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-complete {
  background: #52a84d;
}
.status-in_progress {
  background: #d4a017;
}
.status-na {
  background: #cbd5e1;
}
.status-not_started {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}
.ev-q-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 7px;
}
.ev-q-testing {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.55;
  background: #f1f5f9;
  border-left: 2px solid #cbd5e1;
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
}
.ev-q-testing-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.ev-q-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.ev-q-link-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  background: #edf7ec;
  border: 1px solid #a8d5a4;
  border-radius: 12px;
  font-size: 11px;
  color: #2a7a25;
  max-width: 260px;
}
.ev-q-link-icon {
  font-size: 11px;
  flex-shrink: 0;
}
.ev-q-link-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-q-link-del {
  background: none;
  border: none;
  color: #a8d5a4;
  cursor: pointer;
  padding: 0 0 0 3px;
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}
.ev-q-link-del:hover {
  color: #c0392b;
}
.ev-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}
.ev-preview-fname {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-preview-close-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
  transition: background 0.15s;
}
.ev-preview-close-btn:hover {
  background: #f1f5f9;
  color: var(--text);
}
.ev-preview-loading {
  display: flex;
  align-items: center;
  padding: 24px;
  font-size: 13px;
  color: var(--text-sub);
}
.ev-preview-unavail {
  padding: 32px 24px;
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #f8fafc;
  line-height: 1.7;
}
.ev-preview-wrap {
  flex: 1;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ev-preview-iframe {
  width: 100%;
  flex: 1;
  border: none;
  min-height: calc(100vh - 320px);
}
.ev-preview-img {
  max-width: 100%;
  max-height: calc(100vh - 320px);
  object-fit: contain;
  display: block;
  margin: 16px auto;
  border-radius: 4px;
}
.ev-preview-office {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
  color: #1e2d45;
}
.ev-preview-office table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin-bottom: 16px;
}
.ev-preview-office td,
.ev-preview-office th {
  border: 1px solid #dde4ee;
  padding: 5px 8px;
  text-align: left;
}
.ev-preview-office th {
  background: #f1f5f9;
  font-weight: 600;
}
.ev-preview-office p {
  margin: 0 0 10px;
}
.ev-preview-office h1,
.ev-preview-office h2,
.ev-preview-office h3 {
  margin: 16px 0 8px;
  color: #111e35;
}
.ev-assoc-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fffbee;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 4px;
}
.ev-assoc-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.ev-assoc-label {
  flex: 1;
}
.ev-assoc-cancel {
  background: none;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 4px;
  color: #9a7a30;
  cursor: pointer;
  font-size: 11px;
  padding: 3px 8px;
}
.ev-assoc-cancel:hover {
  background: rgba(59, 130, 246, 0.1);
}
.ev-q-assoc-target:hover {
  background: #fffbee;
  cursor: pointer;
}
.ev-q-link-btn {
  margin-left: auto;
  background: var(--gold);
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  transition: opacity 0.15s;
}
.ev-q-link-btn:hover {
  opacity: 0.85;
}
.checkout-success-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background:
    linear-gradient(
      90deg,
      #166534,
      #15803d);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.csb-icon {
  font-size: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.csb-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
}
.csb-close:hover {
  color: #fff;
}
.billing-section {
  margin-bottom: 32px;
}
.billing-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}
.billing-loading {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-sub);
  padding: 12px 0;
}
.billing-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
}
.billing-err {
  font-size: 12px;
  color: #c0392b;
  margin-top: 8px;
}
.billing-plan-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}
.bp-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}
.bp-plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #f1f5f9;
  color: var(--text);
}
.bp-plan-badge.plan-starter {
  background: #dbeafe;
  color: #1e40af;
}
.bp-plan-badge.plan-business {
  background: #fef3c7;
  color: #92400e;
}
.bp-plan-badge.plan-enterprise {
  background: #ede9fe;
  color: #5b21b6;
}
.bp-status {
  font-size: 12px;
  color: var(--text-muted);
}
.bp-status-active {
  color: #16a34a;
}
.bp-mid {
  flex: 1;
}
.bp-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.bp-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.bp-actions {
  display: flex;
  gap: 10px;
}
.bp-no-sub {
  display: contents;
}
.bp-no-sub-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.bp-no-sub-sub {
  font-size: 13px;
  color: var(--text-sub);
}
.billing-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .billing-plans {
    grid-template-columns: 1fr;
  }
}
.billing-plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  position: relative;
}
.billing-plan.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.billing-plan.current-plan {
  opacity: 0.6;
}
.billing-plan-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.billing-plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.billing-plan-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.billing-plan-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}
.billing-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-sub);
}
.billing-plan-features li {
  padding: 4px 0;
}
.billing-plan-features li::before {
  content: "\2713  ";
  color: #16a34a;
  font-weight: 600;
}
.billing-invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.billing-invoice-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.billing-invoice-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text);
}
.inv-status {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-muted);
}
.inv-status.inv-paid {
  background: #dcfce7;
  color: #166534;
}
.inv-pdf-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.inv-pdf-link:hover {
  text-decoration: underline;
}
.modal-invite {
  width: 520px;
  max-width: 95vw;
}
.invite-success-body {
  align-items: center;
  text-align: center;
}
.invite-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 8px;
}
.invite-success-msg {
  color: var(--text);
  font-size: 15px;
  margin: 0 0 12px;
}
.invite-link-copy {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.invite-link-copy .form-input {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
}
.btn-copy {
  background: var(--surface-raised, #1e3a5f);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 15px;
  flex-shrink: 0;
}
.btn-copy:hover {
  color: var(--text);
}
.invite-pending {
  border-top: 1px solid var(--border);
  padding: 14px 24px 16px;
}
.invite-pending-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.invite-pending-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.invite-pending-row:last-child {
  border-bottom: none;
}
.inv-email {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv-role {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  text-transform: capitalize;
}
.inv-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--text-muted);
}
.inv-status--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}
.inv-status--used {
  background: #dcfce7;
  color: #166534;
}
.inv-status--expired {
  background: #fee2e2;
  color: #991b1b;
}
.label-optional {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
