:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #eef4f0;
  --ink: #12211c;
  --muted: #5e6b66;
  --line: #d7dfda;
  --green: #083f34;
  --green-2: #0e5a49;
  --gold: #d99a24;
  --gold-soft: #fff0c9;
  --blue: #2f5e91;
  --red: #a2382d;
  --shadow: 0 18px 45px rgba(10, 47, 39, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  background: linear-gradient(180deg, #073b32 0%, #0d4d40 62%, #123c34 100%);
  color: white;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gold);
  color: #072a25;
  font-weight: 900;
  letter-spacing: 0;
}

nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.help-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.help-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.4;
}

.help-card button,
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  width: fit-content;
}

main {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 22px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(12px);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--green);
}

h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.topbar p,
.section-title p,
.panel p,
.fine-print {
  color: var(--muted);
  line-height: 1.45;
}

.top-actions,
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

.searchbox {
  height: 44px;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--muted);
}

.searchbox input,
.publish-panel input,
.publish-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.quiet-button,
.primary-button,
.gold-button,
.queue-item button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.primary-button {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.primary-button.compact {
  min-width: 150px;
}

.gold-button {
  width: fit-content;
  background: var(--gold);
  border-color: var(--gold);
  color: #1b1608;
  padding-inline: 20px;
}

.screen-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) minmax(340px, 0.95fr);
  gap: 18px;
  padding: 24px 32px 36px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 0;
}

.document-panel {
  grid-column: span 2;
}

.staff-panel {
  grid-row: span 2;
}

.section-title {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.round-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  flex: 0 0 52px;
}

.quick-links,
.path-list,
.queue-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.quick-links button,
.path-card {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
}

.quick-links span,
.path-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.path-card {
  display: grid;
  justify-content: stretch;
}

.path-card.selected {
  border-color: var(--green);
  background: var(--surface-2);
}

.mini-meetings,
.meeting-table {
  display: grid;
  gap: 14px;
}

.mini-meetings article,
.meeting-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.meeting-row {
  grid-template-columns: 68px minmax(0, 1fr) 120px 180px;
  min-height: 82px;
}

.date-badge {
  border-right: 1px solid var(--line);
  padding-right: 14px;
}

.date-badge span,
.date-badge strong {
  display: block;
}

.date-badge strong {
  font-size: 1.75rem;
}

.status,
.tag,
.ada-pill,
.prototype-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status.good {
  background: #dfeeda;
  color: #24502d;
}

.status.warn,
.ada-pill {
  background: var(--gold-soft);
  color: #6b4600;
}

.tag {
  background: #e5eef7;
  color: var(--blue);
}

.prototype-label {
  background: #edf4f1;
  color: var(--green);
  margin-bottom: 12px;
}

.filters {
  margin-bottom: 18px;
}

.filters select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  min-width: 180px;
}

.doc-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.doc-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 120px 120px 120px minmax(130px, 0.8fr);
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.doc-row:last-child {
  border-bottom: 0;
}

.doc-row.header {
  background: #f0f3f1;
  color: #3a4440;
  font-weight: 800;
  min-height: 40px;
}

.queue-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.queue-tabs span {
  padding: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
}

.queue-tabs .active {
  color: var(--green);
  border-bottom: 3px solid var(--green);
}

.queue-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.file-badge {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #d64b3e;
  color: #c7352a;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
}

.queue-item p {
  font-size: 0.9rem;
  margin: 4px 0 8px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: 20px;
  padding: 24px 32px 36px;
}

.stacked {
  padding: 24px 32px 36px;
}

.detail-panel dl {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.detail-panel div {
  min-width: 0;
}

dt {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.83rem;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
}

.step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
  margin-bottom: 10px;
}

.publish-panel {
  display: grid;
  gap: 14px;
}

.publish-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.publish-panel input,
.publish-panel select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
}

.compliance-box,
.success-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #ebd188;
  background: #fff8e5;
  border-radius: 8px;
  padding: 14px;
}

.success-message {
  border-color: #bddab8;
  background: #eef8ec;
  color: #24502d;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 20, 16, 0.56);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 10;
}

.modal {
  width: min(560px, 100%);
  border-radius: 8px;
  background: white;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 1.4rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1180px) {
  .screen-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .document-panel,
  .staff-panel {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar,
  .top-actions,
  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .screen-grid,
  .two-column,
  .stacked,
  .topbar {
    padding-inline: 18px;
  }

  .searchbox,
  .filters select {
    width: 100%;
    min-width: 0;
  }

  .doc-row {
    grid-template-columns: 1fr;
  }

  .doc-row.header {
    display: none;
  }

  .meeting-row,
  .mini-meetings article,
  .queue-item,
  .stepper {
    grid-template-columns: 1fr;
  }
}
