:root {
  --portlan-dark: #014a64;
  --portlan-mid: #1a8aaa;
  --portlan-light: #5cc4d8;
  --portlan-accent: #7ed8e8;
  --portlan-pale: #b8eaf3;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-blur: 16px;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  background: linear-gradient(135deg, #012e40 0%, #014a64 25%, #1a6e8a 50%, #1a8aaa 75%, #5cc4d8 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.auth-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; }
.auth-card { padding: 2.5rem; width: 100%; max-width: 420px; text-align: center; animation: fadeUp 0.5s ease; }
.auth-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.auth-logo { display: block; max-width: 180px; height: auto; margin: 0 auto 1.5rem; }
.auth-subtitle { color: var(--text-secondary); font-size: 0.875rem; }
.spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--portlan-pale); border-radius: 50%; margin: 0 auto 1.25rem; animation: spin 0.8s linear infinite; }
.spinner-sm { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.15); border-top-color: var(--portlan-pale); border-radius: 50%; animation: spin 0.6s linear infinite; }
.error-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(239,68,68,0.15); color: #fca5a5; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(1, 74, 100, 0.12);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem; font-size: 0.875rem; font-weight: 500; font-family: var(--font-sans);
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none; line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--portlan-mid), var(--portlan-light)); color: #ffffff; padding: 0.75rem 1.5rem; border: 1px solid rgba(255,255,255,0.2); }
.btn-primary:hover { box-shadow: 0 4px 20px rgba(26,138,170,0.4); }
.btn-glass { background: rgba(255,255,255,0.1); color: var(--text-primary); border: 1px solid rgba(255,255,255,0.2); }
.btn-glass:hover { background: rgba(255,255,255,0.18); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

.app-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(1,74,100,0.1);
  box-shadow: 0 2px 12px rgba(1,74,100,0.06);
}
.header-left { display: flex; align-items: center; gap: 0.75rem; }
.header-icon { height: 40px; width: auto; }
.header-title h1 { font-size: 1.125rem; font-weight: 700; color: var(--portlan-dark); }
.header-right { display: flex; align-items: center; gap: 1rem; }
.header-right .btn-glass { background: rgba(1,74,100,0.08); color: var(--portlan-dark); border: 1px solid rgba(1,74,100,0.15); }
.header-right .btn-glass:hover { background: rgba(1,74,100,0.14); }
.user-info { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.user-name { font-size: 0.875rem; font-weight: 600; color: var(--portlan-dark); }
.user-email { font-size: 0.75rem; color: var(--portlan-mid); }

.app-main {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem;
}

.toolbar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 1rem; flex-wrap: wrap;
}
.search-bar {
  display: flex; align-items: center; gap: 8px; width: 300px;
  background: rgba(0,30,45,0.7); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 0 12px; height: 36px;
}
.search-icon { flex-shrink: 0; opacity: 0.55; }
.search-input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 0.875rem; height: 100%; }
.search-input::placeholder { color: rgba(255,255,255,0.45); }
.docs-counter { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; margin-left: auto; }

.toggle-label { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-secondary); cursor: pointer; user-select: none; white-space: nowrap; }
.toggle-input { display: none; }
.toggle-switch { position: relative; width: 36px; height: 20px; background: rgba(255,255,255,0.15); border-radius: 10px; flex-shrink: 0; transition: background 0.2s; }
.toggle-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: rgba(255,255,255,0.5); border-radius: 50%; transition: transform 0.2s, background 0.2s; }
.toggle-input:checked + .toggle-switch { background: var(--portlan-mid); }
.toggle-input:checked + .toggle-switch::after { transform: translateX(16px); background: #fff; }

.upload-panel { padding: 1.5rem; margin-bottom: 1.25rem; }
.upload-panel h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.upload-hint { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 1rem; }
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.25); border-radius: 12px; padding: 2rem; text-align: center;
  cursor: pointer; transition: border-color var(--transition), background var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--text-secondary); font-size: 0.9375rem;
}
.upload-zone:hover { border-color: var(--portlan-pale); background: rgba(255,255,255,0.06); }
.upload-zone.drag-over { border-color: var(--portlan-pale); background: rgba(26,138,170,0.1); }
.upload-status { margin-top: 0.75rem; font-size: 0.8125rem; min-height: 1.25rem; }
.upload-status.uploading { color: var(--portlan-pale); animation: pulse 1.5s ease-in-out infinite; }
.upload-status.uploading::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(26,138,170,0.3); border-top-color: var(--portlan-pale); border-radius: 50%; margin-right: 8px; vertical-align: middle; animation: spin 0.8s linear infinite; }
.upload-status.success { color: #34d399; }
.upload-status.error { color: #f87171; }

.staged-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.staged-row { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.staged-file-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-secondary); }
.staged-file-icon { color: var(--portlan-pale); flex-shrink: 0; }
.staged-original-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.staged-file-size { flex-shrink: 0; opacity: 0.7; }
.staged-fields { display: flex; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; }
.staged-field { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; min-width: 140px; }
.staged-field label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); font-weight: 500; }
.staged-field-wide { flex-basis: 100%; }
.staged-input, .staged-select, .staged-textarea {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 6px;
  padding: 0.5rem 0.625rem; color: var(--text-primary); font-size: 0.875rem; font-family: inherit; outline: none;
  transition: border-color var(--transition);
}
.staged-textarea { width: 100%; resize: vertical; min-height: 48px; }
.staged-input:focus, .staged-select:focus, .staged-textarea:focus { border-color: var(--portlan-pale); }
.staged-select option { background: #1a2332; color: #fff; }
.staged-remove { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: 0.5rem; border-radius: 6px; transition: color var(--transition), background var(--transition); display: flex; align-items: center; }
.staged-remove:hover { color: #f87171; background: rgba(248,113,113,0.12); }
.batch-save-btn { margin-bottom: 1.5rem; font-size: 1rem; padding: 0.75rem; }

.docs-grid { width: 100%; }
.docs-empty { padding: 3rem; text-align: center; color: var(--text-tertiary); font-size: 0.9375rem; }

.docs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: rgba(0,30,45,0.85); border-radius: var(--radius); overflow: hidden; }
.docs-table thead th {
  height: 36px; line-height: 36px; padding: 0 12px; text-align: left;
  font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.15); white-space: nowrap;
}
.docs-table tbody tr.doc-data-row { cursor: pointer; transition: background var(--transition); }
.docs-table tbody tr.doc-data-row:hover { background: rgba(92, 196, 216, 0.08); }
.docs-table td { height: 36px; line-height: 36px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(255,255,255,0.04); }

.col-num { width: 36px; text-align: right; color: rgba(255,255,255,0.35); font-size: 0.75rem; padding-right: 10px !important; font-variant-numeric: tabular-nums; }
.col-name { display: flex; align-items: center; gap: 6px; max-width: 100%; }
thead .col-name { display: table-cell; }
.file-icon { flex-shrink: 0; opacity: 0.5; }
.doc-name { overflow: hidden; text-overflow: ellipsis; color: #fff; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.col-class { width: 100px; text-align: center; }
.col-date { width: 100px; text-align: right; color: rgba(255,255,255,0.45); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.col-dl { width: 32px; text-align: center; }
.dl-link { display: inline-flex; align-items: center; color: var(--portlan-pale); opacity: 0.4; transition: opacity var(--transition); }
.dl-link:hover { opacity: 1; }

.row-download-link { display: inline-flex; align-items: center; color: var(--portlan-pale); opacity: 0.5; transition: opacity var(--transition), color var(--transition); }
.row-download-link:hover { opacity: 1; color: #fff; }

.row-expand-icon { flex-shrink: 0; opacity: 0.35; transition: transform 0.2s, opacity 0.2s; color: var(--portlan-pale); }
.row-expanded .row-expand-icon { transform: rotate(180deg); opacity: 0.7; }

.row-file-icon { flex-shrink: 0; opacity: 0.5; color: var(--portlan-pale); }

.row-doc-name { overflow: hidden; text-overflow: ellipsis; color: #fff; font-weight: 500; }

.doc-badge { font-size: 0.675rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 999px; line-height: 16px; display: inline-block; }
.badge-internal { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-public { background: rgba(52,211,153,0.15); color: #34d399; }

.expand-icon { flex-shrink: 0; opacity: 0.35; transition: transform 0.2s, opacity 0.2s; }
.row-expanded .expand-icon { transform: rotate(180deg); opacity: 0.7; }

.preview-row td { padding: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
.preview-container { background: rgba(0,20,32,0.6); border-top: 1px solid rgba(255,255,255,0.06); }
.preview-loading { display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: var(--text-secondary); font-size: 0.8rem; }
.preview-header { display: flex; align-items: center; gap: 10px; padding: 10px 20px 6px; }
.preview-title { font-size: 0.85rem; font-weight: 600; color: #fff; }
.preview-badge { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 1px 8px; border-radius: 999px; background: rgba(26,138,170,0.2); color: var(--portlan-pale); }
.preview-desc { padding: 8px 12px 4px; font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.4; }
.preview-body { padding: 10px 20px 16px; }
.preview-image-wrap { text-align: center; }
.preview-image { max-width: 100%; max-height: 800px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); }
.preview-video { max-width: 100%; border-radius: 6px; }
.preview-iframe { width: 100%; min-height: 500px; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; background: #fff; }
.preview-fallback { padding: 6px 20px 12px; font-size: 0.78rem; }
.preview-fallback a { color: var(--portlan-pale); text-decoration: underline; }
.preview-unsupported { text-align: center; padding: 2rem; color: var(--text-secondary); }
.preview-error { color: #f87171; font-size: 0.85rem; }

.pdf-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pdf-nav { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 4px 12px; color: var(--text-primary); font-size: 0.8rem; cursor: pointer; }
.pdf-nav:disabled { opacity: 0.3; cursor: default; }
.pdf-info { font-size: 0.8rem; color: var(--text-secondary); }
.pdf-canvas-wrap { text-align: center; overflow: auto; max-height: 80vh; }
.pdf-canvas { max-width: 100%; }

.docx-container { background: #fff; border-radius: 6px; padding: 16px; overflow: auto; max-height: 600px; }
.xlsx-container { overflow: auto; max-height: 600px; }
.xlsx-tabs { display: flex; gap: 2px; margin-bottom: 8px; }
.xlsx-tab { padding: 4px 12px; font-size: 0.75rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px 6px 0 0; color: var(--text-secondary); cursor: pointer; }
.xlsx-tab.active { background: rgba(255,255,255,0.2); color: #fff; }
.xlsx-sheet { display: none; background: #fff; border-radius: 6px; padding: 8px; overflow: auto; }
.xlsx-sheet.active { display: block; }
.xlsx-sheet table { border-collapse: collapse; width: 100%; font-size: 0.8rem; color: #333; }
.xlsx-sheet td, .xlsx-sheet th { border: 1px solid #ddd; padding: 4px 8px; }

.welcome-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 60px);
  padding: 2rem 1.5rem;
  text-align: center;
  animation: fadeUp 0.5s ease;
}

.welcome-logo {
  display: block;
  max-width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.welcome-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0.5rem 0 2rem;
  max-width: 440px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  width: 100%;
  max-width: 360px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  border-color: var(--portlan-pale);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(92, 196, 216, 0.15);
}

.login-error {
  font-size: 0.8125rem;
  color: #f87171;
  min-height: 1.25rem;
  text-align: center;
  margin: 0;
}

.login-success {
  color: #34d399;
}

.login-footer {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.link-accent {
  color: var(--portlan-pale);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.link-accent:hover {
  color: #fff;
  text-decoration: underline;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.disclaimer-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  user-select: none;
  margin-top: 0.25rem;
  width: 100%;
  max-width: 360px;
}

.disclaimer-check {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--portlan-mid);
  cursor: pointer;
}

.disclaimer-text {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pin-create-msg {
  font-size: 0.8rem;
  color: #34d399;
  margin: 0 0 12px 0;
  font-weight: 500;
  text-align: center;
}

.register-row {
  display: flex;
  gap: 10px;
}

.form-half {
  flex: 1;
  min-width: 0;
}

select.form-input option {
  background: #1a2a3a;
  color: #fff;
}

.disclaimer-label {
  transition: all 0.4s ease;
  max-height: 200px;
  overflow: hidden;
}

.disclaimer-accepted .disclaimer-text {
  font-weight: 600;
  color: #34d399;
}

.screen-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: 12px;
}

.screen-bulkhead {
  width: 100%;
  height: 28px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 15%, #1e1e1e 50%, #2a2a2a 85%, #333 100%);
  border-radius: 6px 6px 0 0;
  position: relative;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  z-index: 15;
}

.screen-bulkhead::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.screen-bulkhead::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}

.screen-bulkhead-cap {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  height: 10px;
  background: linear-gradient(180deg, rgba(60,60,60,1) 0%, rgba(40,40,40,1) 100%);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -1px 0 rgba(0,0,0,0.3);
}

.screen-bulkhead-cap::before,
.screen-bulkhead-cap::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 6px;
  height: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 1px;
}
.screen-bulkhead-cap::before { left: 8px; }
.screen-bulkhead-cap::after { right: 8px; }

.screen-overlay {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.85) 0px,
      rgba(10, 10, 10, 0.80) 1px,
      rgba(0, 0, 0, 0.85) 2px,
      rgba(5, 5, 5, 0.82) 3px
    );
  transform-origin: top center;
  transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease 1.6s;
  pointer-events: auto;
  border-radius: 0 0 12px 12px;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

.screen-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 2px,
      transparent 8px
    );
  pointer-events: none;
}

.screen-bar {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 30%, #1e1e1e 60%, #333 85%, #2a2a2a 100%);
  border-radius: 0 0 4px 4px;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.screen-bar::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.screen-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.screen-overlay.screen-retracted {
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
}

.screen-overlay.screen-closing {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
  transition: transform 1.8s cubic-bezier(0.55, 0.06, 0.68, 0.19),
              opacity 0.3s ease;
}

.login-form {
  padding-top: 0.5rem;
}

.screen-wrapper .login-form {
  padding: 1.25rem;
  background: rgba(0, 20, 35, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .app-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem; }
  .header-right { width: 100%; justify-content: space-between; }
  .user-info { align-items: flex-start; }
  .search-bar { width: 100%; }
  .app-main { padding: 1rem 1rem 2rem; }
}
