/* ══════════════════════════════════════════════════════════
   ATALHOS
══════════════════════════════════════════════════════════ */
.atalhos-shell {
  display: grid;
  gap: 18px;
}

.atalhos-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(34, 197, 94, .16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 9% 2%, rgba(34, 197, 94, .20), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(245, 158, 11, .14), transparent 30%),
    linear-gradient(135deg, rgba(15, 18, 25, .98), rgba(13, 16, 23, .92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.atalhos-hero-glow {
  position: absolute;
  inset: auto -90px -130px auto;
  width: 280px;
  height: 280px;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(34, 197, 94, .14);
  filter: blur(46px);
}

.atalhos-hero-content,
.atalhos-hero-stats {
  position: relative;
  z-index: 1;
}

.atalhos-eyebrow,
.atalhos-card-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.atalhos-hero h2 {
  margin: 10px 0;
  max-width: 680px;
  color: var(--text);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.atalhos-hero p {
  max-width: 660px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.75;
}

.atalhos-hero p strong { color: var(--green); font-family: var(--mono); }

.atalhos-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: end;
}

.atalhos-stat-card {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 15px;
  background: rgba(20, 24, 32, .72);
  backdrop-filter: blur(10px);
}

.atalhos-stat-card span {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.atalhos-stat-card small {
  display: block;
  margin-top: 9px;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
}

.atalhos-stat-card.accent {
  border-color: rgba(34, 197, 94, .25);
  background: rgba(34, 197, 94, .08);
}
.atalhos-stat-card.accent span { color: var(--green); }

.atalhos-stat-card.warn {
  border-color: rgba(245, 158, 11, .23);
  background: rgba(245, 158, 11, .07);
}
.atalhos-stat-card.warn span { color: var(--amber); }

.atalhos-layout {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.atalhos-create-card,
.atalhos-list-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 24, 32, .86), rgba(15, 18, 25, .96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
}

.atalhos-create-card {
  padding: 20px;
  position: sticky;
  top: 86px;
}

.atalhos-list-card { overflow: hidden; }

.atalhos-card-head,
.atalhos-list-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.atalhos-list-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.atalhos-muted {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
}

.atalhos-live-command,
.atalhos-count {
  flex-shrink: 0;
  padding: 6px 9px;
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, .08);
  font-family: var(--mono);
  font-size: 10px;
}

.atalhos-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.atalhos-field {
  display: grid;
  gap: 7px;
}

.atalhos-field span {
  color: var(--text2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.atalhos-field .inp {
  border-radius: 10px;
  background: rgba(13, 16, 23, .86);
}

.atalhos-field textarea.inp {
  min-height: 170px;
  resize: vertical;
  line-height: 1.55;
}


.atalhos-media-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, .14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, .11), transparent 28%),
    linear-gradient(180deg, rgba(13, 16, 23, .94), rgba(8, 10, 15, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.atalhos-media-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, .35), transparent);
}

.atalhos-media-panel-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.atalhos-media-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.atalhos-media-helper {
  margin-top: 3px;
  color: var(--text3);
  font-size: 11px;
  line-height: 1.45;
}

.atalhos-media-selected-count {
  flex-shrink: 0;
  padding: 5px 8px;
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 999px;
  color: #93c5fd;
  background: rgba(59, 130, 246, .08);
  font-family: var(--mono);
  font-size: 10px;
}

.atalhos-media-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: rgba(8, 10, 15, .72);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.atalhos-media-search:focus-within {
  border-color: rgba(34, 197, 94, .42);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .07);
}

.atalhos-media-search span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 15px;
}

.atalhos-media-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
}

.atalhos-media-search input::placeholder { color: var(--text3); }

.atalhos-media-filters,
.atalhos-media-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.atalhos-media-filter,
.atalhos-media-selected-pill {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(20, 24, 32, .72);
  color: var(--text2);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}

.atalhos-media-filter {
  padding: 6px 9px;
}

.atalhos-media-filter:hover,
.atalhos-media-filter.active {
  border-color: rgba(34, 197, 94, .25);
  color: var(--green);
  background: rgba(34, 197, 94, .08);
}

.atalhos-media-selected {
  min-height: 28px;
  padding: 8px;
  border: 1px dashed rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .012);
}

.atalhos-media-selected-empty {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 10px;
}

.atalhos-media-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px;
  color: #93c5fd;
  border-color: rgba(59, 130, 246, .2);
  background: rgba(59, 130, 246, .08);
}

.atalhos-media-selected-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, .25);
  color: var(--red);
  background: rgba(239, 68, 68, .08);
}

.atalhos-media-selected-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atalhos-media-selected-pill strong {
  font-size: 12px;
  line-height: 1;
}

.atalhos-media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 9px;
  max-height: 250px;
  overflow: auto;
  padding: 2px;
}

.atalhos-media-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(13, 16, 23, .78);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.atalhos-media-option:hover,
.atalhos-media-option.is-selected {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, .3);
  background: rgba(20, 24, 32, .86);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.atalhos-media-option.is-selected {
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, .14), transparent 38%),
    rgba(13, 16, 23, .88);
}

.atalhos-media-check {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, .08);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.atalhos-media-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  font-size: 18px;
  line-height: 1;
}

.atalhos-media-info {
  min-width: 0;
  padding-right: 24px;
}

.atalhos-media-info strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atalhos-media-info small {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.atalhos-media-empty {
  grid-column: 1 / -1;
  padding: 22px 14px;
  border: 1px dashed var(--border2);
  border-radius: 14px;
  color: var(--text3);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255, 255, 255, .012);
}

.atalhos-media-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.atalhos-media-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 180px;
  padding: 4px 7px;
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 999px;
  color: #93c5fd;
  background: rgba(59, 130, 246, .08);
  font-family: var(--mono);
  font-size: 10px;
}

.atalhos-media-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atalhos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atalhos-msg {
  min-height: 18px;
  margin-top: 12px;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 11px;
}

.atalhos-grid {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.atalhos-empty-state {
  padding: 34px 18px;
  border: 1px dashed var(--border2);
  border-radius: 14px;
  color: var(--text3);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255, 255, 255, .012);
}

.atalhos-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(13, 16, 23, .74);
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.atalhos-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green), var(--amber));
  box-shadow: 0 0 24px rgba(34, 197, 94, .2);
}

.atalhos-item:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, .28);
  background: rgba(20, 24, 32, .82);
}

.atalhos-command {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.atalhos-command code {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, .08);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atalhos-command small {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atalhos-message-preview {
  color: var(--text2);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.atalhos-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1180px) {
  .atalhos-hero,
  .atalhos-layout { grid-template-columns: 1fr; }
  .atalhos-create-card { position: static; }
}

@media (max-width: 760px) {
  .atalhos-hero { padding: 20px; }
  .atalhos-hero-stats { grid-template-columns: 1fr; }
  .atalhos-card-head,
  .atalhos-list-head,
  .atalhos-item { display: grid; }
  .atalhos-item { grid-template-columns: 1fr; }
  .atalhos-item-actions { justify-content: flex-start; }
}
