.smena-page {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
html:has(.smena-page) {
  height: 100%;
}

.smena {
  --f-bg: #eef0f4;
  --f-card: #ffffff;
  --f-text: #15171c;
  --f-hint: #7b8290;
  --f-accent: #2f7df6;
  --f-on-accent: #ffffff;
  --f-danger: #e0453f;
  --ok: #1f9d55;
  --warn: #c77700;
  --av-l: 90%;
  --av-s: 62%;
  --av-tl: 34%;
  --tc0: #d18400;
  --tc1: #5560e0;
  --tc2: #0e9484;
  --tc3: #3f9a3a;
  --tc4: #dc4a76;
  --tc5: #8a55e6;
  --shadow: 0 1px 2px rgba(20, 23, 28, 0.04), 0 6px 20px rgba(20, 23, 28, 0.05);
  --sheet-shadow: 0 -8px 40px rgba(10, 12, 16, 0.18);
  --scrim: rgba(10, 12, 16, 0.42);

  --bg: var(--tg-theme-secondary-bg-color, var(--f-bg));
  --card: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, var(--f-card)));
  --text: var(--tg-theme-text-color, var(--f-text));
  --hint: var(--tg-theme-hint-color, var(--f-hint));
  --accent: var(--tg-theme-button-color, var(--f-accent));
  --on-accent: var(--tg-theme-button-text-color, var(--f-on-accent));
  --danger: var(--tg-theme-destructive-text-color, var(--f-danger));
  --line: rgba(128, 134, 148, 0.2);
  --fill: rgba(128, 134, 148, 0.12);
  --accent-soft: rgba(47, 125, 246, 0.13);
  --danger-soft: rgba(224, 69, 63, 0.12);

  --r-card: 18px;
  --r-ctl: 13px;
  --pad: 16px;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));

  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--tg-viewport-stable-height, 100svh);
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
@supports (color: color-mix(in srgb, red, blue)) {
  .smena {
    --line: color-mix(in srgb, var(--text) 10%, transparent);
    --fill: color-mix(in srgb, var(--text) 6%, transparent);
    --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
    --danger-soft: color-mix(in srgb, var(--danger) 13%, transparent);
  }
}
.smena[data-scheme="dark"] {
  --f-bg: #0e1014;
  --f-card: #1a1d23;
  --f-text: #f1f2f4;
  --f-hint: #8b93a1;
  --f-accent: #5a9bff;
  --f-on-accent: #ffffff;
  --f-danger: #ff6b63;
  --ok: #4cc27f;
  --warn: #f0a63a;
  --av-l: 24%;
  --av-s: 34%;
  --av-tl: 80%;
  --tc0: #f2b13a;
  --tc1: #8c95ff;
  --tc2: #3fcab8;
  --tc3: #76c96d;
  --tc4: #ff7da3;
  --tc5: #b68cff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sheet-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  --scrim: rgba(0, 0, 0, 0.6);
}

:where(.smena) *,
:where(.smena) *::before,
:where(.smena) *::after {
  box-sizing: border-box;
}
:where(.smena) button,
:where(.smena) input {
  font: inherit;
  color: inherit;
}
:where(.smena) button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: inherit;
  touch-action: manipulation;
}
:where(.smena) button:disabled {
  cursor: default;
}
.smena :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:where(.smena) svg {
  display: block;
  flex: none;
}
.smena [hidden] {
  display: none !important;
}

.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px var(--pad) 28px;
  max-width: 560px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 0;
}
.page-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-head .sub {
  margin-top: 3px;
  color: var(--hint);
  font-size: 14px;
}
.page-head > div {
  min-width: 0;
}

.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-pad {
  padding: 16px;
}
.label {
  color: var(--hint);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-title {
  margin: 8px 4px -4px;
  color: var(--hint);
  font-size: 13px;
  font-weight: 600;
}
.muted {
  color: var(--hint);
}
.note {
  padding: 0 4px;
  color: var(--hint);
  font-size: 13px;
  line-height: 1.45;
}

.tabs {
  flex: none;
  display: flex;
  padding: 6px 6px calc(6px + var(--safe-b));
  background: var(--card);
  border-top: 1px solid var(--line);
}
.tab {
  text-align: center;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px 4px;
  border-radius: 12px;
  color: var(--hint);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s;
}
.tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  transition: background 0.15s;
}
.tab[aria-current="page"] {
  color: var(--accent);
}
.tab[aria-current="page"] .ico {
  background: var(--accent-soft);
}

.t0 { --tc: var(--tc0); }
.t1 { --tc: var(--tc1); }
.t2 { --tc: var(--tc2); }
.t3 { --tc: var(--tc3); }
.t4 { --tc: var(--tc4); }
.t5 { --tc: var(--tc5); }
.t0, .t1, .t2, .t3, .t4, .t5 {
  --tc-soft: rgba(128, 134, 148, 0.16);
}
@supports (color: color-mix(in srgb, red, blue)) {
  .t0, .t1, .t2, .t3, .t4, .t5 {
    --tc-soft: color-mix(in srgb, var(--tc) 15%, transparent);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  background: var(--tc-soft);
  color: var(--tc);
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
}
.pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--tc-soft);
  color: var(--tc);
}

.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: hsl(var(--ah) var(--av-s) var(--av-l));
  color: hsl(var(--ah) 60% var(--av-tl));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.av.sm {
  width: 24px;
  height: 24px;
  font-size: 10.5px;
}
.av.lg {
  width: 64px;
  height: 64px;
  font-size: 23px;
}
.a0 { --ah: 212; }
.a1 { --ah: 262; }
.a2 { --ah: 334; }
.a3 { --ah: 18; }
.a4 { --ah: 42; }
.a5 { --ah: 152; }
.a6 { --ah: 184; }
.a7 { --ah: 292; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 13.5px;
  font-weight: 550;
}
.chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip.me {
  background: var(--accent-soft);
  color: var(--accent);
}
.chip.off span {
  text-decoration: line-through;
  color: var(--hint);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: var(--r-ctl);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 650;
  transition: opacity 0.15s, transform 0.1s;
}
.smena .btn {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
}
.smena .btn:active:not(:disabled) {
  transform: scale(0.985);
}
.smena .btn:disabled {
  opacity: 0.45;
}
.smena .btn.soft {
  background: var(--accent-soft);
  color: var(--accent);
}
.smena .btn.plain {
  background: var(--fill);
  color: var(--text);
}
.smena .btn.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.smena .btn.small {
  width: auto;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 11px;
}
.btn-row {
  display: flex;
  gap: 8px;
}
.btn-row > * {
  flex: 1;
  min-width: 0;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  color: var(--text);
}
.smena .icon-btn {
  background: var(--fill);
}
.smena .icon-btn:active {
  opacity: 0.6;
}

.hero {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tc-soft, transparent);
  pointer-events: none;
}
.hero > * {
  position: relative;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero .label {
  color: var(--tc, var(--hint));
}
.hero-main {
  margin-top: 12px;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 10px;
  font-size: 15px;
}
.hero-time {
  font-weight: 650;
}
.hero-in {
  margin-top: 14px;
  color: var(--hint);
  font-size: 14px;
}
.hero-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--card);
  color: var(--tc, var(--hint));
}
.bar {
  height: 6px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--fill);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--tc, var(--accent));
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.35; }
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 4px 16px;
}
.cal-title {
  font-size: 17px;
  font-weight: 700;
}
.cal-nav {
  display: flex;
  gap: 6px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 10px 12px;
}
.cal-dow {
  padding: 6px 0;
  color: var(--hint);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}
.cal-day {
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 12px;
  font-size: 15px;
}
.cal-day.out {
  color: var(--hint);
  opacity: 0.45;
}
.cal-day .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.cal-day.has .n {
  background: var(--tc-soft);
  color: var(--tc);
  font-weight: 700;
}
.cal-day.two .n {
  box-shadow: 0 0 0 2px var(--tc2nd, transparent);
}
.cal-day.today .n {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cal-day.has.today .n {
  box-shadow: inset 0 0 0 2px var(--tc);
}
.cal-day.sel .n {
  background: var(--tc, var(--accent));
  color: var(--card);
}
.cal-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat {
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat b {
  display: block;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--hint);
  font-size: 12.5px;
}

.rows > * + * {
  border-top: 1px solid var(--line);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  min-height: 60px;
}
.smena button.row:active {
  background: var(--fill);
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-size: 15.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-sub {
  margin-top: 1px;
  color: var(--hint);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-end {
  flex: none;
  color: var(--hint);
  font-size: 13.5px;
  text-align: right;
}
.row .chev {
  flex: none;
  color: var(--hint);
  opacity: 0.6;
}
.datebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--tc-soft, var(--fill));
  color: var(--tc, var(--text));
  line-height: 1.05;
}
.datebox b {
  font-size: 17px;
  font-weight: 700;
}
.datebox span {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--hint);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.ok {
  background: rgba(31, 157, 85, 0.14);
  color: var(--ok);
}

.weekbar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 calc(var(--pad) * -1);
  padding: 8px var(--pad) 10px;
  background: var(--bg);
}
.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.week-title {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.week-title b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.week-title span {
  display: block;
  color: var(--hint);
  font-size: 12.5px;
}
.strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 10px;
}
.strip-day {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 7px;
  border-radius: 13px;
  background: var(--card);
  min-width: 0;
}
.strip-day span {
  color: var(--hint);
  font-size: 11px;
  font-weight: 600;
}
.strip-day b {
  font-size: 16px;
  font-weight: 700;
}
.strip-day.today {
  background: var(--accent);
  color: var(--on-accent);
}
.strip-day.today span {
  color: inherit;
  opacity: 0.8;
}
.strip-day.past b {
  color: var(--hint);
}
.dots {
  display: flex;
  gap: 3px;
  height: 6px;
  margin-top: 2px;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--tc);
  opacity: 0.55;
}
.dots i.on {
  background: var(--tc);
  opacity: 1;
}
.strip-day.today .dots i {
  border-color: currentColor;
}
.strip-day.today .dots i.on {
  background: currentColor;
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 8px;
}
.day-head b {
  font-size: 16.5px;
  font-weight: 700;
}
.day.past .day-head b {
  color: var(--hint);
}
.slot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 11px 12px 11px 16px;
  border-top: 1px solid var(--line);
}
.smena button.slot:active {
  background: var(--fill);
}
.slot-type {
  flex: none;
  width: 92px;
  min-width: 0;
}
.slot-time {
  margin-top: 4px;
  padding-left: 3px;
  color: var(--hint);
  font-size: 12.5px;
}
.slot-people {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}
.slot-empty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 7px;
  border: 1.5px dashed var(--line);
  border-radius: 999px;
  color: var(--hint);
  font-size: 13.5px;
  font-weight: 550;
}
.slot .chev {
  margin-top: 5px;
  color: var(--hint);
  opacity: 0.5;
}

.hours-row {
  padding: 13px 16px;
}
.hours-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.hours-top b {
  font-size: 15.5px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hours-top span {
  flex: none;
  font-size: 15.5px;
  font-weight: 700;
}
.hours-bar {
  display: flex;
  height: 8px;
  margin: 8px 0 6px;
  border-radius: 4px;
  background: var(--fill);
  overflow: hidden;
}
.hours-bar i {
  display: block;
  height: 100%;
  background: var(--tc0);
}
.hours-bar i.night {
  background: var(--tc1);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--hint);
  font-size: 12.5px;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--tc0);
}
.legend i.night {
  background: var(--tc1);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 20px;
  color: var(--hint);
  text-align: center;
}
.empty b {
  color: var(--text);
  font-size: 16.5px;
  font-weight: 650;
}
.empty .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: var(--fill);
}
.now-rows {
  border-top: 1px solid var(--line);
}
.smena .now-none {
  margin: 0;
  padding-top: 0;
}
.smena .slot-row-chips {
  padding-top: 2px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack:empty {
  display: none;
}
.fatal {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skel {
  border-radius: var(--r-card);
  background: var(--card);
  opacity: 0.7;
  animation: skel 1.2s ease-in-out infinite;
}
.skel.h1 { height: 132px; }
.skel.h2 { height: 220px; }
.skel.h3 { height: 76px; }
@keyframes skel {
  50% { opacity: 0.35; }
}

.layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--scrim);
  animation: fade 0.18s ease-out;
}
.layer.top {
  justify-content: flex-start;
  padding: 10% 12px 0;
}
.sheet {
  display: flex;
  flex-direction: column;
  max-height: 90%;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--sheet-shadow);
  animation: rise 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.layer.top .sheet {
  max-height: 86%;
  border-radius: 24px;
  animation-name: drop;
}
.sheet-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 14px 10px 18px;
}
.sheet-head > div {
  flex: 1;
  min-width: 0;
}
.sheet-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.sheet-head p {
  margin: 4px 0 0;
  color: var(--hint);
  font-size: 14px;
}
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet-body.flush {
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}
.sheet-foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
}
.layer.top .sheet-foot {
  padding-bottom: 16px;
}
.sheet-foot .note {
  padding: 0;
  text-align: center;
}
@keyframes fade {
  from { opacity: 0; }
}
@keyframes rise {
  from { transform: translateY(40px); opacity: 0.6; }
}
@keyframes drop {
  from { transform: translateY(-16px); opacity: 0; }
}

.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 18px;
  min-height: 54px;
}
.smena button.pick:active {
  background: var(--fill);
}
.pick-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-name small {
  display: block;
  color: var(--hint);
  font-size: 12.5px;
  font-weight: 400;
}
.box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 9px;
  border: 2px solid var(--line);
  color: transparent;
  transition: background 0.12s, border-color 0.12s;
}
.pick[aria-checked="true"] .box {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > span {
  color: var(--hint);
  font-size: 13px;
  font-weight: 600;
}
.smena .input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: var(--r-ctl);
  background: var(--fill);
  font-size: 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.smena .input:focus {
  border-color: var(--accent);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.callout {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--fill);
  font-size: 14px;
  line-height: 1.45;
}
.callout.warn {
  background: rgba(199, 119, 0, 0.13);
  color: var(--warn);
}
.callout.err {
  background: var(--danger-soft);
  color: var(--danger);
}
.callout b {
  font-weight: 700;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14.5px;
}
.kv span:first-child {
  color: var(--hint);
}
.kv span:last-child {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 550;
}
.linkbox {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--fill);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}
.person-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
  text-align: center;
}
.person-top b {
  font-size: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(86px + var(--safe-b));
  z-index: 40;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 550;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: toast 0.2s ease-out;
}
.toast.err {
  background: var(--danger);
  color: #fff;
}
@keyframes toast {
  from { opacity: 0; transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .smena *,
  .smena *::before,
  .smena *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 359px) {
  .slot-type { width: 82px; }
  .page-head h1 { font-size: 23px; }
}
