/* Grade, Acervo, Exibições, Vinhetas and Linha editorial in the Cinema style.
   Loaded after theme.css; all colors come from --kt-* tokens. */
:root {
  --kt-pending: #8a6a1e;
  --kt-danger: #ae4a42;
}
:root[data-theme='dark'] {
  --kt-pending: #cdb078;
  --kt-danger: #dc9088;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --kt-pending: #cdb078;
    --kt-danger: #dc9088;
  }
}

/* Status colors shared by the grid, the agenda and the history */
.f-status-published {
  --kt-status: var(--kt-ok);
}
.f-status-pending {
  --kt-status: var(--kt-pending);
}
.f-status-overdue {
  --kt-status: var(--kt-danger);
}
.f-status-cancelled {
  --kt-status: var(--kt-muted-2);
}
.f-status-published,
.f-status-pending,
.f-status-overdue,
.f-status-cancelled {
  --event-bg: color-mix(in srgb, var(--kt-status) 10%, var(--kt-surface));
  --event-border: color-mix(in srgb, var(--kt-status) 40%, transparent);
  --event-text: var(--kt-status);
}

/* Grade */
.f-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.f-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--kt-status) 35%, transparent);
  background: color-mix(in srgb, var(--kt-status) 10%, transparent);
  color: var(--kt-status);
  font: 500 12px var(--kt-mono);
}
.f-calendar-toolbar h2 {
  text-transform: none;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--kt-ink);
}
.f-calendar-week span {
  font: 500 11px var(--kt-mono);
  letter-spacing: 0.06em;
  color: var(--kt-muted-2);
}
.f-day {
  position: relative;
  background: var(--kt-surface);
  transition: background 0.15s;
}
.f-day.is-weekend {
  background: color-mix(in srgb, var(--kt-ink) 2.5%, var(--kt-surface));
}
.f-day.is-past .f-day-number {
  color: var(--kt-muted-2);
}
.f-day:hover {
  background: color-mix(in srgb, var(--kt-accent) 5%, var(--kt-surface));
}
.f-day .f-day-number {
  font: 500 12px var(--kt-mono);
  border-radius: 8px;
}
.f-day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--kt-accent);
}
.f-day.is-today .f-day-number {
  background: var(--kt-accent);
  color: var(--kt-on-accent);
  font-weight: 700;
}
.f-event.f-button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 6px 8px 6px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--kt-status, var(--kt-line)) 30%, transparent);
  border-left: 3px solid var(--kt-status, var(--kt-line-strong));
  background: color-mix(in srgb, var(--kt-status, var(--kt-ink)) 8%, var(--kt-surface));
  color: var(--kt-ink-2);
  text-align: left;
  font-size: 12px;
  font-weight: 400;
}
.f-event strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 12px var(--kt-mono);
  color: var(--kt-ink);
}
.f-event .f-channel {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}
.f-event .f-channel img {
  width: 12px;
  height: 12px;
}
.f-event small {
  color: var(--kt-status);
  font-size: 11px;
}
.f-agenda-item {
  border-left: 3px solid var(--kt-status, var(--kt-line-strong));
  padding-left: 12px;
}
.f-agenda-item strong {
  font-family: var(--kt-mono);
}

/* Acervo */
.f-media-card {
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.f-media-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px #00000033,
    inset 0 1px 0 var(--kt-highlight);
}
.f-media-card.selected,
.f-media-card:has(input[type='checkbox']:checked) {
  box-shadow:
    0 0 0 2px var(--kt-accent);
}
.f-media-info strong,
.f-media-card h3 {
  color: var(--kt-ink);
}
.f-video-meta,
.f-media-info small {
  font-family: var(--kt-mono);
  font-size: 12px;
  color: var(--kt-muted-2);
}
.f-upload-zone {
  border: 1.5px dashed var(--kt-line-strong);
  background: color-mix(in srgb, var(--kt-accent) 3%, transparent);
  border-radius: 14px;
}
.f-upload-zone:hover {
  border-color: var(--kt-accent);
}
.f-toolbar input[type='search'] {
  border-radius: 10px;
}

/* Exibições */
.f-project-row {
  border-radius: 12px;
  transition: background 0.15s;
}
.f-project-row:hover {
  background: color-mix(in srgb, var(--kt-ink) 3%, var(--kt-surface));
}
.f-history-filters {
  border-radius: 14px;
}
.f-publication-status,
.f-history-network {
  border-radius: 10px;
}
.f-history-network .f-badge,
.f-publication-status .f-badge {
  border-radius: 99px;
}

/* Vinhetas */
.f-cta-item {
  border-radius: 14px;
  border: 1px solid var(--kt-line);
  background: var(--kt-surface);
  box-shadow: inset 0 1px 0 var(--kt-highlight);
  overflow: hidden;
}
.f-cta-item video {
  background: var(--kt-video);
}

/* Linha editorial */
#preferences-form {
  border-radius: 16px;
}
#preferences-form .f-form-grid {
  gap: 18px 24px;
}
#preferences-form label,
.f-field {
  color: var(--kt-ink-2);
  font-weight: 500;
}
#preferences-form textarea,
#preferences-form input {
  border-radius: 10px;
}

/* Estúdio: the central panel. The hero follows the theme; only its effect colors change. */
:root {
  --kt-hero: #fbfbfa;
  --kt-hero-card: #ffffffd9;
  --kt-fx-dot: #0000001c;
  --kt-fx-a: #00000014;
  --kt-fx-b: #0000000d;
  --kt-fx-wave: #0000002b;
  --kt-fx-head: #00000061;
  --kt-fx-sweep: #0000000a;
  --kt-fx-blend: multiply;
  --kt-fx-c1: #ffffff;
  --kt-fx-c2: #e6e6e4;
  --kt-fx-c3: #f6f6f5;
  --kt-fx-c4: #dcdcda;
  --kt-hero-img: url('/img/hero-claro.webp');
  --kt-player-img: url('/img/player-claro.webp');
}
:root[data-theme='dark'] {
  --kt-hero: #29292b;
  --kt-hero-card: #1e1e1fb8;
  --kt-fx-dot: #ffffff17;
  --kt-fx-a: #ffffff1f;
  --kt-fx-b: #ffffff14;
  --kt-fx-wave: #ffffff2e;
  --kt-fx-head: #ffffff8c;
  --kt-fx-sweep: #ffffff14;
  --kt-fx-blend: screen;
  --kt-fx-c1: #000000;
  --kt-fx-c2: #2e2e30;
  --kt-fx-c3: #0c0c0d;
  --kt-fx-c4: #404044;
  --kt-hero-img: url('/img/hero-escuro.webp');
  --kt-player-img: url('/img/player-escuro.webp');
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --kt-hero: #29292b;
    --kt-hero-card: #1e1e1fb8;
    --kt-fx-dot: #ffffff17;
    --kt-fx-a: #ffffff1f;
    --kt-fx-b: #ffffff14;
    --kt-fx-wave: #ffffff2e;
    --kt-fx-head: #ffffff8c;
    --kt-fx-sweep: #ffffff14;
    --kt-fx-blend: screen;
    --kt-fx-c1: #000000;
    --kt-fx-c2: #2e2e30;
    --kt-fx-c3: #0c0c0d;
    --kt-fx-c4: #404044;
    --kt-hero-img: url('/img/hero-escuro.webp');
    --kt-player-img: url('/img/player-escuro.webp');
  }
}
/* Grade: filler cells look like days, not like the generic empty box. */
.f-calendar-grid {
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}
.f-day.empty {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--f-line);
  border-right: 1px solid var(--f-line);
  border-radius: 0;
  background: color-mix(in srgb, var(--kt-ink) 2.5%, var(--kt-surface));
}
.f-day.empty:nth-child(7n) {
  border-right: 0;
}
.kt-home {
  container: kt-home / inline-size;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 18px;
}
.kt-home > * {
  position: relative;
  z-index: 1;
}
.kt-home::before {
  content: '';
  position: absolute;
  inset: -20px 0 auto;
  height: 760px;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--kt-ink) 16%, transparent) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.kt-home > .f-notice,
.kt-home > .kt-first-steps {
  margin: 0;
}

.kt-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 340px;
  padding: 40px 40px 88px;
  border-radius: 20px;
  border: 1px solid var(--kt-line);
  background: var(--kt-hero);
  color: var(--kt-ink-2);
}
.kt-hero-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.kt-hero-fx i {
  position: absolute;
  display: block;
}
.kt-fx-grid {
  inset: 0;
  background-image: radial-gradient(var(--kt-fx-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 90% at 80% 20%, #000, transparent);
}
.kt-fx-image {
  inset: 0;
  background: var(--kt-hero-img) right center / cover no-repeat;
  mask-image: linear-gradient(#000 56%, transparent 74%);
}
.kt-hero-fx .kt-fx-shader {
  inset: 0;
  mix-blend-mode: var(--kt-fx-blend);
}
.kt-fx-shader canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.kt-fx-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.kt-fx-track svg {
  width: 100%;
  height: 100%;
}
.kt-fx-track path {
  fill: none;
  stroke: var(--kt-fx-wave);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.kt-hero-fx .kt-fx-head {
  inset: 0;
  border-right: 1px solid var(--kt-fx-head);
  background: linear-gradient(90deg, transparent 72%, var(--kt-fx-sweep));
  transform: translateX(-100%);
  animation: kt-playhead 22s linear infinite;
}
@keyframes kt-playhead {
  to {
    transform: translateX(0);
  }
}
.kt-hero-copy,
.kt-hero > .kt-next,
.kt-hero > .kt-send {
  position: relative;
  min-width: 0;
}
.kt-hero-copy .f-eyebrow {
  color: var(--kt-muted);
}
.kt-hero-copy h1 {
  margin: 12px 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--kt-ink);
  text-wrap: balance;
}
.kt-hero-copy h1 span {
  display: block;
  color: var(--kt-muted-2);
  font-weight: 500;
}
.kt-hero-copy p {
  max-width: 46ch;
  margin: 0 0 22px;
  color: var(--kt-muted);
  font-size: 15px;
  line-height: 1.6;
}
.kt-hero .kt-next {
  backdrop-filter: blur(8px);
  background: var(--kt-hero-card);
  border-color: var(--kt-line);
  box-shadow: inset 0 1px 0 var(--kt-highlight);
}

/* The send card: your latest originals, fanned out like a reel. */
.kt-send {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 14px 12px;
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--kt-ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.kt-send:hover {
  border-color: var(--kt-line);
  background: var(--kt-hero-card);
}
.kt-send-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.kt-send-copy strong {
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--kt-ink);
}
.kt-send-copy small {
  font-size: 13px;
  line-height: 1.45;
  color: var(--kt-muted);
}
.kt-send-art {
  width: 148px;
  height: 148px;
  background: var(--kt-player-img) center / contain no-repeat;
  transition: transform 0.2s;
}
.kt-send:hover .kt-send-art {
  transform: translateY(-3px) rotate(-1.5deg);
}
.kt-send-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kt-ink);
}
.kt-send-go .f-icon {
  width: 15px;
  height: 15px;
}
.kt-send-foot {
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--kt-line);
}
.kt-send-foot small {
  font-size: 12px;
  color: var(--kt-muted-2);
}
.kt-send-nets {
  display: flex;
  gap: 5px;
}
.kt-send-nets .f-channel {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.kt-send-nets .f-channel img {
  width: 15px;
  height: 15px;
}

.kt-stages-block {
  display: grid;
  gap: 12px;
}
.kt-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kt-flow {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  width: 100%;
  position: relative;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--kt-line);
  background: var(--kt-surface);
  color: var(--kt-ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.kt-flow:hover {
  border-color: var(--kt-line-strong);
  transform: translateY(-1px);
}
.kt-flow-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kt-muted);
}
.kt-flow-head .f-icon {
  width: 15px;
  height: 15px;
}
.kt-flow strong {
  font: 500 28px/1.3 var(--kt-mono);
  letter-spacing: -0.03em;
  color: var(--kt-ink);
}
.kt-flow small {
  font-size: 12px;
  color: var(--kt-muted-2);
}
.kt-flow.is-attention .kt-flow-head {
  color: var(--kt-ink);
}
.kt-flow.is-attention .kt-flow-head::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kt-pending);
}
.kt-flow.is-open {
  border-color: var(--kt-accent);
  box-shadow: inset 0 0 0 1px var(--kt-accent);
}
.kt-flow.is-open::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--kt-accent);
  border-bottom: 2px solid var(--kt-accent);
  background: var(--kt-surface);
  transform: translateX(-50%) rotate(45deg);
}

.kt-mini-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kt-mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--kt-line);
}
.kt-mini-row:first-child {
  border-top: 0;
}
.kt-mini-row img {
  flex: none;
  width: 34px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--kt-video);
}
.kt-mini-row > div {
  flex: 1;
  display: grid;
  min-width: 0;
}
.kt-mini-row strong,
.kt-mini-grid strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  color: var(--kt-ink-2);
}
.kt-mini-row small,
.kt-mini-grid small {
  font-size: 12px;
  color: var(--kt-muted-2);
}
.kt-mini-nets {
  display: flex;
  gap: 4px;
}
.kt-mini-nets .f-channel {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.kt-mini-nets .f-channel img {
  width: 15px;
  height: 15px;
}
.kt-mini-row .f-button {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
}
.kt-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 116px));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kt-mini-grid li {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.kt-mini-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  margin-bottom: 4px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--kt-video);
}
.kt-mini-grid strong {
  font-size: 13px;
}
.kt-mini-empty,
.kt-mini-more {
  margin: 0;
  font-size: 13px;
  color: var(--kt-muted);
}
.kt-mini-more {
  margin-top: 10px;
}

.kt-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.kt-home-main,
.kt-home-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.kt-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--kt-line);
  background: var(--kt-surface);
  box-shadow: inset 0 1px 0 var(--kt-highlight);
}
.kt-card > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.kt-card h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--kt-ink);
}
.kt-card header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--kt-muted);
}
.kt-card header .f-button {
  flex: none;
}
.kt-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.kt-week button {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 84px;
  padding: 10px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: color-mix(in srgb, var(--kt-ink) 4%, transparent);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}
.kt-week button:hover {
  border-color: var(--kt-line-strong);
}
.kt-week span {
  font: 500 11px var(--kt-mono);
  letter-spacing: 0.06em;
  color: var(--kt-muted-2);
}
.kt-week b {
  font: 500 18px var(--kt-mono);
  color: var(--kt-ink);
}
.kt-week em {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
  padding: 2px 4px 0;
  font-style: normal;
}
.kt-slot {
  --kt-slot: var(--kt-pending);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 5px 2px 3px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--kt-slot) 55%, transparent);
  background: var(--kt-surface);
}
.kt-slot.is-ok {
  --kt-slot: var(--kt-ok);
}
.kt-slot.is-bad {
  --kt-slot: var(--kt-danger);
}
.kt-slot .f-channel {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.kt-slot .f-channel img {
  width: 13px;
  height: 13px;
}
.kt-week .kt-slot small {
  font: 500 11px var(--kt-mono);
  color: var(--kt-ink-2);
}
.kt-week .kt-slot-more {
  font: 500 11px var(--kt-mono);
  color: var(--kt-muted);
}
.kt-week button.is-today .kt-slot-more {
  color: var(--kt-on-accent);
}
.kt-week button.is-chosen {
  border-color: var(--kt-accent);
  box-shadow: inset 0 0 0 1px var(--kt-accent);
}
.kt-week button.is-today {
  background: var(--kt-accent);
}
.kt-week button.is-today span,
.kt-week button.is-today b {
  color: var(--kt-on-accent);
}
.kt-week button.is-today.is-chosen {
  box-shadow:
    0 0 0 2px var(--kt-surface),
    0 0 0 4px var(--kt-accent);
}
.kt-week-day {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--kt-line);
}
.kt-week-day > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.kt-week-day h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--kt-ink);
}
.kt-week-day > header small {
  font: 500 12px var(--kt-mono);
  color: var(--kt-muted-2);
}
.kt-week-day > header .f-button {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}

.kt-nets {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kt-nets li {
  border-top: 1px solid var(--kt-line);
}
.kt-net {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.kt-net:hover {
  background: color-mix(in srgb, var(--kt-ink) 5%, transparent);
}
.kt-net-text {
  flex: 1;
  display: grid;
  min-width: 0;
}
.kt-net strong {
  font-size: 14px;
  color: var(--kt-ink-2);
}
.kt-net small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--kt-muted-2);
}
.kt-net > i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kt-line-strong);
}
.is-on .kt-net > i {
  background: var(--kt-ok);
}

.kt-home-aud > strong {
  display: block;
  font: 500 32px/1.2 var(--kt-mono);
  letter-spacing: -0.03em;
  color: var(--kt-ink);
}
.kt-home-aud > small {
  font: 500 12px var(--kt-mono);
  color: var(--kt-muted-2);
}
.kt-home-aud > small.is-up {
  color: var(--kt-ok);
}
.kt-home-aud > small.is-down {
  color: var(--kt-danger);
}
.kt-home-aud > svg {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 12px;
}
.kt-home-aud polygon {
  fill: var(--kt-accent-soft);
}
.kt-home-aud polyline {
  fill: none;
  stroke: var(--kt-accent);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.kt-home .kt-first-steps small.kt-first-hint {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--kt-muted);
}
.kt-first-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

@container kt-home (max-width: 980px) {
  .kt-home-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kt-home-side {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
  }
}
@container kt-home (max-width: 720px) {
  .kt-fx-image {
    background-size: 190% auto;
    background-position: right top;
    mask-image: linear-gradient(#000 25%, transparent 48%);
  }
  .kt-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 24px 84px;
  }
  .kt-hero-copy h1 {
    font-size: 32px;
  }
  .kt-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@container kt-home (max-width: 560px) {
  .kt-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kt-flow strong {
    font-size: 24px;
  }
  .kt-flow.is-open::after {
    display: none;
  }
  .kt-card {
    padding: 16px;
  }
  .kt-week button {
    min-height: 74px;
  }
  .kt-week em {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .kt-slot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--kt-slot);
  }
  .kt-slot .f-channel,
  .kt-slot small {
    display: none;
  }
  .kt-mini-nets {
    display: none;
  }
  .kt-send {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 8px 0;
  }
  .kt-send-art {
    width: 104px;
    height: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kt-hero-fx .kt-fx-head {
    animation: none;
  }
  .kt-hero-fx .kt-fx-head {
    transform: translateX(-38%);
  }
}

/* Empty states */
.f-empty-art {
  display: block;
  width: min(240px, 70%);
  height: auto;
  margin: 0 auto 8px;
}
.kt-mini-blank {
  display: flex;
  align-items: center;
  gap: 14px;
}
.kt-mini-blank .f-empty-art {
  flex: none;
  width: 104px;
  margin: 0;
}

/* Video player */
.kt-player {
  display: block;
  width: 100%;
  background: var(--kt-video);
  --media-primary-color: #f1f1f0;
  --media-secondary-color: transparent;
  --media-text-color: #f1f1f0;
  --media-icon-color: #f1f1f0;
  --media-font-family: var(--kt-mono);
  --media-font-size: 12px;
  --media-control-background: transparent;
  --media-control-hover-background: #ffffff1f;
  --media-control-padding: 8px;
  --media-control-height: 22px;
  --media-range-bar-color: #f1f1f0;
  --media-range-track-background: #ffffff38;
  --media-range-track-height: 3px;
  --media-range-track-border-radius: 4px;
  --media-range-thumb-background: #f1f1f0;
  --media-range-thumb-width: 11px;
  --media-range-thumb-height: 11px;
  --media-time-range-buffered-color: #ffffff59;
  --media-focus-box-shadow: inset 0 0 0 2px #f1f1f0;
}
.kt-player media-control-bar {
  width: 100%;
  background: linear-gradient(180deg, transparent, #000000b3);
}
.kt-player media-time-range {
  flex: 1;
  min-width: 40px;
}
.kt-player media-volume-range {
  width: 64px;
}
.kt-screen .kt-player {
  height: 100%;
}
.kt-screen .kt-player media-volume-range {
  display: none;
}
.kt-screen .kt-overlay {
  pointer-events: none;
}
@media (hover: none) {
  .kt-player media-volume-range {
    display: none;
  }
}

/* Login: the whole screen is a camera viewfinder. Always the dark room, in both themes. */
.login.kt-gate {
  --kt-surface: #28282a;
  --kt-canvas: #1e1e1f;
  --kt-line: #48484c;
  --kt-line-strong: #5e5e63;
  --kt-muted-2: #a8a8ab;
  --kt-muted: #bdbdbf;
  --kt-ink-2: #e2e2e2;
  --kt-ink: #f1f1f0;
  --kt-accent: #e2e2e0;
  --kt-accent-hi: #f2f2f0;
  --kt-on-accent: #222223;
  --kt-accent-text: #e2e2e0;
  --f-line: #48484c;
  --line: #48484c;
  --ink: #f1f1f0;
  --muted: #bdbdbf;
  color-scheme: dark;
  position: relative;
  display: grid;
  grid-template: auto 1fr auto / minmax(0, 1fr);
  min-height: 100dvh;
  height: auto;
  padding: 44px 56px 40px;
  overflow: hidden auto;
  color: var(--kt-ink-2);
  background: linear-gradient(transparent 62%, #161617 80%), #161617 url('/img/login-fundo.webp') center / cover no-repeat;
}
.kt-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0 solid #ffffffb3;
}
.kt-corner.is-tl {
  top: 18px;
  left: 18px;
  border-width: 2px 0 0 2px;
}
.kt-corner.is-tr {
  top: 18px;
  right: 18px;
  border-width: 2px 2px 0 0;
}
.kt-corner.is-bl {
  bottom: 18px;
  left: 18px;
  border-width: 0 0 2px 2px;
}
.kt-corner.is-br {
  right: 18px;
  bottom: 18px;
  border-width: 0 2px 2px 0;
}
.kt-gate-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.kt-gate-top > span {
  font: 500 13px var(--kt-mono);
  letter-spacing: 0.04em;
  color: var(--kt-muted);
}
.kt-gate .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.kt-gate .brand strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f1f1f0;
}
.kt-gate .f-logo {
  width: 30px;
  height: 30px;
  background: transparent;
  box-shadow: none;
}
.kt-gate .f-logo svg {
  width: 100%;
  height: 100%;
  stroke: #f1f1f0;
}
.kt-gate .f-logo svg circle {
  fill: #f1f1f0;
}
.kt-gate .login-access {
  display: grid;
  place-items: center;
  padding: 28px 0;
  background: transparent;
}
.kt-gate .logincard {
  width: min(400px, 100%);
  max-width: none;
}
.kt-gate .logincard h2 {
  color: var(--kt-ink);
}
.kt-gate .logincard input {
  background: #1e1e1fcc;
  color: var(--kt-ink);
  border-color: var(--kt-line-strong);
}
.kt-gate .logincard a.loginbtn {
  border: 1px solid var(--kt-line-strong);
  background: #1e1e1fcc;
  color: var(--kt-ink);
}
.kt-gate .logincard a.loginbtn:hover {
  background: #3a3a3c;
}
.kt-gate-reel ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font: 500 12px var(--kt-mono);
  letter-spacing: 0.04em;
  color: var(--kt-muted);
}
.kt-gate-track {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: #ffffff2e;
}
.kt-gate-track i {
  position: absolute;
  inset: 0;
  display: block;
  background: #f1f1f0;
  transform: translateX(-100%);
  animation: kt-gate-run 14s linear infinite;
}
@keyframes kt-gate-run {
  to {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .kt-gate-track i {
    animation: none;
    transform: translateX(-60%);
  }
}
@media (max-width: 760px) {
  .login.kt-gate {
    padding: 34px 28px 30px;
  }
  .kt-gate-top > span {
    display: none;
  }
  .kt-corner {
    width: 28px;
    height: 28px;
  }
  .kt-corner.is-tl,
  .kt-corner.is-tr {
    top: 12px;
  }
  .kt-corner.is-bl,
  .kt-corner.is-br {
    bottom: 12px;
  }
  .kt-corner.is-tl,
  .kt-corner.is-bl {
    left: 12px;
  }
  .kt-corner.is-tr,
  .kt-corner.is-br {
    right: 12px;
  }
}

/* The top bar stays above the page, so the bell panel opens over the content. */
.f-top {
  z-index: 30;
}
.kt-mini-nets .f-channel,
.kt-send-nets .f-channel {
  border-color: transparent;
  background: transparent;
}
.kt-pending ul {
  margin-top: -4px;
}

.kt-gate .logincard > :last-child:not(form) {
  display: none;
}
.kt-gate .access-divider span {
  background: transparent;
}
.kt-gate .login-access {
  padding: 16px 0;
}
