/* EDIT.OR.FX Cloud Storage — Stylesheet */
:root {
  --bg: #000000;
  --fg: #ffffff;
  --surface: #0e1017;
  --surface-2: #161922;
  --surface-glass: rgba(16, 19, 26, 0.75);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --muted: #9fa6b2;
  --muted-dark: #626875;
  --accent: #ff5c1f;
  --accent-glow: rgba(255, 92, 31, 0.35);
  --good: #38d39f;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", var(--sans);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-card: 0 16px 48px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 32px var(--accent-glow);
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

/* EDIT.OR.FX Signature Canvas Light Waves */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  filter: blur(24px) saturate(1.25);
  transform: scale(1.08);
  pointer-events: none;
}

/* Ambient Background Aura */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(55% 45% at 50% -10%, rgba(255, 92, 31, 0.14), transparent 70%),
    radial-gradient(40% 40% at 85% 100%, rgba(255, 92, 31, 0.08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 60px 60px;
}

/* =========================================================
   1. PASSWORD VAULT GATE VIEW
   ========================================================= */
.gate-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gate-card {
  width: min(440px, 100%);
  padding: 44px 36px 36px;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), var(--shadow-card);
  text-align: center;
  animation: floatIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gate-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 92, 31, 0.12);
  border: 1px solid rgba(255, 92, 31, 0.35);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(255, 92, 31, 0.25);
}

.gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.gate-brand img {
  height: 24px;
  width: auto;
}

.gate-pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--muted);
}

.gate-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gate-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.gate-form {
  display: grid;
  gap: 16px;
}

.gate-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gate-input-wrap input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 31, 0.25);
}

.btn-pw-toggle {
  position: absolute;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: grid;
  place-items: center;
  transition: color 0.15s;
}

.btn-pw-toggle:hover {
  color: var(--fg);
}

.btn-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 0;
  background: var(--fg);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.25s;
}

.btn-unlock:hover {
  opacity: 0.92;
  box-shadow: 0 8px 30px rgba(255, 92, 31, 0.4);
}

.btn-unlock:active {
  transform: scale(0.98);
}

.gate-error {
  margin: 4px 0 0;
  color: #ff6b6b;
  font-size: 13px;
  animation: shake 0.4s ease;
}

.gate-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.gate-back-link {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.15s;
}

.gate-back-link:hover {
  color: var(--fg);
}

/* =========================================================
   2. APP LAYOUT & TOP NAVIGATION
   ========================================================= */
.app-layout {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-logo img {
  height: 24px;
  width: auto;
  display: block;
}

.badge-vault {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  display: inline-block;
}

.header-center {
  flex: 1;
  max-width: 520px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 10px 38px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-bar input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}

.btn-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
}

.btn-home {
  background: rgba(255, 92, 31, 0.12);
  border-color: rgba(255, 92, 31, 0.3);
  color: #ff9166;
}

.btn-home:hover {
  background: rgba(255, 92, 31, 0.22);
}

/* =========================================================
   3. TOOLBAR: BREADCRUMBS & CONTROLS
   ========================================================= */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(14, 16, 23, 0.5);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.crumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.crumb-btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.crumb-btn.active {
  color: var(--fg);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.crumb-sep {
  color: var(--muted-dark);
  font-size: 13px;
  user-select: none;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.select-clean {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.select-clean:focus {
  border-color: var(--accent);
}

.view-toggle {
  display: flex;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.btn-view {
  display: grid;
  place-items: center;
  padding: 6px 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-view.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg);
}

.btn-refresh {
  display: grid;
  place-items: center;
  padding: 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, transform 0.25s;
}

.btn-refresh:hover {
  color: var(--fg);
  transform: rotate(45deg);
}

/* =========================================================
   4. BROWSER BODY & STATES
   ========================================================= */
.browser-body {
  flex: 1;
  padding: 24px 28px 60px;
}

.state-view {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255, 92, 31, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.setup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 92, 31, 0.12), rgba(16, 19, 26, 0.8));
  border: 1px solid rgba(255, 92, 31, 0.35);
}

.setup-banner-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.setup-banner-content {
  flex: 1;
}

.setup-banner-content h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.setup-banner-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.setup-banner-content code {
  color: #ffaa80;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-primary-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 0;
  background: var(--fg);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-primary-small:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================================
   5. GRID VIEW MODE
   ========================================================= */
.file-view.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.file-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.file-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.file-card.is-folder {
  flex-direction: row;
  align-items: center;
  padding: 16px;
  gap: 14px;
}

.folder-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 92, 31, 0.1);
  border: 1px solid rgba(255, 92, 31, 0.25);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.folder-meta {
  flex: 1;
  min-width: 0;
}

.folder-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.folder-sub {
  font-size: 12px;
  color: var(--muted);
}

/* File Thumb / Preview stage in Grid */
.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.file-card:hover .card-thumb-img {
  transform: scale(1.04);
}

.play-badge-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.file-card:hover .play-badge-overlay {
  opacity: 1;
}

.play-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s;
}

.file-card:hover .play-circle {
  transform: scale(1.08);
}

.pill-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.file-type-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.type-video { background: rgba(255, 92, 31, 0.15); color: #ff7e4d; border: 1px solid rgba(255, 92, 31, 0.3); }
.type-audio { background: rgba(142, 68, 255, 0.15); color: #b685ff; border: 1px solid rgba(142, 68, 255, 0.3); }
.type-image { background: rgba(0, 184, 212, 0.15); color: #33d1e8; border: 1px solid rgba(0, 184, 212, 0.3); }
.type-doc { background: rgba(255, 171, 0, 0.15); color: #ffbe33; border: 1px solid rgba(255, 171, 0, 0.3); }
.type-zip { background: rgba(0, 200, 83, 0.15); color: #3be07a; border: 1px solid rgba(0, 200, 83, 0.3); }
.type-other { background: rgba(255, 255, 255, 0.08); color: var(--muted); border: 1px solid var(--line); }

.card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.card-actions-quick {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
}

.file-card:hover .card-actions-quick {
  opacity: 1;
}

.btn-icon-quick {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--line);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-icon-quick:hover {
  background: var(--accent);
  transform: scale(1.08);
}

/* =========================================================
   6. LIST VIEW MODE
   ========================================================= */
.file-view.list-mode {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-glass);
  overflow: hidden;
}

.list-head-row,
.list-item-row {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1.2fr 100px;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.list-head-row {
  background: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.list-item-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s;
}

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

.list-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.list-col-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.list-col-name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.list-col-meta {
  color: var(--muted);
}

.list-col-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* =========================================================
   7. CINEMA VIDEO PLAYER & MODALS
   ========================================================= */
.media-modal,
.guide-modal {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.video-modal-content,
.image-modal-content,
.guide-modal-content {
  position: relative;
  z-index: 10;
  width: min(1080px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalRise 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.guide-modal-content {
  width: min(680px, 94vw);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.badge-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 92, 31, 0.16);
  border: 1px solid rgba(255, 92, 31, 0.3);
  color: var(--accent);
}

.modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-modal-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}

.btn-modal-close:hover {
  color: var(--fg);
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-stage video {
  width: 100%;
  height: 100%;
  outline: none;
}

.image-stage {
  max-height: 70vh;
  overflow: auto;
  display: grid;
  place-items: center;
  background: #000;
  padding: 12px;
}

.image-stage img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--line);
}

.modal-info {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   8. SETUP GUIDE STYLES
   ========================================================= */
.guide-body {
  padding: 24px 28px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}

.guide-lead {
  margin: 0 0 20px;
  color: var(--muted);
}

.guide-section {
  margin-bottom: 24px;
}

.guide-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.guide-steps {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
}

.guide-steps a {
  color: var(--accent);
  text-decoration: underline;
}

.code-block {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  color: #e2e8f0;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  overflow-x: auto;
  line-height: 1.5;
}

/* =========================================================
   9. TOAST NOTIFICATIONS
   ========================================================= */
.toast-shelf {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(22, 25, 34, 0.95);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast.success { border-color: rgba(56, 211, 159, 0.4); }
.toast.error { border-color: rgba(255, 107, 107, 0.4); }

/* Keyframe Animations */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalRise {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive Rules */
@media (max-width: 768px) {
  .app-header { padding: 12px 16px; }
  .header-center { display: none; }
  .toolbar { padding: 12px 16px; }
  .browser-body { padding: 16px; }
  .list-head-row { display: none; }
  .list-item-row { grid-template-columns: 1fr auto; gap: 8px; }
  .list-col-meta { display: none; }
}
