.ca-screen[hidden],
.ca-dialog[hidden] {
  display: none !important;
}
.ca-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: #08090a;
  color: #ecece6;
}
.ca-card {
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid #303532;
  border-radius: 24px;
  background: linear-gradient(145deg, #171b19, #101211);
  box-shadow: 0 24px 80px #0005;
}
.ca-brand {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #a9c5b5;
  margin-bottom: 30px;
}
.ca-card h1,
.ca-panel h2 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 12px;
}
.ca-muted {
  color: #a3ada7;
  line-height: 1.55;
  font-size: 14px;
}
.ca-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.ca-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #c7cec9;
}
.ca-form input:not([type="checkbox"]) {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid #3a433d;
  background: #090c0a;
  color: #f2f3ee;
  font: inherit;
  box-sizing: border-box;
}
.ca-form input:focus {
  outline: 2px solid #a9c5b5;
  outline-offset: 2px;
}
.ca-form .ca-check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ca-check input {
  accent-color: #b8d2c2;
  width: 17px;
  height: 17px;
}
.ca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #465149;
  border-radius: 10px;
  background: #1e2822;
  color: #e8ede9;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.ca-btn:hover {
  background: #2a3930;
}
.ca-btn:focus-visible {
  outline: 2px solid #d2e3d7;
  outline-offset: 3px;
}
.ca-btn.primary {
  background: #c0d5c6;
  color: #14251a;
  border-color: #c0d5c6;
}
.ca-btn.primary:hover {
  background: #d0e1d5;
}
.ca-btn.danger {
  color: #ffb4ab;
  border-color: #74443e;
  background: #321e1c;
}
.ca-btn:disabled {
  opacity: 0.45;
  cursor: wait;
}
.ca-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ca-form > .ca-buttons > * {
  flex: 1;
}
.ca-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #78877c;
  font-size: 12px;
  margin: 24px 0;
}
.ca-divider:before,
.ca-divider:after {
  content: "";
  height: 1px;
  background: #343d36;
  flex: 1;
}
.ca-error {
  color: #ffb9af;
  background: #3b2421;
  border: 1px solid #77463e;
  border-radius: 9px;
  padding: 12px;
  line-height: 1.45;
  font-size: 14px;
  margin: 16px 0;
}
.ca-error:empty {
  display: none;
}
.ca-notice {
  color: #b8d2c2;
  line-height: 1.5;
  font-size: 14px;
  min-height: 20px;
}
.ca-code {
  font-size: 32px;
  letter-spacing: 0.15em;
  color: #d9e8df;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.ca-dialog {
  border: 1px solid #3a453d;
  border-radius: 20px;
  background: #101512;
  color: #ecece6;
  max-height: 90vh;
  width: min(760px, calc(100vw - 32px));
  padding: 0;
  box-sizing: border-box;
}
.ca-dialog::backdrop {
  background: #030806c9;
  backdrop-filter: blur(5px);
}
.ca-panel {
  padding: 28px;
}
.ca-panel header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.ca-panel header h2 {
  font-size: 25px;
}
.ca-section {
  border-top: 1px solid #303b33;
  margin-top: 24px;
  padding-top: 24px;
}
.ca-section h3 {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: 19px;
}
.ca-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #28322b;
}
.ca-item strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.ca-item small {
  display: block;
  color: #a1afa5;
  margin-top: 5px;
  line-height: 1.5;
}
.ca-item .ca-btn {
  flex-shrink: 0;
}
.ca-badge {
  font-size: 11px;
  color: #c5e6d0;
  background: #25432e;
  padding: 4px 8px;
  border-radius: 20px;
  margin-left: 8px;
  white-space: nowrap;
}
.ca-panel .ca-form {
  max-width: 460px;
}
.ca-security-button {
  white-space: nowrap;
}
.ca-help {
  font-size: 12px;
  color: #90a197;
  line-height: 1.5;
  margin-top: 20px;
}
.ca-stepup .ca-panel {
  max-width: 450px;
  margin: auto;
}
.ca-stepup {
  width: min(500px, calc(100vw - 32px));
}
@media (max-width: 560px) {
  .ca-card {
    padding: 24px;
  }
  .ca-screen {
    padding: 16px;
  }
  .ca-panel {
    padding: 20px;
  }
  .ca-panel h2 {
    font-size: 23px;
  }
  .ca-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .ca-item .ca-btn {
    min-height: 38px;
  }
  .ca-security-button {
    padding: 8px;
    font-size: 12px;
  }
  .ca-buttons > .ca-btn {
    flex: 1;
  }
  .ca-brand {
    margin-bottom: 24px;
  }
}
.ca-session-actions {
  margin-top: 20px;
}
.ca-screen {
  margin: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
}
.ca-screen::backdrop {
  background: #08090a;
}
