:root {
  --bg-deep: #090d16;
  --bg-surface: #111827;
  --bg-elevated: #1a2234;
  --bg-glass: rgba(17, 24, 39, 0.86);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.16);
  --amber: #f59e0b;
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.16);
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.18), transparent 40%),
    radial-gradient(circle at 88% 15%, rgba(16, 185, 129, 0.14), transparent 38%),
    var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
  font-size: 0.85em;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.landing-header {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.limits-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Landing */
.landing-view {
  max-width: 1040px;
  width: 100%;
  margin: 12px auto 48px;
  padding: 0 24px;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.hero .accent {
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #93c5fd;
  margin-bottom: 12px;
}

.badge-green {
  background: var(--green-soft);
  color: #6ee7b7;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.card-desc {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="search"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(9, 13, 22, 0.7);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-row-toggles {
  margin-bottom: 14px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.optional-passcode {
  margin-bottom: 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.optional-passcode summary {
  cursor: pointer;
  user-select: none;
}

/* OTP 6-digit boxes */
.otp-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 6px 0 22px;
}

.otp-box {
  width: 44px !important;
  height: 54px;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.5rem !important;
  font-weight: 700;
  padding: 0 !important;
  border-radius: 12px !important;
}

.otp-sep {
  color: var(--text-muted);
  font-weight: 600;
}

.inline-error {
  margin: 12px 0 0;
  color: #fca5a5;
  font-size: 0.88rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-lg {
  padding: 13px 18px;
  font-size: 0.98rem;
  margin-top: auto;
}

.btn-sm {
  padding: 8px 13px;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--green);
  color: #052e22;
}

.btn-secondary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  background: var(--red-soft);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Workspace Finder Window */
.workspace-view {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.finder-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: calc(100vh - 28px);
}

.finder-titlebar {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.titlebar-left, .titlebar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.traffic-dots {
  display: flex;
  gap: 6px;
  margin-right: 4px;
}

.tdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tdot.red { background: #ff5f56; }
.tdot.yellow { background: #ffbd2e; }
.tdot.green { background: #27c93f; }

.folder-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.space-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.role-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #93c5fd;
}

.code-pill-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--text);
  padding: 5px 11px;
  border-radius: 10px;
  cursor: pointer;
}

.code-pill:hover {
  background: rgba(59, 130, 246, 0.24);
}

.code-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.06em;
}

.code-digits {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.copy-hint {
  font-size: 0.72rem;
  color: #93c5fd;
}

.peers-pill, .ttl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.mini-action {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #93c5fd;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.quota-wrap {
  min-width: 150px;
}

.quota-labels {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-align: right;
}

.quota-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.25s ease;
}

/* Toolbar */
.finder-toolbar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.015);
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-box input {
  width: 190px;
  padding: 7px 11px;
  font-size: 0.84rem;
  border-radius: 9px;
}

.view-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

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

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

.chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.chip-btn.is-locked {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

.chip-danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.chip-danger:hover {
  background: var(--red-soft);
}

.selection-bar {
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.12);
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}

.selection-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Canvas */
.finder-canvas {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  position: relative;
}

.section-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.transfers-section {
  margin-bottom: 20px;
}

.transfers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.transfer-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
}

.transfer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.transfer-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 6px;
}

.transfer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #34d399);
  transition: width 0.15s linear;
}

.transfer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-drop-ring {
  max-width: 480px;
  padding: 40px 30px;
  border: 2px dashed var(--border-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.empty-drop-ring h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.empty-drop-ring p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.empty-code-callout {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bfdbfe;
  font-size: 0.9rem;
}

/* Files Grid & List */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.12s ease, border-color 0.15s, background 0.15s;
}

.file-card:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(255, 255, 255, 0.055);
}

.file-card.selected {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
}

.file-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

.file-thumb {
  height: 112px;
  border-radius: 10px;
  background: rgba(9, 13, 22, 0.6);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-glyph {
  font-size: 2.5rem;
}

.file-info {
  min-width: 0;
}

.file-name {
  font-weight: 600;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-rel {
  font-size: 0.72rem;
  color: #93c5fd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.file-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.file-actions {
  display: flex;
  gap: 6px;
}

.file-actions .btn {
  flex: 1;
}

/* List mode override */
.files-list .file-card {
  flex-direction: row;
  align-items: center;
  padding: 9px 12px;
  gap: 12px;
}

.files-list .file-check {
  position: static;
}

.files-list .file-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
}

.files-list .file-glyph {
  font-size: 1.35rem;
}

.files-list .file-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.files-list .file-name {
  flex: 1;
}

.files-list .file-actions {
  flex-shrink: 0;
}

.finder-statusbar {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
  gap: 8px;
}

/* Drop Overlay */
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.drop-overlay-box {
  border: 2px dashed #60a5fa;
  border-radius: 24px;
  padding: 48px 56px;
  text-align: center;
  background: rgba(59, 130, 246, 0.1);
}

.drop-overlay-icon {
  font-size: 3.2rem;
  margin-bottom: 10px;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

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

.modal-card {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-sm { max-width: 380px; }
.modal-lg { max-width: 920px; }

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1rem;
}

.preview-title-wrap {
  min-width: 0;
}

.preview-title-wrap h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
}

.qr-body {
  padding: 24px;
  text-align: center;
}

.qr-svg-wrap {
  display: inline-block;
  background: white;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.qr-svg-wrap svg {
  width: 190px;
  height: 190px;
  display: block;
}

.qr-code-text {
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.preview-body {
  padding: 18px;
  overflow: auto;
  display: grid;
  place-items: center;
  min-height: 260px;
  background: #070a11;
}

.preview-body img,
.preview-body video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
}

.preview-body audio {
  width: 100%;
  max-width: 520px;
}

.preview-body iframe {
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 8px;
  background: white;
}

.preview-text {
  width: 100%;
  max-height: 70vh;
  overflow: auto;
  margin: 0;
  padding: 16px;
  background: #0d1320;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Live Bidirectional Notes Panel */
.notes-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notes-toggle-btn.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.45);
  color: #bfdbfe;
}

.unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.notes-panel {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 13, 22, 0.45);
}

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

.note-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-card.is-mine {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
}

.note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.note-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.note-dot.host { background: #60a5fa; }
.note-dot.guest { background: #34d399; }

.note-title {
  font-size: 0.84rem;
  font-weight: 700;
}

.note-role-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #93c5fd;
}

.note-role-pill.readonly {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.note-textarea {
  width: 100%;
  min-height: 118px;
  max-height: 320px;
  resize: vertical;
  padding: 10px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.85);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.48;
  outline: none;
  tab-size: 2;
}

.note-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.note-textarea[readonly] {
  color: #cbd5e1;
  background: rgba(7, 10, 18, 0.55);
  cursor: default;
}

.note-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.18s ease-out;
}

.toast.error { border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.toast.success { border-color: rgba(16, 185, 129, 0.5); color: #a7f3d0; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .otp-box {
    width: 38px !important;
    height: 48px;
    font-size: 1.25rem !important;
  }
  .workspace-view {
    padding: 0;
  }
  .finder-window {
    border-radius: 0;
    min-height: 100vh;
  }
  .search-box input {
    width: 140px;
  }
}
