:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #20343c;
  background: #f3f5f5;
  font-synthesis: none;
  --green: #155b4c;
  --muted: #64747b;
  --line: #dce4e4;
  --nav: #122a32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ca891d;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
button {
  border: 1px solid #cdd9d8;
  background: #fff;
  border-radius: 7px;
  padding: 10px 15px;
  color: #24423d;
  font-weight: 600;
  font-size: 13px;
  min-height: 40px;
}
button:hover {
  background: #f0f5f3;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #114638;
}
button.danger {
  color: #a33535;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #bac8cc;
  padding: 31px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 0 10px 36px;
}
.brand-mark {
  width: 48px;
  height: auto;
  aspect-ratio: 676 / 800;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand strong {
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1.4;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 5px;
  color: #c2d2d5;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #8ca5ac;
  padding: 0 12px;
  margin: 12px 0;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  border: 0;
  color: #b9cccf;
  background: transparent;
  text-align: left;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
}
nav button.active {
  background: #24444b;
  color: #fff;
}
nav button:hover {
  background: #24444b;
}
.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.nav-count {
  font-size: 11px;
  border-radius: 4px;
  background: #c1d6b9;
  color: #244633;
  padding: 2px 6px;
  margin-left: auto;
}
.sidebar-foot {
  margin-top: auto;
  padding: 24px 12px 0;
  border-top: 1px solid #345058;
  font-size: 12px;
  line-height: 1.8;
}
.local-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #9fca99;
  border-radius: 50%;
  margin-right: 6px;
}
.workarea {
  min-width: 0;
}
.topbar {
  height: 81px;
  padding: 0 42px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  color: #294139;
  font-weight: 600;
}
.top-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mode-control {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.mode-control select {
  padding: 8px 28px 8px 9px;
  background: #f6f8f7;
  min-height: 36px;
}
.avatar {
  background: #dde8df;
  color: #2e5d45;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.prototype-strip {
  background: #edf1e9;
  border-bottom: 1px solid #dce3d6;
  color: #496043;
  font-size: 11px;
  padding: 10px 42px;
  line-height: 1.5;
}
.prototype-strip strong {
  letter-spacing: 0.5px;
  margin-right: 10px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 36px 42px 50px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #667b72;
  margin: 0 0 9px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  font-weight: 650;
  margin: 0 0 10px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.2px;
  margin: 0 0 6px;
}
h3 {
  font-size: 13px;
  margin: 0 0 7px;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 13px;
}
.hero {
  background: #e4ece6;
  border: 1px solid #d1dfd4;
  border-radius: 10px;
  padding: 27px 29px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 23px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "+";
  position: absolute;
  right: 35px;
  top: -75px;
  font-size: 240px;
  line-height: 1;
  color: #d4e1d7;
  font-weight: 200;
  pointer-events: none;
}
.hero > div {
  position: relative;
  z-index: 1;
  max-width: 630px;
}
.hero h2 {
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 9px;
}
.hero p {
  font-size: 13px;
  line-height: 1.7;
  color: #526a5c;
  margin: 0 0 18px;
}
.hero .tag {
  margin-bottom: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.stat-top {
  font-size: 12px;
  color: #5b6d72;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.stat-icon {
  background: #edf2ef;
  color: #4b7160;
  border-radius: 6px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
}
.stat-number {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 11px 0 8px;
}
.stat small {
  font-size: 11px;
  color: #5f7068;
}
.stat small.attention {
  color: #a25128;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 23px;
  align-items: start;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 22px;
}
.card-header {
  padding: 21px 22px;
  border-bottom: 1px solid #e8eceb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.6;
}
.card-body {
  padding: 22px;
}
.card-footer {
  padding: 15px 22px;
  border-top: 1px solid #e8eceb;
  background: #fafbfa;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.link-button {
  padding: 4px 0;
  border: 0;
  color: var(--green);
  font-size: 12px;
  background: transparent;
  min-height: 30px;
  white-space: nowrap;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #5f7068;
  background: #fafbf9;
  font-weight: 600;
  padding: 13px 20px;
  border-bottom: 1px solid #e8eceb;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #edf0ee;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
.person {
  display: flex;
  gap: 11px;
  align-items: center;
}
.person strong {
  display: block;
  color: #2b423c;
  font-size: 12px;
  font-weight: 600;
}
.person small {
  display: block;
  font-size: 10px;
  color: #5f7068;
  margin-top: 5px;
}
.person .avatar {
  border-radius: 8px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  background: #edf1ef;
  color: #52665b;
}
.badge.good {
  background: #e6f2e9;
  color: #2f714b;
}
.badge.warn {
  background: #fff1d9;
  color: #8e631a;
}
.badge.bad {
  background: #fbe9e6;
  color: #a4483a;
}
.badge.info {
  background: #e8eef7;
  color: #45638b;
}
.badge.neutral {
  background: #eff0f2;
  color: #66717a;
}
.tag {
  display: inline-flex;
  border: 1px solid #c8d8cc;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #4d6e54;
  font-weight: 700;
}
.list-item {
  padding: 17px 22px;
  border-bottom: 1px solid #edf0ee;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.list-item:last-child {
  border: 0;
}
.list-item h3 {
  line-height: 1.5;
}
.list-item p {
  font-size: 11px;
  line-height: 1.7;
  color: #5f7068;
  margin: 3px 0;
}
.item-icon {
  background: #f1f5f1;
  border-radius: 7px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #6d866c;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.7;
}
.empty {
  text-align: center;
  padding: 38px 20px;
  color: #5f7068;
  font-size: 12px;
  line-height: 1.8;
}
.empty strong {
  color: #405c4e;
  font-size: 14px;
  display: block;
  margin-bottom: 7px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  background: #eef3ed;
  color: #789376;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  margin: 0 auto 14px;
  font-size: 23px;
}
.empty button {
  margin-top: 15px;
}
.notice {
  background: #f6f8f4;
  border: 1px solid #dfe6da;
  border-radius: 7px;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.7;
  color: #5c6d55;
  margin: 0 0 20px;
}
.notice.warning {
  background: #fff7e7;
  border-color: #eadcbf;
  color: #7b612d;
}
.toolbar {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 170px;
}
.toolbar select {
  max-width: 230px;
}
input,
select,
textarea {
  border: 1px solid #ccd8d2;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #30493f;
  max-width: 100%;
  font-size: 13px;
  min-height: 40px;
}
input[type="checkbox"] {
  min-height: 18px;
  width: 18px;
  accent-color: var(--green);
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #4d6456;
  font-weight: 600;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
  line-height: 1.6;
}
.field-note {
  font-size: 11px;
  color: #5f7068;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-stack {
  display: grid;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.member-heading {
  display: flex;
  gap: 15px;
  align-items: center;
}
.member-heading .avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 17px;
}
.meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.8;
}
.requirement-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0ee;
  font-size: 12px;
  align-items: center;
}
.requirement-row:last-child {
  border: 0;
}
.timeline {
  padding-left: 15px;
  border-left: 2px solid #d8e4d9;
  display: grid;
  gap: 20px;
}
.timeline p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 4px;
}
.timeline small {
  font-size: 10px;
  color: #5f7068;
}
.review-card {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.review-card:last-child {
  border: 0;
}
.review-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.review-dates {
  display: flex;
  gap: 30px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.9;
}
.review-dates small {
  display: block;
  color: #5f7068;
}
.mail {
  background: #fafbf8;
  padding: 23px;
  border: 1px solid #dfe7dc;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
}
.settings-row {
  margin-bottom: 20px;
}
.footer-note {
  font-size: 10px;
  color: #5f7068;
  line-height: 1.8;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.pill-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.pill-tabs button.active {
  background: #e1ece2;
  border-color: #a8c2aa;
}
.success-text {
  color: #2e7650;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: #203b30;
  box-shadow: 0 24px 100px #10292140;
}
dialog::backdrop {
  background: #112d3580;
}
dialog .card-header {
  position: sticky;
  top: 0;
  background: #fff;
}
dialog .card-body {
  max-height: 70vh;
  overflow: auto;
}
.close {
  border: 0;
  font-size: 20px;
  padding: 2px 8px;
  background: transparent;
  min-height: 32px;
}
.error {
  background: #fcebe7;
  color: #a03829;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
}
.error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 450px;
  border-radius: 8px;
  background: #173e31;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 5px 25px #1234;
  z-index: 20;
}
#toast:not(:empty) {
  padding: 14px 20px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -80px;
  z-index: 30;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.policy {
  font-size: 11px;
  line-height: 1.8;
  color: #5f7068;
}
.matrix td:nth-child(n + 2),
.matrix th:nth-child(n + 2) {
  text-align: center;
}
.source-chip {
  font-size: 10px;
  color: #5f7068;
  margin-left: 8px;
}
.import-input {
  width: 100%;
  padding: 20px;
  background: #fafcf9;
  border: 1px dashed #a6bba6;
}
.preview-count {
  font-size: 13px;
  margin-bottom: 16px;
}
.note-title {
  font-size: 12px;
  font-weight: 600;
  color: #476240;
  margin-bottom: 7px;
}
.section-gap {
  margin-top: 24px;
}
.code {
  font:
    11px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f5f7f3;
  border: 1px solid #e0e7da;
  border-radius: 6px;
  padding: 15px;
}
details {
  font-size: 12px;
  line-height: 1.8;
}
summary {
  cursor: pointer;
  color: #3e6650;
  font-weight: 600;
}
.subtle-btn {
  font-size: 11px;
  padding: 6px 10px;
  min-height: 32px;
}
.filter-label {
  min-width: 160px;
}
.mapping-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.toolbar label input {
  width: 100%;
}
.toolbar label {
  flex: 1;
}
.stats .stat-number span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 6px;
  color: #5f7068;
}
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 12px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 28px 25px;
  }
  .prototype-strip {
    padding: 10px 25px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .heading-actions {
    max-width: 230px;
  }
  .brand {
    padding-left: 6px;
  }
  .brand strong {
    font-size: 13px;
  }
  .page-heading {
    gap: 12px;
  }
  h1 {
    font-size: 26px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 15px 16px;
  }
  .brand {
    padding: 0 0 15px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-mark {
    width: 42px;
    height: auto;
  }
  .brand strong {
    font-size: 17px;
  }
  .nav-caption,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 5px;
    padding: 3px 0;
  }
  nav button {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 9px;
    font-size: 11px;
    gap: 5px;
  }
  .nav-icon {
    font-size: 13px;
    width: 18px;
  }
  .topbar {
    padding: 12px 18px;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .top-actions {
    gap: 7px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .mode-control {
    font-size: 10px;
  }
  .mode-control select {
    max-width: 170px;
    font-size: 11px;
  }
  .topbar .avatar {
    display: none;
  }
  .prototype-strip {
    padding: 9px 18px;
    font-size: 10px;
  }
  main {
    padding: 25px 18px;
  }
  .page-heading {
    display: block;
    margin-bottom: 20px;
  }
  .heading-actions {
    max-width: none;
    padding-top: 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .stat-number {
    font-size: 28px;
  }
  .stat-top {
    font-size: 11px;
  }
  .hero {
    padding: 22px;
  }
  .hero h2 {
    font-size: 19px;
  }
  .hero:after {
    right: -15px;
    opacity: 0.5;
  }
  .content-grid {
    gap: 0;
  }
  .card-header {
    padding: 18px;
  }
  .card-body {
    padding: 18px;
  }
  th,
  td {
    padding: 13px 15px;
  }
  .form-grid,
  .mapping-form {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .toolbar {
    padding: 15px;
  }
  .toolbar label,
  .toolbar select {
    width: 100%;
    max-width: none;
  }
  .footer-note {
    display: block;
  }
  .footer-note span {
    display: block;
    margin-top: 5px;
  }
  .review-head {
    flex-wrap: wrap;
  }
  .review-dates {
    gap: 18px;
    flex-wrap: wrap;
  }
  .card-footer {
    flex-wrap: wrap;
  }
  .badge {
    white-space: normal;
  }
  .meta-row {
    gap: 10px;
  }
  .requirement-row {
    align-items: flex-start;
  }
  .requirement-row .badge {
    flex-shrink: 0;
    max-width: 48%;
  }
  #toast {
    bottom: 15px;
    right: 15px;
    left: 15px;
  }
  .pill-tabs {
    flex-wrap: wrap;
  }
  .person {
    min-width: 130px;
  }
  .content-grid > div {
    min-width: 0;
  }
  .toolbar input {
    min-width: 0;
  }
  .mode-control {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
  main {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.6;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .top-actions {
    flex-wrap: wrap;
  }
  .topbar {
    align-items: flex-start;
  }
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  min-width: 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 6px;
}
.requirement-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
fieldset > label.check {
  margin: 8px 0;
}
@media (max-width: 720px) {
  .requirement-checklist {
    grid-template-columns: 1fr;
  }
}
