:root {
  color-scheme: light;
  --bg: #eef1ed;
  --panel: #ffffff;
  --ink: #132018;
  --muted: #657069;
  --line: #d8ded8;
  --accent: #117864;
  --accent-dark: #0b5648;
  --danger: #b3261e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8f4 0%, var(--bg) 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

input, button, select {
  font: inherit;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfa;
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfa;
}

button, .ghost-button {
  min-height: 42px;
  border-radius: 8px;
  border: 0;
  padding: 0 14px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.primary-button:hover {
  background: var(--accent-dark);
}

.ghost-button {
  color: var(--accent-dark);
  border: 1px solid var(--line);
  background: #fff;
}

.danger-button {
  color: var(--danger);
  border: 1px solid #f0cbc8;
  background: #fff6f5;
}

.download-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  background: #fbfcfa;
  font-weight: 750;
  text-decoration: none;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
}

.segmented input {
  width: auto;
  min-height: auto;
  margin-right: 8px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-panel, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(19, 32, 24, 0.08);
}

.login-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
}

.login-panel h1, .topbar h1, .panel h2 {
  margin: 0;
}

.login-panel p, .topbar p, .empty {
  margin: 0;
  color: var(--muted);
}

.alert {
  color: var(--danger);
  background: #fff6f5;
  border: 1px solid #f0cbc8;
  border-radius: 8px;
  padding: 10px 12px;
}

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

.radio-shell {
  width: min(680px, calc(100% - 24px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 32px;
}

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

.workspace, .lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lists {
  margin-top: 14px;
}

.panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.talk-panel {
  display: grid;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(19, 32, 24, 0.08);
}

.talk-button {
  width: min(280px, 78vw);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  color: #fff;
  background: #b23a28;
  box-shadow: 0 18px 42px rgba(178, 58, 40, 0.26);
  font-size: 1.25rem;
  letter-spacing: 0;
  touch-action: none;
}

.talk-button.recording {
  background: #7b2017;
  transform: scale(0.98);
}

.status {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: #fbfcfa;
}

.feed {
  display: grid;
  gap: 8px;
}

.feed-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfa;
}

.check-list {
  display: grid;
  gap: 8px;
  min-height: 44px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
}

.check-list input {
  width: auto;
  min-height: auto;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.row div {
  min-width: 0;
}

.row strong, .row span {
  display: block;
}

.row span {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .workspace, .lists {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }
}
