/* Guitrees — buyer account page.
   Reuses the site's palette so the page feels part of the store rather than a
   bolted-on login screen. */

.acc-top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.acc-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.acc-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--green-deep);
}

.acc-main {
  padding: 56px 24px 80px;
  min-height: 62vh;
}

.acc-intro {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}
.acc-h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  margin-bottom: 14px;
}
.acc-lead {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.72;
}
.acc-h2 {
  font-size: 19px;
  margin-bottom: 6px;
}

/* ---------- auth panes ---------- */
.acc-panes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  max-width: 720px;
  margin: 0 auto;
}
.acc-pane {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
}
.acc-pane form { margin-top: 18px; }

.fld { margin-bottom: 16px; }
.fld label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.fld .opt {
  color: var(--ink-4);
  font-weight: 400;
}
.fld input,
.fld textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, background .16s ease;
}
.fld input:focus,
.fld textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--paper);
}
.fld textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.fld .hint {
  display: block;
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 5px;
}

.btn-wide { width: 100%; justify-content: center; }

.acc-err {
  margin: 0 0 14px;
  padding: 9px 13px;
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--radius);
  font-size: 13.5px;
}

.acc-switch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}
.linkish {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}
.linkish:hover { color: var(--green-deep); }

/* ---------- dashboard ---------- */
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.dash-eyebrow {
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.dash-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
}
.acc-note {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.68;
}

/* ---------- message list ---------- */
.msg-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.msg-item:last-child { border-bottom: 0; padding-bottom: 0; }
.msg-item:first-child { padding-top: 6px; }
.msg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}
.msg-subj { font-weight: 500; font-size: 15px; }
.msg-when { font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.msg-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  white-space: pre-wrap;
}
.msg-reply {
  margin-top: 12px;
  padding: 12px 15px;
  background: var(--green-light);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink);
}
.msg-reply b {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 5px;
}
.msg-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
}
.msg-tag.replied { background: var(--green-light); color: var(--green-deep); }
.msg-tag.new     { background: var(--clay-light);  color: var(--clay-deep); }
.msg-tag.read    { background: var(--paper-3);    color: var(--ink-3); }

/* ---------- footer ---------- */
.acc-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-4);
}

@media (max-width: 560px) {
  .acc-main { padding: 36px 20px 56px; }
  .acc-pane, .dash-card { padding: 24px 20px 28px; }
  .dash-head { align-items: flex-start; }
}

/* ---------- overrides scoped to the account page ----------
   The site stylesheet is the industrial palette (brass buttons on dark chrome).
   The account page is a standalone form, so primary actions use the green from
   the trust bar instead of brass, which read as a warning colour next to form
   fields. */

.acct-btn,
.btn-primary {
  background: var(--green, #2f6b45);
  color: #fff;
}
.acct-btn:hover,
.btn-primary:hover {
  background: var(--green-dark, #24523a);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}
