/*
 * Контекстная строка над главным заголовком.
 * Визуально повторяет строку списка из приложения: иконка, название и статус.
 */

.list-context {
  --list-context-ink: #15171c;
  --list-context-muted: #707680;
  --list-context-blue: #4968f4;
  --list-context-blue-deep: #3155ed;
  --list-context-green: #36a56d;

  display: inline-grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  min-height: 54px;
  margin: 0 0 18px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(73, 104, 244, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 28px rgba(26, 36, 67, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--list-context-ink);
  text-align: left;
  vertical-align: top;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.list-context__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--list-context-blue), var(--list-context-blue-deep));
  box-shadow: 0 8px 18px rgba(73, 104, 244, 0.25);
  color: #fff;
}

.list-context__icon svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-context__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.list-context__copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.list-context__copy small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--list-context-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.list-context__status {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--list-context-green);
  box-shadow: 0 0 0 3px rgba(54, 165, 109, 0.13);
}

.list-context__chevron {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--list-context-blue);
}

.list-context__chevron svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-context--start {
  align-self: flex-start;
}

.list-context--auth {
  --list-context-ink: #f8fafc;
  --list-context-muted: #b7c0d1;
  --list-context-blue: #5c7cff;
  --list-context-blue-deep: #365be8;
  --list-context-green: #54d391;

  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(129, 151, 255, 0.25);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
  .list-context {
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    gap: 9px;
    min-height: 52px;
    padding: 7px 9px 7px 7px;
    border-radius: 15px;
  }

  .list-context__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .list-context__copy strong {
    font-size: 12px;
  }
}
