.brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
}

.brand span {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.brand-static {
  pointer-events: none;
}

.top-navigation {
  display: flex;
  align-items: flex-start;
  gap: clamp(26px, 3.5vw, 52px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: flex-start;
  padding: 3px 0 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
}

.nav-link::after {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--faded-navy);
  content: "";
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  width: 22px;
}

.nav-logout-button {
  color: var(--muted-soft);
}

.client-context {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(64px, 7vw, 96px);
}

.client-context span,
.eyebrow,
.version-label,
.section-index {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: lowercase;
}

.client-context strong {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.panel-section + .panel-section {
  margin-top: clamp(80px, 9vw, 128px);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--faded-navy);
  font-weight: 700;
}

.section-index::before {
  width: 18px;
  height: 1px;
  background: var(--faded-navy);
  content: "";
}

.section-title {
  max-width: 820px;
  margin-bottom: 34px;
  font-size: clamp(22px, 2.15vw, 30px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: lowercase;
}

.project-list {
  display: grid;
  gap: 6px;
}

.project-list-header,
.project-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.78fr) minmax(260px, 2.15fr) minmax(260px, 1.9fr) minmax(126px, 0.82fr);
  column-gap: clamp(22px, 2.5vw, 42px);
}

.project-list-header {
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: lowercase;
}

.project-list-header span:last-child {
  text-align: right;
}

.project-row {
  position: relative;
  align-items: start;
  min-height: 72px;
  padding: 19px 0 18px;
  color: var(--text);
  text-decoration: none;
}

.project-row::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--line);
  content: "";
}

.project-row:last-child::after {
  display: none;
}

.project-row.is-interactive {
  cursor: pointer;
}

.project-row.is-interactive::before {
  position: absolute;
  inset: 3px calc(var(--page-padding) * -0.18);
  z-index: -1;
  background: var(--gray);
  content: "";
  opacity: 0;
  transition: opacity var(--transition);
}

.project-row.is-interactive:hover::before,
.project-row.is-interactive:focus-visible::before {
  opacity: 1;
}

.project-date,
.project-amount {
  font-size: 11px;
  line-height: 1.55;
}

.project-date {
  color: var(--muted);
  white-space: nowrap;
}

.project-name {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}

.project-status {
  color: var(--muted);
  font-size: 12px;
}

.project-amount {
  text-align: right;
  white-space: nowrap;
}

.project-amount.is-paid {
  color: var(--muted);
}

.total-section {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  margin-top: clamp(92px, 10vw, 136px);
  text-align: right;
}

.total-section::before {
  width: 18px;
  height: 1px;
  margin-bottom: 24px;
  background: var(--faded-navy);
  content: "";
}

.total-section span {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: lowercase;
}

.total-section strong {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.completed-projects {
  margin-top: clamp(80px, 9vw, 128px);
}

.completed-projects-summary {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  cursor: pointer;
  list-style: none;
}

.completed-projects-summary::-webkit-details-marker {
  display: none;
}

.completed-projects-heading {
  display: block;
}

.completed-projects-summary .section-index {
  margin-bottom: 15px;
}

.completed-projects-title {
  display: block;
  font-size: clamp(22px, 2.15vw, 30px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: lowercase;
}

.completed-projects-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: lowercase;
}

.completed-projects-action::after {
  width: 14px;
  height: 1px;
  margin-left: 10px;
  background: var(--faded-navy);
  content: "";
}

.completed-projects[open] .completed-projects-action {
  color: var(--text);
}

.completed-projects-content {
  margin-top: 34px;
}

.completed-projects:not([open]) .completed-projects-content {
  display: none;
}

.notice-dialog {
  width: min(calc(100% - 40px), 560px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.notice-dialog::backdrop {
  background: rgba(26, 42, 58, 0.28);
  backdrop-filter: blur(2px);
}

.notice-dialog-content {
  padding: clamp(30px, 6vw, 54px);
}

.notice-dialog h2 {
  max-width: 420px;
  margin: 18px 0 46px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: lowercase;
}

.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: lowercase;
}

.text-button::after {
  width: 14px;
  height: 1px;
  margin-left: 10px;
  background: var(--faded-navy);
  content: "";
}

.text-button:hover {
  color: var(--text);
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: lowercase;
}

.back-link::before {
  width: 14px;
  height: 1px;
  margin-right: 10px;
  background: var(--faded-navy);
  content: "";
}

.back-link:hover {
  color: var(--text);
}

.project-details {
  max-width: 980px;
  margin-top: clamp(52px, 7vw, 88px);
}

.project-details h1 {
  max-width: 880px;
  margin: 18px 0 34px;
  font-size: clamp(31px, 4.1vw, 48px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.28;
  text-transform: lowercase;
}

.project-description {
  max-width: 720px;
  margin-bottom: clamp(62px, 7vw, 94px);
  color: var(--text);
  font-size: clamp(13px, 1.25vw, 15px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.8;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 72px;
}

.detail-item {
  min-width: 0;
}

.detail-item span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: lowercase;
}

.detail-item span::before {
  width: 14px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--faded-navy);
  content: "";
}

.detail-item strong {
  display: block;
  max-width: 440px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.project-action-area {
  margin-top: 64px;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: lowercase;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.primary-button:hover {
  border-color: var(--faded-navy);
  background: var(--faded-navy);
}

.materials-unavailable {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.login-intro h1 {
  max-width: 700px;
  margin: 18px 0 30px;
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.28;
  text-transform: lowercase;
}

.login-intro > p:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.login-form {
  width: 100%;
}

.field-group {
  display: block;
  margin-bottom: 28px;
}

.field-group > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: lowercase;
}

.field-group input {
  width: 100%;
  min-height: 52px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  outline: none;
}

.field-group input:focus {
  border-color: var(--faded-navy);
}

.field-group input::placeholder {
  color: var(--muted-soft);
}

.form-error {
  min-height: 20px;
  margin: -4px 0 18px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.6;
}

.login-submit {
  width: 100%;
}

.forgot-button {
  width: 100%;
  margin-top: 12px;
}

.demo-button {
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: lowercase;
  transition: border-color var(--transition), background var(--transition);
}

.demo-button:hover {
  border-color: var(--faded-navy);
  background: var(--gray);
}

.demo-credentials {
  margin: 16px 0 0;
  color: var(--muted-soft);
  font-size: 9px;
  line-height: 1.65;
  text-align: left;
}

.demo-credentials strong {
  color: var(--muted);
  font-weight: 400;
}

.not-found {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 15vh var(--page-padding);
}

.not-found h1 {
  margin: 20px 0 38px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: lowercase;
}

@media (min-width: 720px) and (max-width: 1099px) {
  .top-navigation {
    gap: 30px;
  }

  .client-context {
    margin-bottom: 72px;
  }

  .section-title {
    margin-bottom: 28px;
  }

  .project-list-header,
  .project-row {
    grid-template-columns: 112px minmax(0, 1fr) 126px;
    grid-template-areas: "date project amount";
    column-gap: 28px;
  }

  .project-list-header span:nth-child(3) {
    display: none;
  }

  .project-list-header span:nth-child(4) {
    text-align: right;
  }

  .project-date {
    grid-column: 1;
  }

  .project-name {
    grid-column: 2;
    grid-row: 1;
    padding-right: 16px;
  }

  .project-status {
    grid-column: 2;
    grid-row: 2;
    margin-top: 5px;
    padding-right: 16px;
  }

  .project-amount {
    grid-column: 3;
    grid-row: 1;
  }

  .project-row {
    grid-template-rows: auto auto;
    row-gap: 0;
    padding-block: 20px;
  }

  .details-grid {
    gap: 42px 56px;
  }

  .login-intro h1 {
    max-width: 620px;
  }
}

@media (max-width: 719px) {
  .brand span {
    font-size: 15px;
  }

  .top-navigation {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 18px;
    margin-top: 28px;
  }

  .nav-link {
    min-height: 48px;
    padding-top: 4px;
    font-size: 10px;
    white-space: normal;
  }

  .nav-reservation-button {
    max-width: 190px;
    justify-content: flex-end;
    text-align: right;
  }

  .nav-logout-button {
    grid-column: 2;
    justify-self: end;
  }

  .client-context {
    gap: 12px;
    margin-bottom: 58px;
  }

  .client-context strong {
    font-size: 13px;
  }

  .panel-section + .panel-section {
    margin-top: 86px;
  }

  .section-index {
    margin-bottom: 14px;
  }

  .section-title {
    margin-bottom: 28px;
    font-size: clamp(20px, 6.1vw, 25px);
    letter-spacing: 0.07em;
    line-height: 1.4;
  }

  .project-list-header {
    display: none;
  }

  .project-list {
    gap: 10px;
  }

  .project-row {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "date amount"
      "name name"
      "status status";
    gap: 0 18px;
    padding: 20px 0 22px;
  }

  .project-date {
    grid-area: date;
  }

  .project-amount {
    grid-area: amount;
  }

  .project-name {
    grid-area: name;
    margin-top: 14px;
    padding-right: 22px;
    font-size: 14px;
    line-height: 1.6;
  }

  .project-status {
    grid-area: status;
    margin-top: 5px;
    padding-right: 30px;
    font-size: 12px;
    line-height: 1.65;
  }

  .project-row.is-interactive::after {
    position: absolute;
    right: 0;
    bottom: 23px;
    left: auto;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--faded-navy);
    content: "↗";
    font-size: 12px;
  }

  .project-row:not(.is-interactive)::after {
    bottom: 0;
  }

  .project-row.is-interactive::before {
    inset: 3px -10px;
  }

  .total-section {
    margin-top: 88px;
  }

  .total-section strong {
    font-size: clamp(30px, 10vw, 42px);
  }

  .completed-projects-summary {
    align-items: end;
    gap: 18px;
  }

  .completed-projects-title {
    font-size: clamp(20px, 6.1vw, 25px);
    letter-spacing: 0.07em;
    line-height: 1.4;
  }

  .completed-projects-content {
    margin-top: 28px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .project-action-area .primary-button {
    width: 100%;
  }

  .project-details h1 {
    font-size: clamp(28px, 8vw, 38px);
    letter-spacing: 0.08em;
    line-height: 1.38;
  }

  .project-description {
    font-size: 12px;
  }

  .login-intro h1 {
    font-size: clamp(32px, 9.8vw, 43px);
    letter-spacing: 0.11em;
    line-height: 1.35;
  }

  .notice-dialog {
    width: min(calc(100% - 32px), 560px);
  }
}

@media (max-width: 390px) {
  .nav-reservation-button {
    max-width: 158px;
  }

  .project-name {
    padding-right: 12px;
  }

  .project-status {
    padding-right: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Desktop identity correction. The panel uses a restrained editorial grid,
   three clear text scales and short accents instead of dashboard styling. */
@media (min-width: 1100px) {
  .brand span {
    font-size: 18px;
    letter-spacing: 0.18em;
  }

  .brand small {
    margin-top: 9px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .top-navigation {
    justify-content: flex-start;
    gap: 48px;
  }

  .nav-link {
    min-height: 34px;
    padding-top: 2px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .nav-link::after {
    bottom: 1px;
  }

  .client-context {
    grid-column: 1;
    grid-row: 1;
    display: block;
    margin: 0;
    padding-top: 1px;
  }

  .client-context span {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--faded-navy);
    font-weight: 700;
  }

  .client-context span::before {
    width: 14px;
    height: 1px;
    flex: 0 0 auto;
    background: var(--faded-navy);
    content: "";
  }

  .client-context strong {
    display: block;
    max-width: 220px;
    font-size: 15px;
    letter-spacing: 0.05em;
    line-height: 1.6;
  }

  .panel-section,
  .total-section {
    grid-column: 2;
    width: 100%;
    max-width: 960px;
  }

  .active-projects {
    grid-row: 1;
  }

  .panel-section + .panel-section {
    margin-top: 94px;
  }

  .section-index {
    margin-bottom: 15px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .section-index::before {
    width: 14px;
  }

  .section-title {
    max-width: 620px;
    margin-bottom: 31px;
    font-size: 22px;
    letter-spacing: 0.1em;
    line-height: 1.35;
  }

  .project-list {
    gap: 0;
  }

  .project-list-header,
  .project-row {
    grid-template-columns: 108px minmax(250px, 1.45fr) minmax(235px, 1.25fr) 118px;
    column-gap: 28px;
  }

  .project-list-header {
    padding-bottom: 14px;
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }

  .project-row {
    min-height: 70px;
    padding: 18px 0 17px;
  }

  .project-row::after {
    width: 12px;
    background: rgba(26, 42, 58, 0.16);
  }

  .project-row.is-interactive::before {
    display: none;
  }

  .project-date,
  .project-amount {
    font-size: 10px;
    line-height: 1.6;
  }

  .project-name {
    font-size: 12.5px;
    line-height: 1.6;
    transition: color var(--transition);
  }

  .project-status {
    color: rgba(26, 42, 58, 0.62);
    font-size: 10.5px;
    line-height: 1.65;
  }

  .project-row.is-interactive:hover .project-name,
  .project-row.is-interactive:focus-visible .project-name {
    color: var(--faded-navy);
  }

  .project-row.is-interactive:hover .project-amount::after,
  .project-row.is-interactive:focus-visible .project-amount::after {
    margin-left: 8px;
    color: var(--faded-navy);
    content: "↗";
  }

  .total-section {
    margin-top: 88px;
  }

  .completed-projects {
    margin-top: 78px;
  }

  .completed-projects-summary .section-index {
    margin-bottom: 13px;
  }

  .completed-projects-title {
    font-size: 22px;
    letter-spacing: 0.1em;
  }

  .completed-projects-content {
    margin-top: 31px;
  }

  .total-section::before {
    width: 14px;
    margin-bottom: 18px;
  }

  .total-section span {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .total-section strong {
    font-size: 38px;
    letter-spacing: 0.08em;
  }
}
