@charset "UTF-8";
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  color: #25352f;
  background: #f6f8f7;
  font-size: 16px;
  font-synthesis: none;
  --green: #17624d;
  --green-dark: #104c3c;
  --muted: #738179;
  --border: #e3e9e5;
  --surface: #fff;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  color: inherit;
}
p {
  line-height: 1.7;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.625rem;
  letter-spacing: -0.6px;
  line-height: 1.35;
  margin-bottom: 12px;
  font-weight: 720;
}
h2 {
  font-size: 1.12rem;
  letter-spacing: -0.5px;
  margin-bottom: 0;
}
h3 {
  font-size: 1rem;
  line-height: 1.5;
}
small {
  font-size: 0.8125rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #79bfa5;
  outline-offset: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 0.875rem;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: var(--green);
  color: white;
  z-index: 50;
}
.skip:focus {
  top: 12px;
}
.loading {
  text-align: center;
  padding: 20vh 20px;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 236px;
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 34px 22px 20px;
  z-index: 20;
}
.brand-mark {
  width: 38px;
  height: 42px;
  border-radius: 11px;
  background: var(--green);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -7px;
  padding-right: 7px;
  line-height: 1;
}
.brand-mark span {
  font-size: 29px;
  transform: translateY(-7px);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  color: #67756d;
  border-radius: 8px;
  font-size: 0.9375rem;
  margin-bottom: 6px;
  transition: background 0.15s;
}
.nav-item:hover {
  background: #f3f6f4;
}
.nav-item.selected {
  background: #eaf3ee;
  color: #17624d;
  font-weight: 700;
}
.nav-item > span {
  margin-left: auto;
  font-size: 0.75rem;
  color: #819389;
}
.nav-item.selected > span {
  color: #17624d;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  flex-shrink: 0;
}

.user-card {
  display: flex;
  padding: 8px 10px 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.user-card strong {
  display: block;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}
.user-card small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.875rem;
}
.user-card:hover strong {
  color: var(--green);
}
.avatar {
  background: #dce9e3;
  color: #47735e;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 650;
  flex-shrink: 0;
}
.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 0.625rem;
  border: 2px solid white;
}
.color-1 {
  background: #e7e7f3;
  color: #747092;
}
.color-2 {
  background: #e1ecf1;
  color: #597a8c;
}
.color-3 {
  background: #f5e7e1;
  color: #9c7163;
}
.color-4 {
  background: #eee9d9;
  color: #8a7f52;
}
.text-button {
  border: 0;
  background: none;
  padding: 7px 0;
  font-size: 0.8125rem;
  color: #7c8881;
  display: flex;
  align-items: center;
  gap: 7px;
}
.logout {
  margin-left: 59px;
}
.logout .icon {
  width: 14px;
  height: 14px;
}
.shell {
  margin-left: 236px;
}
.topbar {
  height: 73px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.breadcrumb {
  font-size: 0.8125rem;
  color: #829087;
  display: flex;
  gap: 17px;
}
.breadcrumb strong {
  color: #45574b;
  font-weight: 500;
}
.breadcrumb > span {
  color: #c0c8c2;
}
.today {
  font-size: 0.8125rem;
  color: #7c8980;
}
.preview-bar {
  padding: 9px 42px;
  background: #edf3ef;
  border-bottom: 1px solid #e2ebe5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f8275;
  font-size: 0.75rem;
  gap: 15px;
}
.preview-bar strong {
  font-weight: 650;
  color: #4f6e5c;
  margin-right: 15px;
}
.preview-bar button {
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.75rem;
  white-space: nowrap;
  padding: 3px;
}
.preview-detail {
  font-size: 0.75rem;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 38px 42px 60px;
}
main:focus {
  outline: none;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
  min-height: 40px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn.primary:hover {
  background: var(--green-dark);
}
.btn.secondary {
  background: white;
  border-color: #dce5de;
  color: #4f6356;
}
.btn.secondary:hover {
  background: #f3f7f4;
}
.btn.ghost {
  background: transparent;
  color: #6b7d70;
}
.btn.ghost:hover {
  background: #edf2ee;
}
.btn.danger {
  background: #9f3838;
  color: #fff;
}
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  margin-bottom: 36px;
}
.stat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 25px;
  transition: box-shadow 0.2s;
}
.stat:hover {
  border-color: #bbd0c2;
}
.stat > div > span {
  font-size: 0.8125rem;
  color: #6c7b71;
}
.stat strong {
  font-size: 2.2rem;
  font-weight: 650;
  display: block;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 11px 0 0;
}
.stat strong small {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #88968b;
  margin-left: 7px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-head h2 > span {
  font-size: 0.875rem;
  color: #89958d;
  margin-left: 7px;
  font-weight: 500;
}
.text-link {
  font-size: 0.75rem;
  color: #7b8d80;
}
.text-link:hover {
  color: var(--green);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 0.6875rem;
  line-height: 1.4;
  font-weight: 500;
  width: max-content;
}
.badge.active {
  background: #edf6ef;
  color: #5a8366;
}
.badge.paused {
  background: #fcf2e2;
  color: #a18a54;
}
.badge.done {
  background: #edf0f2;
  color: #7b8792;
}
.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b9c77;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.activity-list > li {
  border-bottom: 1px solid var(--border);
}
.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
}
.activity-row:hover {
  background: #f4f7f4;
}
.activity-row-main {
  flex: 1;
  min-width: 0;
}
.activity-row-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.activity-row-title h3 {
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.activity-row-type {
  color: var(--muted);
  font-size: 0.875rem;
}
.activity-row-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 7px 0 10px;
  overflow-wrap: anywhere;
}
.activity-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}
.submission-target {
  overflow-wrap: anywhere;
  max-width: 100%;
}
.activity-member-role {
  color: #25352f;
}
.activity-row > .badge {
  flex-shrink: 0;
  margin-top: 2px;
}
@media (max-width: 540px) {
  .activity-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .activity-row-main {
    flex-basis: 100%;
  }
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  background: #f4f6f4;
  color: #7f8c81;
  border: 1px solid #edf0ed;
  font-size: 0.625rem;
  line-height: 1.5;
  border-radius: 4px;
  padding: 3px 7px;
  white-space: nowrap;
}
.mini-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #eff5f1;
  color: #71927c;
}
.mini-icon .icon {
  width: 16px;
  height: 16px;
}
.mini-icon.study {
  background: #f2eff7;
  color: #9c87ad;
}

.recent-section {
  margin-top: 36px;
}
.update-table {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.update-header,
.update-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr 90px;
  gap: 18px;
  align-items: center;
  padding: 13px 23px;
}
.update-header {
  background: #fbfcfb;
  color: #9aa49c;
  font-size: 0.6875rem;
  border-bottom: 1px solid var(--border);
}
.update-row {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1ed;
  font-size: 0.75rem;
}
.update-row:last-child {
  border: 0;
}
.update-row:hover {
  background: #fafcfb;
}
.update-title {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.update-title strong {
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.5;
}
.update-title small {
  display: block;
  font-size: 0.625rem;
  color: #98a29a;
  margin-top: 5px;
}
.leader-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: #718175;
}

.mobile-menu {
  display: none;
}
.icon-btn {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover {
  background: #edf3ee;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.type-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.type-tabs a {
  padding: 10px 2px;
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.type-tabs a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.review-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.review-summary strong {
  color: var(--green);
}
.review-document {
  margin-top: 24px;
}
.review-status-wrap {
  overflow-x: auto;
}
.review-status {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.875rem;
}
.review-status th,
.review-status td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.review-status th {
  color: var(--muted);
  font-weight: 500;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0 14px;
  flex: 1;
  max-width: 500px;
  color: #91a095;
}
.search-field input {
  border: 0;
  outline: none;
  background: transparent;
  padding: 13px 0;
  width: 100%;
  font-size: 0.875rem;
}
select {
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23758879'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 10px center/18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 36px 12px 12px;
  font-size: 0.875rem;
  color: #65786b;
}
.results-count {
  font-size: 0.8125rem;
  color: #8a978d;
}
.results-count strong {
  color: var(--green);
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.person-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.person-card:hover {
  border-color: #b5cbbc;
}
.person-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.role {
  font-size: 0.6875rem;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f1f4f2;
  color: #788a7e;
  white-space: nowrap;
}
.person-card .person-title {
  margin-bottom: 16px;
}
.person-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.person-foot {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  width: 100%;
  font-size: 0.8125rem;
  color: #8b998e;
}
.person-foot strong {
  float: right;
  color: #51715b;
}
.profile-reviews {
  margin-bottom: 36px;
}
.profile-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
  margin-bottom: 36px;
}
.profile-panel p {
  font-size: 0.875rem;
  margin: 12px 0;
}
.back-link {
  font-size: 0.8125rem;
  color: #7e9285;
  display: inline-block;
  margin-bottom: 23px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.detail-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: #839286;
}
.detail-meta strong {
  font-weight: 550;
  color: #557360;
  margin-left: 5px;
}
.detail-tags {
  margin-top: 20px;
}
.tabs {
  display: flex;
  overflow-x: auto;
  gap: 29px;
  border-bottom: 1px solid #dce5df;
  margin-top: 35px;
  margin-bottom: 28px;
}
.tabs button {
  flex-shrink: 0;
  white-space: nowrap;
  border: 0;
  background: none;
  padding: 16px 3px;
  font-size: 0.875rem;
  color: #87978b;
  border-bottom: 2px solid transparent;
}
.tabs button[aria-selected="true"] {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 650;
}
.tabs button span {
  margin-left: 7px;
  background: #eaf0eb;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
}
.activity-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.overview-grid.no-description {
  grid-template-columns: 1fr;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  padding: 27px;
  border-radius: var(--radius);
}
.panel .section-head > .icon {
  color: #92a599;
}
.intro-text {
  font-size: 0.9375rem;
  color: #738478;
  line-height: 1.9;
}

.participant {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #edf1ed;
  padding: 16px 0;
}
.participant:last-child {
  border: 0;
}
.participant strong {
  font-size: 0.875rem;
}
.participant small {
  display: block;
  font-size: 0.75rem;
  color: #91a095;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.participant .role {
  margin-left: auto;
}
.document-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.document-toolbar {
  padding: 17px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.document-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}
.document-toolbar > .icon {
  color: #799480;
}
.document-meta {
  padding: 20px 32px 0;
  font-size: 0.75rem;
  color: #91a095;
}
.markdown {
  padding: 24px 32px 36px;
  font-size: 1rem;
  line-height: 1.85;
  color: #4f6255;
  overflow-wrap: anywhere;
  min-width: 0;
}
.markdown > *:first-child {
  margin-top: 0;
}
.markdown h1 {
  font-size: 1.65rem;
  margin: 15px 0 24px;
  color: #283f31;
}
.markdown h2 {
  font-size: 1.2rem;
  margin: 30px 0 16px;
  color: #345840;
  line-height: 1.6;
}
.markdown h3 {
  margin: 25px 0 12px;
}
.markdown p {
  margin-bottom: 16px;
}
.markdown ul,
.markdown ol {
  padding-left: 24px;
}
.markdown pre {
  padding: 20px 22px;
  background: #f3f6f4;
  border: 1px solid #e7ece8;
  border-radius: 8px;
  overflow: auto;
  line-height: 1.8;
  font-size: 0.875rem;
}
.markdown code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.875em;
  background: #f0f4f1;
  border-radius: 4px;
  padding: 2px 4px;
}
.markdown pre code {
  background: transparent;
  padding: 0;
}
.markdown blockquote {
  margin: 20px 0;
  padding: 3px 20px;
  border-left: 3px solid #89ae98;
  color: #77917f;
}
.markdown a {
  color: #17624d;
  text-decoration: underline;
}
.markdown img {
  display: block;
  max-width: 100%;
  max-height: 600px;
  border-radius: 8px;
}
.markdown table {
  border-collapse: collapse;
  display: block;
  overflow: auto;
  margin: 20px 0;
}
.markdown td,
.markdown th {
  border: 1px solid #dce6de;
  padding: 10px 15px;
}
.markdown th {
  background: #f2f6f3;
}
.markdown .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
}
.resource-heading {
  align-items: flex-start;
}
.resource-heading h2 {
  margin-bottom: 8px;
}
.resource-heading p {
  margin: 0;
}
.file-list {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px;
  border-bottom: 1px solid var(--border);
}
.file-row:last-child {
  border: 0;
}
.file-extension {
  width: 45px;
  height: 52px;
  border: 1px solid #dfebe3;
  background: #f2f7f3;
  display: grid;
  place-items: center;
  color: #7c9b86;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 7px;
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-name {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
}
.file-name:hover {
  color: var(--green);
  text-decoration: underline;
}
.file-info p {
  font-size: 0.8125rem;
  color: #829187;
  margin: 5px 0;
}
.file-info small {
  font-size: 0.6875rem;
  color: #9ba69f;
}
.info-strip {
  background: #edf4ef;
  border: 1px solid #dfeae2;
  padding: 17px 20px;
  border-radius: 9px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
  color: #64836d;
  margin-bottom: 25px;
}
.admin-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-row {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1fr) 100px 85px 110px;
  gap: 18px;
  align-items: center;
  padding: 23px;
  border-bottom: 1px solid var(--border);
}
.admin-row:last-child {
  border: 0;
}
.admin-row strong {
  font-size: 0.875rem;
}
.admin-row small {
  display: block;
  font-size: 0.75rem;
  color: #8c9c90;
  margin-top: 6px;
}
.empty {
  text-align: center;
  padding: 65px 20px;
  width: 100%;
  color: #8a9e90;
  border: 1px dashed #d5e1d8;
  border-radius: var(--radius);
  margin-top: 20px;
}

.empty h3 {
  font-size: 1rem;
  font-weight: 550;
  color: #6f8c78;
  margin: 0 0 7px;
}
.empty p {
  font-size: 0.875rem;
  margin: 0;
}
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}
.gate-card {
  max-width: 520px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.gate-card .brand-mark {
  margin: 0 auto 26px;
  width: 48px;
  height: 48px;
}
.gate-card h1 {
  font-size: 1.7rem;
}
.gate-card p {
  color: #829488;
  font-size: 0.9375rem;
}
.gate-card small {
  display: block;
  color: #9ca79e;
  margin-top: 25px;
}
.gate-card .btn {
  margin-top: 12px;
}
dialog {
  border: 1px solid #d9e4dc;
  border-radius: 16px;
  box-shadow: 0 24px 100px #102d2450;
  padding: 26px;
  width: min(580px, calc(100vw - 28px));
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  color: #354e3d;
}
dialog.wide {
  width: min(1120px, calc(100vw - 28px));
}
dialog.resizable-editor {
  resize: both;
  min-width: min(500px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  height: min(880px, calc(100dvh - 28px));
  min-height: min(560px, calc(100dvh - 28px));
  max-height: calc(100dvh - 28px);
}
dialog.resizable-editor[open] {
  display: flex;
  flex-direction: column;
}
dialog.resizable-editor.maximized {
  /* Override dimensions written by the browser's native resize handle.
     Keep those inline values intact so restoring recovers the chosen size. */
  width: calc(100vw - 28px) !important;
  height: calc(100dvh - 28px) !important;
  resize: none;
}
.resizable-editor .modal-head,
.resizable-editor .field,
.resizable-editor .editor-hint,
.resizable-editor .form-actions {
  flex-shrink: 0;
}
.resizable-editor .modal-head .button-row {
  flex-wrap: nowrap;
}
.resizable-editor #discussion-form,
.resizable-editor #rules-form,
.resizable-editor #review-form,
.resizable-editor #editor-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 500px;
}
.resizable-editor .editor-grid {
  flex: 1;
  min-height: 220px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  grid-auto-rows: minmax(180px, 1fr);
  overflow: auto;
}
.resizable-editor .editor-column {
  min-height: 0;
}
.resizable-editor .editor-column > span {
  flex-shrink: 0;
}
.resizable-editor .editor-column > textarea,
.resizable-editor .editor-column > .markdown {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: auto;
  resize: none;
}
dialog::backdrop {
  background: #1d342e66;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 15px;
}
.modal-head h2 {
  font-size: 1.2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 550;
  margin-bottom: 19px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dbe5de;
  border-radius: 7px;
  color: #45624e;
  background-color: #fff;
  font-size: 0.9375rem;
  font-weight: 400;
}
.field select {
  padding-right: 35px;
}
.field textarea {
  resize: vertical;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 16px;
  margin: 0 0 20px;
}
legend {
  font-size: 0.875rem;
  padding: 0 5px;
}
fieldset p {
  font-size: 0.8125rem;
  margin: 0 0 12px;
}
.checkboxes {
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
}
.checkboxes label,
.check {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}
.form-error {
  font-size: 0.875rem;
  color: #ad4e42;
  margin-top: 15px;
  line-height: 1.7;
}
.account-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-option {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px;
  text-align: left;
}
.account-option:hover {
  background: #f2f7f3;
}
.account-option strong {
  font-size: 0.9375rem;
}
.account-option small {
  display: block;
  color: #93a097;
  margin-top: 5px;
}
.account-option > .icon {
  margin-left: auto;
  color: var(--green);
}
.editor-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #8b9a90;
  margin-bottom: 16px;
  gap: 12px;
}
.file-label {
  cursor: pointer;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.editor-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.editor-column + div {
  border-left: 1px solid var(--border);
}
.editor-column > span {
  padding: 10px 15px;
  background: #f6f8f6;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: #8a9c8e;
}
.editor-column > textarea {
  padding: 20px;
  border: 0;
  outline-offset: -3px;
  resize: vertical;
  width: 100%;
  min-height: 480px;
  max-height: 60vh;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #526c5b;
  tab-size: 2;
}
.editor-column > .markdown {
  height: 480px;
  max-height: 60vh;
  overflow: auto;
  padding: 20px;
  font-size: 0.9375rem;
}
.editor-column .markdown h1 {
  font-size: 1.3rem;
}
.editor-column .markdown h2 {
  font-size: 1.1rem;
}
.history-list details {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.history-list summary {
  padding: 18px;
  cursor: pointer;
  font-size: 0.875rem;
}
.history-list summary span {
  margin-left: 16px;
  color: #8d9d91;
  font-size: 0.8125rem;
}
.resource-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.pdf-preview {
  width: 100%;
  height: 65vh;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.image-preview {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  margin: auto;
}
.dropzone {
  border: 1px dashed #bfd0c4;
  background: #f6faf7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 30px 20px;
  margin-bottom: 22px;
  text-align: center;
}
.dropzone > .icon {
  color: #789b84;
  width: 30px;
  height: 30px;
}
.dropzone strong {
  font-size: 0.9375rem;
  font-weight: 500;
}
.dropzone span {
  font-size: 0.8125rem;
  color: #97a69b;
}
.dropzone input {
  font-size: 0.8125rem;
  max-width: 100%;
  margin-top: 12px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: min(600px, 90vw);
  padding: 14px 22px;
  background: #204c38;
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px #15332133;
  z-index: 100;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Keep working text comfortably readable at the interface's default scale. */
.tag,
.badge,
.update-row,
.leader-cell,
.update-title small,
.text-link {
  font-size: 0.875rem;
}
.preview-bar,
.preview-detail,
.preview-bar button {
  font-size: 0.8125rem;
}
.tag {
  font-size: 0.75rem;
}

.update-header {
  font-size: 0.8125rem;
}
.update-title small {
  font-size: 0.75rem;
}

.stat > div > span {
  font-size: 0.875rem;
}
.btn {
  font-size: 0.875rem;
}
.subtitle {
  font-size: 1rem;
}

.badge {
  font-size: 0.75rem;
}
.update-title strong {
  font-size: 0.875rem;
}
.role {
  font-size: 0.8125rem;
}
@media (min-width: 1550px) {
  main {
    padding-top: 45px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 208px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .shell {
    margin-left: 208px;
  }
  main {
    padding: 30px 28px 50px;
  }
  .topbar {
    padding: 0 28px;
  }
  .preview-bar {
    padding-left: 28px;
    padding-right: 28px;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 20px;
  }

  .stat > div > span {
    font-size: 0.8125rem;
  }
  .page-heading {
    gap: 15px;
  }
  .preview-detail {
    display: none;
  }
  .update-header,
  .update-row {
    grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 75px;
    gap: 10px;
  }
  .resource-heading {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    width: 236px;
    box-shadow: 10px 0 40px #1c3d2722;
    transition: transform 0.2s;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: flex;
    margin-left: -9px;
  }
  .topbar {
    height: 64px;
    gap: 15px;
    justify-content: flex-start;
  }
  .today {
    margin-left: auto;
  }
  .breadcrumb {
    gap: 10px;
  }
  .preview-bar {
    font-size: 0.75rem;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px 15px;
  }

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

  main {
    padding: 27px 24px 45px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 1.7rem;
  }
  .subtitle {
    font-size: 0.875rem;
  }
  .page-heading > .btn {
    align-self: center;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .admin-row {
    grid-template-columns: 40px minmax(100px, 1fr) 90px;
    gap: 12px;
  }
  .admin-row > .badge {
    grid-column: 2;
  }
  .admin-row > .btn,
  .admin-row > .muted {
    grid-column: 3;
    grid-row: auto;
  }
  .filters {
    flex-wrap: wrap;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
  }
  .update-row,
  .update-header {
    grid-template-columns: minmax(0, 1fr) 100px 80px;
  }
  .leader-cell,
  .update-header > span:nth-child(2) {
    display: none;
  }
  .update-row > .muted {
    font-size: 0.75rem;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-column + div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .editor-column > textarea {
    min-height: 300px;
  }
  .editor-column > .markdown {
    height: 300px;
  }
  .detail-meta {
    gap: 12px;
    font-size: 0.75rem;
  }
  .profile-panel {
    padding: 24px;
  }

  .resource-modal-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 540px) {
  main {
    padding: 27px 18px 40px;
  }
  .topbar {
    padding: 0 18px;
  }
  .today {
    font-size: 0.6875rem;
  }
  .breadcrumb {
    font-size: 0.75rem;
  }
  .preview-bar {
    padding: 9px 18px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  .page-heading > .btn {
    align-self: flex-start;
  }
  .stats {
    gap: 8px;
    margin-bottom: 28px;
  }
  .stat {
    padding: 16px 11px;
  }
  .stat > div > span {
    font-size: 0.75rem;
    line-height: 1.7;
    display: block;
    max-width: 70px;
  }
  .stat strong {
    font-size: 1.8rem;
    margin-bottom: 0;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 1rem;
  }
  .section-head > .small-text {
    font-size: 0.75rem;
  }
  .text-link {
    font-size: 0.75rem;
  }
  .update-header {
    display: none;
  }
  .update-row {
    padding: 18px 16px;
    grid-template-columns: minmax(0, 1fr) 70px;
  }
  .update-row > .muted {
    display: none;
  }
  .update-title strong {
    font-size: 0.8125rem;
  }
  .update-title {
    gap: 9px;
  }
  .update-title .mini-icon {
    width: 29px;
    height: 29px;
  }

  .person-title {
    flex-wrap: wrap;
    gap: 8px;
  }
  .person-card {
    padding: 24px;
  }
  .document-toolbar {
    padding: 15px;
  }
  .document-toolbar > div {
    gap: 5px;
  }
  .document-toolbar .btn {
    font-size: 0.75rem;
    padding: 9px 10px;
  }
  .document-meta {
    padding: 18px 20px 0;
    font-size: 0.6875rem;
  }
  .markdown {
    padding: 22px 20px;
    font-size: 0.9375rem;
  }
  .markdown h1 {
    font-size: 1.4rem;
  }
  .document-toolbar .role {
    font-size: 0.6875rem;
  }
  .file-row {
    gap: 12px;
    padding: 18px 15px;
    flex-wrap: wrap;
  }
  .file-row > .button-row {
    margin-left: 57px;
  }
  .file-name {
    font-size: 0.875rem;
  }
  .admin-row {
    padding: 18px 15px;
    gap: 10px;
    grid-template-columns: 36px minmax(90px, 1fr) 85px;
  }
  .admin-row .avatar {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  .admin-row small {
    font-size: 0.6875rem;
    overflow-wrap: anywhere;
  }
  .admin-row > .role {
    font-size: 0.6875rem;
  }
  .admin-row > .btn {
    font-size: 0.75rem;
  }
  .info-strip {
    font-size: 0.8125rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    padding: 20px;
  }
  .editor-hint > span {
    font-size: 0.75rem;
  }
  .file-label {
    font-size: 0.75rem;
    padding: 9px 10px;
  }
  .history-list summary span {
    display: block;
    margin: 9px 0 0 15px;
  }
  .gate-card {
    padding: 32px 24px;
  }
  .gate-card h1 {
    font-size: 1.5rem;
  }

  .tabs {
    gap: 25px;
  }
  .resource-heading .btn {
    font-size: 0.75rem;
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.discussion {
  margin-top: 28px;
  border-top: 1px solid var(--border, #e3e5e8);
  padding-top: 24px;
}
.discussion-thread {
  border-bottom: 1px solid var(--border, #e3e5e8);
  padding: 16px 0;
}
.discussion-comment .markdown {
  padding: 12px 0;
}
.discussion-comment.reply {
  margin: 18px 0 0 20px;
  padding-left: 16px;
  border-left: 2px solid var(--border, #e3e5e8);
}
.discussion-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.discussion-meta .btn {
  padding: 3px 6px;
}
.feedback-badge {
  font-size: 12px;
  color: var(--accent, #315da8);
  margin-left: 6px;
  white-space: nowrap;
}

.statistics-filter {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.statistics-filter .field {
  margin: 0;
  max-width: 15rem;
}
.statistics-filter p {
  margin: 0;
}
.request-table-wrap {
  overflow-x: auto;
}
.request-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.request-table th,
.request-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.request-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.request-table td:first-child {
  width: 100%;
  min-width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.request-overdue {
  display: block;
  color: #9b422f;
  font-size: 12px;
}
.request-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.request-section h2 {
  margin: 0 0 16px;
  font-size: 16px;
}
.request-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.request-link {
  overflow-wrap: anywhere;
}
.request-history details {
  padding: 16px 0 0;
}
.request-history summary {
  cursor: pointer;
}
#request-response-form {
  max-width: 720px;
}
.statistics-reviews {
  margin-top: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.statistics-review-titles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.statistics-review-titles li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.statistics-review-titles a {
  flex: 1 1 15rem;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.5;
}
.statistics-review-titles time {
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.statistics-tabs {
  overflow-x: auto;
}
.statistics-tabs button {
  flex-shrink: 0;
}
.statistics-content {
  margin-top: 1.5rem;
}
.statistics-note {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.3rem;
}
.statistics-memberships,
.statistics-thread-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.statistics-memberships li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0.5rem 0;
}
.statistics-memberships span {
  color: var(--muted);
}
.statistics-members td:last-child,
.statistics-projects th:first-child,
.statistics-projects td:nth-child(3) {
  white-space: normal;
  min-width: 12rem;
}
.statistics-thread-list > li {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.statistics-thread-link,
.statistics-document-link {
  text-align: left;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.statistics-thread-preview {
  margin: 0.5rem 0;
  overflow-wrap: anywhere;
}
.statistics-thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.statistics-feedback-filters [aria-pressed="true"] {
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.statistics-attention {
  margin-bottom: 2rem;
}
.statistics-attention h2 {
  font-size: 1.1rem;
}
.discussion-comment:focus {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.review-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.review-venue {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.review-metadata .tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.review-title-group {
  flex: 1 1 15rem;
  min-width: 0;
}
.review-metadata .tag {
  white-space: normal;
  overflow-wrap: anywhere;
}

.review-missing {
  color: var(--muted);
  font-size: 0.875rem;
}

.restricted-nav {
  margin: 1.25rem 0 0.75rem 0.4rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--border);
}
.restricted-nav-label {
  margin: 0 0 0.45rem;
  padding: 0 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.sidebar nav {
  min-height: 0;
  overflow-y: auto;
}
