/* ARIN Web. Tokens: advisorreach-site public/assets/site.css :root (f32b5dc). */
:root {
  --night: #171411; --night-soft: #211d19; --cream: #f4f1ea; --cream-dim: #b9b1a3;
  --paper: #f8f6f1; --paper-bright: #fffdf8; --ink: #1a1a1a; --ink-soft: #4a463f; --muted: #6b6b6b;
  --rule: #d8d2c4; --gold: #b78a2e; --gold-deep: #7a5d13; --gold-night: #d1a54a; --error: #8a342d;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper-bright); color: var(--ink); font: 400 16px/1.55 var(--sans); }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
.muted { color: var(--ink-soft); }
.small { font-size: .82rem; }
.error { color: var(--error); margin: 0; }
.brand { display: flex; align-items: center; gap: .55rem; font: 500 1.6rem/1 var(--serif); letter-spacing: -.06em; }
.brand svg { width: 1.6rem; height: 1.6rem; fill: none; stroke-linecap: square; }
.brand svg path:first-child { stroke: var(--ink); stroke-width: 6; }
.brand svg path:last-child { stroke: var(--gold); stroke-width: 8; }
.primary { min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--gold-deep); background: var(--night); color: var(--cream); font-weight: 700; letter-spacing: .02em; }
.primary:hover { background: var(--night-soft); }
.link { background: none; border: 0; color: var(--gold-deep); padding: .4rem 0; text-decoration: underline; text-underline-offset: 3px; }
.icon { background: none; border: 0; font-size: 1.2rem; min-width: 44px; min-height: 44px; }

/* sign in */
.signin { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.signin__card { width: min(26rem, 100%); background: var(--paper); border-top: 2px solid var(--gold); padding: 2rem 1.5rem; }
.by { display: block; margin: .3rem 0 1.4rem; font: 650 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.stack { display: flex; flex-direction: column; gap: .6rem; }
.stack h1 { font: 600 1.5rem/1.2 var(--serif); letter-spacing: -.02em; margin: 0; }
.stack p { margin: 0 0 .4rem; }
.stack label { font-weight: 600; }
.stack input { min-height: 44px; padding: .6rem .75rem; border: 1px solid var(--rule); background: var(--paper-bright); border-radius: .15rem; }
#code { font-size: 1.6rem; letter-spacing: .5em; text-align: center; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* app layout */
.app { display: flex; height: 100%; }
.side { width: 17.5rem; flex: none; display: flex; flex-direction: column; gap: .8rem; padding: 1rem; background: var(--paper); border-right: 1px solid var(--rule); }
.side__top { display: flex; align-items: center; justify-content: space-between; }
.new { width: 100%; }
.tabs { display: flex; border: 1px solid var(--rule); }
.tab { flex: 1; min-height: 40px; background: none; border: 0; border-right: 1px solid var(--rule); color: var(--ink-soft); font-weight: 600; font-size: .85rem; }
.tab:last-child { border-right: 0; }
.tab.active { background: var(--night); color: var(--cream); }
.convos { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.convos button { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid transparent; padding: .6rem .6rem; min-height: 44px; }
.convos button:hover { background: var(--paper-bright); }
.convos button.active { background: var(--paper-bright); border-left-color: var(--gold); }
.convos .t { display: block; font: 500 .95rem/1.3 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convos .m { display: block; font-size: .75rem; color: var(--muted); }
.side__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: .6rem; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: .5rem; min-height: 56px; padding: 0 1rem; border-bottom: 1px solid var(--rule); }
.bar h2 { margin: 0; font: 600 1.1rem/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.pad { padding: 1rem 1.25rem 0; margin: 0; }

/* chat */
.thread { list-style: none; margin: 0 auto; padding: 1.5rem 1rem 1rem; width: min(48rem, 100%); display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.msg { max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--night); color: var(--cream); padding: .65rem .9rem; border-radius: 1.1rem 1.1rem .25rem 1.1rem; }
.msg.assistant { align-self: flex-start; font-family: var(--serif); font-size: 1.05rem; }
.msg.assistant a { color: var(--gold-deep); }
.msg.working { color: var(--muted); font-style: italic; }
.empty { margin: auto; text-align: center; padding: 2rem 1rem; }
.empty h3 { font: 600 1.6rem/1.2 var(--serif); letter-spacing: -.02em; margin: 0 0 .4rem; }
.composer { position: sticky; bottom: 0; display: flex; gap: .5rem; align-items: flex-end; width: min(48rem, 100% - 2rem); margin: 0 auto 1rem; padding: .5rem; background: var(--paper-bright); border: 1px solid var(--rule); border-radius: 1.4rem; box-shadow: 0 .4rem 1.5rem rgba(23,20,17,.07); }
.composer textarea { flex: 1; border: 0; resize: none; max-height: 12rem; padding: .55rem .7rem; background: transparent; outline: none; }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--night); color: var(--cream); font-size: 1.1rem; }
.send:disabled { opacity: .4; cursor: default; }

/* lists */
.list { list-style: none; margin: 1rem 1.25rem; padding: 0; border-top: 1px solid var(--rule); }
.list li { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .9rem .25rem; border-bottom: 1px solid var(--rule); }
.list .t { font: 600 1rem/1.3 var(--serif); }
.list .m { font-size: .8rem; color: var(--muted); }
.list .acts { display: flex; gap: .4rem; flex: none; }
.list .acts button { min-height: 36px; padding: 0 .8rem; background: var(--paper-bright); border: 1px solid var(--rule); font-size: .8rem; font-weight: 600; }
.list a { color: var(--gold-deep); font-weight: 600; }

.only-mobile { display: none; }
@media (max-width: 760px) {
  .only-mobile { display: inline-block; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 10; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 2rem rgba(0,0,0,.2); }
  .side.open { transform: none; }
  .msg { max-width: 92%; }
}
