:root {
  --ink: #243b39;
  --muted: #70817e;
  --brand: #126660;
  --wash: #e9f3ef;
  --paper: #fff;
  --line: #dfe7e3;
  --bg: #f5f7f4;
  --radius: 20px;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #52a695;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 17px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
svg.icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.brand img {
  width: 37px;
  height: 37px;
}
.btn,
.primary,
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  min-height: 43px;
}
.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.btn:hover,
.iconbtn:hover {
  background: var(--wash);
}
.primary:hover {
  filter: brightness(1.08);
}
.iconbtn {
  padding: 9px;
  min-width: 40px;
  min-height: 40px;
}
.danger {
  color: #b34444;
  background: #fff7f5;
  border-color: #efd9d5;
}
.textbtn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  cursor: pointer;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--brand);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--wash);
  color: var(--brand);
}
.pill.pending {
  background: #fff2da;
  color: #9c6713;
}
.pill.cancelled {
  background: #f4e8e8;
  color: #a25a5a;
}
.pill.completed {
  background: #e9edf3;
  color: #67758b;
}
.avatar {
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: var(--wash);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.flex {
  display: flex;
  gap: 12px;
  align-items: center;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.page-title p {
  color: var(--muted);
  margin-top: 7px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.boot {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}
.boot span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 8px;
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 25px 17px;
  border-right: 1px solid var(--line);
  background: #fbfcfa;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.orgname {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0 2px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 550;
}
.nav button.active {
  background: var(--wash);
  color: var(--brand);
  font-weight: 700;
}
.sidebar footer {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  padding: 12px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 82px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.topbar .who {
  display: flex;
  gap: 10px;
  align-items: center;
}
.who strong {
  display: block;
  font-size: 13px;
}
.who small {
  display: block;
}
.topbar .mobile-menu {
  display: none;
}
.content {
  padding: 30px 32px 70px;
  max-width: 1750px;
  margin: auto;
}
.sync {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sync:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #409d7a;
  border-radius: 50%;
}
.demo-note {
  border-radius: 12px;
  background: #edf3f0;
  font-size: 12px;
  color: #66817a;
  padding: 10px 14px;
  margin-bottom: 21px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  padding: 15px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.stat b {
  font-size: 26px;
  display: block;
  letter-spacing: -1px;
}
.stat small {
  font-size: 12px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.day {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 2px;
  display: flex;
  gap: 6px;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  min-width: 0;
}
.day b {
  font-size: 22px;
  color: var(--ink);
}
.day span {
  font-size: 11px;
}
.day.active {
  border-color: var(--brand);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.day.active b {
  color: var(--brand);
}
.datebar {
  margin-bottom: 18px;
}
.datebar h2 {
  font-size: 19px;
  text-transform: capitalize;
}
.datebar .btn {
  padding: 8px 12px;
}
.journal-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  margin-top: 20px;
  max-height: 70vh;
}
.journal {
  display: grid;
  grid-template-columns: 55px repeat(var(--cols), minmax(205px, 1fr));
  min-width: 720px;
}
.timehead,
.staffhead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  min-height: 76px;
}
.staffhead {
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.staffhead b {
  font-size: 13px;
}
.staffhead small {
  display: block;
  font-size: 11px;
}
.timehead {
  display: grid;
  place-items: center;
  left: 0;
  z-index: 4;
}
.times {
  height: 960px;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
}
.times span {
  display: block;
  height: 80px;
  font-size: 10px;
  color: var(--muted);
  padding: 3px 5px;
  border-top: 1px solid #edf0ed;
}
.track {
  position: relative;
  height: 960px;
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    #fff 0,
    #fff 39px,
    #f0f3ef 39px,
    #f0f3ef 40px,
    #fff 40px,
    #fff 79px,
    #dfe7e3 79px,
    #dfe7e3 80px
  );
}
.slot {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
}
.slot:hover {
  background: #eaf5ef;
}
.booking {
  position: absolute;
  left: 5px;
  right: 5px;
  overflow: hidden;
  z-index: 1;
  border: 1px solid #c6ddd3;
  border-left: 3px solid var(--staff-color, var(--brand));
  background: #eef6f1;
  border-radius: 9px;
  padding: 7px 9px;
  text-align: left;
  color: var(--ink);
  box-shadow: 0 2px 3px #26453705;
  font-size: 12px;
  line-height: 1.35;
}
.booking:hover {
  filter: brightness(0.97);
}
.booking strong {
  display: block;
  font-size: 13px;
  margin: 3px 0;
}
.booking small {
  font-size: 10px;
}
.booking.pending {
  background: #fff8e9;
  border-color: #ead6b4;
}
.booking.completed {
  background: #eff0f1;
  border-color: #d5dbda;
  opacity: 0.8;
}
.booking.cancelled {
  background: #faf0ef;
  opacity: 0.6;
}
.booking .price {
  float: right;
  font-size: 10px;
}
.search {
  width: min(100%, 340px);
  margin-bottom: 20px;
}
.input,
input:not([type="checkbox"]):not([type="color"]),
select,
textarea {
  border: 1px solid #d7e1db;
  border-radius: 11px;
  padding: 11px 13px;
  background: white;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c5ded1;
  outline-offset: 1px;
}
input[type="color"] {
  height: 44px;
  width: 65px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input[type="checkbox"] {
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
  vertical-align: middle;
  flex: none;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf1ed;
}
.table tr:last-child td {
  border: 0;
}
.table .iconbtn {
  width: 35px;
  min-width: 35px;
  min-height: 35px;
  padding: 7px;
}
.rowtitle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rowtitle strong {
  display: block;
}
.rowtitle small {
  display: block;
}
.team-grid,
.services-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.person,
.service,
.event {
  position: relative;
  padding: 24px;
}
.person .iconbtn,
.service .iconbtn,
.event .iconbtn {
  position: absolute;
  right: 13px;
  top: 13px;
  border: 0;
  background: transparent;
}
.person h3 {
  margin-top: 16px;
}
.person p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.person .avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 17px;
}
.service h3 {
  padding-right: 24px;
}
.service .amount {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 700;
  margin-top: 20px;
}
.event .eyebrow {
  padding-right: 28px;
}
.event h3 {
  margin-top: 10px;
}
.event p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}
.participants {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.participants .avatar {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  font-size: 10px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
}
.form {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.field small {
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
}
.form-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.form-actions .textbtn {
  font-size: 12px;
  color: #a05151;
  justify-self: center;
}
.caption {
  font-size: 12px;
  color: var(--muted);
}
.checks {
  display: grid;
  gap: 9px;
  max-height: 200px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.media-card {
  overflow: hidden;
  border-radius: 15px;
  background: white;
  border: 1px solid var(--line);
}
.media-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #edf2ed;
}
.media-card p {
  padding: 10px 13px;
  font-size: 12px;
}
#modal {
  width: min(580px, calc(100% - 24px));
  border: 1px solid #dfe7e3;
  border-radius: 23px;
  padding: 25px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-shadow: 0 25px 100px #18332c26;
  color: var(--ink);
}
#modal::backdrop {
  background: #152f2a60;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
}
.close {
  border: 1px solid #d8e2dc;
  background: #f4f7f3;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #496761;
  appearance: none;
  box-shadow: none;
}
.close svg {
  width: 20px;
  height: 20px;
}
#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 100;
  max-width: min(520px, calc(100vw - 24px));
  background: #20332f;
  color: white;
  padding: 13px 20px;
  border-radius: 13px;
  box-shadow: 0 8px 35px #18342b33;
  font-size: 13px;
  transition: transform 0.2s;
  pointer-events: none;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
.auth-wrap {
  max-width: 480px;
  margin: 8vh auto;
  padding: 0 18px;
}
.auth-wrap > .brand {
  margin-bottom: 30px;
  justify-content: center;
}
.auth-card {
  padding: 30px;
}
.auth-card h1 {
  font-size: 27px;
  margin: 8px 0;
}
.role-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}
.role-choice:hover {
  background: var(--wash);
  border-color: #9ebeb1;
}
.role-choice strong {
  display: block;
  font-size: 13px;
}
.role-choice small {
  display: block;
}
.role-choices {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}
.landing {
  max-width: 1100px;
  margin: auto;
  padding: 42px 24px;
}
.landing .intro {
  padding: 75px 0 40px;
  max-width: 750px;
}
.intro h1 {
  font-size: clamp(36px, 6vw, 62px);
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 15px 0 22px;
}
.intro p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.demo-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.demo-card h2 {
  font-size: 27px;
  margin: 20px 0 12px;
}
.demo-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.demo-card .number {
  font-size: 90px;
  position: absolute;
  right: 20px;
  top: -5px;
  color: #12666009;
  font-weight: 800;
}
.demo-card .flex {
  flex-wrap: wrap;
}
.landing footer {
  color: var(--muted);
  font-size: 12px;
  margin-top: 35px;
}
.website {
  --brand: #126660;
  min-height: 100vh;
  background: #f7faf5;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1150px;
  margin: auto;
  padding: 27px 24px;
}
.site-name {
  font-weight: 750;
  font-size: 20px;
}
.site-hero {
  max-width: 1150px;
  margin: auto;
  padding: 60px 24px 90px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
}
.site-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -2px;
  line-height: 1.07;
  margin: 18px 0 25px;
}
.site-hero p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 28px;
}
.site-art {
  aspect-ratio: 1;
  background: var(--wash);
  border-radius: 46% 46% 24% 46%;
  position: relative;
  display: grid;
  place-items: center;
}
.site-art svg {
  width: 48%;
  height: 48%;
  color: var(--brand);
  stroke-width: 0.9;
}
.site-art:after {
  content: "Забота в каждом дне";
  position: absolute;
  bottom: 35px;
  left: 20px;
  background: white;
  box-shadow: 0 12px 40px #17342b13;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 650;
}
.site-services {
  max-width: 1150px;
  margin: auto;
  padding: 0 24px 80px;
}
.site-services h2 {
  font-size: 30px;
  margin-bottom: 25px;
}
.site-footer {
  padding: 30px 24px;
  background: #eaf2ec;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.preview-banner {
  background: #243b39;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 12px;
}
.preview-mini {
  padding: 35px;
  border-radius: 16px;
  background: var(--wash);
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.preview-mini h2 {
  font-size: 32px;
  line-height: 1.1;
  margin: 15px 0;
}
.preview-mini p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.preview-mini .primary {
  align-self: flex-start;
}
.settings-info {
  display: grid;
  gap: 10px;
  font-size: 13px;
}
.settings-info .flex {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.mobile-only {
  display: none;
}
@media (min-width: 1600px) {
  .content {
    padding: 38px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 192px 1fr;
  }
  .sidebar {
    padding: 22px 12px;
  }
  .brand {
    font-size: 20px;
  }
  .content {
    padding: 24px 20px 60px;
  }
  .topbar {
    padding: 0 20px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .topbar .sync {
    display: none;
  }
  .card {
    padding: 20px;
  }
  .site-hero {
    gap: 25px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 20;
    left: 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 20px 0 60px #1f35252b;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .topbar {
    height: 68px;
    padding: 0 14px;
  }
  .topbar .mobile-menu {
    display: inline-flex;
  }
  .topbar .who .avatar {
    display: none;
  }
  .topbar .who strong {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar .who small {
    font-size: 10px;
  }
  .topbar .btn {
    font-size: 11px;
    padding: 8px 10px;
    min-height: 36px;
  }
  .content {
    padding: 23px 13px 60px;
  }
  .page-title {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-title h1 {
    font-size: 26px;
  }
  .page-title p {
    font-size: 12px;
  }
  .page-title .primary {
    padding: 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .page-title .primary .icon {
    width: 17px;
    height: 17px;
  }
  .card {
    padding: 16px;
    border-radius: 17px;
  }
  .stats {
    gap: 7px;
  }
  .stat {
    padding: 11px 13px;
    border-radius: 13px;
  }
  .stat b {
    font-size: 23px;
  }
  .stat small {
    font-size: 10px;
  }
  .week {
    gap: 5px;
    margin-top: 15px;
  }
  .day {
    padding: 8px 1px;
    border-radius: 10px;
    gap: 2px;
  }
  .day b {
    font-size: 20px;
  }
  .day span {
    font-size: 10px;
  }
  .datebar h2 {
    font-size: 15px;
  }
  .datebar .iconbtn {
    min-height: 35px;
    min-width: 35px;
    padding: 6px;
  }
  .datebar .btn {
    font-size: 11px;
    padding: 7px;
    min-height: 35px;
  }
  .datebar .flex {
    gap: 6px;
  }
  .journal-wrap {
    margin-top: 16px;
  }
  .journal {
    min-width: 690px;
  }
  .table th {
    display: none;
  }
  .table td {
    padding: 12px 4px;
    font-size: 12px;
  }
  .table .hide-mobile {
    display: none;
  }
  .table .avatar {
    width: 33px;
    height: 33px;
    border-radius: 11px;
    font-size: 12px;
  }
  .rowtitle {
    gap: 8px;
  }
  .rowtitle strong {
    font-size: 12px;
  }
  .rowtitle small {
    font-size: 10px;
  }
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .landing {
    padding: 25px 18px;
  }
  .landing .intro {
    padding: 45px 0 30px;
  }
  .intro h1 {
    font-size: 43px;
  }
  .demo-card {
    padding: 25px;
  }
  .demo-card h2 {
    font-size: 25px;
  }
  .site-hero {
    grid-template-columns: 1fr;
    padding: 35px 20px 50px;
  }
  .site-art {
    max-width: 300px;
    width: 100%;
    margin: auto;
  }
  .site-header {
    padding: 20px;
  }
  .site-name {
    font-size: 16px;
  }
  .site-header .btn {
    font-size: 12px;
    padding: 8px 10px;
  }
  .site-services {
    padding: 0 20px 45px;
  }
  .form-grid {
    gap: 12px;
  }
  #modal {
    padding: 20px;
  }
  .modal-head h2 {
    font-size: 19px;
  }
  .auth-wrap {
    margin: 5vh auto;
  }
  .auth-card {
    padding: 24px;
  }
  .mobile-only {
    display: initial;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .media-card img {
    height: 140px;
  }
}

@media (max-width: 430px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:last-child {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .stat:last-child b {
    white-space: nowrap;
    font-size: 21px !important;
  }
  .stat small {
    font-size: 11px;
  }
  .datebar h2 {
    font-size: 14px;
    white-space: nowrap;
  }
  .datebar > .flex {
    gap: 5px;
  }
  .datebar {
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .form-grid:has(input[type="datetime-local"]) {
    grid-template-columns: 1fr;
  }
}

#modal .form-actions {
  position: sticky;
  bottom: -20px;
  z-index: 2;
  background: #fff;
  padding: 12px 0 3px;
  box-shadow: 0 -10px 15px #ffffffee;
}
@media (max-width: 700px) {
  .page-title {
    flex-wrap: wrap;
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col > *,
  .stack {
    min-width: 0;
  }
  .two-col .card > .flex {
    flex-wrap: wrap;
  }
  .two-col .card > .flex > * {
    flex: 1;
    white-space: nowrap;
  }
  .table thead {
    display: none;
  }
  .table tbody {
    display: block;
  }
  .table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 35px;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .table td {
    border: 0;
    padding: 4px;
    min-width: 0;
  }
  .table td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    padding-left: 45px;
    overflow-wrap: anywhere;
  }
  .table td:last-child {
    grid-column: 2;
    grid-row: 1/3;
  }
  .table tr:last-child {
    border: 0;
  }
  .rowtitle > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
h1,
h2,
h3,
p,
strong {
  overflow-wrap: anywhere;
}
