:root {
  --background: #f5f7f8;
  --surface: #ffffff;
  --ink: #17211f;
  --muted: #66736f;
  --line: #d8e0dd;
  --accent: #176b5b;
  --accent-dark: #0f4c41;
  --accent-soft: #d9f4eb;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  background:
    radial-gradient(circle at 85% 10%, rgba(23, 107, 91, 0.09), transparent 28rem),
    var(--background);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

.page-shell {
  margin: 0 auto;
  max-width: 1060px;
  min-height: 100vh;
  padding: clamp(2rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) 2rem;
}

.page-header {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 0.8rem;
  color: #fff;
  display: flex;
  flex: 0 0 4rem;
  font-size: 1.2rem;
  font-weight: 850;
  height: 4rem;
  justify-content: center;
  letter-spacing: -0.04em;
  box-shadow: 0 12px 30px rgba(23, 33, 31, 0.15);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.intro { color: var(--muted); margin: 0.6rem 0 0; }

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

.workspace-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(23, 33, 31, 0.05);
  color: inherit;
  display: grid;
  gap: 1.5rem;
  min-height: 20rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.workspace-card:hover {
  border-color: rgba(23, 107, 91, 0.45);
  box-shadow: 0 18px 42px rgba(23, 33, 31, 0.12);
  color: inherit;
  transform: translateY(-3px);
}

.workspace-card:focus-visible {
  outline: 3px solid #65bba8;
  outline-offset: 4px;
}

.icon-wrap {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 0.75rem;
  color: var(--accent-dark);
  display: flex;
  height: 3.5rem;
  justify-content: center;
  width: 3.5rem;
}

.icon-wrap svg {
  fill: none;
  height: 1.75rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.75rem;
}

.card-copy { align-self: end; display: grid; gap: 0.5rem; }
.card-kicker { color: var(--accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.card-copy strong { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.035em; }
.card-copy > span:last-child { color: var(--muted); line-height: 1.55; max-width: 28rem; }
.open-action { align-items: center; color: var(--accent); display: flex; font-weight: 750; gap: 0.5rem; }
.open-action span { font-size: 1.25rem; transition: transform 150ms ease; }
.workspace-card:hover .open-action span { transform: translateX(0.25rem); }

.config-error {
  background: #feeceb;
  border: 1px solid #f4c7c3;
  border-radius: 0.65rem;
  color: #8f1d14;
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
}

footer { color: var(--muted); font-size: 0.8rem; margin-top: 2rem; text-align: center; }

@media (max-width: 680px) {
  .page-shell { padding-top: 2rem; }
  .brand-mark { flex-basis: 3.25rem; height: 3.25rem; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-card { gap: 1.2rem; min-height: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-card, .open-action span { transition: none; }
}
