@import url("/assets/layout.css");
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
dialog .modal-body {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
dialog .modal-head,
dialog .modal-foot {
  flex-shrink: 0;
}
#dictionary {
  width: min(580px, 94vw);
}
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #25394e;
  background: #f3f7fa;
  font-synthesis: none;
  --blue: #1979bd;
  --green: #29977a;
  --muted: #718396;
  --line: #e3ebf1;
  --red: #bc4052;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 44px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover {
  background: #eff6fb;
  border-color: #bfd7e9;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #70b5e4;
  outline-offset: 2px;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 4px 12px #1979bd24;
}
button.primary:hover {
  background: #146ba8;
}
button.green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
button.danger {
  color: var(--red);
}
button.icon {
  padding: 10px;
  flex: 0 0 44px;
  width: 44px;
}
button.subtle {
  background: transparent;
  border-color: transparent;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
h2 {
  font-size: 21px;
  margin-bottom: 16px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.55;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}
.stack {
  display: grid;
  gap: 14px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 3px 16px #233f5303;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #eef4f8;
  color: #56748d;
}
.badge.green {
  color: #248166;
  background: #e9f6ee;
}
.badge.red {
  color: var(--red);
  background: #fff0f1;
}
.badge.amber {
  color: #a57b20;
  background: #fff6df;
}
.badge.blue {
  color: #1979bd;
  background: #eaf4fe;
}
.badge svg {
  width: 14px;
  height: 14px;
}
.error {
  color: #a32d40;
  background: #fff1f2;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  white-space: pre-wrap;
}
.error:empty {
  display: none;
}
.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f1f7fb;
  color: #55728c;
  font-size: 13px;
  line-height: 1.6;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.avatar {
  height: 42px;
  width: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: #eaf3f6;
  color: #508396;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.name {
  font-weight: 650;
  overflow-wrap: anywhere;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #53687c;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dce6ee;
  border-radius: 9px;
  background: #fff;
  color: #25394e;
  font-size: 16px;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 76px;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
input[type="file"] {
  font-size: 13px;
}
a {
  color: var(--blue);
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fields .full {
  grid-column: 1/-1;
}
.select-edit {
  display: flex;
  gap: 6px;
}
.select-edit select {
  flex: 1;
}
.select-edit .icon {
  color: var(--blue);
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.compact {
  font-size: 13px;
}
.nowrap {
  white-space: nowrap;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #25485a;
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 25px #20374426;
  z-index: 10;
  max-width: 90vw;
  display: none;
}
#toast.visible {
  display: block;
}
dialog {
  padding: 0;
  border: 1px solid #dce7ee;
  border-radius: 20px;
  width: min(820px, 95vw);
  max-height: 92dvh;
  box-shadow: 0 30px 100px #16395433;
  color: inherit;
}
dialog::backdrop {
  background: #17344766;
  backdrop-filter: blur(3px);
}
#aux {
  width: min(580px, 94vw);
}
.modal-head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
}
.modal-body {
  padding: 22px 24px;
}
.modal-foot {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  z-index: 2;
}
.section {
  margin-bottom: 26px;
}
.section-title {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 15px;
  font-size: 16px;
}
.step {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f3fc;
  color: var(--blue);
  font-size: 12px;
}
.item-row {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 10px 0;
  background: #fbfdff;
}
.calendar-mini {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin: 12px 0;
}
.calendar-mini .weekday {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 5px;
}
.day {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid transparent;
  padding: 7px 3px;
  min-height: 56px;
  font-weight: 600;
}
.day small {
  font-size: 10px;
  font-weight: 400;
}
.day.loaded {
  background: #edf7f2;
}
.day.busy {
  background: #fff0f0;
  color: #b53b4c;
}
.day.busy small {
  color: #b53b4c;
}
.day.selected {
  border-color: #1683c5;
  background: #e6f3fd;
  box-shadow: inset 0 0 0 1px #1683c5;
}
.day.today {
  border-bottom: 3px solid #29a080;
}
.slot-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr 44px;
  gap: 8px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.payment-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  background: linear-gradient(145deg, #e0f3ed, #e4effa);
  padding: 9vw 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  width: 450px;
  height: 450px;
  border: 1px solid #fff8;
  border-radius: 50%;
  position: absolute;
  right: -150px;
  bottom: -200px;
  box-shadow:
    0 0 0 70px #ffffff30,
    0 0 0 140px #ffffff20;
}
.login-art h1 {
  font-size: 48px;
  max-width: 400px;
  line-height: 1.12;
  margin: 30px 0 22px;
}
.login-art p {
  max-width: 340px;
  color: #5a7b87;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.login-form form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 28px;
}
.logo {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid #dcebe8;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #299783;
}
.logo svg {
  width: 28px;
  height: 28px;
}
.login-form .primary {
  width: 100%;
  margin-top: 10px;
}
.password-field {
  display: flex;
  gap: 6px;
}
.login-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 24px;
}
