:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #182033;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: #182033;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.78rem 1rem;
}

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

select,
input,
textarea {
  border: 1px solid #cbd3e1;
  border-radius: 8px;
  background: #ffffff;
  color: #182033;
  padding: 0.72rem 0.8rem;
}

textarea {
  min-height: 115px;
  resize: vertical;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(120deg, rgba(24, 32, 51, 0.86), rgba(24, 32, 51, 0.42)),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.login-panel {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: end;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #5b6b86;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-panel .eyebrow {
  color: #b9d9ff;
}

.login-panel h1,
.sidebar h1 {
  margin: 0;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.85;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #182033;
}

.login-form label {
  font-weight: 800;
}

.error {
  color: #b42318;
  margin: 0;
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #5b6b86;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem;
  background: #ffffff;
  border-right: 1px solid #dce2ec;
}

.sidebar h1 {
  font-size: 2.25rem;
  line-height: 1;
}

.sidebar nav {
  display: grid;
  gap: 0.45rem;
}

.sidebar nav a {
  border-radius: 8px;
  color: #344055;
  font-weight: 800;
  padding: 0.78rem 0.85rem;
}

.sidebar nav a:hover {
  background: #eef4ff;
}

.user-badge {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid #dce2ec;
  padding-top: 1rem;
}

.user-badge span {
  font-weight: 800;
}

.user-badge strong {
  color: #5b6b86;
  text-transform: capitalize;
}

.content {
  display: grid;
  gap: 1.2rem;
  padding: 1.4rem;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.topbar h2,
.panel h2,
.tips-panel h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.75rem;
}

.stat {
  display: grid;
  gap: 0.25rem;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem;
}

.stat span {
  color: #5b6b86;
  font-size: 0.82rem;
  font-weight: 800;
}

.stat strong {
  font-size: 1.55rem;
}

.stat.green {
  border-color: #059669;
}

.stat.gold {
  border-color: #d97706;
}

.summary-band,
.map-grid,
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.summary-band article,
.panel,
.tips-panel {
  border: 1px solid #dce2ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.summary-band article span,
.tier span,
.permission-row span {
  color: #5b6b86;
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-band article strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
}

.summary-band p,
.panel-heading p,
.tool-card p,
.tier p,
.timeline p {
  color: #4b5870;
  line-height: 1.5;
}

.summary-band small {
  color: #7c3aed;
  font-weight: 800;
}

.map-column {
  min-height: 420px;
  border: 1px dashed #b9c4d6;
  border-radius: 8px;
  background: #eef2f7;
  padding: 0.9rem;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.column-header h2 {
  margin: 0;
  font-size: 1rem;
}

.column-header span {
  min-width: 2rem;
  border-radius: 999px;
  background: #ffffff;
  color: #5b6b86;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  text-align: center;
}

.tool-stack {
  display: grid;
  gap: 0.75rem;
}

.tool-card {
  border: 1px solid #dce2ec;
  border-left: 5px solid #2563eb;
  border-radius: 8px;
  background: #ffffff;
  cursor: grab;
  padding: 0.9rem;
}

.tool-card.ide {
  border-left-color: #7c3aed;
}

.tool-card.model {
  border-left-color: #059669;
}

.tool-card.repository {
  border-left-color: #d97706;
}

.tool-title {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.tool-title span {
  color: #5b6b86;
  font-size: 0.86rem;
  font-weight: 800;
}

.tool-card ul,
.insight-list,
.roadmap {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: #4b5870;
}

.tips-panel {
  display: grid;
  gap: 0.9rem;
}

.tips-panel div,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tips-panel span,
.tag-cloud span {
  border: 1px solid #dce2ec;
  border-radius: 999px;
  background: #f7fafc;
  color: #344055;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
}

.panel-heading {
  margin-bottom: 1rem;
}

.panel-heading.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.permission-grid {
  display: grid;
  gap: 0.7rem;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(2, minmax(150px, 0.55fr));
  gap: 0.7rem;
  align-items: center;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 0.75rem;
}

.permission-row > div {
  display: grid;
  gap: 0.2rem;
}

.permission-row label {
  display: grid;
  gap: 0.35rem;
  color: #5b6b86;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.workflow-panel {
  display: grid;
  gap: 1rem;
}

.workflow-list {
  display: grid;
  gap: 0.8rem;
}

.workflow-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 0.7fr) minmax(110px, 0.5fr) minmax(220px, 1.4fr) auto;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  padding: 0.85rem;
}

.workflow-meta,
.workflow-row label {
  display: grid;
  gap: 0.35rem;
}

.workflow-meta span,
.workflow-row label {
  color: #5b6b86;
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-row input,
.workflow-row select,
.workflow-row textarea {
  color: #182033;
  font-size: 0.92rem;
  font-weight: 600;
}

.workflow-summary textarea {
  min-height: 82px;
}

.collaboration-panel {
  display: grid;
  gap: 1rem;
}

.collab-presence,
.section-permissions,
.shared-sections {
  display: grid;
  gap: 0.75rem;
}

.collab-presence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collab-presence span,
.section-permissions div {
  border: 1px solid #dce2ec;
  border-radius: 8px;
  background: #f7fafc;
  padding: 0.8rem;
}

.collab-presence strong {
  display: block;
}

.section-permissions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-permissions div {
  display: grid;
  gap: 0.35rem;
}

.section-permissions span,
.shared-section-head span {
  color: #5b6b86;
  font-size: 0.82rem;
  font-weight: 800;
}

.shared-section {
  display: grid;
  gap: 0.75rem;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  padding: 0.9rem;
}

.shared-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shared-section-head div {
  display: grid;
  gap: 0.25rem;
}

.shared-section-head em {
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
}

.section-actions,
.comment-form {
  display: flex;
  gap: 0.65rem;
}

.comment-form input {
  flex: 1;
}

.comments {
  display: grid;
  gap: 0.45rem;
}

.comments p {
  margin: 0;
  border-left: 3px solid #7c3aed;
  color: #4b5870;
  padding-left: 0.7rem;
}

.timeline article {
  border-left: 4px solid #059669;
  padding-left: 0.9rem;
}

.timeline time {
  display: block;
  color: #5b6b86;
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin-top: 0.25rem;
}

.bars {
  display: grid;
  gap: 0.7rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1fr) 42px;
  gap: 0.75rem;
  align-items: center;
}

.bar-row span {
  color: #344055;
  font-weight: 800;
}

.bar-row div {
  height: 0.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf2;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #059669);
}

.strategy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tier {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.7rem;
  border-top: 1px solid #e6ebf2;
  padding: 0.8rem 0;
}

.tier p {
  grid-column: 1 / -1;
  margin: 0;
}

.feedback {
  display: grid;
  gap: 0.55rem;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.feedback label {
  font-weight: 900;
}

.feedback div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

@media (max-width: 1000px) {
  .app-shell,
  .login-panel,
  .topbar,
  .summary-band,
  .map-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .content,
  .login-shell {
    padding: 1rem;
  }

  .stats-row,
  .permission-row,
  .bar-row,
  .feedback div,
  .workflow-row,
  .collab-presence,
  .section-permissions,
  .comment-form,
  .section-actions {
    grid-template-columns: 1fr;
  }

  .comment-form,
  .section-actions {
    display: grid;
  }

  .panel-heading.inline {
    align-items: stretch;
    flex-direction: column;
  }
}
