:root {
  color-scheme: light;
  --brand: #0b6b67;
  --brand-dark: #07514e;
  --surface: #ffffff;
  --soft: #eef7f5;
  --border: #cddfda;
  --text: #12312f;
  --muted: #5d7773;
  --danger: #b42318;
  --warning: #92400e;
  --success: #166534;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7fbfa 0%, #eef7f5 100%);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.app-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--brand);
  font-size: 24px;
  line-height: 1.1;
}

h2 {
  color: var(--brand);
  font-size: 18px;
  margin-bottom: 10px;
}

.hero p,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.card,
.status-card,
.message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(11, 107, 103, 0.08);
  margin-bottom: 12px;
  padding: 16px;
}

.tab-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
}

.tab-btn {
  background: var(--soft);
  border-color: var(--border);
  color: var(--brand-dark);
}

.tab-btn.active {
  background: var(--brand);
  color: #fff;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  box-shadow: none;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
}

.dot.online {
  background: var(--success);
}

.dot.offline {
  background: var(--danger);
}

label {
  display: grid;
  gap: 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  padding: 0 12px;
}

button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  padding: 0 16px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.primary {
  width: 100%;
  background: var(--brand);
  color: #fff;
  margin-top: 14px;
}

.secondary {
  background: var(--soft);
  border-color: var(--border);
  color: var(--brand-dark);
}

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

.choice-block {
  background: #f8fbfa;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

.question {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.radio-row {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px 1fr;
  margin: 10px 0;
}

.radio-row input {
  min-height: 18px;
  margin-top: 2px;
  width: 18px;
}

.radio-row strong {
  display: block;
  color: var(--brand-dark);
  font-size: 13px;
}

.radio-row small {
  color: var(--muted);
  display: block;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 2px;
}

.queue-list {
  display: grid;
  gap: 8px;
}

.queue-item {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px;
}

.message {
  border-color: #bfe4d2;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.message.error {
  border-color: #f3b3ad;
  color: var(--danger);
}

.hidden {
  display: none !important;
}
