@import url('./base.css');
[hidden] {
  display: none !important;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.account-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  height: 88px;
}
.account-header img {
  width: 210px;
  height: auto;
  display: block;
}
.back-link {
  font-size: 13px;
}
.account-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}
.status:not(:empty) {
  border-left: 2px solid var(--accent);
  padding: 12px 18px;
  margin: 26px 0;
  color: var(--ink);
}
.status[data-error='true'] {
  border-color: #a93340;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 8vw, 140px);
  padding: 70px 0 68px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.login-story h1,
.member-heading h1,
.callback h1 {
  font: 400 clamp(42px, 4.7vw, 72px)/1.08 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.login-story > p:not(.eyebrow) {
  line-height: 1.8;
  font-size: 17px;
}
.story-images {
  display: flex;
  gap: 14px;
  max-width: 440px;
  margin-top: 34px;
}
.story-images img {
  width: calc(50% - 7px);
  aspect-ratio: 1;
  object-fit: cover;
}
.login-card {
  border-left: 1px solid var(--line);
  padding: 22px 0 0 clamp(24px, 4vw, 64px);
}
h2 {
  font: 400 30px/1.2 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 15px;
}
p {
  line-height: 1.65;
}
.login-card > p:not(.eyebrow),
.account-layout section > p,
.local-section > p {
  color: var(--muted);
}
.provider-actions {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.provider {
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
  padding: 14px 18px;
  background: var(--light);
  min-height: 54px;
}
.email-login-form {
  margin-top: 28px;
}
.email-login-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.email-login-form input {
  width: 100%;
  min-width: 0;
  padding: 15px;
  min-height: 52px;
  border: 1px solid var(--line);
  background: var(--light);
  color: var(--ink);
  font: inherit;
}
.email-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
}
.email-submit[aria-busy='true'] {
  opacity: 0.6;
  cursor: wait;
}
.email-login-form input:focus-visible,
.login-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.email-login-form input:user-invalid {
  border-color: #a93340;
}
.email-login-form .small:empty {
  display: none;
}
.remember-session {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  font-size: 13px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.login-divider::before,
.login-divider::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.login-switch {
  font-size: 13px;
  text-align: center;
}
.login-switch button {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 4px;
  min-height: 44px;
}
.login-switch button:hover {
  color: var(--accent);
}
.login-switch button:active,
.provider:active:not(:disabled),
.email-submit:active:not(:disabled) {
  transform: translateY(1px);
}
.login-captcha {
  margin-top: 14px;
  min-height: 65px;
}
.code-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.provider span:last-child {
  margin-left: auto;
}
.provider:hover:not(:disabled) {
  background: white;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.login-note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.login-note > span {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.login-note p {
  font-size: 14px;
  max-width: 350px;
}
.local-section {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 34px;
}
.section-heading,
.member-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.member-heading {
  padding: 48px 0 30px;
}
.member-heading h1 {
  margin: 0;
}
.account-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 50px;
  margin: 20px 0 60px;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-nav button {
  display: flex;
  justify-content: space-between;
  text-align: left;
  min-height: 50px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.account-nav button[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}
.account-nav button span {
  font-size: 10px;
  opacity: 0.65;
}
.design-grid {
  display: grid;
  /* Previously flexible cards filled the account page; keep requested compact previews. */
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 180px));
  gap: 18px;
  margin: 25px 0;
}
.design-grid > .empty {
  grid-column: 1 / -1;
}
.design-card {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.design-card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #e4e1dc;
}
.design-card h3 {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  margin: 10px 0 6px;
}
.design-card p {
  font-size: 12px;
  color: var(--muted);
}
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.text-button {
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.empty {
  padding: 35px 0;
}
.empty > span {
  font: 400 25px var(--display);
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 22px;
  min-height: 50px;
  font: inherit;
  border: 0;
  cursor: pointer;
}
form {
  max-width: 450px;
}
label {
  display: block;
  font-size: 13px;
  margin: 20px 0 9px;
}
input {
  border: 1px solid var(--line);
  background: var(--light);
  padding: 14px;
  font: inherit;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
form .action {
  margin-top: 24px;
}
.verification {
  max-width: 520px;
  margin: 50px auto 80px;
}
.account-footer {
  background: #090b0d;
  color: var(--paper);
  padding: 30px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}
.callback {
  max-width: 620px;
  margin: 15vh auto;
  padding: 30px;
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: min(1000px, calc(100% - 32px));
  max-height: 88vh;
  padding: 28px;
}
dialog::backdrop {
  background: #090b0dcc;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.dialog-heading button {
  min-width: 44px;
  min-height: 44px;
}
.revision-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.revision-list button {
  padding: 12px;
  border: 1px solid var(--line);
}
.revision-list button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.asset-grid figure {
  margin: 0;
}
.asset-grid img,
.vector-preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #e3e0da;
}
.vector-preview {
  display: grid;
  place-items: center;
  font: 32px var(--display);
}
.asset-grid figcaption {
  font-size: 12px;
  margin: 10px 0 20px;
  color: var(--muted);
}
@media (max-width: 780px) {
  .account-header {
    height: 76px;
  }
  .account-header img {
    width: 160px;
  }
  .back-link {
    font-size: 11px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0;
  }
  .login-story h1 {
    font-size: 44px;
  }
  .login-story > p:not(.eyebrow) {
    font-size: 15px;
  }
  .story-images {
    max-width: 300px;
  }
  .login-card {
    order: -1;
    padding: 0;
    border-left: 0;
    border-top: 0;
  }
  .login-card h2 {
    font-size: 28px;
  }
  .login-note {
    margin-top: 25px;
  }
  .account-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .account-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .design-grid {
    grid-template-columns: repeat(2, minmax(0, 180px));
    gap: 16px;
  }
  .account-nav button {
    gap: 12px;
  }
  .section-heading {
    align-items: start;
    flex-wrap: wrap;
  }
  .member-heading {
    padding-top: 30px;
  }
  .member-heading h1 {
    font-size: 40px;
  }
  .account-footer {
    flex-direction: column;
    gap: 12px;
  }
  dialog {
    padding: 18px;
  }
  .provider {
    padding: 16px;
  }
  .local-section h2 {
    font-size: 28px;
  }
}
