* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--c-ground); color: var(--c-ink); font-family: var(--f-sans); font-size: var(--t-base); line-height: 20px; -webkit-font-smoothing: antialiased; }
.shell { min-height: 900px; display: grid; grid-template-columns: 540px 1fr; max-width: 1440px; margin: 0 auto; }
.gate-col { background-color: var(--c-surface); border-right: 1px solid var(--c-line); padding: var(--s-6) var(--s-7); display: flex; flex-direction: column; justify-content: space-between; }
.brand-bar { display: flex; align-items: center; justify-content: space-between; }
.brand-lock { display: flex; align-items: center; gap: var(--s-3); }
.brand-title { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--c-ink); letter-spacing: -0.02em; }
.loc-tag { font-family: var(--f-mono); letter-spacing: 0; font-size: 11px; line-height: 16px; color: var(--c-ink-2); background-color: var(--c-subtle); border: 1px solid var(--c-line); padding: 4px 8px; border-radius: var(--r-ctl); white-space: nowrap; }
.gate-card { display: flex; flex-direction: column; gap: var(--s-5); max-width: 420px; }
.gate-h1 { font-size: 28px; line-height: 36px; font-weight: 600; color: var(--c-ink); letter-spacing: -0.02em; }
.gate-sub { font-size: 15px; line-height: 22px; color: var(--c-ink-2); }
.form-stack { display: flex; flex-direction: column; gap: var(--s-4); }
.field-group { display: flex; flex-direction: column; gap: var(--s-2); }
.field-label { font-size: var(--t-label); line-height: 16px; font-weight: 600; color: var(--c-ink); display: flex; justify-content: space-between; }
.field-hint { font-weight: 400; color: var(--c-ink-3); }
.phone-input-wrap { display: flex; align-items: center; height: var(--touch-lg); background-color: var(--c-surface); border: 1px solid var(--c-control-line); border-radius: var(--r-ctl); padding: 0 var(--s-3); gap: var(--s-3); }
.phone-prefix { font-family: var(--f-mono); letter-spacing: 0; font-size: var(--t-sm); line-height: 20px; color: var(--c-ink-2); padding-right: var(--s-3); border-right: 1px solid var(--c-line); white-space: nowrap; }
.phone-val { font-family: var(--f-mono); letter-spacing: 0; font-size: 15px; line-height: 20px; color: var(--c-ink); flex: 1; border: none; background: transparent; outline: none; }
.autofill-chip { font-size: var(--t-label); line-height: 16px; font-weight: 500; color: var(--c-accent); background-color: var(--c-accent-tint); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.coparent-box { background-color: var(--c-subtle); border: 1px solid var(--c-line); border-radius: var(--r-tile); padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.coparent-hdr { display: flex; justify-content: space-between; align-items: center; font-size: var(--t-sm); line-height: 20px; font-weight: 600; color: var(--c-ink); gap: var(--s-2); }
.mode-switch { font-family: var(--f-mono); letter-spacing: 0; font-size: 11px; line-height: 16px; color: var(--c-ok); background-color: var(--c-ok-tint); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.coparent-desc { font-size: var(--t-label); line-height: 18px; color: var(--c-ink-2); }
.coparent-row { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-2); border-top: 1px solid var(--c-line); font-family: var(--f-mono); font-size: 11px; line-height: 16px; color: var(--c-ink); gap: var(--s-2); }
.btn-primary { height: var(--touch-lg); background-color: var(--c-ink); color: var(--c-on-accent); border: 1px solid var(--c-ink); border-radius: var(--r-ctl); font-family: var(--f-sans); font-size: var(--t-base); line-height: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: var(--s-2); cursor: pointer; }
.btn-secondary { height: var(--touch); background-color: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line-strong); border-radius: var(--r-ctl); font-family: var(--f-sans); font-size: var(--t-sm); line-height: 20px; font-weight: 500; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.legal-note { font-size: var(--t-label); line-height: 18px; color: var(--c-ink-3); }
.footer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; line-height: 16px; color: var(--c-ink-3); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.preview-col { padding: var(--s-6) var(--s-7); display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); }
.preview-hdr { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--c-line); padding-bottom: var(--s-3); }
.preview-title { font-size: var(--t-section); line-height: 20px; font-weight: 600; color: var(--c-ink); }
.preview-sub { font-size: var(--t-label); line-height: 16px; color: var(--c-ink-2); }
.sms-sheet { background-color: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.sms-top { background-color: var(--c-sidebar); border-bottom: 1px solid var(--c-line); padding: var(--s-3) var(--s-4); display: flex; justify-content: space-between; align-items: center; }
.sms-participants { display: flex; flex-direction: column; gap: 2px; }
.sms-thread-name { font-size: var(--t-sm); line-height: 18px; font-weight: 600; color: var(--c-ink); }
.sms-thread-sub { font-family: var(--f-mono); letter-spacing: 0; font-size: 11px; line-height: 16px; color: var(--c-ink-2); }
.sms-body { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.msg { max-width: 580px; padding: var(--s-3) var(--s-4); border-radius: var(--r-tile); font-size: var(--t-sm); line-height: 20px; display: flex; flex-direction: column; gap: 6px; }
.msg--agent { background-color: var(--c-subtle); border: 1px solid var(--c-line); color: var(--c-ink); align-self: flex-start; }
.msg--parent { background-color: var(--c-select); border: 1px solid var(--c-select-line); color: var(--c-ink); align-self: flex-end; }
.msg-meta { display: flex; justify-content: space-between; gap: var(--s-4); font-family: var(--f-mono); font-size: 11px; color: var(--c-ink-3); }
.opp-inline { background-color: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-ctl); padding: var(--s-2) var(--s-3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); font-family: var(--f-mono); font-size: 11px; color: var(--c-ink-2); }
.opp-inline strong { font-family: var(--f-sans); font-weight: 600; color: var(--c-ink); }
.vault-bar { background-color: var(--c-sidebar); border-top: 1px solid var(--c-line); padding: var(--s-3) var(--s-4); display: flex; justify-content: space-between; align-items: center; font-size: var(--t-label); color: var(--c-ink-2); }
.vault-code { font-family: var(--f-mono); color: var(--c-ink); }
@media (max-width: 600px) {
  .shell { grid-template-columns: 1fr; min-height: 844px; }
  .gate-col { padding: var(--s-5) var(--s-4); border-right: none; min-height: 844px; }
  .preview-col { display: none; }
}
