:root {
    --navy: #071b33;
    --navy-2: #102a45;
    --charcoal: #202225;
    --ivory: #fbf8f0;
    --white: #ffffff;
    --gold: #b8954b;
    --gold-dark: #82652d;
    --grey: #e8e8e4;
    --muted: #6f757b;
    --line: #d8d6cf;
    --font-serif: Georgia, "Times New Roman", serif;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
    margin: 0;
    background: var(--ivory);
    color: var(--charcoal);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
input, textarea, select, button { max-width: 100%; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 12px; z-index: 40; }
.skip-link:focus { left: 8px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 248, 240, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: 0; }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--navy); color: var(--gold); border: 1px solid var(--gold); font-family: var(--font-serif); }
.brand-logo { display: inline-grid; place-items: center; width: 54px; height: 44px; border: 1px solid var(--gold); background: var(--white); overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.primary-nav { display: flex; align-items: center; gap: 22px; font-size: .94rem; }
.primary-nav a { text-decoration: none; color: var(--navy); }
.primary-nav a.is-active { color: var(--gold-dark); box-shadow: inset 0 -2px 0 var(--gold); }
.primary-nav .nav-cta { border: 1px solid var(--gold); padding: 9px 14px; }
.primary-nav .nav-cta.is-active { background: var(--gold); color: var(--navy); box-shadow: none; }
.nav-toggle { display: none; background: var(--navy); color: var(--white); border: 0; padding: 10px 12px; }

.hero {
    position: relative;
    min-height: 700px;
    display: grid;
    align-items: center;
    color: var(--white);
    background: var(--navy);
}
.hero-image {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(7,27,51,.94), rgba(7,27,51,.74) 45%, rgba(7,27,51,.18)), url("/assets/law-chambers-hero.png");
    background-size: cover;
    background-position: center;
}
.hero-content { position: relative; padding: 118px 0 150px; }
.hero h1, .page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    line-height: .98;
    letter-spacing: 0;
}
.lede { max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.86); }
.lede-small { font-size: 1.2rem; color: rgba(255,255,255,.78); }
.eyebrow { margin: 0 0 16px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; text-decoration: none; border: 1px solid transparent; font-weight: 700; cursor: pointer; border-radius: 0; }
.button-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.button-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.button-outline.dark { color: var(--navy); border-color: var(--gold); }
.danger { color: #7b1f1f; border-color: #b96d6d; background: #fff5f5; margin-top: 12px; }

.section { padding: 92px 0; }
.intro-band { background: var(--white); border-bottom: 1px solid var(--line); }
.muted-section { background: #f1f0eb; }
.navy-section { background: var(--navy); color: var(--white); }
.cta-section { background: var(--navy-2); color: var(--white); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: start; }
.section h2, .split h2 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}
.section-head { margin-bottom: 28px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card {
    min-height: 260px;
    background: var(--white);
    padding: 32px;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.service-card:hover, .service-card:focus { background: var(--navy); color: var(--white); outline: none; }
.service-card span, .case-meta { color: var(--gold-dark); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.service-card h3, .case-card h3 { margin: 18px 0 10px; font-family: var(--font-serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }
.service-card p, .case-card p { color: var(--muted); margin: 0; }
.service-card:hover p, .service-card:focus p { color: rgba(255,255,255,.78); }

.case-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-card { background: var(--white); color: inherit; padding: 28px 32px; display: grid; grid-template-columns: minmax(140px, .85fr) minmax(0, 2fr) minmax(150px, .75fr); gap: 28px; align-items: start; text-decoration: none; transition: background .18s ease; }
.case-card:hover, .case-card:focus { background: #fbfaf5; outline: 2px solid rgba(184,149,75,.35); outline-offset: -2px; }
.case-card h3 { margin-top: 0; color: var(--navy); }
.case-main { min-width: 0; }
.case-read-more { display: inline-block; margin-top: 14px; color: var(--gold-dark); font-weight: 800; }
.case-practice { color: var(--gold-dark); font-weight: 700; font-size: .88rem; }
.reason-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 36px; }
.reason-grid strong { color: var(--navy); }
.text-link { display: inline-block; margin-top: 18px; color: var(--gold); font-weight: 700; }
.profile-preview { display: grid; grid-template-columns: 260px minmax(0, .85fr) minmax(0, 1fr); gap: 42px; align-items: start; }
.profile-copy { min-width: 0; }
.profile-photo-frame {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.06);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: rgba(255,255,255,.68);
    font-size: .9rem;
    text-align: center;
}
.profile-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-large { max-width: none; margin-bottom: 34px; border-color: var(--line); background: #ecebe5; color: var(--muted); }
.media-preview { width: 180px; height: 120px; display: grid; place-items: center; border: 1px solid var(--line); background: #f2f1ec; overflow: hidden; color: var(--muted); font-size: .86rem; }
.media-preview.logo-preview { width: 190px; height: 88px; }
.media-preview.avatar-preview { width: 86px; height: 86px; border-radius: 50%; }
.media-preview.insight-cover-preview { width: min(100%, 420px); height: auto; aspect-ratio: 16 / 9; }
.media-preview img { width: 100%; height: 100%; object-fit: contain; }
.avatar-preview img { object-fit: cover; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border: 1px solid #bfc3c7; border-bottom: 0; background: #f2f1ec; }
.editor-toolbar button { width: auto; border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: 7px 10px; font-weight: 800; cursor: pointer; }
.rich-editor { min-height: 340px; border: 1px solid #bfc3c7; background: var(--white); padding: 18px; overflow: auto; }
.rich-editor:focus { outline: 2px solid rgba(184,149,75,.42); outline-offset: 2px; }
.rich-editor-source { position: absolute; left: -9999px; width: 1px; height: 1px; min-height: 1px; }

.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 100px 0 85px;
    border-bottom: 4px solid var(--gold);
}
.page-hero .lede { color: rgba(255,255,255,.82); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 60px; align-items: start; }
.prose { max-width: 820px; font-size: 1.08rem; }
.prose h2 { margin-top: 34px; font-size: 2rem; }
.rich-prose p { margin: 0 0 1.15em; }
.rich-prose blockquote { margin: 32px 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: #f4f2eb; font-family: var(--font-serif); font-size: 1.24rem; }
.rich-prose ul, .rich-prose ol { padding-left: 1.4rem; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.insight-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.insight-cover, .article-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.insight-cover-placeholder, .article-cover-placeholder {
    background: linear-gradient(135deg, var(--navy), #152f4b);
    color: var(--gold);
    border-bottom: 4px solid var(--gold);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    text-align: center;
    padding: 18px;
}
.insight-cover-image, .article-cover-image { background: var(--white); border-bottom: 0; padding: 0; }
.insight-cover img, .article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.insight-card-body { padding: 24px; }
.insight-card-body span { color: var(--gold-dark); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.insight-card-body h3 { margin: 14px 0 10px; font-family: var(--font-serif); font-size: 1.42rem; line-height: 1.2; font-weight: 500; }
.insight-card-body p { margin: 0; color: var(--muted); }
.article-layout { display: grid; gap: 42px; }
.article-cover { width: min(100%, 920px); margin: 0 auto; border: 1px solid var(--line); }
.article-cover-placeholder { border-color: transparent; }
.article-body { width: min(100%, 820px); margin: 0 auto; }
.side-panel { border-top: 4px solid var(--gold); background: var(--white); padding: 28px; box-shadow: 0 1px 0 var(--line); }
.formal-form, .admin-form, .login-panel { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 700; color: var(--navy); }
input, textarea, select {
    width: 100%;
    border: 1px solid #bfc3c7;
    background: var(--white);
    color: var(--charcoal);
    padding: 12px 13px;
    font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input { width: auto; margin-top: 6px; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; }
.notice { background: #edf8ee; border: 1px solid #bdd7c0; color: #1b5e25; padding: 12px 14px; margin-bottom: 18px; }
.alert { background: #fff1f1; border: 1px solid #d49a9a; color: #7b1f1f; padding: 12px 14px; margin-bottom: 18px; }
.pager { margin-top: 24px; }
.small-muted { color: var(--muted); font-size: .9rem; }
.totp-setup { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: center; border: 1px solid var(--line); background: #faf9f4; padding: 18px; }
.totp-qr { width: 220px; height: 220px; background: var(--white); border: 1px solid var(--line); padding: 10px; display: grid; place-items: center; }
.totp-qr svg { width: 100%; height: 100%; display: block; }
.totp-qr-missing { color: var(--muted); text-align: center; font-weight: 800; }
.totp-secret { display: inline-block; max-width: 100%; overflow-wrap: anywhere; background: var(--white); border: 1px solid var(--line); color: var(--navy); padding: 10px 12px; letter-spacing: .08em; }

.site-footer { background: #101418; color: rgba(255,255,255,.78); padding: 62px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { color: var(--white); font-family: var(--font-serif); font-weight: 500; font-size: 1.2rem; }
.footer-grid a { color: rgba(255,255,255,.86); }
.footer-brand { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .9rem; }

.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: min(380px, calc(100vw - 40px)); }
.chat-toggle { float: right; background: var(--gold); color: var(--navy); border: 0; padding: 13px 18px; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.chat-panel { clear: both; margin-top: 58px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(0,0,0,.24); }
.chat-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: var(--navy); color: var(--white); padding: 14px 16px; }
#chat-status.live { color: #c9f2d4; }
.chat-minimize { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: var(--white); padding: 0; font-weight: 900; cursor: pointer; }
.chat-disclaimer { padding: 14px 16px; margin: 0; color: var(--muted); font-size: .86rem; border-bottom: 1px solid var(--line); }
.chat-form { display: grid; gap: 12px; padding: 16px; }
.chat-room { padding: 14px; }
.chat-messages { display: grid; gap: 10px; max-height: 300px; overflow: auto; margin-bottom: 12px; padding: 2px; align-content: start; }
.chat-row { display: flex; }
.chat-row.visitor { justify-content: flex-end; }
.chat-row.agent { justify-content: flex-start; }
.chat-msg { max-width: 82%; border-radius: 12px; padding: 11px 13px; background: #f0f0ec; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.chat-msg strong { display: block; font-size: .78rem; opacity: .72; }
.chat-msg span { display: block; margin-top: 4px; }
.chat-msg.agent { background: var(--navy); color: var(--white); }
.chat-msg.visitor { background: #f6f5ef; color: var(--charcoal); }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: 8px; vertical-align: middle; }
.typing-indicator { color: var(--muted); font-size: .86rem; margin: -4px 0 10px; }
.chat-send { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-send button { background: var(--gold); color: var(--navy); border: 0; padding: 0 14px; font-weight: 800; }

.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--navy); }
.login-panel { width: min(440px, calc(100% - 32px)); background: var(--ivory); padding: 34px; border-top: 4px solid var(--gold); }
.login-panel h1 { font-family: var(--font-serif); font-weight: 500; }
.admin-body { display: grid; grid-template-columns: 280px 1fr; background: #f5f5f2; min-height: 100vh; }
.admin-sidebar { background: var(--navy); color: var(--white); padding: 24px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-sidebar .brand { color: var(--white); margin-bottom: 24px; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar a, .admin-sidebar button { color: rgba(255,255,255,.85); text-decoration: none; background: transparent; border: 0; text-align: left; padding: 9px 0; font: inherit; cursor: pointer; }
.admin-sidebar a:hover, .admin-sidebar button:hover { color: var(--gold); }
.nav-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .74rem; font-weight: 900; padding: 0 6px; }
.admin-notice-pop { position: fixed; top: 18px; right: 18px; z-index: 60; background: var(--navy); color: var(--white); border-left: 4px solid var(--gold); padding: 14px 18px; box-shadow: 0 14px 36px rgba(0,0,0,.22); max-width: min(360px, calc(100vw - 36px)); }
.admin-main { padding: 34px; max-width: 1280px; width: 100%; }
.admin-main, .admin-panel, .admin-form, .formal-form, .side-panel { min-width: 0; }
.admin-title-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.metric-grid div, .admin-panel { background: var(--white); border: 1px solid var(--line); padding: 20px; }
.metric-grid span { display: block; color: var(--muted); font-size: .88rem; }
.metric-grid strong { display: block; font-size: 2rem; color: var(--navy); font-family: var(--font-serif); }
.admin-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); margin: 20px 0; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-table form { margin: 0; }
.admin-table .danger { margin-top: 0; }
.admin-form { max-width: 840px; background: var(--white); border: 1px solid var(--line); padding: 24px; }
.admin-form.compact { max-width: 560px; padding: 0; border: 0; }
.timeline-list { display: grid; gap: 12px; }
.timeline-item { border-left: 3px solid var(--gold); background: #faf9f4; padding: 14px 16px; }
.timeline-item > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.timeline-item strong { color: var(--navy); }
.timeline-item span { color: var(--muted); font-size: .9rem; }
.timeline-item p { margin: 8px 0 0; white-space: pre-wrap; }
.page-journey { display: grid; gap: 10px; margin-bottom: 18px; }
.page-journey-item { border-left: 3px solid var(--gold); padding: 9px 0 9px 12px; background: #faf9f4; }
.page-journey-item strong, .page-journey-item span, .page-journey-item small { display: block; }
.page-journey-item strong { color: var(--navy); overflow-wrap: anywhere; }
.page-journey-item span, .page-journey-item small { color: var(--muted); font-size: .86rem; }
.chat-console { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.chat-screen { padding: 0; overflow: hidden; }
.chat-screen-head { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; background: var(--navy); color: var(--white); }
.chat-screen-head span { display: block; color: rgba(255,255,255,.72); font-size: .9rem; }
.chat-transcript { display: grid; gap: 12px; height: min(58vh, 620px); overflow: auto; padding: 20px; background: #ebe9e2; align-content: start; }
.admin-chat-row { display: flex; }
.admin-chat-row.agent { justify-content: flex-end; }
.admin-chat-row.visitor { justify-content: flex-start; }
.bubble { max-width: min(72%, 620px); border-radius: 12px; background: #f0f0ec; padding: 11px 13px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.bubble strong { display: block; font-size: .78rem; opacity: .72; }
.bubble p { margin: 4px 0 0; }
.bubble.agent { background: var(--navy); color: var(--white); }
.bubble.visitor { background: var(--white); color: var(--charcoal); }
.admin-chat-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 16px; border-top: 1px solid var(--line); background: var(--white); }
.admin-chat-send textarea { min-height: 56px; max-height: 160px; }
.quick-reply-list { display: grid; gap: 8px; }
.quick-reply { width: 100%; border: 1px solid var(--line); background: #f5f4ee; color: var(--navy); padding: 10px 12px; text-align: left; cursor: pointer; font-weight: 700; }
.quick-reply:hover { border-color: var(--gold); }

@media (max-width: 920px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { position: absolute; left: 0; right: 0; top: 78px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px; background: var(--ivory); border-bottom: 1px solid var(--line); }
    .primary-nav.open { display: flex; }
    .primary-nav a { padding: 12px 0; }
    .primary-nav a.is-active { padding-left: 12px; border-left: 3px solid var(--gold); background: rgba(184,149,75,.08); box-shadow: none; }
    .primary-nav .nav-cta { align-self: flex-start; margin-top: 10px; padding: 10px 18px; min-width: 128px; text-align: center; }
    .primary-nav .nav-cta.is-active { padding-left: 18px; border-left: 1px solid var(--gold); }
    .hero { min-height: 620px; }
    .split, .detail-grid, .admin-grid, .profile-preview, .chat-console { grid-template-columns: 1fr; gap: 32px; }
    .profile-preview .profile-photo-frame { max-width: none; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .editorial-grid { grid-template-columns: 1fr 1fr; }
    .case-card { grid-template-columns: 1fr; gap: 10px; }
    .reason-grid, .footer-grid, .metric-grid { grid-template-columns: 1fr 1fr; }
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
    .totp-setup { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .wrap { width: min(100% - 28px, 1140px); }
    .brand { font-size: 1rem; min-width: 0; }
    .brand > span:last-child { overflow-wrap: anywhere; }
    .hero-content { padding: 82px 0 110px; }
    .hero h1, .page-hero h1 { font-size: clamp(2.1rem, 13vw, 3.5rem); line-height: 1.02; overflow-wrap: anywhere; }
    .section { padding: 64px 0; }
    .card-grid, .editorial-grid, .reason-grid, .footer-grid, .metric-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; padding: 24px; }
    .chat-widget { right: 12px; bottom: 12px; width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
    .chat-panel { max-height: calc(100vh - 90px); overflow: auto; }
    .chat-send { grid-template-columns: 1fr; }
    .chat-msg, .bubble { max-width: 88%; }
    .admin-chat-send { grid-template-columns: 1fr; }
    .chat-screen-head { display: grid; }
    .admin-main { padding: 20px; }
    .admin-title-row { align-items: flex-start; flex-direction: column; }
    .totp-qr { width: min(100%, 220px); height: auto; aspect-ratio: 1 / 1; }
}

@media print {
    .admin-sidebar, .no-print, .admin-notice-pop { display: none !important; }
    .admin-body { display: block; background: var(--white); }
    .admin-main { max-width: none; padding: 0; }
    .admin-grid, .chat-console { display: block; }
    .admin-panel { border: 1px solid #bbb; break-inside: avoid; margin-bottom: 16px; }
    .enquiry-timeline { page-break-before: auto; }
    .chat-screen { overflow: visible; }
    .chat-screen-head { color: #111; background: #f1f1f1; border-bottom: 1px solid #bbb; }
    .chat-screen-head span { color: #333; }
    .chat-transcript { height: auto; overflow: visible; background: var(--white); padding: 14px; }
    .bubble { max-width: 100%; break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
    .bubble.agent { color: #111; background: #f4f4f4; }
    .bubble.visitor { background: var(--white); }
    a { text-decoration: none; }
}
