@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #fff;
  --text: #20232d;
  --muted: #545d69;
  --faint: #f5f7f8;
  --border: #d9dfe4;
  --accent: #087f8c;
  --accent-dark: #066a75;
  --accent-soft: #eaf5f6;
  --error: #aa3434;
  --error-soft: #fff2f1;
  --radius: 8px;
  --shadow: 0 12px 36px #1d2b3b12;
  --font: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #109aa8;
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -1.15px;
  font-weight: 800;
}
h2 {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.65px;
  font-weight: 800;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: -0.25px;
}
p + p {
  margin-top: 12px;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  vertical-align: middle;
}
input,
textarea,
select {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 50;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 10px;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.site-header {
  height: 61px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.header-inner {
  height: 100%;
  padding: 0 44px;
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1808px;
  margin: 0 auto;
}
.wordmark {
  font-size: 33px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.5px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.main-nav {
  align-self: stretch;
  display: flex;
  gap: 42px;
  align-items: stretch;
}
.main-nav a,
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 550;
  padding: 0 8px;
}
.main-nav .active {
  color: var(--accent);
  font-weight: 800;
}
.main-nav .active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}
.account-menu {
  margin-left: auto;
  position: relative;
  z-index: 20;
}
.account-menu summary {
  display: flex;
  list-style: none;
  border-radius: 50%;
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4e9ec;
  color: #26303a;
  font-size: 17px;
  font-weight: 600;
}
.account-popover {
  position: absolute;
  top: 54px;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 290px;
  padding: 20px;
  display: grid;
  gap: 9px;
  overflow-wrap: anywhere;
}
.account-popover strong {
  font-size: 15px;
}
.account-popover span {
  font-size: 13px;
}
.page {
  width: calc(100% - 72px);
  max-width: 1640px;
  margin: 0 auto;
  padding: 16px 0 60px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 9px;
  min-width: 0;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 4px;
}
.heading-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid transparent;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 6px;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.button.secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}
.button.secondary:hover {
  background: var(--accent-soft);
}
.button.quiet {
  background: transparent;
  color: var(--muted);
}
.button.quiet:hover {
  background: var(--faint);
}
.full-width {
  width: 100%;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link {
  font-size: 18px;
  font-weight: 550;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--accent);
  border: 0;
  background: none;
  border-radius: 6px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--accent-soft);
}
.messages {
  margin: 0 0 20px;
}
.notice {
  padding: 14px 18px;
  border: 1px solid #b7d7da;
  background: #f0f9f9;
  border-radius: var(--radius);
  margin: 0 0 10px;
  color: #18555c;
  font-size: 15px;
}
.notice.error,
.notice.danger {
  border-color: #efc3bf;
  background: var(--error-soft);
  color: var(--error);
}
.notice ul {
  list-style: none;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.padded {
  padding: 24px;
}
.padded > h2 {
  margin-bottom: 16px;
}
.project-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 19px 4% 26px;
}
.project-steps li {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.4;
}
.project-steps li:before {
  content: "";
  position: absolute;
  top: 11px;
  left: -50%;
  right: 50%;
  height: 1px;
  background: #b9c1c9;
}
.project-steps li:first-child:before {
  display: none;
}
.step-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 1.5px solid #8d959f;
  border-radius: 50%;
  z-index: 1;
}
.step-circle .icon {
  width: 16px;
  height: 16px;
}
.project-steps .done .step-circle {
  border-color: #8d959f;
  background: #fff;
}
.project-steps .done .step-circle .icon {
  display: none;
}
.project-steps .current {
  color: var(--accent);
  font-weight: 800;
}
.project-steps .current .step-circle {
  width: 28px;
  height: 28px;
  margin-top: -3px;
  margin-bottom: -3px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px #f1f8f8;
}
.project-steps .current .step-circle:empty:after {
  content: "";
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 382px;
  gap: 20px;
  align-items: stretch;
}
.media-panel {
  min-width: 0;
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--border);
  height: 49px;
  padding: 0 18px;
  overflow: auto;
}
.tab {
  position: relative;
  flex-shrink: 0;
  border: 0;
  background: none;
  padding: 0 14px;
  font-size: 18px;
  color: var(--muted);
  font-weight: 550;
}
.tab.active {
  color: var(--accent);
  font-weight: 800;
}
.tab.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.tab:hover {
  color: var(--accent);
}
.tab-panel {
  min-height: 460px;
}
.gallery {
  padding: 15px 13px 18px;
}
.gallery-stage {
  border-radius: 6px;
  overflow: hidden;
  background: #f1f3f4;
}
.preview-image {
  width: 100%;
  height: clamp(285px, 25.7vw, 455px);
  object-fit: contain;
  background: #edf0f2;
  display: block;
}
.gallery-item figcaption {
  padding: 5px 15px;
  background: #f0f2f4;
  color: #353d47;
  font-size: 14px;
  line-height: 1.6;
}
.gallery-item > a {
  display: block;
}
.thumbnail-rail {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 1px 1px 3px;
}
.thumbnail {
  display: block;
  min-width: 100px;
  flex: 1 0 0;
  padding: 0;
  max-width: 220px;
  height: 90px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #f1f3f4;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbnail.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-color: var(--accent);
}
.thumbnail:hover {
  border-color: var(--accent);
}
.project-sidebar {
  padding: 24px 21px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.project-sidebar h2 {
  font-size: 28px;
  letter-spacing: -0.75px;
  margin-bottom: 6px;
}
.project-sidebar p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
}
.sidebar-actions {
  display: grid;
  gap: 13px;
}
.package-summary {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.package-summary h2 {
  font-size: 24px;
  margin-bottom: 9px;
}
.plain-list {
  list-style: none;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.sidebar-bottom {
  border-top: 1px solid var(--border);
  padding-top: 15px;
}
.sidebar-bottom .text-link {
  display: inline-block;
  margin-top: 17px;
}
.due-note {
  padding: 12px 0 0;
  font-size: 14px !important;
}
.due-note strong {
  font-size: 17px;
  color: var(--text);
  font-weight: 750;
}
.history-section {
  margin-top: 24px;
}
.history-section > h2 {
  margin-bottom: 8px;
}
.timeline {
  list-style: none;
  display: grid;
  gap: 8px;
}
.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
}
.timeline-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  margin-top: 1px;
  flex-shrink: 0;
}
.timeline-icon .icon {
  width: 16px;
  height: 16px;
}
.timeline p {
  line-height: 1.5;
}
.timeline time {
  font-size: 12px;
  display: block;
  margin-top: 2px;
}
.file-list {
  display: grid;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid #e8ecef;
  min-width: 0;
}
.file-row:last-child {
  border-bottom: 0;
}
.file-icon {
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #69838a;
  flex-shrink: 0;
}
.file-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.file-info > a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}
.file-info > a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.file-info .muted {
  font-size: 12px;
  margin-top: 3px;
}
.project-facts {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}
.project-facts dt {
  font-weight: 750;
  font-size: 14px;
  margin-bottom: 4px;
}
.project-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.empty-media {
  min-height: 495px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
  gap: 12px;
  background: #fcfdfd;
}
.empty-media-icon {
  display: grid;
  place-items: center;
  color: #83a2a8;
  margin-bottom: 6px;
}
.empty-media-icon .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.2;
}
.empty-media h2 {
  font-size: 23px;
}
.empty-media p {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
}
.empty-inline {
  padding: 24px 0;
  color: var(--muted);
}
.empty-inline .text-link {
  font-size: 15px;
  margin-top: 8px;
  display: inline-block;
}
.list-heading {
  margin: 30px 0 36px;
}
.project-list-heading,
.project-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) minmax(160px, 1fr) 180px 36px;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
}
.project-list-heading {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-top: 0;
  padding-bottom: 10px;
}
.project-row {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #e8ecef;
  border-radius: 6px;
  transition: background 0.15s;
}
.project-row:hover {
  background: #f6fafb;
}
.project-row-name {
  display: grid;
  gap: 3px;
}
.project-row-name strong {
  font-size: 18px;
  font-weight: 750;
}
.project-row-name .muted {
  font-size: 13px;
}
.status-text {
  font-size: 14px;
  color: var(--accent);
  font-weight: 650;
}
.project-row time {
  font-size: 13px;
}
.row-arrow {
  color: var(--accent);
}
.empty-state {
  max-width: 630px;
  padding: 64px 0 100px;
  margin: auto;
  text-align: center;
}
.empty-state-line {
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 27px;
}
.empty-state h2 {
  font-size: 29px;
  margin-bottom: 12px;
}
.empty-state p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 27px;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(260px, 1fr);
  gap: 64px;
  align-items: start;
  max-width: 1300px;
}
.project-form {
  min-width: 0;
}
.form-content {
  padding: 30px 32px;
  display: grid;
  gap: 23px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field label {
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
}
.required {
  font-size: 13px;
  color: #647881;
  margin-left: 4px;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  background: white;
  border: 1px solid #b9c4cc;
  border-radius: 6px;
  color: var(--text);
  padding: 11px 12px;
  min-height: 46px;
  line-height: 1.5;
  font-size: 15px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #77828c;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #e0f1f3;
  outline: none;
}
.field input[type="number"] {
  max-width: 180px;
}
.field input[type="file"] {
  padding: 8px 10px !important;
  font-size: 13px !important;
  overflow: hidden;
}
.field input[type="file"]::file-selector-button {
  padding: 7px 10px;
  border: 0;
  border-radius: 4px;
  background: #ecf3f5;
  color: #245d65;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 650;
  margin-right: 12px;
  cursor: pointer;
}
.field input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  margin: 0;
}
.field-checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 10px;
}
.field-checkbox label {
  grid-column: 2;
  grid-row: 1;
}
.field-checkbox input {
  grid-column: 1;
  grid-row: 1;
}
.field-checkbox .field-help {
  grid-column: 2;
}
.field-help {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.field-errors {
  font-size: 13px;
  color: var(--error);
  line-height: 1.6;
}
.field-errors ul {
  list-style: none;
}
.field-error input,
.field-error textarea,
.field-error select {
  border-color: #cf7777 !important;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 30px;
  border-top: 1px solid var(--border);
  background: #fcfdfd;
}
.form-aside {
  padding: 10px 0;
  max-width: 360px;
}
.form-aside h2 {
  font-size: 21px;
  margin-bottom: 15px;
}
.form-aside h3 {
  margin-top: 30px;
}
.form-aside .plain-list {
  gap: 14px;
  font-size: 14px;
  padding-left: 16px;
  list-style: disc;
}
.form-aside > p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 20px;
}
.stack-form {
  display: grid;
  gap: 21px;
}
.stack-form > .button {
  justify-self: start;
}
.stack-form > .button.full-width {
  justify-self: stretch;
}
.auth-page {
  max-width: 520px;
  width: calc(100% - 40px);
  padding-top: 84px;
}
.auth-panel {
  padding: 0 12px;
}
.auth-panel h1 {
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}
.auth-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 30px;
}
.auth-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 20px;
}
.auth-panel > .muted {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 25px;
}
.success-mark {
  width: 45px;
  height: 45px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 28px;
}
.success-mark .icon {
  width: 27px;
  height: 27px;
}
.question-section {
  padding: 27px 30px;
  margin-bottom: 26px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading p {
  font-size: 14px;
  margin-top: 5px;
}
.deadline-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 650;
  white-space: nowrap;
}
.deadline-label .icon {
  width: 18px;
  height: 18px;
}
.question-section textarea {
  max-width: 900px;
}
.round-details {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 14px;
  font-size: 14px;
}
.round-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 650;
}
.round-details > p,
.round-details > div {
  margin-top: 14px;
}
.answer-summary p {
  margin: 15px 0;
}
.dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  width: min(500px, calc(100% - 32px));
  color: var(--text);
  box-shadow: 0 20px 80px #172c3c33;
}
.dialog::backdrop {
  background: #17222f66;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font-size: 23px;
}
.dialog-heading .icon-button {
  width: 30px;
  height: 30px;
  margin-top: -2px;
}
.wide-dialog {
  width: min(620px, calc(100% - 32px));
}
.dialog > .muted {
  font-size: 14px;
  line-height: 1.7;
  margin: 20px 0 24px;
}
.help-steps {
  padding-left: 22px;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.65;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.filter-bar .field:first-child {
  width: 350px;
}
.filter-bar .field:nth-child(2) {
  width: 260px;
}
.filter-bar input,
.filter-bar select {
  font-size: 14px !important;
}
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}
.admin-table th {
  background: #f7f9fa;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  padding: 13px 18px;
  white-space: nowrap;
}
.admin-table td {
  border-top: 1px solid var(--border);
  padding: 17px 18px;
  font-size: 14px;
}
.admin-table tr:hover td {
  background: #fcfdfd;
}
.strong-link {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  text-decoration: none;
}
.strong-link:hover {
  color: var(--accent);
}
.table-secondary {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.empty-cell {
  text-align: center;
  padding: 48px 20px !important;
  color: var(--muted);
}
.overdue {
  color: var(--error);
  font-weight: 750;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}
.admin-main,
.admin-sidebar {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.admin-sidebar {
  position: sticky;
  top: 24px;
}
.admin-sidebar h2 {
  font-size: 21px;
}
.admin-sidebar .muted {
  font-size: 13px;
  line-height: 1.7;
}
.admin-sidebar .stack-form {
  margin-top: 20px;
}
.admin-sidebar .field-help {
  margin-top: 18px;
}
.admin-actions {
  display: grid;
  gap: 11px;
}
.admin-actions .button {
  font-size: 13px;
  padding: 11px 12px;
  min-height: 43px;
}
.compact-facts {
  display: grid;
  gap: 15px;
  margin: 18px 0;
}
.compact-facts dt {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 3px;
}
.compact-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.job-row {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}
.job-row > div {
  display: grid;
  gap: 3px;
}
.job-row strong {
  font-size: 13px;
}
.job-row .muted {
  font-size: 12px;
}
.job-row .field-errors {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.job-row .text-button {
  font-size: 12px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.comparison-grid figure {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.comparison-grid figcaption {
  padding: 8px 12px;
  background: #f6f8f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.comparison-grid img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f0f2f4;
}
.comparison-empty {
  display: grid;
  place-items: center;
  text-align: center;
  height: 220px;
  padding: 25px;
  font-size: 13px;
  color: var(--muted);
  background: #f8fafb;
}
.review-artifact {
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.review-artifact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.review-artifact h3 {
  margin-bottom: 12px;
}
.json-report {
  padding: 16px;
  border-radius: 6px;
  background: #f4f6f7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  max-height: 320px;
  overflow: auto;
}
.assessment-content {
  font-size: 14px;
  line-height: 1.7;
}
.fact-row {
  display: grid;
  gap: 2px;
  padding: 10px 0;
}
.fact-row .muted {
  font-size: 12px;
}
.spaced-heading {
  margin-top: 32px;
}
.totp-qr {
  width: 208px;
  height: 208px;
  display: block;
  margin: 0 auto 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
}
.totp-secret {
  display: block;
  overflow-wrap: anywhere;
  background: #f4f6f7;
  padding: 14px;
  margin: 14px 0;
  font-size: 15px;
  letter-spacing: 2px;
}
.auth-panel .round-details {
  margin-bottom: 25px;
}
.auth-panel input[name="code"] {
  font-size: 25px !important;
  letter-spacing: 7px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.8;
}
@media (min-width: 1650px) {
  .page {
    padding-top: 26px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
  .project-sidebar {
    padding: 27px;
  }
  .gallery {
    padding: 16px;
  }
  .thumbnail {
    height: 100px;
  }
  .project-steps {
    margin-bottom: 40px;
  }
}
@media (max-width: 1200px) {
  .header-inner {
    gap: 40px;
    padding: 0 30px;
  }
  .main-nav {
    gap: 22px;
  }
  .page {
    width: calc(100% - 48px);
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
  }
  .project-sidebar {
    padding: 22px 18px;
  }
  .project-sidebar h2 {
    font-size: 22px;
  }
  .project-sidebar p,
  .plain-list {
    font-size: 14px;
  }
  .button {
    font-size: 14px;
    padding: 11px 19px;
  }
  .preview-image {
    height: 315px;
  }
  .thumbnail {
    height: 70px;
    min-width: 84px;
  }
  .empty-media {
    min-height: 414px;
  }
  .form-layout {
    gap: 38px;
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .admin-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .padded {
    padding: 20px;
  }
  .admin-main,
  .admin-sidebar {
    gap: 18px;
  }
  .comparison-grid img,
  .comparison-empty {
    height: 180px;
  }
  .project-list-heading,
  .project-row {
    grid-template-columns: minmax(180px, 1.4fr) 1fr 140px 25px;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .tabs {
    gap: 12px;
  }
  .tab {
    font-size: 15px;
    padding: 0 10px;
  }
  .form-content {
    padding: 25px;
  }
  .form-aside {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 275px;
  }
  .preview-image {
    height: 290px;
  }
  .project-sidebar h2 {
    font-size: 20px;
  }
  .project-sidebar {
    gap: 18px;
    padding: 20px 16px;
  }
  .project-sidebar .button {
    font-size: 13px;
    padding: 11px 10px;
  }
  .sidebar-bottom .text-link {
    font-size: 14px;
  }
  .page {
    width: calc(100% - 36px);
  }
  .header-inner {
    padding: 0 22px;
    gap: 30px;
  }
  .wordmark {
    font-size: 28px;
  }
  .main-nav {
    gap: 15px;
  }
  .main-nav a,
  .nav-link {
    font-size: 14px;
    padding: 0 5px;
  }
  .project-steps {
    margin: 26px 0 29px;
  }
  .project-steps li {
    font-size: 14px;
  }
  .admin-layout {
    display: flex;
    flex-direction: column;
  }
  .admin-main,
  .admin-sidebar {
    width: 100%;
  }
  .admin-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .comparison-grid img,
  .comparison-empty {
    height: 220px;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 25px;
  }
  .project-list-heading,
  .project-row {
    padding-left: 12px;
    padding-right: 12px;
    grid-template-columns: minmax(180px, 1.4fr) 1fr 25px;
  }
  .project-list-heading > span:nth-child(3),
  .project-row > time {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-direction: column;
  }
  .subtitle {
    font-size: 15px;
  }
  .question-section {
    padding: 22px;
  }
  .deadline-label {
    display: none;
  }
}
@media (max-width: 700px) {
  .site-header {
    height: auto;
    min-height: 62px;
  }
  .header-inner {
    min-height: 62px;
    padding: 0 18px;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
  }
  .wordmark {
    font-size: 27px;
  }
  .main-nav {
    height: 48px;
    order: 3;
    flex-basis: 100%;
    border-top: 1px solid #edf0f2;
    gap: 30px;
  }
  .main-nav a,
  .nav-link {
    font-size: 14px;
    padding: 0 1px;
  }
  .account-menu {
    position: absolute;
    right: 18px;
    top: 12px;
  }
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .account-popover {
    top: 47px;
    right: 0;
  }
  .page {
    width: calc(100% - 32px);
    padding-top: 18px;
    padding-bottom: 36px;
  }
  .breadcrumb {
    font-size: 12px;
    gap: 10px;
    margin-bottom: 12px;
  }
  .page-heading {
    display: block;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
    line-height: 1.3;
  }
  .subtitle {
    font-size: 14px;
    line-height: 1.6;
  }
  .heading-actions {
    display: flex;
    flex-direction: row;
    margin-top: 18px;
    gap: 10px;
  }
  .heading-actions .button {
    font-size: 12px;
    padding: 9px 13px;
    min-height: 40px;
  }
  .project-steps {
    margin: 28px -6px 29px;
  }
  .project-steps li {
    font-size: 11px;
    gap: 10px;
  }
  .step-circle {
    width: 18px;
    height: 18px;
  }
  .project-steps li:before {
    top: 9px;
  }
  .project-steps .current .step-circle {
    width: 24px;
    height: 24px;
  }
  .step-circle .icon {
    width: 13px;
    height: 13px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tabs {
    height: 46px;
    padding: 0 10px;
    gap: 16px;
  }
  .tab {
    padding: 0 7px;
    font-size: 14px;
  }
  .tab-panel {
    min-height: unset;
  }
  .gallery {
    padding: 10px 9px 12px;
  }
  .preview-image {
    height: 250px;
  }
  .gallery-item figcaption {
    font-size: 11px;
    padding: 6px 9px;
  }
  .thumbnail-rail {
    gap: 8px;
    margin-top: 9px;
  }
  .thumbnail {
    min-width: 76px;
    flex: 0 0 24%;
    height: 61px;
  }
  .project-sidebar {
    padding: 22px;
    gap: 20px;
  }
  .project-sidebar h2 {
    font-size: 23px;
  }
  .project-sidebar p,
  .project-sidebar .plain-list {
    font-size: 14px;
  }
  .sidebar-actions {
    gap: 11px;
  }
  .project-sidebar .button {
    font-size: 15px;
    min-height: 45px;
  }
  .package-summary {
    padding-top: 17px;
  }
  .package-summary h2 {
    font-size: 20px;
  }
  .sidebar-bottom .text-link {
    font-size: 15px;
    margin-top: 12px;
  }
  .empty-media {
    min-height: 290px;
    padding: 32px 22px;
  }
  .empty-media h2 {
    font-size: 20px;
  }
  .empty-media p {
    font-size: 13px;
  }
  .empty-media-icon .icon {
    width: 34px;
    height: 34px;
  }
  .history-section {
    margin-top: 26px;
  }
  .history-section h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .timeline li {
    font-size: 13px;
    gap: 11px;
    padding: 12px;
  }
  .timeline-icon {
    width: 20px;
    height: 20px;
  }
  .timeline time {
    font-size: 10px;
  }
  .list-heading {
    margin: 15px 0 28px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
  }
  .list-heading .subtitle {
    font-size: 13px;
    max-width: 250px;
  }
  .list-heading > .button {
    font-size: 12px;
    padding: 10px 12px;
    min-height: 40px;
  }
  .list-heading .icon {
    width: 17px;
    height: 17px;
  }
  .project-list-heading {
    display: none;
  }
  .project-row {
    position: relative;
    grid-template-columns: 1fr 24px;
    padding: 20px 4px;
    gap: 10px;
  }
  .project-row-name {
    grid-column: 1;
  }
  .project-row-name strong {
    font-size: 17px;
  }
  .project-row-name .muted {
    font-size: 12px;
  }
  .project-row > .status-text {
    grid-column: 1;
    font-size: 12px;
  }
  .project-row > .row-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .empty-state {
    padding: 55px 12px;
  }
  .empty-state h2 {
    font-size: 24px;
  }
  .empty-state p {
    font-size: 14px;
  }
  .empty-state br {
    display: none;
  }
  .form-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .project-form,
  .form-layout > .stack-form {
    width: 100%;
  }
  .form-content {
    padding: 22px 18px;
    gap: 22px;
  }
  .form-aside {
    padding: 4px 3px;
  }
  .form-aside h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .form-aside .plain-list {
    font-size: 13px;
    gap: 9px;
  }
  .form-aside > p {
    font-size: 13px;
  }
  .field label {
    font-size: 13px;
  }
  .field input:not([type="checkbox"]):not([type="radio"]),
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .field-help {
    font-size: 11px;
  }
  .field-errors {
    font-size: 12px;
  }
  .form-footer {
    padding: 17px 16px;
    gap: 10px;
  }
  .form-footer .button {
    font-size: 13px;
    padding: 10px 13px;
  }
  .form-footer .button .icon {
    width: 17px;
    height: 17px;
  }
  .auth-page {
    width: calc(100% - 40px);
    padding-top: 50px;
    max-width: 480px;
  }
  .auth-panel {
    padding: 0 2px;
  }
  .auth-panel h1 {
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -1px;
    margin-bottom: 15px;
  }
  .auth-intro {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 27px;
  }
  .auth-note {
    font-size: 12px;
  }
  .auth-panel .button {
    font-size: 14px;
  }
  .success-mark {
    width: 38px;
    height: 38px;
  }
  .question-section {
    padding: 21px 18px;
  }
  .question-section h2 {
    font-size: 22px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .question-section .button {
    white-space: normal;
    text-align: left;
    font-size: 13px;
  }
  .question-section .button .icon {
    width: 18px;
    height: 18px;
  }
  .padded {
    padding: 20px 17px;
  }
  .padded > h2 {
    font-size: 22px;
  }
  .project-facts {
    gap: 18px;
  }
  .project-facts dd {
    font-size: 13px;
  }
  .file-row {
    gap: 7px;
    padding: 12px 0;
  }
  .file-icon {
    width: 26px;
    height: 32px;
  }
  .file-icon .icon {
    width: 20px;
    height: 20px;
  }
  .file-info {
    font-size: 13px;
  }
  .file-info .muted {
    font-size: 10px;
  }
  .file-row .icon-button {
    width: 32px;
    height: 32px;
  }
  .dialog {
    padding: 24px 20px;
  }
  .dialog-heading {
    margin-bottom: 20px;
  }
  .dialog-heading h2 {
    font-size: 21px;
  }
  .help-steps {
    font-size: 13px;
    gap: 10px;
  }
  .dialog > .muted {
    font-size: 12px;
  }
  .wide-dialog .button {
    font-size: 14px;
  }
  .admin-layout {
    gap: 18px;
  }
  .admin-sidebar {
    grid-template-columns: 1fr;
  }
  .admin-main {
    gap: 18px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .comparison-grid img,
  .comparison-empty {
    height: auto;
    min-height: 170px;
    max-height: 280px;
    object-fit: contain;
  }
  .comparison-grid figcaption {
    font-size: 11px;
  }
  .admin-sidebar h2 {
    font-size: 21px;
  }
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
  }
  .filter-bar .field:first-child {
    width: auto;
    grid-column: 1 / 3;
  }
  .filter-bar .field:nth-child(2) {
    width: auto;
  }
  .filter-bar > .button {
    font-size: 13px;
    padding: 10px 16px;
  }
  .admin-table th,
  .admin-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .table-secondary {
    font-size: 11px;
  }
  .admin-table td {
    font-size: 12px;
  }
  .strong-link {
    font-size: 14px;
  }
  .totp-qr {
    width: 190px;
    height: 190px;
  }
  .totp-secret {
    font-size: 13px;
  }
  .compact-facts dd {
    font-size: 13px;
  }
  .json-report {
    font-size: 11px;
  }
  .notice {
    font-size: 13px;
    padding: 12px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.project-heading {
  margin-bottom: 18px;
}
@media (max-width: 700px) {
  .project-heading {
    margin-bottom: 24px;
  }
}
.admin-table-wrap {
  position: relative;
}

.control-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.control-figure {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
}
.control-figure > a {
  display: block;
  background: #f0f2f4;
}
.control-figure img {
  width: 100%;
  height: 270px;
  object-fit: contain;
}
.control-figure figcaption {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}
.control-figure .round-details {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
}
.control-figure .json-report {
  font-size: 11px;
}
.control-figure .round-details summary {
  margin-bottom: 4px;
}
@media (max-width: 1200px) {
  .control-gallery {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .control-figure img {
    height: 220px;
  }
}

.mail-reconciliation,
.failed-jobs-section {
  margin-top: 28px;
}
.admin-main > .mail-reconciliation {
  margin-top: 0;
}
.section-intro {
  font-size: 14px;
  margin-top: -4px;
  margin-bottom: 20px;
}
.mail-note {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.mail-note:last-child {
  padding-bottom: 0;
}
.mail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.mail-heading h3 {
  font-size: 16px;
}
.mail-heading .muted {
  font-size: 13px;
  margin-top: 4px;
}
.mail-status {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
  padding-top: 3px;
}
.mail-note > .field-errors {
  margin-top: 12px;
}
.mail-action {
  margin-top: 16px;
  padding-top: 12px;
}
.mail-action .stack-form {
  max-width: 640px;
  margin-top: 18px;
}
.mail-action .button {
  font-size: 14px;
  white-space: normal;
  text-align: center;
}
.failed-job-row {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 9px;
  overflow-wrap: anywhere;
}
.failed-job-row:last-child {
  padding-bottom: 0;
}
.failed-job-row .muted {
  font-size: 12px;
  margin-top: 3px;
}
@media (max-width: 700px) {
  .mail-heading {
    display: block;
  }
  .mail-status {
    display: block;
    margin-top: 8px;
  }
  .mail-heading h3 {
    font-size: 15px;
  }
  .mail-reconciliation,
  .failed-jobs-section {
    margin-top: 20px;
  }
  .mail-action .button {
    font-size: 13px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .mail-heading .muted {
    font-size: 12px;
  }
}
