:root {
  --account-ink: #15201e;
  --account-muted: #66716f;
  --account-paper: #f6f4ed;
  --account-card: #ffffff;
  --account-line: #d8ddd9;
  --account-accent: #cf5a2b;
  --account-accent-dark: #9d3d19;
  --account-danger: #9e2d26;
  --account-green: #244e42;
}

.account-body {
  min-height: 100vh;
  background: var(--account-paper);
  color: var(--account-ink);
}

.account-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.account-status {
  min-height: 0;
  margin-bottom: 16px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.account-status:not(:empty) {
  padding: 12px 14px;
  border: 1px solid #e1b58d;
  background: #fff5e9;
}

.account-status.error:not(:empty) {
  border-color: #deb4ae;
  background: #fff0ee;
  color: #77231e;
}

.account-eyebrow {
  margin: 0 0 9px;
  color: var(--account-accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.7fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  min-height: 600px;
}

.auth-intro h1,
.design-panel-header h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.25rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.auth-intro > p:not(.account-eyebrow) {
  max-width: 650px;
  margin: 24px 0;
  color: var(--account-muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.auth-intro ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.auth-intro li::before {
  content: "✓";
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--account-green);
  color: #fff;
  font-weight: 800;
}

.auth-card,
.design-list-panel,
.design-detail {
  border: 1px solid var(--account-line);
  background: var(--account-card);
  box-shadow: 0 20px 60px rgba(21, 32, 30, 0.08);
}

.auth-card {
  padding: 28px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  padding: 4px;
  border: 1px solid var(--account-line);
  background: #f1f3ef;
}

.auth-tab {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--account-muted);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: var(--account-ink);
  box-shadow: 0 3px 12px rgba(21, 32, 30, 0.09);
}

.account-form,
.detail-form {
  display: grid;
  gap: 18px;
}

.account-form h2 {
  margin: 0 0 3px;
  font-size: 1.65rem;
}

.account-form label,
.detail-form label {
  display: grid;
  gap: 7px;
  color: #303a38;
  font-size: 0.88rem;
  font-weight: 750;
}

.account-form input,
.detail-form input,
.detail-form textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #bdc6c2;
  border-radius: 3px;
  background: #fff;
  color: var(--account-ink);
  font: inherit;
  font-weight: 500;
  padding: 11px 12px;
}

.detail-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.account-form input:focus,
.detail-form input:focus,
.detail-form textarea:focus,
.auth-tab:focus-visible,
.account-primary:focus-visible,
.account-secondary:focus-visible,
.account-danger:focus-visible,
.design-list-button:focus-visible {
  outline: 3px solid rgba(207, 90, 43, 0.3);
  outline-offset: 2px;
  border-color: var(--account-accent);
}

.account-form small {
  margin-top: -12px;
  color: var(--account-muted);
}

.account-primary,
.account-secondary,
.account-danger {
  display: inline-flex;
  min-height: 46px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.account-primary {
  border: 1px solid var(--account-accent);
  background: var(--account-accent);
  color: #fff;
}

.account-primary:hover {
  border-color: var(--account-accent-dark);
  background: var(--account-accent-dark);
}

.account-secondary {
  border: 1px solid var(--account-line);
  background: #fff;
  color: var(--account-ink);
}

.account-danger {
  border: 1px solid #e1c1bd;
  background: #fff;
  color: var(--account-danger);
}

.link-button {
  text-decoration: none;
}

.design-panel-header {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.design-panel-header h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.design-panel-header > div > p:last-child {
  max-width: 720px;
  color: var(--account-muted);
  line-height: 1.6;
}

.account-actions,
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.design-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 600px;
}

.design-list-panel {
  padding: 18px;
}

.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--account-line);
}

.list-heading h2 {
  margin: 0;
  font-size: 1.05rem;
}

.list-heading span {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #edf1ed;
  color: #46514e;
  font-weight: 800;
}

.design-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.design-list-button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 80px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #f7f8f5;
  color: var(--account-ink);
  padding: 13px;
  text-align: left;
  cursor: pointer;
}

.design-list-button:hover,
.design-list-button.active {
  border-color: #d5ab91;
  background: #fff5ec;
}

.design-list-button strong {
  font-size: 0.98rem;
}

.design-list-button span,
.design-list-button small {
  color: var(--account-muted);
}

.empty-designs {
  padding: 32px 10px;
  color: var(--account-muted);
  line-height: 1.55;
}

.empty-designs strong {
  display: block;
  color: var(--account-ink);
  font-size: 1.08rem;
}

.empty-designs a {
  color: var(--account-accent-dark);
  font-weight: 800;
}

.design-detail {
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
}

.detail-placeholder {
  display: grid;
  min-height: 500px;
  place-content: center;
  text-align: center;
  color: var(--account-muted);
}

.detail-placeholder span {
  display: inline-grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px dashed #9fa9a5;
  border-radius: 50%;
  font-size: 2rem;
}

.detail-placeholder h2 {
  margin: 0;
  color: var(--account-ink);
}

.detail-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--account-line);
}

.detail-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.detail-header div > p:last-child {
  color: var(--account-muted);
}

.detail-form {
  grid-template-columns: 1fr 1fr;
}

.detail-form .wide {
  grid-column: 1 / -1;
}

.detail-meta {
  display: flex;
  gap: 12px 30px;
  flex-wrap: wrap;
  border-top: 1px solid var(--account-line);
  padding-top: 16px;
  color: var(--account-muted);
  font-size: 0.9rem;
}

button[disabled],
.account-primary[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.58;
}

@media (max-width: 900px) {
  .auth-panel,
  .design-workspace {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding-top: 24px;
  }

  .design-panel-header {
    display: grid;
    align-items: start;
  }

  .design-list-panel {
    max-height: 390px;
    overflow: auto;
  }
}

@media (max-width: 620px) {
  .account-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 28px;
  }

  .auth-card,
  .design-detail {
    padding: 20px;
  }

  .detail-header,
  .detail-actions,
  .account-actions {
    display: grid;
  }

  .detail-form {
    grid-template-columns: 1fr;
  }

  .detail-form .wide {
    grid-column: auto;
  }
}

