:root {
  --bg: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #d8e0e7;
  --text: #16212b;
  --muted: #5f6f7c;
  --brand: #136f63;
  --brand-2: #0e5a90;
  --danger: #a83b3b;
  --warn: #a66a00;
  --ok: #1f7a45;
  --shadow: 0 14px 35px rgba(18, 33, 43, 0.09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: var(--brand-2);
}

.boot-screen,
.auth-page {
  align-items: center;
  display: flex;
  min-height: 100vh;
  justify-content: center;
}

.boot-screen {
  gap: 12px;
  color: var(--muted);
}

.boot-screen img {
  height: 36px;
  width: auto;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(270px, 380px) minmax(280px, 440px);
  overflow: hidden;
  width: min(880px, calc(100vw - 28px));
}

.auth-brand {
  background: #12323a;
  color: #fff;
  padding: 36px;
}

.auth-brand img {
  background: #fff;
  border-radius: 6px;
  display: block;
  height: 58px;
  margin-bottom: 34px;
  padding: 8px;
  width: auto;
}

.auth-brand h1 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 14px;
}

.auth-brand p {
  color: #dce8eb;
  line-height: 1.55;
  margin: 0;
}

.auth-form {
  padding: 36px;
}

.auth-form h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.auth-form .muted {
  margin-bottom: 24px;
}

.qr-setup {
  align-items: center;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 168px minmax(0, 1fr);
  margin: 0 0 18px;
  padding: 14px;
}

.qr-frame {
  align-items: center;
  background: #fff;
  border: 1px solid #c9d3dd;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  min-height: 166px;
  padding: 10px;
}

.qr-frame svg {
  display: block;
  height: 146px;
  width: 146px;
}

.setup-steps {
  display: grid;
  gap: 8px;
}

.setup-steps strong {
  color: #1c2d38;
  font-size: 15px;
}

.setup-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.manual-key {
  margin: 0 0 18px;
}

.manual-key summary {
  color: var(--brand-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field span {
  color: #34444f;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1px solid #c9d3dd;
  border-radius: 6px;
  color: var(--text);
  min-height: 42px;
  padding: 10px 11px;
  width: 100%;
}

.field textarea {
  line-height: 1.42;
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(14, 90, 144, 0.16);
  outline: 0;
}

.field-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-row {
  align-items: center;
  color: #34444f;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  margin: 0 0 16px;
}

.check-row input {
  height: 18px;
  width: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary,
.secondary,
.danger,
.ghost {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 700;
  min-height: 40px;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
}

.primary {
  background: var(--brand);
  color: #fff;
}

.secondary {
  background: #173b52;
  color: #fff;
}

.danger {
  background: var(--danger);
  color: #fff;
}

.ghost {
  background: #e8eef3;
  color: #1f3444;
}

.error {
  background: #fff1f1;
  border: 1px solid #f0b8b8;
  border-radius: 6px;
  color: #7f1d1d;
  margin: 12px 0;
  padding: 10px 12px;
}

.notice {
  background: #edf7f4;
  border: 1px solid #b9ded4;
  border-radius: 6px;
  color: #164f45;
  margin: 12px 0;
  padding: 10px 12px;
}

.loading-overlay {
  align-items: center;
  background: rgba(238, 242, 245, 0.72);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.loading-panel {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #20323d;
  display: inline-flex;
  font-weight: 700;
  gap: 12px;
  min-height: 62px;
  padding: 12px 18px;
}

.loading-mark {
  animation: loading-spin 1s linear infinite;
  background: #fff;
  border-radius: 6px;
  height: 36px;
  object-fit: contain;
  padding: 4px;
  width: 48px;
}

@keyframes loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.secret-box {
  background: #111d25;
  border-radius: 6px;
  color: #fff;
  font-family: "Courier New", monospace;
  overflow-wrap: anywhere;
  padding: 12px;
}

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

.sidebar {
  background: #10252e;
  color: #e9f3f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 18px 14px;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 4px 6px;
}

.brand-lockup img {
  background: #fff;
  border-radius: 6px;
  height: 40px;
  padding: 5px;
  width: 58px;
  object-fit: contain;
}

.brand-lockup strong {
  display: block;
}

.brand-lockup span {
  color: #aac0c7;
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  background: transparent;
  border-radius: 6px;
  color: #d7e4e8;
  min-height: 40px;
  padding: 10px 11px;
  text-align: left;
}

.nav button.active,
.nav button:hover {
  background: #1c3b46;
  color: #fff;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: auto;
  padding-top: 16px;
}

.sidebar-footer strong {
  display: block;
  font-size: 14px;
}

.sidebar-footer span {
  color: #aac0c7;
  display: block;
  font-size: 12px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.content {
  min-width: 0;
  padding: 24px;
}

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

.topbar h1 {
  font-size: 25px;
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

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

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

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

.panel,
.stat,
.table-panel,
.display-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(18, 33, 43, 0.05);
}

.panel,
.table-panel {
  padding: 18px;
}

.panel h2,
.table-panel h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.panel-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
}

.panel-heading .muted {
  margin-top: 5px;
}

.compact-row {
  margin-top: 0;
}

.compact-row .ghost {
  min-height: 34px;
  padding: 7px 10px;
}

.panel-lite {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.panel-lite h3 {
  font-size: 18px;
  margin: 0 0 14px;
}

.stat {
  padding: 16px;
}

.stat span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.stat strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

.status-pill {
  background: #e7f4ee;
  border-radius: 999px;
  color: var(--ok);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.status-pill.paused {
  background: #fff6df;
  color: var(--warn);
}

.status-pill.closed {
  background: #edf1f4;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #405260;
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.permissions-panel {
  margin-top: 16px;
}

.permissions-panel .muted {
  margin: -6px 0 14px;
}

.permissions-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.permissions-grid {
  min-width: 980px;
}

.permissions-grid th {
  max-width: 180px;
  min-width: 130px;
  overflow-wrap: anywhere;
  vertical-align: bottom;
}

.permissions-grid th:first-child,
.permissions-grid td:first-child {
  left: 0;
  min-width: 220px;
  position: sticky;
  z-index: 1;
}

.permissions-grid th:first-child {
  background: var(--surface);
}

.permissions-grid td:first-child {
  background: #fff;
}

.user-summary-cell strong,
.user-summary-cell span,
.user-summary-cell small {
  display: block;
}

.user-summary-cell span,
.user-summary-cell small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.role-select {
  background: #fff;
  border: 1px solid #c9d3dd;
  border-radius: 6px;
  min-height: 38px;
  min-width: 150px;
  padding: 8px 10px;
}

.super-checkbox {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-height: 38px;
  white-space: nowrap;
}

.super-checkbox input {
  height: 17px;
  width: 17px;
}

.access-options {
  display: grid;
  gap: 5px;
  min-width: 118px;
}

.access-options label {
  align-items: center;
  background: #f5f8fa;
  border: 1px solid #d9e1e8;
  border-radius: 5px;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  grid-template-columns: 14px minmax(0, 1fr);
  padding: 5px 7px;
}

.access-options input {
  margin: 0;
}

.access-options input:checked + span {
  color: var(--brand);
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-item {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.project-item strong,
.photo-card strong {
  display: block;
}

.project-item span,
.photo-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.project-picker {
  margin-bottom: 16px;
  max-width: 520px;
}

.cdm-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(310px, 480px) minmax(0, 1fr);
}

.display-preview {
  overflow: hidden;
}

.display-header {
  background: #12323a;
  color: #fff;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 18px;
}

.display-header h2 {
  font-size: 24px;
  margin: 0 0 5px;
}

.display-header span {
  color: #c8dbe0;
  display: block;
  font-size: 13px;
}

.display-body {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.display-section {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.display-section.full {
  grid-column: 1 / -1;
}

.display-section h3 {
  color: #233744;
  font-size: 13px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.display-section p {
  line-height: 1.45;
  margin: 0;
  white-space: pre-wrap;
}

.photo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.photo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.photo-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.photo-card div {
  padding: 9px;
}

.empty-state {
  background: var(--surface-2);
  border: 1px dashed #b9c7d1;
  border-radius: 6px;
  color: var(--muted);
  padding: 16px;
}

.fullscreen-display {
  background: #eef2f5;
  min-height: 100vh;
  padding: 18px;
}

.fullscreen-display .display-preview {
  min-height: calc(100vh - 36px);
}

.fullscreen-display .display-header {
  padding: 26px;
}

.fullscreen-display .display-header h2 {
  font-size: 34px;
}

.fullscreen-display .display-body {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fullscreen-display .display-section {
  font-size: 18px;
}

.upload-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.file-link {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  text-decoration: none;
}

.document-explorer {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.explorer-tree {
  align-self: start;
}

.folder-create-form {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.folder-create-form .field {
  margin-bottom: 10px;
}

.folder-tree {
  display: grid;
  gap: 4px;
}

.tree-branch {
  margin-left: calc(var(--depth) * 14px);
}

.tree-node,
.explorer-name {
  align-items: center;
  background: transparent;
  color: var(--text);
  display: inline-grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: start;
  min-height: 34px;
  overflow-wrap: anywhere;
  padding: 6px 8px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.tree-node.active,
.tree-node:hover,
.explorer-row:hover {
  background: #eaf2f7;
}

.tree-node.drag-over,
.explorer-main.drag-over,
.explorer-dropzone.drag-over,
.folder-item.drag-over {
  background: #e3f4ed;
  outline: 2px solid rgba(19, 111, 99, 0.35);
}

.file-icon {
  align-items: center;
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 22px;
}

.folder-icon {
  background: #d9a441;
  color: transparent;
}

.folder-icon::before {
  background: #ecc86f;
  border-radius: 4px 4px 0 0;
  content: "";
  height: 7px;
  left: 2px;
  position: absolute;
  top: -4px;
  width: 11px;
}

.document-icon {
  background: #657485;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.document-icon::after {
  display: none;
}

.word-icon {
  background: #2468c9;
}

.excel-icon {
  background: #1f8a4c;
}

.powerpoint-icon {
  background: #c94e25;
}

.pdf-icon {
  background: #c72828;
}

.image-icon {
  background: #8b5fd3;
}

.text-icon {
  background: #52677a;
}

.archive-icon {
  background: #7a5c2e;
}

.generic-file-icon {
  background: #657485;
}

.explorer-toolbar {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.explorer-toolbar h2 {
  margin-bottom: 8px;
}

.explorer-toolbar-actions {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.explorer-upload {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.selected-upload-list {
  flex-basis: 100%;
  min-width: min(420px, 100%);
}

.selected-files {
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  margin-top: 2px;
  padding: 9px;
}

.selected-files > strong {
  color: #405260;
  font-size: 12px;
  text-transform: uppercase;
}

.selected-file-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.selected-file-row span {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.selected-file-row small {
  color: var(--muted);
  white-space: nowrap;
}

.file-picker {
  align-items: center;
  background: #e8eef3;
  border-radius: 6px;
  color: #1f3444;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  min-height: 40px;
  padding: 10px 14px;
}

.file-picker input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.explorer-dropzone {
  background: #f5f8fa;
  border: 1px dashed #aebfcb;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
  padding: 14px;
  text-align: center;
}

.explorer-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.explorer-row {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.8fr) minmax(110px, 0.8fr) minmax(80px, 0.5fr) minmax(150px, 1fr) minmax(150px, auto);
  min-height: 52px;
  padding: 8px 10px;
}

.explorer-row:last-child {
  border-bottom: 0;
}

.explorer-header {
  background: #f2f6f9;
  color: #405260;
  font-size: 12px;
  font-weight: 800;
  min-height: 38px;
  text-transform: uppercase;
}

.explorer-item.dragging {
  opacity: 0.45;
}

.explorer-name {
  align-items: start;
  padding: 0;
  min-width: 0;
}

.explorer-name .file-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin-top: 2px;
}

.explorer-name strong,
.explorer-name small {
  display: block;
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.explorer-name small,
.explorer-row small {
  color: var(--muted);
  font-size: 12px;
}

.explorer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.explorer-actions .ghost,
.explorer-actions .danger {
  min-height: 34px;
  padding: 7px 10px;
}

.document-preview-panel {
  align-items: center;
  background: rgba(7, 19, 23, 0.68);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 30;
}

.document-preview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(86vh, 880px);
  overflow: hidden;
  width: min(1120px, calc(100vw - 28px));
}

.preview-toolbar {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.preview-toolbar h2 {
  font-size: 20px;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.preview-body {
  align-items: center;
  background: #f2f6f9;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: auto;
}

.preview-frame {
  background: #fff;
  border: 0;
  height: 100%;
  width: 100%;
}

.preview-image {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.preview-fallback {
  align-items: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 480px;
  padding: 28px;
  text-align: center;
}

.large-file-icon {
  height: 54px;
  font-size: 26px;
  width: 64px;
}

.breadcrumbs,
.folder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.breadcrumbs {
  align-items: center;
}

.folder-row {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 8px;
  width: 100%;
}

.folder-button {
  background: transparent;
  color: #173b52;
  font-weight: 700;
  min-height: 36px;
  overflow-wrap: anywhere;
  text-align: left;
}

.checkbox-field {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.checkbox-field input {
  min-height: 20px;
  width: 22px;
}

.public-display {
  background: #0f1f25;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.public-cdm {
  background: #eef2f5;
  color: var(--text);
  min-width: 0;
  position: relative;
}

.public-header {
  align-items: center;
  background: #12323a;
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  padding: 22px;
}

.public-header img {
  background: #fff;
  border-radius: 6px;
  height: 54px;
  object-fit: contain;
  padding: 7px;
  width: 78px;
}

.public-header h1 {
  font-size: 30px;
  line-height: 1.12;
  margin: 0 0 5px;
}

.public-header p,
.public-header span {
  color: #d2e1e5;
  margin: 0;
}

.public-signin-button {
  align-items: center;
  animation: signinPulse 1.6s ease-in-out infinite;
  background: #fff;
  border-radius: 6px;
  color: #000;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
}

.public-header .public-signin-button span {
  color: #000;
}

@keyframes signinPulse {
  0%,
  100% {
    background: #fff;
    box-shadow: 0 0 0 0 rgba(30, 180, 80, 0.45);
  }

  50% {
    background: #20d063;
    box-shadow: 0 0 0 7px rgba(30, 180, 80, 0.16);
  }
}

.signin-icon {
  align-items: center;
  background: #e12626;
  border-radius: 999px;
  color: #000;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

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

.public-mobile-qr {
  align-items: center;
  align-self: center;
  background: #fff;
  border: 1px solid #cfd9e2;
  border-radius: 6px;
  color: var(--text);
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 6px;
  width: 78px;
}

.public-mobile-qr-code {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
}

.public-mobile-qr-code svg {
  display: block;
  height: 58px;
  width: 58px;
}

.public-mobile-qr-label {
  color: #16212b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.public-header .public-mobile-qr-label {
  color: #16212b;
}

.public-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 92px;
  padding: 13px;
}

.public-info.wide {
  grid-column: 1 / -1;
}

.public-info h2 {
  color: #233744;
  font-size: 13px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.public-info p {
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
  white-space: pre-wrap;
}

.public-slideshow {
  background: #071317;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.slide {
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 600ms ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.slide figcaption {
  background: rgba(7, 19, 23, 0.76);
  bottom: 0;
  color: #fff;
  font-size: 22px;
  left: 0;
  padding: 18px 22px;
  position: absolute;
  right: 0;
}

.public-empty {
  align-items: center;
  color: #c9d6da;
  display: flex;
  font-size: 24px;
  height: 100%;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.public-empty.inline {
  background: #fff;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  color: var(--muted);
  font-size: 22px;
  height: auto;
  min-height: 150px;
}

.register-slide {
  background: #eef2f5;
  color: var(--text);
  display: flex;
}

.register-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  width: 100%;
}

.register-eyebrow {
  color: #136f63;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.register-board h2 {
  font-size: 38px;
  line-height: 1.05;
  margin: 0;
}

.register-heading {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.register-heading p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.public-visit-list {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.public-visit-row {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.75fr) minmax(0, 0.9fr) auto auto;
  min-height: 54px;
  padding: 8px 10px;
}

.public-visit-row strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.visit-detail b {
  color: #405260;
  display: block;
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
}

.public-visit-row span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.2;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.public-visit-row .status-pill {
  color: var(--ok);
  display: inline-flex;
  font-size: 11px;
  margin: 0;
  padding: 5px 7px;
  white-space: nowrap;
}

.public-visit-row .status-pill.paused {
  color: var(--warn);
}

.public-signin-panel {
  align-items: center;
  background: rgba(7, 19, 23, 0.74);
  color: var(--text);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

.public-signin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  width: min(1080px, calc(100vw - 32px));
}

@media (max-width: 1020px) {
  .app-shell,
  .cdm-layout,
  .document-explorer,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .content {
    padding: 18px;
  }

  .explorer-toolbar {
    display: grid;
  }

  .explorer-toolbar-actions {
    justify-content: flex-start;
  }

  .explorer-upload {
    justify-content: flex-start;
  }

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

  .explorer-header {
    display: none;
  }

  .explorer-actions {
    justify-content: flex-start;
  }

  .preview-toolbar,
  .selected-file-row {
    display: grid;
  }

  .selected-file-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .selected-file-row small {
    grid-column: 2;
    white-space: normal;
  }
}

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

  .auth-brand,
  .auth-form {
    padding: 24px;
  }

  .qr-setup {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    min-height: 0;
  }

  .field-row,
  .display-body,
  .upload-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-display {
    grid-template-columns: 1fr;
  }

  .public-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .public-header > span {
    justify-self: start;
  }

  .public-signin-button {
    grid-column: 2 / -1;
    grid-row: 3;
    width: 100%;
  }

  .public-mobile-qr {
    grid-column: 1;
    grid-row: 3;
    width: 74px;
  }

  .public-mobile-qr-code svg {
    height: 54px;
    width: 54px;
  }

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

  .public-slideshow {
    min-height: 60vh;
  }

  .panel-heading,
  .public-signin-card .grid.two,
  .public-visit-row {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .register-heading {
    display: grid;
  }

  .register-heading p {
    white-space: normal;
  }

  .register-board {
    padding: 24px;
  }

  .register-board h2 {
    font-size: 30px;
  }
}
