/* AIKDNA account surfaces: native system fonts and no remote assets. */
:root {
  color-scheme:light dark;
  --bg:#f5f5f1;
  --panel:#fffefa;
  --fg:#202824;
  --muted:#606963;
  --faint:#6e7771;
  --line:#dce1d9;
  --surface:#f0f2ec;
  --accent:#1d6b56;
  --accent-hover:#15533f;
  --on-accent:#fff;
  --focus:#1d6b56;
  --ok:#216748;
  --danger:#a3323c;
  --story:#202a27;
  --story-fg:#f0f3eb;
}
@media(prefers-color-scheme:dark) {
  :root {
    --bg:#161c19;
    --panel:#1e2622;
    --fg:#edf0e9;
    --muted:#b7c0b7;
    --faint:#a4afa5;
    --line:#39443b;
    --surface:#29332c;
    --accent:#8bd4bb;
    --accent-hover:#a9e2cc;
    --on-accent:#142c22;
    --focus:#8bd4bb;
    --ok:#8bd4bb;
    --danger:#ffabb0;
    --story:#131b17;
    --story-fg:#f0f3eb;
  }
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  font:16px/1.6 -apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--fg);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
a,button,input,summary {
  touch-action:manipulation;
}
a {
  color:var(--accent);
  text-underline-offset:4px;
}
a:hover {
  text-decoration-thickness:2px;
}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible {
  outline:2px solid var(--focus);
  outline-offset:4px;
}
button,input {
  font:inherit;
}
header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 40px;
  max-width:1440px;
  width:100%;
  margin:0 auto;
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:11px;
  color:var(--fg);
  font-size:21px;
  font-weight:650;
  letter-spacing:-.045em;
  text-decoration:none;
}
.brand small {
  margin-left:5px;
  padding-left:16px;
  border-left:1px solid var(--line);
  font-size:13px;
  font-weight:450;
  letter-spacing:0;
  color:var(--muted);
}
.lang {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  min-width:64px;
  padding:0 10px;
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  border-radius:6px;
}
.lang:hover {
  color:var(--fg);
  background:var(--surface);
}
.skip {
  position:absolute;
  left:16px;
  top:-100px;
  background:var(--panel);
  padding:12px;
  z-index:10;
}
.skip:focus {
  top:10px;
}
main {
  width:100%;
  max-width:760px;
  margin:24px auto 0;
  padding:24px;
  flex:1;
}
main.auth {
  max-width:1080px;
  margin:28px auto 24px;
  padding:0 24px;
  flex:0 0 auto;
}
.auth-layout {
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--panel);
  box-shadow:0 18px 48px -32px #23362933,0 2px 6px #23362904;
}
.auth-story {
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:600px;
  padding:44px;
  background:var(--story);
  color:var(--story-fg);
  overflow:hidden;
}
.story-label {
  font-size:11px;
  font-weight:550;
  letter-spacing:.16em;
  color:#b1c2b6;
}
.story-title {
  text-wrap:balance;
  white-space:pre-line;
  position:relative;
  font-size:34px;
  font-weight:500;
  line-height:1.42;
  letter-spacing:-.045em;
  max-width:10em;
  margin:44px 0 18px;
}
.story-description {
  position:relative;
  color:#b7c6bb;
  font-size:14px;
  max-width:26ch;
  line-height:1.9;
  margin:0;
}
.story-symbol {
  align-self:flex-end;
  margin:40px -16px 16px 0;
  color:#739b87;
  opacity:.65;
}
.story-symbol .mark-svg {
  width:176px;
  height:176px;
}
.story-footer {
  font-size:11px;
  letter-spacing:.04em;
  color:#a4b8aa;
}
.auth-content {
  min-width:0;
  width:100%;
  max-width:504px;
  margin:auto;
  padding:48px;
}
.hero {
  margin:0 0 16px;
}
.hero>.mark-svg {
  display:none;
}
.wordmark {
  font-size:10px;
  font-weight:550;
  color:var(--faint);
  letter-spacing:.16em;
}
h1 {
  font-size:30px;
  font-weight:600;
  letter-spacing:-.04em;
  line-height:1.35;
  margin:0 0 10px;
}
.lede {
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
  margin:0 0 30px;
  overflow-wrap:anywhere;
}
.card {
  border:1px solid var(--line);
  border-radius:12px;
  padding:28px;
  background:var(--panel);
}
.auth .card {
  border:0;
  border-radius:0;
  padding:0;
}
label {
  display:block;
  font-size:13px;
  font-weight:550;
  margin:20px 0 8px;
}
form>label:first-of-type {
  margin-top:0;
}
input[type=email],input[type=password],input[type=text],input[type=tel] {
  width:100%;
  min-height:48px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--fg);
  font-size:16px;
  transition:border-color .16s,background-color .16s;
}
input:hover {
  border-color:var(--faint);
}
input:focus {
  border-color:var(--focus);
}
input:disabled {
  background:var(--surface);
  color:var(--muted);
}
input[aria-invalid=true] {
  border-color:var(--danger);
}
.consent {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:20px;
  padding:2px 0;
  font-size:12px;
  line-height:1.85;
  font-weight:400;
  color:var(--muted);
  cursor:pointer;
}
.consent input {
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:3px 0;
  accent-color:var(--accent);
}
button,.btn-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:48px;
  width:100%;
  margin-top:22px;
  padding:11px 16px;
  border:1px solid transparent;
  border-radius:8px;
  font-size:14px;
  font-weight:550;
  background:var(--accent);
  color:var(--on-accent);
  cursor:pointer;
  text-decoration:none;
  transition:background-color .16s,border-color .16s,transform .16s;
}
button:hover:not(:disabled),.btn-link:hover {
  background:var(--accent-hover);
}
button:active:not(:disabled),.btn-link:active {
  transform:translateY(1px);
}
button:disabled {
  opacity:.65;
  cursor:wait;
}
button[aria-busy=true]:before {
  content:"";
  flex:0 0 auto;
  width:13px;
  height:13px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:spin .7s linear infinite;
}
button.secondary {
  background:transparent;
  border-color:var(--line);
  color:var(--fg);
  font-weight:450;
}
button.secondary:hover:not(:disabled) {
  background:var(--surface);
  border-color:var(--faint);
}
button.danger {
  background:transparent;
  color:var(--danger);
  border-color:var(--line);
}
button.danger:hover:not(:disabled) {
  background:var(--surface);
}
.hint {
  font-size:12px;
  color:var(--muted);
  margin:10px 0;
}
.hint a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 0;
}
.auth .card>p.hint {
  margin:4px 0;
}
.msg {
  font-size:13px;
  line-height:1.8;
  margin:18px 0 0;
  padding:11px 13px;
  border-radius:8px;
  overflow-wrap:anywhere;
}
.msg:empty {
  display:none;
}
.msg.error {
  color:var(--danger);
  background:color-mix(in srgb,var(--danger) 7%,var(--panel));
  border:1px solid color-mix(in srgb,var(--danger) 20%,var(--line));
}
.msg.ok {
  color:var(--ok);
  background:var(--surface);
}
#captcha {
  display:flex;
  justify-content:flex-start;
  min-height:0;
  margin:18px 0 0;
}
#captcha:empty {
  display:none;
}
.captcha-loading {
  font-size:12px;
  color:var(--muted);
}
.done-title {
  font-size:21px;
  font-weight:550;
  line-height:1.5;
  margin-top:0;
}
.done-email {
  overflow-wrap:anywhere;
  color:var(--muted);
  font-size:14px;
}
.done-steps {
  padding-left:20px;
  color:var(--muted);
  font-size:14px;
}
.done-steps li {
  margin:14px 0;
}
.section {
  margin-top:20px;
}
.section h2 {
  margin-top:0;
}
h2 {
  font-size:17px;
  font-weight:550;
  letter-spacing:-.02em;
  margin:28px 0 10px;
}
.prose h2 {
  margin-top:28px;
}
.prose li {
  margin:8px 0;
}
.row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.row button {
  width:auto;
  flex-shrink:0;
  margin:0;
  min-height:44px;
  padding:8px 13px;
  font-size:13px;
}
.sessions {
  list-style:none;
  margin:18px 0 0;
  padding:0;
}
.sessions li {
  padding:18px 0;
  border-top:1px solid var(--line);
}
.sessions .app {
  font-size:14px;
  font-weight:500;
}
.sessions .meta {
  font-size:12px;
  color:var(--faint);
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
.danger-section summary {
  color:var(--danger);
  font-size:14px;
  cursor:pointer;
  min-height:44px;
  display:list-item;
  align-content:center;
}
.status-label {
  display:inline-flex;
  padding:4px 9px;
  border-radius:5px;
  background:var(--surface);
  font-size:12px;
  color:var(--muted);
}
.password-field {
  position:relative;
}
.password-field input {
  padding-right:72px;
}
.password-toggle {
  position:absolute;
  right:2px;
  top:2px;
  width:auto;
  margin:0;
  min-height:44px;
  padding:7px 10px;
  background:transparent!important;
  color:var(--muted);
  font-size:12px;
}
.password-toggle:hover {
  color:var(--fg);
}
footer {
  width:100%;
  max-width:760px;
  margin:28px auto 22px;
  padding:0 24px max(0px,env(safe-area-inset-bottom));
  font-size:11px;
  line-height:1.8;
  text-align:center;
  color:var(--faint);
}
footer nav {
  display:flex;
  justify-content:center;
  gap:24px;
  margin-bottom:5px;
}
footer a {
  color:var(--muted);
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:5px 0;
}
.lab-name {
  font-size:11px;
  margin-top:5px;
  color:var(--faint);
}
.auth-context {
  padding:12px 14px;
  margin:0 0 24px;
  border-left:2px solid var(--accent);
  background:var(--surface);
  font-size:13px;
  border-radius:0 6px 6px 0;
}
.auth-context p {
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
}
.auth-context strong {
  font-weight:600;
}
.secondary-actions {
  display:flex;
  gap:18px;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:10px;
}
.secondary-actions a {
  min-height:44px;
  padding:10px 0;
  font-size:13px;
}
.account-id {
  overflow-wrap:anywhere;
  font-weight:550;
}
.legal-note {
  padding:12px 16px;
  border-left:2px solid var(--line);
  font-size:13px;
  color:var(--muted);
}
.auth-loading {
  display:grid;
  gap:12px;
}
.auth-loading span {
  display:block;
  height:48px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
}
.auth-loading span:nth-child(2) {
  margin-top:16px;
}
.auth-loading span:last-child {
  margin-top:8px;
  background:var(--line);
}
[hidden] {
  display:none!important;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}
@media(max-width:820px) {
  header {
    padding:16px 24px;
  }
  main.auth {
    max-width:504px;
    margin:16px auto 20px;
  }
  .auth-layout {
    display:block;
  }
  .auth-story {
    display:none;
  }
  .auth-content {
    padding:36px;
  }
  .auth-layout {
    border-radius:16px;
  }
  h1 {
    font-size:28px;
  }
  footer {
    margin-top:20px;
  }
}
@media(max-width:480px) {
  header {
    padding:10px 20px;
  }
  .brand {
    font-size:19px;
    gap:9px;
  }
  .brand small {
    padding-left:12px;
    margin-left:1px;
  }
  main,main.auth {
    padding:20px;
    margin:0 auto;
  }
  .auth-layout {
    border:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;
  }
  .auth-content {
    padding:8px 0 0;
  }
  .auth .card {
    background:transparent;
  }
  .hero {
    margin-bottom:18px;
  }
  .lede {
    margin-bottom:26px;
  }
  .card {
    padding:22px;
  }
  .row {
    flex-wrap:wrap;
  }
  footer {
    margin:8px auto 20px;
  }
  .sessions .row {
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .sessions .row button {
    margin-left:auto;
  }
  .auth-context {
    margin-bottom:22px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

/* Self-service uses a compact task list rather than the sign-in marketing shell. */
body[data-view="profile"] .auth-story,body[data-view="profile"] .hero{display:none}
body[data-view="profile"] .auth-layout{display:block;max-width:680px;margin:auto}
body[data-view="profile"] .auth-content{max-width:none;padding:36px 40px}
.account-summary{margin:0 0 20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.account-summary p{margin:0 0 4px}
.account-task{border-top:1px solid var(--line);margin-top:0}
.account-task>summary{min-height:56px;padding:16px 0;cursor:pointer;font-weight:550}
.task-content{padding:0 0 24px}
.task-content>button{width:auto;min-width:160px}
.completion h2{font-size:22px;line-height:1.4;margin:0 0 12px}
.confirmation-address{font-weight:550;overflow-wrap:anywhere;margin:20px 0}
.completion .btn-link{display:flex;justify-content:center;align-items:center;min-height:48px;background:var(--accent);color:var(--on-accent);border-radius:8px;text-decoration:none;margin:24px 0 12px}
@media(max-width:640px){body[data-view="profile"] .auth-content{padding:24px}.task-content>button{width:100%}}

.msg.progress{color:var(--muted)}
