.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(ellipse at 80% 10%, #e9e1f5, transparent 48%), radial-gradient(ellipse at 10% 90%, #e5f2fa, transparent 52%), #f8f9fc;
}
.auth-card {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 20px 65px rgba(60, 54, 103, 0.12);
}
.auth-card .brand {
  justify-content: center;
  margin-bottom: 28px;
}
.auth-clinic-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0;
  flex: none;
}
.auth-card h1 {
  font-size: 25px;
}
.auth-card .field {
  margin-bottom: 16px;
}
.auth-card .btn {
  width: 100%;
  margin-top: 12px;
}
.auth-message {
  background: #fff0ef;
  color: #a33535;
  border-radius: 9px;
  padding: 12px;
  margin: 12px 0;
  font-size: 13px;
}
.account-chip {
  font-size: 11px;
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.remote-state {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: #f0ecf9;
  color: #624795;
  border-radius: 7px;
  margin: 0 7px;
}
.remote-state.error {
  background: #fff1ed;
  color: #a44329;
}
.remote-state.saving {
  background: #fff8e8;
  color: #826721;
}
.remote-state.local,
.remote-state.attention {
  background: #fff3dc;
  color: #825b19;
}
.remote-state.saved {
  background: #eaf7f0;
  color: #227352;
}
.session-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  cursor: pointer;
  margin-top: 12px;
  padding: 9px 0;
}
.account-dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  width: min(850px, calc(100vw - 30px));
  max-height: 88vh;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}
.account-dialog::backdrop {
  background: #262443a3;
  backdrop-filter: blur(3px);
}
.correction-reason-dialog {
  width: min(560px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  margin: auto;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  box-shadow: 0 24px 70px rgba(31, 35, 62, 0.25);
}
.correction-reason-dialog::backdrop {
  background: rgba(31, 35, 62, 0.52);
  backdrop-filter: blur(5px);
}
.correction-reason-card {
  display: grid;
  gap: 20px;
  padding: 30px;
}
.correction-reason-card h2 {
  margin: 2px 0 7px;
}
.correction-reason-card p {
  line-height: 1.8;
}
.correction-reason-card .field {
  margin: 0;
}
.correction-reason-card textarea {
  min-height: 112px;
  resize: vertical;
}
.correction-reason-meta {
  margin-top: 7px;
  color: var(--muted);
}
.correction-reason-error {
  margin: 8px 0 0;
  color: #a33535;
  font-size: 12px;
}
.correction-reason-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .correction-reason-card {
    padding: 22px 18px;
  }
  .correction-reason-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .correction-reason-actions .btn {
    justify-content: center;
    width: 100%;
  }
}
.account-dialog h2 {
  margin: 12px 0;
}
.account-tabs {
  display: flex;
  gap: 8px;
  margin: 15px 0 22px;
  flex-wrap: wrap;
}
.account-tabs .btn {
  font-size: 12px;
}
.account-dialog .field {
  margin: 12px 0;
}
.account-dialog table {
  font-size: 12px;
}
.account-dialog td,
.account-dialog th {
  padding: 10px;
}
.account-dialog pre {
  direction: ltr;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.account-dialog select {
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: #fff;
  color: var(--ink);
}
.account-status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
}
.account-status.active {
  color: #176345;
  background: #e8f7ef;
}
.account-status.inactive {
  color: #8d3c35;
  background: #fff0ef;
}
.account-dialog .confirm-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 16px 0;
  line-height: 1.7;
}
.remote-banner {
  background: #fff0e8;
  border-bottom: 1px solid #efc9b5;
  padding: 12px 25px;
  font-size: 13px;
  color: #803d20;
}
.remote-banner .btn {
  margin-inline-start: 10px;
}
.auth-hint {
  font-size: 12px;
  color: #78849a;
  line-height: 1.8;
  margin-top: 20px;
}
.account-readonly {
  font-size: 12px;
  color: #866023;
  background: #fff7e8;
  border-radius: 9px;
  padding: 12px;
}
.example-score {
  margin: 20px 0;
}
.example-track {
  height: 10px;
  background: #e9eaf2;
  border-radius: 20px;
  margin-top: 8px;
  overflow: hidden;
}
.example-track span {
  display: block;
  height: 100%;
  background: #624795;
  border-radius: 20px;
}
.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field-wrap input {
  width: 100%;
  padding-inline-end: 42px;
}
.password-toggle-btn {
  position: absolute;
  inset-inline-end: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #64748b);
  border-radius: 6px;
  transition: color 0.15s ease;
}
.password-toggle-btn:hover {
  color: var(--ink, #1e293b);
}
.auth-credentials-box {
  margin-top: 14px;
  margin-bottom: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 12px;
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-credentials-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #624795;
  direction: ltr;
  display: inline-block;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}
