:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171b27;
  background: #f7f6f3;
  font-synthesis: none;
  --accent: #7138f4;
  --accent-soft: #f2edff;
  --line: #e5e2dc;
  --muted: #687184;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 75% -10%, #fff 0, rgba(255,255,255,0) 36rem), #f7f6f3; }
button, input, select { font: inherit; }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
aside { display: flex; flex-direction: column; padding: 26px 18px 22px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .9); }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 6px 24px; padding: 4px 8px 20px; border-bottom: 1px solid #efede9; color: inherit; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 16px; letter-spacing: -.01em; }
.brand small { color: #7a8291; font-size: 11px; }
nav { display: grid; gap: 4px; }
nav button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 11px 13px; text-align: left; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #667084; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
nav button > span { display: grid; gap: 4px; min-width: 0; }
nav button strong { color: #222735; font-size: 14px; font-weight: 650; }
nav button small { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
nav button i { color: #a4a9b4; font-size: 20px; font-style: normal; opacity: 0; transform: translateX(-3px); transition: .15s ease; }
nav button:hover { border-color: #ece8e2; background: #f8f7f4; }
nav button:hover i { opacity: .7; transform: none; }
nav button.active { border-color: #e6dcff; background: var(--accent-soft); color: var(--accent); }
nav button.active strong { color: #48219b; }
nav button.active i { color: var(--accent); opacity: 1; transform: none; }
.device-note { display: grid; gap: 5px; margin: auto 8px 0; padding: 16px 12px 0; border-top: 1px solid #efede9; color: #7a8190; font-size: 11px; line-height: 1.45; }
.device-note strong { color: #505869; font-size: 11px; font-weight: 650; }
main { width: min(760px, calc(100% - 72px)); margin: 0 auto; padding: 68px 0 72px; }
.page-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.page-header > p, .label { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.page-header h1 { margin: 0; font-size: 36px; letter-spacing: -.04em; line-height: 1.1; }
.page-header span, .card p, .state p { display: block; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.page-header span { font-size: 15px; }
.stack { display: grid; gap: 12px; margin-top: 24px; }
.card { padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 30px rgba(25, 22, 18, .045); }
.card h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; }
.card .label + h2 { font-size: 25px; }
.account-card { padding: 0; overflow: hidden; }
.setting-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(180px, 38%); gap: 16px; align-items: center; min-height: 112px; padding: 22px 26px; border-bottom: 1px solid #eeeae5; }
.setting-row:last-child { border-bottom: 0; }
.account-identity { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; min-height: 142px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 15px; background: linear-gradient(135deg, #7138f4, #a573ff); color: #fff; font-size: 20px; font-weight: 750; box-shadow: 0 6px 14px rgba(113, 56, 244, .2); }
.identity-copy { min-width: 0; }
.identity-copy .label { margin-bottom: 5px; }
.identity-copy h2 { overflow: hidden; margin-bottom: 8px; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #5f6878; font-size: 12px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #35ad76; box-shadow: 0 0 0 3px #e6f6ee; }
.row-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 16px; font-weight: 750; }
.row-copy h2 { margin: 0 0 5px; font-size: 15px; }
.row-copy p { margin: 0; font-size: 13px; }
.row-value { color: #5f6878; font-size: 12px; font-weight: 650; }
.row-action { display: grid; justify-items: end; gap: 12px; color: #697184; font-size: 12px; }
.row-action button { margin: 0; }
.card p { font-size: 14px; }
.support-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 750; }
.card-icon.is-soft { background: var(--accent-soft); color: var(--accent); }
.button, .card > button, .form button, .copy-row button { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 13px; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover, .card > button:hover, .form button:hover, .copy-row button:hover { filter: brightness(.96); }
.secondary { border-color: #e5dcfa; background: var(--accent-soft); color: #6429dd; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.form label { display: grid; gap: 7px; color: #51596a; font-size: 13px; }
.form input, .form select, .copy-row input { width: 100%; padding: 11px 12px; border: 1px solid #dcd8d2; border-radius: 9px; background: #fff; }
.form button { align-self: end; }
.activity { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.activity li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid #ece9e4; }
.activity li span:last-child { color: #72798a; font-size: 13px; }
.copy-row { display: flex; gap: 8px; margin-top: 16px; }
.copy-row button { margin-top: 0; }
.state { margin-top: 22vh; text-align: center; }
.state-auth { width: min(100%, 460px); margin: 18vh auto 0; padding: 42px 44px 38px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .88); box-shadow: 0 20px 50px rgba(25, 22, 18, .07); }
.state-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 14px; background: var(--accent-soft); }
.state-mark img { width: 30px; height: 30px; }
.state-auth .label { margin-bottom: 10px; }
.state-auth h1 { margin: 0; font-size: 30px; letter-spacing: -.04em; line-height: 1.12; }
.state-auth > p { margin: 12px auto 0; max-width: 330px; font-size: 14px; }
.auth-form { display: grid; gap: 14px; margin-top: 28px; text-align: left; }
.auth-label { display: grid; gap: 8px; color: #51596a; font-size: 13px; font-weight: 650; }
.auth-label > span { color: #7a8291; font-size: 11px; font-weight: 400; }
.auth-input { width: 100%; padding: 12px 13px; border: 1px solid #dcd8d2; border-radius: 10px; outline: 0; background: #fff; color: #171b27; transition: border-color .15s ease, box-shadow .15s ease; }
.auth-input::placeholder { color: #a0a6b1; }
.auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(113, 56, 244, .13); }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px; padding: 11px 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.auth-submit:hover { background: #6429dd; transform: translateY(-1px); }
.auth-submit:focus-visible { outline: 3px solid rgba(113, 56, 244, .22); outline-offset: 2px; }
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  aside { position: sticky; top: 0; z-index: 2; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand, .device-note { display: none; }
  nav { grid-template-columns: repeat(4, 1fr); }
  nav button { min-height: 42px; padding: 8px; text-align: center; }
  nav button > span { width: 100%; }
  nav button small, nav button i { display: none; }
  main { width: min(100% - 32px, 760px); padding: 34px 0 48px; }
  .page-header { padding-bottom: 22px; }
  .page-header h1 { font-size: 32px; }
  .form { grid-template-columns: 1fr; }
  .state-auth { margin-top: 12vh; padding: 32px 22px 28px; }
  .setting-row, .account-identity { grid-template-columns: 40px minmax(0, 1fr); }
  .account-identity { grid-template-columns: 52px minmax(0, 1fr); }
  .row-value, .row-action { grid-column: 2; justify-self: start; }
}
