@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --bg: #080c1f;
  --surface: #0c1130;
  --surface-alt: #10183a;
  --border: #ffffff;
  --text: #ffffff;
  --muted: #8fa3c8;
  --accent: #ffffff;
  --danger: #ff6b6b;
  --success: #b8ffb8;
  --radius: 0;
  --font-mono: 'IBM Plex Mono', 'Courier New', Courier, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 9999;
}

.dos-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  margin: 0.75rem;
}

body.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body.centered .dos-frame {
  min-height: auto;
  width: 100%;
  max-width: 440px;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
  flex: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  gap: 1rem;
}

.site-header h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 420px;
}

body:not(.centered) .card {
  max-width: none;
}

.card h2 {
  margin-top: 0;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.card h2::before {
  content: '> ';
}

h1 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 600;
}

h1::before {
  content: 'C:\\> ';
  color: var(--muted);
}

.muted {
  color: var(--muted);
  margin-bottom: 1.25rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: 1px solid var(--border);
  outline-offset: 2px;
}

input[type="file"] {
  padding: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--text);
}

.btn.primary {
  background: var(--border);
  color: var(--bg);
  width: 100%;
}

.btn.primary:hover {
  background: var(--muted);
  border-color: var(--muted);
}

.btn.secondary:hover {
  background: var(--surface-alt);
}

.btn.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn.danger:hover {
  background: var(--danger);
  color: var(--bg);
}

.error {
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 0.65rem;
  margin-bottom: 1rem;
  text-transform: none;
}

.error::before {
  content: '[ERR] ';
}

.message {
  color: var(--success);
  border: 1px solid var(--success);
  padding: 0.65rem;
  margin-bottom: 1rem;
  text-transform: none;
}

.message::before {
  content: '[OK] ';
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  vertical-align: top;
  font-size: 0.72rem;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-alt);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem !important;
}

.link-row {
  display: flex;
  gap: 0.5rem;
  min-width: 260px;
}

.link-input {
  flex: 1;
  margin-bottom: 0 !important;
  font-size: 0.7rem !important;
}

.inline-form {
  display: inline;
  margin: 0;
}

/* Viewer (unchanged structure, DOS accents) */
.viewer-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  text-transform: none;
}

.viewer-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.viewer-header h1 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.viewer-container {
  flex: 1;
  min-height: 0;
  background: #000;
  display: flex;
  flex-direction: column;
}

.viewer-container .pdf-viewer-shell {
  flex: 1;
  min-height: 0;
}

.viewer-container .html-viewer-shell {
  flex: 1;
  min-height: 0;
}

.viewer-body.viewer-chrome-collapsed .html-viewer-shell .pdf-toolbar {
  display: none;
}

.pdf-frame,
.html-frame,
.html-deck-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Landing */
.landing-body {
  min-height: 100vh;
}

.landing-container {
  max-width: 1280px;
}

.landing-file-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.landing-type-box {
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 8rem;
  display: flex;
  flex-direction: column;
}

.landing-type-heading {
  margin: 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.landing-type-count {
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.landing-file-panels-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .landing-file-panels-triple {
    grid-template-columns: 1fr;
  }
}

.landing-type-heading::before,
.landing-type-heading::after {
  content: none;
}

.landing-type-label::before {
  content: '[';
  margin-right: 0.15rem;
}

.landing-type-label::after {
  content: ']';
  margin-left: 0.15rem;
}

.landing-type-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: none;
}

.landing-quick-label {
  margin-top: 2rem;
}

.landing-quick-upload {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.landing-quick-disclaimer {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--danger);
}

.landing-drop-placeholder {
  color: var(--muted) !important;
}

.landing-drop-placeholder::before {
  content: none;
}

.landing-quick-hint {
  margin-top: 0.5rem;
  font-size: 0.7rem;
}

.landing-quick-status {
  margin-top: 0.75rem;
  font-size: 0.75rem;
}

.landing-drop-zone.uploading {
  opacity: 0.6;
  pointer-events: none;
}

.landing-drop-zone {
  margin-bottom: 0.5rem;
}

.storage-card {
  margin-bottom: 1rem;
}

.storage-usage {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
}

.storage-bar {
  height: 0.65rem;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 0.75rem;
}

.storage-bar-fill {
  height: 100%;
  background: var(--success);
  transition: width 0.2s ease;
}

.storage-card.storage-warn .storage-bar-fill {
  background: #c9a227;
}

.storage-card.storage-critical .storage-bar-fill {
  background: var(--danger);
}

.storage-status {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
}

.storage-card.storage-warn .storage-status {
  color: #c9a227;
}

.storage-card.storage-critical .storage-status {
  color: var(--danger);
}

.storage-footnote {
  margin: 0;
  font-size: 0.65rem;
}

.file-size-cell {
  font-size: 0.7rem;
  white-space: nowrap;
  color: var(--muted);
}

/* File Registry table */
.registry-table-wrap {
  margin-top: 0.5rem;
}

.registry-table {
  table-layout: fixed;
  min-width: 920px;
}

.registry-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-alt);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.registry-table td {
  vertical-align: middle;
  padding: 0.75rem 0.65rem;
}

.registry-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.registry-table tbody tr:last-child td {
  border-bottom: none;
}

.registry-col-title { width: 20%; }
.registry-col-type { width: 6%; }
.registry-col-size { width: 7%; }
.registry-col-password { width: 22%; }
.registry-col-landing { width: 11%; }
.registry-col-link { width: 24%; }
.registry-col-actions { width: 10%; }

.registry-cell {
  overflow: hidden;
}

.registry-title-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.registry-type,
.registry-size {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.registry-size {
  font-variant-numeric: tabular-nums;
}

.registry-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.registry-password-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.registry-password-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.registry-password-form .password-input {
  flex: 1;
  min-width: 0;
  width: auto !important;
  max-width: 140px;
}

.registry-link-row {
  min-width: 0;
  width: 100%;
}

.registry-link-input {
  font-family: inherit;
  font-size: 0.65rem !important;
  min-width: 0;
}

.registry-action-btns {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.registry-action-btns .btn-sm {
  width: 100%;
  text-align: center;
}

.status-locked {
  color: #e8b84a;
}

.status-open {
  color: var(--muted);
}

.registry-table .status-pill {
  margin-right: 0;
}

.header-brand h1 {
  margin: 0;
  font-size: 1rem;
}

.header-brand h1::before {
  content: none;
}

.header-link {
  color: var(--text);
  text-decoration: none;
}

.header-link:hover {
  text-decoration: underline;
}

.header-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: none;
}

.presentation-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  flex: 1;
}

.presentation-grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.presentation-card {
  margin: 0;
  background: var(--bg);
  min-height: 5.5rem;
}

.presentation-grid-cols-2 .presentation-card-solo {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 0.5px);
}

.card-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  padding: 0.85rem 0.9rem 0.85rem 1rem;
  text-decoration: none;
  color: var(--text);
  height: 100%;
  min-height: 5.5rem;
  position: relative;
  transition: background 0.12s ease, box-shadow 0.12s ease;
  border-left: 2px solid transparent;
}

.card-link:hover {
  background: var(--surface-alt);
  border-left-color: var(--success);
}

.card-link:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: -1px;
  border-left-color: var(--success);
}

.card-link:hover::before,
.card-link:focus-visible::before {
  content: '>';
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--success);
  font-size: 0.7rem;
}

.card-type {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-type::before {
  content: '[';
}

.card-type::after {
  content: ']';
}

.card-title {
  margin: 0 0 0.4rem;
  padding-right: 3.25rem;
  font-size: 0.82rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-meta {
  margin: 0;
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: none;
}

.badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.12rem 0.3rem;
  border: 1px solid currentColor;
  line-height: 1.2;
}

.badge-lock {
  color: var(--danger);
}

.badge-open {
  color: var(--success);
}

.empty-landing {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  text-transform: none;
}

.empty-landing::before {
  content: '[ NO FILES FOUND ]';
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.back-link {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  text-transform: none;
}

.back-link a {
  color: var(--muted);
  text-decoration: none;
}

.back-link a:hover {
  color: var(--text);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  border: 2px solid var(--border);
  background: var(--bg);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: auto;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--success);
  border-color: var(--success);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: 'X';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bg);
  pointer-events: none;
}

.status-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.35rem;
  border: 1px solid currentColor;
  margin-right: 0.35rem;
}

.status-visible {
  color: var(--success);
}

.status-hidden {
  color: var(--muted);
}

.btn-sm {
  padding: 0.3rem 0.5rem;
  font-size: 0.65rem;
}

.drop-zone {
  position: relative;
  border: 1px dashed var(--border);
  padding: 2rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
  background: var(--surface-alt);
  border-style: solid;
}

.drop-zone.has-file {
  border-color: var(--success);
  border-style: solid;
}

.drop-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0 !important;
}

.drop-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.drop-hint,
.drop-filename {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: none;
}

.drop-filename {
  margin-top: 0.75rem;
  color: var(--success);
}

.drop-filename::before {
  content: '> ';
}

.password-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
}

.registry-password-form {
  margin-top: 0;
}

.password-input {
  width: 120px !important;
  margin-bottom: 0 !important;
  padding: 0.3rem 0.45rem !important;
  font-size: 0.7rem !important;
}

.password-status {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-right: 0.25rem;
}

.password-status::before {
  content: 'PWD:';
  margin-right: 0.25rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-actions .btn-sm {
  text-decoration: none;
  display: inline-block;
}

.viewer-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.viewer-chrome-toggle {
  position: fixed;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 300;
  width: auto;
  padding: 0.35rem 0.6rem;
  font-size: 0.65rem;
  opacity: 0.92;
}

.viewer-chrome-toggle:hover {
  opacity: 1;
}

.viewer-body.viewer-chrome-collapsed .viewer-chrome-panel,
.viewer-body.viewer-chrome-collapsed .pdf-toolbar,
.viewer-body.viewer-chrome-collapsed .pdf-status,
.viewer-body.viewer-chrome-collapsed .html-status {
  display: none;
}

.viewer-body.viewer-chrome-collapsed .viewer-container {
  flex: 1;
}

.viewer-body.viewer-chrome-collapsed .pdf-viewer-shell,
.viewer-body.viewer-chrome-collapsed .html-viewer-shell {
  height: 100%;
}

.viewer-body.viewer-chrome-collapsed .pdf-pages {
  padding-top: 2.25rem;
}

.viewer-body.viewer-chrome-collapsed .html-stage {
  padding-top: 2.25rem;
}

.presenter-dock {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 280;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  background: var(--surface, #0c1130);
  border: 1px solid var(--border, #fff);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.presenter-dock[hidden] {
  display: none;
}

.presenter-dock-label {
  font-size: 0.62rem;
  color: var(--muted, #8fa3c8);
  min-width: 4.5rem;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: normal;
}

.presenter-dock-btn {
  width: auto;
  padding: 0.35rem 0.55rem;
  font-size: 0.65rem;
}

.presenter-dock-pdf .presenter-dock-nav,
.presenter-dock-pdf .presenter-dock-label {
  display: none;
}

.viewer-container:fullscreen {
  background: #000;
}

.viewer-container:fullscreen .pdf-viewer-shell,
.viewer-container:fullscreen .html-viewer-shell {
  height: 100%;
}

.viewer-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  white-space: nowrap;
  text-transform: uppercase;
}

.viewer-back:hover {
  color: var(--text);
}

.viewer-header-inner h1 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-header-inner h1::before {
  content: none;
}

/* DOS chrome */
.dos-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.65rem;
  color: var(--muted);
  gap: 1rem;
  flex-wrap: wrap;
}

.dos-prompt {
  color: var(--text);
  text-transform: none;
  letter-spacing: 0.02em;
}

.dos-prompt::after {
  content: '_';
  animation: blink 1s step-end infinite;
}

.dos-hint {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Site brand footer (landing / login / admin) */
.site-brand-footer {
  margin-top: auto;
  padding: 2rem 1.25rem 2.25rem;
  text-align: center;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-brand-disclaimer {
  margin: 0 auto 1rem;
  max-width: 52rem;
  font-size: 0.72rem;
  line-height: 1.55;
  font-style: italic;
  color: #5c5c5c;
}

.site-brand-privacy {
  margin: 0 auto 1.75rem;
  max-width: 52rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #5c5c5c;
}

.site-brand-divider {
  height: 1px;
  max-width: 100%;
  margin: 0 auto 1.75rem;
  background: rgba(255, 255, 255, 0.12);
}

.site-brand-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  opacity: 0.92;
}

.site-brand-copyright {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #8899aa;
}

body.centered .site-brand-footer {
  padding: 1.5rem 1rem 1.75rem;
}

body.centered .site-brand-disclaimer {
  font-size: 0.65rem;
  margin-bottom: 0.75rem;
}

body.centered .site-brand-privacy {
  font-size: 0.65rem;
  margin-bottom: 1.25rem;
}

@keyframes blink {
  50% { opacity: 0; }
}

.dos-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dos-section-label {
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.dos-section-label::before {
  content: '── ';
}

.dos-section-label::after {
  content: ' ──';
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-panel {
  padding: 1.5rem;
}

.kiosk-notice {
  font-size: 0.7rem;
  color: var(--success);
  border: 1px solid var(--success);
  padding: 0.5rem 0.65rem;
  margin-bottom: 1rem;
  text-transform: none;
  letter-spacing: normal;
}

.login-panel h1::before {
  content: 'LOGIN> ';
}

.hand-tuning-intro {
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.75rem;
}

.hand-tuning-status {
  font-size: 0.7rem;
  color: var(--success);
  margin-bottom: 1rem;
  text-transform: none;
  letter-spacing: normal;
}

.hand-tuning-status.error {
  color: var(--danger, #ff6b6b);
}

.hand-tuning-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hand-tuning-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hand-tuning-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hand-tuning-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hand-tuning-controls input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent, #7dffb3);
}

.hand-tuning-number {
  width: 5rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.25rem 0.35rem;
}

.hand-tuning-hint {
  font-size: 0.65rem;
  color: var(--muted, #8fa3c8);
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.hand-tuning-bools {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.hand-tuning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hand-tuning-actions .btn {
  width: auto;
}

.hand-tuning-card.hand-tuning-collapsed .hand-tuning-body {
  display: none;
}

.hand-tuning-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hand-tuning-header h2 {
  margin: 0;
}

.hand-tuning-header .btn {
  width: auto;
}

.hand-tuning-subhead {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: var(--muted, #8fa3c8);
}

.hand-tuning-enables {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hand-enable-label {
  font-size: 0.72rem;
}

.hand-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.hand-toggle-label {
  flex: 1;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
}

.hand-gesture-toggle {
  width: auto;
  min-width: 4.5rem;
  flex-shrink: 0;
  padding: 0.35rem 0.6rem;
  font-size: 0.65rem;
}

.hand-gesture-toggle.active {
  background: var(--success);
  border-color: var(--success);
  color: var(--bg);
}

.hand-preview-wrap {
  margin-bottom: 1rem;
}

.hand-preview-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  background: #000;
  border: 1px solid var(--border, #fff);
  overflow: hidden;
}

.hand-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.hand-preview-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hand-preview-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.6rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.hand-preview-mode {
  color: var(--accent, #7dffb3);
}

.hand-preview-command {
  color: #fff;
}

.hand-preview-command.flash {
  color: var(--warning, #ffd166);
}

.hand-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hand-preview-actions .btn {
  width: auto;
}

@media (max-width: 640px) {
  .dos-frame {
    margin: 0;
    border-left: none;
    border-right: none;
  }

  .landing-file-panels {
    grid-template-columns: 1fr;
  }

  .presentation-grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .presentation-grid-cols-2 .presentation-card-solo {
    width: 100%;
    justify-self: stretch;
  }
}
