:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --ink: #17201c;
  --muted: #5b6862;
  --line: #d9e0dc;
  --panel: #ffffff;
  --accent: #1f7a5a;
  --accent-dark: #145a42;
  --warn: #b7791f;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 440px);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vw, 88px);
  background: #e7efeb;
  border-right: 1px solid var(--line);
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 28px;
}

.brand-panel h1,
.console h1,
.workspace h2,
.login-card h2 {
  margin: 18px 0 8px;
  letter-spacing: 0;
}

.brand-panel h1 {
  font-size: 44px;
}

.brand-panel p,
.label,
.eyebrow,
.status-row {
  color: var(--muted);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warn);
}

.dot.ok {
  background: var(--accent);
}

.login-card {
  align-self: center;
  margin: 32px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 28, 0.08);
}

.login-card label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.login-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

.login-card input:focus {
  outline: 3px solid rgba(31, 122, 90, 0.18);
  border-color: var(--accent);
}

.login-card button,
.secondary {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.login-card button {
  width: 100%;
  margin-top: 24px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

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

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

.message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff7e6;
  color: #6c4a12;
}

.message.error {
  background: #fff0ed;
  color: var(--error);
}

.console {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

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

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}

.console h1 {
  margin-top: 4px;
  font-size: 34px;
}

.secondary {
  padding: 0 18px;
  background: #dfe8e4;
  color: var(--ink);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.panel,
.workspace {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 20px;
}

.label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
}

.panel strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.workspace {
  margin-top: 12px;
  padding: 24px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.workspace-head h2 {
  margin: 0;
}

.workspace-head span {
  color: var(--accent);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.timeline div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.timeline b,
.timeline span {
  display: block;
}

.timeline b {
  color: var(--accent);
}

.timeline span {
  margin-top: 18px;
  font-weight: 700;
}

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

  .brand-panel {
    min-height: 36vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-panel h1 {
    font-size: 36px;
  }

  .login-card {
    margin: 16px;
  }

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