* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: #0f1419;
  color: #e8eef4;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.shell.login {
  max-width: 420px;
  margin: 12vh auto;
}

.card {
  background: #1b2430;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.muted {
  color: #93a4b8;
}

.error {
  color: #f4b4b4;
  margin: 8px 0;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.login .row {
  flex-direction: column;
}

.primary,
.secondary {
  border: 1px solid #334155;
  background: #1b2430;
  color: #e8eef4;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.primary {
  background: #d7e3cf;
  color: #102016;
  border-color: #d7e3cf;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.app-row {
  padding: 14px 16px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #151c25;
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.app-row h2 {
  margin: 0;
  font-size: 1.05rem;
}

.app-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.app-progress {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #10161e;
}

.app-progress[data-tone="busy"] {
  border-color: #4b6280;
}

.app-progress[data-tone="ok"] {
  border-color: #4d7a5c;
}

.app-progress[data-tone="error"] {
  border-color: #8a4d4d;
}

.progress-heading {
  margin: 0 0 4px;
  font-weight: 600;
}

.progress-message,
.progress-detail,
.progress-elapsed {
  margin: 0;
}

.progress-message {
  margin-bottom: 4px;
}

.progress-detail + .progress-elapsed,
.progress-message + .progress-elapsed {
  margin-top: 4px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  font-weight: 650;
  letter-spacing: 0.04em;
}
