:root {
  --navy: #071729;
  --navy-2: #0b2139;
  --gold: #caa85c;
  --gold-soft: #e2c98d;
  --paper: #f5f2eb;
  --ink: #122033;
  --muted: #6f7a88;
  --line: rgba(202,168,92,.28);
  --white: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif; background: var(--navy); color: var(--ink); }
body { min-height: 100vh; }
button, textarea, input { font: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .8fr) minmax(520px, 1.2fr); background: var(--paper); }
.brand-panel { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 86px); background: radial-gradient(circle at 70% 20%, rgba(202,168,92,.13), transparent 35%), linear-gradient(145deg, #061524, #0a2038); color: white; display: flex; flex-direction: column; justify-content: center; }
.brand-panel::after { content: ""; position: absolute; inset: 18px; border: 1px solid var(--line); pointer-events: none; }
.mark { width: 54px; height: 54px; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 600 30px/1 Georgia, serif; margin-bottom: 28px; }
.eyebrow { color: var(--gold-soft); letter-spacing: .24em; font-size: 12px; margin-bottom: 22px; }
.brand-panel h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 5vw, 66px); line-height: 1.02; font-weight: 400; margin: 0; max-width: 760px; }
.brand-panel h1 span { color: var(--gold-soft); }
.brand-panel p { max-width: 570px; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.6; margin: 28px 0 0; }
.brand-note { margin-top: 52px; color: rgba(255,255,255,.45); letter-spacing: .16em; font-size: 12px; }
.chat-panel { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto auto; background: #f8f7f3; }
.chat-header { padding: 22px 28px; border-bottom: 1px solid #ddd9d0; display: flex; align-items: center; justify-content: space-between; background: rgba(248,247,243,.95); }
.chat-header strong { display: block; color: var(--navy); letter-spacing: .12em; font-size: 13px; }
.chat-header span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.ghost { border: 1px solid #d6d1c6; background: transparent; border-radius: 999px; padding: 8px 12px; cursor: pointer; color: #435063; }
.messages { overflow-y: auto; padding: 30px clamp(18px, 4vw, 52px); display: flex; flex-direction: column; gap: 14px; }
.message { display: flex; }
.message.user { justify-content: flex-end; }
.bubble { max-width: min(680px, 86%); padding: 13px 16px; border-radius: 18px; line-height: 1.5; white-space: pre-wrap; box-shadow: 0 5px 22px rgba(10,20,35,.04); }
.assistant .bubble { background: white; border: 1px solid #e4e0d8; border-bottom-left-radius: 5px; }
.user .bubble { background: var(--navy-2); color: white; border-bottom-right-radius: 5px; }
.typing .bubble { color: var(--muted); font-style: italic; }
.file-list { padding: 0 clamp(18px, 4vw, 52px) 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; background: #eeeae1; border: 1px solid #ddd6c7; border-radius: 999px; font-size: 12px; color: #465264; }
.file-chip button { border: 0; background: transparent; cursor: pointer; color: #7b6550; padding: 0; }
.composer { margin: 0 clamp(18px, 4vw, 52px); border: 1px solid #d8d3c9; border-radius: 18px; background: white; display: grid; grid-template-columns: auto 1fr auto; align-items: end; padding: 8px; box-shadow: 0 12px 35px rgba(9,25,43,.08); }
.attach { width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--gold); font-size: 25px; }
textarea { resize: none; border: 0; outline: none; padding: 10px 8px; min-height: 42px; max-height: 160px; color: var(--ink); background: transparent; }
.send { border: 0; background: var(--navy); color: white; border-radius: 12px; padding: 11px 16px; cursor: pointer; }
.send:disabled { opacity: .45; cursor: default; }
.privacy { margin: 9px clamp(18px, 4vw, 52px) 18px; color: #9399a1; font-size: 10px; text-align: center; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 36vh; padding: 42px 28px; }
  .brand-panel h1 { font-size: 42px; }
  .brand-panel p { margin-top: 18px; }
  .brand-note { display: none; }
  .chat-panel { min-height: 64vh; }
}
@media (max-width: 560px) {
  .brand-panel { min-height: 28vh; padding: 30px 22px; }
  .mark { width: 42px; height: 42px; font-size: 24px; margin-bottom: 16px; }
  .brand-panel h1 { font-size: 31px; }
  .brand-panel p { display: none; }
  .chat-header { padding: 16px; }
  .messages { padding: 20px 14px; }
  .composer, .privacy { margin-left: 12px; margin-right: 12px; }
  .file-list { padding-left: 14px; padding-right: 14px; }
  .send { padding: 10px 12px; }
}

.brand-logo{width:min(260px,100%);height:auto;max-height:220px;object-fit:contain;margin-bottom:28px}.bubble a{color:#96783b;font-weight:600}

.chat-panel{grid-template-rows:auto minmax(240px,1fr) auto auto auto auto}.consent{margin:6px 30px 12px;font-size:12px;color:#657080}.consent a{color:#96783b}.chat-header select{background:transparent;border:1px solid #d6d1c6;border-radius:8px;padding:6px}.message{direction:inherit}.brand-panel[dir=rtl]{text-align:right}
.privacy-page{background:#f8f7f3;max-width:960px;margin:0 auto;padding:36px;line-height:1.6}.privacy-page section{border-bottom:1px solid #d6d1c6;padding:20px 0}.privacy-page a{color:#96783b}
