/* Profile settings: GitHub-like information architecture in WorldOracle's visual language. */
.account-settings-page{
  width:min(1120px,100%);
  margin:0 auto;
  padding-bottom:64px;
}
.settings-page-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin:0;
  padding:52px 0 28px;
  border-bottom:1px solid var(--line);
}
.settings-page-heading h1{
  margin:5px 0 8px;
  font-size:clamp(34px,4vw,48px);
  letter-spacing:-.045em;
}
.settings-page-heading .muted{
  max-width:680px;
  margin:0;
  font-size:13px;
  line-height:1.75;
}
.account-settings-layout{
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:52px;
  align-items:start;
  margin:30px 0 52px;
}
.settings-sidebar{
  position:sticky;
  top:96px;
  min-width:0;
}
.settings-sidebar-label{
  margin:0 0 12px;
  color:#7b8e9e;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.settings-sidebar nav{
  display:flex;
  flex-direction:column;
  border-block:1px solid var(--line);
}
.settings-sidebar nav a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:43px;
  padding:10px 12px;
  border-bottom:1px solid #e7eff5;
  color:#536a7d;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
}
.settings-sidebar nav a:last-child{border-bottom:0}
.settings-sidebar nav a::after{
  content:"";
  position:absolute;
  inset:8px auto 8px 0;
  width:2px;
  border-radius:2px;
  background:transparent;
}
.settings-sidebar nav a:hover,
.settings-sidebar nav a.is-active{
  color:var(--accent);
  background:#eef7fd;
}
.settings-sidebar nav a.is-active::after{background:var(--accent)}
.settings-sidebar-status{
  margin-top:20px;
  padding:14px 15px;
  border:1px solid #d8e7f1;
  border-radius:9px;
  background:linear-gradient(145deg,#f8fcff,#eff8fd);
}
.settings-sidebar-status span{
  display:block;
  margin-bottom:6px;
  color:#7b8e9e;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.settings-sidebar-status strong{
  display:flex;
  align-items:center;
  gap:8px;
  color:#1b617f;
  font-size:12px;
  overflow-wrap:anywhere;
}
.settings-sidebar-status strong::before{
  content:"";
  width:7px;
  height:7px;
  flex:0 0 auto;
  border-radius:50%;
  background:#1f9d83;
  box-shadow:0 0 0 4px rgba(31,157,131,.1);
}
.settings-content{
  display:grid;
  gap:38px;
  min-width:0;
}
.settings-section{
  min-width:0;
  margin:0;
  padding:0 0 34px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.settings-section:last-child{padding-bottom:0;border-bottom:0}
.settings-section-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  margin:0 0 22px;
}
.settings-section-heading h2,
.settings-section>h2:first-child{
  margin:0 0 7px;
  font-size:22px;
  letter-spacing:-.035em;
}
.settings-section-description{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.75;
}
.settings-identity-header{
  display:flex;
  align-items:center;
  gap:16px;
  margin:20px 0 24px;
  padding:18px 20px;
  border:1px solid #cce1ee;
  border-radius:12px;
  background:
    radial-gradient(circle at 100% 0,rgba(11,185,223,.13),transparent 42%),
    linear-gradient(135deg,#f8fcff,#edf7fd);
}
.settings-avatar{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  flex:0 0 auto;
  border:1px solid rgba(11,127,242,.22);
  border-radius:14px;
  background:linear-gradient(145deg,#0b7ff2,#0bb9df);
  box-shadow:0 10px 22px rgba(11,127,242,.15);
  color:#fff;
  font-size:20px;
  font-weight:800;
}
.settings-identity-copy{min-width:0;flex:1}
.settings-identity-copy strong{
  display:block;
  margin-bottom:4px;
  font-size:17px;
  overflow-wrap:anywhere;
}
.settings-identity-copy span{
  display:block;
  color:var(--muted);
  font-size:11px;
  overflow-wrap:anywhere;
}
.settings-details{
  display:grid;
  grid-template-columns:minmax(145px,28%) minmax(0,1fr);
  gap:0;
  margin:0;
  border-top:1px solid #e2ebf1;
}
.settings-details dt,
.settings-details dd{
  min-width:0;
  margin:0;
  padding:16px 0;
  border-bottom:1px solid #e2ebf1;
  font-size:12px;
  line-height:1.65;
}
.settings-details dt{
  padding-right:24px;
  color:#667c8d;
  font-weight:700;
}
.settings-details dd{
  color:var(--ink);
  font-weight:600;
  overflow-wrap:anywhere;
}
.settings-field-note{
  display:block;
  margin-top:4px;
  color:#8193a1;
  font-size:10px;
  font-weight:500;
  line-height:1.55;
}
.settings-section .actions{margin:22px 0 0}
.settings-section .button{min-height:42px}
.settings-security-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  padding:18px 0 2px;
}
.settings-security-row strong{display:block;margin-bottom:5px;font-size:13px}
.settings-security-row p{max-width:560px;margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.resource-update-panel .page-heading{
  align-items:flex-start;
  margin:0 0 22px;
}
.resource-update-panel .page-heading h2{margin:0 0 7px;font-size:22px}
.resource-update-panel .page-heading .muted{margin:0;font-size:12px;line-height:1.75}
.resource-update-panel .summary{margin-top:0}
.resource-update-panel [data-resource-toggle]{
  margin-top:26px;
}
.profile-resource-url-help{
  display:block;
  margin-top:2px;
  color:#7890a1;
  font-size:10px;
  font-weight:500;
  line-height:1.55;
}
.resource-update-form .profile-dependent-field{
  max-height:0;
  margin:0!important;
  opacity:0;
  overflow:hidden;
  pointer-events:none;
  transform:translate3d(0,-10px,0);
  visibility:hidden;
  transition:
    max-height .48s cubic-bezier(.2,.78,.24,1),
    margin .42s cubic-bezier(.2,.78,.24,1),
    opacity .26s ease,
    transform .42s cubic-bezier(.2,.78,.24,1),
    visibility 0s linear .48s;
}
.resource-update-form .profile-dependent-field.is-visible{
  max-height:150px;
  margin:18px 0!important;
  opacity:1;
  pointer-events:auto;
  transform:translate3d(0,0,0);
  visibility:visible;
  transition:
    max-height .48s cubic-bezier(.2,.78,.24,1),
    margin .42s cubic-bezier(.2,.78,.24,1),
    opacity .34s ease .08s,
    transform .42s cubic-bezier(.2,.78,.24,1),
    visibility 0s;
}
.profile-toast-region{
  position:fixed;
  top:92px;
  right:max(22px,calc((100vw - 1240px)/2 + 28px));
  z-index:80;
  display:grid;
  width:min(390px,calc(100vw - 36px));
  pointer-events:none;
}
.profile-toast{
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 28px;
  gap:12px;
  align-items:start;
  padding:16px 14px 16px 16px;
  overflow:hidden;
  border:1px solid #c9e1db;
  border-radius:12px;
  background:rgba(255,255,255,.97);
  box-shadow:0 18px 55px rgba(8,43,65,.18),0 3px 12px rgba(8,43,65,.08);
  opacity:0;
  pointer-events:auto;
  transform:translate3d(18px,-6px,0) scale(.985);
  transition:opacity .22s ease,transform .3s cubic-bezier(.2,.8,.2,1);
  backdrop-filter:blur(16px);
}
.profile-toast::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:#1b9b7b;
}
.profile-toast.is-error{border-color:#ead2ce}
.profile-toast.is-error::before{background:#bd493d}
.profile-toast.is-visible{opacity:1;transform:none}
.profile-toast-icon{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#e9f7f2;
  color:#157b64;
  font-size:15px;
  font-weight:800;
}
.profile-toast.is-error .profile-toast-icon{background:#fff0ed;color:#a63b32}
.profile-toast-copy{min-width:0}
.profile-toast-copy strong{display:block;margin:1px 0 4px;font-size:12px;letter-spacing:-.01em}
.profile-toast-copy p{margin:0;color:#647988;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.profile-toast-close{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  padding:0;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#8293a0;
  font-size:20px;
  line-height:1;
}
.profile-toast-close:hover{background:#eef4f7;color:#38546a}
.settings-history{
  margin:0 0 60px;
  padding-top:4px;
}
.settings-history>.page-heading{
  margin:0 0 18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}
.settings-history>.page-heading h2{margin:0 0 6px}
@media(max-width:860px){
  .account-settings-layout{grid-template-columns:1fr;gap:30px}
  .settings-sidebar{position:static}
  .settings-sidebar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:9px;overflow:hidden}
  .settings-sidebar nav a{justify-content:center;text-align:center;border-bottom:0;border-right:1px solid #e7eff5}
  .settings-sidebar nav a:last-child{border-right:0}
  .settings-sidebar nav a::after{inset:auto 18px 0;height:2px;width:auto}
  .settings-sidebar-status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px}
  .settings-sidebar-status span{margin:0}
}
@media(max-width:620px){
  .account-settings-page{padding-bottom:38px}
  .settings-page-heading{padding-top:34px;align-items:flex-start;flex-direction:column}
  .settings-page-heading h1{font-size:36px}
  .settings-sidebar nav{grid-template-columns:1fr}
  .settings-sidebar nav a{justify-content:flex-start;border-right:0;border-bottom:1px solid #e7eff5}
  .settings-sidebar nav a:last-child{border-bottom:0}
  .settings-sidebar nav a::after{inset:8px auto 8px 0;width:2px;height:auto}
  .settings-section-heading,.settings-security-row{align-items:flex-start;flex-direction:column}
  .settings-identity-header{align-items:flex-start;padding:16px}
  .settings-details{grid-template-columns:1fr}
  .settings-details dt{padding:14px 0 4px;border-bottom:0}
  .settings-details dd{padding:0 0 14px}
  .settings-security-row .button{width:100%}
  .profile-toast-region{top:86px;right:18px}
}
@media(prefers-reduced-motion:reduce){
  .settings-sidebar nav a,
  .resource-update-form .profile-dependent-field,
  .resource-update-form .profile-dependent-field.is-visible,
  .profile-toast{transition:none}
}
