:root {
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #243b36;
  background: #f4f6f2;
  font-size: 15px;
  --green: #255b4b;
  --line: #dde4da;
  --muted: #677c73;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  background: var(--green);
  color: white;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--green);
}
button.quiet {
  background: transparent;
  color: inherit;
  padding: 7px;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #becdc2;
  border-radius: 6px;
  background: white;
  color: #243b36;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9ebf9e;
  outline-offset: 2px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  margin: 14px 0;
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #718171;
  margin: 0 0 12px;
}
h1 {
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  margin: 0;
}
h2 {
  font-size: 1.1rem;
  margin: 0 0 15px;
}
h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}
p {
  line-height: 1.7;
}
.app {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 34px 20px;
  background: #e9eee5;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  color: #224d3e;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 30px;
}
.brand span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  margin-top: 9px;
  color: #718171;
}
.workspace-label {
  font-size: 0.75rem;
}
.workspace-label select {
  background: #f5f7f1;
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
nav button {
  color: #4d6759;
  text-align: left;
  background: transparent;
  padding: 14px;
  font-weight: 500;
}
nav button.active {
  background: #d6e1cf;
  color: #214e3c;
  font-weight: 700;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
}
main {
  padding: 38px 42px;
  min-width: 0;
  max-width: 1600px;
}
header,
.toolbar,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.toolbar {
  justify-content: flex-end;
}
#message {
  min-height: 1.6em;
  font-size: 0.9rem;
  margin: 18px 0;
}
.error,
[role='alert'] {
  color: #a3332d;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 12px 0 28px;
}
.metric {
  padding: 21px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 2rem;
  margin-top: 12px;
  font-weight: 600;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}
.panel-heading h2 {
  margin: 0;
}
.task-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 100px 100px 160px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #edf0e8;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-name {
  background: none;
  color: var(--green);
  text-align: left;
  padding: 0;
  overflow-wrap: anywhere;
}
.task-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
}
.badge {
  font-size: 0.75rem;
  border-radius: 4px;
  background: #edf2e6;
  padding: 5px 9px;
  width: fit-content;
}
.overdue {
  color: #a3332d;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
}
.empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  overflow: auto;
  margin-bottom: 24px;
}
.board-column {
  background: #eaf0e5;
  border-radius: 8px;
  padding: 14px;
  min-height: 200px;
}
.board-card {
  background: white;
  padding: 16px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.board-card p {
  font-size: 0.78rem;
  margin: 8px 0 0;
}
.project-list {
  display: grid;
  gap: 15px;
  margin: 0 0 24px;
}
.project-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.notification {
  padding: 12px 0;
  border-bottom: 1px solid #edf0e8;
  font-size: 0.88rem;
}
.notification:last-child {
  border-bottom: 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
}
.inline-form {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkbox input {
  width: auto;
}
.inline-form input {
  max-width: 200px;
}
.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(125deg, #e7eee1, #f8f8f2);
}
.login-card {
  width: min(440px, 90vw);
  padding: 42px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 65px #2343290a;
}
.login-card button {
  width: 100%;
  margin-top: 12px;
}
dialog {
  width: min(780px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #243b36;
}
dialog::backdrop {
  background: #172e27aa;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
}
#audiences {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.history {
  font-size: 0.85rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font: inherit;
}
#member-list {
  font-size: 0.85rem;
  line-height: 2;
}
@media (max-width: 1050px) {
  main {
    padding: 28px 22px;
  }
  .app {
    grid-template-columns: 200px 1fr;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .task-row {
    grid-template-columns: 1fr 90px;
  }
  .task-row > span:last-child {
    grid-column: 1/-1;
  }
  .toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 680px) {
  .app {
    display: block;
  }
  .sidebar {
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin-bottom: 12px;
  }
  .workspace-label {
    margin: 8px 0;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 3px;
    margin: 10px 0;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .sidebar-footer {
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  main {
    padding: 22px 16px;
  }
  header {
    align-items: flex-start;
  }
  h1 {
    font-size: 1.5rem;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar button {
    padding: 9px;
  }
  .metric {
    padding: 16px;
  }
  .panel {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 30px;
  }
}
