/* LEX Panel — design system LEX */
:root {
  --bg: #000; --card: #0f0f0f; --card2: #161616; --border: #232323;
  --text: #fff; --muted: #8a8a8a;
  --green: #2bd576; --orange: #f5a623; --red: #ff4d4f; --cyan: #35c3e0;
  --radius: 20px; --radius-sm: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 16px; }
.logo {
  width: 96px; height: 96px; border-radius: 22px; background: #0d0d0d; border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; letter-spacing: 2px;
}
.logo small { font-size: 8px; letter-spacing: 3px; color: #bbb; }
.sub { margin: 16px 0 28px; font-size: 13px; letter-spacing: 2.5px; color: #cfcfcf; text-transform: uppercase; font-weight: 600; }

.card {
  background: #101010; border: 1px solid var(--border); border-radius: var(--radius);
  width: 440px; max-width: 100%; padding: 28px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%; background: #0a0a0a; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: #fff; padding: 12px 14px; font-size: 14px;
}
.field input:focus { outline: none; border-color: #4a4a4a; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.btn {
  border-radius: 999px; padding: 12px 18px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--border); background: var(--card2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { background: #222; }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.primary:hover { background: #e8e8e8; }
.btn.red { background: transparent; color: var(--red); border-color: rgba(255,77,79,.5); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .4; }

.err { color: var(--red); font-size: 13px; margin: 6px 0 12px; }
.ok-msg { color: var(--green); font-size: 13px; margin: 6px 0 12px; }
.switch { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.switch a { color: #fff; cursor: pointer; text-decoration: underline; }

.profile-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1a1a1a; }
.profile-row:last-child { border-bottom: none; }
.profile-row .lbl { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; font-weight: 700; width: 110px; flex: 0 0 auto; }
.profile-row .val { font-weight: 600; font-size: 14px; word-break: break-all; }

.app-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #1a1a1a;
}
.app-row:last-child { border-bottom: none; }
.app-ico {
  width: 40px; height: 40px; border-radius: 11px; background: #0c0c0c; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; letter-spacing: 1px;
}
.app-row .nm { font-weight: 700; font-size: 14px; }
.app-row .st { font-size: 12px; color: var(--muted); }
.app-row .st.linked { color: var(--green); }
.app-row a.btn { margin-left: auto; text-decoration: none; padding: 8px 14px; font-size: 13px; }
.head-row { display: flex; align-items: center; margin-bottom: 14px; }
.head-row h2 { margin: 0; }
.head-row .btn { margin-left: auto; }
.foot { margin-top: 14px; color: #555; font-size: 12px; }
