:root {
  --charcoal: #373d42;
  --petroleum: #083e48;
  --aqua: #28a1ad;
  --white: #ffffff;
  --sand: #cfdfdf;
  --warm: #c9852a;
  --bg: #eef4f5;
  --surface: #ffffff;
  --surface-soft: #f6fbfc;
  --text: #1f2a30;
  --muted: #5a6971;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 26px rgba(8, 62, 72, 0.16);
  --shadow-sm: 0 6px 14px rgba(8, 62, 72, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Verdana", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(120% 90% at 0% 0%, #d8e9eb 0%, rgba(216, 233, 235, 0) 65%),
    linear-gradient(180deg, #e8f0f2 0%, var(--bg) 100%);
  min-height: 100dvh;
}

.app-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.topbar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--petroleum) 0%, #0f5562 70%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -32deg,
    rgba(40, 161, 173, 0.16) 0,
    rgba(40, 161, 173, 0.16) 14px,
    rgba(40, 161, 173, 0.04) 14px,
    rgba(40, 161, 173, 0.04) 28px
  );
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrap {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy h1 {
  font-size: 1.12rem;
  margin: 0;
  letter-spacing: 0.2px;
}

.brand-copy p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #d9ecef;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--charcoal);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.input,
.select,
.button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  padding: 0 14px;
}

.input,
.select {
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(8, 62, 72, 0.14);
  color: var(--text);
  margin-bottom: 10px;
}

.button {
  background: var(--petroleum);
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.button:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}

.button.secondary {
  background: #d6e7ea;
  color: var(--petroleum);
}

.button.alt {
  background: var(--aqua);
  color: #04323b;
}

.button.ok {
  background: #0a666d;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.mini-button {
  min-height: 34px;
  min-width: 96px;
  border-radius: var(--radius-md);
  border: 0;
  background: #d6e7ea;
  color: var(--petroleum);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 10px;
}

.grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.slot,
.test-item,
.dashboard-block {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(8, 62, 72, 0.09);
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.slot-title,
.test-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}

.status {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.file-name {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(8, 62, 72, 0.14);
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-button:disabled {
  opacity: 0.6;
}
.upload-status {
  margin-top: -4px;
  margin-bottom: 10px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5d7077;
  background: #e7eff1;
}

.upload-status.ok {
  color: #0b5f2d;
  background: #dff4e6;
}
.timer {
  background: #dff3f5;
  color: var(--petroleum);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  font-weight: 700;
  margin: 8px 0 10px;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 8px 0;
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .app-shell {
    padding: 20px;
  }

  .brand-copy h1 {
    font-size: 1.28rem;
  }

  .brand-logo-wrap {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }
}




