* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #00ff41;
  font-family: 'Consolas', 'Courier New', monospace;
  overflow-x: hidden;
}

#matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 60px auto;
  padding: 30px;
  background: rgba(0, 10, 0, 0.75);
  border: 1px solid #00ff41;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.35);
}

h1 {
  text-align: center;
  letter-spacing: 4px;
  text-shadow: 0 0 10px #00ff41;
  margin-bottom: 5px;
}

.subtitle {
  text-align: center;
  color: #7dffa8;
  margin-bottom: 30px;
}

.subtitle span {
  color: #00ff41;
  font-weight: bold;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.step {
  border: 1px dashed rgba(0, 255, 65, 0.4);
  border-radius: 6px;
  padding: 15px;
}

.step h2 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

button {
  background: transparent;
  border: 1px solid #00ff41;
  color: #00ff41;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  border-radius: 4px;
  transition: all 0.2s ease;
}

button:hover:not(:disabled) {
  background: #00ff41;
  color: #000;
  box-shadow: 0 0 15px #00ff41;
}

button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

input[type="file"] {
  color: #00ff41;
  margin-right: 10px;
}

input[type="file"]:disabled {
  opacity: 0.35;
}

input[type="text"] {
  background: transparent;
  border: 1px solid #00ff41;
  color: #00ff41;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: inherit;
  margin-right: 10px;
}

input[type="text"]::placeholder {
  color: rgba(0, 255, 65, 0.5);
}

input[type="text"]:disabled {
  opacity: 0.35;
}

.status {
  margin-left: 12px;
  font-size: 13px;
  color: #7dffa8;
}

.status.ok {
  color: #00ff41;
  font-weight: bold;
}

.status.error {
  color: #ff4444;
  font-weight: bold;
}

.server-info {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(0, 255, 65, 0.4);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
}

.log {
  list-style: none;
  margin-top: 25px;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid rgba(0, 255, 65, 0.3);
  font-size: 12px;
}

.log li {
  padding: 3px 0;
  opacity: 0.9;
}

.report-link {
  color: #00ff41;
  font-weight: bold;
  text-decoration: underline;
}

.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}

.progress-bar-track {
  flex: 1;
  height: 14px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid #00ff41;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #00ff41;
  box-shadow: 0 0 10px #00ff41;
  transition: width 0.15s ease;
}

.progress-label {
  min-width: 42px;
  text-align: right;
  color: #00ff41;
  font-weight: bold;
}

/* Institutional receiving console theme. */
:root { --ink: #0d2447; --muted: #5f7089; --line: #d9e4f1; --blue: #0f5fc8; --blue-dark: #0c4fa6; --blue-soft: #edf5ff; --green: #19784a; --red: #bf3a3a; --panel: #ffffff; --bg: #f4f8fd; --shadow: 0 18px 46px rgba(13, 36, 71, 0.08); }
html, body { min-height: 100%; background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%); color: var(--ink); font-family: 'Segoe UI', Arial, sans-serif; }
#matrix-bg, .container { display: none; }
.topbar { min-height: 84px; padding: 0 5vw; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 0 rgba(13, 36, 71, 0.04); }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; font: bold 11px 'Segoe UI', Arial, sans-serif; letter-spacing: 1px; border-radius: 10px; box-shadow: 0 10px 20px rgba(15, 95, 200, 0.24); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 15px; letter-spacing: 0.85px; text-transform: uppercase; color: var(--ink); }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; }
.environment { color: var(--muted); font: 11px 'Segoe UI', Arial, sans-serif; text-transform: uppercase; letter-spacing: 1.1px; }
.shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 62px 0 80px; }
.page-heading { max-width: 780px; margin-bottom: 40px; }
.eyebrow, .step-label { margin: 0 0 9px; color: var(--blue); font: bold 11px 'Segoe UI', Arial, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
.page-heading h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -0.05em; color: var(--ink); font-weight: 700; }
.page-heading > p:last-child, .step-description { color: var(--muted); font-size: 16px; line-height: 1.6; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.overview-card { min-height: 132px; padding: 24px 22px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); border-radius: 14px; }
.overview-card strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: 20px; line-height: 1.3; }
.overview-card span { display: block; color: var(--muted); font: 12px 'Segoe UI', Arial, sans-serif; line-height: 1.6; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .85fr); gap: 24px; align-items: start; }
.workflow, .activity-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 30px 30px 28px; border: 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-number { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #adc2e4; border-radius: 50%; color: var(--blue); font: bold 14px 'Segoe UI', Arial, sans-serif; background: var(--blue-soft); }
.step-content { min-width: 0; }
.step h2, .activity-panel h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; color: var(--ink); }
.step-description { margin-bottom: 20px; }
.step-action { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
button { border: 1px solid var(--blue); background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; padding: 11px 18px; border-radius: 10px; font: 600 13px 'Segoe UI', Arial, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 10px 20px rgba(15, 95, 200, 0.18); }
button:hover:not(:disabled) { background: linear-gradient(180deg, var(--blue-dark) 0%, #0a4398 100%); color: #fff; box-shadow: 0 12px 22px rgba(15, 95, 200, 0.22); }
button:disabled { opacity: .5; box-shadow: none; }
.status { margin: 0; color: var(--muted); font: 13px 'Segoe UI', Arial, sans-serif; }
.status.ok { color: var(--green); }
.status.error { color: var(--red); }
.server-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 22px; padding: 18px; border: 0; border-left: 3px solid var(--blue); background: var(--blue-soft); color: #40506a; font: 12px 'Segoe UI', Arial, sans-serif; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(15,95,200,0.04); }
.server-info strong { color: var(--ink); }
.field-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-bottom: 20px; }
.file-field, .text-field { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font: 600 13px 'Segoe UI', Arial, sans-serif; }
.file-field > span, .text-field > span { display: flex; gap: 6px; }
.text-field em { color: var(--muted); font-style: normal; font-weight: normal; }
input[type="file"], input[type="text"] { width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid #c2d0e6; border-radius: 10px; background: #fff; color: var(--ink); font: 14px 'Segoe UI', Arial, sans-serif; box-shadow: inset 0 1px 2px rgba(13, 36, 71, 0.02); }
input[type="file"] { padding: 8px 10px; }
input:disabled { background: #f4f7fb; color: #7d8aa1; }
.file-field small { color: var(--muted); font: 12px 'Segoe UI', Arial, sans-serif; }
.progress-wrapper { margin-top: 24px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font: 12px 'Segoe UI', Arial, sans-serif; }
.progress-meta span:last-child { color: var(--blue); font-weight: 700; }
.progress-bar-track { height: 10px; border: 0; border-radius: 999px; background: #e3ebf7; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%); box-shadow: none; border-radius: 999px; }
.activity-panel { padding: 28px 26px; }
.activity-header { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.activity-header h2 { margin-bottom: 0; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--muted); font: 11px 'Segoe UI', Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: #2f9e6d; box-shadow: 0 0 0 4px rgba(47,158,109,0.15); }
.meta-panel { margin-top: 18px; padding: 14px 14px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--blue-soft); }
.meta-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid rgba(15, 95, 200, 0.08); }
.meta-row:last-child { border-bottom: 0; }
.meta-row span { color: var(--muted); font: 600 11px 'Segoe UI', Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
.meta-row strong { color: var(--ink); font: 12px 'Segoe UI', Arial, sans-serif; line-height: 1.5; word-break: break-word; }
.log { min-height: 180px; max-height: 360px; margin: 0; padding: 0; border: 0; font-size: 12px; }
.log li { padding: 15px 0; border-bottom: 1px solid var(--line); color: #40506a; font: 12px 'Segoe UI', Arial, sans-serif; line-height: 1.6; }
.log li:last-child { border-bottom: 0; }
.log .empty-log { color: var(--muted); font-style: italic; }
.report-link { color: var(--blue); }
.reports-panel { margin-top: 26px; padding: 26px; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); }
.reports-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.reports-heading h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.reports-heading > span { color: var(--muted); font: 12px 'Segoe UI', Arial, sans-serif; }
.reports-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.reports-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.reports-list a { color: var(--blue); font: 700 13px 'Segoe UI', Arial, sans-serif; text-decoration: none; overflow-wrap: anywhere; }
.reports-list a:hover { text-decoration: underline; }
.report-meta { flex: none; color: var(--muted); font: 11px 'Segoe UI', Arial, sans-serif; text-align: right; line-height: 1.5; }
.report-empty { display: block !important; grid-column: 1 / -1; color: var(--muted); font: 13px 'Segoe UI', Arial, sans-serif; }
@media (max-width: 800px) { .topbar { padding: 0 24px; }.shell { width: min(100% - 32px, 640px); padding-top: 40px; }.overview-grid, .workspace { grid-template-columns: 1fr; }.reports-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .environment { display: none; }.step { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; }.field-grid, .server-info { grid-template-columns: 1fr; }.shell { width: min(100% - 24px, 640px); }.activity-panel { padding: 22px 20px; } }
