:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #617069;
  --line: rgba(23, 32, 27, 0.13);
  --blue: #315d8f;
  --green: #2f7d57;
  --amber: #a96112;
  --bg: #eef2ef;
  --panel: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body,
button,
input,
select {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  color: var(--ink);
  background: var(--bg);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.account-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}

.account-nav {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.brand {
  display: grid;
}

.brand strong {
  font-size: 21px;
}

.brand span,
.account-header p,
.eyebrow,
.status-grid span,
.status-grid small,
.local-notice span,
.compact-row span,
.project-meta,
.empty-state span,
.save-status {
  color: var(--muted);
}

.brand span {
  font-size: 11px;
  font-weight: 800;
}

.account-nav nav,
.nav-actions {
  display: grid;
  gap: 5px;
}

.account-nav nav a,
.nav-actions a {
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.account-nav nav a.active,
.account-nav nav a:hover {
  color: #fff;
  background: var(--blue);
}

.nav-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.nav-actions a {
  color: var(--blue);
  background: rgba(49, 93, 143, 0.07);
}

.account-main {
  display: grid;
  gap: 16px;
  align-content: start;
  width: min(1320px, 100%);
  padding: 24px;
}

.account-header,
.section-head,
.project-row,
.compact-row,
.local-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-header {
  align-items: flex-end;
}

.eyebrow {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 17px;
}

.account-header p:not(.eyebrow) {
  margin-top: 7px;
  font-size: 13px;
}

.primary-action,
.section-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.section-head a {
  color: var(--blue);
  background: #fff;
}

.local-notice {
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(169, 97, 18, 0.24);
  border-radius: 7px;
  background: rgba(255, 248, 230, 0.9);
  font-size: 12px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-grid article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.status-grid article {
  display: grid;
  gap: 4px;
  padding: 15px;
}

.status-grid strong {
  font-size: 26px;
}

.status-grid small {
  font-size: 11px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 12px;
}

.panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
}

.projects-panel,
.profile-panel,
.orders-panel {
  grid-column: 1 / -1;
}

.project-list,
.compact-list {
  display: grid;
}

.project-row,
.compact-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.project-row:first-child,
.compact-row:first-child {
  border-top: 0;
}

.project-row > div,
.compact-row > div {
  display: grid;
  gap: 3px;
}

.project-row strong,
.compact-row strong {
  font-size: 13px;
}

.project-meta,
.compact-row span {
  font-size: 11px;
}

.project-badge,
.request-badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(169, 97, 18, 0.22);
  border-radius: 5px;
  color: var(--amber);
  background: rgba(169, 97, 18, 0.06);
  font-size: 10px;
  font-weight: 900;
}

.project-actions {
  display: flex;
  gap: 6px;
}

.project-actions a,
.project-actions button {
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.profile-form input,
.profile-form select {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 120px;
  gap: 10px;
  grid-column: 1 / -1;
}

.form-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form .primary-action {
  justify-self: start;
}

.save-status {
  font-size: 11px;
  font-weight: 850;
}

.empty-state {
  display: grid;
  gap: 5px;
  min-height: 90px;
  place-content: center;
  text-align: center;
}

.empty-state span {
  max-width: 520px;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-nav {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .account-nav nav,
  .nav-actions {
    display: flex;
    overflow-x: auto;
  }

  .nav-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 700px) {
  .account-main {
    padding: 16px 14px;
  }

  .account-header,
  .section-head,
  .project-row,
  .local-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 25px;
  }

  .status-grid,
  .account-grid,
  .profile-form,
  .form-row,
  .form-row-two {
    grid-template-columns: 1fr;
  }

  .projects-panel,
  .profile-panel,
  .orders-panel,
  .form-row {
    grid-column: auto;
  }
}
