:root {
  --primary: #2f7d5b;
  --primary-hover: #276a4d;
  --primary-soft: #eef7f2;
  --primary-border: #cbe2d5;
  --secondary: #0c2c6c;
  --secondary-hover: #09245a;
  --secondary-soft: #eef3fb;
  --secondary-border: #cbd7eb;
  --background: #f7f9fc;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1e283d;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --success: #2f7d5b;
  --success-soft: #eef7f2;
  --warning: #ffaf00;
  --warning-soft: #fff8e5;
  --danger: #f95f53;
  --danger-soft: #fff0ef;
  --info: #52cdff;
  --focus-ring: rgba(47, 125, 91, 0.20);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-popover: 0 18px 45px rgba(15, 23, 42, 0.14);
  --navbar-height: 64px;
  --sidebar-width: 228px;
  --sidebar-collapsed-width: 68px;
}

html {
  color-scheme: light;
  background: var(--background);
}

body {
  color: var(--text);
  background: var(--background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.arsuve-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.arsuve-icon-sm {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

.arsuve-icon-lg {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

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

.arsuve-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.arsuve-button:hover {
  transform: translateY(-1px);
}

.arsuve-button-primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(47, 125, 91, 0.16);
}

.arsuve-button-primary:hover,
.arsuve-button-primary:focus {
  color: #fff;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.arsuve-button-secondary {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--border-strong);
}

.arsuve-button-secondary:hover,
.arsuve-button-secondary:focus {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.arsuve-toast-host {
  position: fixed;
  top: calc(var(--navbar-height) + 14px);
  right: 18px;
  z-index: 110000;
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

body.arsuve-auth-page .arsuve-toast-host,
body.arsuve-auth-account-page .arsuve-toast-host,
body.arsuve-first-login-page .arsuve-toast-host {
  top: 18px;
}

.arsuve-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: start;
  padding: 13px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  animation: arsuve-toast-in 0.22s ease both;
}

.arsuve-toast.is-leaving {
  animation: arsuve-toast-out 0.2s ease both;
}

.arsuve-toast[data-type="success"] { border-left-color: var(--success); }
.arsuve-toast[data-type="warning"] { border-left-color: var(--warning); }
.arsuve-toast[data-type="error"] { border-left-color: var(--danger); }
.arsuve-toast[data-type="info"] { border-left-color: var(--primary); }

.arsuve-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
}

.arsuve-toast[data-type="success"] .arsuve-toast-icon { color: var(--success); background: var(--success-soft); }
.arsuve-toast[data-type="warning"] .arsuve-toast-icon { color: #a66f00; background: var(--warning-soft); }
.arsuve-toast[data-type="error"] .arsuve-toast-icon { color: var(--danger); background: var(--danger-soft); }

.arsuve-toast-copy {
  min-width: 0;
}

.arsuve-toast-title {
  margin: 1px 0 3px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.arsuve-toast-message {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.arsuve-toast-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}

.arsuve-toast-close:hover {
  color: var(--text);
  background: var(--surface-muted);
}

@keyframes arsuve-toast-in {
  from { opacity: 0; transform: translate3d(16px, -6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes arsuve-toast-out {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(18px, 0, 0); }
}

@media (max-width: 575px) {
  .arsuve-toast-host {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
