/*
Theme Name: Smash Radio Air Suite Private Pro
Theme URI: https://example.com/
Author: OpenAI
Description: Tema privado de cabina con operador, producción, programador y admin.
Version: 22.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: smash-radio-air-suite-private-pro
*/

body.smash-radio-theme {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #d9dde3;
  color: #203347;
}

.operator-grid {
  grid-template-columns: minmax(760px,1.45fr) minmax(360px,0.9fr) 380px !important;
}
.operator-topbar-right {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 380px;
  align-items: start;
  gap: 14px;
  width: min(100%, 860px);
}
.operator-topbar-right .smash-top-right {
  min-width: 0;
  width: 100%;
  flex: 0 0 auto;
  align-self: start;
}
.operator-topbar-right .smash-click-card {
  min-height: 98px;
}
.operator-encoder-inline {
  width: 100%;
  max-width: 380px;
  padding: 16px;
  margin: 0;
  align-self: start;
}
.operator-encoder-inline .smash-btn.encoder-toggle {
  width: auto;
  height: 42px;
}
.cart-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.cart-grid-wide .smash-cart-btn {
  height: 108px;
  padding: 14px;
}
.cart-grid-wide .cart-slot-label {
  font-size: 15px;
  -webkit-line-clamp: 3;
}
.cart-grid-wide .cart-slot-meta {
  font-size: 12px;
}
@media (max-width: 1500px) {
  .operator-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr) 360px !important;
  }
}
@media (max-width: 1220px) {
  .operator-grid {
    grid-template-columns: 1fr !important;
  }
  .operator-topbar-right {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .operator-encoder-inline {
    max-width: none;
  }
}


.master-meter-rack {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid #a7b6c5;
  background: linear-gradient(180deg, #dfe7ef 0%, #cedae6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 10px 20px rgba(20,38,58,0.08);
}
.master-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.master-meter-title {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  color: #18344f;
}
.master-meter-tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #b5c2cf;
  background: linear-gradient(180deg, #f9fbfd, #e4ebf2);
  color: #46617b;
  font-size: 12px;
  font-weight: 700;
}
.master-meter-row {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 10px;
}
.master-meter-row + .master-meter-row {
  margin-top: 10px;
}
.master-meter-label {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #1b4166, #0f2b47);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 10px rgba(0,0,0,0.16);
}
.smash-meter.master-pro {
  height: 20px !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f2942, #081d32) !important;
  border: 1px solid rgba(96, 130, 164, 0.65);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.45), 0 4px 10px rgba(11,27,45,0.12);
  overflow: hidden;
}
.smash-meter.master-pro span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #59c8ff 0%, #63f07f 45%, #ffd75b 75%, #ff6a55 100%) !important;
  box-shadow: 0 0 14px rgba(99, 240, 127, 0.25);
}
.operator-encoder-inline {
  max-width: 360px;
}
@media (max-width: 1220px) {
  .master-meter-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


.operator-topline-panel{grid-column:1 / -1;padding:12px 16px;overflow:hidden}
.operator-topline-grid{display:grid;grid-template-columns:130px 130px 130px minmax(420px,1fr);gap:12px;align-items:start}
.operator-mini-card{height:88px;display:flex;flex-direction:column;justify-content:center}
.topline-encoder{padding:12px 16px;border-radius:18px;min-width:0}
.operator-encoder-inline .encoder-connect-btn{height:52px}
.cabina-head-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(320px,420px);gap:16px;align-items:start}
.inline-master-rack{margin-top:0;align-self:start}
.master-meter-rack{margin-top:0}
.playlist-dropzone{border-radius:16px}
.operator-grid{align-items:start}
.smash-main,.smash-lib{min-width:0}
@media(max-width:1500px){.operator-topline-grid{grid-template-columns:repeat(3,130px) minmax(320px,1fr)}.cabina-head-row{grid-template-columns:1fr}}
@media(max-width:1180px){.operator-topline-grid{grid-template-columns:1fr 1fr}.cabina-head-row{grid-template-columns:1fr}.topline-encoder{grid-column:1 / -1}}

.operator-rolebar{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:14px;
  margin:16px 0 14px;
}
.operator-inline-topbar{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  align-items:center;
}
.operator-inline-card{
  min-height:46px;
  height:46px;
  padding:0 16px;
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:10px;
  background:linear-gradient(180deg,#f5f8fb,#e7edf3);
  border:1px solid #afbac7;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), 0 6px 14px rgba(17,37,58,.06);
}
.operator-inline-label{
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#5f7c98;
  font-weight:700;
  flex:0 0 auto;
}
.operator-inline-value{
  font-size:18px;
  line-height:1;
  font-weight:800;
  color:#17354f;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.operator-inline-encoder{
  justify-content:space-between;
}
.operator-inline-action{
  cursor:pointer;
}
.operator-inline-value.offline{ color:#be3f2f; }
.operator-inline-value.connecting{ color:#9c6b0f; }
.operator-inline-value.live{ color:#c62828; }
.operator-inline-config{
  height:32px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid #b7c1cb;
  background:linear-gradient(180deg,#ffffff,#e8edf3);
  color:#2f4861;
  font-weight:700;
  cursor:pointer;
}
.operator-grid{ grid-template-columns:minmax(760px,1.45fr) minmax(360px,.9fr) 380px !important; }
.operator-topline-panel{ display:none !important; }
.cabina-head-row{ grid-template-columns:minmax(220px,1fr) minmax(360px,460px); }
.operator-encoder-config-panel{ margin-top:16px; }
@media (max-width: 1400px){
  .operator-inline-topbar{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .operator-rolebar{ grid-template-columns:1fr; }
}
@media (max-width: 900px){
  .operator-inline-topbar{ grid-template-columns:1fr; }
}


/* v166 refined topbar + square premium cover */
.operator-rolebar{
  align-items:stretch;
  gap:16px;
}
.operator-inline-topbar{
  grid-template-columns:repeat(4,minmax(150px,1fr));
  gap:12px;
  grid-auto-rows:58px;
  align-items:stretch;
}
.operator-inline-card,
.operator-inline-encoder{
  min-height:58px;
  height:58px;
  padding:0 18px;
  border-radius:16px;
  box-sizing:border-box;
}
.operator-inline-card{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 8px 18px rgba(17,37,58,.07);
}
.operator-inline-card.drag-speech{
  cursor:grab;
}
.operator-inline-card.drag-speech:active{
  cursor:grabbing;
}
.operator-inline-label{
  font-size:10px;
  letter-spacing:.24em;
}
.operator-inline-value{
  font-size:17px;
  display:block;
  max-width:100%;
}
.operator-inline-encoder{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
}
.operator-inline-action{
  justify-self:start;
}
.operator-inline-config{
  height:34px;
  padding:0 14px;
  white-space:nowrap;
}
.smash-cover-img,
.smash-cover-fallback{
  width:100% !important;
  aspect-ratio:1 / 1;
  min-height:auto !important;
  max-height:none !important;
  height:auto !important;
  border-radius:22px !important;
}
.smash-cover-img{
  object-fit:cover;
  object-position:center;
  background:linear-gradient(180deg,#eef3f7,#dde5ee);
  border:1px solid #b8c4d0;
  box-shadow:0 16px 28px rgba(17,37,58,.14), inset 0 1px 0 rgba(255,255,255,.14) !important;
}
.smash-cover-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#f2f6fa 0%,#dfe7ef 100%) !important;
  border:1px solid #bcc9d5 !important;
  box-shadow:0 16px 28px rgba(17,37,58,.10), inset 0 1px 0 rgba(255,255,255,.92) !important;
}
@media (max-width: 1400px){
  .operator-inline-topbar{ grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:auto; }
  .operator-inline-card,
  .operator-inline-encoder{ height:58px; }
}
@media (max-width: 900px){
  .operator-inline-topbar{ grid-template-columns:1fr; }
}


.operator-audio-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.audio-control-card{padding:12px 14px;border-radius:14px;border:1px solid #c4d0db;background:linear-gradient(180deg,#f8fbfd,#e7eef4);box-shadow:inset 0 1px 0 rgba(255,255,255,.92);}
.audio-control-card span{font-weight:700;color:#28445f;}
.audio-control-card strong{color:#18344f;}
@media (max-width: 900px){.operator-audio-control-grid{grid-template-columns:1fr;}}


.cover-stack-panel{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.cover-speech-stack{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}
.cover-speech-card{
  width:100%;
  aspect-ratio:1 / 1;
  border-radius:22px;
  border:1px solid #b8c7d6;
  background:linear-gradient(180deg,#f7fbff 0%,#e6eef6 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 10px 22px rgba(17,37,58,.10);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  text-align:left;
  padding:16px;
  cursor:pointer;
  transition:transform .14s ease, box-shadow .14s ease, background .18s ease, border-color .18s ease;
}
.cover-speech-card:hover{
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 14px 28px rgba(17,37,58,.14);
}
.cover-speech-card:active{
  transform:translateY(1px);
}
.cover-speech-card.active{
  background:linear-gradient(180deg,#ff7069 0%,#d92e2e 100%);
  border-color:#b61f1f;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25), 0 14px 30px rgba(180,27,27,.28), 0 0 0 1px rgba(255,71,71,.22);
  color:#fff;
}
.cover-speech-card.active .cover-speech-kicker,
.cover-speech-card.active small{
  color:rgba(255,255,255,.88);
}
.cover-speech-kicker{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#4f6f8f;
}
.cover-speech-card strong{
  font-size:22px;
  line-height:1.05;
  color:#173652;
}
.cover-speech-card small{
  font-size:12px;
  color:#5f7993;
}


.premium-table tr[data-pl-index]{
  cursor: grab;
}
.premium-table tr[data-pl-index].dragging-row td{
  opacity: .55;
}
.premium-table tr[data-pl-index].playlist-drop-before td:first-child,
.premium-table tr[data-pl-index].playlist-drop-before td:last-child,
.premium-table tr[data-pl-index].playlist-drop-before td{
  box-shadow: inset 0 3px 0 #58b4e8;
}
.premium-table tr[data-pl-index].playlist-drop-after td:first-child,
.premium-table tr[data-pl-index].playlist-drop-after td:last-child,
.premium-table tr[data-pl-index].playlist-drop-after td{
  box-shadow: inset 0 -3px 0 #58b4e8;
}
.cover-speech-card.drag-speech{
  cursor: grab;
}
.cover-speech-card.drag-speech:active{
  cursor: grabbing;
}

.voice-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.voice-choice{width:100%;justify-content:center}

.production-row-new td{background:rgba(255,153,51,.14)!important;border-top:1px solid rgba(255,153,51,.28);border-bottom:1px solid rgba(255,153,51,.28);}
.production-row-new td:first-child{box-shadow:inset 4px 0 0 #ff9c2f;}


.programmer-layout{display:flex;flex-direction:column;gap:16px}
.programmer-panel{padding:18px}
.programmer-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.programmer-grid{display:grid;grid-template-columns:300px minmax(560px,1fr) 400px;gap:18px;margin-top:16px;align-items:start}
.programmer-column{display:flex;flex-direction:column;gap:16px;min-width:0}
.programmer-subcard{padding:14px}
.programmer-form-grid{display:grid;gap:10px}
.programmer-form-grid label{display:grid;gap:6px}
.programmer-source-list{max-height:560px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding-right:2px}
.programmer-source-item,.programmer-saved-item{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start;padding:16px 16px 14px;border:1px solid #cfd9e3;background:linear-gradient(180deg,#f8fbfe 0%,#eef4fa 100%);border-radius:18px;box-shadow:0 10px 24px rgba(18,45,74,.06), inset 0 1px 0 rgba(255,255,255,.78);overflow:hidden}
.programmer-saved-item.active{background:linear-gradient(180deg,#eef7ff 0%,#dceeff 100%);border-color:#69a7dc;box-shadow:0 12px 26px rgba(52,114,171,.16), inset 0 1px 0 rgba(255,255,255,.86)}
.programmer-inline-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.programmer-saved-main{min-width:0;display:grid;gap:10px;overflow:hidden}
.programmer-saved-title{font-size:18px;line-height:1.18;font-weight:800;color:#18324f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:normal;overflow-wrap:anywhere;hyphens:none}
.programmer-saved-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.programmer-meta-chip{display:inline-flex;align-items:center;justify-content:center;min-height:30px;max-width:100%;padding:4px 10px;border-radius:999px;background:#ffffff;border:1px solid #d1dce7;color:#44607c;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.saved-list-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.saved-list-actions .smash-btn{width:100%;min-width:0;height:40px;padding:0 10px}
.programmer-inline-actions.compact .smash-btn{height:34px;padding:0 10px}
.programmer-draft-table-wrap{max-height:760px;overflow:auto}
.programmer-draft-table td:last-child{min-width:170px}
.programmer-stats-grid{display:grid;grid-template-columns:1fr;gap:10px}
.programmer-stat-card{padding:12px;border-radius:14px;background:#f8fafc;border:1px solid #d6dee7;display:flex;justify-content:space-between;gap:12px;align-items:center}
.programmer-stat-card span{font-size:12px;color:#64778b;text-transform:uppercase;letter-spacing:.08em}
.programmer-stat-card strong{font-size:18px;color:#1f364c}
.programmer-stat-card.ok{background:#e9f8ef;border-color:#8cc7a1}
.programmer-stat-card.warn{background:#fff7e8;border-color:#e3c37a}
@media (max-width: 1480px){.programmer-grid{grid-template-columns:280px minmax(420px,1fr) 360px}}
@media (max-width: 1180px){.programmer-grid{grid-template-columns:1fr}.programmer-source-list,.programmer-draft-table-wrap{max-height:none}}


.operator-list-control{margin-top:14px;padding:14px}
.operator-list-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.operator-list-mode{display:flex;gap:8px;flex-wrap:wrap}
.operator-list-body{margin-top:12px}
.operator-list-stack{display:grid;gap:8px;max-height:220px;overflow:auto}
.operator-list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:14px;border:1px solid #d5dee7;background:#f8fbff;text-align:left;cursor:pointer;transition:all .16s ease}
.operator-list-row:hover{border-color:#8ab7e8;box-shadow:0 6px 18px rgba(46,168,255,.12)}
.operator-list-row.today{border-color:#ffbf66;background:linear-gradient(180deg,#fff6e6,#fff0cf)}
.operator-list-row.active{border-color:#2ea8ff;box-shadow:0 0 0 2px rgba(46,168,255,.12) inset}
.operator-list-main{display:grid;gap:4px;min-width:0}.operator-list-main strong,.operator-list-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.operator-list-badges{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.operator-list-today,.operator-list-type{padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}
.operator-list-today{background:#ff9d00;color:#fff}.operator-list-type{background:#dfe9f5;color:#35526f}
.operator-auto-card{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;border-radius:16px;border:1px solid #d6dee7;background:#f8fbff;flex-wrap:wrap}
.operator-auto-card.ready{border-color:#7fb0e6;background:linear-gradient(180deg,#f7fbff,#edf6ff)}
.operator-auto-card.empty{opacity:.85}

.danger-soft{border-color:#e7c2c2!important;color:#8a3434!important;background:#fff7f7!important}
.danger-soft:hover{background:#ffecec!important}
@media (max-width: 1200px){.saved-list-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 920px){.saved-list-actions{grid-template-columns:1fr}.programmer-saved-title{font-size:17px}}

.admin-log-ok td{background:rgba(92,196,120,.08)}
.admin-log-warn td{background:rgba(255,195,77,.10)}
.admin-log-miss td{background:rgba(255,92,92,.08)}

/* v206 pauta comercial */
.commercial-builder{
  background: linear-gradient(180deg,#f8fbff 0%,#edf3f8 100%);
}
.commercial-form{
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.commercial-form label{
  display:grid;
  gap:6px;
}
.commercial-card .programmer-saved-title{
  font-size:15px;
}
.commercial-card .programmer-meta-chip{
  background:#eef4fa;
}
@media (max-width: 1100px){
  .commercial-form{ grid-template-columns:1fr; }
}

.programmer-saved-section .smash-kicker{margin-bottom:8px}
.programmer-saved-section .smash-small{line-height:1.4}
.programmer-saved-list{display:grid;gap:12px}
.programmer-saved-item{position:relative}
.programmer-saved-item::after{content:"";position:absolute;inset:0;border-radius:18px;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.programmer-saved-item.commercial-card .saved-list-actions{grid-template-columns:repeat(2,minmax(0,1fr))}

/* v206c overflow hardening */
.programmer-layout,
.programmer-grid,
.programmer-column,
.programmer-panel,
.programmer-subcard,
.commercial-builder{min-width:0;overflow:hidden}

.programmer-source-list{padding-right:8px;scrollbar-gutter:stable}
.programmer-source-item{grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.programmer-source-item > div{min-width:0;overflow:hidden}
.programmer-source-item > div > div:nth-child(1),
.programmer-source-item > div > div:nth-child(2),
.programmer-source-item > div > div:nth-child(3){min-width:0;overflow-wrap:anywhere;word-break:break-word}
.programmer-source-item > div > div:nth-child(2){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.programmer-source-item .smash-btn{width:100%;min-width:0;justify-content:center;display:inline-flex}

.commercial-form,
.commercial-form > label,
.commercial-form label,
.commercial-form .smash-search,
.commercial-form select,
.commercial-form input{min-width:0;max-width:100%;width:100%;box-sizing:border-box}

.commercial-form label > div{min-width:0;max-width:100%}
.commercial-form label > div[style*="grid-template-columns"]{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;align-items:center}
.commercial-form label > div[style*="grid-template-columns"] > *{min-width:0;max-width:100%;width:100%;box-sizing:border-box}

@media (max-width: 1420px){
  .programmer-grid{grid-template-columns:280px minmax(0,1fr) 340px}
}
@media (max-width: 1320px){
  .commercial-form{grid-template-columns:1fr}
}
@media (max-width: 1240px){
  .programmer-grid{grid-template-columns:1fr}
}


/* v206d biblioteca fuente hard fix */
.programmer-source-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:560px;
  overflow:auto;
  overflow-x:hidden;
  padding-right:10px;
  padding-bottom:6px;
  box-sizing:border-box;
}
.programmer-source-item{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:10px !important;
  min-width:0;
  width:100%;
  padding:12px !important;
  box-sizing:border-box;
  overflow:hidden;
}
.programmer-source-item > div{
  min-width:0;
  width:100%;
  display:block;
  overflow:hidden;
}
.programmer-source-item > div > div:nth-child(1){
  font-size:22px;
  line-height:1.05;
  font-weight:800;
  color:#20364d;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.programmer-source-item > div > div:nth-child(2){
  margin-top:4px;
  font-size:14px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word;
}
.programmer-source-item > div > div:nth-child(3){
  margin-top:4px;
  font-size:12px;
  line-height:1.25;
  color:#64778b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.programmer-source-item .smash-btn{
  width:100%;
  min-width:0;
  height:36px;
  padding:0 12px;
  margin-top:0;
  align-self:stretch;
  justify-content:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-sizing:border-box;
}


/* v206e biblioteca fuente rebuild */
.programmer-source-item{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-rows:auto;
  align-items:start !important;
  gap:6px !important;
  width:100%;
  min-width:0;
  padding:12px 12px 10px !important;
  border-radius:16px;
  box-sizing:border-box;
  overflow:hidden;
}
.programmer-source-code,
.programmer-source-title,
.programmer-source-meta{
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.programmer-source-code{
  font-size:13px;
  line-height:1.2;
  font-weight:800;
  color:#1f5f8f;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.programmer-source-title{
  font-size:14px;
  line-height:1.25;
  font-weight:700;
  color:#20364d;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.programmer-source-meta{
  font-size:12px;
  line-height:1.25;
  color:#64778b;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.programmer-source-add.smash-btn{
  width:100%;
  height:36px;
  padding:0 12px;
  margin-top:2px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}

/* v206f final biblioteca fuente layout */
.programmer-source-list{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  max-height:560px;
  overflow:auto !important;
  overflow-x:hidden !important;
  padding:2px 10px 8px 2px !important;
  box-sizing:border-box;
}
.programmer-source-item{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-areas:
    "code add"
    "title add"
    "meta add" !important;
  gap:6px 10px !important;
  align-items:center !important;
  width:100% !important;
  min-width:0 !important;
  min-height:92px !important;
  padding:14px 14px 12px !important;
  border-radius:18px !important;
  border:1px solid #cfdae6 !important;
  background:linear-gradient(180deg,#f9fbfd 0%,#eef4fa 100%) !important;
  box-shadow:0 8px 22px rgba(18,45,74,.06), inset 0 1px 0 rgba(255,255,255,.78) !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.programmer-source-code,
.programmer-source-title,
.programmer-source-meta{
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
}
.programmer-source-code{
  grid-area:code !important;
  font-size:15px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  color:#1f5f8f !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
.programmer-source-title{
  grid-area:title !important;
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  color:#20364d !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  overflow:hidden !important;
  word-break:break-word !important;
}
.programmer-source-meta{
  grid-area:meta !important;
  font-size:12px !important;
  line-height:1.2 !important;
  color:#64778b !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
.programmer-source-add.smash-btn{
  grid-area:add !important;
  width:auto !important;
  min-width:104px !important;
  max-width:120px !important;
  height:38px !important;
  padding:0 14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:center !important;
  justify-self:end !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}
@media (max-width: 360px){
  .programmer-source-item{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:
      "code"
      "title"
      "meta"
      "add" !important;
  }
  .programmer-source-add.smash-btn{
    width:100% !important;
    max-width:none !important;
    justify-self:stretch !important;
  }
}
