/* ==========================================================================
   Archive Agent — Chat UI Styles
   Design: Neobrutalist — Plus Jakarta Sans, ink palette, hard offset shadows
   ========================================================================== */

/* --- Tokens (added if not already present globally) --- */
:root {
  --ink: #0d0d0d;
  --paper: #f5f0e8;
  --cream: #fffdf7;
  --yellow: #fef9c3;
  --muted: #78716c;
  --stone: #e7e0d3;
  --success: #16a34a;
  --error: #dc2626;
}

/* --------------------------------------------------------------------------
   1. Container
   -------------------------------------------------------------------------- */
.aa-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 350px;
  width: 100%;
  background: var(--paper);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  border-radius: 0;
  position: relative;
}

/* --------------------------------------------------------------------------
   2. Progress Bar
   -------------------------------------------------------------------------- */
.aa-progress {
  flex-shrink: 0;
  padding: 12px 16px 8px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.aa-progress-bar {
  height: 8px;
  background: var(--stone);
  border: 2px solid var(--ink);
  border-radius: 0;
  overflow: hidden;
}

.aa-progress-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 0;
  transition: width 0.1s;
  width: 0%;
}

.aa-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   3. Messages Area
   -------------------------------------------------------------------------- */
.aa-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: auto;
  background: var(--paper);

  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
}

.aa-messages::-webkit-scrollbar {
  width: 5px;
}

.aa-messages::-webkit-scrollbar-track {
  background: transparent;
}

.aa-messages::-webkit-scrollbar-thumb {
  background: var(--stone);
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   4. Agent Message Bubble
   -------------------------------------------------------------------------- */
.aa-msg-agent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 85%;
  align-self: flex-start;
}

.aa-msg-agent-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 13px;
}

.aa-msg-agent-avatar svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
}

.aa-msg-agent-body {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 14px;
  line-height: 1.55;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. User Message Bubble
   -------------------------------------------------------------------------- */
.aa-msg-user {
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
  max-width: 80%;
}

.aa-msg-user-body {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 14px;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 700;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 3px 3px 0 var(--ink);
}

/* --------------------------------------------------------------------------
   6. Status Message
   -------------------------------------------------------------------------- */
.aa-msg-status {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 0;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.aa-msg-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 0;
  flex-shrink: 0;
}

.aa-msg-status svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.aa-msg-status.aa-status-ok {
  color: var(--success);
}

.aa-msg-status.aa-status-ok::before {
  background: var(--success);
}

.aa-msg-status.aa-status-error {
  color: var(--error);
}

.aa-msg-status.aa-status-error::before {
  background: var(--error);
}

.aa-msg-status.aa-status-spin svg {
  animation: aa-spin 1s steps(8) infinite;
}

/* --------------------------------------------------------------------------
   7. Code Block
   -------------------------------------------------------------------------- */
.aa-code-block {
  width: 100%;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  align-self: stretch;
  box-shadow: 4px 4px 0 var(--muted);
}

.aa-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--ink);
  border-bottom: 2px solid var(--yellow);
  cursor: pointer;
  user-select: none;
}

.aa-code-lang {
  font-size: 11px;
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.aa-code-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--stone);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.aa-code-toggle svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.1s;
}

.aa-code-block.aa-collapsed .aa-code-toggle svg {
  transform: rotate(-90deg);
}

.aa-code-body {
  padding: 12px;
  overflow-x: auto;
  color: var(--stone);
  line-height: 1.6;
  white-space: pre;
}

.aa-code-block.aa-collapsed .aa-code-body {
  display: none;
}

.aa-code-result {
  padding: 8px 12px;
  background: var(--ink);
  border-top: 2px solid var(--yellow);
  font-size: 11px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.aa-code-result-label {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}

.aa-code-result-text {
  color: var(--stone);
  white-space: pre-wrap;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. Question Card
   -------------------------------------------------------------------------- */
.aa-question {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 16px;
  width: 100%;
  align-self: stretch;
  box-shadow: 4px 4px 0 var(--ink);
}

.aa-question-text {
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
}

.aa-question-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aa-question-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  background: var(--cream);
  transition: background 0.1s;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  width: 100%;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  box-shadow: 2px 2px 0 var(--ink);
}

.aa-question-option:hover {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}

.aa-question-option:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.aa-question-option.aa-selected {
  background: var(--yellow);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink);
}

.aa-question-option:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.aa-option-key {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: var(--stone);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--ink);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.aa-question-option.aa-selected .aa-option-key {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   9. Proposal Card
   -------------------------------------------------------------------------- */
.aa-proposal {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  align-self: stretch;
  box-shadow: 6px 6px 0 var(--ink);
}

.aa-proposal-header {
  padding: 12px 16px;
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.aa-proposal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 0;
  font-size: 10px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aa-proposal-title {
  font-weight: 900;
  color: var(--yellow);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.aa-proposal-body {
  padding: 14px 16px;
}

.aa-proposal-description {
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.aa-proposal-preview {
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--stone);
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 14px;
}

.aa-proposal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   10. Buttons
   -------------------------------------------------------------------------- */
.aa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 900;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: box-shadow 0.1s, transform 0.1s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.aa-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.aa-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.aa-btn-approve {
  background: var(--ink);
  color: #bbf7d0;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--success);
}

.aa-btn-approve:hover:not(:disabled) {
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--success);
}

.aa-btn-approve:active:not(:disabled) {
  box-shadow: none;
  transform: translate(3px, 3px);
}

.aa-btn-modify {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.aa-btn-modify:hover:not(:disabled) {
  background: var(--yellow);
}

.aa-btn-modify:active:not(:disabled) {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.aa-btn-reject {
  background: var(--cream);
  color: var(--error);
  border: 2px solid var(--error);
  box-shadow: 2px 2px 0 var(--error);
}

.aa-btn-reject:hover:not(:disabled) {
  background: var(--yellow);
}

.aa-btn-reject:active:not(:disabled) {
  box-shadow: none;
  transform: translate(2px, 2px);
}

/* --------------------------------------------------------------------------
   11. Client Verification Table
   -------------------------------------------------------------------------- */
.aa-client-table-wrap {
  width: 100%;
  align-self: stretch;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
}

.aa-client-table-header {
  padding: 12px 16px;
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.aa-client-table-title {
  font-weight: 900;
  font-size: 12px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.aa-client-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.aa-client-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--stone);
}

.aa-client-table td {
  padding: 9px 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--stone);
  vertical-align: middle;
  font-weight: 600;
}

.aa-client-table tr:last-child td {
  border-bottom: none;
}

.aa-client-table tbody tr:hover td {
  background: var(--yellow);
}

.aa-client-table .aa-ct-confirm-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  border-radius: 0;
  cursor: pointer;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 2px 2px 0 var(--ink);
  transition: box-shadow 0.1s, transform 0.1s;
  white-space: nowrap;
}

.aa-client-table .aa-ct-confirm-btn:hover {
  background: var(--yellow);
}

.aa-client-table .aa-ct-confirm-btn:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.aa-client-table .aa-ct-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.aa-client-table-footer {
  padding: 10px 12px;
  border-top: 2px solid var(--ink);
  background: var(--stone);
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   12. Scope List
   -------------------------------------------------------------------------- */
.aa-scope-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-self: stretch;
}

.aa-scope-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.aa-scope-item:hover {
  background: var(--yellow);
}

.aa-scope-item:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.aa-scope-item.aa-scope-selected {
  background: var(--yellow);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.aa-scope-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 0;
  border: 2px solid var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  accent-color: var(--ink);
  background: var(--cream);
}

.aa-scope-item.aa-scope-selected .aa-scope-checkbox {
  background: var(--ink);
  border-color: var(--ink);
}

.aa-scope-checkbox svg {
  width: 11px;
  height: 11px;
  stroke: var(--yellow);
  fill: none;
  stroke-width: 3;
  display: none;
}

.aa-scope-item.aa-scope-selected .aa-scope-checkbox svg {
  display: block;
}

.aa-scope-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
}

.aa-scope-item.aa-scope-selected .aa-scope-label {
  color: var(--ink);
  font-weight: 900;
}

.aa-scope-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   13. Input Area
   -------------------------------------------------------------------------- */
.aa-input-area {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  background: var(--paper);
  border-top: 2px solid var(--ink);
}

.aa-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  resize: none;
  min-height: 38px;
  max-height: 120px;
  line-height: 1.5;
  outline: none;
  transition: box-shadow 0.1s;
  overflow-y: auto;
  box-shadow: 2px 2px 0 var(--ink);
}

.aa-input:focus {
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--cream);
}

.aa-input::placeholder {
  color: var(--muted);
  font-weight: 600;
}

.aa-send-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: box-shadow 0.1s, transform 0.1s;
  white-space: nowrap;
  align-self: flex-end;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 4px 4px 0 var(--muted);
}

.aa-send-btn:hover:not(:disabled) {
  box-shadow: 5px 5px 0 var(--muted);
}

.aa-send-btn:active:not(:disabled) {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.aa-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 2px 2px 0 var(--muted);
}

/* --------------------------------------------------------------------------
   14. Animations
   -------------------------------------------------------------------------- */
@keyframes aa-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* No fade-in — neobrutalism is instant */
.aa-msg-agent,
.aa-msg-user,
.aa-msg-status,
.aa-code-block,
.aa-question,
.aa-proposal,
.aa-client-table-wrap,
.aa-scope-list {
  animation: none;
}

/* --------------------------------------------------------------------------
   15. Typing Indicator
   -------------------------------------------------------------------------- */
.aa-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}

.aa-typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink);
}

.aa-typing-dots span {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 0;
  animation: aa-typing-blink 1s steps(1) infinite;
}

.aa-typing-dots span:nth-child(2) { animation-delay: 0.33s; }
.aa-typing-dots span:nth-child(3) { animation-delay: 0.66s; }

@keyframes aa-typing-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   16. Empty / Error States
   -------------------------------------------------------------------------- */
.aa-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  padding: 40px;
}

.aa-empty svg {
  width: 40px;
  height: 40px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
}

.aa-empty-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.aa-empty-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. Boot Roulette — slot-machine log ticker with shimmer
   -------------------------------------------------------------------------- */
.aa-boot-roulette {
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--muted);
  overflow: hidden;
  position: relative;
  margin: 4px 0;
}

.aa-boot-roulette-exit {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

.aa-boot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ink);
  border-bottom: 1px solid #222;
}

.aa-boot-dot {
  width: 7px;
  height: 7px;
  background: var(--yellow);
}

.aa-boot-dot-blink {
  animation: aa-boot-blink 0.6s step-end infinite;
}

@keyframes aa-boot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.aa-boot-title {
  font-size: 10px;
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  flex: 1;
}

.aa-boot-elapsed {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  letter-spacing: .04em;
  transition: color 0.2s;
}

.aa-boot-logs {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: none;
}

.aa-boot-logs::-webkit-scrollbar { display: none; }

.aa-boot-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 14px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #a8a29e;
  white-space: nowrap;
  overflow: hidden;
}

.aa-boot-line-enter {
  animation: aa-boot-slide 0.12s ease-out;
}

@keyframes aa-boot-slide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aa-boot-line-done {
  color: #4ade80;
}

.aa-boot-line-done .aa-boot-icon svg {
  stroke: #4ade80;
}

.aa-boot-line-final {
  color: var(--yellow);
  font-weight: 800;
  padding-top: 6px;
  padding-bottom: 6px;
}

.aa-boot-line-final .aa-boot-icon svg {
  stroke: var(--yellow);
}

.aa-boot-line-error {
  color: #f87171;
  font-weight: 800;
}

.aa-boot-line-error .aa-boot-icon svg {
  stroke: #f87171;
}

.aa-boot-ts {
  color: #57534e;
  font-size: 10px;
  flex-shrink: 0;
  min-width: 72px;
}

.aa-boot-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.aa-boot-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--muted);
}

.aa-boot-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Shimmer overlay — sweeps across the log ticker */
.aa-boot-shimmer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 35%,
    rgba(254, 249, 195, 0.06) 45%,
    rgba(254, 249, 195, 0.12) 50%,
    rgba(254, 249, 195, 0.06) 55%,
    transparent 65%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: aa-shimmer-sweep 1.8s linear infinite;
}

@keyframes aa-shimmer-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Button shimmer — loading state for action buttons */
.aa-btn-shimmer {
  position: relative;
  display: inline-block;
}

.aa-btn-shimmer::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -100%;
  width: 300%;
  height: calc(100% + 20px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 35%,
    rgba(254, 249, 195, 0.15) 45%,
    rgba(254, 249, 195, 0.3) 50%,
    rgba(254, 249, 195, 0.15) 55%,
    transparent 65%,
    transparent 100%
  );
  animation: aa-btn-shimmer-sweep 1.5s linear infinite;
  pointer-events: none;
}

@keyframes aa-btn-shimmer-sweep {
  0%   { transform: translateX(-33%); }
  100% { transform: translateX(33%); }
}
