@font-face {
  font-family: "Karma UI";
  src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Karma UI";
  src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}

@font-face {
  font-family: "Karma UI";
  src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: block;
}

@font-face {
  font-family: "Karma UI";
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #111114;
  --raised: #19191e;
  --border: #292930;
  --text: #f6f6f8;
  --muted: #92929e;
  --red: #e5484d;
  --red-bright: #ff5b61;
  --red-dark: #7d2024;
  --green: #54d18b;
  --font-ui: "Karma UI", "Segoe UI", sans-serif;
  --font-display: "Karma UI", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  user-select: none;
}

button {
  font: inherit;
}

.titlebar {
  position: relative;
  z-index: 30;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  border-bottom: 1px solid #202026;
  background: #0c0c0f;
  --wails-draggable: drag;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9c9d0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.window-actions {
  height: 100%;
  display: flex;
  align-items: center;
  padding-right: 6px;
  gap: 3px;
  --wails-draggable: no-drag;
}

.window-button {
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #858590;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.window-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.window-button:hover {
  background: #202026;
  color: #e8e8ec;
}

.window-button.close:hover {
  background: rgba(229, 72, 77, .18);
  color: var(--red-bright);
}

.window-settings {
  position: relative;
  display: flex;
  align-items: center;
}

.window-button.settings {
  color: #9b9ba6;
}

.window-button.settings.is-open,
.window-button.settings:hover {
  color: #e8e8ec;
}

.window-button.settings svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 228px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #141418;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
}

.settings-item {
  width: 100%;
  margin: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.window-button.logout {
  position: relative;
  margin-right: 8px;
  color: #9b9ba6;
}

.window-button.logout::after {
  position: absolute;
  right: -6px;
  width: 1px;
  height: 16px;
  background: #29292f;
  content: "";
  pointer-events: none;
}

.window-button.logout:hover {
  background: rgba(229, 72, 77, .12);
  color: #ff858a;
}

.window-button.logout svg {
  width: 15px;
  height: 15px;
}

.shell {
  height: calc(100% - 46px);
  display: grid;
  grid-template-columns: 44% 56%;
}

.visual-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  padding: 48px 42px;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(circle at 22% 35%, rgba(229, 72, 77, .2), transparent 35%),
    linear-gradient(145deg, #131316, #0b0b0e);
}

.grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom right, black, transparent 78%);
}

.visual-panel::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -170px;
  bottom: -180px;
  border: 1px solid rgba(229, 72, 77, .25);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(229, 72, 77, .025),
    0 0 0 84px rgba(229, 72, 77, .018);
}

.visual-content {
  position: relative;
  z-index: 1;
}

.visual-tag,
.eyebrow {
  color: var(--red-bright);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
}

.visual-content h1 {
  margin: 18px 0 22px;
  font-size: clamp(36px, 4.3vw, 58px);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-family: var(--font-display);
  font-weight: 700;
}

.visual-content h1 em {
  color: var(--red-bright);
  font-style: normal;
}

.visual-content p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(84, 209, 139, .6);
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes live-dot-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(84, 209, 139, .55);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(84, 209, 139, 0);
  }
}

.auth-panel {
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 40px;
  background:
    radial-gradient(circle at 100% 0, rgba(229, 72, 77, .06), transparent 38%),
    var(--bg);
}

.view {
  width: min(100%, 430px);
  display: none;
  animation: enter .32s ease;
}

.view.active {
  display: block;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.view h2 {
  margin: 10px 0 12px;
  font-size: 30px;
  letter-spacing: -.035em;
  font-family: var(--font-display);
  font-weight: 700;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d0d10;
}

.auth-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  border-radius: 7px;
  background: rgba(229, 72, 77, .14);
  box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .3);
  transform: translateX(0);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.auth-tabs.is-forum .auth-tab-indicator {
  transform: translateX(calc(100% + 4px));
}

.auth-tab {
  position: relative;
  z-index: 1;
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #858590;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: color .24s ease;
}

.auth-tab.active {
  color: #fff;
}

.auth-stage {
  position: relative;
  overflow: hidden;
  transition: height .34s cubic-bezier(.22, 1, .36, 1);
}

.auth-method {
  display: none;
}

.auth-method.active,
.auth-method.is-leave {
  display: block;
}

.auth-method.active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .34s cubic-bezier(.22, 1, .36, 1),
              transform .34s cubic-bezier(.22, 1, .36, 1);
}

.auth-method.is-enter {
  opacity: 0;
}

.auth-method.is-enter.enter-right {
  transform: translateX(22px);
}

.auth-method.is-enter.enter-left {
  transform: translateX(-22px);
}

.auth-method.is-leave {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease, transform .26s ease;
}

.auth-method.is-leave.leave-left {
  transform: translateX(-18px);
}

.auth-method.is-leave.leave-right {
  transform: translateX(18px);
}

@media (prefers-reduced-motion: reduce) {
  .auth-tab-indicator,
  .auth-stage,
  .auth-method.active,
  .auth-method.is-leave {
    transition: none;
  }
}

.auth-method-copy {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.auth-method .primary-button {
  margin-top: 15px;
}

.auth-method .forum-site-button {
  margin-top: 10px;
}

.forum-site-button svg,
#forumSiteButtonAlt svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

.auth-field {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: #bdbdc6;
  font-size: 11px;
  text-align: left;
}

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  outline: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0d0d10;
  color: #eeeef2;
  font: inherit;
  font-size: 13px;
  user-select: text;
}

.auth-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .1);
}

.password-note {
  margin: 10px 2px 0;
  color: #6f6f7a;
  font-size: 9px;
  line-height: 1.45;
}

.primary-button,
.secondary-button {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: .18s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--red-bright), #c72d34);
  color: white;
  box-shadow: 0 12px 28px rgba(229, 72, 77, .2);
}

.primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.6);
  opacity: .55;
  transform: none;
}

.primary-button svg {
  width: 19px;
  fill: currentColor;
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--panel);
  color: #bebec6;
}

.secondary-button:hover {
  border-color: var(--red-dark);
  color: white;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 20px;
  color: #7f7f8a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.assurances {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #8d8d98;
  font-size: 11px;
}

.assurances li {
  display: flex;
  align-items: center;
  gap: 11px;
}

.assurances span {
  color: var(--red-bright);
  font-size: 8px;
  font-weight: 700;
}

.login-steps {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.login-steps li {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 10px;
}

.login-steps li > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red-dark);
  border-radius: 7px;
  background: rgba(229, 72, 77, .08);
  color: var(--red-bright);
  font-size: 9px;
  font-weight: 700;
}

.login-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.login-steps strong {
  color: #d7d7dc;
}

.notice {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #5c4a27;
  border-radius: 8px;
  background: rgba(92, 74, 39, .15);
  color: #d8bf83;
  font-size: 11px;
  line-height: 1.5;
}

.notice.error {
  border-color: var(--red-dark);
  background: rgba(125, 32, 36, .14);
  color: #ffafb2;
}

.hidden {
  display: none !important;
}

#waitingView,
#forumWaitingView,
#deviceLimitView,
#successView {
  text-align: center;
}

.loader-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 30px;
  border: 2px solid var(--border);
  border-top-color: var(--red-bright);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 28px rgba(229, 72, 77, .1);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.telegram-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border: 1px solid rgba(229, 72, 77, .35);
  border-radius: 18px;
  background: rgba(229, 72, 77, .1);
  box-shadow: 0 12px 30px rgba(229, 72, 77, .08);
}

.telegram-mark svg {
  width: 28px;
  fill: var(--red-bright);
}

#forumWaitingView .telegram-mark svg {
  fill: none;
  stroke: var(--red-bright);
}

.forum-waiting-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.forum-waiting-status p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

#forumWaitingView .notice {
  margin-top: 14px;
  text-align: left;
}

#forumWaitingView .button-row {
  margin-top: 16px;
}

.code-card,
.session-card {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.code-card span {
  display: block;
  margin-bottom: 9px;
  color: #686873;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
}

.code-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--red-bright);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .08em;
  white-space: nowrap;
  user-select: text;
}

.code-input {
  width: 100%;
  margin-top: 14px;
  padding: 13px 14px;
  resize: none;
  outline: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0d0d10;
  color: #dddde3;
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.5;
  user-select: text;
}

.code-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .1);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.button-row .secondary-button {
  margin-top: 0;
}

.compact-button {
  height: 40px;
  margin-top: 10px;
}

.device-limit-mark {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(229, 72, 77, .38);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 35%, rgba(229, 72, 77, .18), rgba(229, 72, 77, .07));
  box-shadow: 0 12px 30px rgba(229, 72, 77, .09);
  animation: device-limit-pulse 2.8s ease-in-out infinite;
}

.device-limit-mark svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--red-bright);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-limit-orbit {
  position: absolute;
  inset: -5px;
  border: 1px solid transparent;
  border-top-color: rgba(255, 91, 97, .55);
  border-radius: 21px;
  animation: device-limit-orbit 4.8s linear infinite;
}

@keyframes device-limit-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(229, 72, 77, .08), 0 0 0 0 rgba(229, 72, 77, .12); }
  50% { box-shadow: 0 12px 30px rgba(229, 72, 77, .12), 0 0 0 6px rgba(229, 72, 77, 0); }
}

@keyframes device-limit-orbit {
  to { transform: rotate(360deg); }
}

#deviceLimitView {
  width: min(100%, 420px);
}

.device-usage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid rgba(229, 72, 77, .28);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(229, 72, 77, .1), var(--panel) 62%);
  text-align: left;
}

.device-usage-card > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.device-usage-card strong {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.045em;
}

.device-usage-card span {
  color: #aaaab4;
  font-size: 11px;
}

.device-usage-card small {
  padding: 5px 8px;
  border: 1px solid rgba(229, 72, 77, .28);
  border-radius: 999px;
  background: rgba(229, 72, 77, .1);
  color: #ff9296;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
}

.device-reset-warning {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #4d422d;
  border-radius: 10px;
  background: rgba(113, 87, 38, .1);
  text-align: left;
}

.device-reset-warning svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #d5ae67;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-reset-warning p {
  margin: 0;
  color: #a9a08e;
  font-size: 10px;
  line-height: 1.55;
}

.device-reset-warning strong {
  display: block;
  margin-bottom: 2px;
  color: #e2c791;
  font-weight: 600;
}

.device-reset-notice {
  margin-top: 14px;
  text-align: left;
}

.device-reset-button {
  margin-top: 18px;
}

.device-reset-button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: device-reset-spin .75s linear infinite;
}

.device-reset-button.is-requested:disabled {
  background: linear-gradient(135deg, #32845a, #246845);
  box-shadow: 0 12px 28px rgba(84, 209, 139, .12);
  color: #edfff4;
  cursor: default;
  filter: none;
  opacity: 1;
}

@keyframes device-reset-spin {
  to { transform: rotate(360deg); }
}

.update-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 14px;
}

.update-card > div {
  padding: 12px 14px;
  border: 1px solid rgba(232, 184, 109, .35);
  border-radius: 10px;
  background: rgba(232, 184, 109, .08);
}

.update-card span {
  display: block;
  margin-bottom: 4px;
  color: #9a8a6c;
  font-size: 10px;
  letter-spacing: .06em;
}

.update-card strong {
  color: #f0e2c4;
  font-size: 15px;
  font-weight: 600;
}

.update-detail {
  margin: 0 0 16px;
  color: #b8b8c2;
  font-size: 13px;
  line-height: 1.45;
}

.update-hint {
  margin: 14px 0 0;
  color: #797985;
  font-size: 12px;
  line-height: 1.4;
}

.update-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-actions .primary-button,
.update-actions .secondary-button {
  margin-top: 0;
}

.boot-loading,
.update-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
  color: #d0d0d8;
  font-size: 13px;
}

.boot-loading {
  margin: 28px 0 4px;
}

.update-loading.hidden {
  display: none;
}

.boot-loading p,
.update-loading p {
  margin: 0;
}

.update-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, .14);
  border-top-color: var(--red-bright);
  border-radius: 50%;
  animation: device-reset-spin .7s linear infinite;
}

.update-hint code {
  color: #d0d0d8;
}

.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 30px;
  border: 1px solid rgba(84, 209, 139, .35);
  border-radius: 50%;
  background: rgba(84, 209, 139, .1);
  color: var(--green);
  font-size: 26px;
}

.profile-avatar {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(145deg, #292930, #151519);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35), 0 0 0 6px rgba(229, 72, 77, .06);
  color: var(--red-bright);
  font-size: 26px;
  font-weight: 700;
  overflow: visible;
}

.avatar-orbit {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 220deg,
    rgba(229, 72, 77, .15) 260deg,
    var(--red-bright) 300deg,
    rgba(229, 72, 77, .85) 330deg,
    transparent 360deg
  );
  animation: avatar-orbit-spin 2.4s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.avatar-orbit::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, #292930, #151519);
}

@keyframes avatar-orbit-spin {
  to { transform: rotate(360deg); }
}

.profile-avatar #profileFallback,
.profile-avatar #navProfileFallback {
  position: relative;
  z-index: 1;
}

.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

.profile-avatar .verified-badge {
  z-index: 2;
}

.profile-avatar img.loaded {
  display: block;
}

.profile-avatar img.loaded + #profileFallback,
.profile-avatar img.loaded + #navProfileFallback,
.profile-avatar[data-kc-border]:not([data-kc-border="none"]) img.loaded + #profileFallback,
.profile-avatar[data-kc-border]:not([data-kc-border="none"]) img.loaded + #navProfileFallback {
  display: none;
}

.success-label {
  color: #c9c9d0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: none;
}

.verified-badge {
  position: absolute;
  right: -2px;
  bottom: 3px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--green);
  color: #07140d;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.session-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.session-card div {
  display: grid;
  gap: 4px;
}

.session-card strong {
  font-size: 12px;
}

.session-card small {
  color: var(--muted);
  font-size: 10px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  text-align: left;
}

.profile-hero {
  position: relative;
  display: block;
  overflow: visible;
  align-items: stretch;
  z-index: 2;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #09090b;
}

.profile-hero-banner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: center / cover no-repeat;
  opacity: .48;
  pointer-events: none;
}

.profile-hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-hero[data-kc-fx]:not([data-kc-fx="none"])::before,
.profile-hero[data-kc-fx]:not([data-kc-fx="none"])::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.profile-hero[data-kc-fx]:not([data-kc-fx="none"])::after {
  background: linear-gradient(180deg, rgba(8, 8, 12, .28), rgba(8, 8, 12, .72));
}

.profile-hero[data-kc-fx="rgb"]::before {
  background: linear-gradient(125deg, #ff0040, #ff8c00, #ffee00, #00e676, #00b0ff, #d500f9, #ff0040);
  background-size: 400% 400%;
  animation: kcFlairRgb 8s linear infinite;
}

.profile-hero[data-kc-fx="fire"]::before {
  background:
    radial-gradient(ellipse 95% 60% at 50% 100%, #ff6a00 0%, transparent 58%),
    radial-gradient(ellipse 75% 50% at 20% 100%, #ff3d00 0%, transparent 52%),
    linear-gradient(180deg, #120200 0%, #2a0800 45%, #0a0100 100%);
  animation: kcFlairFire 2.8s ease-in-out infinite alternate;
}

.profile-hero[data-kc-fx="smoke"]::before {
  background:
    radial-gradient(ellipse 70% 45% at 20% 80%, rgba(90, 90, 100, .35) 0%, transparent 70%),
    linear-gradient(180deg, #0a0a0e 0%, #121218 50%, #08080c 100%);
  animation: kcFlairSmoke 12s ease-in-out infinite alternate;
}

.profile-hero[data-kc-fx="glitch"]::before {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .45) 2px 3px),
    linear-gradient(90deg, rgba(255, 0, 80, .12), transparent 40%, rgba(0, 220, 255, .12)),
    linear-gradient(180deg, #0c0610, #101018 50%, #08060c);
  animation: kcFlairGlitch 2.4s steps(2, end) infinite;
}

.profile-hero[data-kc-fx="static"]::before {
  background-color: #08080c;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #0c0c12, #14141a 50%, #0a0a10);
  background-size: 160px 160px, 100% 100%;
  animation: kcFlairStatic .35s steps(4) infinite;
}

.profile-hero[data-kc-fx="blood"]::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #5a0008 0%, transparent 55%),
    linear-gradient(180deg, #120206, #1a0408 40%, #080104);
  animation: kcFlairBlood 5s ease-in-out infinite alternate;
}

.profile-hero[data-kc-fx="noir"]::before {
  background-image:
    repeating-linear-gradient(105deg, transparent 0 10px, rgba(180, 190, 210, .06) 10px 11px, transparent 11px 22px),
    linear-gradient(180deg, #08080c, #101018 55%, #06060a);
  background-size: 100% 180%, 100% 100%;
  animation: kcFlairNoir 4.5s linear infinite;
}

.profile-hero[data-kc-fx="aurora"]::before {
  background: linear-gradient(160deg, #0a1020, #123048 25%, #1a6048 45%, #3a2070 70%, #0a1020);
  background-size: 200% 200%;
  animation: kcFlairAurora 10s ease-in-out infinite;
}

@keyframes kcFlairRgb { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes kcFlairFire { from { filter: brightness(.92); } to { filter: brightness(1.18); } }
@keyframes kcFlairSmoke { from { filter: brightness(.9); } to { filter: brightness(1.1); } }
@keyframes kcFlairGlitch { 0%,100% { filter: contrast(1.05); } 50% { filter: hue-rotate(12deg) contrast(1.15); } }
@keyframes kcFlairStatic { 0% { background-position: 0 0, center; } 50% { background-position: -30px 50px, center; } }
@keyframes kcFlairBlood { from { filter: brightness(.88); } to { filter: brightness(1.12); } }
@keyframes kcFlairNoir { from { background-position: 0 -40%, center; } to { background-position: 0 140%, center; } }
@keyframes kcFlairAurora { 0%,100% { background-position: 0% 40%; } 50% { background-position: 80% 60%; } }

.profile-avatar.compact {
  width: 92px;
  height: 92px;
}

.profile-avatar[data-kc-border]:not([data-kc-border="none"]) {
  border: none;
  box-shadow: none;
  background: #111114;
  overflow: visible;
}

.profile-avatar[data-kc-border]:not([data-kc-border="none"])::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}

.profile-avatar[data-kc-border]:not([data-kc-border="none"]) img,
.profile-avatar[data-kc-border]:not([data-kc-border="none"]) #profileFallback,
.profile-avatar[data-kc-border]:not([data-kc-border="none"]) #navProfileFallback {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
}

.profile-avatar[data-kc-border]:not([data-kc-border="none"]) #profileFallback,
.profile-avatar[data-kc-border]:not([data-kc-border="none"]) #navProfileFallback {
  display: grid;
  place-items: center;
  background: #111114;
}

.profile-avatar[data-kc-border="crimson"]::before { background: conic-gradient(from 0deg, #7a1020, #ff2d4a, #c62828, #7a1020); box-shadow: 0 0 14px rgba(198, 40, 40, .55); }
.profile-avatar[data-kc-border="dark"]::before { background: linear-gradient(145deg, #5a5a62, #1a1a1e 40%, #3a3a42); }
.profile-avatar[data-kc-border="stars"]::before { background: conic-gradient(from 20deg, #2a1830, #8b6914, #c9a227, #2a1830); animation: avatar-orbit-spin 8s linear infinite; }
.profile-avatar[data-kc-border="gold"]::before { background: linear-gradient(160deg, #fff1b8, #c9a227 28%, #7a5a10 55%, #ffe08a); box-shadow: 0 0 14px rgba(201, 162, 39, .5); }
.profile-avatar[data-kc-border="neon"]::before { background: conic-gradient(from 90deg, #00e5ff, #ff00ea, #00e5ff); animation: avatar-orbit-spin 3.2s linear infinite; }
.profile-avatar[data-kc-border="rgb"]::before { background: conic-gradient(#ff0040, #ff8c00, #ffee00, #00e676, #00b0ff, #d500f9, #ff0040); animation: avatar-orbit-spin 4s linear infinite; }
.profile-avatar[data-kc-border="void"]::before { background: radial-gradient(circle at 30% 30%, #6b3fa0, #120818 55%, #000); }
.profile-avatar[data-kc-border="ice"]::before { background: linear-gradient(145deg, #e8f7ff, #7ec8e8 35%, #2a6a88); }
.profile-avatar[data-kc-border="ember"]::before { background: conic-gradient(from 180deg, #3a0a00, #ff6a00, #ffb300, #ff3d00, #3a0a00); }

.profile-avatar[data-kc-border]:not([data-kc-border="none"]) .avatar-orbit {
  display: none;
}

.profile-user-title {
  margin: 8px 0 0;
  color: #c9c9d0;
  font-size: 12px;
  font-weight: 600;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #1f3c88;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
}

.profile-tag.staff { background: #2484c7; }
.profile-tag.primary { background: #1f3c88; }
.profile-tag.accent { background: #8b1e3f; }
.profile-tag.red { background: #d80000; }
.profile-tag.green { background: #1a7f37; }
.profile-tag.olive { background: #6b7c1a; }
.profile-tag.lightgreen { background: #3d9e4a; }
.profile-tag.blue { background: #1a5fb4; }
.profile-tag.royalblue { background: #2c3e9e; }
.profile-tag.skyblue { background: #2a8fc4; }
.profile-tag.gray, .profile-tag.silver { background: #5a5a62; }
.profile-tag.yellow { background: #c9a227; color: #1a1404; }
.profile-tag.orange { background: #d46a00; }

.profile-emblems {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 10px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .35);
  box-sizing: border-box;
  overflow: visible;
}

.profile-emblems img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  padding: 4px;
  box-sizing: border-box;
  filter: brightness(1.15) contrast(1.08) drop-shadow(0 0 10px rgba(255, 80, 60, .55));
  transform: scale(1);
  transform-origin: center center;
  transition: transform .18s ease, filter .18s ease, z-index 0s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.profile-emblems img:hover {
  transform: scale(1.55);
  z-index: 8;
  filter: brightness(1.3) contrast(1.12) drop-shadow(0 0 16px rgba(255, 100, 70, .75));
}

.dashboard-header h2 {
  margin: 5px 0;
  font-size: 30px;
}

.dashboard-header .subtitle {
  margin: 0;
  font-size: 14px;
}

.profile-avatar.compact {
  width: 92px;
  height: 92px;
  margin: 0;
  flex-shrink: 0;
  font-size: 24px;
}

#successView {
  width: min(100%, 500px);
}

#successView .success-label {
  font-size: 13px;
}

#successView .session-card {
  padding: 20px;
  border-radius: 12px;
}

#successView .session-card strong {
  font-size: 14px;
}

#successView .session-card small {
  font-size: 12px;
}

.notice.success {
  border-color: rgba(84, 209, 139, .35);
  background: rgba(84, 209, 139, .08);
  color: #b7ebc9;
}

.build-card {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(229, 72, 77, .08), transparent 42%),
    var(--panel);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.section-head.spaced {
  margin-top: 22px;
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.section-title > div {
  text-align: left;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(229, 72, 77, .12);
  color: var(--red-bright);
}

.section-icon svg {
  width: 19px;
  height: 19px;
}

.field-label {
  display: block;
  margin: 0;
  color: #ececf2;
  font-size: 14px;
  font-weight: 600;
}

.section-hint {
  margin: 5px 0 0;
  color: #7f7f8a;
  font-size: 12px;
  line-height: 1.4;
}

.payload-badge {
  flex-shrink: 0;
  padding: 6px 11px;
  border: 1px solid rgba(229, 72, 77, .28);
  border-radius: 999px;
  background: rgba(229, 72, 77, .1);
  color: #ff8a8f;
  font-size: 11px;
  font-weight: 600;
}

.payload-badge.ready {
  border-color: rgba(84, 209, 139, .3);
  background: rgba(84, 209, 139, .1);
  color: #8fe0b0;
}

.payload-dropzone {
  --wails-drop-target: drop;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 19px;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: linear-gradient(180deg, #141418, #101014);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.payload-dropzone:hover,
.payload-dropzone.wails-drop-target-active {
  border-color: rgba(229, 72, 77, .55);
  background: linear-gradient(180deg, #18181d, #121216);
}

.payload-dropzone:focus-visible {
  outline: 2px solid rgba(229, 72, 77, .45);
  outline-offset: 2px;
}

.payload-dropzone.has-file {
  border-style: solid;
  border-color: rgba(84, 209, 139, .35);
  background: linear-gradient(180deg, rgba(84, 209, 139, .08), #101014);
}

.payload-dropzone:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.payload-dropzone.is-loading {
  border-style: solid;
  border-color: rgba(229, 72, 77, .45);
  pointer-events: none;
  cursor: wait;
}

.payload-dropzone.is-loading .payload-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.payload-dropzone.is-loading .payload-action::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-top-color: var(--red-bright);
  border-radius: 50%;
  animation: payload-spin .7s linear infinite;
}

@keyframes payload-spin {
  to { transform: rotate(360deg); }
}

.payload-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(229, 72, 77, .12);
  color: var(--red-bright);
}

.payload-dropzone.has-file .payload-icon {
  background: rgba(84, 209, 139, .12);
  color: #74d59d;
}

.payload-icon svg {
  width: 25px;
  height: 25px;
}

.payload-icon.has-file-icon,
.payload-dropzone.has-file .payload-icon.has-file-icon {
  background: transparent;
}

.payload-icon img {
  display: block;
  width: 32px;
  height: 32px;
}

.payload-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.payload-copy strong {
  overflow: hidden;
  color: #f2f2f6;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payload-copy small {
  overflow: hidden;
  color: #858590;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payload-action {
  padding: 10px 14px;
  border-radius: 8px;
  background: #222228;
  color: #ececf2;
  font-size: 12px;
  font-weight: 600;
}

.payload-dropzone.has-file .payload-action {
  background: rgba(84, 209, 139, .14);
  color: #b7ebc9;
}

.payload-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.payload-info-button {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(84, 209, 139, .25);
  border-radius: 8px;
  background: rgba(84, 209, 139, .07);
  color: #94ddb2;
  cursor: help;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
}

.payload-info-button:hover,
.payload-info-button:focus-visible {
  border-color: rgba(84, 209, 139, .5);
  background: rgba(84, 209, 139, .11);
  color: #c2efd4;
}

.payload-info-button svg {
  width: 14px;
  height: 14px;
}

.ghost-button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: #c8c8d0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
}

.ghost-button:hover {
  background: #1a1a20;
  color: #fff;
}

.ghost-button.danger:hover {
  border-color: rgba(229, 72, 77, .4);
  background: rgba(229, 72, 77, .1);
  color: #ff8a8f;
}

.payload-info-preview {
  position: fixed;
  z-index: 1001;
  width: min(330px, calc(100vw - 24px));
  padding: 15px;
  border: 1px solid rgba(84, 209, 139, .32);
  border-radius: 12px;
  background: rgba(14, 14, 18, .98);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .52), inset 3px 0 0 rgba(84, 209, 139, .72);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  pointer-events: none;
}

.payload-info-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.payload-info-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.payload-info-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(84, 209, 139, .1);
  color: var(--green);
}

.payload-info-symbol svg {
  width: 18px;
  height: 18px;
}

.payload-info-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.payload-info-head span,
.payload-info-grid span,
.payload-info-meta span,
.payload-info-hash span {
  color: #6f6f7a;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.payload-info-head strong {
  overflow: hidden;
  color: #f1f1f5;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payload-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 11px;
}

.payload-info-grid > div {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.payload-info-grid strong,
.payload-info-meta strong {
  color: #d9d9e0;
  font-size: 10px;
  font-weight: 600;
}

.payload-info-meta,
.payload-info-hash {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.payload-info-hash code {
  padding: 7px 8px;
  border-radius: 7px;
  background: #09090c;
  color: #8e8e99;
  font-family: Consolas, monospace;
  font-size: 8px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.format-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.chip {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 64px;
  padding: 9px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #121216;
  color: #bdbdc7;
  cursor: pointer;
  font: inherit;
  text-align: left;
  overflow: hidden;
}

.chip-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #9a9aa5;
}

.chip-icon svg {
  width: 17px;
  height: 17px;
}

.chip-icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.chip-icon:has(img) {
  background: transparent;
}

.chip.active .chip-icon:has(img) {
  background: transparent;
}

.chip-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chip-text strong {
  display: block;
  overflow: hidden;
  color: #f0f0f5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-text small {
  color: #7f7f8a;
  font-size: 11px;
}

.chip[data-format="sl"] .chip-text strong {
  font-size: 11px;
}

.chip[data-format="sl"] .chip-text small {
  font-size: 10px;
}

.chip.active {
  border-color: rgba(229, 72, 77, .55);
  background: rgba(229, 72, 77, .12);
  box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .08);
}

.chip.active .chip-icon {
  background: rgba(229, 72, 77, .16);
  color: var(--red-bright);
}

.chip.active .chip-text strong,
.chip.active .chip-text small {
  color: #fff;
}

.chip.is-maintenance,
.dllpack-choice.is-maintenance {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.chip.is-maintenance .chip-text small,
.dllpack-choice.is-maintenance small {
  color: #c9a227 !important;
}

.dllpack-options {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(229, 72, 77, .22);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(229, 72, 77, .06), #111115);
}

.dllpack-options-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dllpack-options-head strong {
  color: #ededf2;
  font-size: 11px;
  font-weight: 600;
}

.dllpack-options-head span {
  color: #777782;
  font-size: 10px;
}

.dllpack-size-hint {
  margin: 10px 0 0;
  color: #8d8d99;
  font-size: 11px;
  line-height: 1.45;
}

.dllpack-size-hint.is-heavy {
  color: #f0c36d;
}

.dllpack-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dllpack-choice {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #121216;
  color: #c7c7d0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.dllpack-choice > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dllpack-choice strong,
.dllpack-choice small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dllpack-choice strong {
  color: #e8e8ee;
  font-size: 11px;
  font-weight: 600;
}

.dllpack-choice small {
  color: #777782;
  font-size: 9px;
}

.dllpack-choice-mark {
  width: 10px;
  height: 10px;
  border: 2px solid #555560;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #121216;
}

.dllpack-choice.active {
  border-color: rgba(229, 72, 77, .5);
  background: rgba(229, 72, 77, .1);
}

.dllpack-choice.active .dllpack-choice-mark {
  border-color: var(--red-bright);
  background: var(--red-bright);
}

.dllpack-choice.active strong,
.dllpack-choice.active small {
  color: #fff;
}

.dllpack-choice:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.output-preview {
  position: fixed;
  z-index: 1000;
  width: min(360px, calc(100vw - 24px));
  padding: 14px 15px;
  border: 1px solid rgba(229, 72, 77, .38);
  border-radius: 11px;
  background: rgba(15, 15, 19, .97);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .48), inset 3px 0 0 rgba(229, 72, 77, .75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  pointer-events: none;
}

.output-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.output-preview-label {
  display: block;
  margin-bottom: 6px;
  color: var(--red-bright);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.output-preview strong {
  display: block;
  color: #f3f3f7;
  font-size: 13px;
  font-weight: 600;
}

.output-preview p {
  margin: 6px 0;
  color: #b8b8c2;
  font-size: 11px;
  line-height: 1.45;
}

.output-preview small {
  display: block;
  color: #797985;
  font-size: 9px;
  line-height: 1.4;
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #121216;
  color: #d0d0d8;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.toggle:hover {
  border-color: #3a3a44;
}

.toggle:has(input:checked) {
  border-color: rgba(229, 72, 77, .45);
  background: rgba(229, 72, 77, .1);
  color: #fff;
}

.toggle input {
  width: 19px;
  height: 19px;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  margin: 0;
  appearance: none;
  border: 1px solid #565661;
  border-radius: 6px;
  background: #0d0d11;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.toggle input::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: translateY(-1px) rotate(45deg) scale(.5);
  transition: opacity .12s ease, transform .12s ease;
}

.toggle input:checked {
  border-color: var(--red-bright);
  background: linear-gradient(145deg, var(--red-bright), #c72d34);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .12);
}

.toggle input:checked::after {
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.toggle-avscan {
  gap: 8px;
  border-color: rgba(84, 209, 139, .45);
  background: rgba(84, 209, 139, .07);
  color: #d8f5e6;
  box-shadow: inset 0 0 0 1px rgba(84, 209, 139, .1);
}

.toggle-avscan:hover {
  border-color: rgba(84, 209, 139, .85);
  background: rgba(84, 209, 139, .11);
}

.toggle-avscan:has(input:checked) {
  border-color: var(--green);
  background: rgba(84, 209, 139, .16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(84, 209, 139, .22), 0 0 0 1px rgba(84, 209, 139, .18);
}

.toggle-avscan input {
  border-color: rgba(84, 209, 139, .45);
}

.toggle-avscan input:checked {
  border-color: var(--green);
  background: linear-gradient(145deg, var(--green), #2f9f63);
  box-shadow: 0 0 0 3px rgba(84, 209, 139, .16);
}

.avscan-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.avscan-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 4px;
}

.avscan-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.avscan-copy strong {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}

.avscan-copy small {
  font-size: 10px;
  color: #7dba96;
  letter-spacing: .02em;
}

.toggle-avscan:has(input:checked) .avscan-copy small {
  color: #a8e4c2;
}

.zip-password-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(229, 72, 77, .32);
  border-radius: 10px;
  background: rgba(229, 72, 77, .08);
}

.zip-password-bar.hidden {
  display: none;
}

.zip-password-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.zip-password-meta span {
  color: #c9a0a2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.zip-password-meta code {
  overflow: hidden;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.zip-password-copy {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(229, 72, 77, .5);
  border-radius: 8px;
  background: rgba(229, 72, 77, .16);
  color: #ffd6d8;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.zip-password-copy:hover {
  border-color: rgba(229, 72, 77, .8);
  background: rgba(229, 72, 77, .28);
  color: #fff;
}

.build-card .primary-button {
  height: 54px;
  margin-top: 22px;
  font-size: 14px;
}

.zip-password-bar:not(.hidden) + .primary-button {
  margin-top: 10px;
}

.build-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.build-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-top: 9px;
}

.save-build-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.extract-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #121216;
  color: #d0d0d8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.extract-toggle:hover {
  border-color: #3a3a44;
  color: #fff;
}

.extract-toggle:has(input:checked) {
  border-color: rgba(229, 72, 77, .45);
  background: rgba(229, 72, 77, .1);
  color: #fff;
}

.extract-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--red-bright);
}

.save-build-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid rgba(229, 72, 77, .42);
  border-radius: 8px;
  background: rgba(229, 72, 77, .1);
  color: #ff9a9e;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
}

.save-build-button:hover {
  border-color: rgba(229, 72, 77, .7);
  background: rgba(229, 72, 77, .16);
  color: #fff;
}

.save-build-button:disabled {
  opacity: .55;
  cursor: wait;
}

.save-build-button svg {
  width: 13px;
  height: 13px;
}

.scan-stage {
  --scan-accent: var(--red-bright);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  display: grid;
  justify-items: center;
  animation: scan-stage-enter .4s ease both;
}

@keyframes scan-stage-enter {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.scan-stage-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aaaab5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
}

.scan-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--scan-accent);
  box-shadow: 0 0 0 0 rgba(255, 91, 97, .5);
  animation: scan-status-pulse 1.5s ease-out infinite;
}

@keyframes scan-status-pulse {
  70%, 100% { box-shadow: 0 0 0 8px rgba(255, 91, 97, 0); }
}

.scan-visual {
  position: relative;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  margin: 18px 0 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(229, 72, 77, .1) 0 29%, transparent 30%),
    radial-gradient(circle, transparent 0 57%, rgba(229, 72, 77, .05) 58% 59%, transparent 60%);
}

.scan-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.scan-ring-outer {
  inset: 2px;
  border: 1px solid rgba(229, 72, 77, .22);
  border-top-color: var(--scan-accent);
  border-right-color: rgba(255, 91, 97, .62);
  box-shadow: 0 0 28px rgba(229, 72, 77, .09);
  animation: scan-ring-spin 4.8s linear infinite;
}

.scan-ring-middle {
  inset: 22px;
  border: 1px dashed rgba(229, 72, 77, .38);
  animation: scan-ring-spin 7s linear infinite reverse;
}

@keyframes scan-ring-spin {
  to { transform: rotate(360deg); }
}

.scan-sweep {
  position: absolute;
  inset: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 91, 97, .28), transparent 34%, transparent);
  animation: scan-sweep-rotate 2.2s linear infinite;
}

.scan-sweep::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(13, 13, 16, .76);
}

@keyframes scan-sweep-rotate {
  to { transform: rotate(360deg); }
}

.scan-core {
  position: relative;
  z-index: 2;
  width: 102px;
  height: 102px;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(229, 72, 77, .3);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #222228, #101014 70%);
  box-shadow: 0 0 0 8px rgba(229, 72, 77, .035), 0 18px 38px rgba(0, 0, 0, .38);
}

.scan-core svg {
  width: 23px;
  height: 23px;
  margin-bottom: 5px;
  color: var(--scan-accent);
}

.scan-core strong {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
}

.scan-core small {
  margin-top: 5px;
  color: #70707b;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .14em;
}

.scan-stage-copy {
  max-width: 390px;
  text-align: center;
}

.scan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 9px;
  border: 1px solid rgba(229, 72, 77, .3);
  border-radius: 999px;
  background: rgba(229, 72, 77, .1);
  color: #ff9599;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;
}

.scan-stage-copy h2 {
  margin: 9px 0 6px;
  color: #f5f5f7;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.045em;
}

.scan-stage-copy p {
  margin: 0;
  color: #8f8f9a;
  font-size: 12px;
  line-height: 1.55;
}

.scan-live-stats {
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.scan-live-stats > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 4px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.scan-live-stats strong {
  color: #e6e6eb;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.scan-live-stats span {
  color: #62626d;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .11em;
}

.scan-live-stats .clean strong {
  color: var(--green);
}

.scan-live-stats .flagged strong {
  color: var(--red-bright);
}

.scan-live-stats strong.is-updating {
  animation: scan-metric-update .32s ease;
}

@keyframes scan-metric-update {
  0% { opacity: .35; transform: translateY(3px) scale(.9); }
  65% { transform: translateY(-1px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.scan-progress {
  width: min(100%, 390px);
  height: 5px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #292930;
}

.scan-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #a9262b, var(--scan-accent));
  box-shadow: 0 0 12px rgba(255, 91, 97, .35);
  transition: width .35s ease;
}

.scan-progress.is-indeterminate span {
  width: 34% !important;
  animation: scan-progress-slide 1.25s ease-in-out infinite;
}

@keyframes scan-progress-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}

.scan-stage-footer {
  width: min(100%, 390px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.scan-stage-footer > small {
  color: #666671;
  font-size: 8px;
}

.scan-report-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: #d4d4dc;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 600;
}

.scan-report-button:hover {
  border-color: rgba(229, 72, 77, .45);
  color: #fff;
}

.scan-report-button svg {
  width: 12px;
  height: 12px;
}

.scan-stage.is-clean {
  --scan-accent: var(--green);
}

.scan-stage.is-clean .scan-ring-outer,
.scan-stage.is-clean .scan-ring-middle {
  border-color: rgba(84, 209, 139, .26);
  border-top-color: var(--green);
}

.scan-stage.is-clean .scan-badge {
  border-color: rgba(84, 209, 139, .3);
  background: rgba(84, 209, 139, .1);
  color: #83e0aa;
}

.scan-stage.is-clean .scan-progress span {
  background: linear-gradient(90deg, #298c55, var(--green));
}

.scan-stage.is-clean .scan-sweep,
.scan-stage.has-detections .scan-sweep,
.scan-stage.is-warning .scan-sweep,
.scan-stage.is-muted .scan-sweep {
  animation-duration: 7s;
  opacity: .28;
}

.scan-stage.is-clean .scan-core,
.scan-stage.has-detections .scan-core {
  animation: scan-result-pop .5s ease both;
}

@keyframes scan-result-pop {
  0% { transform: scale(.86); opacity: .5; }
  65% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

.scan-stage.is-warning {
  --scan-accent: #e8b86d;
}

.scan-stage.is-warning .scan-badge {
  border-color: rgba(232, 184, 109, .3);
  background: rgba(232, 184, 109, .09);
  color: #e8b86d;
}

.scan-stage.is-muted {
  --scan-accent: #858590;
}

.scan-stage.is-muted .scan-badge {
  border-color: var(--border);
  background: rgba(255, 255, 255, .04);
  color: #92929d;
}

body.is-app .shell {
  grid-template-columns: 1fr;
}

body.is-app .visual-panel {
  display: none;
}

body.is-app .auth-panel {
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}

body.is-app #successView {
  width: 100%;
  height: 100%;
  max-width: none;
  text-align: left;
}

body.is-app #successView.view.active {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  animation: none;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  justify-self: stretch;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 18px 0 20px;
  overflow: visible;
  text-align: center;
  border-right: 1px solid var(--border);
  background: #0c0c0f;
}

.app-sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 0;
}

.app-sidebar .nav-btn {
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #c4c4cc;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.app-sidebar .nav-btn svg {
  width: 34px;
  height: 34px;
  display: block;
  flex: none;
  margin: 0;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, .05);
  color: #d8d8de;
}

.nav-btn.active {
  background: rgba(229, 72, 77, .12);
  color: var(--red-bright);
}

.sidebar-avatar {
  flex: 0 0 auto;
  margin-inline: auto;
  display: grid;
  place-items: center;
  align-self: center;
  width: 52px;
  height: 52px;
}

.profile-avatar.nav-avatar {
  width: 44px;
  height: 44px;
  margin: 0;
  font-size: 15px;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .08);
  transition: transform .22s ease;
}

.profile-avatar.nav-avatar[data-kc-border]:not([data-kc-border="none"])::before {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}

.profile-avatar.nav-avatar[data-kc-border]:not([data-kc-border="none"]) img,
.profile-avatar.nav-avatar[data-kc-border]:not([data-kc-border="none"]) #navProfileFallback {
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
}

.sidebar-avatar:hover .nav-avatar {
  transform: scale(1.18);
}

.app-stage {
  height: 100%;
  overflow-y: auto;
  padding: 28px 32px 36px;
}

.app-page {
  display: none;
  max-width: 560px;
}

.app-page.profile-page {
  max-width: 720px;
}

.app-page.encrypt-page,
.app-page.vault-page {
  max-width: none;
}

.encrypt-extra {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.encrypt-extra .toggle-avscan {
  width: 100%;
}

.encrypt-extra.is-on {
  border-color: rgba(84, 209, 139, .28);
}

.encrypt-scan-score {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  margin-top: 16px;
  padding: 18px 12px 16px;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #101014;
}

.encrypt-scan-score.is-scanning {
  box-shadow: inset 0 0 0 1px rgba(84, 209, 139, .16);
}

.encrypt-scan-score.is-scanning #encryptScanValue {
  animation: encrypt-scan-pulse 1.15s ease-in-out infinite;
}

@keyframes encrypt-scan-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.encrypt-scan-score #encryptScanValue.is-updating {
  animation: scan-metric-update .32s ease;
}

.encrypt-scan-progress {
  width: 74%;
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
}

.encrypt-scan-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width .35s ease;
}

.encrypt-scan-progress.is-indeterminate span {
  width: 38%;
  animation: scan-progress-slide 1.15s ease-in-out infinite;
}

.scan-confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.scan-confetti i {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 7px;
  height: 10px;
  border-radius: 1px;
  animation: scan-confetti-burst 1.2s ease-out forwards;
}

@keyframes scan-confetti-burst {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.35);
    opacity: 0;
  }
}

.encrypt-scan-ratio {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
}

.encrypt-scan-score.is-idle .encrypt-scan-ratio {
  display: none;
}

.encrypt-scan-score #encryptScanValue,
.encrypt-scan-score #encryptScanTotal {
  color: #c8c8d0;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.encrypt-scan-score #encryptScanValue {
  font-size: 52px;
}

.encrypt-scan-score.has-ratio #encryptScanTotal {
  font-size: 28px;
  color: #8b8b96;
}

.encrypt-scan-sep {
  display: none;
  margin: 0 1px;
  color: #5c5c66;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.encrypt-scan-score.has-ratio .encrypt-scan-sep {
  display: inline;
}

.encrypt-scan-score.is-clean #encryptScanValue {
  color: var(--green);
}

.encrypt-scan-score.is-clean.has-ratio #encryptScanTotal,
.encrypt-scan-score.is-clean .encrypt-scan-sep {
  color: #4d9a6d;
}

.encrypt-scan-score.has-detections #encryptScanValue {
  color: var(--red-bright);
}

.encrypt-scan-score.has-detections.has-ratio #encryptScanTotal,
.encrypt-scan-score.has-detections .encrypt-scan-sep {
  color: #b45a5e;
}

.encrypt-scan-score small {
  margin-top: 8px;
  color: #6f6f7a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.app-page.active {
  display: block;
}

.page-title {
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.page-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

#pageProfile .dashboard-header {
  margin-bottom: 22px;
}

#pageProfile .session-card {
  margin-top: 0;
  text-align: left;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-stat {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.profile-stat span {
  display: block;
  margin-bottom: 6px;
  color: #6f6f7a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-stat strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.profile-panels {
  display: grid;
  gap: 12px;
}

.profile-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  text-align: left;
}

.profile-meta {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
}

.profile-meta div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.profile-meta dt {
  color: #6f6f7a;
  font-size: 11px;
  font-weight: 600;
}

.profile-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

.account-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #5c4a27;
  border-radius: 12px;
  background: rgba(92, 74, 39, .15);
  text-align: left;
}

.account-link-card strong {
  display: block;
  color: #ececf2;
  font-size: 13px;
  font-weight: 600;
}

.account-link-card p {
  margin: 5px 0 0;
  color: #d8bf83;
  font-size: 12px;
  line-height: 1.45;
}

.account-link-error {
  color: #ffafb2;
}

.account-link-button {
  flex-shrink: 0;
  width: auto;
  min-width: 148px;
  height: 36px;
  margin-top: 0;
  padding: 0 14px;
  font-size: 12px;
}

.profile-go-encrypt {
  margin-top: 22px;
  max-width: 280px;
}

#pageEncrypt .build-card {
  margin-top: 0;
}

#pageEncrypt .encrypt-split {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(300px, 1.15fr) minmax(210px, .7fr);
  gap: 14px;
  align-items: stretch;
}

#pageEncrypt .encrypt-panel {
  margin-bottom: 14px;
  padding: 20px 22px 22px;
}

#pageEncrypt .encrypt-split .encrypt-panel {
  margin-bottom: 0;
  min-height: 100%;
}

#pageEncrypt .format-picker {
  position: relative;
}

#pageEncrypt .format-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #121216;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

#pageEncrypt .format-trigger:hover,
#pageEncrypt .format-picker.is-open .format-trigger {
  border-color: rgba(229, 72, 77, .5);
  background: rgba(229, 72, 77, .08);
}

#pageEncrypt .format-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #9a9aa6;
  border-bottom: 2px solid #9a9aa6;
  justify-self: end;
  transform: rotate(45deg) translateY(-2px);
}

#pageEncrypt .format-picker.is-open .format-caret {
  transform: rotate(225deg) translateY(-1px);
}

#pageEncrypt .format-row {
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111114;
}

#pageEncrypt .format-picker.is-open .format-row {
  display: grid;
}

#pageEncrypt .chip {
  min-height: 52px;
  width: 100%;
}

#pageEncrypt .section-head {
  margin-bottom: 16px;
}

#pageEncrypt .section-head.spaced {
  margin-top: 0;
}

#pageEncrypt .payload-dropzone {
  min-height: 88px;
  padding: 20px 18px;
}

#pageEncrypt .chip-icon {
  width: 34px;
  height: 34px;
}

#pageEncrypt .chip-icon svg {
  width: 18px;
  height: 18px;
}

#pageEncrypt .chip-icon img {
  width: 24px;
  height: 24px;
}

#pageEncrypt .chip-text strong {
  font-size: 13px;
}

#pageEncrypt .toggle-grid {
  gap: 12px;
}

#pageEncrypt .toggle {
  min-height: 52px;
}

#pageEncrypt .primary-button {
  margin-top: 18px;
}

#pageEncrypt .build-status-row {
  margin-top: 12px;
}

@property --kc-recommend-rgb {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes kc-recommend-rgb {
  to { --kc-recommend-rgb: 360deg; }
}

.recommend-toggle {
  position: relative;
  isolation: isolate;
  min-height: 56px;
  border-color: transparent;
  background: #121216;
}

.toggle.recommend-toggle:hover,
.toggle.recommend-toggle:has(input:checked) {
  border-color: transparent;
}

.toggle.recommend-toggle:has(input:checked) {
  background: #161218;
  color: #fff;
}

.recommend-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--kc-recommend-rgb),
    #ff0040,
    #ff8c00,
    #ffee00,
    #00e676,
    #00b0ff,
    #d500f9,
    #ff0040
  );
  animation: kc-recommend-rgb 4s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.recommend-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.recommend-copy strong {
  font-size: 13px;
  font-weight: 600;
}

.recommend-copy small {
  color: #8a8a94;
  font-size: 11px;
  font-weight: 500;
}

.recommend-toggle:has(input:checked) .recommend-copy small {
  color: #d0d0d8;
}

.options-divider {
  grid-column: 1 / -1;
  height: 1px;
  margin: 4px 2px;
  background: #2a2a32;
}

.vault-password {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
}

.vault-password span {
  color: #8a8a94;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vault-password code {
  min-width: 0;
  color: #f0f0f5;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.vault-head .page-lead {
  margin-bottom: 0;
}

.vault-empty {
  margin-top: 18px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  text-align: left;
}

.vault-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.vault-empty p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.vault-empty .primary-button {
  max-width: 220px;
}

.vault-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.vault-card {
  padding: 16px 18px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.vault-card.has-scan {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vault-card-main {
  flex: 1;
  min-width: 0;
}

.vault-scan-score {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 0 4px 0 8px;
}

.vault-scan-score strong {
  color: var(--green);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.vault-scan-score.has-detections strong {
  color: var(--red-bright);
}

.vault-scan-score.is-waiting strong,
.vault-scan-score.is-scanning strong {
  color: #c8c8d0;
}

.vault-scan-score.is-scanning strong {
  animation: encrypt-scan-pulse 1.15s ease-in-out infinite;
}

.vault-scan-score.is-skipped strong {
  color: #6f6f7a;
  font-size: 32px;
}

.vault-scan-score.is-skipped small {
  color: #6f6f7a;
}

.vault-scan-score small {
  margin-top: 6px;
  color: #6f6f7a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vault-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.vault-format-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background: transparent;
}

.vault-format-icon img {
  display: block;
  width: 32px;
  height: 32px;
}

.vault-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  min-width: 0;
  min-height: 32px;
}

.vault-card-top strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vault-card-top time {
  flex: 0 0 auto;
  color: #6f6f7a;
  font-size: 11px;
}

.vault-meta,
.vault-flags,
.vault-path {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.vault-flags {
  margin-top: 6px;
}

.vault-path {
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6f6f7a;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 11px;
}

.vault-path[data-path]::after {
  content: "Hover to show path";
}

.vault-path[data-path]:hover {
  color: #c8c8d0;
}

.vault-path[data-path]:hover::after {
  content: attr(data-path);
}

.vault-path.is-missing {
  color: #ff8a8f;
}

.vault-path.is-missing[data-path]:hover {
  color: #ff8a8f;
}

.vault-file-missing {
  color: var(--red-bright);
  font-weight: 600;
}

.vault-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 6, 8, .74);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
  --wails-draggable: no-drag;
}

.confirm-overlay.hidden {
  display: none;
}

.confirm-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.confirm-card {
  width: min(380px, 100%);
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #121216;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: translateY(10px) scale(.96);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}

.confirm-overlay.is-open .confirm-card {
  opacity: 1;
  transform: none;
}

.confirm-kicker {
  margin: 0 0 8px;
  color: var(--red-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.confirm-card h2 {
  margin: 0 0 8px;
  color: #f2f2f6;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.confirm-card p#confirmBody {
  margin: 0;
  color: #9a9aa4;
  font-size: 13px;
  line-height: 1.5;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.confirm-actions .primary-button,
.confirm-actions .secondary-button {
  width: auto;
  height: 42px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    display: none;
  }

  #pageEncrypt .encrypt-split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-limit-mark,
  .device-limit-orbit,
  .device-reset-button.is-loading::before {
    animation: none;
  }

  .confirm-overlay,
  .confirm-card {
    transition: none;
  }

  .confirm-card {
    transform: none;
  }
}
