:root {
  --bg: #020403;
  --panel: #1b2020;
  --panel-2: #232928;
  --line: #edf3f0;
  --muted: #b8c1bf;
  --text: #f4f7f6;
  --green: #007c68;
  --green-bright: #08c9aa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(0, 124, 104, .94), rgba(0, 48, 41, .98)),
    #003c34;
}

.login-card {
  width: min(410px, calc(100vw - 32px));
  padding: 34px 28px;
  background: rgba(4, 8, 7, .88);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.brand {
  font-size: 44px;
  letter-spacing: 0;
  color: rgba(255,255,255,.12);
  margin-bottom: 12px;
}

.login-card h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 24px;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  background: #f6f8f7;
  color: #1f2424;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

td textarea {
  min-width: 220px;
  min-height: 64px;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  padding: 12px 16px;
  margin-top: 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: #006e5d; }

.secondary {
  background: #333737;
}

.secondary:hover {
  background: #424747;
}

.danger-button {
  background: #6f2a22;
}

.danger-button:hover {
  background: #8b342b;
}

.app header {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: #272323;
  border-bottom: 3px solid var(--green);
}

.brand-box {
  display: grid;
  place-items: center;
  width: 138px;
  height: 68px;
  background: #f7f8f7;
  color: #4b4e4e;
  border-radius: 6px;
  font-weight: 700;
}

header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

header p {
  margin: 2px 0 0;
  color: var(--text);
}

#logout {
  margin: 0 0 0 auto;
}

.view {
  padding: 22px;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.metric {
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.24);
  border-left: 4px solid var(--green);
  border-radius: 7px;
}

.metric strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.metric span {
  color: var(--muted);
}

.nav-card {
  min-height: 158px;
  text-align: left;
  padding: 26px;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.26);
  border-left: 6px solid var(--green-bright);
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
}

.nav-card strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.nav-card span {
  display: block;
  margin-top: 14px;
  color: #d0d5d3;
  line-height: 1.35;
}

.back {
  margin: 0 0 22px;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 16px;
  align-items: start;
}

.panel {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 7px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 19px;
}

.panel-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title h2 {
  margin: 0;
  flex: 0 0 auto;
}

.panel-title input {
  max-width: 380px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.filters label {
  margin-top: 0;
}

.action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.action-strip h2 {
  margin-bottom: 4px;
}

.action-strip button {
  margin-top: 0;
  flex: 0 0 auto;
}

.inline-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 10px 0 14px;
}

.inline-action button {
  margin-top: 0;
}

.meeting-notes {
  padding: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  margin-bottom: 14px;
}

.meeting-notes textarea {
  min-height: 90px;
}

.summary-box {
  padding: 14px;
  margin: 14px 0;
  background: rgba(8, 201, 170, .08);
  border: 1px solid rgba(8, 201, 170, .34);
  border-radius: 7px;
}

.summary-box p {
  margin: 8px 0;
  line-height: 1.4;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th, td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.26);
  vertical-align: top;
}

td button {
  margin: 0;
  padding: 7px 10px;
}

th {
  background: rgba(255,255,255,.06);
  color: #d8dddb;
}

.tag {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(8, 201, 170, .14);
  color: #78f0dd;
}

.status {
  min-height: 18px;
  color: var(--muted);
}

.muted-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.alert-panel {
  border-color: rgba(8, 201, 170, .55);
}

.alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.alert-card {
  padding: 14px;
  background: rgba(8, 201, 170, .10);
  border: 1px solid rgba(8, 201, 170, .35);
  border-radius: 7px;
}

.alert-card.danger {
  background: rgba(170, 65, 48, .16);
  border-color: rgba(255, 145, 120, .38);
}

.alert-card span {
  display: block;
  color: #8ef1de;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.alert-card.danger span {
  color: #ffb09d;
}

.alert-card strong {
  display: block;
  line-height: 1.25;
}

.alert-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.detail-grid div {
  padding: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
}

.detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.panel h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}

@media (max-width: 860px) {
  .two-columns {
    grid-template-columns: 1fr;
  }

  .app header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #logout {
    margin-left: 0;
  }

  .panel-title {
    display: block;
  }

  .panel-title input {
    max-width: none;
  }

  .action-strip {
    display: block;
  }

  .action-strip button {
    width: 100%;
  }

  .inline-action {
    grid-template-columns: 1fr;
  }
}
