/* Shared surfaces and controls, loaded after each page's layout styles. */
:root {
    color-scheme: dark;
    --bg-primary: #10181f;
    --bg-secondary: #17222c;
    --bg-tertiary: #131d26;
    --border: #2b3c48;
    --bg-border: var(--border);
    --border-hover: #486270;
    --text-primary: #f0f6fa;
    --text-secondary: #d0dce5;
    --text-muted: #a0b2bf;
    --text-faint: #90a3b2;
    --accent: #5ed8bf;
    --accent-text: #092b25;
    --accent-soft: #203c39;
    --danger: #ffacae;
    --danger-bg: #42282e;
    --success: #8ae0b2;
    --success-bg: #213e32;
    --shadow: 0 8px 28px rgba(0, 0, 0, .14);
    --header-height: 72px;
}
:root.light {
    color-scheme: light;
    --bg-primary: #f3f6f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8fafb;
    --border: #dde5eb;
    --border-hover: #a5bac7;
    --text-primary: #172b3a;
    --text-secondary: #334c5d;
    --text-muted: #5d7282;
    --text-faint: #647888;
    --accent: #0b7767;
    --accent-text: #ffffff;
    --accent-soft: #e7f4ef;
    --danger: #b33141;
    --danger-bg: #fff0f1;
    --success: #166447;
    --success-bg: #e8f6ef;
    --shadow: 0 8px 28px rgba(26, 52, 72, .045);
}
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: var(--accent); }
button { transition: background .15s, border-color .15s, box-shadow .15s; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
input::placeholder, textarea::placeholder { color: var(--text-faint); opacity: 1; }
.hidden { display: none !important; }
.ui-icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 2000; padding: 12px; background: var(--bg-secondary); border: 2px solid var(--accent); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.app-header { height: var(--header-height); min-height: var(--header-height); padding: 0 28px; gap: 20px; background: var(--bg-secondary); position: relative; z-index: 70; flex-shrink: 0; }
.header-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.header-logo img { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 7px; padding: 3px; }
.header-logo span { font-size: 19px; font-weight: 750; color: var(--text-primary); letter-spacing: -.5px; }
.header-right { gap: 12px; margin-left: auto; }
.app-nav { display: flex; align-items: center; gap: 4px; }
.app-nav a, .app-nav a:visited { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 12px; border-radius: 9px; color: var(--text-muted); font-size: 13px; font-weight: 550; text-decoration: none; }
.app-nav a:hover { background: var(--bg-primary); color: var(--text-primary); }
.app-nav a.active { color: var(--accent); background: var(--accent-soft); }
.app-nav .logout-btn { margin-left: 8px; border-left: 1px solid var(--border); border-radius: 0 9px 9px 0; }
.theme-toggle, .nav-toggle, .sidebar-toggle { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-secondary); border-radius: 10px; padding: 9px 11px; font-size: 13px; }
.theme-toggle:hover, .nav-toggle:hover, .sidebar-toggle:hover { background: var(--bg-primary); border-color: var(--border-hover); }
.nav-toggle, .sidebar-toggle { display: none; }
.container { width: 100%; max-width: 1240px; padding: 36px 28px 80px; }
.page-title { margin-bottom: 28px; }
.page-title h2, .profile-section h2 { font-size: 25px; letter-spacing: -.6px; font-weight: 700; }
.page-title p { font-size: 14px; max-width: 660px; margin-top: 8px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 8px; }
.home-section, .settings-card, .profile-main, .profile-info, .avatar-section, .profile-nav, .card, .table-wrap, .model-section, .provider-card { border-radius: 16px; box-shadow: var(--shadow); }
.home-layout { max-width: 1240px; grid-template-columns: minmax(0, 1fr) 340px; padding: 36px 28px 80px; gap: 24px; }
.home-left, .home-right, .team-main, .team-activity-content, .profile-main { min-width: 0; }
.welcome-card { background: linear-gradient(115deg, #183747, #173d37); border: 1px solid #31554f; padding: 32px; border-radius: 18px; min-height: 184px; }
.welcome-card .greeting { color: #c3dfdf; font-size: 14px; margin-bottom: 8px; }
.welcome-card .user-email { color: #fff; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.6px; overflow-wrap: anywhere; }
.welcome-card .company-name { color: #c3dfdf; margin-top: 8px; }
.welcome-avatar { margin-left: 20px; width: 64px; height: 64px; border: 2px solid rgba(255,255,255,.2); color: #fff; }
.home-section { padding: 24px; }
.home-section-title { text-transform: none; font-size: 15px; font-weight: 650; letter-spacing: -.2px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.home-section-title .ui-icon { color: var(--text-muted); width: 18px; height: 18px; }
.recent-chat-item, .team-activity-item, .notification-item { border-bottom-color: var(--border); padding: 15px 0; }
.recent-chat-item:hover { background: var(--bg-tertiary); }
.recent-chat-title { font-size: 14px; font-weight: 600; }
.recent-chat-meta, .team-activity-sender { font-size: 12px; line-height: 1.6; }
.team-activity-message { margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }
.team-activity-avatar, .conv-avatar, .info-member-avatar, .group-info-avatar, .profile-avatar, .widget-avatar { color: #fff; }
.team-activity-avatar { width: 36px; height: 36px; }
.quick-action-btn { padding: 16px; border-radius: 12px; font-weight: 550; background: var(--bg-tertiary); }
.quick-action-btn:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.quick-action-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.quick-action-btn::after { content: '↗'; margin-left: auto; color: var(--text-muted); }
.home-empty { padding: 22px 16px; background: var(--bg-tertiary); border: 1px dashed var(--border); border-radius: 12px; font-size: 13px; line-height: 1.8; color: var(--text-muted); }
.home-empty strong { display: block; color: var(--text-secondary); font-size: 14px; }
.home-empty a { display: inline-block; margin-top: 9px; font-weight: 600; }
.notification-item { text-decoration: none; border-radius: 8px; }
.notification-item:hover { background: var(--bg-tertiary); }
.notification-badge { background: var(--accent); color: var(--accent-text); min-width: 24px; text-align: center; }
.form-field label, .model-section .form-field label, .profile-form .form-field label, .modal .form-field label { font-size: 13px; font-weight: 550; text-transform: none; letter-spacing: 0; color: var(--text-secondary); margin-bottom: 8px; }
.form-field input, .form-field select, .profile-form .form-field input, .model-section select, .modal .form-field input, .invite-form input { min-height: 46px; border-radius: 10px; background: var(--bg-tertiary); padding: 11px 14px; }
.form-field input:disabled { opacity: .8; }
.form-hint { color: var(--text-muted); font-size: 12px; margin-top: 7px; }
.login-btn, .save-btn, .add-btn, .start-btn, .invite-btn, .send-btn, .invite-form button { background: var(--accent); color: var(--accent-text); border: 0; border-radius: 10px; min-height: 44px; padding: 11px 18px; font-weight: 650; cursor: pointer; }
.login-btn:hover, .save-btn:hover, .add-btn:hover, .start-btn:hover, .invite-btn:hover, .send-btn:hover { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-msg { overflow-wrap: anywhere; }
.form-msg:empty { min-height: 0; margin: 0; }
.form-msg.error { color: var(--danger); padding: 10px 12px; border-radius: 9px; background: var(--danger-bg); }
.form-msg.success { color: var(--success); padding: 10px 12px; border-radius: 9px; background: var(--success-bg); }
.accept-btn, .badge.allowed, .profile-role { background: var(--success-bg); color: var(--success); }
.decline-btn, .group-action-btn.danger, .badge.blocked, .blocked-warning { background: var(--danger-bg); color: var(--danger); }
.badge.flagged, .admin-badge { background: var(--badge-flagged-bg); color: var(--badge-flagged-text); }
.accept-btn, .decline-btn, .request-btn, .header-action-btn, .delete-btn, .remove-btn, .change-avatar-btn, .share-btn { min-height: 36px; border-radius: 8px; padding: 7px 11px; font-weight: 550; }
.delete-btn, .remove-btn { color: var(--danger); }
.delete-btn:hover, .remove-btn:hover, .group-action-btn.danger:hover { background: var(--danger-bg); }
body.login-page { padding: 104px 24px 48px; height: auto; overflow: auto; background: radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 60%), var(--bg-primary); }
.login-page .auth-header { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--bg-secondary); height: 72px; padding: 0 28px; }
.auth-header .header-right { margin-left: auto; }
.login-card { width: 100%; max-width: 460px; padding: 36px; border-radius: 20px; box-shadow: var(--shadow); }
.login-header { text-align: left; margin-bottom: 28px; }
.login-header h1 { font-size: 28px; letter-spacing: -.7px; }
.login-header p { margin-top: 9px; font-size: 14px; line-height: 1.7; }
.login-footer-text { margin-top: 24px; font-size: 13px; }
.login-footer-link { color: var(--accent); font-weight: 600; }
.auth-mark { color: var(--accent); background: var(--accent-soft); width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; }
.auth-mark .ui-icon { width: 26px; height: 26px; }
.settings-card { padding: 28px; }
.settings-card h3 { font-size: 17px; }
.form-row { gap: 20px; flex-wrap: wrap; }
.form-row .form-field { margin-bottom: 0; min-width: 190px; }
.provider-row { gap: 16px; }
.empty-msg { font-size: 14px; color: var(--text-muted); }
.providers-grid { max-width: 760px; }
.provider-card { text-align: left; padding: 28px; }
.provider-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.model-section { max-width: 760px; }
.model-section .form-field { margin: 0; }
.profile-layout { max-width: 1080px; grid-template-columns: 260px minmax(0, 1fr); margin: 36px auto; }
.profile-main { padding: 32px; }
.profile-email, .info-member-email, .group-info-name { overflow-wrap: anywhere; }
.profile-nav-btn.active { color: var(--accent); background: var(--accent-soft); }
.profile-form { max-width: none; gap: 8px; }
.cards { gap: 18px; }
.card { padding: 24px; }
.card .value { font-size: 34px; letter-spacing: -1px; }
.card.flagged .value { color: var(--badge-flagged-text); }
.card.blocked .value { color: var(--danger); }
.card .label { text-transform: none; font-size: 13px; }
.tabs { overflow-x: auto; scrollbar-width: thin; gap: 8px; }
.tab-btn { white-space: nowrap; padding: 13px 16px; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.filters { flex-wrap: wrap; }
.filter-btn { min-height: 36px; border-radius: 8px; }
.filter-btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { min-width: 660px; }
th { background: var(--bg-tertiary); font-size: 11px; padding: 15px 18px; white-space: nowrap; }
td { padding: 16px 18px; }
.invite-form { flex-wrap: wrap; border-radius: 12px; }
.invite-form input { min-width: 170px; }
.invite-form .form-msg { width: 100%; }
.modal-overlay { z-index: 1100; padding: 20px; background: rgba(7, 18, 26, .62); backdrop-filter: blur(4px); }
.modal { border-radius: 18px; padding: 28px; width: min(560px, 100%); max-height: calc(100dvh - 40px); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.modal h2 { color: var(--text-primary); font-size: 22px; letter-spacing: -.4px; }
.close-btn, .close-panel-btn { min-width: 36px; min-height: 36px; border-radius: 8px; color: var(--text-muted); }
.close-btn:hover, .close-panel-btn:hover { color: var(--text-primary); background: var(--bg-primary); }
body.page-team, body.page-chat, body.page-shared { height: 100dvh; min-height: 0; }
body.page-chat { display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: var(--header-height) minmax(0, 1fr); }
.page-chat > .app-header { grid-column: 1 / -1; }
.page-chat .sidebar { height: auto; width: auto; min-width: 0; grid-column: 1; grid-row: 2; background: var(--bg-secondary); border-right: 1px solid var(--border); }
.page-chat .sidebar-header { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px 18px 18px; background: var(--bg-secondary); }
.sidebar-heading { color: var(--text-primary); font-size: 14px; font-weight: 650; }
.new-chat-btn { background: var(--accent-soft); color: var(--accent); min-height: 42px; border-radius: 9px; font-weight: 600; }
.new-chat-btn:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.chat-area { min-width: 0; grid-column: 2; grid-row: 2; }
.chat-header { min-height: 66px; padding: 14px 24px; gap: 12px; background: var(--bg-secondary); }
#chat-model { overflow-wrap: anywhere; flex: 1; }
.messages { padding: 32px max(24px, calc((100% - 850px) / 2)); }
.messages:empty::before { content: 'Start with a question'; font-size: 25px; font-weight: 650; color: var(--text-primary); text-align: center; margin-top: auto; }
.messages:empty::after { content: 'Choose a chat or start a new one. Prompts and text files are checked before being sent to Claude.'; max-width: 410px; text-align: center; color: var(--text-muted); margin: 0 auto auto; line-height: 1.8; }
.message, .team-message { overflow-wrap: anywhere; }
.message.user, :root.light .message.user { background: var(--accent-soft); border: 1px solid var(--border); border-radius: 16px 16px 4px 16px; }
.message.assistant { padding: 8px 0; }
.input-area, :root.light .input-area { background: var(--bg-secondary); gap: 10px; padding: 18px 24px; }
#message-input, #team-input { min-width: 0; border-radius: 12px; background: var(--bg-tertiary); }
.upload-btn { min-height: 46px; border-radius: 10px; }
.chat-item { min-height: 42px; color: var(--text-secondary); border-radius: 9px; }
.chat-item.active, .sidebar-item.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-footer .footer-link { border-radius: 7px; padding: 7px 10px; }
.sidebar-footer .footer-link:hover { background: var(--accent-soft); color: var(--accent); }
.sidebar-backdrop { display: none; }
.team-layout { min-height: 0; }
.team-sidebar { width: 300px; background: var(--bg-secondary); }
.sidebar-section { padding: 20px 12px 14px; }
.section-title { color: var(--text-muted); font-size: 11px; font-weight: 650; letter-spacing: 1px; }
.sidebar-item { color: var(--text-secondary); padding: 12px 10px; gap: 10px; min-height: 46px; }
.sidebar-item > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.sidebar-item > span { min-width: 0; overflow-wrap: anywhere; }
#requests-list .sidebar-item { flex-direction: column; align-items: stretch; background: var(--bg-tertiary); border: 1px solid var(--border); margin-bottom: 10px; padding: 12px; border-radius: 12px; }
.request-actions { gap: 8px; margin-top: 6px; }
.create-group-btn { width: 32px; height: 32px; background: var(--accent-soft); border-radius: 8px; color: var(--accent); }
.conversation-header { min-height: 74px; background: var(--bg-secondary); padding: 16px 24px; gap: 12px; }
.conversation-header-left { min-width: 0; }
.conv-title { font-size: 15px; overflow-wrap: anywhere; }
.team-messages { padding: 26px; gap: 18px; }
.team-message { max-width: min(75%, 700px); }
.team-message.mine { background: var(--accent-soft); padding: 12px 16px; border-radius: 16px 16px 4px 16px; }
.team-message.theirs .text { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px 16px 16px; padding: 12px 16px; }
.team-input-area { background: var(--bg-secondary); padding: 18px 24px; }
.group-info-panel { width: 320px; background: var(--bg-secondary); }
.empty-state { flex-direction: column; gap: 12px; text-align: center; padding: 32px; color: var(--text-muted); }
.empty-state .auth-mark { margin: 0 0 4px; width: 60px; height: 60px; }
.empty-state h2 { color: var(--text-primary); font-size: 25px; letter-spacing: -.5px; }
.empty-state p { max-width: 330px; }
.team-mobile-toolbar { display: none; }
body.page-shared { display: flex; flex-direction: column; }
.shared-chat-wrap { height: auto; flex: 1; min-height: 0; }
.shared-info-bar { gap: 14px; }
.read-only-badge { white-space: nowrap; background: var(--accent-soft); color: var(--accent); }
.copy-btn { min-height: 32px; padding: 5px 10px; border-radius: 7px; }
#chat-widget { z-index: 80; }
#widget-bubble { background: var(--accent); color: var(--accent-text); border: 0; width: 52px; height: 52px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
#widget-bubble:hover { background: var(--accent); transform: translateY(-2px); }
.widget-panel { width: min(400px, calc(100vw - 32px)); height: min(480px, calc(100dvh - 120px)); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.widget-header { padding: 15px 18px; }
.widget-header button, .widget-expand { min-width: 32px; min-height: 32px; display: inline-grid; place-items: center; text-decoration: none; }
.widget-messages, .widget-convo { min-width: 0; }
.widget-message { overflow-wrap: anywhere; }
#w-input { min-width: 0; }
.widget-empty { padding: 16px; text-align: center; }
.toast-region { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1300; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); color: var(--text-primary); box-shadow: var(--shadow); margin-top: 10px; overflow-wrap: anywhere; }
.toast.error { border-color: var(--danger); color: var(--danger); }
.nav-inner { max-width: 1240px; }
.nav-links a { text-decoration: none; border-radius: 9px; padding: 9px 12px; }
.nav-links a:not(.nav-signup):hover { background: var(--accent-soft); color: var(--accent); }
.hero { width: 100%; max-width: none; }
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-title { letter-spacing: -1.6px; line-height: 1.12; }
.hero-badge { color: var(--accent); border-color: var(--border); background: var(--accent-soft); }
.btn-primary, .nav-links .nav-cta { background: var(--accent); color: var(--accent-text) !important; border-radius: 10px; }
.nav-links .nav-cta:hover { background: var(--accent) !important; }
:root.light .sidebar, :root.light .sidebar-header { background: var(--bg-secondary); }
.btn-primary:hover, .nav-signup:hover { background: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft); }
.feature-card, .industry-card { border-radius: 16px; box-shadow: var(--shadow); }
.section-label, .stat-value { color: var(--accent); }
@media (max-width: 1100px) {
    .app-header { padding: 0 20px; }
    .app-nav a { padding: 9px; }
    .app-nav .ui-icon { width: 17px; height: 17px; }
    .group-info-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 50; box-shadow: -12px 0 36px rgba(0,0,0,.12); width: min(340px, 100%); }
}
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .app-nav { display: none; position: absolute; top: calc(var(--header-height) - 1px); left: 12px; right: 12px; padding: 10px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
    .app-header.menu-open .app-nav { display: flex; }
    .app-nav a { min-height: 46px; padding: 11px 14px; }
    .app-nav .logout-btn { margin: 4px 0 0; border-left: 0; border-top: 1px solid var(--border); border-radius: 0; }
    .home-layout { grid-template-columns: minmax(0, 1fr); }
    .home-right { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .team-sidebar { width: 260px; }
}
@media (max-width: 700px) {
    .app-header { padding: 0 16px; }
    .header-right { gap: 8px; }
    .container, .home-layout { padding: 24px 16px 80px; }
    .welcome-card { padding: 24px; min-height: 164px; }
    .home-section { padding: 20px; }
    .home-right { display: block; }
    .profile-layout { grid-template-columns: minmax(0, 1fr); margin: 24px auto; padding: 0 16px 70px; }
    .profile-sidebar { gap: 14px; }
    .profile-nav { flex-direction: row; }
    .profile-nav-btn { flex: 1; text-align: center; }
    .profile-main { padding: 24px; }
    .form-row, .model-section { flex-direction: column; align-items: stretch; }
    .form-row .form-field { width: 100%; min-width: 0; }
    .cards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
    .card { padding: 16px 12px; }
    .card .value { font-size: 27px; }
    .card .label { font-size: 11px; }
    .settings-card { padding: 22px; }
    body.page-chat { grid-template-columns: minmax(0, 1fr); }
    .chat-area { grid-column: 1; }
    .sidebar-toggle { display: inline-flex; }
    .page-chat .sidebar, .page-team .team-sidebar { display: none; position: fixed; top: var(--header-height); bottom: 0; left: 0; width: min(320px, 86vw); min-width: 0; height: auto; z-index: 65; box-shadow: 12px 0 36px rgba(0,0,0,.16); }
    .page-chat.sidebar-open .sidebar { display: flex; }
    .page-team.sidebar-open .team-sidebar { display: block; }
    .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: var(--header-height) 0 0; background: rgba(7,18,26,.45); z-index: 60; border: 0; border-radius: 0; }
    .team-mobile-toolbar { display: flex; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
    .chat-header { padding: 12px 16px; }
    .chat-header .sidebar-toggle span { display: none; }
    .messages, .shared-messages { padding: 22px 16px; }
    .input-area, .team-input-area { padding: 12px; gap: 8px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .send-btn { padding: 11px 14px; }
    .team-messages { padding: 20px 16px; }
    .team-message { max-width: 90%; }
    .conversation-header { padding: 12px 16px; }
    .modal-overlay { padding: 12px; }
    .modal { padding: 24px; max-height: calc(100dvh - 24px); }
    .login-card { padding: 28px 24px; }
    body.login-page { padding: 96px 16px 32px; }
    .login-page .auth-header { padding: 0 16px; }
    .shared-info-bar { flex-wrap: wrap; padding: 14px 16px; }
    #chat-widget { right: 16px; bottom: 16px; }
    .page-chat #chat-widget { display: none; }
    .widget-panel { position: fixed; left: 16px; right: 16px; bottom: 80px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
