:root {
  --wait: #9a5b00;
  --wait-bg: #fff3dc;
  --wait-line: #f0b54a;
  --ok-line: #5cae63;
  --no: #b71c1c;
  --no-bg: #fdecea;
  --no-line: #e57373;
  --off: #5f6368;
  --off-bg: #eef0f2;
  --off-line: #b0b5ba;
  --soft: #f2f4f7;
}
code {
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .85em;
  word-break: break-all;
}
.hint {
  font-size: .85rem;
  color: var(--muted);
}
button.block {
  width: 100%;
}
button.icon {
  padding: 8px;
  width: 38px;
  height: 38px;
}
button.icon.small {
  width: 30px;
  height: 30px;
  padding: 6px;
}
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: radial-gradient(1200px 500px at 50% -10%, #dbe8fa 0%, rgba(219,232,250,0) 70%), var(--bg);
}
.auth-page .auth-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-page .auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px 28px;
  box-shadow: 0 10px 40px rgba(21,101,192,.10), var(--shadow);
}
.auth-page .auth-head {
  text-align: center;
  margin-bottom: 22px;
}
.auth-page .auth-head img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.auth-page .auth-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 10px 0 4px;
}
.auth-page .auth-head p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.auth-page .auth-foot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  font-size: .88rem;
  color: var(--muted);
  text-decoration: none;
}
.auth-page .auth-foot:hover {
  color: var(--primary);
}
.auth-page .center {
  padding: 12px 0;
}
.input-wrap {
  position: relative;
}
.input-wrap input {
  padding-right: 48px;
}
.input-wrap .reveal {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}
.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 14px;
  font-size: .9rem;
}
.login-row .check {
  margin: 0;
}
.admin header.admin-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.admin header.admin-bar img {
  width: 36px;
  height: 36px;
}
.admin header.admin-bar .brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.admin header.admin-bar .brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.admin header.admin-bar .brand span {
  font-size: .78rem;
  color: var(--muted);
}
.admin header.admin-bar .spacer {
  flex: 1;
}
.admin header.admin-bar .bar-link, .who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.admin header.admin-bar .who .label {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.admin header.admin-bar .bar-link:hover {
  color: var(--primary);
}
main.admin-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  color: var(--text);
  min-width: 0;
}
.stat:is(button):hover {
  border-color: var(--primary);
}
.stat .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}
.stat.attention .stat-icon {
  background: var(--wait-bg);
  color: var(--wait);
}
.stat .stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stat .stat-label {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.3;
}
.stat .stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}
.stat .stat-sub {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.toolbar.filters {
  margin-bottom: 20px;
}
.tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  background: var(--soft);
  border-radius: 10px;
}
button.tab {
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  padding: 8px 12px;
  flex-shrink: 0;
}
button.tab:hover {
  color: var(--text);
}
button.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(17,17,17,.12);
}
button.tab .count {
  font-size: .72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(17,17,17,.07);
}
button.tab.active .count {
  background: var(--primary-soft);
  color: var(--primary);
}
.search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search input {
  width: 100%;
  font: inherit;
  padding: 9px 12px 9px 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.toolbar .check {
  margin: 0;
  white-space: nowrap;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.seg button {
  border-radius: 0;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 14px;
  gap: 6px;
}
.seg button + button {
  border-left: 1px solid var(--border-strong);
}
.seg button.on {
  background: var(--primary-soft);
  color: var(--primary);
}
.badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.s-pending {
  color: var(--wait);
  background: var(--wait-bg);
}
.s-approved {
  color: var(--ok);
  background: var(--ok-bg);
}
.s-rejected {
  color: var(--no);
  background: var(--no-bg);
}
.s-cancelled {
  color: var(--off);
  background: var(--off-bg);
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 56px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
}
.empty svg {
  color: var(--border-strong);
}
.empty p {
  margin: 8px 0 4px;
}
.month {
  margin-bottom: 22px;
}
.month h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px 2px;
}
.month h3 .count {
  font-size: .72rem;
  padding: 0 7px;
  border-radius: 10px;
  background: var(--soft);
  letter-spacing: 0;
}
ul.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
button.card {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  justify-content: stretch;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 16px 12px 12px;
  font-weight: 400;
}
button.card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(17,17,17,.07);
}
button.card.s-border-pending {
  border-left-color: var(--wait-line);
}
button.card.s-border-approved {
  border-left-color: var(--ok-line);
}
button.card.s-border-rejected {
  border-left-color: var(--no-line);
}
button.card.s-border-cancelled {
  border-left-color: var(--off-line);
}
button.card.past {
  opacity: .6;
}
button.card .date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border-radius: 10px;
  padding: 6px 0;
  line-height: 1.1;
}
button.card .date-block .wd, .date-block .mon {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
button.card .date-block .day {
  font-size: 1.45rem;
  font-weight: 700;
}
button.card .card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
button.card .card-title {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
button.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: .84rem;
  color: var(--muted);
}
button.card .meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
button.card .meta .ref {
  color: var(--primary);
  font-weight: 500;
}
button.card .meta .svc {
  color: var(--primary);
}
.calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cal-head .cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cal-head h2 {
  font-size: 1.15rem;
  margin: 0 6px;
  min-width: 150px;
  text-align: center;
}
.cal-head .legend {
  display: flex;
  gap: 14px;
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.cal-head .legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.cal-head .dot.s-pending {
  background: var(--wait-line);
}
.cal-head .dot.s-approved {
  background: var(--ok-line);
}
.cal-dows {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 0 0 6px;
  text-align: center;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 3px;
  min-height: 92px;
  border-top: 1px solid var(--border);
  padding-bottom: 6px;
}
.cal-cell {
  border-left: 1px solid var(--border);
}
.cal-cell:first-child {
  border-left: none;
}
.cal-cell.weekend {
  background: #fbfbfc;
}
.cal-cell.out {
  background: repeating-linear-gradient(-45deg, #fafafa 0 6px, #f4f5f6 6px 12px);
}
.cal-cell.today {
  background: var(--primary-soft);
}
.cal-num {
  font-size: .8rem;
  padding: 6px 8px 2px;
  z-index: 1;
  color: var(--text);
}
button.cal-bar {
  z-index: 2;
  margin: 0 3px;
  height: 22px;
  padding: 0 8px;
  font-size: .74rem;
  font-weight: 600;
  justify-content: flex-start;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-align: left;
  line-height: 22px;
}
button.cal-bar.s-pending {
  border: 1px dashed var(--wait-line);
}
button.cal-bar.s-approved {
  border: 1px solid var(--ok-line);
}
button.cal-bar.cont-left {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}
button.cal-bar.cont-right {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}
button.cal-bar:hover {
  filter: brightness(.96);
}
.cal-guests {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  color: var(--muted);
  padding: 2px 8px 0;
  font-variant-numeric: tabular-nums;
}
.cal-guests .pend {
  color: var(--wait);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f2933;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font-size: .92rem;
  animation: toast-in .2s ease-out;
  max-width: calc(100vw - 32px);
}
.toast svg {
  color: #7bd389;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
dialog.modal {
  border: none;
  padding: 0;
  border-radius: 16px;
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
dialog.modal.wide {
  max-width: 720px;
}
dialog.modal::backdrop {
  background: rgba(17,24,39,.45);
  backdrop-filter: blur(2px);
}
dialog.modal .modal-body {
  padding: 22px 24px 24px;
}
dialog.modal .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px -8px 10px 0;
}
dialog.modal h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
}
dialog.modal h4 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 10px;
}
dialog.modal.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(540px, 100vw);
  max-width: 100vw;
  border-radius: 16px 0 0 16px;
  animation: drawer-in .22s ease-out;
}
dialog.modal.drawer .modal-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}
dialog.modal.drawer .drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px 24px;
  border-bottom: 1px solid var(--border);
}
dialog.modal.drawer .drawer-head h3 {
  margin: 8px 0 0;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
dialog.modal.drawer .drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px 20px;
}
dialog.modal.drawer .drawer-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
dialog.modal.drawer .drawer-foot .spacer {
  flex: 1;
}
@keyframes drawer-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.fact {
  background: var(--soft);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}
.fact .fact-label {
  display: block;
  font-size: .72rem;
  color: var(--muted);
}
.fact strong {
  font-size: 1rem;
  white-space: nowrap;
}
.svc-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.svc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.svc-pill.on {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}
.svc-pill.off {
  color: var(--muted);
}
.svc-pill.unknown {
  color: var(--muted);
  border-style: dashed;
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}
.contact-row > svg {
  color: var(--muted);
}
.contact-row a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-row a:hover {
  text-decoration: underline;
}
.quote {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--border-strong);
  background: var(--soft);
  border-radius: 0 8px 8px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .92rem;
}
.quote.warn {
  border-left-color: var(--no-line);
  background: var(--no-bg);
}
.received {
  font-size: .8rem;
  color: var(--muted);
  margin: 18px 0 0;
}
.confirm h4 {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin: 18px 0 12px;
}
@media screen and (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 640px) {
  .admin header.admin-bar {
    padding: 8px 12px;
    gap: 8px;
  }
  .admin header.admin-bar .brand span, .admin header.admin-bar .label {
    display: none;
  }
  main.admin-main {
    padding: 16px 12px 80px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 10px 12px;
    gap: 10px;
  }
  .stat .stat-icon {
    width: 34px;
    height: 34px;
  }
  .toolbar {
    gap: 8px;
  }
  .tabs {
    flex: 1 1 100%;
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  button.tab {
    justify-content: space-between;
    white-space: normal;
    text-align: left;
  }
  .admin header.admin-bar .who {
    display: none;
  }
  button.add {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 6;
    border-radius: 28px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(21,101,192,.35);
  }
  button.add .label {
    display: none;
  }
  .search {
    flex: 1 1 100%;
    min-width: 0;
  }
  button.card {
    grid-template-columns: 54px 1fr;
    gap: 12px;
  }
  button.card .badge {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }
  .calendar {
    padding: 10px 6px;
    border-radius: 12px;
  }
  .cal-head h2 {
    min-width: 120px;
    font-size: 1rem;
  }
  .cal-head .legend {
    font-size: .72rem;
    gap: 10px;
  }
  .cal-week {
    min-height: 72px;
  }
  .cal-num {
    padding: 4px 4px 0;
    font-size: .72rem;
  }
  button.cal-bar {
    padding: 0 4px;
    font-size: .66rem;
    margin: 0 1px;
  }
  .cal-guests {
    padding: 0 3px;
    font-size: .64rem;
  }
  .cal-guests svg {
    display: none;
  }
  dialog.modal.drawer {
    width: 100vw;
    border-radius: 0;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .drawer-foot .spacer {
    display: none;
  }
  .drawer-foot button {
    flex: 1 1 auto;
  }
  .auth-page .auth-card {
    padding: 26px 20px 22px;
  }
}
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cardo", Georgia, "Times New Roman", serif;
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-soft: #e8f0fb;
  --text: #111111;
  --muted: #5f6368;
  --border: #dcdfe4;
  --border-strong: #c3c8cf;
  --bg: #f9f9f9;
  --surface: #ffffff;
  --error: #c62828;
  --error-bg: #fdecea;
  --ok: #2e7d32;
  --ok-bg: #e8f5e9;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 1px 8px rgba(17,17,17,.04);
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html.embedded, html.embedded body {
  background: transparent;
}
a {
  color: var(--primary);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--primary-dark);
}
svg {
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s;
}
button:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 2px;
}
button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
button.primary {
  background: var(--primary);
  color: #fff;
}
button.primary:hover:not(:disabled) {
  background: var(--primary-dark);
}
button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
button.secondary:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
button.danger {
  background: var(--error);
  color: #fff;
}
button.warn {
  background: var(--surface);
  color: var(--error);
  border-color: #e7b4b0;
}
button.warn:hover:not(:disabled) {
  background: var(--error-bg);
}
button.link {
  background: none;
  color: var(--primary);
  padding: 6px 0;
  text-decoration: underline;
}
button.ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
button.ghost:hover:not(:disabled) {
  background: rgba(17,17,17,.06);
  color: var(--text);
}
button.big {
  padding: 13px 22px;
  font-weight: 600;
  font-size: 1rem;
}
.field {
  margin-bottom: 14px;
  min-width: 0;
}
.field label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.field .opt {
  font-weight: 400;
  color: var(--muted);
}
.field input, textarea, select {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 11px 12px;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea {
  min-height: 104px;
  resize: vertical;
}
.field input::placeholder, textarea::placeholder {
  color: #9aa0a6;
}
.field input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field .err {
  color: var(--error);
  font-size: .8rem;
  margin-top: 4px;
  min-height: 1.2em;
}
.field.invalid input, .field.invalid textarea {
  border-color: var(--error);
}
.field.invalid input:focus, .field.invalid textarea:focus {
  box-shadow: 0 0 0 3px var(--error-bg);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.row.three {
  grid-template-columns: .8fr 1fr 1fr;
}
@media screen and (max-width: 560px) {
  .row.three {
    grid-template-columns: 1fr 1fr;
  }
  .row.three > :first-child {
    grid-column: 1 / -1;
  }
}
@media screen and (max-width: 420px) {
  .row, .row.three {
    grid-template-columns: 1fr;
  }
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  margin: 8px 0;
  cursor: pointer;
}
label.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.with-prefix {
  display: flex;
  align-items: stretch;
}
.with-prefix input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  min-width: 0;
  flex: 1;
}
.prefix {
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--soft, #f2f4f7);
  transition: border-color .15s, box-shadow .15s;
}
.prefix:focus-within {
  border-color: var(--primary);
  border-right: 1px solid var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  z-index: 1;
}
.prefix .prefix-face {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 10px 0 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.prefix .flag {
  font-size: 1.2rem;
  line-height: 1;
}
.prefix .prefix-face svg {
  color: var(--muted);
}
.prefix select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  font-size: 16px;
}
.field.invalid .prefix {
  border-color: var(--error);
}
fieldset.services {
  border: none;
  margin: 0 0 18px;
  padding: 0;
  min-width: 0;
}
fieldset.services legend {
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 8px;
  padding: 0;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
label.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
  user-select: none;
}
label.choice:hover {
  border-color: var(--primary);
}
label.choice:focus-within {
  box-shadow: 0 0 0 3px var(--primary-soft);
}
label.choice.on {
  border-color: var(--primary);
  background: var(--primary-soft);
}
label.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
label.choice .choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--primary);
  flex-shrink: 0;
}
label.choice.on .choice-icon {
  background: var(--surface);
}
label.choice .choice-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
label.choice .choice-text strong {
  font-weight: 600;
}
label.choice .choice-text span {
  font-size: .82rem;
  color: var(--muted);
}
label.choice .choice-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  color: transparent;
  flex-shrink: 0;
  background: var(--surface);
}
label.choice.on .choice-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
@media screen and (max-width: 420px) {
  .choices {
    grid-template-columns: 1fr;
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  margin: 12px 0;
}
.alert svg {
  margin-top: 1px;
}
.alert.error {
  color: #8e1c1c;
  background: var(--error-bg);
}
.alert.ok {
  color: #1f5e23;
  background: var(--ok-bg);
}
.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.actions.split {
  justify-content: space-between;
}
.actions.center {
  justify-content: center;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 1.5s !important;
  }
}
main.public {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
main.public.embedded {
  max-width: none;
  padding: 20px 20px 14px;
  background: var(--bg);
  border-radius: 18px;
  border: 1px solid var(--border);
}
main.public header.intro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 18px;
  align-items: start;
  margin-bottom: 24px;
}
main.public header.intro.compact {
  grid-template-columns: 1fr auto;
  margin-bottom: 16px;
}
main.public header.intro .logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
}
main.public header.intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  margin: 2px 0 8px;
}
main.public header.intro .subtitle {
  margin: 0 0 6px;
  color: var(--muted);
}
main.public header.intro .address {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 0;
  font-size: .9rem;
}
main.public header.intro .address svg {
  color: var(--primary);
  margin-top: 3px;
}
main.public .lang select {
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
main.public .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
main.public .card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 650;
  margin: 0 0 18px;
}
main.public .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 700;
}
main.public .privacy {
  font-size: .8rem;
  color: var(--muted);
  margin: 4px 4px 8px;
  line-height: 1.45;
}
main.public .review {
  padding-bottom: 22px;
}
main.public .review h2 svg {
  color: var(--primary);
}
main.public .review > p.muted {
  margin: -8px 0 18px;
}
main.public .review .summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
main.public .review h3 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
main.public .review dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: .92rem;
}
main.public .review dt {
  color: var(--muted);
}
main.public .review dd {
  margin: 0;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
main.public .done {
  text-align: center;
  padding: 36px 24px 28px;
}
main.public .done .done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  margin-bottom: 12px;
}
main.public .done h2 {
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
main.public .done p {
  max-width: 460px;
  margin: 0 auto 8px;
}
@media screen and (max-width: 560px) {
  main.public {
    padding: 20px 14px 32px;
  }
  main.public.embedded {
    padding: 14px 10px 10px;
    border-radius: 14px;
  }
  main.public header.intro {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  main.public header.intro .logo {
    width: 56px;
    height: 56px;
  }
  main.public header.intro .intro-text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  main.public header.intro .lang {
    justify-self: end;
  }
  main.public header.intro h1 {
    font-size: 1.65rem;
  }
  main.public .card {
    padding: 18px 16px 6px;
    border-radius: 12px;
  }
  main.public .review .summary {
    grid-template-columns: 1fr;
  }
  main.public .actions .big {
    flex: 1 1 100%;
  }
  main.public .actions.split {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}