/* Solaryx Meet — what the working app adds to the approved design (meet.css, call.css, theme.css are
   the prototype's own). No new look: the states the prototype did not need, in its tokens. */
[hidden] { display: none !important; }

/* the prototype's inline styles, moved here so the page carries none */
#joinwith { margin: 2px 0 0; line-height: 1.4; }
#joinnow { width: 100%; }
.menu-anchor { position: relative; }
.menu-emoji { min-width: 0; }
#msg { height: 40px; }

/* the field: in the call it is past its intro (the rails, faint, no X), as the prototype's call page */
.call2 .intro-sentinel { top: 0; }
.sxm-field-off .astra-backdrop { visibility: hidden; }

/* before joining: the speaker test beside the speaker picker */
.spk-row { display: flex; gap: 8px; }
.spk-row .select { flex: 1; min-width: 0; }
.spk-row .btn { height: 46px; border-radius: var(--r-field); padding: 0 16px; }
.select:disabled { opacity: .6; }

/* the call: the calm banner (reconnecting, sound) */
.banner { position: fixed; left: 50%; top: 68px; transform: translateX(-50%); z-index: 12; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px 6px 14px; border-radius: var(--r-isl); background: rgba(7, 7, 9, 0.9); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 500 13px/1.3 var(--font-ui); color: var(--ink); max-width: calc(100vw - 24px); }
.banner > i { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--ink-2); }
.banner .btn { height: 30px; }
html[data-theme="light"] .banner { background: rgba(255, 255, 255, 0.94); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 16px 40px rgba(0, 0, 0, 0.12); }

/* tiles: real people. Other people's video is shown as it comes; your own is mirrored unless turned off */
.tile:not(.me) video { transform: none; }
.tile.me.no-mirror video { transform: none; }
.tile .who .mute { display: inline-flex; }
.tile .who .nm { overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
/* the connection: three still bars, a weak link shows in the alert colour */
.tile .who .q { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 10px; }
.tile .who .q b { width: 2px; border-radius: 1px; background: var(--ink); opacity: .85; }
.tile .who .q b:nth-child(1) { height: 4px; } .tile .who .q b:nth-child(2) { height: 7px; } .tile .who .q b:nth-child(3) { height: 10px; }
.tile .who .q[data-level="2"] b:nth-child(3), .tile .who .q[data-level="1"] b:nth-child(2), .tile .who .q[data-level="1"] b:nth-child(3) { opacity: .25; }
.tile .who .q[data-level="1"] b:nth-child(1) { background: var(--alert); opacity: 1; }
html[data-theme="light"] .tile .who .q[data-level="1"] b:nth-child(1) { background: #d6303a; }
/* speaker view: the person in focus fills the stage; the still outline still marks who speaks */
.is-speaker .grid .tile.focus { display: block; }
.is-speaker .grid .tile.speaking:not(.focus) { display: none; }
.pager button[disabled] { opacity: .35; cursor: default; }
.pager span { font: 500 12.5px/30px var(--font-mono); color: var(--ink-2); padding: 0 4px; }

/* the stage: someone else's presentation or screen, a Penpot design, your own screen */
.viewer { --sxm-frame-bg: #0a0a0c; }
html[data-theme="light"] .viewer { --sxm-frame-bg: #fafaf9; }
.v-stage.remote { padding: 0; place-items: stretch; overflow: hidden; }
.v-stage.remote .v-doc { position: absolute; inset: 0; transform: none; }
.v-remote { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.v-over { position: absolute; z-index: 2; touch-action: none; pointer-events: none; }
.v-stage.drawing .v-over, .v-stage.comment .v-over { pointer-events: auto; cursor: crosshair; }
.v-frame { width: 100%; height: 100%; min-height: 60vh; border: 0; border-radius: 4px; background: #fff; }
.v-card { display: grid; gap: 10px; justify-items: start; max-width: 420px; margin-top: 12vh; padding: 22px 22px 20px; border-radius: var(--r-card); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.v-card b { color: var(--ink); font-weight: 600; font-size: 15px; }
.v-card .btn { margin-top: 6px; }
.viewer[data-mode="penpot"] .v-stage, .viewer[data-mode="own-screen"] .v-stage { place-items: start center; }

/* people: the host's actions sit at the end of a row */
.person .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.person .acts { display: inline-flex; gap: 2px; margin-left: 6px; }
.person .acts .vb { height: 26px; padding: 0 7px; font-size: 12px; }

/* chat */
#chat-list .empty { margin: 0; line-height: 1.5; }
.msg p { overflow-wrap: anywhere; white-space: pre-wrap; }

/* files: a PDF or an image from this computer, dropped or chosen; a Penpot link */
.files-h { margin: 0; }
.files-note { margin: 4px 0 0; line-height: 1.5; }
.drop { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-field); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .2s; }
.drop.over { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--ink); }
.drop .ft { width: 40px; height: 48px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); font: 700 10px/1 var(--font-mono); color: var(--ink-2); }
.drop b { display: block; font-weight: 600; font-size: 13.5px; }
.drop small { color: var(--ink-3); font-size: 12px; line-height: 1.4; display: block; }
.penpot-form { display: flex; gap: 8px; }
.penpot-form .input { height: 40px; }
html[data-theme="light"] .drop { background: rgba(0, 0, 0, 0.02); }
html[data-theme="light"] .drop.over { background: rgba(0, 0, 0, 0.05); }
html[data-theme="light"] .drop .ft { background: rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .v-card { background: rgba(0, 0, 0, 0.025); }

/* notes: what the Notes participant does, only while it is in the meeting */
.notes-state { font-size: 13.5px; line-height: 1.5; }
.notes-state b { font-weight: 600; }

@media (max-width: 900px) {
  .banner { top: 64px; }
  .v-card { margin-top: 4vh; }
}

/* the pointer everyone sees: red, so it shows on a white page (the prototype's white dot vanished there) */
.laser { background: #e5484d; box-shadow: 0 0 12px 4px rgba(229, 72, 77, 0.55), 0 0 36px 10px rgba(229, 72, 77, 0.2); }

/* one person on the stage (alone, or the speaker view): the whole height at the camera's 16:9. The
   prototype capped every tile at half the screen's height, which cropped a lone speaker to a strip. */
@media (min-width: 901px) {
  html:not(.is-presenting) .grid.solo .tile { max-height: none; height: 100%; width: auto; max-width: 100%; aspect-ratio: 16 / 9; justify-self: center; align-self: center; }
}
/* phones keep the pages of people reachable (the prototype hid every .seg in the top bar there) */
@media (max-width: 900px) {
  .c-top .seg.pager { display: inline-flex; }
}

/* Solaryx Notes in the meeting: a quiet label on the stage, never a camera box */
.c-stage { position: relative; }
.notes-tag { position: absolute; right: 10px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 9px; border-radius: var(--r-tag); background: rgba(0, 0, 0, 0.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 12.5px/1 var(--font-ui); color: var(--ink); pointer-events: none; }
.notes-tag .sq { margin: 0; width: 7px; height: 7px; }
.is-presenting .notes-tag { display: none; }
html[data-theme="light"] .notes-tag { background: rgba(255, 255, 255, 0.86); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }

/* backgrounds: None, Blur and the pictures — under the preview before joining, and in Settings */
.pre-col { display: grid; gap: 14px; min-width: 0; }
.bg-row { display: grid; gap: 8px; }
.bg-pick { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.side2 .bg-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.bg-opt { position: relative; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: var(--fill-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.bg-opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-opt svg { width: 18px; height: 18px; }
.bg-opt:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.bg-opt[aria-checked="true"] { outline: 2px solid var(--ink); outline-offset: 2px; color: var(--ink); }
.bg-opt.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: sxm-spin .8s linear infinite; }
@keyframes sxm-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .bg-pick { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* the call: a device menu beside the microphone and the camera, as a split button */
.dev { display: inline-flex; gap: 2px; }
.dev > .ic:first-child { border-radius: var(--r-ctl) 3px 3px var(--r-ctl); }
.ic.caret { width: 22px; border-radius: 3px var(--r-ctl) var(--r-ctl) 3px; color: var(--ink-2); }
.ic.caret svg { width: 14px; height: 14px; }
.ic.caret[aria-expanded="true"] { background: var(--fill-3); color: var(--ink); }
.menu-dev { min-width: 260px; max-width: min(340px, calc(100vw - 24px)); }
.menu-h { margin: 8px 10px 4px; font: 500 11.5px/1.3 var(--font-ui); color: var(--ink-3); letter-spacing: 0.01em; }
.menu-dev button svg { width: 16px; height: 16px; flex: none; color: var(--ink); visibility: hidden; }
.menu-dev button[aria-checked="true"] svg { visibility: visible; }
.menu-dev button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-dev .menu-more { margin-top: 4px; padding-left: 36px; box-shadow: 0 -1px 0 var(--line); border-radius: 0 0 8px 8px; }
@media (max-width: 480px) { .ic.caret { display: none; } .dev > .ic:first-child { border-radius: var(--r-ctl); } }

/* the host's invite: the guest link to copy, share or email, above the people list */
.invite { display: grid; gap: 8px; padding: 14px 16px 12px; box-shadow: inset 0 -1px 0 var(--line); }
.invite-row { display: flex; gap: 8px; }
.invite-row .input { flex: 1; min-width: 0; height: 34px; font: 400 12.5px/1 var(--font-mono, ui-monospace, monospace); color: var(--ink-2); }
.invite-more { display: flex; gap: 8px; }
