/* Экраны внутри окон: сайт, робот, чат мастеров, CRM, телефон и владелец */

/* ---------- Сайт автосервиса ---------- */
.browser {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  background: #EFEAE3;
  border-bottom: 1px solid rgba(23, 19, 15, 0.06);
}

.browser__dots {
  display: inline-flex;
  gap: 6px;
}

.browser__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D9D2C8;
}

.browser__url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  font: 500 12px/1 var(--text);
  color: var(--steel);
}

.browser__url svg {
  width: 10px;
  height: 12px;
  fill: var(--ash);
  color: var(--ash);
}

.site {
  position: relative;
  height: calc(100% - 42px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.site__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 58px;
  padding: 0 20px;
  background:
    radial-gradient(260px 120px at 90% 0%, rgba(206, 49, 34, 0.35), transparent 70%),
    var(--tar);
  flex: 0 0 auto;
}

.logo--sm .logo__word {
  font-size: 14px;
}

.logo--sm .logo__box {
  padding: 2px 6px;
}

.logo--sm .logo__box > span {
  font-size: 12px;
}

.logo--sm .logo__trace i {
  height: 13px;
}

.site__desc {
  font: 500 11px/1 var(--text);
  letter-spacing: 0.04em;
  color: var(--ash);
}

.site__form {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 16px;
}

.site__head h3 {
  margin: 0;
  font: 800 21px/1.1 var(--head);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site__head p {
  margin: 4px 0 2px;
  font-size: 13px;
  color: var(--steel);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.f {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.f > span {
  font: 600 11px/1 var(--text);
  color: var(--steel);
  white-space: nowrap;
}

.f input,
.f select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #F1ECE5;
  font: 500 13.5px/1 var(--text);
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.f select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236B6862' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  cursor: pointer;
}

.f input:focus,
.f select:focus,
.f.is-typing input,
.f.is-typing select {
  border-color: rgba(23, 19, 15, 0.7);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(23, 19, 15, 0.06);
}

.f.is-error input {
  border-color: var(--signal);
  background-color: #FFF4F2;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--signal);
}

.check.is-error {
  color: var(--signal);
}

.site__submit {
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--signal);
  color: #fff;
  font: 800 14px/1 var(--head);
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px -12px rgba(206, 49, 34, 0.8);
  transition: background 0.2s, transform 0.2s var(--ease-out);
}

.site__submit:hover,
.site__submit:focus-visible {
  background: var(--signal-hi);
  outline: none;
}

.site__submit.is-pressed {
  transform: scale(0.96);
  background: #B02819;
}

.site__error {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 2px;
  margin: 0;
  font-size: 11.5px;
  color: var(--signal);
}

.site__sent {
  position: absolute;
  inset: 58px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: var(--paper);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.site__sent.is-on {
  opacity: 1;
}

.site__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 16px 30px -12px rgba(206, 49, 34, 0.8);
  transform: scale(0.6);
  transition: transform 0.6s var(--spring);
}

.site__sent.is-on .site__tick {
  transform: none;
}

.site__tick svg {
  width: 30px;
  height: 30px;
}

.site__sent b {
  margin-top: 8px;
  font: 800 20px/1.15 var(--head);
  color: var(--ink);
}

.site__sent span {
  font-size: 14px;
  color: var(--steel);
}

/* ---------- Робот ---------- */
.win--robot {
  background: linear-gradient(160deg, #2A231D 0%, #17130F 70%);
  color: var(--bone);
  box-shadow:
    0 60px 120px -50px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(242, 238, 231, 0.1),
    0 0 80px -30px rgba(206, 49, 34, 0.45);
}

.robot {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.robot__head {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(242, 238, 231, 0.08);
}

.robot__name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.robot__name b {
  font: 800 15px/1 var(--head);
  color: #fff;
}

.robot__name span {
  font-size: 11.5px;
  color: var(--ash);
  white-space: nowrap;
}

.robot__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font: 600 11px/1 var(--text);
  color: var(--sand);
}

.robot__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7FD18B;
  box-shadow: 0 0 0 3px rgba(127, 209, 139, 0.18);
}

.robot__core {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 8px;
}

.ring {
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring__track {
  fill: none;
  stroke: rgba(242, 238, 231, 0.08);
  stroke-width: 7;
}

.ring__bar {
  fill: none;
  stroke: var(--signal);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 314.2;
  stroke-dashoffset: 314.2;
  transition: stroke-dashoffset 0.9s var(--ease-out), stroke 0.3s;
  filter: drop-shadow(0 0 6px rgba(206, 49, 34, 0.6));
}

.ring.is-spin svg {
  animation: spin 1s linear infinite;
}

.ring.is-pulse {
  animation: ring-pulse 0.9s var(--ease-out);
}

@keyframes spin {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

@keyframes ring-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.ring__label b {
  font: 800 17px/1 var(--head);
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.ring__label span {
  max-width: 84px;
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--ash);
}

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

.checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 500 12.5px/1.2 var(--text);
  color: var(--ash);
  transition: color 0.4s;
}

.checks li i {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 238, 231, 0.18);
  flex: 0 0 auto;
  transition: background 0.4s var(--ease-out), border-color 0.4s;
}

.checks li i::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.4s var(--spring);
}

.checks li.is-on {
  color: #fff;
}

.checks li.is-on i {
  background: var(--signal);
  border-color: var(--signal);
}

.checks li.is-on i::after {
  transform: rotate(45deg) scale(1);
}

.checks li.is-off {
  color: var(--steel);
  text-decoration: line-through;
}

.checks li.is-off i {
  border-style: dashed;
}

.robot__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 18px 16px;
  overflow: hidden;
  font: 500 12px/1.25 var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
}

.log {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  color: var(--sand);
  white-space: nowrap;
  animation: log-in 0.45s var(--ease-out) both;
}

.log > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.log time {
  color: var(--steel);
}

.log.is-out > span::before {
  content: '→ ';
  color: var(--signal-hi);
}

.log.is-in > span::before {
  content: '← ';
  color: var(--bone);
}

@keyframes log-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Чат мастеров и личка владельца в Telegram ---------- */
.tg {
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    radial-gradient(400px 300px at 100% 0%, rgba(206, 49, 34, 0.06), transparent 70%),
    #EEE8E0;
}

.tg__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 18px;
  background: rgba(251, 249, 246, 0.94);
  border-bottom: 1px solid rgba(23, 19, 15, 0.06);
  flex: 0 0 auto;
}

.tg__ava {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tar);
  flex: 0 0 auto;
}

.tg__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tg__title b {
  font: 700 14px/1.1 var(--text);
  color: var(--ink);
}

.tg__title span {
  font-size: 11.5px;
  line-height: 1.1;
  color: var(--steel);
  white-space: nowrap;
}

.tg__mute {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.06);
  font: 600 11px/1 var(--text);
  color: var(--steel);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s;
}

.app.is-night .tg__mute {
  opacity: 1;
}

.tg__feed {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30px);
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 90%;
  flex: 0 0 auto;
}

.msg.is-new {
  animation: msg-in 0.6s var(--spring) both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.msg__ava {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tar);
  flex: 0 0 auto;
  font: 800 12px/1 var(--head);
  color: #fff;
}

.msg__ava .mono--xs {
  padding: 2px 4px;
}

.msg__ava .mono--xs > span {
  font-size: 8.5px;
}

.msg--human .msg__ava {
  background: var(--steel);
}

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

.msg__bubble {
  padding: 9px 12px 10px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 19, 15, 0.06);
}

.msg__who {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
  font: 700 12px/1.2 var(--text);
  color: var(--signal);
}

.msg__who time {
  font-weight: 500;
  color: var(--ash);
}

.msg--human .msg__who {
  color: var(--steel);
}

.msg--note .msg__bubble {
  background: #FFF5F3;
  box-shadow: inset 0 0 0 1.5px rgba(206, 49, 34, 0.35);
}

.msg--calm .msg__bubble {
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 19, 15, 0.06);
}

.note__title {
  margin-bottom: 3px;
  font: 800 13px/1.2 var(--head);
  color: var(--signal);
}

.msg--calm .note__title {
  color: var(--ink);
}

.note__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.note__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(23, 19, 15, 0.04);
}

.note__item small {
  display: block;
  font-size: 11px;
  color: var(--steel);
}

.req__title {
  font: 800 14px/1.1 var(--head);
  letter-spacing: -0.01em;
}

.req__svc {
  margin-top: 4px;
  font-weight: 600;
}

.req__line {
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.req__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.06);
  font: 600 10.5px/1 var(--text);
  color: var(--steel);
}

.chip--hot {
  background: rgba(206, 49, 34, 0.1);
  color: var(--signal);
}

.chip svg {
  width: 10px;
  height: 10px;
}

.req__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(23, 19, 15, 0.07);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.req__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
  flex: 0 0 auto;
}

.req__status.is-done i {
  background: #3E9E57;
}

.req__status.is-warn {
  color: var(--signal);
}

.req__status.is-warn i {
  background: var(--signal);
}

.req__status.is-flash {
  animation: status-in 0.6s var(--ease-out);
}

@keyframes status-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

.kb {
  display: flex;
  gap: 5px;
}

.kb button,
.note__item button {
  flex: 1 1 0;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: 600 12.5px/1 var(--text);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(23, 19, 15, 0.06);
  transition: background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.3s;
}

.kb .kb--main,
.note__item button {
  background: var(--signal);
  color: #fff;
}

.note__item button {
  flex: 0 0 auto;
  height: 30px;
}

.kb button.is-pressed,
.note__item button.is-pressed {
  transform: scale(0.94);
}

/* Кнопка, которую сейчас «нажмёт» мастер: её можно нажать и самому */
.kb button.is-cue,
.note__item button.is-cue {
  cursor: pointer;
  animation: cue 1.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(206, 49, 34, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(206, 49, 34, 0); }
}

.kb button:not(.is-cue),
.note__item button:not(.is-cue) {
  pointer-events: none;
}

.kb-done {
  display: inline-block;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  white-space: nowrap;
  animation: status-in 0.6s var(--ease-out);
}

/* ---------- CRM ---------- */
.crm {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
}

.crm__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(23, 19, 15, 0.06);
  flex: 0 0 auto;
}

.crm__bar b {
  font: 800 16px/1 var(--head);
  color: var(--ink);
}

.crm__tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.05);
}

.crm__tabs span {
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 11.5px/1 var(--text);
  color: var(--steel);
}

.crm__tabs .is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 19, 15, 0.1);
}

.crm__search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.05);
  font-size: 11.5px;
  color: var(--ash);
}

.crm__search svg {
  width: 13px;
  height: 13px;
}

.crm__cols {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 26px);
  mask-image: linear-gradient(to top, transparent 0, #000 26px);
}

.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 18px;
  background: rgba(23, 19, 15, 0.035);
}

.col__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 4px 2px;
  font: 700 12px/1 var(--text);
  color: var(--ink-2);
}

.col__head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand);
}

.col[data-col="new"] .col__head i {
  background: var(--signal);
}

.col[data-col="work"] .col__head i {
  background: #D9A441;
}

.col[data-col="done"] .col__head i {
  background: #3E9E57;
}

.col__head b {
  margin-left: auto;
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #fff;
  font: 700 11px/1 var(--text);
  text-align: center;
  color: var(--ink);
}

.col__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  position: relative;
  padding: 9px 10px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 19, 15, 0.06), 0 8px 18px -14px rgba(23, 19, 15, 0.35);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-2);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}

.card__top time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--ash);
  white-space: nowrap;
}

.card__svc {
  overflow: hidden;
  margin-top: 2px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
  color: var(--steel);
  white-space: nowrap;
}

.card__meta > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--ink);
}

.who i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tar);
  font: 800 9px/1 var(--head);
  font-style: normal;
  color: #fff;
}

.badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--signal);
  font: 700 10px/1 var(--text);
  color: #fff;
  white-space: nowrap;
}

.badge--soft {
  background: rgba(23, 19, 15, 0.07);
  color: var(--steel);
}

.card.is-new {
  animation: card-in 0.6s var(--spring) both;
}

.card.is-flash::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: card-flash 1.1s var(--ease-out) forwards;
}

.card.is-moving {
  z-index: 3;
  box-shadow: 0 18px 34px -14px rgba(23, 19, 15, 0.5);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes card-flash {
  0% { box-shadow: inset 0 0 0 2px rgba(206, 49, 34, 0.9); }
  100% { box-shadow: inset 0 0 0 2px rgba(206, 49, 34, 0); }
}

/* ---------- Телефон клиента ---------- */
.win--phone {
  border-radius: 46px;
  background: #0B0908;
  box-shadow:
    0 60px 120px -50px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(242, 238, 231, 0.14),
    inset 0 0 0 7px #1D1814;
}

.phone {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(260px 240px at 20% 0%, rgba(206, 49, 34, 0.55), transparent 70%),
    radial-gradient(260px 300px at 100% 100%, rgba(145, 138, 128, 0.35), transparent 70%),
    linear-gradient(170deg, #3A2A22, #17130F 70%);
  color: #fff;
}

.phone__island {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  border-radius: 12px;
  background: #000;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 0 26px;
  font: 600 11px/1 var(--text);
  font-variant-numeric: tabular-nums;
}

.phone__icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.phone__icons svg {
  display: block;
  height: 9px;
  width: auto;
  fill: currentColor;
}

.phone__lock {
  margin-top: 30px;
  text-align: center;
}

.phone__big {
  font: 700 54px/1 var(--head);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.phone__date {
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

.phone__notes {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pnote {
  padding: 11px 13px 12px;
  border-radius: 20px;
  background: rgba(251, 249, 246, 0.9);
  color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  transition: opacity 0.4s, transform 0.4s;
}

.pnote.is-new {
  animation: pnote-in 0.7s var(--spring) both;
}

.pnote.is-old {
  opacity: 0.6;
  transform: scale(0.94);
  transform-origin: top center;
}

.pnote.is-focus {
  box-shadow: 0 0 0 2px rgba(224, 71, 58, 0.8), 0 18px 34px -14px rgba(0, 0, 0, 0.7);
}

.pnote__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 10.5px/1 var(--text);
  color: var(--steel);
}

.pnote__app {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #3E9E57;
}

.pnote__head time {
  margin-left: auto;
}

.pnote__from {
  margin-top: 6px;
  font: 700 12.5px/1.1 var(--text);
}

.pnote__text {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}

.pnote__meta {
  display: inline-flex;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.07);
  font: 600 10px/1.2 var(--text);
  color: var(--steel);
}

@keyframes pnote-in {
  from { opacity: 0; transform: translateY(-34px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.phone__nonum {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 22px;
  background: rgba(14, 11, 9, 0.8);
  box-shadow: inset 0 0 0 1.5px rgba(224, 71, 58, 0.7);
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.4s, transform 0.5s var(--spring);
}

.phone__nonum b {
  font: 800 15px/1 var(--head);
  color: var(--signal-hi);
}

.phone__nonum span {
  font-size: 12px;
  color: var(--sand);
}

.phone.is-nonum .phone__nonum {
  opacity: 1;
  transform: none;
}

.phone__home {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 96px;
  height: 4px;
  margin-left: -48px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
}

/* ---------- Владелец ---------- */
.own {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  overflow: hidden;
}

.own__card {
  padding: 13px 14px 14px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 19, 15, 0.06);
}

.own__period {
  font: 700 12px/1.2 var(--text);
  color: var(--steel);
}

.own__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.kpi {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(23, 19, 15, 0.04);
}

.kpi b {
  display: block;
  font: 800 22px/1 var(--head);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: color 0.3s;
}

.kpi span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.15;
  color: var(--steel);
}

.kpi.is-alert b {
  color: var(--signal);
}

.kpi.is-bump b {
  animation: bump 0.8s var(--ease-out);
}

@keyframes bump {
  0% { transform: none; color: var(--signal); }
  30% { transform: translateY(-4px); color: var(--signal); }
  100% { transform: none; }
}

.own__bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 11px;
}

.bar {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.1;
  color: var(--ink-2);
}

.bar__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.06);
  overflow: hidden;
}

.bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--tar);
  transition: width 1s var(--ease-out), background 0.4s;
}

.bar.is-bump .bar__fill {
  background: var(--signal);
}

.bar__n {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}

.own__alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oalert {
  padding: 10px 12px 11px;
  border-radius: 18px 18px 18px 6px;
  background: #FFF5F3;
  box-shadow: inset 0 0 0 1.5px rgba(206, 49, 34, 0.35);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  animation: msg-in 0.6s var(--spring) both;
}

.oalert b {
  display: block;
  margin-bottom: 3px;
  font: 800 13px/1.2 var(--head);
  color: var(--signal);
}

.oalert.is-ok {
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 19, 15, 0.06);
}

.oalert.is-ok b {
  color: #2F7D45;
}

.own__report {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #EEE8E0;
  transform: translateY(104%);
  transition: transform 0.8s var(--spring);
}

.own__report.is-on {
  transform: none;
}

.rep {
  padding: 14px 15px 15px;
  border-radius: 20px 20px 20px 6px;
  background: var(--tar);
  color: var(--bone);
  box-shadow: 0 18px 34px -18px rgba(23, 19, 15, 0.8);
}

.rep__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rep__head b {
  font: 800 15px/1.1 var(--head);
  color: #fff;
}

.rep__head em {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(206, 49, 34, 0.2);
  font: 700 11px/1 var(--text);
  font-style: normal;
  color: var(--signal-hi);
}

.rep__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}

.rep__kpis div {
  padding: 8px;
  border-radius: 12px;
  background: rgba(242, 238, 231, 0.06);
}

.rep__kpis b {
  display: block;
  font: 800 17px/1 var(--head);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.rep__kpis span {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  line-height: 1.15;
  color: var(--ash);
}

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

.rep__bars .bar {
  color: var(--sand);
}

.rep__bars .bar__track {
  background: rgba(242, 238, 231, 0.08);
}

.rep__bars .bar__fill {
  background: var(--bone);
  transition-duration: 1.2s;
}

.rep__bars .bar:first-child .bar__fill {
  background: var(--signal);
}

.rep__bars .bar__n {
  color: #fff;
}
