/* Account + consent pages. Builds on /styles.css tokens. */
.acct-nav { background: rgba(10, 6, 20, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.acct-nav .nav-links { align-items: center; }

.acct {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(110px, 14vw, 150px) var(--gutter) 80px;
}
.acct-narrow { max-width: 460px; }
.acct-head { margin-bottom: 36px; }
.acct-title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
}
.acct-title .serif { color: var(--muted); }
.acct-lede { color: var(--muted); margin: 16px 0 0; max-width: 520px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(20px, 4vw, 30px);
  margin-bottom: 18px;
}
.panel h2 { font-size: 1.05rem; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.01em; }
.panel > p.muted { margin: 0 0 20px; font-size: 14px; }
.panel.danger { border-color: rgba(255, 110, 90, 0.25); }

.tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 22px; }
.tabs button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.07); color: var(--fg); }

.form { display: grid; gap: 14px; }
.form + .form { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field label { font: 12px var(--mono); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.field .hint { font-size: 12.5px; color: var(--dim); }
.field input, .field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--fg);
  font: 15px var(--sans);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input[readonly] { color: var(--muted); }
.field input[type="file"] { height: auto; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.acct .btn { height: 44px; padding: 0 20px; border: 0; cursor: pointer; font-family: var(--sans); }
.acct .btn-ghost { border: 1px solid var(--line-2); }
.acct .btn[disabled] { opacity: 0.5; cursor: progress; }
.btn-danger { background: transparent; color: #ff8a78; border: 1px solid rgba(255, 110, 90, 0.4) !important; }
.btn-danger:hover { background: rgba(255, 110, 90, 0.08); }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--fg); }

.notice { font-size: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.notice.ok { border-color: rgba(255, 62, 165, 0.35); color: var(--accent); }
.notice.err { border-color: rgba(255, 110, 90, 0.4); color: #ff9c8c; }
.notice:empty { display: none; }

.who { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-2) center / cover no-repeat;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font: 500 20px var(--sans);
  color: var(--muted);
}

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.list .meta { display: grid; gap: 2px; min-width: 0; }
.list .meta span { overflow-wrap: anywhere; }
.empty { color: var(--dim); font-size: 14px; }

.scopes { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.scopes li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14.5px; }
.scopes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.app-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.app-mark img { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); }

[hidden] { display: none !important; }

@media (max-width: 560px) {
  .list li { flex-direction: column; align-items: flex-start; }
  .row.end { justify-content: stretch; }
  .row.end .btn { flex: 1; justify-content: center; }
}
