/* Surf Robotics chat skin. The site's own stylesheet supplies the shared
   navigation, hero, footer, logo sizing, and brand tokens. */
:root { font-family:'DM Sans',sans-serif; --ink:var(--text); --muted:var(--text-mid); --line:var(--border); --accent:var(--teal); --accent-dark:var(--teal-mid); color:var(--text); background:var(--bg); }
:root[data-accent="blue"] { --accent:#0d6b87; --accent-dark:#0a4a5e; }
:root[data-accent="green"] { --accent:#25735d; --accent-dark:#185540; }
:root[data-accent="coral"] { --accent:#b24738; --accent-dark:#8c3428; }
body.chat-page { font:1rem/1.6 'DM Sans',sans-serif; }
button,input,textarea,select { font-family:inherit; }
button:disabled { cursor:default; }
.chat-page :focus-visible { outline:3px solid var(--teal-light); outline-offset:3px; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:40000; padding:12px 20px; background:var(--sand); color:var(--teal); font-weight:700; }
.skip-link:focus { top:12px; }
#main-content { min-height:calc(100dvh - var(--nav-h)); }
#main-content:focus { outline:0; }
.chat-authenticated { overflow:hidden; }
.auth-screen { display:block; min-height:calc(100dvh - var(--nav-h)); background:var(--bg); }
.member-login-section { display:flex; align-items:center; min-height:min(620px,75vh); }
.auth-container { width:100%; }
.member-login-card { width:min(100%,1120px); margin:0 auto; padding:clamp(24px,4vw,48px); border:1px solid var(--border); border-radius:14px; background:var(--white); box-shadow:var(--shadow); display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr); column-gap:clamp(20px,3vw,48px); align-items:start; }
.member-login-intro h2 { font:clamp(2.25rem,5vw,3.25rem)/1 'Bebas Neue',sans-serif; color:var(--teal); margin:12px 0 18px; }
.member-login-intro > p:not(.section-eyebrow) { margin-bottom:24px; }
.member-home-link { color:var(--teal); font-weight:700; text-underline-offset:4px; }
.member-login-auth { min-width:0; }
.auth-card { width:100%; }
.session-heading { font:2.5rem/1.1 'Bebas Neue',sans-serif; color:var(--teal); margin-bottom:18px; }
.session-retry { display:block; margin-top:16px; }
.auth-tabs { gap:24px; margin-bottom:28px; border-color:var(--border); }
.auth-tab { padding-bottom:14px; font:700 .8rem/1.5 'Space Mono',monospace; text-transform:uppercase; letter-spacing:.03em; color:var(--text-mid); }
.auth-tab.active { color:var(--teal); }
.auth-tab.active::after { background:var(--sand); }
.auth-view h2 { font:2.25rem/1.1 'Bebas Neue',sans-serif; letter-spacing:.02em; color:var(--teal); margin-bottom:10px; }
.auth-subtitle { font-size:1rem; color:var(--text-mid); margin-bottom:24px; }
.auth-view label,.modal-section label:not(.visibility-option),.settings-label { font-size:.875rem; color:var(--ink); }
.auth-view form > label { margin-top:12px; }
.auth-view input,.modal-section input:not([type=radio]):not([type=checkbox]),.settings-select,.profile-form input { min-height:50px; border-color:var(--border); border-radius:6px; color:var(--ink); background:#fff; font-size:1rem; }
.auth-view input:focus,.modal-section input:focus,.search-box:focus-within { border-color:var(--teal-light); box-shadow:0 0 0 3px #1a8fa81c; }
.auth-view .input-prefix { border-color:var(--border); border-radius:6px; height:50px; }
.auth-view .input-prefix input { min-height:46px; height:46px; }
.auth-view .remember-me { font-size:.875rem; color:var(--text-mid); }
.auth-view .remember-me input { min-height:0; width:18px; height:18px; accent-color:var(--teal); }
.auth-help { font-size:.875rem; color:var(--text-mid); margin-top:22px; }
.auth-help a { color:var(--teal); text-decoration:underline; text-underline-offset:3px; }
.field-hint,.membership-verification p { font-size:.8125rem; color:var(--text-mid); }
.membership-verification { padding:15px 18px; border-color:var(--border); border-radius:6px; background:var(--teal-pale); }
.membership-verification summary { font-size:.875rem; }
.membership-verification input { margin-bottom:16px; }
.primary-button { min-height:44px; padding:12px 24px; border:2px solid var(--sand); border-radius:5px; background:var(--sand); color:#0a4a5e; font:700 .875rem/1.3 'Space Mono',monospace; letter-spacing:.05em; text-transform:uppercase; box-shadow:none; }
.primary-button:hover { background:var(--sand-dark); color:#0a4a5e; }
.form-error { font-size:.875rem; background:var(--coral-pale); color:#8a2424; border-color:#edc2ba; border-radius:6px; }
.app-shell { height:calc(100vh - var(--nav-h)); height:calc(100dvh - var(--nav-h)); max-width:1600px; margin:0 auto; grid-template-columns:320px minmax(0,1fr); background:var(--bg); border-inline:1px solid var(--border); }
.sidebar { background:var(--bg-dark); border-right:1px solid #25424e; }
.chat-brand { color:var(--sand); font:1.45rem/1.2 'Bebas Neue',sans-serif; letter-spacing:.06em; text-decoration:none; }
.chat-brand img { flex:none; object-fit:contain; }
.chat-brand small { display:block; color:#a9bdc7; font:.65rem/1.8 'Space Mono',monospace; letter-spacing:.08em; text-transform:uppercase; }
.sidebar-intro { margin-top:30px; }
.sidebar-intro span { color:var(--sand); font:700 .6875rem/1.5 'Space Mono',monospace; letter-spacing:.12em; }
.sidebar-intro h2 { font:2.25rem/1.1 'Bebas Neue',sans-serif; letter-spacing:.02em; }
.sidebar-action { min-height:44px; border-color:#486773; border-radius:5px; background:transparent; font-size:.8125rem; }
.sidebar-action.primary-action,.sidebar-action.primary-action:hover { background:var(--sand); border-color:var(--sand); color:#0a4a5e; }
.search-box { border-color:#3f5b67; border-radius:5px; background:transparent; }
.search-box input { font-size:.875rem; }
.search-box input::placeholder { color:#a9bdc7; }
.conversation-tab { font:.75rem/1.5 'Space Mono',monospace; color:#a9bdc7; border-radius:4px; }
.conversation-tab.active { background:#264451; color:var(--sand); }
.conversation-item { border-radius:6px; }
.conversation-item.active { background:#1a3a48; border-color:#365d6c; }
.conversation-copy strong { font-size:.875rem; }
.conversation-copy p { font-size:.8125rem; color:#a9bdc7; }
.conversation-copy time,.profile-copy small { color:#a9bdc7; font-size:.6875rem; }
.unread-badge { background:var(--sand); color:#0a4a5e; font-size:.6875rem; min-height:20px; }
.explore-button { border-radius:5px; border-color:#3f5b67; background:transparent; font-size:.875rem; }
.explore-button span:first-child { color:var(--sand); }
.profile-copy strong { font-size:.875rem; }
.avatar { border-radius:6px; }
.profile-avatar::after { background:#0a4a5ecc; }
.selected-members { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.member-chip { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:4px 10px 4px 5px; border:1px solid var(--border); border-radius:20px; background:var(--teal-pale); color:var(--ink); font-size:.8125rem; font-weight:700; }
.chip-avatar { width:28px; height:28px; flex:none; border-radius:50%; }
.compact-results { max-height:220px; overflow:auto; margin:6px 0 10px; }
.list-placeholder,.result-empty { font-size:.875rem; }
.empty-illustration { width:auto; height:auto; margin-bottom:24px; }
.empty-illustration img { display:block; object-fit:contain; }
.empty-state h2 { font:clamp(2.25rem,4vw,3.5rem)/1.1 'Bebas Neue',sans-serif; letter-spacing:.02em; margin:10px 0 16px; }
.empty-state p { max-width:440px; font-size:1rem; color:var(--text-mid); }
.chat-header { min-height:80px; height:auto; padding:15px 26px; border-color:var(--border); box-shadow:none; }
.chat-heading h2 { font:1.8rem/1.1 'Bebas Neue',sans-serif; letter-spacing:.02em; }
.chat-heading p { font-size:.8125rem; color:var(--text-mid); }
.icon-button { min-width:36px; }
.message-bubble { font-size:1rem; line-height:1.6; border-color:var(--border); border-radius:10px 10px 10px 3px; color:var(--text); box-shadow:none; }
.message-row.own .message-bubble { background:var(--teal-pale); border-color:#c4e1e9; color:var(--teal); border-radius:10px 10px 3px 10px; }
.message-bubble p { color:inherit; }
.message-bubble a { color:var(--accent-dark); }
.message-sender { color:var(--text-mid); font-size:.8125rem; }
.message-actions button,.reply-quote { font-size:.8125rem; }
.message-actions button:hover,.reply-quote:hover { background:#8aa3af20; }
.reply-quote { background:#8aa3af14; border-left:2px solid var(--teal-light); max-width:280px; }
.message-time { font-size:.6875rem; color:var(--text-mid); }
.attachment-link { border-color:var(--border); border-radius:6px; }
.attachment-link strong { font-size:.875rem; }.attachment-link small { font-size:.75rem; }
.composer-area { border-color:var(--border); }
.composer { border-color:var(--border); border-radius:6px; }
.composer:focus-within { border-color:var(--teal-light); box-shadow:none; }
#message-input { font:1rem/1.6 'DM Sans',sans-serif; color:var(--ink); }
.tool-button { color:var(--text-mid); width:32px; height:32px; }
main.chat-main .send-button { display:grid!important; min-height:36px!important; min-width:40px; width:40px; height:36px; padding:0!important; border:1px solid var(--sand); border-radius:5px; background:var(--sand); color:#0a4a5e!important; font-size:1.1rem; }
.composer-caption { color:var(--text-mid); font-size:.6875rem; }
.attachment-chip,.replying-to { background:var(--teal-pale); border-color:var(--border); color:var(--teal); font-size:.8125rem; }
.replying-to { border-left-color:var(--teal-light); }
.attachment-chip button { color:var(--teal); }
.emoji-picker { border-radius:6px; }.emoji-picker button:hover { background:var(--teal-pale); }
.modal-backdrop { z-index:20000; background:#041016b8; }
.modal { width:min(580px,100%); border-radius:14px; max-height:calc(100dvh - 36px); padding:28px; color:var(--text); }
.modal-kicker,.details-heading { color:var(--accent); font:700 .6875rem/1.6 'Space Mono',monospace; letter-spacing:.1em; }
.modal-header h2 { font:2.5rem/1.1 'Bebas Neue',sans-serif; letter-spacing:.02em; }
.modal-description { font-size:1rem; color:var(--text-mid); }
.modal-section textarea { font:1rem/1.5 'DM Sans',sans-serif; border-color:var(--border); border-radius:6px; }
.modal-section .check-row { font-size:.875rem; }
.result-copy strong,.member-row .result-copy strong { font-size:.875rem; }
.result-copy small { font-size:.8125rem; color:var(--text-mid); }
.small-action { background:var(--teal-pale); color:var(--teal); border:1px solid var(--border); border-radius:5px; font-size:.8125rem; }
.small-action:hover { background:#d3edf4; border-color:var(--teal-light); }
.visibility-option { border-color:var(--border); border-radius:6px; }
.visibility-option:has(input:checked) { border-color:var(--teal-light); background:var(--teal-pale); }
.visibility-option strong { font-size:.875rem; }.visibility-option small { font-size:.8125rem; color:var(--text-mid); }
.details-summary { background:var(--teal-pale); color:var(--text-mid); border-radius:6px; font-size:.875rem; }
.details-summary strong { color:var(--teal); }
.member-role { background:var(--teal-pale); color:var(--teal); font-size:.6875rem; }
.group-description,.message-result p { font-size:1rem; color:var(--ink); }
.member-controls .small-action { font-size:.75rem; }
.history-banner { background:var(--teal-pale); color:var(--teal); font-size:.875rem; }
.pinned-label { color:var(--accent); font:700 .6875rem/1.5 'Space Mono',monospace; text-transform:uppercase; }
.message-highlight { outline-color:var(--sand-dark); }
.toast { z-index:30000; background:var(--bg-dark); border:1px solid #3d6170; border-radius:6px; font-size:.875rem; }
.settings-view { background:var(--sand-pale); }.settings-card { border-color:var(--border); border-radius:12px; box-shadow:none; padding:26px; }
.settings-header h1 { font:3rem/1.1 'Bebas Neue',sans-serif; letter-spacing:.02em; }.settings-card-heading h2 { font:2rem/1.1 'Bebas Neue',sans-serif; letter-spacing:.02em; }
.settings-card-heading p { font-size:.9375rem; color:var(--text-mid); }.settings-symbol { background:var(--teal-pale); color:var(--teal); border-radius:6px; }
.settings-toggle-row strong { font-size:.875rem; color:var(--ink); }.settings-toggle-row small { font-size:.8125rem; color:var(--text-mid); }
.profile-link-row { background:var(--sand-pale); border-radius:6px; }.profile-link-row span { font-size:.8125rem; }
.settings-select { appearance:none; padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%238aa3af' stroke-width='2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
.accent-options button { background:#0a4a5e; }.accent-options button[data-accent="blue"] { background:#0d6b87; }.accent-options button[data-accent="green"] { background:#25735d; }.accent-options button[data-accent="coral"] { background:#b24738; }
.profile-page { display:block; padding:var(--nav-h) 0 0; background:var(--sand-pale); }.public-profile-card { margin:80px auto; border-color:var(--border); border-radius:12px; }.public-profile-avatar { background:var(--teal-pale); color:var(--teal); }.public-profile-card h1 { font:3rem/1.1 'Bebas Neue',sans-serif; letter-spacing:.02em; }.public-profile-brand { color:var(--text-mid); font-family:'Space Mono',monospace; }
.profile-return { text-align:center; margin-bottom:60px; }.profile-return a { color:var(--teal); font-weight:700; }
.admin-page { background:var(--bg); color:var(--text); }.admin-page main { width:min(920px,calc(100% - 40px)); margin:54px auto; }.admin-page h1 { font:3rem/1.1 'Bebas Neue',sans-serif; letter-spacing:.02em; color:var(--teal); }.admin-page h2 { font:2rem/1.1 'Bebas Neue',sans-serif; }.admin-page p,.admin-page .lede { color:var(--text-mid); font-size:.9375rem; }.admin-page .card { border-color:var(--border); border-radius:12px; box-shadow:var(--shadow-sm); }.admin-page .brand { color:var(--teal); font-family:'Space Mono',monospace; font-size:.75rem; }.admin-page input { min-height:50px; border-color:var(--border); border-radius:6px; font-size:1rem; }.admin-page label { font-size:.875rem; color:var(--text); }.admin-page button { min-height:44px; background:var(--sand); color:var(--teal); border:2px solid var(--sand); border-radius:5px; font:700 .8125rem/1.3 'Space Mono',monospace; text-transform:uppercase; }.admin-page button:hover { background:var(--sand-dark); }.admin-page .metric { background:var(--teal-pale); border-color:var(--border); border-radius:6px; }.admin-page .metric strong { color:var(--teal); }.admin-page .metric span { color:var(--text-mid); font-size:.8125rem; }.admin-page .storage { font-size:.875rem; }.admin-page .storage th { color:var(--text-mid); }.admin-page .actions button { background:var(--teal-pale); color:var(--teal); border-color:var(--border); }
:root[data-theme="dark"] { --bg:#101f28; --ink:#eaf2f4; --muted:#b3c7cf; --line:#36515e; --accent:#75c0ce; --accent-dark:#a1dce4; --text:#eaf2f4; --text-mid:#b3c7cf; --border:#36515e; --teal-pale:#183f4c; color:#eaf2f4; background:#101f28; }
:root[data-theme="dark"] .app-shell,:root[data-theme="dark"] .chat-main,:root[data-theme="dark"] .settings-view { background:#101f28; }
:root[data-theme="dark"] .chat-header,:root[data-theme="dark"] .composer-area,:root[data-theme="dark"] .composer,:root[data-theme="dark"] .message-bubble,:root[data-theme="dark"] .settings-card,:root[data-theme="dark"] .modal { background:#1b303b; border-color:#36515e; color:#eaf2f4; }
:root[data-theme="dark"] .message-row.own .message-bubble { background:#18495a; color:#e8f6fa; border-color:#36515e; }
:root[data-theme="dark"] .small-action,:root[data-theme="dark"] .member-role,:root[data-theme="dark"] .details-summary,:root[data-theme="dark"] .settings-symbol,:root[data-theme="dark"] .history-banner { background:#183f4c; color:#bde6ed; }
:root[data-theme="dark"] .profile-link-row { background:#152833; }
:root[data-theme="dark"] .chat-heading p,:root[data-theme="dark"] .settings-card-heading p,:root[data-theme="dark"] .settings-toggle-row small,:root[data-theme="dark"] .modal-description { color:#b3c7cf; }
:root[data-theme="dark"] .modal-section input:not([type=radio]):not([type=checkbox]),:root[data-theme="dark"] .modal-section textarea,:root[data-theme="dark"] .settings-select,:root[data-theme="dark"] .profile-form input { color:#eaf2f4; background:#142833; border-color:#36515e; }
@media(max-width:1050px) { .app-shell { grid-template-columns:290px minmax(0,1fr); } }
@media(max-width:760px) { .app-shell { display:block; border:0; }.chat-header { min-height:72px; padding:12px; gap:8px; }.chat-heading h2 { font-size:1.5rem; }.header-avatar { width:34px; height:34px; }.message-row { max-width:94%; }.message-avatar { display:none; }.modal { padding:22px; }.settings-card { padding:20px; }.tool-button { width:30px; } }
@media(max-width:700px) { .member-login-card { grid-template-columns:minmax(0,1fr); gap:34px; }.member-login-section { padding:40px 0; }.member-login-intro h2 br { display:none; } }
@media(max-width:450px) { .chat-header .icon-button { width:30px; min-width:30px; }.chat-heading p { font-size:.75rem; }.inline-form { flex-wrap:wrap; }.inline-form input { flex-basis:100%; }.inline-form .primary-button { width:100%; }.visibility-options { grid-template-columns:1fr; }.toolbar-divider { margin-inline:2px; } }
