/* Aamal Visual-First Executive Cards & 4-Tab Inspector Drawer */
.am-logo-svg {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  display: block;
}

.q3 > div {
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.q3 > div:hover,
.q3 > div:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(230, 196, 120, 0.55);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.q3 > div .am-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.q3 > div .am-q-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(230, 196, 120, 0.2);
  color: #f6dca0;
  border: 1px solid rgba(230, 196, 120, 0.35);
  font-variant-numeric: tabular-nums;
}
.q3 > div span[id^="q"] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem;
  color: #d7e2f1;
}

.am-inspect-btn {
  border-color: var(--accent);
  color: var(--brand);
  background: #fffdf7;
}
.am-inspect-btn:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

/* 4-Tab Progressive-Disclosure Drawer */
.am-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(14, 23, 38, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}
.am-drawer {
  width: min(450px, 100vw);
  height: 100%;
  background: var(--surface);
  color: var(--ink);
  border-inline-start: 1px solid var(--line);
  box-shadow: -12px 0 36px rgba(14, 23, 38, 0.22);
  display: flex;
  flex-direction: column;
}
.am-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, #0b1d38, #12284a);
  color: #ffffff;
}
.am-drawer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.am-drawer-status {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(230, 196, 120, 0.22);
  color: #f6dca0;
  border: 1px solid rgba(230, 196, 120, 0.4);
}
.am-drawer-kicker {
  font-size: 11.5px;
  font-weight: 700;
  color: #b8c7de;
  font-family: ui-monospace, Consolas, monospace;
}
.am-drawer-title {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
}
.am-drawer-close {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  flex: none;
}
.am-drawer-close:hover { background: rgba(255, 255, 255, 0.2); border-color: #f6dca0; }
.am-drawer-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.am-dtab {
  min-height: 40px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.am-dtab.is-active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.am-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
}
.am-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.am-kv dt { color: var(--muted); font-weight: 700; font-size: 13px; }
.am-kv dd { margin: 0; font-weight: 800; font-size: 13.5px; text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .am-drawer-backdrop { align-items: flex-end; }
  .am-drawer {
    width: 100vw;
    height: min(82vh, 620px);
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
  }
}
