:root {
  --navy: #071a33;
  --blue: #123b68;
  --gold: #c99a42;
  --red: #9e1b32;
  --paper: #f3f5f7;
  --ink: #172033;
  --muted: #5e6c7e;
  --line: #d5dbe3;
  --white: #fff;
  --green: #176b52;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
a,
input,
select,
textarea {
  font: inherit;
}
.eyebrow {
  margin: 0;
  color: #8b1830;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 80% 15%, #31577f 0, transparent 30%),
    linear-gradient(145deg, #071a33, #102f55);
}
.login-card {
  width: min(460px, 100%);
  padding: clamp(1.5rem, 6vw, 3rem);
  background: #fff;
  border-top: 7px solid var(--gold);
  box-shadow: 0 28px 80px #0005;
}
.login-card img {
  width: min(300px, 100%);
  height: auto;
}
.login-card h1 {
  font:
    clamp(2rem, 7vw, 3rem) / 1.05 Georgia,
    serif;
  color: var(--navy);
  margin: 0.5rem 0;
}
.login-card label,
.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1.25rem 0;
  font-weight: 800;
}
.login-card input,
.filters input,
.filters select,
dialog select,
dialog textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #8c9bae;
  background: #fff;
  padding: 0.7rem;
  color: var(--ink);
}
.login-card button,
.header-actions button,
.header-actions a,
.panel-head button,
.contact-actions a,
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  padding: 0.65rem 1rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.login-card button {
  width: 100%;
}
.form-error {
  color: #a3172d;
  font-weight: 800;
}
.login-card small {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
}
.dashboard {
  min-height: 100vh;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem max(2vw, 1rem);
  background: var(--navy);
  color: #fff;
  border-bottom: 5px solid var(--gold);
}
.dash-header .eyebrow {
  color: #f1cb78;
}
.dash-header h1 {
  margin: 0.2rem 0;
  font:
    clamp(1.6rem, 4vw, 2.5rem) / 1.1 Georgia,
    serif;
}
.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.header-actions button,
.header-actions a {
  background: transparent;
  color: #fff;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem max(2vw, 1rem);
}
.stat-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  padding: 1rem;
}
.stat-grid span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}
.stat-grid strong {
  font:
    2.3rem/1.1 Georgia,
    serif;
  color: var(--navy);
}
.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  padding: 0 max(2vw, 1rem) 3rem;
}
.filters,
.submissions-panel {
  background: #fff;
  border: 1px solid var(--line);
}
.filters {
  padding: 1.1rem;
  align-self: start;
  position: sticky;
  top: 1rem;
}
.filters h2,
.panel-head h2 {
  font:
    1.8rem/1.1 Georgia,
    serif;
  color: var(--navy);
  margin: 0.3rem 0;
}
.filter-note {
  margin-top: 2rem;
  padding: 1rem;
  background: #eef3f8;
  border-left: 4px solid var(--blue);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
th,
td {
  text-align: left;
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  background: #eef3f8;
  color: #344054;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
td b {
  display: block;
  color: var(--navy);
}
td small {
  color: var(--muted);
}
.score-pill,
.status-pill,
.priority-pill {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}
.score-pill {
  background: #e7edf4;
  color: var(--navy);
}
.score-pill.low,
.priority-pill.high,
.priority-pill.urgent {
  background: #f9e5e8;
  color: #8b1830;
}
.score-pill.strong {
  background: #dff1e9;
  color: #105840;
}
.status-pill {
  background: #f4e8ca;
  color: #67480b;
}
.row-actions {
  display: flex;
  gap: 0.35rem;
}
.row-actions button,
.row-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.55rem;
  border: 1px solid #9aa8b8;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.empty {
  text-align: center;
  padding: 4rem 1rem;
}
dialog {
  width: min(860px, calc(100% - 2rem));
  max-height: 90vh;
  border: 0;
  padding: 0;
  box-shadow: 0 20px 80px #0006;
}
dialog::backdrop {
  background: #071a33bb;
}
.dialog-close {
  position: sticky;
  float: right;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.detail {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.detail h2 {
  font:
    clamp(2rem, 5vw, 3rem) / 1.05 Georgia,
    serif;
  color: var(--navy);
  margin: 0.3rem 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.detail-card {
  padding: 1rem;
  background: #f5f7fa;
  border: 1px solid var(--line);
}
.detail-card h3 {
  margin: 0.1rem 0 0.6rem;
  color: var(--navy);
}
.detail-card dl {
  margin: 0;
}
.detail-card dt {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
}
.detail-card dd {
  margin: 0 0 0.65rem;
}
.contact-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.contact-actions a {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.score-grid span {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
}
.notes-list article {
  border-left: 4px solid var(--gold);
  padding: 0.6rem 1rem;
  margin: 0.6rem 0;
  background: #fff;
}
.notes-list small {
  color: var(--muted);
}
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.save-button {
  margin-top: 0.6rem;
}
.empty-cell {
  padding: 3rem;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
  .filter-note {
    grid-column: 1/-1;
    margin-top: 0.5rem;
  }
  .dash-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  .stat-grid,
  .filters,
  .detail-grid,
  .workflow-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }
  .dash-header,
  .stat-grid,
  .workspace {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions > * {
    flex: 1;
  }
  .stat-grid strong {
    font-size: 1.9rem;
  }
  .panel-head {
    align-items: flex-start;
  }
  .detail {
    padding: 1rem;
  }
  .contact-actions a {
    flex: 1;
  }
}
