.project-page {
  background: #00002c
}

.project-nav {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 30px
}

.project-nav>span {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #868fb7;
  border-left: 1px solid #ffffff22;
  padding-left: 30px
}

.project-nav>span b {
  color: #fff;
  margin-left: 8px;
  letter-spacing: 0;
  font-size: 14px
}

.project-nav>a:last-child {
  margin-left: auto;
  color: #b7bddb;
  font-size: 12px
}

.project-page section.project-hero {
  padding: 65px 0 55px;
  background: radial-gradient(ellipse at 70% 20%, #24216688, transparent 65%), radial-gradient(#757df226 .8px, transparent .8px);
  background-size: auto, 30px 30px
}

.project-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: #b0b8ff;
  display: flex;
  gap: 10px;
  align-items: center
}

.project-eyebrow>span {
  width: 6px;
  height: 6px;
  background: #9099f5;
  border-radius: 50%;
  box-shadow: 0 0 14px #9099f5
}

.project-hero h1 {
  max-width: none;
  font-size: 48px;
  margin: 24px 0;
  line-height: 1.2
}

.project-hero h1 em {
  font-size: 1em
}

.project-hero h1 em:after {
  display: none
}

.project-hero p {
  max-width: 760px;
  font-size: 16px
}

.project-metrics {
  display: flex;
  gap: 50px;
  margin: 32px 0;
  border-top: 1px solid #ffffff13;
  border-bottom: 1px solid #ffffff13;
  padding: 24px 0;
  max-width: 850px
}

.project-metrics>div {
  display: flex;
  gap: 12px;
  align-items: center
}

.project-metrics strong {
  font-size: 36px;
  font-weight: 700;
  color: #e3e5ff;
  line-height: 1.1
}

.project-metrics>div:last-child strong {
  font-size: 21px
}

.project-metrics span {
  /* max-width: 90px; */
  font-size: 14px;
  line-height: 1.5;
  color: #989fbe
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.print-button {
  padding: 13px 16px;
  border: 1px solid #757df24a;
  color: #b7bdff;
  border-radius: 8px;
  background: #757df20b;
  font-size: 12px
}

.print-button:hover {
  background: #757df21c
}

.project-hero .schedule-note {
  font-size: 13px;
  max-width: 820px;
  color: #858eaf;
  margin: 20px 0 0
}

.project-page section.project-workspace {
  background: #f5f6fb;
  color: #151a36;
  padding: 60px 0
}

.project-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 30px
}

.project-section-title h2 {
  font-size: 30px;
  margin-bottom: 0
}

.project-section-title .eyebrow {
  color: #656edb
}

.project-section-title>p {
  font-size: 11px;
  line-height: 1.7;
  color: #7b829b;
  margin: 0;
  max-width: 345px
}

.phase-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 22px
}

.phase-tabs button {
  text-align: left;
  background: white;
  border: 1px solid #dfe2ef;
  border-radius: 10px;
  padding: 18px 15px;
  color: #59607b;
  transition: border-color .25s, background .25s
}

.phase-tabs button>span {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: #7d84b3;
  margin-bottom: 12px
}

.phase-tabs b {
  display: block;
  font-size: 12px;
  line-height: 1.5
}

.phase-tabs small {
  font-size: 10px;
  color: #7f8599;
  display: block;
  margin-top: 4px
}

.phase-tabs [aria-selected=true] {
  background: #151643;
  color: white;
  border-color: #676fec;
  box-shadow: 0 5px 20px #16175416
}

.phase-tabs [aria-selected=true]>span, .phase-tabs [aria-selected=true]>small {
  color: #a7afff
}

.phase-tabs button:hover {
  border-color: #757df2
}

.project-page section.phase-panel {
  background: white;
  border: 1px solid #e1e4ef;
  border-radius: 14px;
  padding: 32px;
  margin: 0 0 20px;
  scroll-margin-top: 100px
}

.phase-heading {
  display: flex;
  align-items: start;
  gap: 25px;
  justify-content: space-between
}

.phase-heading .eyebrow {
  font-size: 10px;
  color: #6871de
}

.phase-heading h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.6px;
  max-width: 680px;
  margin: 10px 0 16px
}

.day-pill {
  font-size: 11px;
  color: #666ed6;
  background: #f0f1fd;
  border: 1px solid #e4e5fa;
  border-radius: 25px;
  white-space: nowrap;
  padding: 8px 14px
}

.phase-goal {
  color: #6c738b;
  font-size: 14px;
  max-width: 820px;
  border-bottom: 1px solid #eceef5;
  padding-bottom: 22px;
  margin-bottom: 25px
}

.phase-content {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 34px
}

.task {
  display: flex;
  gap: 16px;
  margin-bottom: 25px
}

.task:last-child {
  margin-bottom: 0
}

.task-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  background: #f1f2fc;
  font-size: 10px;
  color: #757cce;
  margin-top: 2px
}

.task h4 {
  font-size: 14px;
  font-weight: 650;
  color: #252b46;
  margin: 3px 0 7px
}

.task p {
  font-size: 13px;
  color: #6c7387;
  line-height: 1.85;
  margin: 0
}

.phase-outcomes {
  border-left: 1px solid #e8eaf2;
  padding-left: 25px
}

.phase-outcomes>div {
  margin-bottom: 25px
}

.phase-outcomes>div:last-child {
  margin-bottom: 0
}

.phase-outcomes span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .9px;
  color: #747cb3
}

.phase-outcomes p {
  font-size: 12px;
  line-height: 1.8;
  margin: 8px 0;
  color: #69718a
}

.phase-note {
  background: #f6f6fe;
  border-left: 3px solid #9099f5;
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin-top: 25px
}

.phase-note b {
  font-size: 11px;
  color: #555fbc
}

.phase-note p {
  font-size: 12px;
  color: #70768f;
  margin: 5px 0 0;
  line-height: 1.75
}

.phase-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.phase-navigation>span {
  color: #9399ad;
  font-size: 11px
}

.phase-navigation .ghost {
  color: #6f76ce;
  border-color: #d9dcf0
}

.phase-navigation .btn {
  font-size: 12px;
  padding: 12px 18px
}

.phase-navigation button:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
  box-shadow: none
}

.phase-navigation button:disabled:after {
  display: none
}

.phase-navigation {
  display: none
}

.wizard-ready .phase-navigation {
  display: flex
}

.project-page section.project-schedule {
  background: white;
  color: #151a36;
  padding: 65px 0
}

.project-schedule .print-button {
  color: #6871d6;
  border-color: #e1e3f2
}

.timeline-bar {
  display: flex;
  gap: 5px;
  margin: 30px 0 24px
}

.timeline-bar>span {
  background: #e9eafc;
  color: #5963bb;
  font-size: 11px;
  font-weight: 600;
  padding: 12px 10px;
  text-align: center;
  border-radius: 5px
}

.timeline-bar>span:nth-child(2) {
  background: #dfe1fa
}

.timeline-bar>span:nth-child(3) {
  background: #d4d8f8
}

.timeline-bar>span:nth-child(4) {
  background: #c9cef7
}

.timeline-bar>span:nth-child(5) {
  background: #bbc3f3
}

.table-wrap {
  overflow: auto;
  border: 1px solid #e5e7f1;
  border-radius: 10px
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left
}

caption {
  text-align: left;
  padding: 15px 20px;
  background: #fafbff;
  color: #777f9c;
  font-size: 11px
}

th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #f4f5fb;
  color: #737b99;
  padding: 13px 18px
}

td {
  padding: 16px 18px;
  border-top: 1px solid #e8eaf2;
  color: #71788f;
  vertical-align: top;
  line-height: 1.6
}

td:nth-child(2), td:nth-child(3) {
  white-space: nowrap
}

td:first-child {
  min-width: 205px
}

td button {
  padding: 0;
  border: 0;
  background: none;
  color: #666fce;
  font-size: 12px;
  font-weight: 600;
  text-align: left
}

td button:hover {
  text-decoration: underline
}

tfoot td {
  font-weight: 700;
  color: #6169bd;
  background: #f7f8fd
}

.project-conditions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 30px
}

.project-conditions h3 {
  font-size: 14px;
  color: #495273;
  margin: 0 0 9px
}

.project-conditions p {
  font-size: 12px;
  color: #798098;
  line-height: 1.85;
  margin: 0
}

.project-page section.project-next {
  padding: 60px 0;
  background: radial-gradient(ellipse at top right, #1c1955, transparent 70%)
}

.kanban-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 45px;
  align-items: center;
  border: 1px solid #ffffff16;
  border-radius: 16px;
  background: #ffffff04;
  padding: 32px
}

.kanban-card h2 {
  font-size: 28px;
  margin: 12px 0
}

.kanban-card p {
  font-size: 13px;
  max-width: 680px
}

.kanban-art {
  display: flex;
  gap: 8px;
  padding: 18px;
  background: #060e36;
  border: 1px solid #ffffff15;
  border-radius: 10px;
  transform: rotate(-5deg);
  box-shadow: 0 18px 40px #0003
}

.kanban-art>div {
  flex: 1
}

.kanban-art i {
  display: block;
  width: 70%;
  height: 5px;
  background: #757df2;
  border-radius: 5px;
  margin-bottom: 15px
}

.kanban-art span {
  display: block;
  height: 40px;
  border: 1px solid #ffffff13;
  border-radius: 5px;
  background: linear-gradient(140deg, #757df230, #757df210);
  margin: 8px 0
}

.kanban-art>div:nth-child(2) i {
  background: #b391ee
}

.kanban-art>div:nth-child(3) i {
  background: #4ed25c
}

.kanban-status {
  font-size: 10px;
  color: #a0a8d5;
  border: 1px solid #ffffff18;
  border-radius: 20px;
  padding: 7px 12px;
  display: inline-block
}

.project-summary {
  margin: 35px 0;
  max-width: 950px
}

.project-summary h3 {
  font-size: 17px
}

.project-summary p {
  font-size: 13px
}

.technical-sources {
  border-top: 1px solid #ffffff15;
  border-bottom-color: #ffffff15
}

.technical-sources summary {
  font-size: 11px;
  color: #919bbf;
  padding-top: 20px
}

.technical-sources p, .technical-sources li {
  font-size: 11px;
  color: #8f99be
}

.technical-sources a {
  text-decoration: underline;
  text-underline-offset: 3px
}

.project-footer {
  display: flex;
  align-items: center;
  gap: 30px
}

.project-footer span, .project-footer a {
  font-size: 11px;
  color: #8e97b9
}

.project-footer a {
  margin-left: auto
}

.project-page [role=tab]:focus-visible {
  outline-color: #9099f5
}

.project-page .phase-panel:focus {
  outline: none
}

.project-page .phase-panel.enter {
  animation: phase-enter .3s ease-out
}

@keyframes phase-enter {
  from {
    opacity: .3;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media(max-width:850px) {
  .phase-content {
    grid-template-columns: 1fr
  }

  .phase-outcomes {
    border-left: 0;
    border-top: 1px solid #e8eaf2;
    padding: 25px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
  }

  .phase-outcomes>div {
    margin: 0
  }

  .project-metrics {
    gap: 30px
  }

  .phase-tabs button {
    padding: 15px 10px
  }

  .phase-tabs b {
    font-size: 11px
  }

  .project-actions {
    flex-wrap: wrap
  }

  .project-section-title {
    align-items: start
  }

  .project-section-title>p {
    max-width: 260px
  }

  .kanban-card {
    grid-template-columns: 170px 1fr;
    gap: 30px;
    padding: 25px
  }
}

@media(max-width:600px) {
  .project-nav {
    height: 70px;
    gap: 15px
  }

  .project-nav>span {
    padding-left: 15px;
    font-size: 8px;
    letter-spacing: 1px
  }

  .project-nav>span b {
    display: block;
    font-size: 12px;
    margin: 0
  }

  .project-nav>a:last-child {
    font-size: 10px;
    max-width: 70px;
    text-align: right
  }

  .project-page section.project-hero {
    padding: 40px 0
  }

  .project-eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px
  }

  .project-hero h1 {
    font-size: 34px;
    line-height: 1.2;
    margin: 20px 0
  }

  .project-hero h1 br {
    display: none
  }

  .project-hero p {
    font-size: 14px
  }

  .project-metrics {
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin: 24px 0
  }

  .project-metrics>div {
    flex: 1;
    gap: 8px
  }

  .project-metrics>div:last-child {
    flex-basis: 100%;
    border-top: 1px solid #ffffff10;
    padding-top: 15px
  }

  .project-metrics strong {
    font-size: 30px
  }

  .project-metrics span {
    font-size: 10px;
    max-width: 100px
  }

  .project-metrics>div:last-child span {
    max-width: none
  }

  .project-actions {
    display: grid;
    grid-template-columns: 1fr
  }

  .project-actions .btn {
    font-size: 12px
  }

  .project-actions .print-button {
    margin-top: 5px
  }

  .project-hero .schedule-note {
    font-size: 10px
  }

  .project-page section.project-workspace, .project-page section.project-schedule, .project-page section.project-next {
    padding: 38px 0
  }

  .project-section-title {
    display: block;
    margin-bottom: 24px
  }

  .project-section-title h2 {
    font-size: 26px
  }

  .project-section-title>p {
    max-width: none;
    margin-top: 12px
  }

  .phase-tabs {
    display: flex;
    overflow: auto;
    padding-bottom: 8px;
    gap: 8px;
    scroll-snap-type: x proximity
  }

  .phase-tabs button {
    min-width: 134px;
    scroll-snap-align: start;
    padding: 14px
  }

  .phase-tabs button>span {
    font-size: 18px;
    margin-bottom: 9px
  }

  .phase-tabs b {
    font-size: 11px
  }

  .project-page section.phase-panel {
    padding: 22px 18px
  }

  .phase-heading {
    display: block
  }

  .phase-heading h3 {
    font-size: 23px;
    margin-bottom: 12px
  }

  .day-pill {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 10px;
    font-size: 10px
  }

  .phase-goal {
    font-size: 13px;
    padding-bottom: 18px
  }

  .task {
    gap: 10px;
    margin-bottom: 22px
  }

  .task-index {
    width: 22px;
    height: 24px;
    font-size: 9px
  }

  .task h4 {
    font-size: 13px
  }

  .task p {
    font-size: 12px
  }

  .phase-outcomes {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .phase-outcomes p {
    margin-bottom: 0
  }

  .phase-navigation .btn {
    font-size: 10px;
    padding: 10px 12px
  }

  .phase-navigation>span {
    font-size: 9px;
    white-space: nowrap
  }

  .timeline-bar {
    gap: 3px
  }

  .timeline-bar>span {
    font-size: 9px;
    padding: 10px 3px
  }

  .project-schedule .print-button {
    margin-top: 18px
  }

  .project-conditions {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .kanban-card {
    display: block;
    padding: 24px
  }

  .kanban-art {
    max-width: 160px;
    margin-bottom: 30px
  }

  .kanban-card h2 {
    font-size: 25px
  }

  .project-footer {
    gap: 18px;
    flex-wrap: wrap
  }

  .project-footer span {
    font-size: 10px
  }

  .project-footer a {
    margin-left: 0
  }

  .project-page .eyebrow {
    font-size: 9px
  }
}

@media print {
  @page {
    size: A4;
    margin: 15mm 14mm
  }

  html {
    scroll-padding: 0 !important
  }

  body.project-page {
    background: white !important;
    color: #111 !important;
    font-size: 10pt;
    line-height: 1.5
  }

  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important
  }

  header, .project-actions, .phase-tabs, .phase-navigation, .print-button, .project-nav, .project-page footer, .kanban-art {
    display: none !important
  }

  .wrap {
    width: 100% !important;
    max-width: none !important
  }

  .project-page section {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #111 !important
  }

  .project-page section.project-hero {
    padding: 0 0 10mm !important
  }

  .project-hero:before {
    content: 'FIDATY  /  MIXMÓVEIS';
    display: block;
    font-weight: 700;
    letter-spacing: 2pt;
    color: #515caf;
    font-size: 10pt;
    margin-bottom: 12mm
  }

  .project-hero h1 {
    font-size: 30pt !important;
    margin: 6mm 0 !important
  }

  .project-hero h1 em {
    color: #545ec0 !important;
    background: none !important;
    -webkit-text-fill-color: #545ec0
  }

  .project-hero p {
    font-size: 11pt !important;
    max-width: none
  }

  .project-eyebrow, .eyebrow {
    color: #555eb1 !important
  }

  .project-metrics {
    margin: 8mm 0 !important;
    padding: 6mm 0;
    border-color: #ddd;
    gap: 12mm
  }

  .project-metrics strong {
    color: #333 !important;
    font-size: 25pt !important
  }

  .project-metrics span {
    color: #555 !important
  }

  .project-page p {
    color: #444 !important
  }

  .project-workspace>.wrap>.project-section-title {
    display: none !important
  }

  .project-page section.phase-panel, .project-page section.phase-panel[hidden] {
    display: block !important;
    break-before: page;
    border: none;
    border-radius: 0;
    padding: 0 !important
  }

  .phase-heading h3 {
    font-size: 20pt !important;
    max-width: 140mm
  }

  .phase-heading .eyebrow {
    font-size: 9pt
  }

  .day-pill {
    font-size: 9pt;
    color: #444;
    background: #f5f5f5;
    border-color: #ddd
  }

  .phase-goal {
    font-size: 10pt !important;
    margin: 0 0 5mm;
    padding-bottom: 4mm
  }

  .phase-content {
    display: block
  }

  .task {
    margin-bottom: 4mm;
    break-inside: avoid;
    gap: 4mm
  }

  .task h4 {
    font-size: 10pt !important;
    margin: 0 0 1mm
  }

  .task p {
    font-size: 9pt !important;
    line-height: 1.6 !important
  }

  .task-index {
    background: #f1f1f6 !important;
    color: #555 !important;
    font-size: 8pt
  }

  .phase-note {
    break-inside: avoid;
    background: #f5f5f7 !important;
    padding: 3mm 4mm;
    margin: 4mm 0
  }

  .phase-note p {
    font-size: 9pt;
    line-height: 1.5
  }

  .phase-outcomes {
    display: block;
    border-left: 0;
    border-top: 1px solid #ddd;
    padding: 4mm 0 0;
    margin-top: 4mm
  }

  .phase-outcomes>div {
    margin: 0 0 3mm;
    break-inside: avoid
  }

  .phase-outcomes span {
    font-size: 7.5pt;
    color: #555eb1
  }

  .phase-outcomes p {
    font-size: 9pt;
    line-height: 1.5;
    margin: 1mm 0
  }

  .project-page section.project-schedule {
    break-before: page
  }

  .project-section-title {
    margin-bottom: 5mm
  }

  .project-section-title h2 {
    font-size: 22pt
  }

  .timeline-bar {
    margin: 5mm 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact
  }

  .timeline-bar>span {
    font-size: 8pt;
    padding: 3mm
  }

  .table-wrap {
    overflow: visible;
    border-radius: 0
  }

  table {
    font-size: 9pt
  }

  thead {
    display: table-header-group
  }

  tr {
    break-inside: avoid
  }

  td, th {
    padding: 3mm 2mm;
    min-width: 0 !important
  }

  th {
    font-size: 7.5pt
  }

  td button {
    font-size: 9pt;
    color: #333
  }

  caption {
    font-size: 9pt;
    padding: 3mm 2mm
  }

  .project-conditions {
    gap: 6mm;
    margin-top: 6mm
  }

  .project-conditions h3 {
    font-size: 10pt
  }

  .project-conditions p {
    font-size: 9pt
  }

  .project-page section.project-next {
    break-before: page
  }

  .kanban-card {
    display: block;
    padding: 0;
    border: none
  }

  .kanban-card h2 {
    font-size: 21pt
  }

  .kanban-card p, .project-summary p {
    font-size: 10pt
  }

  .kanban-status {
    color: #555;
    border-color: #ddd
  }

  .project-summary {
    margin: 10mm 0
  }

  .project-summary h3 {
    font-size: 13pt
  }

  .technical-sources {
    border-color: #ddd
  }

  .technical-sources summary {
    color: #555;
    font-size: 9pt
  }

  .technical-sources summary:after {
    display: none
  }

  .technical-sources>p, .technical-sources>ul {
    display: block !important
  }

  .technical-sources li {
    font-size: 9pt;
    color: #444
  }

  .technical-sources a {
    color: #444
  }

  a {
    text-decoration: none !important
  }
}