/* SAKHINET cloud admin — shares the cream, ink and terracotta language. */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(246, 222, 198, 0.5), transparent 62%),
    radial-gradient(900px 620px at -8% 32%, rgba(255, 252, 247, 0.9), transparent 64%),
    var(--cream);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

.accent {
  color: var(--terracotta);
}

.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--ink-soft);
}

.boot__mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(150deg, #d7681a, var(--terracotta) 55%, #a84b08);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 31px;
  box-shadow: 0 18px 42px rgba(158, 71, 7, 0.3);
  animation: breathe 2.4s ease-in-out infinite;
}

.boot__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- shell ---------------------------------------------------------------- */

.app {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100vh;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(252, 246, 237, 0.86)),
    var(--paper-2);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px;
}

.brand__tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(150deg, #d7681a, var(--terracotta) 58%, #a84b08);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 23px;
  box-shadow: 0 10px 22px rgba(158, 71, 7, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand__name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand__sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav__label {
  padding: 0 12px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav__item:hover {
  background: rgba(244, 237, 226, 0.8);
  color: var(--ink);
}

.nav__item--active {
  background: var(--peach-soft);
  border-color: rgba(194, 90, 11, 0.16);
  color: var(--terracotta-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav__item svg {
  flex: none;
}

.nav__badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(194, 90, 11, 0.12);
  color: var(--terracotta-deep);
  font-size: 10.5px;
  font-weight: 700;
}

.sidebar__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
}

.who__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--peach);
  color: var(--terracotta-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.who__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.who__role {
  font-size: 11px;
  color: var(--muted);
}

.who__out {
  margin-left: auto;
  flex: none;
}

.main {
  min-width: 0;
  padding: 30px clamp(18px, 3vw, 44px) 56px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.page-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.page-title {
  margin-top: 4px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.page-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* --- cards and stats ------------------------------------------------------ */

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(33, 26, 20, 0.03), 0 22px 50px -38px rgba(33, 26, 20, 0.35);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.card__title {
  font-size: 15px;
  font-weight: 650;
}

.card__hint {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.card__body {
  padding: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--paper), var(--paper-2));
}

.stat::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 222, 198, 0.55), transparent);
}

.stat__label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat__value {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat__hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.stat--accent {
  background: linear-gradient(150deg, #fff7ee, var(--peach-soft));
  border-color: rgba(194, 90, 11, 0.2);
}

.stat--accent .stat__value {
  color: var(--terracotta-deep);
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* --- toolbar and forms ---------------------------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 246, 237, 0.55);
}

.toolbar__spacer {
  flex: 1;
}

.search {
  position: relative;
  flex: 1 1 240px;
  max-width: 380px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search .input {
  padding-left: 36px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field__label {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-soft);
}

.field__hint {
  font-size: 11.5px;
  color: var(--muted);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(176, 68, 46, 0.22);
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12.5px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(194, 90, 11, 0.55);
  box-shadow: 0 0 0 3px rgba(194, 90, 11, 0.12);
}

.input::placeholder {
  color: #a89d90;
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  background: var(--sunken);
  color: var(--muted);
}

.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238A8074' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.select--compact {
  width: auto;
  min-width: 140px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .field--wide {
  grid-column: 1 / -1;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
}

.check input {
  accent-color: var(--terracotta);
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: linear-gradient(160deg, #cf6512, var(--terracotta));
  color: var(--paper);
  box-shadow: 0 10px 22px -12px rgba(158, 71, 7, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(160deg, var(--terracotta), var(--terracotta-deep));
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
}

.btn--ghost:hover:not(:disabled) {
  border-color: rgba(194, 90, 11, 0.35);
  color: var(--ink);
  background: var(--paper-2);
}

.btn--soft {
  background: var(--peach-soft);
  color: var(--terracotta-deep);
  border-color: rgba(194, 90, 11, 0.14);
}

.btn--soft:hover:not(:disabled) {
  background: var(--peach);
}

.btn--danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(176, 68, 46, 0.18);
}

.btn--danger:hover:not(:disabled) {
  background: #f3d6cf;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 46px;
  font-size: 14px;
  border-radius: 12px;
}

.btn--sm {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper-2);
}

.icon-btn--danger:hover {
  color: var(--danger);
  border-color: rgba(176, 68, 46, 0.3);
  background: var(--danger-soft);
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* --- tables --------------------------------------------------------------- */

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

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th {
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 246, 237, 0.7);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: left;
}

td {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: rgba(244, 237, 226, 0.42);
}

tbody tr:first-child td {
  border-top: none;
}

td.wrap {
  white-space: normal;
  min-width: 220px;
}

td.mono,
.mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.person__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--sunken);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.person__name {
  font-weight: 600;
  color: var(--ink);
}

.person__login {
  font-size: 11.5px;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge--role {
  background: var(--sunken);
  color: var(--ink-soft);
}

.badge--admin {
  background: var(--peach-soft);
  color: var(--terracotta-deep);
}

.badge--supervisor {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge--active {
  background: var(--success-soft);
  color: var(--success);
}

.badge--inactive {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge--pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge--delivered {
  background: var(--success-soft);
  color: var(--success);
}

.badge--failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge--sending {
  background: var(--peach-soft);
  color: var(--terracotta-deep);
}

.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
}

.empty strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.skeleton {
  height: 46px;
  margin: 8px 20px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--sunken) 25%, var(--paper-2) 50%, var(--sunken) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

/* --- modal ---------------------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(33, 26, 20, 0.36);
  backdrop-filter: blur(5px);
  animation: fade-in 180ms ease both;
}

.modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 80px -30px rgba(33, 26, 20, 0.5);
  animation: rise 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.modal--wide {
  width: min(760px, 100%);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.modal__title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.modal__sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.modal__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: rgba(252, 246, 237, 0.5);
  border-radius: 0 0 22px 22px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
}

.meta__label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta__value {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 550;
  word-break: break-word;
}

.secret-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed rgba(194, 90, 11, 0.4);
  border-radius: 10px;
  background: var(--warning-soft);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.divider {
  height: 1px;
  background: var(--line);
}

/* --- login ---------------------------------------------------------------- */

.login {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
}

.login__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 56px);
  background:
    radial-gradient(700px 520px at 72% 24%, rgba(194, 90, 11, 0.28), transparent 66%),
    linear-gradient(160deg, #2b2118, #211a14 58%, #1a140f);
  color: var(--paper);
}

.login__orb {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 236, 214, 0.5), transparent 45%),
    radial-gradient(circle at 62% 60%, rgba(194, 90, 11, 0.6), transparent 58%),
    rgba(246, 222, 198, 0.08);
  filter: blur(2px);
  animation: float 9s ease-in-out infinite;
}

.login__brand > *:not(.login__orb) {
  position: relative;
  z-index: 1;
}

.login__brand .brand__name {
  color: var(--paper);
}

.login__brand .brand__sub {
  color: rgba(250, 245, 236, 0.55);
}

.login__copy {
  margin-top: auto;
  max-width: 440px;
}

.login__headline {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.login__headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #f0c49c;
}

.login__lede {
  margin-top: 16px;
  max-width: 38ch;
  color: rgba(250, 245, 236, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.login__points {
  display: grid;
  gap: 11px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.login__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(250, 245, 236, 0.78);
  font-size: 12.5px;
}

.login__points span.dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 9px;
  background: rgba(246, 222, 198, 0.12);
  color: #f0c49c;
}

.login__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(250, 245, 236, 0.42);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.login__panel {
  display: grid;
  place-items: center;
  padding: 36px 24px;
}

.login__form-wrap {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: rise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.login__title {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.login__sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.login__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 42px;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.password-field__toggle:hover {
  background: var(--sunken);
  color: var(--ink);
}

.login__secure {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  color: var(--muted);
  font-size: 11.5px;
}

.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(183, 121, 31, 0.25);
  border-radius: 14px;
  background: var(--warning-soft);
  color: #7a5214;
  font-size: 13px;
}

.banner__action {
  margin-left: auto;
  flex: none;
}

/* --- toast ---------------------------------------------------------------- */

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(380px, calc(100vw - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 42px -22px rgba(33, 26, 20, 0.5);
  font-size: 12.5px;
  animation: rise 200ms ease both;
}

.toast--success {
  border-color: rgba(47, 125, 91, 0.28);
  background: var(--success-soft);
  color: #205f43;
}

.toast--error {
  border-color: rgba(176, 68, 46, 0.28);
  background: var(--danger-soft);
  color: #8a3324;
}

/* --- misc ----------------------------------------------------------------- */

.shake {
  animation: shake 360ms ease;
}

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

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

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.86;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, -22px, 0) scale(1.05);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1120px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar {
    display: none;
  }
  .brand {
    padding: 0;
  }
  .brand__tile {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 20px;
  }
  .brand__name,
  .brand__sub,
  .nav__label,
  .who__name,
  .who__role {
    display: none;
  }
  .nav {
    flex-direction: row;
  }
  .nav__item {
    width: auto;
    padding: 8px 11px;
  }
  .nav__badge {
    display: none;
  }
  .sidebar__foot {
    margin-top: 0;
    margin-left: auto;
    padding: 0;
    border: none;
  }
  .who {
    padding: 0;
  }
  .main {
    padding: 22px 16px 44px;
  }
  .login {
    grid-template-columns: minmax(0, 1fr);
  }
  .login__brand {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar__actions {
    width: 100%;
  }
  .stats,
  .form-grid,
  .meta-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .toolbar {
    padding: 12px;
  }
  .search {
    max-width: none;
  }
  th,
  td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .modal__foot {
    flex-wrap: wrap;
  }
  .modal__foot .btn {
    flex: 1;
  }
  .login__panel {
    padding: 24px 18px;
  }
}
