/* ===========================================================================
 * Vestris landing — the demo, a faithful recreation of the Vestris (Amanda)
 * agentic console: sidebar · file timeline · conversation.
 * =========================================================================== */
.demo-stage { max-width: 1340px; margin: 0 auto; position: relative; }
.agentic {
  display: flex; height: min(840px, 90vh); min-height: 640px;
  background: #f4f1ea; color: #25241f;
  border: 1px solid rgba(26,26,26,0.14); border-radius: 18px; overflow: hidden;
  box-shadow: 0 80px 150px -55px rgba(40,55,45,0.55), 0 18px 44px -22px rgba(40,55,45,0.26);
  font-size: 15.5px;
}

/* ---- sidebar ---- */
.ag-side { width: 226px; flex-shrink: 0; border-right: 1px solid #e6e2d6; display: flex; flex-direction: column; background: #f7f4ee; }
.ag-side-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 22px; }
.ag-brand { display: flex; align-items: center; gap: 9px; }
.ag-brand .compass { width: 20px; height: 26px; color: #436651; }
.ag-brand span { font-family: var(--font-serif); font-size: 22px; color: #1d2a1d; }
.ag-collapse { color: #b3b0a3; font-size: 16px; }
.ag-nav { display: flex; flex-direction: column; gap: 3px; padding: 0 12px; }
.ag-nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; font-size: 14.5px; color: #5b594e; }
.ag-nav-item .ag-ic { font-size: 14px; opacity: 0.75; width: 16px; text-align: center; }
.ag-nav-item.active { background: #e7f5ec; color: #436651; font-weight: 600; }
.ag-badge { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: #8c8a7d; }
.ag-side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-top: 1px solid #e6e2d6; }
.ag-org-badge { width: 30px; height: 30px; border-radius: 8px; background: #436651; color: #f1efe6; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; }
.ag-org-name { font-size: 13.5px; font-weight: 600; color: #2a2a24; }
.ag-org-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a092; margin-top: 2px; }

/* ---- main ---- */
.ag-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 26px; border-bottom: 1px solid #e6e2d6; }
.ag-top-l { display: flex; align-items: flex-start; gap: 16px; min-width: 0; flex: 1; }
.ag-back { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8c8a7d; padding-top: 6px; white-space: nowrap; }
.ag-addr { font-family: var(--font-serif); font-size: 23px; font-weight: 400; color: #20201b; margin: 0; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ag-addr-sub { font-family: var(--font-mono); font-size: 11px; color: #9a9788; margin-top: 5px; letter-spacing: 0.02em; }
.ag-top-r { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.ag-ic2 { color: #8c8a7d; font-size: 15px; }
.ag-del { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #9a5a2a; border: 1px solid #e0c9a8; border-radius: 7px; padding: 7px 11px; }
.ag-pill-user { font-size: 13px; color: #3a3a32; border: 1px solid #e6e2d6; border-radius: 8px; padding: 6px 11px; background: #fbf9f3; }
.ag-classic { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #6b6960; border: 1px solid #d8d4c7; border-radius: 7px; padding: 7px 11px; }
.ag-me { text-align: right; }
.ag-me-name { font-size: 13px; font-weight: 600; color: #2a2a24; }
.ag-me-email { font-size: 11px; color: #a3a092; }
.ag-avatar { width: 34px; height: 34px; border-radius: 50%; background: #5b6bb0; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }

/* ---- two columns ---- */
.ag-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
.ag-file { padding: 26px 22px; overflow-y: auto; border-right: 1px solid #e6e2d6; }
.ag-file::-webkit-scrollbar, .ag-chat-body::-webkit-scrollbar { width: 8px; }
.ag-file::-webkit-scrollbar-thumb, .ag-chat-body::-webkit-scrollbar-thumb { background: rgba(31,42,32,0.16); border-radius: 20px; }

.ag-card { background: #fdfcf8; border: 1px solid #e7e3d7; border-radius: 16px; padding: 20px 22px; }
.ag-card-head { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; color: #25241f; margin-bottom: 16px; }
.ag-hd-dot { width: 8px; height: 8px; border-radius: 50%; background: #436651; }

.ag-timeline { display: flex; flex-direction: column; }
.ag-step { display: grid; grid-template-columns: 22px 1fr auto; align-items: start; column-gap: 12px; }
.ag-step-rail { display: flex; flex-direction: column; align-items: center; }
.ag-step-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #c7c3b5; background: #f4f1ea; margin-top: 4px; flex-shrink: 0; }
.ag-step.done .ag-step-dot { background: #436651; border-color: #436651; }
.ag-step.active .ag-step-dot { background: #436651; border-color: #436651; box-shadow: 0 0 0 4px rgba(67,102,81,0.16); }
.ag-step-line { width: 1.5px; flex: 1; min-height: 22px; background: #ddd9cc; }
.ag-step:last-child .ag-step-line { display: none; }
.ag-step-label { font-size: 15px; color: #b3b0a1; padding: 1px 0 18px; }
.ag-step.done .ag-step-label, .ag-step.active .ag-step-label { color: #25241f; font-weight: 500; }
.ag-step-meta { font-family: var(--font-mono); font-size: 12px; color: #9a9788; padding-top: 2px; white-space: nowrap; }
.ag-step-meta .chev { color: #c2bfb0; margin-left: 6px; }
.ag-step.pending .ag-step-meta { color: #c7c3b5; }

.ag-docs { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 16px; border-top: 1px solid #ece8dc; }
.ag-docs-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a092; }
.ag-adddoc { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #5b594e; border: 1px solid #d8d4c7; border-radius: 8px; padding: 8px 13px; }

.ag-review { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 16px 18px; background: #f7edd6; border: 1px solid #ecdcb4; border-radius: 14px; }
.ag-review-t { font-size: 14px; font-weight: 700; color: #8a6a1e; display: flex; align-items: center; gap: 8px; }
.ag-review-t::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c08a2a; }
.ag-review-s { font-family: var(--font-mono); font-size: 11px; color: #9a8458; margin-top: 5px; padding-left: 15px; }
.ag-review-btn { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: #b5832d; color: #f6efe0; border-radius: 8px; padding: 9px 14px; white-space: nowrap; }

/* ---- conversation ---- */
.ag-chat { display: flex; flex-direction: column; min-height: 0; background: #f4f1ea; }
.ag-chat-tabs { display: flex; align-items: center; gap: 22px; padding: 16px 26px 0; border-bottom: 1px solid #e6e2d6; }
.ag-tab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #9a9788; padding-bottom: 12px; }
.ag-tab.active { color: #436651; box-shadow: inset 0 -2px 0 #436651; }
.ag-clear { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #b0ad9f; padding-bottom: 12px; }
.ag-chat-body { flex: 1; overflow-y: auto; padding: 24px 26px; }
.ag-empty-line { font-size: 15px; line-height: 1.55; color: #6f6d60; max-width: 44ch; }

.ag-q { display: inline-block; background: #e9e5d9; color: #2a2a24; border-radius: 14px; border-bottom-right-radius: 4px; padding: 10px 15px; font-size: 14px; float: right; clear: both; margin-bottom: 18px; max-width: 80%; }
.ag-a { clear: both; display: flex; gap: 10px; margin-bottom: 16px; animation: agIn 0.35s var(--ease-out); }
@keyframes agIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ag-a .compass { width: 16px; height: 21px; color: #436651; flex-shrink: 0; margin-top: 2px; }
.ag-a-body { font-size: 14.5px; line-height: 1.6; color: #2c2b25; }
.ag-a-body b { font-weight: 600; }
.ag-a-body ul { margin: 8px 0 0; padding-left: 16px; }
.ag-a-body li { margin: 6px 0; }
.ag-fig { margin-top: 14px; background: #f0ede3; border: 1px solid #e2ddcf; border-radius: 12px; padding: 14px 16px; }
.ag-fig-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a092; margin-bottom: 10px; }
.ag-fig-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; color: #3a3930; }
.ag-fig-row .v { font-family: var(--font-mono); font-size: 13px; color: #25241f; }
.ag-fig-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 12px; border-top: 1px solid #cfd6bd; font-weight: 700; color: #436651; }
.ag-fig-total .v { font-family: var(--font-mono); color: #436651; }

.ag-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 26px 14px; }
.ag-suggest button { background: #fbf9f3; border: 1px solid #ddd9cc; border-radius: 9999px; padding: 9px 15px; font-family: var(--font-sans); font-size: 13px; color: #3a3930; transition: border-color 0.18s ease, background 0.18s ease; }
.ag-suggest button:hover { border-color: #436651; background: #fff; }
.ag-compose { display: flex; align-items: center; gap: 10px; padding: 0 26px 22px; }
.ag-compose input { flex: 1; min-width: 0; border: 1px solid #ddd9cc; border-radius: 9999px; padding: 14px 18px; font-family: var(--font-sans); font-size: 14px; background: #fbf9f3; outline: none; }
.ag-compose input:focus { border-color: #436651; }
.ag-compose button { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid #ddd9cc; background: #fbf9f3; color: #436651; font-size: 16px; }

/* ---- mobile ---- */
@media (max-width: 1200px) {
  .ag-pill-user, .ag-me { display: none; }
}
@media (max-width: 920px) {
  .agentic { flex-direction: column; height: auto; }
  .ag-side { width: 100%; flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid #e6e2d6; }
  .ag-side-top { padding: 14px 18px; }
  .ag-nav { flex-direction: row; padding: 0; }
  .ag-side-foot { display: none; }
  .ag-cols { grid-template-columns: 1fr; }
  .ag-file { border-right: none; border-bottom: 1px solid #e6e2d6; }
  .ag-top-r .ag-me, .ag-top-r .ag-pill-user, .ag-top-r .ag-classic { display: none; }
  .ag-chat-body { min-height: 280px; }
}
