/* Shared visual language with the corporate workspace. */
:root { --background:#f5f6f8; --text:#182237; --controls:#fff; --controls-active:#edf1f8; --red:#db414a; --green:#16856b; --brand:#3862f5; --border:#e3e8f0; --muted:#75849d; --background-trans:#202b40b8; --white:#fff; }
* { box-sizing:border-box; }
html { font-size:14px; scroll-behavior:smooth; }
body { line-height:1.5; }
button,input,textarea { font:inherit; }
button,a,input,textarea { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid #a6b7ff; outline-offset:3px; }
button { transition:background .15s; }
button:hover { filter:brightness(.97); }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:25px; line-height:1.3; letter-spacing:-.5px; font-weight:650; }
h2 { font-size:17px; font-weight:600; line-height:1.5; }
h3 { font-size:14px; font-weight:600; }
.muted { color:var(--muted); }
.sidebar { width:214px; position:fixed; inset:0 auto 0 0; background:#fff; border-right:1px solid var(--border); padding:24px 14px; display:flex; flex-direction:column; z-index:30; }
.service-brand { display:flex; align-items:center; gap:10px; text-decoration:none; font-size:17px; font-weight:650; white-space:nowrap; }
.service-brand small,.workspace-label small { display:block; font-weight:400; font-size:11px; color:var(--muted); margin-top:2px; }
.brand-icon { display:grid; place-items:center; color:var(--brand); background:#edf2ff; width:34px; height:34px; border-radius:10px; font-size:18px; }
.workspace-label { display:flex; gap:9px; align-items:center; padding:13px 10px; border:1px solid var(--border); border-radius:12px; margin:28px 0 24px; font-size:12px; font-weight:600; }
.workspace-avatar { width:29px; height:29px; display:grid; place-items:center; border-radius:50%; background:#f0f3ff; color:var(--brand); font-size:10px; flex-shrink:0; }
.nav-caption { font-size:10px; letter-spacing:.8px; color:var(--muted); padding:0 9px; margin-bottom:8px; }
.side-nav { display:grid; gap:5px; }
.side-nav a { display:flex; gap:11px; align-items:center; padding:10px; text-decoration:none; border-radius:8px; font-size:12px; }
.side-nav a:hover { background:#f5f7fb; }.side-nav a.selected { background:#eaf0ff; color:var(--brand); }
.sidebar-bottom { margin-top:auto; border-top:1px solid var(--border); padding:18px 9px 0; font-size:11px; }
.sidebar-bottom a { text-decoration:none; }.sidebar-bottom span { display:block; font-size:10px; margin-top:7px; color:var(--muted); }
.dashboard-body { margin-left:214px; }.page-topbar { height:62px; background:#fff; border-bottom:1px solid var(--border); padding:0 32px; display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:12px; }.page-topbar strong { color:var(--text); font-weight:500; }.breadcrumb-divider { margin:0 12px; color:#c6ccd7; }.topbar-note { display:flex; gap:8px; align-items:center; }
.dashboard-main { max-width:1120px; padding:40px 40px 24px; margin:auto; }.page-heading { margin-bottom:26px; }.page-heading h1 { margin-bottom:7px; }.page-heading>p:last-child { color:var(--muted); font-size:13px; margin-bottom:0; }.eyebrow { color:var(--muted); font-size:10px; letter-spacing:1px; margin-bottom:8px; }
.surface { background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow:0 1px 2px #25344d0c; }.meeting-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr); gap:20px; }.join-card,.invitation-card { padding:26px; }.card-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:19px; }.feature-icon { width:36px; height:36px; display:grid; place-items:center; font-size:18px; border-radius:10px; }.blue { background:#eff5ff; color:#557dff; }.violet { background:#f3efff; color:#8b60f5; }.mint { background:#edfaf5; color:#28ad8c; }.subtle-tag { color:#6d7e98; font-size:10px; padding:5px 9px; background:#f5f7fa; border-radius:6px; }.join-card h2 { margin-bottom:6px; }.join-card>.muted { font-size:12px; margin-bottom:26px; }.field-label { display:block; font-size:12px; font-weight:500; margin-bottom:8px; }
#channelbox { gap:10px; justify-content:stretch; margin:0; }#channelbox input { min-width:0; background:#fff; padding:12px; border:1px solid #dce1e9; border-radius:8px; font-size:12px; }#channelbox input::placeholder { color:#9aa4b6; }#channelbox button { padding:11px 16px; background:var(--brand); border:1px solid var(--brand); border-radius:8px; color:#fff; margin:0; font-size:12px; white-space:nowrap; font-weight:500; }#channelbox button span { margin-left:12px; }.field-hint { display:flex; gap:6px; color:var(--muted); font-size:10px; margin:12px 0 0; line-height:1.6; }.field-hint i { margin-top:3px; }
.invitation-card>.feature-icon { margin-bottom:16px; }.invitation-card h2 { margin-bottom:12px; }.invitation-card>.muted { font-size:12px; line-height:1.8; }.info-note { display:flex; align-items:center; gap:10px; border-top:1px solid #eef0f4; padding-top:15px; margin-top:20px; font-size:11px; }.info-note>i { color:#26a482; }.info-note small { color:var(--muted); font-size:10px; }
.how-section { margin-top:28px; scroll-margin-top:25px; }.how-section>h2 { font-size:15px; margin-bottom:13px; }.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.feature-card { padding:20px; }.feature-card .feature-icon { width:32px; height:32px; font-size:16px; margin-bottom:16px; }.feature-card h3 { margin-bottom:4px; font-size:12px; }.feature-card p { margin:0; font-size:11px; color:var(--muted); }.meeting-tip { display:flex; gap:9px; align-items:center; font-size:11px; color:var(--muted); margin-top:22px; }.meeting-tip p { margin:0; }
footer { font-size:10px; color:var(--muted); margin:32px 0 0; }footer section { margin:8px 0; }footer .flex { justify-content:flex-start; }footer nav a { margin:0 8px; text-decoration:none; }footer nav a:first-child { margin-left:0; }
/* Meeting controls keep existing bindings and media layout. */
.meeting-header { height:70px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 26px; background:#fff; border-bottom:1px solid var(--border); }.meeting-header .service-brand { font-size:15px; }.meeting-context { display:grid; text-align:center; gap:2px; }.meeting-context strong { font-size:13px; font-weight:600; }.meeting-context>span { font-size:10px; color:var(--muted); }.back-link { color:var(--brand); text-decoration:none; font-size:12px; }.meeting-badge { padding:7px 10px; background:#eff4ff; border-radius:7px; color:#5873b4; font-size:11px; }.meeting-badge i { margin-right:5px; }
.precall-heading { text-align:center; margin:30px 16px 20px; }.precall-heading h1 { font-size:23px; margin-bottom:8px; }.precall-heading p { font-size:12px; color:var(--muted); margin-bottom:0; }.before-call #videos { max-width:620px; height:300px; padding:0; margin:auto; }.before-call #videos>.video { padding:0; background:#20283a; border-radius:14px; }.before-call #videos video { object-fit:contain; }.camera-placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:12px; color:#b6c1d5; font-size:12px; z-index:1; background:#20283a; }.avatar-placeholder { display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:#384563; color:#dbe5ff; font-size:25px; }
.before-call #controls { position:relative; inset:auto; width:calc(100% - 32px); max-width:620px; margin:16px auto 24px; background:white; border:1px solid var(--border); border-radius:14px; padding:20px; box-shadow:0 1px 2px #25344d0c; }#controls #name { max-width:none; width:100%; border-radius:0; padding:0; }#name input { border:1px solid #dce1e9; border-radius:8px; padding:11px 12px; font-size:13px; background:#fff; }#controls #buttons { background:#fff; border-radius:10px; padding:0; gap:9px; justify-content:center; margin-top:15px; }#controls button { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; border-radius:9px; background:#f2f4f8; color:#52617a; font-size:16px; padding:0 12px; flex-shrink:0; }#controls button.device-off { color:#d34e55; background:#fff0f1; }#controls button.join { margin-left:auto; background:var(--brand); color:#fff; font-size:12px; padding:0 18px; }#controls button.red { background:#fff0f1; color:#d34e55; }#controls button[aria-pressed="true"][aria-label="Чат встречи"] { background:#eaf0ff; color:var(--brand); }
.in-call #videos { height:calc(100dvh - 165px); padding:16px; gap:14px; }.in-call #videos>.video { background:#20283a; border-radius:12px; padding:0; }.in-call #videos .meta { color:#fff; padding:5px 9px; font-size:11px; border-radius:6px; }#controls { max-width:380px; width:calc(100% - 24px); left:12px; right:12px; bottom:max(14px,env(safe-area-inset-bottom)); }.in-call #controls #buttons { border:1px solid var(--border); padding:10px; box-shadow:0 3px 16px #26385910; margin-top:0; }.fullscreen-btn { background:#ffffffeb; color:#4b5a74; border:1px solid #e5e9f1; border-radius:7px; width:32px; height:32px; font-size:15px; }
#controls #extra { max-width:none; border:1px solid var(--border); border-radius:12px; padding:7px; margin-bottom:10px; box-shadow:0 6px 30px #273b5315; font-size:12px; max-height:50dvh; overflow-y:auto; }#controls #extra ul li { padding:11px; border-radius:7px; }#controls #extra ul li.action:hover { background:#f1f4fa; }#controls #extra ul li.indent { padding-left:26px; }#chats { border:1px solid var(--border); background:#fff; border-radius:12px; box-shadow:0 6px 30px #273b5315; margin-bottom:12px; padding:16px; }.chat-heading { font-size:14px; margin-bottom:8px; }#controls #chats .chat { max-width:none; font-size:12px; padding:10px 0; margin-top:0; border-radius:0; border-bottom:1px solid #edf0f5; }#controls #chats .chat .date { font-size:10px; color:var(--muted); }#controls #chats .chat textarea { background:#f5f7fb; border:1px solid var(--border); border-radius:8px; padding:9px; font-size:12px; height:60px; }#toast { top:12px; left:12px; right:12px; max-width:600px; border-radius:9px; z-index:100; font-size:12px; line-height:1.6; }#toast.show { padding:12px 16px; max-height:130px; box-shadow:0 4px 15px #273b5320; }#toast.error { color:#8e3036; background:#fff0f1; }#toast.success { color:#14735b; background:#e8f8f0; }
body:not(.dashboard):not(.meeting-page)>.wrap { margin:40px auto; padding:0 20px; }.title { font-style:normal; }
@media(max-width:1050px) { .dashboard-main { padding:30px 24px; }.meeting-grid { grid-template-columns:minmax(0,1fr); }.invitation-card { display:none; }.feature-card { padding:16px; } }
@media(max-width:700px) { .sidebar { width:auto; position:static; padding:16px; border-right:0; border-bottom:1px solid var(--border); }.sidebar .workspace-label,.nav-caption,.sidebar-bottom,.service-brand small { display:none; }.side-nav { display:flex; flex-wrap:wrap; gap:4px; margin-top:16px; }.side-nav a { padding:8px; font-size:11px; }.dashboard-body { margin:0; }.page-topbar { display:none; }.dashboard-main { padding:24px 16px; }.page-heading { margin-bottom:20px; }.feature-grid { grid-template-columns:1fr; gap:10px; }.feature-card { display:grid; grid-template-columns:34px 1fr; column-gap:12px; }.feature-card .feature-icon { grid-row:span 2; margin:0; }.feature-card h3 { margin-bottom:2px; }.join-card { padding:20px; }.feature-card p { font-size:11px; }footer .flex { gap:0; }.meeting-header { padding:0 14px; gap:10px; height:64px; }.meeting-context { text-align:right; margin-left:auto; }.meeting-header .back-link { display:none; }.meeting-header .brand-icon { width:28px; height:28px; font-size:15px; }.meeting-header .service-brand { font-size:13px; }.meeting-badge { display:none; }.before-call #videos { width:calc(100% - 32px); height:230px; }.precall-heading { margin-top:26px; }.precall-heading h1 { font-size:21px; }.precall-heading p { padding:0 12px; }.before-call #controls { padding:16px; }.in-call #videos { height:calc(100dvh - 155px); padding:10px; gap:10px; } }
@media(max-width:420px) { #channelbox { flex-direction:column; }#channelbox button { width:100%; min-height:42px; }#controls button { min-width:36px; height:38px; padding:0 9px; }#controls #buttons { gap:7px; }#controls button.join { padding:0 10px; font-size:11px; }.meeting-context>span { font-size:9px; } }
/* Direct entry from the corporate meeting list. */
.before-call.meeting-shell { display:grid; grid-template-columns:minmax(24px,1fr) minmax(0,620px) minmax(300px,360px) minmax(24px,1fr); column-gap:28px; }
.before-call .meeting-header { grid-column:1/-1; }
.before-call #pre-call { grid-column:2; margin-top:72px; min-width:0; }
.before-call .precall-heading { text-align:left; margin:0 0 22px; }
.before-call .precall-heading h1 { font-size:22px; }.before-call .precall-heading p { padding:0; font-size:13px; }
.before-call #videos { width:100%; height:350px; }
.before-call #controls { grid-column:3; align-self:center; width:100%; margin:130px 0 0; padding:26px; }
.entry-kicker { font-size:10px; color:var(--muted); letter-spacing:.8px; }.entry-heading h1 { font-size:22px; margin:10px 0; line-height:1.4; }.entry-heading p { color:var(--muted); font-size:13px; margin-bottom:25px; }
.before-call #controls #buttons { display:grid; grid-template-columns:repeat(3,40px) 1fr; justify-content:start; }
.before-call #controls button.join { grid-column:1/-1; width:100%; margin:9px 0 0; font-size:14px; height:42px; }
.entry-help { font-size:11px; color:var(--muted); margin:14px 0 0; line-height:1.6; }
.utility-page { min-height:100dvh; display:grid; place-items:center; padding:24px; }.utility-card { width:100%; max-width:480px; padding:32px; border:1px solid var(--border); border-radius:16px; background:#fff; box-shadow:0 1px 2px #25344d0c; }.utility-card h1 { font-size:23px; margin:20px 0 14px; }.utility-card p { font-size:14px; line-height:1.7; }.utility-card p:last-child { margin-bottom:0; }
@media(max-width:1000px) { .before-call.meeting-shell { display:block; }.before-call #pre-call { margin:28px auto 0; width:calc(100% - 32px); max-width:620px; }.before-call #videos { height:300px; }.before-call #controls { width:calc(100% - 32px); max-width:620px; margin:18px auto 28px; padding:22px; }.entry-heading h1 { font-size:20px; }.entry-heading p { margin-bottom:18px; } }
@media(max-width:500px) { .before-call #videos { height:225px; }.meeting-context { margin-left:auto; }.before-call #controls { padding:20px; }.utility-card { padding:24px; } }
/* Lighter conference canvas and empty video areas. */
.meeting-page { background:#fafbfd; }
.meeting-page .before-call #videos>.video,
.meeting-page .in-call #videos>.video,
.meeting-page .camera-placeholder { background:#edf1f6; }
.meeting-page .camera-placeholder { color:#718099; }
.meeting-page .avatar-placeholder { background:#dfe7fa; color:#496ac0; }
/* Square tile background; camera picture keeps its own rounded clipping. */
.meeting-page .before-call #videos>.video,
.meeting-page .in-call #videos>.video { border-radius:0; }
