:root {
  --paper: #f4f1eb;
  --paper-2: #ece7dd;
  --surface: #fbf9f5;
  --surface-strong: #f7f2e9;
  --ink: #14120f;
  --muted: #6f6a61;
  --line: #d8d1c4;
  --line-strong: #bfb5a4;
  --brass: #8a6a3f;
  --brass-soft: #b08a55;
  --ok: #3f6548;
  --danger: #8b3a32;
  --shadow: 0 12px 32px rgba(20, 18, 15, 0.06);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: #2b2620;
  border-color: #2b2620;
}

.btn--brass {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}

.btn--brass:hover {
  background: #765832;
  border-color: #765832;
}

.btn--line {
  border-color: var(--line-strong);
  background: transparent;
}

.btn--line:hover {
  border-color: var(--ink);
}

.btn--danger {
  border-color: #cbb7b1;
  color: var(--danger);
}

.btn--danger:hover {
  background: #f5e8e5;
  border-color: var(--danger);
}

.btn--text {
  padding-right: 0;
  padding-left: 0;
  border: 0;
  color: var(--muted);
}

.btn--text:hover {
  color: var(--ink);
}

.btn--small {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 10px;
}

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

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

.field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(138, 106, 63, 0.12);
}

.field--wide {
  grid-column: span 2;
}

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

.is-login {
  background:
    radial-gradient(circle at 14% 10%, rgba(176, 138, 85, 0.14), transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(138, 106, 63, 0.09), transparent 34%),
    var(--paper);
}

.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 36px 20px;
}

.login__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
  text-align: center;
}

.brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand__sub {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.login__card {
  width: 100%;
  max-width: 430px;
  padding: 38px;
  border: 1px solid var(--line);
  background: rgba(251, 249, 245, 0.9);
  box-shadow: var(--shadow);
}

.login__card h1 {
  margin-bottom: 12px;
  font-size: 36px;
}

.login__intro {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.login__form .btn {
  margin-top: 6px;
}

.login__note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
}

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

.login__back:hover {
  color: var(--ink);
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 235, 0.94);
  backdrop-filter: blur(12px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 15px 32px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}

.brand .brand__name {
  font-size: 13px;
}

.brand .brand__sub {
  font-size: 15px;
}

.mainnav {
  display: flex;
  gap: 24px;
  margin-left: 18px;
}

.mainnav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mainnav a:hover,
.mainnav a.is-active {
  border-bottom-color: var(--brass);
  color: var(--ink);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.logout {
  margin: 0;
}

/* ---------- page ---------- */

.page {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 30px 32px 50px;
}

.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.weekmeta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
}

.weekmeta__week {
  color: var(--brass);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.weekmeta__year {
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.weeknav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weeknav__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 18px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.weeknav__arrow:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-block {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0 0 16px;
  background: var(--brass);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#block {
  scroll-margin-top: 96px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stat__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat__value {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

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

.flash {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-size: 13px;
}

.flash--ok {
  border-color: #b9cdb9;
  background: #edf4ec;
  color: #2f5a3a;
}

.flash--error {
  border-color: #d9bdb8;
  background: #f8ece9;
  color: var(--danger);
}

/* ---------- panels ---------- */

.panel {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel--accent {
  background: var(--surface-strong);
}

.panel--detail {
  border-left: 3px solid var(--brass);
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel__head h2 {
  font-size: 26px;
}

.panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.panel__close:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.formgrid {
  display: grid;
  grid-template-columns: 0.8fr 0.7fr 0.7fr 1.6fr;
  gap: 14px;
  align-items: end;
}

.formgrid__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.detailgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}

.detailgrid > div {
  min-width: 0;
}

.detailgrid__label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detailgrid strong {
  font-weight: 500;
}

.detailgrid a {
  border-bottom: 1px solid var(--brass);
}

.detailgrid__wide {
  grid-column: 1 / -1;
}

.detailmessage {
  max-width: 820px;
  margin: 0;
  color: #332e28;
  font-size: 14px;
  line-height: 1.65;
}

.detailactions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detailactions form {
  margin: 0;
}

/* ---------- calendar ---------- */

.calendar-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.calendar-card__head h2 {
  font-size: 24px;
}

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

.calendar-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.calendar {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.calendar th,
.calendar td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar tr > *:last-child {
  border-right: 0;
}

.calendar tbody tr:last-child > * {
  border-bottom: 0;
}

.calendar thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 11px 10px 10px;
  background: var(--paper-2);
  text-align: left;
  vertical-align: top;
}

.calendar thead th.time {
  left: 0;
  z-index: 6;
  width: 68px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calendar .day {
  width: 14.2%;
}

.day__weekday {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calendar .day strong {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.calendar .day small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar .day.is-today {
  background: #efe3d1;
}

.calendar .day.is-today strong {
  color: var(--brass);
}

.calendar .day.is-off {
  background: #f1ede6;
}

.calendar .day.is-off strong {
  color: var(--line-strong);
}

.calendar tbody th.time {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 68px;
  padding: 8px 8px;
  background: var(--paper-2);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: right;
  vertical-align: top;
}

.calendar td {
  height: 78px;
  padding: 5px;
  vertical-align: top;
  background: var(--surface);
}

.calendar td.is-off {
  background: #f4f0e9;
}

.calendar td.is-past {
  background: #f8f5ef;
}

.calendar td.is-past .event {
  opacity: 0.72;
}

.off {
  display: block;
  padding-top: 12px;
  color: #c9c0b1;
  font-size: 11px;
  text-align: center;
}

.event {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 66px;
  padding: 7px 8px 6px 10px;
  border-left: 2px solid var(--brass);
  background: #f6efe4;
  color: var(--ink);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.event:hover {
  background: #f1e6d5;
}

.event__time {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.event__name {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event__service {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event .badge {
  align-self: flex-start;
  margin-top: 2px;
}

.event--confirmed {
  border-left-color: var(--ok);
  background: #edf3ec;
}

.event--confirmed:hover {
  background: #e6efe4;
}

.event--pending {
  border-left-color: var(--brass);
  background: #f6efe4;
}

.event--no_show {
  border-left-color: #777;
  background: #efefed;
}

.event--block {
  min-height: 66px;
  border-left-color: #a8a094;
  background:
    repeating-linear-gradient(-45deg, rgba(168, 160, 148, 0.08), rgba(168, 160, 148, 0.08) 4px, transparent 4px, transparent 9px),
    #f0ece5;
  color: #5d574f;
}

.event--block .event__name {
  color: #5d574f;
  font-weight: 500;
}

.slot-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  border: 1px dashed transparent;
  color: var(--line-strong);
  font-size: 19px;
  opacity: 0.35;
  transition: opacity 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.calendar td:hover .slot-add {
  border-color: var(--line-strong);
  color: var(--brass);
  opacity: 1;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--pending {
  background: #f3e7d4;
  color: #75552b;
}

.badge--confirmed {
  background: #dfeade;
  color: #315d3b;
}

.badge--cancelled {
  background: #f0dfdb;
  color: #7b3b33;
}

.badge--no_show {
  background: #e6e4df;
  color: #5e5951;
}

/* ---------- blocks ---------- */

.blocklist {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blocklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.blocklist li:first-child {
  border-top: 0;
}

.blocklist__date {
  width: 54px;
  color: var(--muted);
  font-size: 11px;
}

.blocklist__time {
  width: 100px;
  font-size: 12px;
  font-weight: 500;
}

.blocklist__reason {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
}

.blocklist form {
  margin: 0;
}

/* ---------- list ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filters a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters a:hover,
.filters a.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.tablepanel {
  padding: 0;
}

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

.list {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.list th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.list td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.list tbody tr:last-child td {
  border-bottom: 0;
}

.list tbody tr:hover {
  background: #f8f4ed;
}

.list a:not(.table-link) {
  border-bottom: 1px solid var(--line-strong);
}

.table-link {
  color: var(--brass);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-link:hover {
  color: var(--ink);
}

.empty {
  padding: 30px !important;
  color: var(--muted);
  text-align: center;
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 22px 32px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot a {
  border-bottom: 1px solid var(--line-strong);
}

.foot a:hover {
  color: var(--ink);
}

.foot__dot {
  color: var(--line-strong);
}

/* ---------- mobile agenda ---------- */

.agenda {
  display: none;
}

.agenda__day {
  padding: 0 14px;
  border-top: 1px solid var(--line);
}

.agenda__day:first-child {
  border-top: 0;
}

.agenda__day.is-today {
  background: #f7efe3;
}

.agenda__head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 0 8px;
}

.agenda__weekday {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agenda__head strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.agenda__head small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agenda__block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  border: 1px solid var(--line-strong);
  color: var(--brass);
  font-size: 17px;
  line-height: 1;
}

.agenda__block:hover {
  border-color: var(--brass);
  background: var(--brass);
  color: #fff;
}

.agenda__empty {
  margin: 0;
  padding: 4px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.agenda__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border-left: 2px solid var(--brass);
  background: #f6efe4;
}

.agenda__item:last-child {
  margin-bottom: 14px;
}

.agenda__item--confirmed {
  border-left-color: var(--ok);
  background: #edf3ec;
}

.agenda__item--block {
  border-left-color: #a8a094;
  background: #f0ece5;
}

.agenda__time {
  width: 44px;
  flex: 0 0 44px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.agenda__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.agenda__body strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda__body small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda__item .badge {
  flex: 0 0 auto;
}

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

@media (max-width: 900px) {
  .topbar__inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 20px;
  }

  .mainnav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
  }

  .topbar__actions {
    gap: 12px;
  }

  .page {
    padding: 22px 20px 40px;
  }

  .pagehead {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .stats {
    gap: 8px;
  }

  .stat {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 12px;
  }

  .stat__value {
    font-size: 26px;
  }

  .stat__hint {
    width: 100%;
  }

  .formgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detailgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand .brand__name {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .brand .brand__sub {
    font-size: 13px;
  }

  .topbar__actions .btn--brass {
    display: none;
  }

  .mobile-block {
    display: flex;
  }

  .topbar__actions {
    margin-left: auto;
  }

  .logout .btn {
    font-size: 9px;
  }

  .page {
    padding: 18px 14px 34px;
  }

  h1 {
    font-size: 31px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    align-items: baseline;
  }

  .stat__hint {
    width: auto;
    margin-left: auto;
  }

  .calendar-card__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
  }

  .hint {
    font-size: 10px;
  }

  .calendar {
    min-width: 900px;
  }

  .agenda {
    display: block;
  }

  .calendar-scroll {
    display: none;
  }

  .calendar-card__head .hint {
    display: none;
  }

  .panel {
    padding: 18px;
  }

  .formgrid {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

  .detailgrid {
    grid-template-columns: 1fr;
  }

  .detailgrid__wide {
    grid-column: auto;
  }

  .detailactions {
    flex-direction: column;
    align-items: stretch;
  }

  .detailactions form,
  .detailactions .btn {
    width: 100%;
  }

  .blocklist li {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .blocklist__reason {
    flex-basis: 100%;
  }

  .login__card {
    padding: 28px 22px;
  }

  .login__card h1 {
    font-size: 31px;
  }

  .foot {
    padding: 18px 14px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
