/* portail.css consolidé v2
   Factorisation sûre: regroupement des sélecteurs qui partagent exactement les mêmes déclarations,
   sans modifier le comportement ni le HTML.
*/

/* Layout, shell and login */

.atq-portal-body {
  margin: 0;
  font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: linear-gradient(180deg,#f7f2ec 0%,#f5f1ea 100%);
  color: #1e2430;

.atq-portal-shell,
.atq-portal-shell--login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.atq-portal-body--login {
  background: radial-gradient(circle at 50% 0,rgba(236,224,212,.82),transparent 42%),linear-gradient(180deg,#f7f2eb 0,#ede3d8 100%);
}

.atq-portal-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 40;
  transition: transform .22s ease,box-shadow .22s ease;
  background: rgba(250,247,243,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(139,94,60,.10);
  box-shadow: 0 10px 30px rgba(40,32,24,.04);
  flex-wrap: nowrap;
  align-items: center;
  min-height: 70px;
  padding: 10px 20px;
  gap: 14px;
  justify-content: space-between;
}

.atq-portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: #1d2430;
}

.atq-portal-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.atq-portal-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}

.atq-portal-brand span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

.atq-portal-user {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  color: #7a7f89;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.atq-portal-user a {
  color: #8b5e3c;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.atq-portal-brand__logo {
  color: #111827;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.atq-portal-brand__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.atq-portal-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 0;
}

.atq-portal-user span {
  font-weight: 600;
  min-width: 0;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atq-portal-footer {
  background: var(--atq-portal-footer-bg,#1f2b3b);
  color: var(--atq-portal-footer-text,#f5efe7);
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.atq-portal-footer__inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.atq-portal-footer__site {
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .76;
}

.atq-portal-footer__site:hover {
  text-decoration: underline;
  opacity: 1;
}

.atq-portal-footer__link {
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.atq-portal-footer__link:hover {
  text-decoration: underline;
  opacity: .92;
}

.atq-portal-footer--login {
  margin-top: 0;
  background: transparent;
  color: #655d55;
  border-top: 1px solid rgba(83,63,47,.08);
}

.atq-portal-footer--login .atq-portal-footer__inner {
  padding: 12px 20px 16px;
}

.atq-portal-user__name {
  min-width: 0;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atq-portal-user__logout,
.atq-portal-table--reports td:nth-child(1),
.atq-portal-table--reports td:nth-child(3),
.atq-portal-table--reports td:nth-child(5),
.atq-portal-table--reports td:nth-child(6) {
  white-space: nowrap;
}

.atq-portal-footer--login .atq-portal-footer__site {
  opacity: .66;
}

.atq-portal-auth {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 18px 26px;
  min-height: 0;
}

.atq-portal-auth__stage {
  width: min(100%,500px);
  display: grid;
  gap: 18px;
}

.atq-portal-auth__brand {
  display: flex;
  justify-content: center;
  margin: 0;
}

.atq-portal-auth__brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #2d2622;
  padding: 6px 0;
}

.atq-portal-auth__brand-link img {
  height: 48px;
  width: auto;
  display: block;
}

.atq-portal-auth__card {
  width: min(100%,480px);
  padding: 34px 32px 30px;
  border: 1px solid rgba(137,103,77,.13);
  border-radius: 28px;
  background: rgba(255,252,248,.97);
  box-shadow: 0 28px 80px rgba(79,57,40,.10),inset 0 1px 0 rgba(255,255,255,.72);
}

.atq-portal-auth__head {
  margin-bottom: 20px;
}

.atq-portal-auth__head h1 {
  margin: 8px 0 10px;
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #2d2622;
}

.atq-portal-auth__head p {
  margin: 0;
  max-width: 34ch;
  color: #6f665f;
  font-size: 14px;
  line-height: 1.6;
}

.atq-portal-auth__form {
  gap: 15px;
}

.atq-portal-auth__form label,
.atq-report-editor__toolbar-status {
  display: grid;
  gap: 6px;
}

.atq-portal-auth__form span {
  font-size: 12px;
  font-weight: 600;
  color: #5d564f;
}

.atq-portal-auth__form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d9d1c8;
  border-radius: 14px;
  background: #fff;
  color: #2d2622;
  font-size: 14px;
  line-height: 1.2;
}

.atq-portal-auth__form input:focus {
  outline: none;
  border-color: #8a5a44;
  box-shadow: 0 0 0 3px rgba(138,90,68,.12);
}

.atq-portal-auth__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.atq-portal-auth__actions .button.button-primary {
  min-height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: #8a5a44;
  color: #fff;
  box-shadow: none;
}

.atq-portal-auth__actions .button.button-primary:hover {
  background: #744733;
  color: #fff;
}

.atq-portal-auth__helper {
  color: #8a5a44;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.atq-portal-auth__helper:hover,
.atq-report-linked-file a:hover,
.atq-budget-mini-list li em a:hover,
.atq-budget-quote__meta a:hover {
  text-decoration: underline;
}

.atq-portal-auth__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(138,90,68,.18);
  background: rgba(255,247,240,.9);
  color: #6f4023;
  font-size: 13px;
  line-height: 1.5;
}

/* Shared app layout, cards and listing tables */

.atq-card {
  overflow: hidden;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(139,94,60,.12);
  box-shadow: 0 14px 35px rgba(40,32,24,.06);
  border-radius: 22px;
  padding: 18px;
}

.atq-card--compact {
  padding: 16px;
}

.atq-card--soft {
  background: rgba(255,255,255,.86);
}

.atq-card--highlight {
  border-color: rgba(139,94,60,.18);
  box-shadow: 0 18px 40px rgba(40,32,24,.08);
}

.atq-card__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.atq-card__header h2,
.atq-section-title {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.atq-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.atq-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8b5e3c;
  font-weight: 700;
}

.atq-btn,
.atq-summary-action,
.atq-document-card__action,
.atq-report-journal__link,
.atq-report-modehead__actions .button,
.atq-report-editor__toolbar-actions .button {
  --atq-btn-min-height: 38px;
  --atq-btn-padding: 0 16px;
  --atq-btn-radius: 10px;
  --atq-btn-border: #d8dbe3;
  --atq-btn-bg: #fff;
  --atq-btn-color: #6f482c;
  --atq-btn-font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--atq-btn-min-height);
  padding: var(--atq-btn-padding);
  box-sizing: border-box;
  border: 1px solid var(--atq-btn-border);
  border-radius: var(--atq-btn-radius);
  background: var(--atq-btn-bg);
  color: var(--atq-btn-color);
  font-family: inherit;
  font-size: var(--atq-btn-font-size);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
  margin: 0;
}

.atq-btn:hover,
.atq-summary-action:hover,
.atq-document-card__action:hover,
.atq-report-journal__link:hover,
.atq-report-modehead__actions .button:hover,
.atq-report-editor__toolbar-actions .button:hover {
  text-decoration: none;
  border-color: color-mix(in srgb,var(--atq-btn-border) 88%,#8b5e3c 12%);
  background: color-mix(in srgb,var(--atq-btn-bg) 92%,#efe7dd 8%);
  color: color-mix(in srgb,var(--atq-btn-color) 92%,#6f482c 8%);
}

.atq-btn:focus-visible,
.atq-summary-action:focus-visible,
.atq-document-card__action:focus-visible,
.atq-report-journal__link:focus-visible,
.atq-report-modehead__actions .button:focus-visible,
.atq-report-editor__toolbar-actions .button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139,94,60,.12);
}

.atq-btn:disabled,
.atq-btn[aria-disabled="true"],
.atq-report-modehead__actions .button:disabled,
.atq-report-editor__toolbar-actions .button:disabled {
  opacity: .62;
  cursor: not-allowed;
  box-shadow: none;
}

.atq-btn--primary {
  --atq-btn-border: #8b5e3c;
  --atq-btn-bg: #8b5e3c;
  --atq-btn-color: #fff;
}

.atq-btn--secondary {
  --atq-btn-border: #d8dbe3;
  --atq-btn-bg: #fff;
  --atq-btn-color: #6f482c;
}

.atq-btn--ghost {
  --atq-btn-border: transparent;
  --atq-btn-bg: rgba(246,241,234,.86);
  --atq-btn-color: #8b5e3c;
}

.atq-btn--sm {
  --atq-btn-min-height: 34px;
  --atq-btn-padding: 0 12px;
  --atq-btn-font-size: 12px;
}

.atq-report-modehead__actions .button.button-primary,
.atq-report-editor__toolbar-actions .button.button-primary {
  --atq-btn-border: #8b5e3c;
  --atq-btn-bg: #8b5e3c;
  --atq-btn-color: #fff;
}

.atq-report-modehead__actions .button.button-secondary,
.atq-report-editor__toolbar-actions .button.button-secondary {
  --atq-btn-border: #d8dbe3;
  --atq-btn-bg: #fff;
  --atq-btn-color: #6f482c;
}

.atq-report-editor__toolbar-actions .button.button-link-delete {
  --atq-btn-min-height: 34px;
  --atq-btn-padding: 0 12px;
  --atq-btn-font-size: 12px;
  --atq-btn-border: transparent;
  --atq-btn-bg: rgba(246,241,234,.86);
  --atq-btn-color: #8b5e3c;
}

.atq-badge,
.atq-entry-badge,
.atq-document-card__badge,
.atq-status-badge,
.atq-report-journal__type,
.atq-report-detail__chip {
  --atq-badge-min-height: 34px;
  --atq-badge-padding: 0 14px;
  --atq-badge-radius: 999px;
  --atq-badge-border: rgba(139,94,60,.14);
  --atq-badge-bg: rgba(139,94,60,.10);
  --atq-badge-color: #6f482c;
  --atq-badge-font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--atq-badge-min-height);
  padding: var(--atq-badge-padding);
  border-radius: var(--atq-badge-radius);
  border: 1px solid var(--atq-badge-border);
  background: var(--atq-badge-bg);
  color: var(--atq-badge-color);
  font-size: var(--atq-badge-font-size);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.atq-badge--neutral {
  --atq-badge-border: rgba(139,94,60,.14);
  --atq-badge-bg: rgba(139,94,60,.10);
  --atq-badge-color: #6f482c;
}

.atq-badge--info {
  --atq-badge-border: rgba(31,43,59,.10);
  --atq-badge-bg: rgba(31,43,59,.08);
  --atq-badge-color: #243447;
}

.atq-badge--success {
  --atq-badge-border: #cfe8d8;
  --atq-badge-bg: #e7f5ec;
  --atq-badge-color: #1d6a43;
}

.atq-badge--warning {
  --atq-badge-border: #f2d1b6;
  --atq-badge-bg: #fff1e7;
  --atq-badge-color: #b55b19;
}

.atq-badge--danger {
  --atq-badge-border: #d84e5d;
  --atq-badge-bg: #e84f5f;
  --atq-badge-color: #fff;
}

.atq-entry-badge.is-draft {
  --atq-badge-border: rgba(31,43,59,.10);
  --atq-badge-bg: rgba(31,43,59,.08);
  --atq-badge-color: #243447;
}

.atq-entry-badge.is-read {
  --atq-badge-border: #cfe8d8;
  --atq-badge-bg: #e7f5ec;
  --atq-badge-color: #1d6a43;
}

.atq-entry-badge.is-unread {
  --atq-badge-border: #f2d1b6;
  --atq-badge-bg: #fff1e7;
  --atq-badge-color: #b55b19;
}

.atq-empty-state {
  padding: 16px 18px;
  border: 1px dashed rgba(139,94,60,.16);
  border-radius: 18px;
  background: rgba(250,248,245,.72);
}

.atq-empty-state__title {
  margin: 0 0 6px;
  color: #1f2b3b;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.atq-empty-state__text {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

.atq-portal-main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 28px 22px 40px;
  flex: 1 0 auto;
}

.atq-portal-pagehead {
  margin-bottom: 16px;
}

.atq-portal-pagehead h1 {
  margin: 0 0 6px;
  line-height: 1.08;
  font-size: 22px;
  color: #1d2430;
}

.atq-portal-pagehead p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.atq-card,
.atq-portal-card,
.atq-project-card,
.atq-summary-card,
.atq-report-item {
  overflow: hidden;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(139,94,60,.12);
  box-shadow: 0 14px 35px rgba(40,32,24,.06);
  border-radius: 22px;
  padding: 18px;
}

.atq-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
}

.atq-card__header,
.atq-portal-card__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.atq-card__header h2,
.atq-section-title,
.atq-portal-card__head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.atq-portal-card__head a {
  font-size: 13px;
  color: #8b5e3c;
  font-weight: 700;
  text-decoration: none;
}

.atq-portal-card__head a.atq-btn {
  color: var(--atq-btn-color);
  font-size: var(--atq-btn-font-size);
}

.atq-portal-table {
  table-layout: auto;
  font-size: 14px;
}

.atq-portal-table th {
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #6b7280;
  font-size: 11px;
  padding: 12px 16px;
}

.atq-portal-table td {
  vertical-align: middle;
  padding: 12px 16px;
}

.atq-portal-table a {
  text-decoration: none;
}

.atq-portal-entry {
  max-width: 1100px;
}

.atq-portal-grid--dashboard {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  margin-bottom: 16px;
}

.atq-portal-grid--full {
  grid-template-columns: 1fr;
}

.atq-portal-grid--full .atq-portal-card,
.atq-project-card--stack .atq-portal-form textarea {
  width: 100%;
}

.atq-portal-filtermenu {
  margin: 0 0 14px;
}

.atq-portal-filtermenu>summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  color: #374151;
  background: rgba(255,255,255,.84);
  border-color: rgba(139,94,60,.14);
  box-shadow: 0 8px 20px rgba(40,32,24,.04);
}

.atq-portal-filtermenu[open]>summary {
  margin-bottom: 12px;
}

.atq-portal-filtermenu__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  border: 1px solid #e5e7eb;
  padding: 14px;
  background: rgba(255,255,255,.88);
  border-color: rgba(139,94,60,.12);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(40,32,24,.05);
}

.atq-portal-filtermenu__form label,
.atq-portal-filtermenu.is-open label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}

.atq-portal-filtermenu__form select,
.atq-portal-filtermenu.is-open select {
  min-width: 180px;
}

.atq-portal-filtermenu__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.atq-portal-table--entries th:nth-child(4),
.atq-portal-table--entries td:nth-child(4) {
  display: table-cell;
}

.atq-portal-project .atq-portal-table td,
.atq-portal-project .atq-portal-table th {
  padding-top: 8px;
  padding-bottom: 8px;
}

.atq-portal-table td strong {
  font-size: inherit;
}

.atq-portal-filtermenu.is-open {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.atq-portal-filtermenu.is-open .atq-portal-filtermenu__form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.atq-portal-filtermenu.is-open .atq-portal-filtermenu__actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.atq-portal-table--reports {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.35;
}

.atq-portal-table--reports thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #6b7280;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.atq-portal-table--reports tbody td {
  font-size: 13px;
  line-height: 1.35;
  padding: 12px 14px;
  border-top: 1px solid #eef0f3;
  vertical-align: middle;
  color: #111827;
}

.atq-portal-table--reports tbody tr:first-child td {
  border-top: none;
}

.atq-portal-table--reports a {
  font-size: 13px;
  line-height: 1.35;
  color: #8b5e3c;
  font-weight: 500;
  text-decoration: none;
}

.atq-portal-table--reports a:hover,
.atq-portal-card__head a:hover,
.atq-project-hero__address a:hover,
.atq-project-journey__item.is-done .atq-project-journey__body span,
.atq-step-card__action a:hover,
.atq-step-panel__resource-list a:hover,
.atq-step-panel__history-head a:hover,
.atq-summary-report-item__title a:hover,
.atq-report-journal__link:hover,
.atq-budget-mini-list__edit:hover,
.atq-project-log-item__title a:hover,
.atq-entry-list-item__link:hover {
  color: #6f482c;
}

.atq-portal-table--reports .atq-entry-badge {
  margin-left: 0;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  vertical-align: middle;
}

.atq-portal-table th:first-child,
.atq-portal-table td:first-child {
  padding-left: 18px;
}

.atq-portal-table th:last-child,
.atq-portal-table td:last-child {
  padding-right: 18px;
}

.atq-section-eyebrow,
.atq-portal-card__eyebrow,
.atq-portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8b5e3c;
  font-weight: 700;
}

.atq-portal-grid--dashboard-v2 {
  grid-template-columns: minmax(0,1.18fr) minmax(300px,.82fr);
}

.atq-card--compact,
.atq-portal-card--compact {
  padding: 16px;
}

.atq-card--soft,
.atq-portal-card--soft {
  background: rgba(255,255,255,.86);
}

.atq-portal-pagehead--listing {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.atq-portal-grid--dashboard-v2 + .atq-portal-grid--full,
.atq-portal-grid--full + .atq-portal-grid--full,
.atq-project-tabs[data-atq-portal-tabs],
.atq-report-editor__legacy {
  margin-top: 18px;
}

.atq-project-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.atq-project-tabs[data-atq-portal-tabs] [data-atq-portal-panel].is-active,
.atq-portal-form {
  display: block;
}

.atq-pagehead-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 130px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(139,94,60,.10);
}

.atq-pagehead-meta__value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: #1f2b3b;
}

.atq-dashboard-header {
  margin-bottom: 18px;
}

.atq-dashboard-header__content {
  max-width: 72ch;
}

.atq-dashboard-header h1 {
  margin: 8px 0 8px;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #1d2430;
}

.atq-dashboard-header p {
  margin: 0;
  color: #5d6673;
  font-size: 15px;
  line-height: 1.6;
}

.atq-dashboard-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.atq-dashboard-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.atq-dashboard-alert:hover,
.atq-dashboard-alert:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(40,32,24,.08);
  border-color: rgba(139,94,60,.22);
}

.atq-dashboard-alert__count {
  flex: 0 0 auto;
  min-width: 54px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #1f2b3b;
}

.atq-dashboard-alert__body {
  display: grid;
  gap: 4px;
}

.atq-dashboard-alert__body strong {
  font-size: 15px;
  line-height: 1.35;
  color: #1d2430;
}

.atq-dashboard-alert.is-warning .atq-dashboard-alert__count {
  color: #8a5a30;
}

.atq-dashboard-alert.is-info .atq-dashboard-alert__count {
  color: #36506e;
}

.atq-dashboard-section + .atq-dashboard-section {
  margin-top: 18px;
}

.atq-dashboard-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.atq-dashboard-project-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.atq-dashboard-project-card {
  display: grid;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease;
}

.atq-dashboard-project-card:hover,
.atq-dashboard-project-card:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(40,32,24,.08);
  border-color: rgba(139,94,60,.22);
}

.atq-dashboard-project-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.atq-dashboard-project-card__head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.atq-dashboard-project-card__badge.atq-badge {
  --atq-badge-min-height: 24px;
  --atq-badge-padding: 0 8px;
  --atq-badge-font-size: 11px;
  --atq-badge-border: #d84e5d;
  --atq-badge-bg: #e84f5f;
  --atq-badge-color: #fff;
  min-width: 24px;
  padding-inline: 8px;
  box-shadow: 0 8px 18px rgba(216,78,93,.22);
}

.atq-dashboard-project-card__head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #667085;
}

.atq-dashboard-project-card__status {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(139,94,60,.10);
  border-radius: 18px;
  background: rgba(248,243,237,.72);
}

.atq-dashboard-project-card__status-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.atq-dashboard-project-card__status-head span,
.atq-dashboard-project-card__priority-label {
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a7f89;
  font-weight: 700;
}

.atq-dashboard-project-card__status-head strong {
  font-size: 14px;
  line-height: 1.4;
  color: #1f2b3b;
}

.atq-dashboard-project-card__meter .atq-status-meter__label {
  margin-top: 8px;
  font-size: 12px;
}

.atq-dashboard-project-card__priority {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31,43,59,.04);
  border: 1px solid rgba(31,43,59,.08);
}

.atq-dashboard-project-card__priority strong {
  font-size: 16px;
  line-height: 1.4;
  color: #1d2430;
}

.atq-dashboard-project-card__priority p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5d6673;
}

.atq-dashboard-project-card__priority.is-warning {
  background: rgba(248,241,232,.95);
  border-color: rgba(138,90,48,.14);
}

.atq-dashboard-project-card__priority.is-danger {
  background: rgba(249,238,233,.95);
  border-color: rgba(140,76,44,.16);
}

.atq-dashboard-project-card__priority.is-info {
  background: rgba(239,244,249,.95);
  border-color: rgba(54,80,110,.14);
}

@media (max-width: 1080px) {
  .atq-dashboard-project-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 782px) {
  .atq-dashboard-alerts,
  .atq-dashboard-project-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .atq-dashboard-section__head,
  .atq-dashboard-project-card__head,
  .atq-dashboard-project-card__status-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.atq-pagehead-meta__label {
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a7f89;
}

.atq-project-hero h1 {
  color: #1d2430;
  margin: 8px 0 10px;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-size: 44px;
}

/* Project shell, hero and navigation */

.atq-project-hero {
  border: 1px solid rgba(139,94,60,.12);
  box-shadow: 0 14px 35px rgba(40,32,24,.06);
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(232px,.65fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
  border-radius: 26px;
  padding: 22px 24px;
  background: linear-gradient(140deg,rgba(255,255,255,.92) 0%,rgba(244,235,226,.94) 100%);
}

.atq-project-hero__subtitle {
  margin: 0;
  line-height: 1.65;
  color: #5d6673;
  max-width: 62ch;
  margin-top: 8px;
  font-size: 18px;
}

.atq-project-hero__chip,
.atq-portal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(139,94,60,.10);
  color: #6f482c;
  font-size: 13px;
  font-weight: 600;
}

.atq-project-hero__address a,
.atq-step-card__action a,
.atq-summary-report-item__title a,
.atq-report-linked-file a,
.atq-entry-list-item__link {
  color: #8b5e3c;
  font-weight: 700;
  text-decoration: none;
}

.atq-project-hero__address {
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  margin-top: 12px;
  display: block;
  width: 100%;
  word-break: break-word;
}
.atq-project-hero__side-value {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.06;
  color: #fff;
  letter-spacing: -.03em;
}

.atq-project-hero__content,
.atq-report-modehead__content {
  min-width: 0;
}

.atq-project-hero__side {
  align-self: start;
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(160deg,#1f2b3b 0%,#273548 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.atq-project-hero__side-label,
.atq-project-hero__side-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.atq-project-hero__side-status-label {
  margin-top: 0;
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.atq-project-hero__side-phase {
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.atq-project-hero__meter {
  gap: 4px;
}

.atq-project-hero__meter .atq-status-meter__bar {
  background: rgba(255,255,255,.16);
}

.atq-project-hero__meter .atq-status-meter__bars {
  max-width: 160px;
}

.atq-project-hero__meter .atq-status-meter__label {
  color: #fff;
  font-size: 15px;
}

.atq-project-hero__side-meta--activity {
  margin-top: 4px;
}

.atq-project-hero__next {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
}

.atq-project-hero__next strong {
  color: #fff;
}

.atq-project-hero .atq-portal-back {
  display: block;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.2;
}

.atq-project-hero .atq-portal-eyebrow {
  display: block;
  margin-bottom: 10px;
}

.atq-project-tabs[data-atq-portal-tabs] [data-atq-portal-panel],
.atq-project-tabs__nav--portal::-webkit-scrollbar,
.atq-project-journey__list::-webkit-scrollbar,
.atq-report-item summary::-webkit-details-marker,
.atq-report-editor__fold summary::-webkit-details-marker,
.atq-document-upload summary::-webkit-details-marker,
.atq-project-composer summary::-webkit-details-marker,
.atq-entry-list-item__actions:empty {
  display: none;
}

.atq-project-tabs__nav--portal {
  justify-content: flex-start;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.atq-project-tabs__nav--portal .atq-project-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139,94,60,.12);
  background: rgba(255,255,255,.7);
  color: #5f6471;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}

.atq-portal-project .atq-project-tabs[data-atq-portal-tabs],
.atq-step-panel__empty,
.atq-budget-admin-section + .atq-budget-admin-section {
  margin-top: 16px;
}

.atq-project-tabs__group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.atq-project-tabs__group--primary {
  flex-wrap: nowrap;
}

.atq-project-tabs__group--admin {
  margin-left: auto;
  padding: 4px 6px 4px 14px;
  border-left: 1px solid rgba(31,43,59,.12);
  background: rgba(248,244,238,.92);
  border-radius: 999px;
}

.atq-project-tabs__group-label {
  display: inline-block;
  padding-right: 2px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a7f89;
}

.atq-project-tabs__nav--portal .atq-project-tab:hover {
  background: rgba(255,255,255,.96);
  color: #1f2b3b;
  border-color: rgba(139,94,60,.18);
  box-shadow: 0 1px 2px rgba(31,43,59,.06);
}

.atq-project-tabs__nav--portal .atq-project-tab.is-active {
  background: #fff;
  color: #1f2b3b;
  border-color: rgba(31,43,59,.20);
  box-shadow: inset 0 -2px 0 #8b5e3c,0 1px 2px rgba(31,43,59,.08);
}

.atq-portal-project .atq-project-tabs__nav--portal {
  gap: 8px;
  margin-bottom: 10px;
}

.atq-portal-project .atq-project-tabs__nav--portal .atq-project-tab {
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1;
  border-radius: 15px;
}

.atq-project-tabs--projecthead {
  margin: 0 0 16px;
}

/* Project summary */

.atq-project-grid--summary-client {
  grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr);
}

.atq-project-grid--summary-dashboard {
  align-items: start;
  grid-template-columns: minmax(0,1fr);
}

.atq-project-grid--summary-dashboard > *,
.atq-portal-project .atq-summary-card--project,
.atq-portal-project .atq-project-grid--summary-client .atq-summary-card--project,
.atq-report-detail__meta-item--wide {
  grid-column: 1/-1;
}

.atq-project-grid--budget-clientpage {
  grid-template-columns: minmax(0,1.18fr) minmax(280px,.82fr);
  align-items: start;
}

.atq-project-grid--budget-adminpage {
  grid-template-columns: minmax(0,1.45fr) minmax(300px,.78fr);
  align-items: start;
}

.atq-portal-project .atq-project-banner {
  padding: 18px 20px;
  border-radius: 18px;
}

.atq-portal-project .atq-project-banner__title {
  line-height: 1.2;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
}

.atq-portal-project .atq-project-banner__meta,
.atq-portal-project .atq-project-banner__progress-head strong,
.atq-portal-project .atq-project-banner__progress-head span,
.atq-portal-project .button,
.atq-portal-project input,
.atq-portal-project select,
.atq-portal-project textarea {
  font-size: 12px;
  line-height: 1.35;
}

.atq-portal-project .atq-project-segment {
  height: 10px;
}

.atq-portal-project .atq-project-grid {
  gap: 14px;
}

.atq-portal-project .atq-project-card {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.45;
}

.atq-portal-project .atq-project-card h2 {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.atq-portal-project .atq-project-card p,
.atq-portal-project .atq-project-card li,
.atq-portal-project .atq-project-card td,
.atq-portal-project .atq-project-card th,
.atq-portal-project .atq-project-card span,
.atq-portal-project .atq-project-card a,
.atq-portal-project .atq-project-card div {
  font-size: inherit;
  line-height: inherit;
}

.atq-portal-project .atq-project-facts li {
  padding: 6px 0;
}

.atq-portal-project .atq-budget-head {
  margin: 0 0 14px;
  gap: 12px;
  align-items: center;
}

.atq-portal-project .atq-budget-head__label,
.atq-portal-project .atq-files-group h3,
.atq-report-editor__legacy summary {
  font-size: 13px;
}

.atq-portal-project .atq-budget-head__hint {
  font-size: 10px;
}

.atq-portal-project .atq-budget-signal {
  min-height: 44px;
  gap: 8px;
}

.atq-portal-project .atq-budget-signal__bar {
  border-radius: 5px;
  width: 18px;
}

.atq-portal-project .atq-budget-signal__bar--1 {
  height: 14px;
}

.atq-portal-project .atq-budget-signal__bar--2 {
  height: 21px;
}

.atq-portal-project .atq-budget-signal__bar--3 {
  height: 28px;
}

.atq-portal-project .atq-budget-signal__bar--4 {
  height: 35px;
}

.atq-portal-project .atq-budget-signal__bar--5 {
  height: 42px;
}

.atq-portal-project .atq-project-card .widefat td,
.atq-portal-project .atq-project-card .widefat th,
.atq-portal-project .atq-project-card table td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.atq-portal-project .atq-project-card .atq-project-facts strong,
.atq-portal-project .atq-project-card .atq-project-facts span {
  font-size: 12px;
  line-height: 1.45;
}

.atq-portal-project {
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.45;
}

.atq-portal-project * {
  box-sizing: border-box;
}

.atq-portal-project .atq-project-banner__main,
.atq-portal-project .atq-project-banner__progress,
.atq-portal-project .atq-project-tabpanel,
.atq-report-editor input,
.atq-report-editor select,
.atq-report-editor textarea,
.atq-report-editor .button {
  font-size: 13px;
  line-height: 1.45;
}

.atq-portal-project .atq-project-card h3 {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.atq-portal-project .atq-project-card strong,
.atq-portal-project .atq-project-card b {
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
}

.atq-portal-project .atq-project-card table {
  font-size: 12px;
}

.atq-portal-project .atq-project-card table th {
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding-top: 7px;
  padding-bottom: 7px;
}

.atq-portal-project .atq-project-banner__actions .button {
  padding: 8px 14px;
  font-size: 13px;
}

.atq-portal-project input[type="file"] {
  font-size: 12px;
  max-width: 100%;
}

.atq-portal-project input[type="file"]::file-selector-button,
.atq-portal-project input[type="file"]::-webkit-file-upload-button {
  font: inherit;
  padding: 8px 12px;
  border: 1px solid #d8dbe3;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  margin-right: 10px;
  cursor: pointer;
}

.atq-portal-project .atq-project-tabpanel .button {
  padding: 8px 14px;
  min-height: auto;
  border-radius: 10px;
}

.atq-portal-project .atq-files-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.atq-portal-project .atq-files-list li,
.atq-document-card__delete,
.atq-budget-page-card__note,
.atq-budget-admin-section__intro,
.atq-budget-mini-list__delete {
  margin: 0;
}

.atq-portal-project .atq-file-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  list-style: disc;
}

.atq-portal-project .atq-file-row__main,
.atq-summary-report-item__main,
.atq-document-card__main {
  min-width: 0;
  flex: 1 1 auto;
}

.atq-portal-project .atq-file-delete-form {
  margin: 0;
  flex: 0 0 auto;
}

.atq-portal-project .atq-file-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.atq-portal-project .atq-file-delete:hover {
  color: #111827;
  border-color: #98a2b3;
}

.atq-portal-project .atq-project-grid--summary,
.atq-portal-project .atq-project-grid--summary-admin {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
}

.atq-portal-project .atq-project-grid--summary .atq-project-card,
.atq-portal-project .atq-summary-card {
  min-height: 100%;
}

.atq-portal-project .atq-project-grid--summary-client {
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
}

.atq-portal-project .atq-summary-card__title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111827;
}

.atq-portal-project .atq-summary-files-group__title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 8px;
  color: #374151;
}

.atq-portal-project .atq-summary-files-group__subtitle {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111827;
}

.atq-portal-project .atq-summary-card--files .atq-files-list--summary li {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.atq-portal-project .atq-summary-card--files .atq-file-meta {
  font-size: 11px;
  color: #667085;
}

.atq-portal-project .atq-summary-report-item__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #667085;
  margin-bottom: 6px;
}

.atq-portal-project .atq-summary-report-item__title a {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  color: #8b5e3c;
  text-decoration: none;
}

.atq-portal-project .atq-summary-report-item__side {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 12px;
  color: #374151;
}

.atq-portal-project .atq-summary-report-item__comments {
  font-size: 12px;
  color: #374151;
}

.atq-portal-project .atq-summary-card--project .atq-project-facts--summary {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.atq-portal-project .atq-summary-card--project .atq-project-facts--summary li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

.atq-portal-project .atq-summary-card--project .atq-project-facts--summary strong {
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #7a7f89;
}

.atq-portal-project .atq-summary-card--project .atq-project-facts--summary span {
  font-size: 12px;
  line-height: 1.45;
  color: #111827;
}

.atq-portal-project .atq-summary-card h2.atq-summary-card__title,
.atq-portal-project .atq-summary-card h3.atq-summary-files-group__title,
.atq-portal-project .atq-summary-card h4.atq-summary-files-group__subtitle {
  letter-spacing: normal;
  text-transform: none;
}

.atq-portal-project .atq-summary-card--files .atq-files-list--summary a {
  display: inline-block;
  margin-right: 4px;
}

.atq-project-card .atq-files-group {
  padding: 14px 16px;
}

.atq-project-card h2 {
  line-height: 1.2;
}

.atq-project-card--stack .atq-portal-form__grid,
.atq-report-detail__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.atq-project-card--stack .atq-portal-form__grid label span {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: #6b7280;
}

.atq-project-card--stack .atq-report-editor .atq-portal-form__grid label > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Project journey / avancement */

.atq-project-journey {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(139,94,60,.10);
  box-shadow: 0 10px 25px rgba(40,32,24,.05);
  overflow: hidden;
}

.atq-project-journey__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.atq-project-journey__head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.atq-project-journey__head span,
.atq-section-head span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a7f89;
  font-weight: 700;
}

.atq-project-journey__list {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  margin-bottom: -2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.atq-project-journey__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(249,247,243,.9);
  border: 1px solid rgba(139,94,60,.10);
  scroll-snap-align: start;
  flex: 0 0 min(260px,74vw);
  min-width: 0;
}

.atq-project-journey__item.is-current {
  box-shadow: 0 10px 22px rgba(111,72,44,.08);
  background: rgba(244,235,226,.95);
  border-color: rgba(139,94,60,.24);
}

.atq-project-journey__item.is-done .atq-project-journey__index {
  background: #8b5e3c;
  color: #fff;
}

.atq-project-journey__index {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ede2d6;
  color: #6f482c;
  font-weight: 800;
}

.atq-project-journey__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.atq-project-journey__body strong {
  line-height: 1.35;
  color: #1f2b3b;
  font-size: 13px;
}

.atq-project-journey__body span {
  color: #7a7f89;
  font-size: 11px;
}

.atq-project-journey__status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #efe7dd;
  color: #6f482c;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.atq-project-journey__timing {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #667085;
}

.atq-project-journey__update,
.atq-project-journey__updated-at,
.atq-project-journey__warning {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #374151;
}

.atq-project-journey__updated-at {
  color: #667085;
}

.atq-project-journey__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.atq-project-journey__item.is-selected {
  border: 2px solid rgba(31,43,59,.28);
  box-shadow: 0 0 0 3px rgba(31,43,59,.06);
}

.atq-project-journey__item.is-done {
  background: rgba(246,240,233,.95);
}

.atq-project-journey__item.is-launch {
  border-style: dashed;
}

.atq-project-journey__item.is-launch .atq-project-journey__body span,
.atq-portal-rowlink:hover {
  color: #8b5e3c;
}

.atq-step-list,
.atq-report-list,
.atq-report-editor__blocks,
.atq-report-editor__folds,
.atq-document-list,
.atq-prospect-list,
.atq-project-list,
/* Listing cards, entries and reports */

.atq-entry-list {
  display: grid;
  gap: 12px;
}

.atq-step-card {
  border: 1px solid rgba(139,94,60,.12);
  background: rgba(250,248,245,.86);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  grid-template-columns: 56px minmax(0,1fr) auto;
  align-items: center;
}

.atq-step-card__meta,
.atq-project-list-item__meta,
.atq-prospect-card__meta,
.atq-entry-list-item__meta {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.atq-step-card__top span,
.atq-project-list-item__progress-top span,
.atq-project-list-item__next span,
.atq-project-list-item__aside span,
.atq-prospect-card__grid span {
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a7f89;
  font-weight: 700;
}

.atq-step-card__top strong {
  line-height: 1.4;
  color: #1f2b3b;
  font-size: 16px;
}

.atq-step-card__body,
.atq-project-list-item__next,
.atq-project-list-item__aside,
.atq-prospect-card__grid div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.atq-step-card__index {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0e5d9;
  color: #6f482c;
  font-weight: 800;
}

.atq-step-card__top,
.atq-project-list-item__titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.atq-step-card__action {
  padding-left: 16px;
  white-space: nowrap;
}

.atq-step-card.is-done .atq-step-card__index {
  background: rgba(26,127,92,.14);
  color: #16674d;
}

.atq-step-card.is-current {
  border-color: rgba(139,94,60,.26);
  box-shadow: 0 10px 24px rgba(111,72,44,.08);
}

.atq-step-panel {
  border-color: rgba(139,94,60,.12);
  background: linear-gradient(145deg,rgba(255,252,248,.98) 0%,rgba(249,244,237,.94) 100%);
}

.atq-step-panel__head,
.atq-project-list-item__head,
.atq-prospect-card__head,
.atq-entry-list-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.atq-step-panel__head h2 {
  margin: 4px 0 0;
}

.atq-step-panel__eyebrow {
  display: inline-block;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #7a7f89;
}

.atq-step-panel__timing {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #667085;
}

.atq-step-panel__focus {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(139,94,60,.10);
  background: rgba(255,255,255,.72);
}

.atq-step-panel__focus--report .atq-summary-report-item {
  padding: 0;
  border: 0;
  background: transparent;
}

.atq-step-panel__warning {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(139,94,60,.10);
  background: rgba(248,241,232,.9);
}

.atq-step-panel__warning--incident {
  border-color: rgba(216,78,93,.22);
  background: rgba(232,79,95,.08);
}

.atq-step-panel__focus h3,
.atq-step-panel__warning h3,
.atq-step-panel__resource-group h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
}

.atq-step-panel__focus p,
.atq-step-panel__warning p {
  margin: 0;
  line-height: 1.6;
}

.atq-step-panel__resource-group {
  padding: 14px 16px;
  border: 1px solid rgba(139,94,60,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
}

.atq-step-panel__key-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
  color: #1f2b3b;
  line-height: 1.55;
}

.atq-step-panel__resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.atq-step-panel__resource-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}

.atq-step-panel__resource-list li span {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.atq-step-panel__resource-list a,
.atq-step-panel__history-head a {
  color: #8b5e3c;
  text-decoration: none;
  font-weight: 600;
}

.atq-step-panel__history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.atq-step-panel__history-item {
  padding: 12px 14px;
  border: 1px solid rgba(139,94,60,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

.atq-step-panel__history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.atq-document-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.atq-step-panel__history-head span {
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
  white-space: nowrap;
}

.atq-step-panel__history-item p {
  margin: 8px 0 0;
  color: #1f2b3b;
  line-height: 1.6;
}

.atq-project-list-item,
.atq-prospect-card,
.atq-entry-list-item {
  border: 1px solid rgba(139,94,60,.12);
  background: rgba(250,248,245,.86);
  border-radius: 18px;
  padding: 14px 16px;
}

.atq-project-list-item h3,
.atq-prospect-card h3,
.atq-entry-list-item h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.14;
  letter-spacing: -.02em;
}

.atq-project-list-item__secondary,
.atq-summary-card--files li + li,
.atq-files-list li+li {
  margin-top: 6px;
}

.atq-project-list-item__alert {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #6f482c;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: normal;
}

.atq-project-list-item__alert::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: .52;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.atq-project-list-item__alert.is-pending {
  color: #8a5a30;
}

.atq-project-list-item__alert.is-overdue {
  color: #6f4023;
}

.atq-project-list-item__alert:hover,
.atq-project-list-item__alert:focus-visible {
  color: #55311c;
  text-decoration: underline;
}

.atq-project-list-item__progress,
.atq-report-editor__fold-body > * + *,
.atq-report-editor__block > label + label,
.atq-report-editor__block > .atq-portal-form__grid + label,
.atq-budget-quote,
.atq-project-log-item__footer {
  margin-top: 12px;
}

.atq-project-list-item__progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.atq-project-list-item__progress-top strong,
.atq-project-list-item__next strong,
.atq-project-list-item__aside strong,
.atq-prospect-card__grid strong {
  font-size: 14px;
  line-height: 1.4;
  color: #1f2b3b;
}

.atq-project-list-item__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.atq-summary-files-group + .atq-summary-files-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.atq-summary-files-group h3,
.atq-summary-files-group h4 {
  margin: 0 0 8px;
}

.atq-summary-report-list,
.atq-report-comments__list,
.atq-project-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atq-summary-report-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(249,247,243,.86);
  border: 1px solid rgba(139,94,60,.10);
}

.atq-summary-report-item__meta {
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.atq-summary-report-item__title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.atq-summary-report-item__side {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 12px;
}

.atq-summary-report-item__comments,
.atq-report-item__count,
.atq-file-meta {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.atq-summary-report-item__excerpt {
  margin: 8px 0 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.55;
}

.atq-summary-card--files .atq-summary-files-group h3,
.atq-summary-card--files .atq-summary-files-group h4 {
  font-size: 13px;
  line-height: 1.35;
}

.atq-summary-card--notes .atq-project-log-item__content {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atq-summary-card--files .atq-files-list--summary {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
}

.atq-summary-files-group li,
.atq-file-row__main {
  line-height: 1.5;
}

/* Summary cards */

.atq-summary-card__title {
  margin: 0 0 14px;
  line-height: 1.2;
  font-size: 20px;
}

.atq-summary-files-group__title {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.atq-summary-files-group__subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.atq-summary-files-group {
  padding: 0;
}

.atq-summary-card--files .atq-files-list,
.atq-summary-card--notes .atq-project-log-list,
.atq-summary-card--project .atq-project-facts--summary {
  margin: 0;
  padding: 0;
  list-style: none;
}

.atq-summary-card--project .atq-project-facts--summary li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eef0f3;
}

.atq-summary-card--project .atq-project-facts--summary li:last-child {
  border-bottom: 0;
}

.atq-summary-card--project .atq-project-facts--summary strong {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.atq-summary-card--project .atq-project-facts--summary span {
  font-size: 14px;
  color: #111827;
}

.atq-summary-card--full {
  width: 100%;
  grid-column: 1/-1;
}

.atq-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.atq-summary-action {
  --atq-btn-min-height: 0;
  --atq-btn-padding: 10px 14px;
  --atq-btn-radius: 999px;
  --atq-btn-border: transparent;
  --atq-btn-bg: #f6f1ea;
  --atq-btn-color: #8b5e3c;
  --atq-btn-font-size: 13px;
}

.atq-summary-action:hover {
  --atq-btn-bg: #efe7dd;
}

.atq-report-send-preview > :first-child,
.atq-report-detail__rich > :first-child,
.atq-report-detail__summary > :first-child,
.atq-report-detail__callout > :first-child,
.atq-report-detail__info-body > :first-child {
  margin-top: 0;
}

.atq-report-send-preview > :last-child,
.atq-report-detail__rich > :last-child,
.atq-report-detail__summary > :last-child,
.atq-report-detail__callout > :last-child,
.atq-report-detail__info-body > :last-child,
.atq-project-log-item__content p:last-child {
  margin-bottom: 0;
}

.atq-report-detail__section,
.atq-report-detail__followups,
.atq-budget-reference-list {
  display: grid;
  gap: 10px;
}

.atq-report-journal[open],
.atq-report-editor__fold[open] summary {
  background: #fff;
}

.atq-report-detail__facts {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.atq-report-detail__facts div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(139,94,60,.10);
}

.atq-report-detail__facts div:first-child {
  padding-top: 0;
  border-top: 0;
}

.atq-documents-section__head h2 {
  margin: 0 0 6px;
}

.atq-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.atq-summary-card--compact {
  padding-top: 14px;
  padding-bottom: 14px;
}

.atq-summary-card--compact .atq-summary-card__title {
  margin-bottom: 10px;
}

.atq-summary-card--files .atq-summary-actions {
  gap: 8px;
}

.atq-summary-card--files .atq-summary-action {
  padding: 9px 13px;
}

/* Summary V2 */

.atq-summary-v2 {
  display: grid;
  gap: 18px;
}

.atq-summary-v2-retain,
.atq-summary-v2-journey,
.atq-summary-v2-actions {
  display: grid;
  gap: 16px;
}

.atq-summary-v2__pilot,
.atq-summary-v2-journey__grid,
.atq-summary-v2-actions__grid {
  display: grid;
  gap: 16px;
}

.atq-summary-v2__pilot {
  grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr);
  align-items: stretch;
}

.atq-summary-v2-journey__grid,
.atq-summary-v2-actions__grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.atq-summary-v2-actions__grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
}

.atq-summary-v2-actions__grid > :only-child {
  grid-column: 1 / -1;
}

.atq-summary-v2-pilot-card {
  display: grid;
  gap: 16px;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.atq-summary-v2-pilot-card--budget {
  align-content: start;
  align-self: start;
  gap: 12px;
  grid-template-rows: auto auto auto;
  height: auto;
}

.atq-summary-v2-pilot-card__head > .atq-btn {
  margin-left: auto;
}

.atq-summary-v2-pilot-card__head,
.atq-summary-v2-sectionhead,
.atq-summary-v2-subhead {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.atq-summary-v2-sectionhead {
  flex-wrap: wrap;
}

.atq-summary-v2-sectionhead--actions {
  align-items: center;
}

.atq-summary-v2-sectionhead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atq-summary-v2-list-empty {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.atq-summary-v2-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(217,45,32,.18);
}

.atq-summary-v2-mini-list,
.atq-summary-v2-points,
.atq-summary-v2-timeline,
.atq-summary-v2-actions__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.atq-summary-v2-mini-list,
.atq-summary-v2-timeline,
.atq-summary-v2-actions__list {
  display: grid;
  gap: 10px;
  align-content: start;
  grid-auto-rows: max-content;
}

.atq-summary-v2-mini-list li,
.atq-summary-v2-timeline li,
.atq-summary-v2-actions__item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(139,94,60,.10);
  border-radius: 16px;
  background: rgba(249,247,243,.72);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.atq-summary-v2-mini-list li strong,
.atq-summary-v2-timeline li strong,
.atq-summary-v2-actions__item strong {
  color: #1f2b3b;
  font-size: 14px;
  line-height: 1.4;
}

.atq-summary-v2-mini-list__link > div > p,
.atq-summary-v2-timeline li small,
.atq-summary-v2-timeline li p,
.atq-summary-v2-actions__item p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.atq-summary-v2-mini-list li {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  align-self: start;
}

.atq-summary-v2-mini-list__link {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.atq-summary-v2-mini-list__link > div {
  min-width: 0;
}

.atq-status-meter {
  --atq-status-meter-bar-radius: 999px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.atq-status-meter__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 42px;
  width: max-content;
}

.atq-status-meter__bar {
  flex: 0 0 18px;
  width: 18px;
  align-self: flex-end;
  height: var(--atq-status-meter-bar-height, 8px);
  border-radius: var(--atq-status-meter-bar-radius);
  background: rgba(148,163,184,.20);
}

.atq-status-meter__bar.is-on {
  background: currentColor;
}

.atq-status-meter.is-success {
  color: #1d6a43;
}

.atq-status-meter.is-warning {
  color: #b55b19;
}

.atq-status-meter.is-danger {
  color: #b42318;
}

.atq-status-meter__label {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: #1f2b3b;
}

.atq-summary-v2-retain__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 18px;
}

.atq-summary-v2-points {
  display: grid;
  gap: 10px;
}

.atq-summary-v2-points li {
  position: relative;
  padding: 0 0 0 18px;
  color: #1f2b3b;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.atq-summary-v2-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8b5e3c;
}

.atq-summary-v2-retain__summary {
  color: #374151;
  line-height: 1.7;
}

.atq-summary-v2-actions__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.atq-summary-v2-actions__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.atq-summary-v2-actions__meta .atq-summary-v2-retain__meta {
  margin: 0;
}

.atq-summary-v2-actions__meta .atq-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.atq-summary-v2-mini-list .atq-badge,
.atq-summary-v2-actions__badges .atq-badge,
.atq-summary-v2-subhead .atq-badge {
  --atq-badge-min-height: 24px;
  --atq-badge-padding: 0 9px;
  --atq-badge-font-size: 10px;
  border-color: var(--atq-badge-border);
  background: var(--atq-badge-bg);
  color: var(--atq-badge-color);
  opacity: .94;
}

.atq-summary-v2-pilot-card .atq-card__footer {
  justify-content: flex-end;
  margin-top: 10px;
}

.atq-summary-v2-retain__meta {
  margin: 0 0 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .02em;
}

.atq-summary-v2-retain__report-title {
  margin: 0 0 10px;
  color: #1f2b3b;
  font-size: 18px;
  line-height: 1.25;
}

.atq-summary-v2-journey__group,
.atq-summary-v2-actions__group {
  display: grid;
  gap: 12px;
  align-content: start;
  align-self: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid rgba(139,94,60,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
}

.atq-summary-v2-subhead h3 {
  margin: 0;
  color: #1f2b3b;
  font-size: 16px;
  line-height: 1.3;
}

.atq-summary-v2-actions__item p {
  color: #5f6471;
}

.atq-summary-v2-actions__list,
.atq-summary-v2-actions__item,
.atq-summary-v2-actions__item > *,
.atq-summary-v2-actions__meta,
.atq-summary-v2-actions__meta > *,
.atq-summary-v2-mini-list__link,
.atq-summary-v2-mini-list__link > * {
  min-width: 0;
}

.atq-summary-v2-actions__item,
.atq-summary-v2-mini-list li,
.atq-summary-v2-mini-list__link {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.atq-summary-v2-actions__item strong,
.atq-summary-v2-actions__item p,
.atq-summary-v2-retain__meta,
.atq-summary-v2-mini-list__link > div > p {
  overflow-wrap: anywhere;
}

.atq-entry-badge {
  --atq-badge-min-height: 0;
  --atq-badge-padding: 4px 9px;
  --atq-badge-border: transparent;
  --atq-badge-font-size: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

.atq-entry-badge.is-read {
  --atq-badge-border: #cfe8d8;
  --atq-badge-bg: #e7f5ec;
  --atq-badge-color: #1d6a43;
}

.atq-entry-badge.is-unread {
  --atq-badge-border: #f2d1b6;
  --atq-badge-bg: #fff1e7;
  --atq-badge-color: #b55b19;
}

.atq-report-comment,
.atq-project-log-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(249,247,243,.86);
  border: 1px solid rgba(139,94,60,.10);
}

.atq-report-item summary {
  list-style: none;
  cursor: pointer;
  background: #f8f8fa;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.atq-report-item summary small {
  display: block;
  color: #667085;
  font-size: 12px;
  margin-top: 4px;
}

.atq-report-item__body,
.atq-project-composer__body {
  padding: 18px;
}

/* Reports and report detail */

.atq-report-journal {
  border-color: #ece7df;
  background: #fcfaf7;
}

.atq-report-journal__summary {
  background: transparent;
}

.atq-report-journal__main {
  min-width: 0;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
}

.atq-report-journal__top,
.atq-budget-quote__summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.atq-report-journal__eyebrow,
.atq-report-journal__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.atq-report-journal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  line-height: 1.4;
  color: #667085;
  margin: 0;
  align-self: start;
}

.atq-report-journal__type {
  text-transform: uppercase;
  letter-spacing: .03em;
}

.atq-report-journal__title {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  color: #111827;
  margin: 0;
  align-self: start;
}

.atq-report-journal__summarytext {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  align-self: start;
}

.atq-report-journal__takeaways {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: start;
}

.atq-report-journal__takeaways li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #111827;
}

.atq-report-journal__takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #b07b53;
}

.atq-report-journal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.atq-report-journal__link {
  gap: 6px;
}

.atq-report-journal[open] .atq-report-journal__summary {
  border-bottom: 1px solid #eceef3;
}

.atq-report-journal__main:has(.atq-report-journal__takeaways) {
  grid-template-columns: minmax(240px,35%) minmax(0,1fr);
  column-gap: 24px;
  row-gap: 12px;
  align-items: start;
}

.atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__top {
  grid-column: 1 / -1;
  grid-row: 1;
}

.atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  align-self: start;
}

.atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__meta {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: start;
}

.atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__takeaways {
  grid-column: 1;
  grid-row: 3 / span 2;
  margin: 0;
  align-self: start;
}

.atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__summarytext {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  align-self: start;
}

.atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__footer {
  grid-column: 2;
  grid-row: 4;
  justify-content: flex-start;
  margin-top: 2px;
}

.atq-report-comments,
.atq-report-editor__section + .atq-report-editor__section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eceef3;
}

.atq-report-comments h3,
.atq-report-editor__section h3,
.atq-files-group h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.3;
}

.atq-report-editor {
  gap: 0;
}

.atq-report-editor__intro {
  margin: 0 0 6px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.atq-report-modehead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.atq-report-modehead__content h2 {
  margin: 0 0 4px;
}

.atq-report-modehead__actions,
.atq-report-editor__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.atq-report-editor__notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #f1c7bf;
  background: #fff7f5;
  color: #9f3c2a;
  font-size: 13px;
  line-height: 1.5;
}

.atq-report-editor__notice strong {
  display: block;
  margin-bottom: 6px;
}

.atq-report-editor__notice ul,
.atq-files-list {
  margin: 0;
  padding-left: 18px;
}

.atq-report-editor__legend {
  margin: 0 0 14px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.atq-report-editor__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #ece7df;
  border-radius: 16px;
  background: #fcfaf7;
}

.atq-report-editor__toolbar-status span {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7a7f89;
}

.atq-report-editor__toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.atq-report-editor input::placeholder,
.atq-report-editor textarea::placeholder {
  font-size: 12px;
  color: #98a2b3;
}

.atq-report-editor label > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

.atq-report-editor__hint {
  display: flex;
  align-items: flex-end;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.atq-report-editor__fold {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fafbfc;
  overflow: hidden;
}

.atq-report-editor__fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}

.atq-report-editor__fold summary > span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.atq-report-editor__fold summary strong,
.atq-report-editor__block-head strong {
  font-size: 13px;
  line-height: 1.3;
  color: #111827;
}

.atq-report-editor__fold summary small {
  font-size: 11px;
  line-height: 1.35;
  color: #667085;
}

.atq-report-editor__fold summary > span:last-child {
  font-size: 11px;
  line-height: 1.35;
  color: #667085;
  white-space: nowrap;
}

.atq-report-editor__fold-body {
  padding: 0 16px 16px;
}

.atq-report-editor__block {
  padding: 14px;
  border: 1px solid #eceef3;
  border-radius: 14px;
  background: #fafbfc;
}

.atq-report-editor__block-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
}

.atq-report-editor__block-head span {
  font-size: 11px;
  line-height: 1.3;
  color: #667085;
}

.atq-report-editor__required {
  color: #d92d20;
  font-weight: 700;
}

.atq-report-editor__required-note {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f4ebe3;
  color: #8b5e3c;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.atq-report-send-preview {
  padding: 16px;
  border: 1px solid #ece7df;
  border-radius: 16px;
  background: #fff;
  line-height: 1.65;
  color: #1f2b3b;
}

.atq-report-send-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.atq-report-comment + .atq-report-comment,
.atq-project-log-item + .atq-project-log-item {
  margin-top: 10px;
}

.atq-report-item summary > span:last-child,
.atq-document-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.atq-report-linked-file {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5f6471;
}

.atq-report-detail {
  display: grid;
  gap: 18px;
}

.atq-report-detail__section h3,
.atq-report-detail__info-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: #1f2b3b;
}

.atq-report-detail__meta {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px 14px;
}

.atq-report-detail__meta-item,
.atq-report-detail__followup {
  padding: 14px 16px;
  border: 1px solid rgba(139,94,60,.10);
  border-radius: 16px;
  background: rgba(249,247,243,.72);
}

.atq-report-detail__meta-item span,
.atq-report-detail__facts dt {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7a7f89;
}

.atq-report-detail__meta-item strong,
.atq-report-detail__facts dd {
  display: block;
  margin: 0;
  color: #1f2b3b;
  font-size: 14px;
  line-height: 1.55;
}

.atq-report-detail__meta-text {
  color: #1f2b3b;
  line-height: 1.65;
}

.atq-report-detail__summary {
  padding: 18px 20px;
  border: 1px solid rgba(139,94,60,.10);
  border-radius: 18px;
  background: rgba(255,251,246,.86);
  color: #2b3240;
  line-height: 1.72;
}

.atq-report-detail__callout {
  padding: 18px 20px;
  border: 1px solid rgba(139,94,60,.10);
  border-radius: 18px;
  background: rgba(255,251,246,.86);
  border-left: 4px solid #c77d42;
  color: #2b3240;
  line-height: 1.72;
}

.atq-report-detail__info-card {
  padding: 18px 20px;
  border: 1px solid rgba(139,94,60,.10);
  border-radius: 18px;
  background: rgba(255,251,246,.86);
}

.atq-report-detail__rich,
.atq-report-detail__info-body {
  color: #2b3240;
  line-height: 1.72;
}

.atq-report-detail__rich ul,
.atq-report-detail__rich ol,
.atq-report-detail__summary ul,
.atq-report-detail__summary ol {
  padding-left: 20px;
}

.atq-report-detail__rich blockquote,
.atq-report-detail__summary blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid rgba(139,94,60,.18);
  color: #5f6471;
}

.atq-report-detail__followup-title {
  display: block;
  color: #1f2b3b;
  font-size: 14px;
  line-height: 1.5;
}

.atq-report-detail__followup {
  padding: 0;
}

.atq-report-detail__followup-summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.atq-report-detail__followup-summary::-webkit-details-marker {
  display: none;
}

.atq-report-detail__followup-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.atq-report-detail__followup-comments h4 {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #1f2b3b;
}

.atq-report-detail__followup-form {
  margin-top: 0;
}

.atq-report-detail__followup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.atq-report-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.atq-files-group+.atq-files-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

/* Documents */

.atq-document-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #e7e4de;
  border-radius: 16px;
  background: #fcfaf7;
}

.atq-document-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #111827;
}

.atq-document-card__badge {
  --atq-badge-min-height: 38px;
  --atq-badge-padding: 0 14px;
  --atq-badge-border: transparent;
  --atq-badge-bg: #efe7dd;
  --atq-badge-color: #7a563b;
  --atq-badge-font-size: 12px;
}

.atq-document-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.atq-document-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.atq-document-card__action {
  --atq-btn-min-height: 38px;
  --atq-btn-padding: 0 16px;
  --atq-btn-radius: 10px;
  --atq-btn-border: #d8dbe3;
  --atq-btn-bg: #fff;
  --atq-btn-color: #8b5e3c;
  --atq-btn-font-size: 12px;
}

.atq-document-card__action:hover {
  --atq-btn-color: #6f482c;
  --atq-btn-border: #c9cdd7;
}

.atq-document-card__action--danger {
  color: #9f3c2a;
  border-color: #efc7bf;
  background: #fff7f5;
  cursor: pointer;
}

.atq-document-card__delete {
  margin: 0;
}

.atq-document-card__delete .atq-document-card__action {
  font-family: inherit;
}

.atq-document-upload {
  border-style: dashed;
  border-color: #ddd5ca;
  background: #faf8f4;
}

.atq-document-upload summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  color: #3c4654;
}

.atq-document-upload summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: #8b5e3c;
}

.atq-document-upload[open] summary::after {
  content: "−";
}

.atq-document-upload__body {
  padding: 0 18px 18px;
}

.atq-files-list--summary li,
.atq-file-row {
  padding: 4px 0;
}

/* Shared form primitives */

.atq-field {
  display: grid;
  gap: 6px;
}

.atq-field-label,
.atq-portal-form--stack label span,
.atq-portal-auth__form span {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #667085;
}

.atq-field-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}

.atq-field-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #9f3c2a;
}

.atq-checkbox,
.atq-radio {
  width: 16px;
  height: 16px;
  accent-color: #8b5e3c;
}

.atq-portal-auth__form input {
  --atq-field-padding: 13px 14px;
  --atq-field-radius: 14px;
  --atq-field-border: #d9d1c8;
  --atq-field-color: #2d2622;
  --atq-field-font-size: 14px;
}

.atq-input,
.atq-select,
.atq-textarea,
.atq-portal-auth__form input,
.atq-portal-form--stack input[type="text"],
.atq-portal-form--stack input[type="email"],
.atq-portal-form--stack input[type="tel"],
.atq-portal-form--stack input[type="number"],
.atq-portal-form--stack input[type="password"],
.atq-portal-form--stack input[type="url"],
.atq-portal-form--stack input[type="date"],
.atq-portal-form--stack input[type="time"],
.atq-portal-form--stack select,
.atq-portal-form--stack textarea,
.atq-portal-filtermenu__form select,
.atq-portal-filtermenu.is-open select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: var(--atq-field-min-height, 44px);
  padding: var(--atq-field-padding, 10px 14px);
  border: 1px solid var(--atq-field-border, #d8dbe3);
  border-radius: var(--atq-field-radius, 10px);
  background: var(--atq-field-bg, #fff);
  color: var(--atq-field-color, #2d2622);
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--atq-field-font-size, 13px);
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.atq-textarea,
.atq-portal-form--stack textarea {
  min-height: 120px;
  resize: vertical;
}

.atq-input:focus,
.atq-select:focus,
.atq-textarea:focus,
.atq-portal-auth__form input:focus,
.atq-portal-form--stack input[type="text"]:focus,
.atq-portal-form--stack input[type="email"]:focus,
.atq-portal-form--stack input[type="tel"]:focus,
.atq-portal-form--stack input[type="number"]:focus,
.atq-portal-form--stack input[type="password"]:focus,
.atq-portal-form--stack input[type="url"]:focus,
.atq-portal-form--stack input[type="date"]:focus,
.atq-portal-form--stack input[type="time"]:focus,
.atq-portal-form--stack select:focus,
.atq-portal-form--stack textarea:focus,
.atq-portal-filtermenu__form select:focus,
.atq-portal-filtermenu.is-open select:focus {
  outline: none;
  border-color: #8a5a44;
  box-shadow: 0 0 0 3px rgba(138,90,68,.12);
}

.atq-input:disabled,
.atq-select:disabled,
.atq-textarea:disabled,
.atq-portal-auth__form input:disabled,
.atq-portal-form--stack input:disabled,
.atq-portal-form--stack select:disabled,
.atq-portal-form--stack textarea:disabled,
.atq-portal-filtermenu__form select:disabled,
.atq-portal-filtermenu.is-open select:disabled {
  background: #f7f6f3;
  color: #98a2b3;
  cursor: not-allowed;
}

.atq-input[type="date"],
.atq-input[type="time"],
.atq-portal-form--stack input[type="date"],
.atq-portal-form--stack input[type="time"] {
  min-height: 44px;
}

.atq-portal-form--stack > * + *,
.atq-portal-form--stack textarea + div,
.atq-portal-editor + div,
.atq-portal-form--comment textarea + div {
  margin-top: 14px;
}

.atq-portal-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.atq-portal-form__grid--thirds {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.atq-portal-form__grid--quad {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.atq-portal-form--comment textarea {
  min-height: 90px;
}

.atq-project-composer {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.atq-project-composer summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  background: #f8f8fa;
  font-weight: 700;
}

.atq-portal-editor .wp-editor-wrap {
  border: 1px solid #d8dbe3;
  border-radius: 10px;
  overflow: hidden;
}

.atq-portal-editor .mce-top-part::before {
  box-shadow: none;
}

.atq-portal-editor textarea.wp-editor-area {
  min-height: 220px;
}

.atq-portal-editor--report-rich textarea.wp-editor-area {
  min-height: 180px;
}

.atq-budget-view-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.atq-budget-view-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d7d9dd;
  color: #5d564f;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

.atq-budget-view-switch__link.is-active {
  background: #8a5a44;
  border-color: #8a5a44;
  color: #fff;
}

.atq-budget-page-card__toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.atq-budget-admin-section summary {
  position: relative;
}

.atq-budget-admin-section summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  color: #8a5a44;
}

.atq-budget-admin-section[open] summary::after {
  content: "-";
}

.atq-budget-admin-section__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}

.atq-budget-admin-section__summary strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: #1f2b3b;
}

.atq-budget-admin-section__body {
  display: grid;
  gap: 14px;
}

.atq-budget-lot-group + .atq-budget-lot-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ece7e1;
}

.atq-budget-lot-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.atq-budget-lot-group__head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.atq-budget-lot-group__head span {
  font-size: 12px;
  color: #6f665f;
}

/* Budget */

.atq-budget-summary {
  display: grid;
  gap: 0;
}

.atq-budget-summary__surface {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  overflow: visible;
  border-radius: 24px;
  border: 1px solid var(--atq-budget-border);
  background: linear-gradient(180deg,var(--atq-budget-surface-start) 0%,var(--atq-budget-surface-end) 100%);
  box-shadow: var(--atq-budget-shadow);
}

.atq-budget-summary__axis {
  position: relative;
  height: 28px;
  margin: 0 2px 6px;
}

.atq-budget-summary__marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
}

.atq-budget-summary__marker-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 8px;
  background: rgba(103,114,130,.34);
}

.atq-budget-summary__marker-label {
  position: absolute;
  left: 0;
  bottom: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(103,114,130,.88);
}

.atq-budget-summary__bar {
  position: relative;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(126,99,73,.10);
  background: linear-gradient(180deg,#faf3eb 0%,#f1e5d8 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.78);
}

.atq-budget-summary__segment {
  position: absolute;
  top: 0;
  bottom: 0;
}

.atq-budget-summary__segment.is-engaged {
  left: 0;
  background: linear-gradient(180deg,var(--atq-budget-engaged) 0%,color-mix(in srgb,var(--atq-budget-engaged) 78%,#ffffff 22%) 100%);
}

.atq-budget-summary__segment.is-factured {
  left: 0;
  top: 0px;
  bottom: 0px;
  border-radius: 999px;
  background: linear-gradient(180deg,var(--atq-budget-factured) 0%,color-mix(in srgb,var(--atq-budget-factured) 78%,#ffffff 22%) 100%);
}

.atq-budget-summary__bar > .atq-budget-summary__segment:first-of-type {
  border-radius: 999px 0 0 999px;
}

.atq-budget-summary__bar > .atq-budget-summary__segment:last-of-type {
  border-radius: 0 999px 999px 0;
}

.atq-budget-summary__segment.is-paid {
  left: 0;
  top: 0px;
  bottom: 0px;
  border-radius: 999px;
  background: linear-gradient(180deg,var(--atq-budget-paid) 0%,color-mix(in srgb,var(--atq-budget-paid) 78%,#ffffff 22%) 100%);
  z-index: 2;
}

.atq-budget-summary__segment.is-reserve-band {
  top: 1px;
  bottom: 1px;
  background: repeating-linear-gradient(-45deg,rgba(214,198,178,.28) 0,rgba(214,198,178,.28) 8px,rgba(214,198,178,.52) 8px,rgba(214,198,178,.52) 12px);
  border-radius: 0 999px 999px 0;
}

.atq-budget-summary__segment.is-overrun {
  top: 1px;
  bottom: 1px;
  background: repeating-linear-gradient(-45deg,color-mix(in srgb,var(--atq-budget-overrun) 38%,transparent 62%) 0,color-mix(in srgb,var(--atq-budget-overrun) 38%,transparent 62%) 7px,var(--atq-budget-overrun) 7px,var(--atq-budget-overrun) 11px);
  border-left: 2px solid var(--atq-budget-overrun);
  border-radius: 0 999px 999px 0;
}

.atq-budget-summary__value-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 9px;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(31,43,59,.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
}

.atq-budget-summary__value-prefix {
  font-size: 9px;
  line-height: 1.1;
  font-weight: 500;
  opacity: .76;
}

.atq-budget-summary__value-amount {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.02em;
  color: inherit;
}

.atq-budget-summary__overrun {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(178,111,91,.20);
  background: rgba(178,111,91,.09);
  color: #8b4f3f;
  font-size: 12px;
  line-height: 1.4;
}

.atq-budget-summary__overrun strong {
  color: #6f4023;
  font-weight: 700;
}

.atq-budget-summary__target {
  position: relative;
  height: 34px;
  margin: 0 2px 0;
  overflow: visible;
  z-index: 1;
  --atq-reference-left: 0%;
}

.atq-budget-summary__target-line {
  position: absolute;
  left: var(--atq-reference-left);
  top: -46px;
  width: 2px;
  height: 66px;
  margin-left: -1px;
  background: #6f482c;
  opacity: .92;
  z-index: 2;
  pointer-events: none;
}

.atq-budget-summary__target-label {
  position: absolute;
  right: calc(100% - var(--atq-reference-left));
  top: 4px;
  max-width: min(240px,calc(var(--atq-reference-left) - 10px));
  padding-right: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #5f4a3e;
  text-align: right;
  white-space: nowrap;
  z-index: 3;
}

.atq-budget-summary__target-prefix {
  font-size: 9px;
  line-height: 1.1;
  font-weight: 500;
  opacity: .76;
}

.atq-budget-summary__target-amount {
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.02em;
  color: #4b3428;
}

.atq-budget-summary__stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.atq-budget-summary__stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(126,99,73,.09);
}

.atq-budget-summary__stat span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--atq-budget-muted);
}

.atq-budget-summary__stat strong {
  display: block;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--atq-budget-ink);
  font-variant-numeric: tabular-nums;
}

.atq-budget-visual {
  display: grid;
  gap: 10px;
}

.atq-budget-columns,
.atq-budget-subgrid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.atq-budget-columns__col h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.atq-budget-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.atq-budget-stats li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #ece7e1;
  border-radius: 12px;
  background: #faf8f6;
}

.atq-budget-stats span {
  color: #6f665f;
}

.atq-budget-stats strong {
  color: #2f2926;
}

.atq-budget-stats__value {
  color: #2f2926;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.atq-budget-reference {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #e9e3dc;
  border-radius: 14px;
  background: #faf8f6;
}

.atq-budget-reference.is-active {
  border-color: #caa889;
  background: #fff;
}

.atq-budget-reference-note {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6f665f;
}

.atq-budget-reference__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.atq-budget-quote__summary small {
  display: block;
  margin-top: 4px;
  color: #6f665f;
  font-size: 12px;
}

.atq-budget-quote__amounts {
  text-align: right;
}

.atq-budget-quote__amounts span {
  display: block;
  font-weight: 700;
  color: #2f2926;
}

.atq-budget-quote__amounts small {
  display: block;
  color: #6f665f;
  font-size: 12px;
  margin-top: 4px;
}

.atq-budget-quote__meta {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.atq-budget-quote__meta div {
  padding: 10px 12px;
  border: 1px solid #ece7e1;
  border-radius: 12px;
  background: #faf8f6;
}

.atq-budget-quote__meta strong {
  display: block;
  margin-bottom: 4px;
}

.atq-budget-mini-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.atq-budget-mini-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ece7e1;
  border-radius: 12px;
  background: #fff;
}

.atq-budget-mini-list li em {
  grid-column: 1/-1;
  font-style: normal;
  font-size: 12px;
  color: #6f665f;
}

.atq-budget-inline-form {
  padding: 12px;
  border: 1px solid #ece7e1;
  border-radius: 14px;
  background: #faf8f6;
}

.atq-budget-inline-form__notice {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.atq-budget-inline-form__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  color: #2f2926;
}

.atq-budget-inline-form__toggle input {
  margin: 0;
}

.atq-budget-inline-form__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.atq-budget-mini-list__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  font-size: 11px;
}

.atq-budget-mini-list__edit,
.atq-budget-mini-list li em a,
.atq-budget-quote__meta a {
  color: #8a5a44;
  text-decoration: none;
  font-weight: 600;
}

.atq-budget-mini-list__delete button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9f3c2a;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
}

.atq-budget-mini-list__delete button:hover {
  color: #7a2f22;
}

.atq-prospect-card__grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-top: 16px;
}

.atq-status-badge {
  --atq-badge-min-height: 34px;
  --atq-badge-padding: 0 14px;
  --atq-badge-border: rgba(139,94,60,.14);
  --atq-badge-bg: rgba(139,94,60,.10);
  --atq-badge-color: #6f482c;
  --atq-badge-font-size: 13px;
}

.atq-status-badge.is-actif,
.atq-status-badge.is-pause {
  --atq-badge-border: rgba(31,43,59,.10);
  --atq-badge-bg: rgba(31,43,59,.08);
  --atq-badge-color: #243447;
}

.atq-status-badge.is-ouvert {
  --atq-badge-border: #f2d1b6;
  --atq-badge-bg: #fff1e7;
  --atq-badge-color: #b55b19;
}

.atq-status-badge.is-termine {
  --atq-badge-border: rgba(26,127,92,.16);
  --atq-badge-bg: rgba(26,127,92,.12);
  --atq-badge-color: #16674d;
}

.atq-status-badge.is-abandonne {
  --atq-badge-border: rgba(93,102,115,.15);
  --atq-badge-bg: rgba(93,102,115,.10);
  --atq-badge-color: #55606d;
}

.atq-portal-back {
  display: inline-block;
  margin-bottom: 8px;
  text-decoration: none;
  font-weight: 600;
}

.atq-portal-rowlink {
  color: #111827;
}

.atq-project-banner__actions .button {
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 10px;
  min-height: auto;
}

.atq-project-log-item__meta {
  justify-content: space-between;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.atq-project-log-item__title {
  font-weight: 700;
  margin-bottom: 8px;
}

.atq-documents-section__head {
  margin-bottom: 14px;
}

.atq-project-log-item__title a {
  color: #8b5e3c;
  text-decoration: none;
}

.atq-project-facts--summary li {
  padding: 7px 0;
}

.atq-project-log-item__meta strong {
  font-weight: 700;
}

.atq-project-log-item__content {
  margin-top: 6px;
  line-height: 1.55;
}

.atq-list-muted {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

.atq-entry-list-item__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

.atq-progress-track {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(0,1fr));
  gap: 8px;
}

.atq-progress-track__segment {
  height: 10px;
  border-radius: 999px;
  background: #ddd8d1;
}

.atq-progress-track__segment.is-done {
  background: #8b5e3c;
}

.atq-progress-track__segment.is-current {
  background: #d7b798;
}

.atq-entry-list-item__context {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(31,43,59,.06);
  color: #55606d;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.atq-entry-list-item__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.atq-entry-list-item__comments {
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a7f89;
  font-weight: 700;
}

/* Responsive overrides */

@media (max-width: 980px) {
  .atq-portal-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .atq-portal-brand strong {
    font-size: 16px;
  }

  .atq-portal-main {
    padding: 16px;
  }

  .atq-portal-grid,
  .atq-portal-grid--dashboard {
    grid-template-columns: 1fr;
  }

  .atq-summary-v2-retain__grid {
    grid-template-columns: 1fr;
  }

  .atq-portal-project .atq-card,
  .atq-portal-project .atq-project-card,
  .atq-portal-project .atq-summary-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .atq-project-journey__list {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 860px) {
  .atq-portal-header {
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 64px;
    padding: 10px 16px;
    gap: 10px;
  }

  .atq-portal-user {
    order: 2;
    width: auto;
    max-width: 100%;
    white-space: normal;
    text-align: right;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
  }

  .atq-portal-brand {
    order: 1;
    gap: 10px;
  }

  .atq-portal-footer__inner {
    display: grid;
    padding: 12px 16px;
    gap: 8px;
  }

  .atq-portal-brand__logo img {
    height: 28px;
  }

  .atq-portal-user__name,
  .atq-portal-user span {
    max-width: 14ch;
  }

  .atq-portal-table--reports {
    font-size: 12px;
  }

  .atq-portal-table--reports thead th,
  .atq-portal-table--reports tbody td,
  .atq-portal-table th,
  .atq-portal-table td {
    padding: 10px 12px;
  }

  .atq-portal-main {
    padding: 18px 16px 30px;
    padding-top: 16px;
  }

  .atq-portal-pagehead--listing,
  .atq-portal-grid--dashboard-v2,
  .atq-portal-hero,
  .atq-project-hero,
  .atq-project-grid--summary-client,
  .atq-project-grid--budget-clientpage,
  .atq-project-grid--budget-adminpage,
  .atq-portal-project .atq-project-grid--summary,
  .atq-portal-project .atq-project-grid,
  .atq-portal-project .atq-project-grid--summary-client,
  .atq-portal-project .atq-project-grid--summary-admin,
  .atq-project-journey__list,
  .atq-summary-card--project .atq-project-facts--summary,
  .atq-report-detail__meta,
  .atq-report-detail__grid,
  .atq-portal-form__grid,
  .atq-budget-columns,
  .atq-budget-subgrid,
  .atq-budget-quote__meta,
  .atq-prospect-card__grid {
    grid-template-columns: 1fr;
  }

  .atq-pagehead-meta {
    align-items: flex-start;
  }

  .atq-portal-hero h1,
  .atq-project-hero h1 {
    font-size: 28px;
  }

  .atq-project-tabs__group--admin {
    margin-left: 12px;
  }

  .atq-project-tabs--projecthead {
    margin: 0 0 14px;
  }

  .atq-portal-project .atq-project-banner {
    display: block;
    padding: 16px 16px 18px;
  }

  .atq-portal-project .atq-project-banner__title,
  .atq-budget-summary__stat strong {
    font-size: 17px;
  }

  .atq-portal-project .atq-project-banner__main {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .atq-portal-project .atq-project-banner__progress {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-top: 14px;
  }

  .atq-portal-project .atq-project-banner__progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
  }

  .atq-portal-project .atq-project-banner__progress-head span {
    white-space: nowrap;
  }

  .atq-portal-project .atq-project-segments,
  .atq-report-modehead__actions {
    width: 100%;
  }

  .atq-portal-project .atq-summary-card,
  .atq-portal-project .atq-project-card,
  .atq-portal-project .atq-report-item,
  .atq-portal-project .atq-project-log-item,
  .atq-portal-project .atq-report-comment {
    width: 100%;
    min-width: 0;
  }

  .atq-portal-project .atq-summary-card--project,
  .atq-portal-project .atq-project-grid--summary-client .atq-summary-card--project {
    grid-column: auto;
  }

  .atq-project-journey__head,
  .atq-step-card,
  .atq-step-card__top,
  .atq-project-list-item__footer,
  .atq-project-list-item__titlebar,
  .atq-summary-report-item,
  .atq-report-item summary,
  .atq-report-journal__top,
  .atq-budget-page-card__toolbar,
  .atq-budget-lot-group__head,
  .atq-project-log-item__meta,
  .atq-entry-list-item__footer {
    display: block;
  }

  .atq-step-card__action,
  .atq-project-list-item__aside,
  .atq-entry-list-item__link {
    margin-top: 12px;
    padding-left: 0;
  }

  .atq-project-list-item__secondary {
    margin-top: 8px;
  }

  .atq-summary-report-item__side,
  .atq-report-journal__badges {
    margin-top: 10px;
  }

  .atq-report-journal__title {
    font-size: 16px;
  }

  .atq-report-journal__main:has(.atq-report-journal__takeaways) {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__top,
  .atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__title,
  .atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__meta,
  .atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__takeaways,
  .atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__summarytext,
  .atq-report-journal__main:has(.atq-report-journal__takeaways) .atq-report-journal__footer {
    grid-column: auto;
    grid-row: auto;
  }

  .atq-report-modehead {
    flex-direction: column;
    align-items: flex-start;
  }

  .atq-report-editor__toolbar {
    flex-direction: column;
  }

  .atq-report-editor__toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .atq-report-item summary > span:last-child {
    margin-top: 8px;
    justify-content: flex-start;
  }

  .atq-report-detail__summary,
  .atq-report-detail__callout,
  .atq-report-detail__info-card {
    padding: 16px;
  }

  .atq-budget-lot-group__head span {
    display: block;
    margin-top: 4px;
  }

  .atq-budget-summary__surface {
    padding: 16px 16px 15px;
    border-radius: 22px;
  }

  .atq-budget-summary__axis {
    height: 24px;
  }

  .atq-budget-summary__marker-label {
    font-size: 9px;
  }

  .atq-budget-summary__stats {
    gap: 10px;
  }

  .atq-entry-list-item__actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  .atq-portal-auth {
    padding: 26px 14px 18px;
  }

  .atq-portal-auth__stage {
    gap: 14px;
  }

  .atq-portal-auth__brand-link img {
    height: 42px;
  }

  .atq-portal-auth__card {
    padding: 24px 20px 22px;
    border-radius: 22px;
  }

  .atq-portal-auth__head h1 {
    font-size: 27px;
  }

  .atq-portal-auth__head p {
    max-width: none;
  }

  .atq-portal-auth__actions {
    align-items: stretch;
  }

  .atq-portal-auth__actions .button.button-primary {
    width: 100%;
    justify-content: center;
  }

  .atq-portal-auth__helper {
    width: 100%;
  }

  .atq-portal-main,
  .atq-portal-card,
  .atq-portal-project .atq-summary-report-item,
  .atq-portal-project .atq-project-log-item,
  .atq-portal-project .atq-report-comment,
  .atq-portal-project .atq-summary-card {
    padding: 14px;
  }

  .atq-portal-pagehead h1 {
    font-size: 24px;
  }

  .atq-portal-table,
  .atq-portal-project {
    font-size: 13px;
  }

  .atq-portal-table th:nth-child(3),
  .atq-portal-table td:nth-child(3),
  .atq-portal-table th:nth-child(4),
  .atq-portal-table td:nth-child(4),
  .atq-portal-table--entries th:nth-child(4),
  .atq-portal-table--entries td:nth-child(4),
  .atq-portal-table--reports thead th:nth-child(4),
  .atq-portal-table--reports tbody td:nth-child(4),
  .atq-portal-table--reports thead th:nth-child(6),
  .atq-portal-table--reports tbody td:nth-child(6),
  .atq-budget-summary__marker:not(.is-final):nth-child(even) .atq-budget-summary__marker-label {
    display: none;
  }

  .atq-portal-filtermenu__form,
  .atq-portal-filtermenu.is-open .atq-portal-filtermenu__form {
    flex-direction: column;
    align-items: stretch;
  }

  .atq-portal-filtermenu__form select,
  .atq-portal-filtermenu.is-open select {
    min-width: 0;
    width: 100%;
  }

  .atq-portal-table--reports thead th,
  .atq-portal-table--reports tbody td {
    font-size: 12px;
    padding: 9px 10px;
  }

  .atq-portal-project .atq-project-banner__title {
    font-size: 15px;
    line-height: 1.2;
  }

  .atq-portal-project .atq-project-banner__meta,
  .atq-portal-project .atq-project-banner__meta--address {
    font-size: 12px;
    line-height: 1.45;
  }

  .atq-portal-project .atq-project-card {
    font-size: 11px;
    line-height: 1.4;
    padding: 14px;
  }

  .atq-portal-project .atq-project-card p,
  .atq-portal-project .atq-project-card li,
  .atq-portal-project .atq-project-card td,
  .atq-portal-project .atq-project-card th {
    font-size: 11px;
    line-height: 1.4;
  }

  .atq-portal-project .atq-project-banner {
    padding: 14px 14px 16px;
    border-radius: 18px;
  }

  .atq-portal-project .atq-project-banner__progress-head strong,
  .atq-portal-project .atq-project-banner__progress-head span {
    font-size: 12px;
    line-height: 1.2;
  }

  .atq-portal-project .atq-summary-report-item__meta,
  .atq-portal-project .atq-project-log-item__meta {
    gap: 6px;
  }

  .atq-summary-report-item,
  .atq-document-card,
  .atq-document-card__top {
    display: block;
  }

  .atq-summary-report-item__side {
    margin-top: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .atq-entry-badge {
    display: inline-block;
    margin-left: 0;
    margin-top: 4px;
  }

  .atq-document-card__badge {
    margin-top: 8px;
  }

  .atq-document-card__actions {
    margin-top: 12px;
    justify-content: flex-start;
  }

  .atq-document-card__action {
    min-height: 38px;
    padding: 0 12px;
  }

  .atq-budget-summary__surface {
    padding: 15px 14px 14px;
    gap: 12px;
  }

  .atq-budget-summary__target-label {
    max-width: calc(100vw - 64px);
  }

  .atq-budget-summary__stat {
    padding-top: 10px;
  }

  .atq-budget-summary__stat strong {
    font-size: 16px;
  }

  .atq-budget-summary__overrun {
    padding: 9px 10px;
    font-size: 11px;
  }
}

@media (max-width: 960px) {
  .atq-project-grid--summary-admin,
  .atq-portal-project .atq-project-grid--summary-client {
    grid-template-columns: 1fr;
  }

  .atq-summary-card--project {
    grid-column: auto;
  }
}

@media (max-width: 1080px) {
  .atq-portal-grid--dashboard-v2,
  .atq-project-hero,
  .atq-prospect-card__grid {
    grid-template-columns: 1fr 1fr;
  }

  .atq-project-journey__list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .atq-portal-header {
    padding: 9px 14px;
  }

  .atq-portal-brand,
  .atq-portal-user {
    gap: 8px;
  }

  .atq-portal-brand__logo img {
    height: 26px;
  }

  .atq-budget-summary__target {
    height: 34px;
    min-height: 0;
    margin: 0 2px 0;
    padding-top: 0;
  }

  .atq-budget-summary__target-line {
    top: -42px;
    height: 64px;
  }

  .atq-budget-summary__target-label {
    position: absolute;
    right: calc(100% - var(--atq-reference-left));
    top: 4px;
    display: inline-flex;
    max-width: min(180px, calc(100% - 14px));
    padding-right: 8px;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
  }

  .atq-budget-summary__target-prefix {
    font-size: 8px;
  }

  .atq-budget-summary__target-amount {
    font-size: 13px;
  }

  .atq-summary-v2-actions__meta {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: start;
  }

  .atq-summary-v2-actions__meta .atq-badge,
  .atq-summary-v2-actions__badges .atq-badge,
  .atq-summary-v2-mini-list .atq-badge {
    margin-left: 0;
    max-width: 100%;
    white-space: normal;
  }

  .atq-portal-project .button,
  .atq-portal-project .atq-btn,
  .atq-budget-view-switch__link {
    min-height: 40px;
  }

  .atq-portal-user__name,
  .atq-portal-user span,
  .atq-project-hero__next--phase,
  .atq-project-hero__next--action,
  .atq-project-tabs__group--primary::-webkit-scrollbar,
  .atq-project-tabs__group--admin::-webkit-scrollbar,
  .atq-project-journey__head span {
    display: none;
  }

  .atq-portal-footer__inner {
    display: grid;
    justify-content: flex-start;
    gap: 6px;
  }

  .atq-portal-footer__link,
  .atq-project-journey__body span,
  .atq-project-journey__timing,
  .atq-project-journey__warning {
    font-size: 11px;
  }

  .atq-portal-card,
  .atq-portal-hero__content,
  .atq-portal-hero__aside,
  .atq-project-card,
  .atq-step-card,
  .atq-summary-card,
  .atq-report-item,
  .atq-prospect-card,
  .atq-entry-list-item {
    padding: 16px;
    border-radius: 18px;
  }

  .atq-portal-grid--dashboard-v2 {
    gap: 14px;
  }


  .atq-project-hero {
    border-radius: 18px;
    position: relative;
    padding: 18px;
    gap: 12px;
  }

  .atq-project-hero h1 {
    font-size: 34px;
  }

  .atq-project-hero__side-value {
    margin-top: 2px;
    font-size: 17px;
    line-height: 1.08;
  }

  .atq-project-hero__content {
    padding-right: 152px;
  }

  .atq-project-hero__side {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 136px;
    min-height: 0;
    padding: 12px;
    gap: 6px;
    border-radius: 16px;
  }

  .atq-project-hero__side-label {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .atq-project-hero__side-meta {
    margin-top: 2px;
    font-size: 9px;
  }

  .atq-project-hero__side-status-label {
    font-size: 9px;
  }

  .atq-project-hero__side-phase {
    font-size: 14px;
  }

  .atq-project-hero__meter .atq-status-meter__label {
    font-size: 13px;
  }
  .atq-project-tabs__group--primary {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .atq-project-tabs__group--admin {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: 0;
    padding: 0 2px 2px;
    border-left: 0;
    border-radius: 0;
    background: transparent;
  }

  .atq-project-tabs__group-label {
    font-size: 9px;
    padding-right: 4px;
    white-space: nowrap;
  }

  .atq-project-tabs__nav--portal .atq-project-tab {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .atq-project-card h2 {
    font-size: 14px;
  }

  .atq-project-journey {
    padding: 16px;
  }

  .atq-project-journey__head {
    margin-bottom: 10px;
  }

  .atq-project-journey__list {
    gap: 10px;
  }

  .atq-project-journey__item {
    border-radius: 16px;
    flex-basis: 82vw;
    padding: 12px 12px;
  }

  .atq-project-journey__index {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .atq-project-journey__body strong {
    font-size: 13px;
  }

  .atq-step-panel__head,
  .atq-step-panel__resource-list li,
  .atq-step-panel__history-head {
    display: block;
  }

  .atq-project-list-item__progress {
    margin-top: 10px;
  }

  .atq-step-panel__resource-list li span,
  .atq-step-panel__history-head span {
    display: block;
    margin-top: 4px;
    white-space: normal;
  }

  .atq-project-list-item {
    border-radius: 18px;
    padding: 12px 14px;
  }

  .atq-project-list-item__meta {
    font-size: 11px;
    line-height: 1.45;
  }

  .atq-project-list-item__progress-top {
    margin-bottom: 6px;
  }

  .atq-project-list-item__progress-top span {
    font-size: 10px;
  }

  .atq-project-list-item__progress-top strong {
    font-size: 12px;
  }

  .atq-project-list-item__footer,
  .atq-project-list-item__next,
  .atq-project-list-item__aside {
    display: none !important;
  }

  .atq-prospect-card h3,
  .atq-entry-list-item h3 {
    font-size: 18px;
  }

  .atq-progress-track {
    gap: 6px;
  }

  .atq-progress-track__segment {
    height: 8px;
  }
}

@media (min-width: 641px) {
  .atq-project-journey__item {
    flex-basis: 280px;
  }
}

@media (min-width: 861px) {
  .atq-portal-header {
    min-height: 78px;
  }
}

@media (min-width: 981px) {
  .atq-project-journey__list {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    overflow: visible;
    gap: 16px;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .atq-project-journey__item {
    min-width: 0;
    flex: initial;
  }
}

@media (max-width: 980px) {
  .atq-summary-v2__pilot,
  .atq-summary-v2-journey__grid,
  .atq-summary-v2-actions__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .atq-summary-v2-mini-list li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .atq-summary-v2-pilot-card,
  .atq-summary-v2-journey__group,
  .atq-summary-v2-actions__group {
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .atq-project-hero {
    padding: 16px;
    gap: 12px;
  }

  .atq-project-hero__content {
    padding-right: 0;
  }

  .atq-project-hero__side {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    min-height: 0;
    margin-top: 2px;
    padding: 12px 14px;
    gap: 6px;
    border-radius: 16px;
  }

  .atq-project-hero__side-label {
    font-size: 9px;
  }

  .atq-project-hero__side-value {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.08;
  }

  .atq-project-hero__side-meta {
    font-size: 10px;
  }

  .atq-project-hero__side-phase {
    font-size: 15px;
  }

  .atq-project-hero__meter .atq-status-meter__label {
    font-size: 12px;
  }

  .atq-budget-summary__stats--primary {
    grid-template-columns: 1fr;
  }

  .atq-budget-summary__axis {
    height: 22px;
  }
}

@media (max-width: 782px) {
  .atq-portal-project .atq-project-tabs__nav--portal .atq-project-tab {
    padding: 7px 12px;
    font-size: 12px;
  }

  .atq-project-card--stack .atq-portal-form__grid {
    grid-template-columns: 1fr;
  }
}

.atq-portal-auth__remember {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
}

.atq-portal-auth__remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.atq-portal-auth__remember span {
  display: inline;
  margin: 0;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.4;
}

