/* ============================================================
   Aurea Assist – Design System
   Markenfarben zentral anpassbar (analog aurea-veritas.de)
   ============================================================ */
:root {
  /* Brand */
  --gold: #c9a548;
  --gold-light: #e6c877;
  --gold-dark: #a3812f;
  --gold-gradient: linear-gradient(135deg, #e6c877 0%, #c9a548 45%, #a3812f 100%);

  /* Surfaces */
  --bg: #0f1216;
  --bg-elevated: #171b21;
  --bg-card: #1d222a;
  --bg-input: #232933;
  --border: #2e3540;

  /* Text */
  --text: #f2f0ea;
  --text-muted: #9aa3af;
  --text-on-gold: #171309;

  /* Status */
  --success: #4caf7d;
  --success-bg: rgba(76, 175, 125, 0.12);
  --error: #e05c5c;
  --error-bg: rgba(224, 92, 92, 0.12);

  /* Chat */
  --bubble-own: #33402a;
  --bubble-own-2: #2c3a3a;
  --bubble-other: #1d222a;

  /* Layout */
  --radius: 14px;
  --radius-sm: 9px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", "Futura", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

#app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; }

/* ============ Splash ============ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.45s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash-logo img { filter: drop-shadow(0 6px 24px rgba(201, 165, 72, 0.35)); }
.splash-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.splash-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Screens ============ */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-top) + 24px) 24px calc(var(--safe-bottom) + 24px);
  animation: screen-in 0.3s ease;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.screen.centered { justify-content: center; align-items: center; text-align: center; }

/* ============ Branding ============ */
.brand-mark {
  width: 88px; height: 88px;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 32px rgba(201, 165, 72, 0.3));
}
.brand-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.brand-name .accent {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-rule {
  width: 56px; height: 2px;
  background: var(--gold-gradient);
  border: 0; border-radius: 2px;
  margin: 18px auto 22px;
}
.tagline {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  max-width: 320px;
}
.tagline .sub {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ============ Buttons ============ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  box-shadow: 0 6px 22px rgba(201, 165, 72, 0.28);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 12px;
}
.btn-danger { background: var(--error-bg); color: var(--error); border: 1px solid rgba(224, 92, 92, 0.3); }
.btn-block { margin-top: 12px; }

/* ============ Forms ============ */
.field { margin-bottom: 18px; text-align: left; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field .hint { font-size: 13px; color: var(--text-muted); margin-top: 7px; line-height: 1.45; }

.form-error {
  background: var(--error-bg);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.form-error.show { display: block; }

/* Phone input with prefix */
.phone-row { display: flex; gap: 10px; }
.phone-row select { width: 118px; flex-shrink: 0; }
.phone-row input { flex: 1; }

/* ============ OTP Boxes ============ */
.otp-row {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin: 22px 0;
}
.otp-box {
  width: 46px; height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  caret-color: var(--gold);
}
.otp-box:focus { border-color: var(--gold); }
.otp-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
}

/* ============ Header ============ */
.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 5;
}
.app-header .logo { width: 38px; height: 38px; border-radius: 10px; }
.app-header .titles { flex: 1; min-width: 0; }
.app-header .titles h1 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.app-header .titles h1 .accent {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-header .titles .status {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}
.status-dot.offline { background: var(--error); }
.icon-btn {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:active { background: var(--bg-card); }
.icon-btn svg { width: 23px; height: 23px; }

/* ============ Chat ============ */
.chat-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 165, 72, 0.045), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(201, 165, 72, 0.035), transparent 50%),
    var(--bg);
}
.date-sep {
  align-self: center;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 5px 13px;
  border-radius: 99px;
  margin: 10px 0 6px;
}
.msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 15.5px;
  line-height: 1.42;
  position: relative;
  animation: msg-in 0.22s ease;
  word-wrap: break-word;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.msg.own {
  align-self: flex-end;
  background: var(--bubble-own);
  border-bottom-right-radius: 5px;
}
.msg.other {
  align-self: flex-start;
  background: var(--bubble-other);
  border-bottom-left-radius: 5px;
}
.msg.system {
  align-self: center;
  max-width: 88%;
  text-align: center;
  font-size: 13.5px;
  padding: 9px 15px;
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-muted);
}
.msg.system.success { background: var(--success-bg); color: var(--success); }
.msg.system.error { background: var(--error-bg); color: var(--error); }
.msg .meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  user-select: none;
}
.msg .meta .tick { color: var(--text-muted); }
.msg .meta .tick.sent { color: var(--gold); }
.msg .meta .tick.error { color: var(--error); }
.msg .meta .spinner { width: 11px; height: 11px; }

/* Attachments inside messages */
.msg-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.msg-files:last-child { margin-bottom: 0; }
.msg-img {
  width: 100%;
  max-width: 240px;
  border-radius: 10px;
  display: block;
}
.msg-file-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  max-width: 240px;
}
.msg-file-chip svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold); }
.msg-file-chip .fname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-file-chip .fsize { font-size: 11.5px; color: var(--text-muted); }

/* ============ Composer ============ */
.composer-wrap {
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 8px 10px calc(var(--safe-bottom) + 8px);
}
.preview-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 10px;
}
.preview-strip:empty { display: none; }
.preview-item {
  position: relative;
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .pdf-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 3px;
  font-size: 9px;
  color: var(--text-muted);
  padding: 3px;
  text-align: center;
  overflow: hidden;
}
.preview-item .pdf-badge svg { width: 22px; height: 22px; color: var(--gold); }
.preview-item .pdf-badge span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 0;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.composer .attach-btn, .composer .send-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.composer .attach-btn {
  background: var(--bg-card);
  color: var(--gold);
}
.composer .attach-btn svg { width: 22px; height: 22px; }
.composer .send-btn {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  box-shadow: 0 3px 12px rgba(201, 165, 72, 0.3);
}
.composer .send-btn:disabled { opacity: 0.4; box-shadow: none; }
.composer .send-btn svg { width: 20px; height: 20px; }
.composer textarea {
  flex: 1;
  resize: none;
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  border-radius: 22px;
  padding: 12px 16px;
  max-height: 110px;
  outline: none;
  line-height: 1.35;
}
.composer textarea:focus { border-color: var(--gold); }

/* ============ Sheets & Modals ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in 0.2s ease;
}
.overlay.center { align-items: center; padding: 24px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elevated);
  border-radius: 20px 20px 0 0;
  padding: 10px 18px calc(var(--safe-bottom) + 18px);
  animation: sheet-up 0.25s ease;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.5; } to { transform: none; opacity: 1; } }
.sheet .grabber {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 4px auto 14px;
}
.sheet-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-align: center;
}
.sheet-options { display: flex; gap: 12px; justify-content: center; padding-bottom: 8px; }
.sheet-opt {
  flex: 1;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 10px;
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
}
.sheet-opt:active { background: var(--bg-input); }
.sheet-opt svg { width: 28px; height: 28px; color: var(--gold); }

.modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 26px 22px;
  animation: sheet-up 0.25s ease;
}
.modal h2 { font-size: 19px; margin-bottom: 8px; }
.modal p { font-size: 14.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 18px; }

/* ============ Camera ============ */
.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: #000;
  display: flex;
  flex-direction: column;
}
.camera-overlay video {
  flex: 1;
  width: 100%;
  object-fit: cover;
  min-height: 0;
}
.camera-controls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 24px calc(var(--safe-bottom) + 24px);
  background: rgba(0, 0, 0, 0.8);
}
.shutter-btn {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.shutter-btn:active { transform: scale(0.92); }
.cam-side-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cam-side-btn svg { width: 24px; height: 24px; }
.cam-side-btn.active { background: var(--gold); color: var(--text-on-gold); }

/* ============ Setup / System Cards ============ */
.sys-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 20px 0;
}
.sys-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s ease;
}
.sys-card.selected { border-color: var(--gold); background: rgba(201, 165, 72, 0.07); }
.sys-card .sys-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  color: #fff;
}
.sys-card .sys-info { flex: 1; }
.sys-card .sys-info b { display: block; font-size: 16px; }
.sys-card .sys-info span { font-size: 13px; color: var(--text-muted); }
.sys-card .check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sys-card.selected .check {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-on-gold);
}
.sys-card.selected .check::after { content: "✓"; font-size: 14px; font-weight: 800; }

/* ============ Settings ============ */
.settings-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.settings-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.settings-group .group-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 13px 16px 4px;
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 15.5px;
  cursor: pointer;
  text-align: left;
}
.settings-item:last-child { border-bottom: 0; }
.settings-item:active { background: var(--bg-input); }
.settings-item svg { width: 21px; height: 21px; color: var(--gold); flex-shrink: 0; }
.settings-item .si-text { flex: 1; }
.settings-item .si-sub { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.settings-item .chevron { color: var(--text-muted); }
.settings-item.danger { color: var(--error); }
.settings-item.danger svg { color: var(--error); }

/* Toggle */
.toggle {
  width: 48px; height: 28px;
  border-radius: 99px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.toggle.on { background: var(--gold); }
.toggle.on::after { transform: translateX(20px); }

/* ============ PIN Pad ============ */
.pin-screen {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pin-dots { display: flex; gap: 16px; margin: 26px 0 34px; }
.pin-dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  transition: all 0.12s ease;
}
.pin-dot.filled { background: var(--gold); border-color: var(--gold); }
.pin-dots.shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(7px); }
}
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 74px);
  gap: 16px;
}
.pin-key {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 26px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-key:active { background: var(--bg-input); }
.pin-key.ghost { background: transparent; border: 0; font-size: 15px; color: var(--text-muted); }
.pin-title { font-size: 19px; font-weight: 600; }
.pin-sub { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* ============ Toasts ============ */
.toasts {
  position: fixed;
  top: calc(var(--safe-top) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 40px);
  max-width: 440px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

/* ============ Misc ============ */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
.btn .spinner { border-top-color: var(--text-on-gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}
.page-sub { font-size: 15px; color: var(--text-muted); line-height: 1.5; margin-bottom: 22px; }

.back-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
  margin-left: -10px;
}
.back-row .icon-btn { color: var(--gold); }

.demo-banner {
  background: rgba(201, 165, 72, 0.1);
  border: 1px solid rgba(201, 165, 72, 0.3);
  color: var(--gold-light);
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  margin-bottom: 18px;
  line-height: 1.45;
}

.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 165, 72, 0.12);
  border: 1px solid rgba(201, 165, 72, 0.3);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  border-radius: 99px;
  padding: 7px 14px;
  margin-bottom: 20px;
}
.trial-badge svg { width: 15px; height: 15px; }

.link-muted {
  background: none; border: 0;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 10px;
}

.log-view {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
