:root {
  --bg: #eef4f6;
  --panel: #ffffff;
  --panel-alt: #083d4d;
  --panel-alt-soft: #0d6077;
  --line: #d8e2e7;
  --text: #18323b;
  --muted: #5d7882;
  --accent: #0b6d86;
  --accent-2: #0f9c95;
  --brand-sidebar-start: #0b6d86;
  --brand-sidebar-end: #0f9c95;
  --danger: #cc493f;
  --warning: #d48a1b;
  --shadow: 0 18px 45px rgba(19, 54, 66, 0.12);
  --body-start: #f5fafb;
  --nav-bg: rgba(255, 255, 255, 0.75);
  --nav-border: rgba(8, 61, 77, 0.12);
  --input-bg: #fbfdfe;
  --surface-soft: #f7fafb;
  --surface-elevated: #f9fcfd;
  --table-head: rgba(11, 109, 134, 0.08);
  --dropzone-bg: linear-gradient(180deg, rgba(11, 109, 134, 0.05), rgba(255, 255, 255, 0.9));
  --dropzone-bg-active: linear-gradient(180deg, rgba(11, 109, 134, 0.12), rgba(255, 255, 255, 0.95));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 156, 149, 0.1), transparent 28%),
    linear-gradient(180deg, var(--body-start) 0%, var(--bg) 100%);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

body[data-theme='dark'] {
  --bg: #0d1820;
  --panel: #14242d;
  --panel-alt: #0b2f3d;
  --panel-alt-soft: #114c61;
  --line: #29414b;
  --text: #e4f0f3;
  --muted: #9cb8c2;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  --body-start: #102028;
  --nav-bg: rgba(20, 36, 45, 0.88);
  --nav-border: rgba(156, 184, 194, 0.14);
  --input-bg: #102028;
  --surface-soft: #13232b;
  --surface-elevated: #162a33;
  --table-head: rgba(15, 156, 149, 0.16);
  --dropzone-bg: linear-gradient(180deg, rgba(15, 156, 149, 0.14), rgba(20, 36, 45, 0.98));
  --dropzone-bg-active: linear-gradient(180deg, rgba(15, 156, 149, 0.22), rgba(20, 36, 45, 1));
}

.shell {
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 28px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-sidebar-start) 88%, #04131a 12%), color-mix(in srgb, var(--brand-sidebar-end) 74%, #04131a 26%));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-main {
  min-width: 0;
}

.sidebar-brand {
  margin-bottom: 24px;
  padding: 8px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar-brand .eyebrow {
  color: rgba(230, 246, 251, 0.76);
}

.sidebar-brand h2 {
  margin: 6px 0 0;
  font-size: 28px;
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 24px 10px 4px;
}

.sidebar-version {
  text-align: center;
  color: rgba(238, 249, 252, 0.86);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.app-sidebar #serverStatus {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: #eef9fc;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.82;
}

.app-nav {
  display: grid;
  gap: 10px;
}

.nav-link {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #eef9fc;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.nav-link.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.user-session {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 22px;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

.status-pill {
  background: rgba(11, 109, 134, 0.08);
  color: var(--accent);
}

.connectivity-status.idle {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.connectivity-status.testing {
  background: rgba(212, 138, 27, 0.16);
  color: #f5d28d;
}

.connectivity-status.ok {
  background: rgba(35, 196, 131, 0.18);
  color: #baf2d7;
}

.connectivity-status.error {
  background: rgba(204, 73, 63, 0.18);
  color: #ffd5d1;
}

.layout {
  display: grid;
  gap: 18px;
}

.app-view {
  display: none;
}

.app-view.active {
  display: grid;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(8, 61, 77, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.card-accent {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    linear-gradient(120deg, var(--panel-alt) 0%, var(--panel-alt-soft) 100%);
  color: #f4fbfd;
}

.card-accent .eyebrow,
.card-accent h2,
.card-accent label,
.card-accent input,
.card-accent span {
  color: inherit;
}

.card-accent input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.card-accent select {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.card-accent input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.card-accent .btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #f4fbfd;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-accent .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.player-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.worklist-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-control {
  min-width: 280px;
}

.speed-control {
  min-width: 130px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  padding: 12px 14px;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: span 2;
}

.toggle {
  justify-content: center;
}

.toggle input {
  width: 22px;
  height: 22px;
}

.actions-inline {
  display: flex;
  align-items: end;
}

.config-actions {
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.config-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.config-toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.btn-secondary {
  background: rgba(11, 109, 134, 0.12);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(24, 50, 59, 0.08);
  color: var(--text);
}

.btn-warning {
  background: rgba(212, 138, 27, 0.14);
  color: #8f5d0a;
}

.btn-danger {
  background: rgba(204, 73, 63, 0.14);
  color: var(--danger);
}

.card-video {
  background:
    linear-gradient(180deg, rgba(5, 42, 53, 0.98), rgba(2, 18, 24, 0.96)),
    var(--panel-alt);
  color: white;
}

.card-video .eyebrow,
.card-video h2,
.card-video label,
.card-video .helper-text {
  color: #e6f6fb;
}

.video-stage {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(15, 156, 149, 0.18), transparent),
    #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#preview {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: black;
}

.video-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.badge.recording {
  background: rgba(204, 73, 63, 0.88);
}

.badge.paused {
  background: rgba(212, 138, 27, 0.88);
}

#timer {
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
}

.video-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 10px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 20, 26, 0.68);
  backdrop-filter: blur(6px);
}

.login-card {
  width: min(100%, 440px);
  padding: 24px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.capture-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px minmax(220px, 320px) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.toggle-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.toggle-inline input {
  width: 20px;
  height: 20px;
}

.audio-meter-card {
  display: grid;
  gap: 8px;
}

.audio-meter-label,
.audio-level-text {
  font-size: 13px;
  color: inherit;
  font-weight: 700;
}

.audio-meter {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.audio-level-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #23c483 0%, #f1c40f 65%, #e74c3c 100%);
  transition: width 90ms linear;
}

.helper-text {
  margin-top: 10px;
  font-size: 13px;
}

.form-message {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11, 109, 134, 0.18);
  background: rgba(11, 109, 134, 0.08);
  color: var(--text);
}

.form-message.error {
  border-color: rgba(204, 73, 63, 0.28);
  background: rgba(204, 73, 63, 0.12);
  color: #f5b4ad;
}

.form-message.success {
  border-color: rgba(35, 196, 131, 0.24);
  background: rgba(35, 196, 131, 0.12);
  color: var(--text);
}

body[data-theme='dark'] .form-message.error {
  color: #ffd5d1;
}

.trim-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.trim-player video {
  width: 100%;
  min-height: 360px;
  background: #000;
  border-radius: 22px;
}

.trim-panel {
  display: grid;
  gap: 12px;
}

.trim-readout,
.trim-summary {
  font-size: 14px;
  color: var(--muted);
}

.trim-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.library-player video {
  width: 100%;
  min-height: 420px;
  background: #000;
  border-radius: 22px;
}

.library-player iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
}

.pdf-dropzone {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border: 2px dashed rgba(11, 109, 134, 0.32);
  border-radius: 20px;
  background: var(--dropzone-bg);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pdf-dropzone.dragover {
  border-color: var(--accent);
  background: var(--dropzone-bg-active);
  transform: translateY(-1px);
}

.pdf-dropzone-copy {
  display: grid;
  gap: 6px;
}

.pdf-file-meta {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.library-panel {
  display: grid;
  gap: 14px;
}

.detail-list {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(216, 226, 231, 0.7);
  padding-bottom: 10px;
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  color: var(--muted);
  font-weight: 700;
}

.detail-value {
  text-align: right;
  word-break: break-word;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.users-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--input-bg);
}

.pagination-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
}

.patient-role-notice {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(13, 121, 142, 0.25);
  background: rgba(13, 121, 142, 0.08);
  color: var(--text);
}

.logo-config-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.logo-config-preview {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--surface-soft);
  padding: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-config-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

thead {
  background: var(--table-head);
}

.link-button {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.study-hide {
  margin-left: 12px;
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(9, 32, 39, 0.94);
  color: white;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 340px;
}

.theme-control {
  min-width: 140px;
}

.portal-shell {
  max-width: 1080px;
}

.portal-branding {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-brand-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.portal-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.portal-result-list {
  display: grid;
  gap: 16px;
}

.portal-result-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
}

.portal-result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.portal-result-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.portal-result-head p {
  color: var(--muted);
}

.portal-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-result-grid div {
  display: grid;
  gap: 4px;
}

.portal-result-grid strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.portal-result-grid span {
  color: var(--text);
}

.portal-share-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 121, 142, 0.06);
  display: grid;
  gap: 12px;
}

.portal-share-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.portal-share-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-share-actions .btn {
  min-width: 220px;
  justify-content: center;
}

.portal-share-history {
  display: grid;
  gap: 8px;
}

.portal-share-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.portal-share-status {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}

.portal-share-audit {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-elevated) 84%, var(--accent) 16%);
  display: grid;
  gap: 12px;
}

.portal-share-audit-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.portal-share-audit-head strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.portal-share-status.active {
  color: #117d93;
}

.portal-share-status.revoked {
  color: #9b5b00;
}

.portal-institution-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
}

.portal-institution-card .detail-row {
  align-items: flex-start;
}

.portal-institution-card .detail-value {
  text-align: right;
  max-width: 70%;
}

.portal-share-history strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.portal-share-history-list {
  display: grid;
  gap: 8px;
}

.portal-share-history-item {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  font-size: 14px;
}

.portal-share-history-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 700;
}

.portal-share-history-recipient {
  color: var(--text);
}

.portal-share-history-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

body[data-theme='dark'] .portal-share-history-item {
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme='dark'] .portal-share-panel {
  background: rgba(137, 215, 231, 0.08);
}

body[data-theme='dark'] .portal-share-audit {
  background: rgba(137, 215, 231, 0.06);
}

body[data-theme='dark'] .card-accent .status-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #e6f6fb;
}

body[data-theme='dark'] .btn-secondary {
  background: rgba(15, 156, 149, 0.18);
  color: #b9ece8;
}

body[data-theme='dark'] .btn-ghost {
  background: rgba(228, 240, 243, 0.08);
  color: var(--text);
}

body[data-theme='dark'] .btn-warning {
  background: rgba(212, 138, 27, 0.2);
  color: #f2ca82;
}

body[data-theme='dark'] .btn-danger {
  background: rgba(204, 73, 63, 0.2);
  color: #ffb9b2;
}

body[data-theme='dark'] .audio-meter {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme='dark'] .status-pill {
  background: rgba(15, 156, 149, 0.12);
  color: #8be2dd;
}

body[data-theme='dark'] .connectivity-status.idle {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme='dark'] .nav-link.active,
body[data-theme='dark'] .btn-primary {
  box-shadow: 0 10px 24px rgba(11, 109, 134, 0.22);
}

.hidden {
  display: none;
}

@media (max-width: 1200px) {
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .trim-layout {
    grid-template-columns: 1fr;
  }

  .library-layout {
    grid-template-columns: 1fr;
  }

  .capture-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    min-height: auto;
    padding: 18px 14px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar-brand {
    margin-bottom: 14px;
  }

  .sidebar-brand h2 {
    font-size: 24px;
  }

  .sidebar-footer {
    margin-top: 14px;
    padding: 0;
  }

  .sidebar-version {
    margin-bottom: 8px;
  }

  .app-nav {
    grid-template-columns: 1fr;
  }

  .nav-link {
    width: 100%;
    padding: 14px 15px;
  }

  .shell {
    padding: 14px;
  }

  .topbar,
  .section-head,
  .video-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    width: 100%;
    align-items: stretch;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .user-session {
    width: 100%;
    align-items: stretch;
  }

  .theme-control,
  .theme-control select {
    width: 100%;
  }

  .player-tools {
    width: 100%;
  }

  .worklist-tools {
    width: 100%;
  }

  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .portal-result-grid {
    grid-template-columns: 1fr;
  }

  .portal-share-actions .btn {
    min-width: 100%;
  }

  .portal-share-history-item {
    align-items: stretch;
  }

  .portal-share-history-main,
  .portal-share-history-meta,
  .portal-share-history-head,
  .portal-share-audit-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-stage,
  #preview {
    min-height: 320px;
  }

  .table-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .users-filters {
    grid-template-columns: 1fr;
  }
}
