@charset "UTF-8";
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --text-heading: #1a365d;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --logo-filter: none;
  --glow-primary: none;
  --glow-primary-intense: none;
  --glow-cyan: none;
  --glow-cyan-intense: none;
  --glow-success: none;
  --glow-error: none;
  --glow-subtle: none;
}

[data-theme=dark] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2d2d2d;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #6b6b6b;
  --text-inverse: #121212;
  --text-heading: #93c5fd;
  --border-light: #2d2d2d;
  --border-medium: #404040;
  --logo-filter: brightness(100);
  --glow-primary: none;
  --glow-primary-intense: none;
  --glow-cyan: none;
  --glow-cyan-intense: none;
  --glow-success: none;
  --glow-error: none;
  --glow-subtle: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) var(--bg-tertiary);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #3182ce;
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover:not(.btn) {
  color: var(--text-heading);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm {
  max-width: 640px;
}
.container-md {
  max-width: 768px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 2.75rem;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  background: #3182ce;
  color: var(--text-inverse);
  box-shadow: var(--glow-primary);
}
.btn-primary:hover:not(:disabled) {
  background: #1a365d;
  box-shadow: var(--glow-primary-intense);
}
.btn-primary:focus {
  box-shadow: var(--glow-primary-intense);
}
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--border-medium);
}
.btn-outline {
  background: transparent;
  border: 2px solid #3182ce;
  color: #3182ce;
}
.btn-outline:hover:not(:disabled) {
  background: #3182ce;
  color: var(--text-inverse);
  box-shadow: var(--glow-primary);
}
.btn-outline:focus {
  box-shadow: var(--glow-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.btn-danger {
  background: #ef4444;
  color: var(--text-inverse);
  box-shadow: var(--glow-error);
}
.btn-danger:hover:not(:disabled) {
  background: #dc2626;
}
.btn-danger:focus {
  outline: 2px solid rgba(239, 68, 68, 0.5);
  outline-offset: 2px;
}
.btn-passkey {
  background: #1a365d;
  color: var(--text-inverse);
  box-shadow: var(--glow-cyan);
}
.btn-passkey:hover:not(:disabled) {
  background: #0f2942;
  box-shadow: var(--glow-cyan-intense);
}
.btn-passkey:focus {
  box-shadow: var(--glow-cyan-intense);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}
.btn-sm {
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
}
.btn-block {
  width: 100%;
}
.btn-wide {
  min-width: 180px;
}
.btn-icon {
  padding: 0.5rem;
  aspect-ratio: 1;
}
@media (max-width: 768px) {
  .btn-create-app {
    padding: 0.5rem;
    aspect-ratio: 1;
    min-width: 2.75rem;
  }
  .btn-create-app .btn-text-desktop {
    display: none;
  }
}

@media (max-width: 768px) {
  .btn-text-desktop {
    display: none;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  transition: all 150ms ease;
}
.form-input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: var(--glow-primary);
}
.form-input::placeholder {
  color: var(--text-muted);
}
.form-input:disabled {
  background: var(--bg-tertiary);
  cursor: not-allowed;
}
.form-input.error {
  border-color: #ef4444;
}
.form-input.error:focus {
  box-shadow: var(--glow-error);
}

.form-select {
  width: 100%;
  padding: 0.5rem 1rem;
  padding-right: 2.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  transition: all 150ms ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form-select:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: var(--glow-primary);
}
.form-select:disabled {
  background-color: var(--bg-tertiary);
  cursor: not-allowed;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.form-counter {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1rem;
}
.form-counter-item.at-limit {
  color: #ef4444;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.input-group {
  position: relative;
}
.input-group .form-input {
  padding-left: 2.75rem;
}
.input-group-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-icon-prefix {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.form-icon-prefix > i {
  color: var(--text-secondary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input.text-center {
  text-align: center;
}

.form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 0.25rem;
  background: var(--bg-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 150ms ease, background-color 200ms ease, box-shadow 400ms ease-out;
  position: relative;
}
.form-checkbox::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 150ms ease;
}
.form-checkbox:hover:not(:disabled) {
  border-color: #3182ce;
}
.form-checkbox:focus-visible {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.25);
}
.form-checkbox:checked {
  background: #3182ce;
  border-color: #3182ce;
  box-shadow: 0 0 10px 2px rgba(0, 188, 212, 0.3), 0 0 20px 4px rgba(49, 130, 206, 0.2);
}
.form-checkbox:checked::after {
  border-color: white;
  transform: rotate(45deg) scale(1);
  opacity: 1;
  transition-delay: 50ms;
}
.form-checkbox:checked:hover:not(:disabled) {
  box-shadow: 0 0 14px 3px rgba(0, 188, 212, 0.4), 0 0 28px 6px rgba(49, 130, 206, 0.25);
}
.form-checkbox:not(:checked)::after {
  transition: transform 150ms ease-out, opacity 100ms ease-out;
  transition-delay: 0ms;
}
.form-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
}
.checkbox-label .form-checkbox {
  margin-top: 2px;
}
.checkbox-label .checkbox-text {
  color: var(--text-secondary);
}
.checkbox-label .checkbox-text .link {
  color: #3182ce;
  text-decoration: none;
}
.checkbox-label .checkbox-text .link:hover {
  text-decoration: underline;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.password-strength-bars {
  display: flex;
  gap: 4px;
}

.password-strength-bar {
  width: 24px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  transition: background-color 150ms ease;
}
.strength-weak .password-strength-bar.active {
  background: #ef4444;
}
.strength-fair .password-strength-bar.active {
  background: #f59e0b;
}
.strength-good .password-strength-bar.active {
  background: #00bcd4;
}
.strength-strong .password-strength-bar.active {
  background: #10b981;
}

.password-strength-label {
  font-size: 0.75rem;
  font-weight: 500;
}
.strength-weak .password-strength-label {
  color: #ef4444;
}
.strength-fair .password-strength-label {
  color: #f59e0b;
}
.strength-good .password-strength-label {
  color: #00bcd4;
}
.strength-strong .password-strength-label {
  color: #10b981;
}

.card {
  background: var(--bg-primary);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--glow-subtle);
}
.card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
}
.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}
.alert-icon {
  flex-shrink: 0;
  font-size: 1.125rem;
}
.alert-content {
  flex: 1;
}
.alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
}
.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #92400e;
}
.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
}
.alert-info {
  background: rgba(49, 130, 206, 0.1);
  border: 1px solid rgba(49, 130, 206, 0.2);
  color: #1e40af;
}

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  pointer-events: none;
}
@media (max-width: 640px) {
  .toast-container {
    top: auto;
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--toast-bg, #ffffff);
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border-left: 5px solid;
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease-out;
  position: relative;
  overflow: hidden;
  min-width: 320px;
}
[data-theme=dark] .toast {
  background: var(--toast-bg, #1f2937);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
@media (max-width: 640px) {
  .toast {
    animation: toast-slide-in-mobile 0.3s ease-out;
  }
}
.toast-success {
  border-left-color: #10b981;
}
.toast-success .toast-icon {
  color: #10b981;
}
.toast-success .toast-progress {
  background: #10b981;
}
.toast-error {
  border-left-color: #ef4444;
}
.toast-error .toast-icon {
  color: #ef4444;
}
.toast-error .toast-progress {
  background: #ef4444;
}
.toast-warning {
  border-left-color: #f59e0b;
}
.toast-warning .toast-icon {
  color: #f59e0b;
}
.toast-warning .toast-progress {
  background: #f59e0b;
}
.toast-info {
  border-left-color: #3182ce;
}
.toast-info .toast-icon {
  color: #3182ce;
}
.toast-info .toast-progress {
  background: #3182ce;
}
.toast-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  padding-top: 2px;
}
.toast-content {
  flex: 1;
  min-width: 0;
}
.toast-message {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  word-wrap: break-word;
}
.toast-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.toast-countdown {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 1rem;
  text-align: center;
  transition: color 0.2s;
}
.toast-countdown.paused {
  color: #3182ce;
}
.toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.2s;
}
.toast-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  opacity: 0.3;
  transition: width 0.1s linear;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toast-slide-in-mobile {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
.callout > i {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 2px;
}
.callout > div, .callout > span {
  flex: 1;
}
.callout > div p, .callout > span p {
  margin: 0;
}
.callout-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #92400e;
}
.callout-warning > i {
  color: #f59e0b;
}
.callout-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
}
.callout-error > i {
  color: #ef4444;
}
.callout-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
}
.callout-success > i {
  color: #10b981;
}
.callout-info {
  background: rgba(49, 130, 206, 0.1);
  border: 1px solid rgba(49, 130, 206, 0.2);
  color: #1e40af;
}
.callout-info > i {
  color: #3182ce;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop.open .modal {
  transform: scale(1);
}

.modal {
  background: var(--bg-primary);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--glow-primary-intense);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 250ms ease;
}
.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header-success {
  background: linear-gradient(to right, rgba(16, 185, 129, 0.1), transparent);
}
.modal-header-danger {
  background: linear-gradient(to right, rgba(239, 68, 68, 0.1), transparent);
}
.modal-md {
  max-width: 480px;
}
.modal-lg {
  max-width: 600px;
}
.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-heading);
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 150ms ease;
  border: none;
  background: transparent;
}
.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .modal-footer {
    flex-direction: column-reverse;
  }
  .modal-footer .btn {
    width: 100%;
    white-space: normal;
  }
}

.modal-body {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.modal-body p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.security-words-box {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.security-words-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: #166534;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.security-words-value {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #15803d;
  font-weight: 700;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  letter-spacing: 1px;
}

.security-words-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.success-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1rem 0;
}

.divider-vertical {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--border-light);
  margin: 0 0.5rem;
  vertical-align: middle;
}

.w-action {
  width: 100px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-primary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--glow-subtle);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.stat-icon.blue {
  background: rgba(49, 130, 206, 0.1);
  color: #3182ce;
}
.stat-icon.cyan {
  background: rgba(0, 188, 212, 0.1);
  color: #00bcd4;
}
.stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.stat-icon.navy {
  background: rgba(26, 54, 93, 0.1);
  color: #1a365d;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}
.stat-value-sm {
  font-size: 1rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.table-container {
  background: var(--bg-primary);
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--glow-subtle);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 1rem 1.5rem;
  text-align: left;
}
.table th {
  background: var(--bg-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.table td {
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tr:hover td {
  background: var(--bg-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}
.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.badge-info {
  background: rgba(49, 130, 206, 0.1);
  color: #3182ce;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}
.empty-state-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-state-text {
  margin-bottom: 1.5rem;
}

.app-list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 150ms ease;
  box-shadow: var(--glow-subtle);
}
.app-list-item:hover {
  border-color: #3182ce;
  background: var(--bg-secondary);
  box-shadow: var(--glow-primary);
}

.app-list-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-list-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.app-icon-placeholder {
  font-size: 1.5rem;
}

.app-list-info {
  flex: 1;
  min-width: 0;
}
.app-list-info > .font-semibold,
.app-list-info > :first-child {
  word-break: break-word;
  overflow-wrap: break-word;
}

.app-domain {
  font-size: 0.875rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-light);
  border-top-color: #3182ce;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
  box-shadow: var(--glow-primary);
}
.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}
.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease infinite;
  border-radius: 0.25rem;
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.qr-code-container {
  width: 200px;
  height: 200px;
}
.qr-code-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.avatar-cropper-modal {
  max-width: 500px;
  width: 95vw;
}

.avatar-cropper-canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 0.5rem;
  padding: 0;
  overflow: hidden;
}

.avatar-cropper-canvas {
  max-width: 100%;
  cursor: move;
  touch-action: none;
  border-radius: 0.25rem;
}

.searchable-select {
  position: relative;
}

.searchable-select-input {
  padding-right: 32px !important;
  cursor: text;
}

.searchable-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.searchable-select-group:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.searchable-select-group-header {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.searchable-select-option {
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  cursor: pointer;
  transition: background 150ms ease;
  font-size: 0.9rem;
  position: relative;
}
.searchable-select-option:hover, .searchable-select-option.highlighted {
  background: var(--bg-tertiary);
}
.searchable-select-option.selected {
  color: #3182ce;
  font-weight: 500;
}
.searchable-select-option.selected::before {
  content: "✓";
  position: absolute;
  left: 0.5rem;
  color: #3182ce;
}

.searchable-select-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
}

@media (max-width: 390px) {
  .verification-code-input {
    width: 38px !important;
    height: 46px !important;
    font-size: 1.25rem !important;
  }
}

.admin-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .admin-user-grid {
    grid-template-columns: 1fr;
  }
}

.admin-field-value {
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
  word-break: break-word;
  overflow-wrap: break-word;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.admin-section {
  margin-top: 1.5rem;
}
.admin-section__title {
  margin-bottom: 1rem;
}
.admin-section__description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.admin-section__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-field-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.admin-field-row .admin-field-value {
  flex: 1;
}

.admin-avatar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
@media (max-width: 640px) {
  .admin-avatar {
    flex-direction: column;
  }
}
.admin-avatar__wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.admin-avatar__image {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--border-light);
}
.admin-avatar__placeholder {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.5rem;
}
.admin-avatar__url {
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
  max-width: 200px;
  text-align: center;
}

.admin-bio-value {
  flex: 1;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
  white-space: pre-wrap;
  min-height: 4rem;
  font-family: inherit;
  font-size: inherit;
  word-break: break-word;
}

.admin-links-box {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
}

.admin-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 640px) {
  .admin-link-item {
    flex-wrap: wrap;
  }
}
.admin-link-item__number {
  color: var(--text-secondary);
  font-size: 0.75rem;
  min-width: 1.5rem;
}
.admin-link-item__url {
  flex: 1;
  word-break: break-all;
  color: #3182ce;
  min-width: 0;
}

.admin-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
}
.admin-box--danger {
  background: rgba(239, 68, 68, 0.1);
}
.admin-box--warning {
  background: rgba(245, 158, 11, 0.1);
}
.admin-box--secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}
.admin-box__title {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-box__title--danger {
  color: #ef4444;
}
.admin-box__title--warning {
  color: #f59e0b;
}
.admin-box__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.875rem;
}
@media (max-width: 768px) {
  .admin-box__content {
    grid-template-columns: 1fr;
  }
}
.admin-box__text {
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-box__hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.admin-management-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .admin-management-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.admin-management-row__status {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.admin-rate-limits__grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.admin-rate-limits__actions {
  display: flex;
  justify-content: flex-end;
}

.admin-rate-limit__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: rgba(var(--bg-tertiary), 0.5);
  border-radius: 0.25rem;
}

.admin-rate-limit__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-rate-limit__label {
  font-size: 0.875rem;
  font-weight: 500;
}

.admin-rate-limit__hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.admin-rate-limit__bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.admin-rate-limit__bar {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.admin-rate-limit__bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.admin-rate-limit__bar-fill--clear {
  background: var(--text-muted);
  width: 0 !important;
}
.admin-rate-limit__bar-fill--active {
  background: #f59e0b;
}
.admin-rate-limit__bar-fill--blocked {
  background: #ef4444;
}

.admin-rate-limit__count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

.rate-limit-btn-wrapper {
  position: relative;
  display: inline-block;
}

.rate-limit-popup {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
.rate-limit-popup--fixed {
  position: fixed;
  top: auto;
  right: auto;
  margin-top: 0;
}
.rate-limit-popup__loading, .rate-limit-popup__empty {
  display: flex;
  justify-content: center;
  padding: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.rate-limit-popup__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rate-limit-popup__row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.rate-limit-popup__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 45px;
}
.rate-limit-popup__bar {
  flex: 1;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  min-width: 50px;
}
.rate-limit-popup__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.2s ease;
}
.rate-limit-popup__bar-fill--clear {
  background: var(--text-muted);
  width: 0 !important;
}
.rate-limit-popup__bar-fill--active {
  background: #f59e0b;
}
.rate-limit-popup__bar-fill--blocked {
  background: #ef4444;
}
.rate-limit-popup__count {
  font-size: 10px;
  color: var(--text-secondary);
  min-width: 30px;
  text-align: right;
}
.rate-limit-popup__window {
  font-size: 9px;
  color: var(--text-muted);
  min-width: 25px;
  text-align: right;
}

.admin-warning-modal__title {
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-warning-modal__text {
  margin-bottom: 1rem;
}
.admin-warning-modal__text--bold {
  font-weight: 500;
}
.admin-warning-modal__text--muted {
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.admin-warning-modal__list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.admin-delete-modal__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-delete-modal__title .fa-trash {
  color: #ef4444;
}
.admin-delete-modal__text {
  margin-bottom: 1rem;
}
.admin-delete-modal__hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.icon-mr {
  margin-right: 0.5rem;
}
.icon-mr--sm {
  margin-right: 0.25rem;
}

.admin-loading {
  padding: 3rem;
  display: flex;
  justify-content: center;
}

.notification-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.notification-actions .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.btn-danger-text {
  color: #ef4444;
}
.btn-danger-text:hover {
  color: #ef4444;
}

.bug-report-layout {
  min-height: 100vh;
  background: var(--bg-secondary);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
@media (max-width: 640px) {
  .bug-report-layout {
    padding: 1rem;
  }
}

.bug-report-container {
  width: 100%;
  max-width: 800px;
  background: var(--bg-primary);
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--glow-primary);
  padding: 2rem;
}
@media (max-width: 640px) {
  .bug-report-container {
    padding: 1.5rem;
  }
}

.bug-report-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
@media (max-width: 640px) {
  .bug-report-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.bug-report-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}
.bug-report-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.bug-report-logo {
  flex-shrink: 0;
}
.bug-report-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: var(--logo-filter);
}

.bug-report-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bug-report-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .bug-report-row {
    grid-template-columns: 1fr;
  }
}

.bug-report-editor-group {
  display: flex;
  flex-direction: column;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
@media (max-width: 640px) {
  .editor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
.editor-header .form-label {
  margin-bottom: 0;
}

.editor-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-secondary);
  padding: 2px;
  border-radius: 0.5rem;
}

.editor-tab {
  padding: 0.25rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 150ms ease;
}
.editor-tab:hover {
  color: var(--text-primary);
}
.editor-tab.active {
  background: var(--bg-primary);
  color: #3182ce;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.editor-tab i {
  margin-right: 0.25rem;
}

.editor-toolbar {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
}

.toolbar-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 150ms ease;
}
.toolbar-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.toolbar-separator {
  width: 1px;
  background: var(--border-light);
  margin: 0 0.25rem;
}

.editor-textarea {
  min-height: 300px;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  line-height: 1.6;
  resize: vertical;
}

.editor-preview {
  min-height: 300px;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  overflow-y: auto;
}
.editor-preview h2, .editor-preview h3, .editor-preview h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}
.editor-preview h2 {
  font-size: 1.25rem;
}
.editor-preview h3 {
  font-size: 1.125rem;
}
.editor-preview h4 {
  font-size: 1rem;
}
.editor-preview p {
  margin-bottom: 0.5rem;
}
.editor-preview ul {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.editor-preview li {
  margin-bottom: 0.25rem;
}
.editor-preview code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: monospace;
}
.editor-preview pre {
  background: #1a365d;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 0.5rem;
}
.editor-preview pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.editor-preview strong {
  font-weight: 600;
}
.editor-preview em {
  font-style: italic;
}
.editor-preview hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1rem 0;
}
.editor-preview .preview-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
@media (max-width: 640px) {
  .editor-footer {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
}

.char-counter {
  font-size: 0.875rem;
}
.char-counter.insufficient {
  color: #ef4444;
}
.char-counter.sufficient {
  color: #10b981;
}

.bug-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.bug-report-success {
  text-align: center;
  padding: 3rem 1.5rem;
}
.bug-report-success .success-icon {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1.5rem;
}
.bug-report-success h2 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}
.bug-report-success p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.bug-report-computing {
  text-align: center;
  padding: 3rem 1.5rem;
}
.bug-report-computing h3 {
  font-size: 1.125rem;
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.bug-report-computing p {
  color: var(--text-secondary);
}

.file-drop-zone {
  border: 2px dashed var(--border-medium);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  background: var(--bg-secondary);
  transition: all 150ms ease;
  cursor: pointer;
  position: relative;
}
.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: #3182ce;
  background: rgba(49, 130, 206, 0.05);
}
.file-drop-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop-zone i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}
.file-drop-zone p {
  color: var(--text-secondary);
  margin: 0 0 0.25rem;
  font-size: 1rem;
}
.file-drop-zone .file-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.attached-files-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.attached-file-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}
.attached-file-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.attached-file-item .file-info {
  padding: 0.25rem 0.5rem;
  background: var(--bg-primary);
}
.attached-file-item .file-name {
  display: block;
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attached-file-item .file-size {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.attached-file-item .btn-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: var(--text-inverse);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 150ms ease;
}
.attached-file-item .btn-remove:hover {
  background: #ef4444;
}
.attached-file-item:hover .btn-remove {
  opacity: 1;
}

.bug-report-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bug-report-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  border-left: 3px solid #3182ce;
  transition: all 150ms ease;
}
@media (max-width: 640px) {
  .bug-report-item {
    flex-direction: column;
    align-items: stretch;
  }
}
.bug-report-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}
.bug-report-item.is-read {
  opacity: 0.7;
  border-left-color: var(--border-medium);
}
.bug-report-item.is-read .bug-report-item-title {
  font-weight: 400;
}

.bug-report-item-main {
  flex: 1;
  min-width: 0;
}

.bug-report-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.bug-report-item-title {
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
@media (max-width: 640px) {
  .bug-report-item-title {
    white-space: normal;
    word-break: break-word;
  }
}

.bug-report-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.bug-report-item-meta a {
  color: #3182ce;
}
.bug-report-item-meta a:hover {
  text-decoration: underline;
}

.bug-report-item-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .bug-report-item-actions {
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
  }
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  flex-shrink: 0;
}
.icon-circle-sm {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}
.icon-circle-md {
  width: 40px;
  height: 40px;
  font-size: 1.125rem;
}
.icon-circle-lg {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}
.icon-circle-xl {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}
.icon-circle-primary {
  background: rgba(49, 130, 206, 0.1);
  color: #3182ce;
}
.icon-circle-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.icon-circle-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.icon-circle-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.icon-circle-danger {
  background: #ef4444;
  color: var(--text-inverse);
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 0.75rem;
}
.info-box > i {
  flex-shrink: 0;
  color: var(--text-secondary);
  margin-top: 2px;
}
.info-box-content {
  flex: 1;
}
.info-box-content p {
  margin: 0;
}
.info-box-content p:not(:last-child) {
  margin-bottom: 0.5rem;
}
.info-box-content ul {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.info-box-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.info-box-warning > i {
  color: #f59e0b;
}
.info-box-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.info-box-error > i {
  color: #ef4444;
}

.card-danger {
  border-color: #ef4444;
}
.card-danger .card-header {
  border-bottom-color: rgba(239, 68, 68, 0.2);
}
.card-danger .card-title {
  color: #ef4444;
}

.table-borderless {
  border: none;
  box-shadow: none;
}

.table-cell-label {
  font-weight: 500;
  width: 200px;
}

.table-cell-mono {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.875rem;
}

.table-cell-actions {
  width: 100px;
}

.table-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.code-inline {
  font-size: 0.875rem;
  background: var(--bg-tertiary);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
}

.app-logo-sm {
  width: 24px;
  height: 24px;
  border-radius: 0.25rem;
  object-fit: cover;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stepper-step {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}
.stepper-step-active {
  background: #ef4444;
  color: var(--text-inverse);
}
.stepper-step-completed {
  background: #10b981;
  color: var(--text-inverse);
}
.stepper-step-pending {
  background: var(--border-medium);
  color: var(--text-secondary);
}

.stepper-arrow {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

.avatar-upload-wrapper {
  position: relative;
  cursor: pointer;
  display: block;
}

.avatar-upload-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #3182ce;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  pointer-events: none;
}
.avatar-upload-badge i {
  font-size: 0.75rem;
  color: white;
}
.avatar-upload-badge-alt {
  bottom: -4px;
  right: -4px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
}

.avatar-fallback {
  background: #3182ce;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 0.75rem;
}
.app-info-row-logo {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-info-row-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.app-info-row-content {
  flex: 1;
}
.app-info-row-content-name {
  font-weight: 600;
  font-size: 1rem;
}
.app-info-row-content-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.permissions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.permission-tag {
  padding: 0.25rem 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.verification-code-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.verification-code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  padding: 0;
}
@media (max-width: 390px) {
  .verification-code-input {
    width: 38px;
    height: 46px;
    font-size: 1.25rem;
  }
}

.security-verification-box {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.security-verification-box-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: #166534;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.security-verification-box-code {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: #15803d;
  font-weight: 700;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  letter-spacing: 1px;
}
.security-verification-box-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.warning-notice {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}
.warning-notice p {
  margin: 0;
  font-size: 0.875rem;
  color: #92400e;
}

.image-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed var(--border-medium);
  border-radius: 0.75rem;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 150ms ease;
}
.image-upload-zone:hover {
  border-color: #3182ce;
  background: rgba(49, 130, 206, 0.05);
}
.image-upload-zone-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.image-upload-zone-text {
  color: var(--text-primary);
  font-weight: 500;
}
.image-upload-zone-hint {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.background-preview {
  position: relative;
  margin-bottom: 1rem;
}
.background-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
}
.background-preview-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.scope-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.scope-item-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.scope-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex: 1;
}
.scope-label-disabled {
  cursor: not-allowed;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border-light);
}

.pagination-info {
  padding: 0 1rem;
  color: var(--text-secondary);
}

.connected-app-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
}

.connected-app-logo {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.connected-app-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.connected-app-info {
  flex: 1;
}
.connected-app-info-name {
  font-weight: 600;
}
.connected-app-info-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.connected-app-info-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.notification-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.notification-item.unread {
  background: var(--bg-secondary);
}
.notification-item.unread .notification-title {
  font-weight: 600;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notification-icon-info {
  background: #3182ce;
}
.notification-icon-success {
  background: #10b981;
}
.notification-icon-warning {
  background: #f59e0b;
}
.notification-icon-error {
  background: #ef4444;
}
.notification-icon i {
  color: white;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.notification-title {
  font-weight: 500;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.notification-message {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: pre-line;
}

.security-method-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.security-method-row-icon {
  font-size: 1.25rem;
  color: var(--text-secondary);
}
.security-method-row-content {
  flex: 1;
}
.security-method-row-content h3 {
  margin: 0;
  font-size: 1rem;
}
.security-method-row-content p {
  margin: 0;
  font-size: 0.875rem;
}

.security-key-item td {
  vertical-align: middle;
}
.security-key-item i {
  margin-right: 0.5rem;
}

.icon-left {
  margin-right: 0.5rem;
}
.icon-left-xs {
  margin-right: 0.25rem;
}

.btn-link {
  background: none;
  border: none;
  color: #3182ce;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}
.btn-link:hover {
  color: #1a365d;
}
.btn-link-error {
  color: #ef4444;
}
.btn-link-error:hover {
  color: #eb1515;
}

.modal-sm {
  max-width: 400px;
}

.modal-md {
  max-width: 450px;
}

.modal-lg {
  max-width: 500px;
}

.modal-xl {
  max-width: 600px;
}

.modal-header-success {
  background: linear-gradient(to right, rgba(16, 185, 129, 0.1), transparent);
}

.modal-header-danger {
  background: linear-gradient(to right, rgba(239, 68, 68, 0.1), transparent);
  border-bottom-color: rgba(239, 68, 68, 0.2);
}
.modal-header-danger .modal-title {
  color: #ef4444;
}

.modal-header-primary {
  background: linear-gradient(to right, rgba(49, 130, 206, 0.1), transparent);
}

.modal-footer-center {
  justify-content: center;
}

.confirmation-input {
  text-align: center;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-input-readonly {
  background: var(--bg-tertiary);
  cursor: not-allowed;
}

.code-block {
  background: var(--bg-tertiary);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

.consent-scope-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.consent-scope-granted {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.success-result {
  text-align: center;
  padding: 3rem 1.5rem;
}
.success-result-icon {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1rem;
}
.success-result-title {
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.success-result-message {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.danger-zone {
  margin-top: 2rem;
  padding: 1rem;
  border: 2px solid #ef4444;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom, rgba(239, 68, 68, 0.03), var(--bg-primary));
}
.danger-zone-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}
.danger-zone-icon {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 1.25rem;
}
.danger-zone-title {
  color: #ef4444;
  margin: 0;
}
.danger-zone-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

.admin-detail-images {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.admin-detail-image {
  text-align: center;
}
.admin-detail-image img {
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid var(--border-light);
}
.admin-detail-image-label {
  display: block;
  margin-bottom: 0.5rem;
}

.bug-report-gallery {
  margin-bottom: 1.5rem;
}
.bug-report-gallery-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.bug-report-gallery-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bug-report-gallery-item {
  position: relative;
  width: 120px;
  height: 80px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.bug-report-gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.bug-report-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bug-report-gallery-counter {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.gallery-download-btn {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}
.gallery-download-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  color: white;
}

.bug-report-description {
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.lightbox-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 0.875rem;
}

.bug-report-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .bug-report-meta {
    grid-template-columns: 1fr;
  }
}
.bug-report-meta-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.bug-report-meta-value {
  font-size: 0.875rem;
}

.bug-report-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.bug-report-id {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bug-report-actions {
  display: flex;
  gap: 1rem;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.profile-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.form-icon-prefix {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.form-icon-prefix i {
  color: var(--text-secondary);
}

.website-link-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.website-link-row .form-input {
  flex: 1;
}
.website-link-row .btn {
  padding: 0.5rem 1rem;
}

.loading-container {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

.empty-state-container {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-actions-end {
  justify-content: flex-end;
}
.form-actions-stretch .btn {
  flex: 1;
}

.audit-log-table {
  min-width: 800px;
}

.searchable-select {
  position: relative;
}
.searchable-select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  font-size: 0.75rem;
}
.searchable-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 0.25rem;
}
.searchable-select-option {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 150ms ease;
}
.searchable-select-option:hover, .searchable-select-option.highlighted {
  background: var(--bg-tertiary);
}
.searchable-select-option.selected {
  color: #3182ce;
  font-weight: 500;
}
.searchable-select-group-header {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
}
.searchable-select-no-results {
  padding: 1rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.875rem;
}

.btn-verify {
  min-width: 150px;
}

.callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}
.callout > i {
  flex-shrink: 0;
}
.callout-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.callout-warning > i {
  color: #f59e0b;
}
.callout-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.callout-error > i {
  color: #ef4444;
}
.callout-info {
  background: rgba(49, 130, 206, 0.1);
  border: 1px solid rgba(49, 130, 206, 0.3);
}
.callout-info > i {
  color: #3182ce;
}
.callout-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.callout-success > i {
  color: #10b981;
}

.danger-box {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.75rem;
}
.danger-box-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.danger-box-icon {
  color: #ef4444;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.danger-box-title {
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 0.5rem;
}
.danger-box-list {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.warning-box {
  padding: 1rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  border-radius: 0.75rem;
}
.warning-box p {
  color: #856404;
  margin: 0;
}
.warning-box p.font-medium {
  font-weight: 500;
}

.app-info-box {
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.app-info-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-info-box-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.app-info-box-icon > i {
  color: var(--text-secondary);
  font-size: 1.25rem;
}
.app-info-box-content-name {
  font-weight: 600;
  font-size: 1rem;
}
.app-info-box-content-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.final-confirmation {
  text-align: center;
}
.final-confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.final-confirmation-icon > i {
  color: #ef4444;
  font-size: 2rem;
}
.final-confirmation-title {
  margin: 0 0 0.5rem;
  color: var(--text-heading);
}
.final-confirmation-message {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.permissions-revoked-box {
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 0.75rem;
}
.permissions-revoked-box-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.permissions-revoked-box-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-group-flex {
  display: flex;
  gap: 1rem;
}
.btn-group-flex .btn {
  flex: 1;
}

.consent-app-logo {
  height: 64px;
  margin-bottom: 1rem;
}

.consent-app-name-wrapper {
  display: block;
  text-align: center;
}

.consent-app-name-btn {
  position: relative;
  display: inline-block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.consent-app-name-btn:hover .consent-app-name {
  color: #3182ce;
}
.consent-app-name-btn:hover .consent-app-chevron {
  color: #3182ce;
}

.consent-app-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  transition: color 200ms ease;
  text-wrap: balance;
  word-break: break-word;
}

.consent-app-chevron {
  position: absolute;
  right: 100%;
  top: 0.9rem;
  transform: translateY(-50%);
  margin-right: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform 200ms ease, color 200ms ease;
}
.open .consent-app-chevron {
  transform: translateY(-50%) rotate(90deg);
}

.consent-app-description {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.5;
  animation: slideDown 200ms ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.consent-card {
  padding: 1rem;
}

.missing-data-warning {
  padding: 1rem;
  border-radius: 0.75rem;
}
.missing-data-warning-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
}
.missing-data-warning-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
}
.missing-data-warning-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.missing-data-warning-icon-danger {
  color: #ef4444;
}
.missing-data-warning-icon-warning {
  color: #856404;
}
.missing-data-warning-title {
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}
.missing-data-warning-title-danger {
  color: #721c24;
}
.missing-data-warning-title-warning {
  color: #856404;
}
.missing-data-warning-text {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
}
.missing-data-warning-text-danger {
  color: #721c24;
}
.missing-data-warning-text-warning {
  color: #856404;
}
.missing-data-warning-list {
  margin: 0 0 0.5rem 1.5rem;
  font-size: 0.875rem;
}
.missing-data-warning-list-danger {
  color: #721c24;
}
.missing-data-warning-list-warning {
  color: #856404;
}

.scope-display-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.scope-display-icon {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.scope-display-granted {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.app-icon-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-icon-upload {
  position: relative;
  cursor: pointer;
  display: block;
}
.app-icon-upload-container {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.app-icon-upload-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}
.app-icon-upload-container .placeholder-icon {
  font-size: 2rem;
  color: var(--text-muted);
}
.app-icon-upload-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #3182ce;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  pointer-events: none;
}
.app-icon-upload-badge i {
  font-size: 0.75rem;
  color: white;
}

.app-suspended-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-danger-bg, #fee2e2);
  border: 1px solid #ef4444;
  border-radius: 0.75rem;
}
.app-suspended-banner-icon {
  font-size: 1.5rem;
  color: #ef4444;
  flex-shrink: 0;
}
.app-suspended-banner-title {
  color: #ef4444;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.app-suspended-banner-text {
  margin: 0;
  color: var(--text-secondary);
}

.background-upload-area {
  display: block;
  cursor: pointer;
  border: 2px dashed var(--border-medium);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 150ms ease;
}
.background-upload-area.drag-over {
  border-color: #3182ce;
  background: rgba(49, 130, 206, 0.05);
}
.background-upload-area-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.background-upload-area-text {
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}
.background-upload-area-hint {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.background-upload-area-status {
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

.webhook-secret-display {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.webhook-secret-display-warning {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: #fff3cd;
  color: #856404;
  margin: 0;
}
.webhook-secret-display-code {
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  word-break: break-all;
  user-select: all;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
}
.webhook-secret-display-hidden {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
}

.new-key-display {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  word-break: break-all;
}

.table-container-plain {
  border: none;
  box-shadow: none;
}

.form-input-narrow {
  width: 70px;
}

.btn-remove-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.25rem 0;
  text-decoration: underline;
  color: var(--text-secondary);
}
.btn-remove-link:hover {
  color: var(--text-primary);
}

.btn-flex-1 {
  flex: 1;
}

.help-button-container {
  position: fixed;
  z-index: 1000;
  transition: left 200ms ease, bottom 0ms;
}
.help-button-container.dragging {
  transition: none;
}
.help-button-container.left .help-menu {
  right: auto;
  left: 0;
}

.help-fab {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #3182ce;
  color: white;
  border: none;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  touch-action: none;
}
.help-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(49, 130, 206, 0.5);
}
.help-fab:active {
  cursor: grabbing;
}
.help-fab.open {
  background: var(--text-secondary);
}

.help-menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: helpMenuSlideUp 150ms ease-out;
}
.help-menu.down {
  bottom: auto;
  top: 60px;
  animation: helpMenuSlideDown 150ms ease-out;
}

@keyframes helpMenuSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes helpMenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.help-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  color: var(--text-primary);
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 150ms ease;
}
.help-menu-item:hover {
  background: var(--bg-secondary);
  border-color: #3182ce;
}
.help-menu-item i {
  width: 16px;
  text-align: center;
  color: var(--text-secondary);
}
.help-menu-item-static {
  cursor: default;
  user-select: text;
}
.help-menu-item-static:hover {
  background: var(--bg-primary);
  border-color: var(--border-light);
}
.help-menu-item-static span {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.75rem;
}

.bulk-email-editor-group {
  display: flex;
  flex-direction: column;
}

.bulk-email-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
@media (max-width: 640px) {
  .bulk-email-actions {
    flex-direction: column;
    gap: 1rem;
  }
}
.bulk-email-actions-left {
  display: flex;
  gap: 0.5rem;
}
.bulk-email-actions-right {
  display: flex;
  gap: 0.5rem;
}

.toolbar-dropdown {
  position: relative;
}
.toolbar-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  margin-top: 0.25rem;
}
.toolbar-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 150ms ease;
}
.toolbar-dropdown-menu button:hover {
  background: var(--bg-tertiary);
}
.toolbar-dropdown-menu button:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
}
.toolbar-dropdown-menu button:last-child {
  border-radius: 0 0 0.5rem 0.5rem;
}
.toolbar-dropdown:hover .toolbar-dropdown-menu, .toolbar-dropdown:focus-within .toolbar-dropdown-menu {
  display: block;
}

.email-preview-container {
  min-height: 300px;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  overflow: hidden;
}

.email-preview-info {
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.email-preview-iframe {
  width: 100%;
  height: 500px;
  border: none;
  background: white;
}

.preview-placeholder {
  color: var(--text-muted);
  font-style: italic;
  padding: 1.5rem;
  text-align: center;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notice-item {
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--bg-primary);
  transition: border-color 150ms ease;
}
.notice-item:hover {
  border-color: var(--border-medium);
}
.notice-item-current {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}
.notice-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.notice-item-meta {
  display: flex;
  align-items: center;
}
.notice-item-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.notice-item-preview pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
  font-family: inherit;
  margin: 0;
}

.notice-modal-body {
  padding: 0;
}

.notice-content {
  max-height: 60vh;
  overflow-y: auto;
  padding: 1.5rem;
  line-height: 1.7;
  color: var(--text-primary);
}
.notice-content p {
  margin-bottom: 1rem;
}
.notice-content p:last-child {
  margin-bottom: 0;
}
.notice-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}
.notice-content h2:first-child {
  margin-top: 0;
}
.notice-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}
.notice-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-heading);
}
.notice-content ul, .notice-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.notice-content li {
  margin-bottom: 0.25rem;
}
.notice-content hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.5rem 0;
}
.notice-content a {
  color: #3182ce;
  text-decoration: none;
}
.notice-content a:hover {
  text-decoration: underline;
}
.notice-content strong {
  font-weight: 600;
  color: var(--text-heading);
}
.notice-content em {
  font-style: italic;
}
.notice-content code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.9em;
}

.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-primary);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--glow-primary);
  padding: 3rem;
}
@media (max-width: 768px) {
  .auth-card {
    padding: 2rem;
  }
}

.auth-card-header {
  position: relative;
  margin-bottom: 1.5rem;
}
.auth-card-header .btn {
  position: absolute;
  top: 0;
  right: 0;
}

.auth-logo {
  display: flex;
  justify-content: center;
}
.auth-logo img {
  height: 80px;
  width: auto;
  filter: var(--logo-filter);
}

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.auth-footer + .auth-footer {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.auth-hint {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-layout.has-background {
  background: var(--bg-image) center/cover no-repeat fixed;
}
.auth-layout.has-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 0;
}
.auth-layout.has-background .auth-card {
  position: relative;
  z-index: 1;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-light);
  box-shadow: var(--glow-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
}
@media (max-width: 768px) {
  .sidebar {
    left: -260px;
    transition: left 250ms ease;
  }
  .sidebar.open {
    left: 0;
    box-shadow: var(--glow-primary);
  }
}
.sidebar-header {
  flex-shrink: 0;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-logo img {
  height: 40px;
  width: auto;
  filter: var(--logo-filter);
}
.sidebar-logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-heading);
}
.sidebar-nav {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}
.sidebar-footer {
  flex-shrink: 0;
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
}
@media (max-width: 768px) {
  .sidebar-footer {
    display: none;
  }
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
}
.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-section {
  margin-bottom: 2rem;
}
.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 150ms ease;
  margin-bottom: 0.25rem;
}
.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.nav-item.active {
  background: rgba(49, 130, 206, 0.1);
  color: #3182ce;
  box-shadow: inset 0 0 0 1px rgba(49, 130, 206, 0.3), var(--glow-subtle);
}
.nav-item i {
  width: 1.25rem;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.4rem;
  border-radius: 9999px;
  min-width: 1.25rem;
  text-align: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 150ms ease;
}
.user-menu:hover {
  background: var(--bg-tertiary);
}
.user-menu .btn-icon.btn-ghost {
  background: var(--bg-tertiary);
}
.user-menu .btn-icon.btn-ghost:hover:not(:disabled) {
  background: var(--border-medium);
}

.user-profile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.user-profile-link:hover {
  color: inherit;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #3182ce;
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--glow-primary);
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-avatar.user-avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-header {
  display: none;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }
}

.hamburger-btn {
  flex-shrink: 0;
}

.mobile-logo {
  flex: 1;
  display: flex;
  justify-content: center;
}
.mobile-logo img {
  height: 32px;
  width: auto;
  filter: var(--logo-filter);
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 260px;
}
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
}

.page-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-heading);
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.page-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .page-content {
    padding: 1.5rem;
  }
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: #3182ce;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: #10b981;
}

.text-error {
  color: #ef4444;
}

.text-warning {
  color: #f59e0b;
}

.text-heading {
  color: var(--text-heading);
}

.text-inverse {
  color: var(--text-inverse);
}

.text-link-warning {
  color: var(--color-warning-dark, #856404);
  text-decoration: underline;
}
.text-link-warning:hover {
  color: var(--color-warning-darker, #6d5302);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-mono {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.tracking-wider {
  letter-spacing: 0.1em;
}

.tracking-widest {
  letter-spacing: 0.2em;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.break-all {
  word-break: break-all;
}

.break-word {
  word-break: break-word;
  overflow-wrap: break-word;
}

.mt-0 {
  margin-top: 0;
}

.mt-xs {
  margin-top: 0.25rem;
}

.mt-sm {
  margin-top: 0.5rem;
}

.mt-md {
  margin-top: 1rem;
}

.mt-lg {
  margin-top: 1.5rem;
}

.mt-xl {
  margin-top: 2rem;
}

.mt-2xl {
  margin-top: 3rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-xs {
  margin-bottom: 0.25rem;
}

.mb-sm {
  margin-bottom: 0.5rem;
}

.mb-md {
  margin-bottom: 1rem;
}

.mb-lg {
  margin-bottom: 1.5rem;
}

.mb-xl {
  margin-bottom: 2rem;
}

.mb-2xl {
  margin-bottom: 3rem;
}

.ml-0 {
  margin-left: 0;
}

.ml-xs {
  margin-left: 0.25rem;
}

.ml-sm {
  margin-left: 0.5rem;
}

.ml-md {
  margin-left: 1rem;
}

.ml-lg {
  margin-left: 1.5rem;
}

.ml-auto {
  margin-left: auto;
}

.mr-0 {
  margin-right: 0;
}

.mr-xs {
  margin-right: 0.25rem;
}

.mr-sm {
  margin-right: 0.5rem;
}

.mr-md {
  margin-right: 1rem;
}

.mx-xs {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-sm {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-md {
  margin-left: 1rem;
  margin-right: 1rem;
}

.p-0 {
  padding: 0;
}

.p-xs {
  padding: 0.25rem;
}

.p-sm {
  padding: 0.5rem;
}

.p-md {
  padding: 1rem;
}

.p-lg {
  padding: 1.5rem;
}

.p-xl {
  padding: 2rem;
}

.p-2xl {
  padding: 3rem;
}

.px-md {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-lg {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-xs {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-sm {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-md {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-lg {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.pt-md {
  padding-top: 1rem;
}

.pt-lg {
  padding-top: 1.5rem;
}

.pb-md {
  padding-bottom: 1rem;
}

.pb-lg {
  padding-bottom: 1.5rem;
}

.pl-lg {
  padding-left: 1.5rem;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-stretch {
  align-items: stretch;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.flex-1 {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-grow {
  flex-grow: 1;
}

.gap-xs {
  gap: 0.25rem;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.gap-xl {
  gap: 2rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.min-w-0 {
  min-width: 0;
}

.h-full {
  height: 100%;
}

.h-auto {
  height: auto;
}

.min-h-0 {
  min-height: 0;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

@media (max-width: 640px) {
  .hidden-mobile {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.border {
  border: 1px solid var(--border-light);
}

.border-0 {
  border: none;
}

.border-top {
  border-top: 1px solid var(--border-light);
}

.border-bottom {
  border-bottom: 1px solid var(--border-light);
}

.rounded {
  border-radius: 0.5rem;
}

.rounded-sm {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.75rem;
}

.rounded-xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.bg-primary {
  background: var(--bg-primary);
}

.bg-secondary {
  background: var(--bg-secondary);
}

.bg-tertiary {
  background: var(--bg-tertiary);
}

.bg-transparent {
  background: transparent;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-move {
  cursor: move;
}

.pointer-events-none {
  pointer-events: none;
}

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-100 {
  opacity: 1;
}

.z-0 {
  z-index: 0;
}

.z-1 {
  z-index: 1;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.z-100 {
  z-index: 100;
}

.z-modal {
  z-index: 1000;
}

.z-toast {
  z-index: 9999;
}

.no-underline {
  text-decoration: none;
}

.underline {
  text-decoration: underline;
}

.select-all {
  user-select: all;
}

.select-none {
  user-select: none;
}

.password-mail-reset-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 887px) {
  .password-mail-reset-grid {
    grid-template-columns: 1fr 1fr;
  }
}
