:root {
  color-scheme: light;
  --bg: #f2efe8;
  --bg-2: #e3ecf4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #1d2630;
  --muted: #5f6b76;
  --line: rgba(29, 38, 48, 0.1);
  --accent: #1f6feb;
  --accent-2: #0f5132;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 111, 235, 0.18), transparent 34%),
    radial-gradient(circle at right bottom, rgba(15, 81, 50, 0.15), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent 65%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-row,
.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
}

label span,
.hint,
.muted,
.status-pill {
  color: var(--muted);
  font-size: 0.92rem;
}

.muted {
  font-weight: 500;
  margin-bottom: 4px;
}

.layout {
  margin-top: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  font: inherit;
}

input[type="text"],
input[type="password"] {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1rem;
}

input[type="file"] {
  cursor: pointer;
}

button,
.action-button {
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease, color 160ms ease;
}

button:hover,
.action-button:hover {
  transform: translateY(-1px);
}

button:disabled,
.action-button.is-disabled,
input:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.action-button.is-disabled {
  pointer-events: none;
}

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

.secondary {
  background: #17212b;
  color: #fff;
}

.ghost {
  background: rgba(31, 111, 235, 0.12);
  color: var(--accent);
}

.status-pill {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(15, 81, 50, 0.08);
  color: var(--accent-2);
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-top {
  align-items: flex-start;
  margin-bottom: 24px;
}

.dashboard-top > div:first-child {
  flex: 1;
}

.timer-box {
  text-align: right;
  flex-shrink: 0;
}

.timer-box strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
}



.actions {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.action-button,
.file-drop {
  width: 100%;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(31, 111, 235, 0.25);
  border-radius: 16px;
  padding: 18px 16px;
  background: rgba(31, 111, 235, 0.04);
  cursor: pointer;
  transition: all 160ms ease;
}

.file-drop:hover {
  border-color: rgba(31, 111, 235, 0.45);
  background: rgba(31, 111, 235, 0.08);
}

.file-drop span {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.file-drop input[type="file"] {
  display: none;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  padding: 26px;
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  font-weight: 600;
}

.is-hidden {
  display: none;
}

.hint {
  margin-top: 16px;
  line-height: 1.5;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1100px);
    padding-top: 14px;
  }

  .hero-card,
  .panel {
    padding: 18px;
  }

  .brand-row,
  .dashboard-top {
    flex-direction: column;
  }

  .status-pill {
    align-self: flex-start;
  }

  .timer-box {
    width: 100%;
    text-align: left;
  }
}