/* ============================================================
   Raymond Global — design tokens
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #080a09;
  --surface: #141715;
  --surface-raised: #1b1f1d;
  --surface-hover: #242b26;
  --surface-header: #101411;
  --text: #f2f5f3;
  --text-secondary: #a6ada8;
  --text-muted: #6e766f;
  /* The specified muted swatch is decorative only: this companion passes
     4.5:1 on raised surfaces for captions and other small readable text. */
  --text-caption: #929b94;
  --accent: #7be495;
  --accent-light: #a6f3b8;
  --accent-deep: #3faf5f;
  --accent-soft: rgba(123, 228, 149, .08);
  --accent-border: rgba(123, 228, 149, .28);
  --accent-ring: rgba(123, 228, 149, .16);
  --glow-top: rgba(26, 91, 44, .16);
  --glow-bottom: rgba(26, 91, 44, .1);
  --border: rgba(255, 255, 255, .06);
  /* Hairlines define decorative panels; essential control edges use ≥3:1. */
  --border-control: #77827a;
  --field: #edefee;
  --field-text: #18231c;
  --field-placeholder: #56625a;
  --field-border: #eef5ef;
  --error: #f2a5a5;
  --error-soft: rgba(242, 165, 165, .07);
  --error-border: #aa7474;
  --warning: #e9cd95;
  --warning-soft: rgba(233, 205, 149, .07);
  --warning-border: #a99060;
  --overlay: rgba(3, 7, 4, .78);
  --shadow-color: rgba(0, 0, 0, .22);
  --clear: transparent;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --shell-padding: 20px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-panel: 0 8px 32px var(--shadow-color);
  --shadow-float: 0 16px 48px var(--shadow-color);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --motion-fast: 220ms;
  --motion-normal: 320ms;
  --motion-slow: 420ms;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Sora", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --thread-width: 820px;
}

/* ============================================================
   Reset, typography and accessible controls
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { background: var(--bg); overflow-x: clip; }
body {
  color: var(--text);
  background: var(--bg);
  font: 400 14px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, input, textarea { font: inherit; }
button, summary { -webkit-tap-highlight-color: var(--clear); }
button { cursor: pointer; }
button, input, textarea, summary { min-height: 40px; }
input, textarea { min-width: 0; max-width: 100%; }
button { touch-action: manipulation; }
svg { display: block; flex-shrink: 0; width: 20px; height: 20px; }
button svg { pointer-events: none; }
a { color: var(--accent-light); text-underline-offset: 4px; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.4; }
h1 { font-size: 18px; letter-spacing: -.035em; }
h2 { font-size: 17px; letter-spacing: -.025em; }
h3 { font-size: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--bg); }
:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .45; }

.btn, .gate-go, .gate-stay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 40px;
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease),
              opacity var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}
.btn-ghost, .gate-stay { background: var(--clear); }
.btn-primary, .gate-go { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.btn-danger { color: var(--error); background: var(--error-soft); border-color: var(--error-border); }
.btn-small { font-size: 12px; padding: var(--space-2) var(--space-3); }
.btn:not(:disabled, [aria-disabled="true"]):hover, .gate-stay:not(:disabled):hover {
  background: var(--surface-hover); border-color: var(--text-secondary);
}
.btn-primary:not(:disabled, [aria-disabled="true"]):hover, .gate-go:not(:disabled):hover {
  background: var(--accent-light); border-color: var(--accent-light);
}
.btn-danger:not(:disabled):hover { background: var(--error-soft); border-color: var(--error); }
.btn:not(:disabled):active, .gate-go:not(:disabled):active, .gate-stay:not(:disabled):active { transform: translateY(1px); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  color: var(--accent);
  background: var(--accent-soft);
  font: 400 10px/1.6 var(--font-mono);
  white-space: nowrap;
}

/* ============================================================
   Viewport shell and ambient ground
   ============================================================ */

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--shell-padding);
  background: radial-gradient(ellipse at 55% 0%, var(--glow-top), var(--clear) 65%),
              radial-gradient(ellipse at 100% 100%, var(--glow-bottom), var(--clear) 65%), var(--bg);
}
.app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--space-4);
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
}
.sidebar, .frame { min-width: 0; min-height: 0; }
.frame {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 95% 5%, var(--glow-top), var(--clear) 65%), var(--bg);
}
.frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-shrink: 0;
  padding: var(--space-6) var(--space-8);
}
.frame-head > div { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.frame-head > div:last-child { flex-shrink: 0; gap: var(--space-2); }
#frame-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#btn-copy, #btn-download-top { width: 40px; height: 40px; padding: var(--space-2); }

/* ============================================================
   Sidebar — brand, project, assistants and session
   ============================================================ */

.sidebar { display: flex; flex-direction: column; gap: var(--space-4); }
.sidebar > .brand, .sidebar > footer { flex-shrink: 0; }
.sidebar > div:not(.brand) {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  order: 1;
  gap: var(--space-4);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-control) var(--surface);
  scrollbar-gutter: stable;
}
.sidebar > div:not(.brand) .side-block { flex-shrink: 0; }
.sidebar > div:not(.brand)::-webkit-scrollbar { width: 6px; }
.sidebar > div:not(.brand)::-webkit-scrollbar-track { background: var(--surface); border-radius: var(--radius-pill); }
.sidebar > div:not(.brand)::-webkit-scrollbar-thumb { background: var(--border-control); border-radius: var(--radius-pill); }
.brand, .side-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-panel);
}
.brand { display: flex; align-items: center; gap: var(--space-3); order: 0; }
.brand > svg {
  width: 40px;
  height: 40px;
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: linear-gradient(145deg, var(--surface-raised), var(--bg));
}
.brand strong { display: block; font: 600 15px/1.5 var(--font-display); letter-spacing: -.025em; }
.brand span { display: block; margin-top: var(--space-1); color: var(--text-caption); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.sidebar > div > details, .sidebar > div > details::details-content { display: contents; content-visibility: visible; }
.sidebar > div > details > summary { display: none; }
.sidebar > div > details > .side-block { display: block; order: 1; }
.sidebar > div > .side-block { order: 2; }
.sidebar > div > details > .side-block:last-of-type { order: 3; }
.side-block h2 { margin-bottom: var(--space-4); color: var(--text-secondary); font: 500 11px/1.5 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.side-block p { color: var(--text-caption); font-size: 12px; line-height: 1.7; }
.agent-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: var(--space-2) var(--space-3); }
.agent-card + .agent-card { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.agent-card strong { color: var(--text); font-size: 13px; font-weight: 500; }
.agent-card small { display: block; color: var(--text-caption); font-size: 11px; line-height: 1.5; }
.agent-card > .msg-avatar { grid-row: 1 / 3; align-self: start; }
.agent-state {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-1);
  grid-column: 2;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px var(--space-2);
  color: var(--text-caption);
  background: var(--surface-raised);
  font: 400 10px/1.6 var(--font-mono);
}
.agent-state::before { content: ""; width: 4px; height: 4px; border-radius: var(--radius-pill); background: var(--text-muted); }
.agent-state[data-state="idle"] { color: var(--text-caption); }
.agent-state[data-state="active"], .agent-state[data-state="thinking"], .agent-state[data-state="done"] {
  color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft);
}
.agent-state[data-state="active"]::before, .agent-state[data-state="thinking"]::before { background: var(--accent); }
.agent-state[data-state="thinking"]::before { animation: breathe 1.2s var(--ease) infinite; }
.agent-state[data-state="done"]::before { content: "✓"; background: var(--clear); width: auto; height: auto; }
.agent-card[data-state="thinking"] .msg-avatar, .agent-card[data-state="active"] .msg-avatar { border-color: var(--accent-border); }
.sidebar > footer { order: 4; margin-top: auto; padding: var(--space-2) var(--space-3) var(--space-1); }
#btn-restart { width: 100%; }
.sidebar > footer p { margin-top: var(--space-4); text-align: center; color: var(--text-caption); font-size: 11px; }

/* ============================================================
   Timeline — persistent rail, state and connector fill
   ============================================================ */

.timeline {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  padding: var(--space-4) var(--space-8) var(--space-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-header);
}
.timeline ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; }
.tl-step { position: relative; display: grid; grid-template-columns: 32px minmax(0, max-content) minmax(var(--space-4), 1fr); column-gap: var(--space-2); align-items: center; min-width: 0; color: var(--text-caption); }
.tl-dot {
  position: relative;
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: var(--surface);
  font: 400 11px/1 var(--font-mono);
}
.tl-label { grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; line-height: 1.5; }
.tl-sub { display: block; grid-column: 2; color: var(--text-caption); font-size: 10px; line-height: 1.5; }
/* A wrapper around label/sub is also supported by the DOM contract. */
.tl-step > div { min-width: 0; }
/* The flexible third column is the actual gap after the label and before
   the next dot, so the fill stays legible as the frame changes width. */
.tl-bar { grid-column: 3; grid-row: 1 / 3; align-self: center; height: 2px; min-width: 0; margin-right: var(--space-2); background: var(--border-control); overflow: hidden; }
.tl-bar::after { content: ""; display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--motion-slow) var(--ease); }
.tl-step:last-child .tl-bar { display: none; }
.tl-step[data-state="todo"] .tl-label { color: var(--text-caption); }
.tl-step[data-state="active"] .tl-label { color: var(--accent); }
.tl-step[data-state="active"] .tl-dot { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tl-step[data-state="active"] .tl-dot::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--accent); border-radius: inherit; opacity: .2; animation: active-ring 1.8s var(--ease) infinite; }
.tl-step[data-state="done"] .tl-dot { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.tl-step[data-state="done"] .tl-label { color: var(--text-secondary); }
.tl-step[data-state="done"] .tl-bar::after { transform: scaleX(1); animation: rail-fill var(--motion-slow) var(--ease) both; }
#timeline-hint:empty { display: none; }
#timeline-hint { min-height: 18px; margin-top: var(--space-3); color: var(--text-caption); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }

/* ============================================================
   Conversation blocks — one scroll owner, no nested document scroll
   ============================================================ */

.thread {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: var(--space-8) max(var(--space-8), calc((100% - var(--thread-width)) / 2));
  scroll-padding-block: var(--space-6);
}
.thread, .sidebar, .rt-table-wrap, #composer-input, .project-list { scrollbar-width: thin; scrollbar-color: var(--border-control) var(--clear); }
.thread:focus-visible { outline-offset: -4px; }
.block { width: 100%; min-width: 0; max-width: var(--thread-width); margin-inline: auto; overflow-wrap: anywhere; animation: block-in var(--motion-normal) var(--ease) both; }
.block + .block { margin-top: var(--space-8); }
.block-msg { font-size: 14px; line-height: 1.8; }
.msg-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.msg-avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 12px/1 var(--font-display);
}
.msg-avatar svg { width: 20px; height: 20px; }
.msg-name { font-size: 13px; font-weight: 500; color: var(--accent); }
.msg-body { min-width: 0; margin-left: calc(32px + var(--space-3)); }
.block-msg[data-from="remy"] .msg-name, .block-msg[data-from="romald"] .msg-name { color: var(--accent); }
.block-msg[data-from="romald"] .msg-avatar, #agent-romald .msg-avatar { border-color: var(--accent-border); }
.block-msg[data-from="user"] .msg-name { color: var(--text); }
.block-msg[data-from="user"] .msg-avatar { color: var(--text-secondary); background: var(--surface-raised); border-color: var(--border); }
.msg-adopt { margin: var(--space-3) 0 0 calc(32px + var(--space-3)); }
/* Send becomes Stop while a reply is in flight. */
#btn-send[data-mode="stop"] { display: inline-flex; align-items: center; justify-content: center; }
#btn-send[data-mode="stop"] svg { display: none; }
#btn-send[data-mode="stop"]::after {
  content: ""; width: 11px; height: 11px; border-radius: 2px; background: currentColor;
}
.block-msg[data-from="user"] .msg-body { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); white-space: pre-wrap; }
.block-doc, .block-gate, .block-report, .block-error {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.block-doc[data-kind="proposal"], .block-doc[data-kind="fee"] { border-top-color: var(--accent-border); }
.doc-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-6); border-bottom: 1px solid var(--border); }
.doc-head > span[aria-hidden="true"] { color: var(--accent); font-size: 24px; line-height: 1; }
.doc-head > span:not([aria-hidden="true"]) { color: var(--text-caption); font-size: 11px; }
.doc-head > svg { color: var(--accent); width: 24px; height: 24px; }
.doc-head h2, .doc-head h3 { font-size: 15px; }
.doc-head p, .doc-head small { display: block; color: var(--text-caption); font-size: 11px; }
.doc-head > div:not(.doc-actions) { min-width: 0; }
.doc-actions { display: flex; gap: var(--space-2); margin-left: auto; }
.doc-body { min-width: 0; padding: var(--space-6); font-size: 13px; line-height: 1.8; }

/* ============================================================
   Rich text, tables and references
   ============================================================ */

.rt-heading { margin: var(--space-6) 0 var(--space-3); font: 600 14px/1.6 var(--font-display); color: var(--text); letter-spacing: -.015em; }
.rt-heading:first-child { margin-top: 0; }
.rt-line, .rt-bullet { line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.rt-bullet { padding-left: var(--space-4); text-indent: calc(-1 * var(--space-4)); margin-block: var(--space-1); }
.rt-gap { height: var(--space-3); }
.rt-rule { height: 1px; border: 0; background: var(--border); margin: var(--space-6) 0; }
.rt-waiting { display: flex; align-items: center; gap: var(--space-3); min-height: 32px; color: var(--text-secondary); font-size: 12px; }
/* Three dots also work when the streaming renderer supplies text only. */
.rt-waiting::after { content: ""; flex: 0 0 4px; width: 4px; height: 4px; margin-right: var(--space-4); border-radius: var(--radius-pill); background: var(--accent); box-shadow: 7px 0 var(--accent), 14px 0 var(--accent); animation: typing-dots 1.2s var(--ease) infinite; }
.rt-waiting > span[aria-hidden="true"] { display: none; }
.rt-table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; margin: var(--space-4) 0 var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-sm); }
table.rt-table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.6; }
.rt-table th, .rt-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: normal; }
.rt-table th { background: var(--bg); color: var(--text-secondary); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.rt-table td { color: var(--text-secondary); }
/* Fee sheets put descriptions first and numeric measures in later columns.
   Explicit renderer alignment, when supplied, takes precedence. */
.rt-table th:not(:first-child), .rt-table td:not(:first-child) { text-align: right; }
.rt-table [align="left"], .rt-table [data-type="text"] { text-align: left; }
.rt-table tbody tr:last-child td { border-bottom: 0; }
.rt-table tbody tr:hover { background: var(--surface-raised); }
.rt-table [data-numeric="true"], .rt-table [data-type="number"], .rt-table [align="right"], .rt-table td[style*="text-align: right"], .rt-table th[style*="text-align: right"] { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-body blockquote, .msg-body blockquote { margin-block: var(--space-4); padding-left: var(--space-4); border-left: 2px solid var(--accent-deep); color: var(--text-secondary); }
.doc-body code, .msg-body code { font-family: var(--font-mono); color: var(--accent-light); }
.doc-body pre, .msg-body pre { max-width: 100%; overflow-x: auto; background: var(--accent-soft); border-left: 2px solid var(--accent-deep); border-radius: var(--radius-sm); padding: var(--space-4); }
.sources { padding: var(--space-3) var(--space-6); border-top: 1px solid var(--border); font-size: 12px; color: var(--text-caption); }
.sources summary { cursor: pointer; padding-block: var(--space-2); color: var(--text-secondary); }
.sources summary::marker { color: var(--accent); }
.sources summary:hover { color: var(--accent-light); }
.source-list { list-style: none; padding: 0 0 0 var(--space-4); margin: var(--space-2) 0 var(--space-3); border-left: 1px solid var(--accent-border); }
.source-list a { display: inline-flex; align-items: center; min-height: 40px; }
.source-list li { padding-block: var(--space-1); font: 400 10px/1.8 var(--font-mono); overflow-wrap: anywhere; }

/* ============================================================
   Handoff — agent chips and quiet packet conveyor
   The inner rail is decorative: semantic children need no extra classes.
   ============================================================ */

.block-handoff { padding: var(--space-4) var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--accent-soft); text-align: center; }
.block-handoff > div:not(.handoff-payload) { display: flex; align-items: center; justify-content: center; gap: var(--space-4); }
.block-handoff .agent-card { display: inline-flex; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.block-handoff > div > span:not([aria-hidden="true"]), .block-handoff > span:not([aria-hidden="true"]) { padding: var(--space-1) var(--space-3); border: 1px solid var(--accent-border); border-radius: var(--radius-pill); background: var(--surface); display: inline-flex; align-items: center; gap: var(--space-2); font-size: 12px; color: var(--accent); }
.block-handoff [aria-hidden="true"]:not(.msg-avatar, svg) { position: relative; display: inline-flex; align-items: center; justify-content: space-around; flex: 1 1 96px; width: 96px; max-width: 160px; height: 24px; overflow: hidden; vertical-align: middle; color: var(--accent); }
.block-handoff [aria-hidden="true"]:not(.msg-avatar, svg)::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--accent-border); }
.block-handoff [aria-hidden="true"]:not(.msg-avatar, svg)::after { content: ""; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: var(--radius-pill); background: var(--accent); box-shadow: -12px 0 var(--accent), -24px 0 var(--accent); opacity: 0; }
.block-handoff[data-state="running"] [aria-hidden="true"]:not(.msg-avatar, svg)::after { animation: packet-travel 1.2s var(--ease) infinite; }
.block-handoff[data-state="done"] [aria-hidden="true"]:not(.msg-avatar, svg)::after { content: "✓"; inset: 0; width: 24px; height: 24px; margin: auto; background: var(--surface); box-shadow: none; opacity: 1; color: var(--accent); font-size: 14px; line-height: 24px; }
.block-handoff [aria-hidden="true"]:has(> i)::after { content: none; }
.block-handoff [aria-hidden="true"] > i { position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: var(--radius-pill); background: var(--accent); opacity: 0; }
.block-handoff[data-state="running"] [aria-hidden="true"] > i { animation: packet-travel 1.2s var(--ease) infinite; }
.block-handoff[data-state="running"] [aria-hidden="true"] > i:nth-child(2) { animation-delay: 160ms; }
.block-handoff[data-state="running"] [aria-hidden="true"] > i:nth-child(3) { animation-delay: 320ms; }
.block-handoff[data-state="done"] [aria-hidden="true"] > i { opacity: 1; position: static; }
.block-handoff[data-state="done"] [aria-hidden="true"]:not(.msg-avatar, svg):has(> i)::after { content: none; }
.block-handoff .handoff-payload { margin-top: var(--space-3); color: var(--text-caption); font: 400 10px/1.8 var(--font-mono); }
.block-handoff[data-state="done"] { border-color: var(--accent-border); }

/* ============================================================
   Continue gates, finished report, errors and notices
   ============================================================ */

.block-gate { padding: var(--space-6); background: linear-gradient(110deg, var(--accent-soft), var(--clear)), var(--surface); }
.block-gate p { color: var(--text-secondary); font-size: 13px; margin-bottom: var(--space-4); }
.block-gate h2, .block-gate h3 { margin-bottom: var(--space-2); }
.block-gate > div, .block-report > div:has(> .btn) { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.block-gate > .btn, .block-gate > .gate-go, .block-gate > .gate-stay { margin: 0 var(--space-2) var(--space-2) 0; }
.gate-go { min-height: 44px; }
.gate-stay { min-height: 44px; }
.block-report { padding: var(--space-6); border-color: var(--accent-border); background: linear-gradient(145deg, var(--accent-soft), var(--clear) 60%), var(--surface); }
.block-report h2, .block-report h3, .block-report > header { color: var(--accent); }
.block-report h2, .block-report h3 { margin-bottom: var(--space-2); }
.block-report header { margin-bottom: var(--space-6); }
.block-report p { color: var(--text-secondary); font-size: 13px; margin-block: var(--space-3) var(--space-6); }
.block-report > p:last-of-type, .block-report [role="note"], .block-report [role="alert"] { padding: var(--space-4); border: 1px solid var(--warning-border); border-radius: var(--radius-sm); color: var(--warning); background: var(--warning-soft); }
#btn-docx, #btn-pdf, #btn-txt { min-height: 48px; flex: 1 1 auto; }
.block-report > #btn-docx, .block-report > #btn-pdf, .block-report > #btn-txt { margin: 0 var(--space-2) var(--space-2) 0; }
#btn-restart-2 { margin-top: var(--space-4); }
.block-error { padding: var(--space-6); background: var(--error-soft); border-color: var(--error-border); color: var(--error); }
.block-error p { margin-bottom: var(--space-4); }
.block-error .btn { margin-top: var(--space-3); }
.block-system { color: var(--text-caption); font-size: 11px; text-align: center; }

/* ============================================================
   Pinned composer — near-white field and circular send control
   ============================================================ */

.composer-wrap { flex-shrink: 0; padding: var(--space-4) var(--space-8) max(var(--space-4), env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--bg) 80%, var(--clear)); }
.composer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: var(--thread-width);
  margin-inline: auto;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-pill);
  color: var(--field-text);
  background: var(--field);
  box-shadow: var(--shadow-panel);
  transition: box-shadow var(--motion-fast) var(--ease);
}
.composer:focus-within { box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow-panel); }
.composer > svg { width: 28px; height: 28px; }
#composer-input {
  flex: 1;
  field-sizing: content;
  min-height: 40px;
  max-height: 136px;
  padding: var(--space-2) var(--space-1);
  border: 0;
  border-radius: var(--radius-sm);
  resize: none;
  overflow-y: auto;
  background: var(--clear);
  color: var(--field-text);
  caret-color: var(--field-text);
  font-size: 14px;
  line-height: 24px;
}
#composer-input::placeholder { color: var(--field-placeholder); opacity: 1; }
#composer-input:focus-visible { outline-offset: 0; }
#btn-send { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--field-text); border-radius: var(--radius-pill); background: var(--accent); color: var(--bg); transition: background var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease); }
#btn-send:not(:disabled):hover { background: var(--accent-light); transform: translateX(1px); }
.btn-attach { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--clear); color: var(--field-placeholder); transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease); }
.btn-attach svg { width: 20px; height: 20px; }
.btn-attach:not(:disabled):hover { background: rgba(24, 35, 28, .08); color: var(--field-text); }
.btn-attach:disabled { opacity: .4; }
.btn-attach[hidden] { display: none; }
.attachments { display: flex; flex-wrap: wrap; gap: var(--space-2); max-width: var(--thread-width); margin: 0 auto var(--space-3); padding: 0; list-style: none; }
.attachments[hidden] { display: none; }
.attachment { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3); border: 1px solid var(--accent-border); border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--text); font-size: 12px; line-height: 20px; }
.attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment small { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.attachment[data-state="reading"] { opacity: .7; }
.attachment button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--clear); color: var(--text-secondary); font-size: 15px; line-height: 1; }
.attachment button:hover { background: var(--surface-hover); color: var(--text); }
.msg-attachments { margin-top: var(--space-2); color: var(--text-muted); font-size: 12px; }
.composer-note { margin: var(--space-3) auto 0; text-align: center; color: var(--text-caption); font-size: 10px; line-height: 1.6; }

/* ============================================================
   Setup banner, toast and inline confirmation
   ============================================================ */

.setup-banner { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) var(--space-8) 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--warning-border); border-radius: var(--radius-sm); color: var(--warning); background: var(--warning-soft); font-size: 12px; }
.toast { position: fixed; z-index: 60; inset-inline: var(--space-4); bottom: max(var(--space-6), env(safe-area-inset-bottom)); width: fit-content; max-width: min(560px, calc(100% - 32px)); margin-inline: auto; padding: var(--space-4) var(--space-6); border: 1px solid var(--border-control); border-radius: var(--radius-md); background: var(--surface); color: var(--text); box-shadow: var(--shadow-float); font-size: 13px; text-align: center; overflow-wrap: anywhere; animation: block-in var(--motion-fast) var(--ease) both; }
.toast[data-kind="ok"] { border-color: var(--accent-deep); color: var(--accent-light); }
.toast[data-kind="warn"] { border-color: var(--warning-border); color: var(--warning); }
.toast[data-kind="error"] { border-color: var(--error-border); color: var(--error); }
.confirm-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--space-4); background: var(--overlay); backdrop-filter: blur(8px); }
.confirm-box { width: min(100%, 440px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: var(--space-8); border: 1px solid var(--border-control); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-float); animation: block-in var(--motion-normal) var(--ease) both; }
#confirm-text { font-size: 14px; line-height: 1.8; margin-bottom: var(--space-6); }
.confirm-box > div { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-2); }
#confirm-no, #confirm-yes, #name-cancel, #name-save { min-height: 44px; }
#name-form h2 { margin-bottom: var(--space-2); font-size: 16px; }
#name-form p { margin-bottom: var(--space-4); color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
#name-input { width: 100%; margin-bottom: var(--space-6); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-control); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); }

/* Saved projects, newest first */
.project-list { position: relative; display: flex; flex-direction: column; gap: var(--space-1); max-height: min(50vh, 420px); margin: 0 calc(-1 * var(--space-2)); padding: 0; overflow-y: auto; list-style: none; }
.project-list li { position: relative; }
.project-open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: var(--space-2) 36px var(--space-2) var(--space-2); border: 1px solid var(--clear); border-radius: var(--radius-sm); background: var(--clear); color: var(--text); text-align: left; cursor: pointer; }
.project-open:hover { background: var(--bg); }
.project-open[aria-current="true"] { border-color: var(--border-control); background: var(--bg); }
/* The pencil sits at the row's right edge; it shows on hover, focus, and the open project. */
.project-rename { position: absolute; top: 50%; right: var(--space-1); display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--clear); color: var(--text-caption); cursor: pointer; opacity: 0; transform: translateY(-50%); transition: opacity var(--motion-fast) var(--ease); }
.project-rename svg { width: 14px; height: 14px; }
.project-list li:hover .project-rename, .project-rename:focus-visible, .project-open[aria-current="true"] + .project-rename { opacity: 1; }
.project-rename:hover { background: var(--surface); color: var(--text); }
@media (hover: none) { .project-rename { opacity: 1; } }
.project-rename-input { width: 100%; padding: var(--space-2); border: 1px solid var(--border-control); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 13px; }
.project-list strong { max-width: 100%; overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.project-list small { color: var(--text-caption); font-size: 11px; }
.project-list:empty { display: none; }
/* A fade at the bottom says there are more projects to scroll to. */
.project-list[data-more] { mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.list-toggle { align-self: flex-start; min-height: 32px; margin-top: var(--space-2); padding: 0; border: 0; background: var(--clear); color: var(--text-secondary); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.list-toggle:hover { color: var(--accent-light); }
.project-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
#btn-delete:not(:disabled):hover { border-color: var(--warning-border); color: var(--warning); }

/* ============================================================
   Sign-in and approval gate
   ============================================================ */

.login { display: grid; place-items: center; min-height: 100dvh; padding: var(--shell-padding); background: radial-gradient(ellipse at 55% 0%, var(--glow-top), var(--clear) 65%), var(--bg); }
.login-box { display: flex; flex-direction: column; gap: var(--space-4); width: min(100%, 400px); padding: var(--space-8); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-float); }
.login-box .brand { padding: 0 0 var(--space-2); border: 0; background: var(--clear); box-shadow: none; }
.login-box section { display: flex; flex-direction: column; gap: var(--space-3); }
.login-box section > div, #login-form > div, #login-org-form > div { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.login-box p { color: var(--text-secondary); font-size: 13px; }
#login-form, #login-org-form { display: flex; flex-direction: column; gap: var(--space-2); }
#login-form label, #login-org-form label { color: var(--text-secondary); font-size: 12px; }
#login-form input, #login-org-form input { width: 100%; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-control); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); }
.login-link { align-self: flex-start; padding: 0; border: 0; background: var(--clear); color: var(--accent-light); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
#login-message { padding: var(--space-3) var(--space-4); border: 1px solid var(--warning-border); border-radius: var(--radius-sm); color: var(--warning); background: var(--warning-soft); font-size: 12px; }
#signed-in-as { margin-top: var(--space-3); overflow-wrap: anywhere; }
#signed-in-as:empty { display: none; }
#btn-signout { margin-top: var(--space-3); }

/* ============================================================
   Sign-in and approval gate
   ============================================================ */

.login { display: grid; place-items: center; min-height: 100dvh; padding: var(--shell-padding); background: radial-gradient(ellipse at 55% 0%, var(--glow-top), var(--clear) 65%), var(--bg); }
.login-box { display: flex; flex-direction: column; gap: var(--space-4); width: min(100%, 400px); padding: var(--space-8); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-float); }
.login-box .brand { padding: 0 0 var(--space-2); border: 0; background: var(--clear); box-shadow: none; }
.login-box section { display: flex; flex-direction: column; gap: var(--space-3); }
.login-box section > div, #login-form > div { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.login-box p { color: var(--text-secondary); font-size: 13px; }
#login-form { display: flex; flex-direction: column; gap: var(--space-2); }
#login-form label { color: var(--text-secondary); font-size: 12px; }
#login-form input { width: 100%; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-control); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); }
.login-link { align-self: flex-start; padding: 0; border: 0; background: var(--clear); color: var(--accent-light); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
#login-message { padding: var(--space-3) var(--space-4); border: 1px solid var(--warning-border); border-radius: var(--radius-sm); color: var(--warning); background: var(--warning-soft); font-size: 12px; }
#signed-in-as { margin-top: var(--space-3); overflow-wrap: anywhere; }
#signed-in-as:empty { display: none; }
#btn-signout { margin-top: var(--space-3); }

/* ============================================================
   Motion — gentle insertion, progress and working indicators
   ============================================================ */

@keyframes block-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes active-ring { 0%, 100% { opacity: .12; transform: scale(.94); } 50% { opacity: .35; transform: scale(1.04); } }
@keyframes rail-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes typing-dots {
  0%, 100% { background: var(--accent); box-shadow: 7px 0 var(--accent-border), 14px 0 var(--accent-border); }
  33% { background: var(--accent-border); box-shadow: 7px 0 var(--accent), 14px 0 var(--accent-border); }
  66% { background: var(--accent-border); box-shadow: 7px 0 var(--accent-border), 14px 0 var(--accent); }
}
@keyframes packet-travel { 0% { left: 0; opacity: 0; transform: translateX(0); } 20%, 80% { opacity: 1; } 100% { left: 100%; opacity: 0; transform: translateX(24px); } }

/* ============================================================
   Responsive — contract breakpoints: 1200 / 1024 / 640
   ============================================================ */

@media (min-width: 1024px) and (max-width: 1199.98px) {
  .app { grid-template-columns: 260px minmax(0, 1fr); }
  .brand, .side-block { padding: var(--space-4); }
  .frame-head, .timeline { padding-inline: var(--space-6); }
  .thread, .composer-wrap { padding-inline: var(--space-6); }
}

@media (max-width: 1023.98px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .sidebar > div:not(.brand) { display: contents; }
  .sidebar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); overflow: visible; align-items: center; }
  .brand { padding: var(--space-2) var(--space-3); border: 0; background: var(--clear); box-shadow: none; }
  .sidebar > div > .side-block { display: flex; align-items: center; gap: var(--space-4); order: 1; padding: 0; border: 0; background: var(--clear); box-shadow: none; }
  .sidebar > div > .side-block > h2 { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .agent-card { display: grid; grid-template-columns: auto auto; gap: var(--space-1) var(--space-2); }
  .agent-card + .agent-card { margin: 0; padding: 0; border: 0; }
  .agent-card > .msg-avatar, .agent-card small { display: none; }
  .agent-card strong { font-size: 11px; }
  .agent-card .agent-state { grid-column: auto; }
  .sidebar > div > details { display: block; grid-column: 1 / -1; order: 2; min-width: 0; }
  .sidebar > div > details::details-content { display: block; content-visibility: hidden; }
  .sidebar > div > details[open]::details-content { content-visibility: visible; }
  .sidebar > div > details > summary { display: list-item; width: fit-content; max-width: calc(100% - 132px); min-height: 40px; margin-left: var(--space-3); padding-block: var(--space-2); color: var(--text-secondary); cursor: pointer; font-size: 12px; }
  .sidebar > div > details:not([open]) > .side-block { display: none; }
  .sidebar > div > details[open] { max-height: 65dvh; overflow-y: auto; }
  /* One scroll for the whole menu, not a list scrolling inside it. */
  .project-list { max-height: none; overflow: visible; }
  .project-list[data-more] { mask-image: none; }
  .sidebar > div > details[open] > .side-block { margin-top: var(--space-2); padding: var(--space-4); }
  .sidebar > div > details .side-block h2 { margin-bottom: var(--space-2); }
  .sidebar > footer { position: absolute; right: 0; top: 56px; padding: 0; margin: 0; }
  .sidebar > footer p { display: none; }
  #btn-restart { font-size: 11px; padding: var(--space-2) var(--space-3); }
  #btn-restart svg { width: 16px; height: 16px; }
  .frame-head { padding-block: var(--space-4); }
  .timeline ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tl-step { grid-template-rows: 32px; }
  .tl-dot, .tl-bar { grid-row: 1; }
  .tl-step .tl-label, .tl-sub { display: none; }
  .tl-step[data-state="active"] .tl-label, .tl-step:last-child[data-state="done"] .tl-label { display: inline; }
  .composer-wrap { padding-bottom: max(var(--space-4), env(safe-area-inset-bottom)); }
}

@media (max-width: 639.98px) {
  :root { --shell-padding: 16px; --radius-lg: 16px; --radius-xl: 16px; }
  .app { height: calc(100vh - 32px); height: calc(100dvh - 32px); padding: 0; gap: var(--space-3); border: 0; box-shadow: none; }
  .sidebar { gap: var(--space-1) var(--space-2); }
  .brand { padding: 0; gap: var(--space-2); }
  .brand > svg { width: 32px; height: 32px; padding: 2px; }
  .brand strong { font-size: 12px; }
  .brand span { font-size: 9px; margin-top: 0; letter-spacing: .1em; }
  .sidebar > div > .side-block { gap: var(--space-2); }
  .agent-card { display: flex; flex-direction: column; gap: 2px; }
  .agent-card strong { font-size: 10px; }
  .agent-state { font-size: 9px; padding-inline: var(--space-1); }
  .sidebar > div > details > summary { margin-left: 0; font-size: 11px; }
  .sidebar > footer { top: 46px; }
  .frame-head { padding: var(--space-3) var(--space-4); gap: var(--space-2); }
  .frame-head > div:first-child { flex-wrap: wrap; gap: var(--space-1); }
  h1 { font-size: 15px; }
  .badge { font-size: 8px; }
  .frame-head > div:last-child { gap: var(--space-1); }
  .timeline { padding: var(--space-3) var(--space-4); }
  .timeline ol { position: relative; display: block; padding-bottom: var(--space-3); }
  .timeline ol::before, .timeline ol::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; border-radius: var(--radius-pill); background: var(--border-control); }
  .timeline ol::after { width: 25%; background: var(--accent); transition: width var(--motion-slow) var(--ease); }
  .timeline:has(.tl-step:nth-child(2)[data-state="active"]) ol::after { width: 50%; }
  .timeline:has(.tl-step:nth-child(3)[data-state="active"]) ol::after { width: 75%; }
  .timeline:has(.tl-step:nth-child(4):is([data-state="active"], [data-state="done"])) ol::after { width: 100%; }
  .tl-step { display: none; }
  .tl-step[data-state="active"], .tl-step:last-child[data-state="done"] { display: flex; gap: var(--space-1); min-height: 24px; }
  .tl-dot, .tl-sub, .tl-bar { display: none; }
  .tl-step::before { color: var(--text-secondary); font-size: 11px; }
  .tl-step:nth-child(1)::before { content: "Step 1 of 4 —"; }
  .tl-step:nth-child(2)::before { content: "Step 2 of 4 —"; }
  .tl-step:nth-child(3)::before { content: "Step 3 of 4 —"; }
  .tl-step:nth-child(4)::before { content: "Step 4 of 4 —"; }
  .tl-label { font-size: 11px; }
  #timeline-hint { margin-top: var(--space-2); font-size: 10px; min-height: 0; }
  .thread { padding: var(--space-6) var(--space-4); }
  .block + .block { margin-top: var(--space-6); }
  .block-msg { font-size: 13px; }
  .msg-body, .msg-adopt { margin-left: 0; }
  .msg-avatar { width: 28px; height: 28px; }
  .msg-head { gap: var(--space-2); }
  .doc-head, .doc-body, .block-gate, .block-report, .block-error { padding: var(--space-4); }
  .doc-head { gap: var(--space-2); }
  .doc-head h2, .doc-head h3 { font-size: 13px; }
  .doc-actions { width: 100%; margin-left: 0; }
  .sources { padding-inline: var(--space-4); }
  .block-handoff { padding: var(--space-4) var(--space-3); }
  .block-handoff > div:not(.handoff-payload) { gap: var(--space-2); }
  .block-handoff .handoff-payload { font-size: 9px; }
  .block-gate .btn, .gate-go, .gate-stay { width: 100%; }
  .block-report > div:has(> .btn) { flex-direction: column; }
  #btn-docx, #btn-pdf, #btn-txt, #btn-restart-2 { width: 100%; }
  .composer-wrap { padding: var(--space-3) var(--space-4) max(var(--space-3), env(safe-area-inset-bottom)); }
  .composer { gap: var(--space-2); padding-left: var(--space-3); }
  .composer > svg { width: 20px; height: 20px; }
  #composer-input { font-size: 16px; }
  .composer-note { margin-top: var(--space-2); font-size: 9px; }
  .setup-banner { margin-inline: var(--space-4); font-size: 11px; }
  .confirm-box { padding: var(--space-6); }
}

/* ============================================================
   Reduced motion — static progress, no transforms or keyframes
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transform: none !important; scroll-behavior: auto !important; transition-property: opacity !important; transition-duration: var(--motion-fast) !important; }
  .tl-bar::after { width: 0; }
  .tl-step[data-state="done"] .tl-bar::after { width: 100%; }
  .block-handoff[data-state="running"] [aria-hidden="true"]:not(.msg-avatar, svg)::after { left: 50%; opacity: 1; }
  .block-handoff[data-state="running"] [aria-hidden="true"] > i { position: static; opacity: 1; }
}
