:root{
  --bg:#f2eee7;
  --panel:#fbf8f3;
  --ink:#1f2825;
  --muted:#6b736f;
  --line:#d8d1c7;

  --wood:#4f7f52;
  --fire:#b94b45;
  --earth:#b8895a;
  --metal:#6f7475;
  --water:#3f6f95;

  --green:#29483d;
  --green-soft:#dfe8e3;
  --copper:#9b7650;
  --negative:#7e463e;
  --neutral:#81755f;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Arial,sans-serif;
}

.shell{
  max-width:1400px;
  margin:auto;
  padding:28px;
}

.eyebrow{
  font-size:12px;
  letter-spacing:.18em;
  color:var(--copper);
}

h1{
  font-family:Georgia,serif;
  font-size:50px;
  margin:5px 0 24px;
}

.controls{
  display:grid;
  grid-template-columns:1.3fr 1fr auto;
  gap:14px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  margin-bottom:18px;
}

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

label{
  font-size:11px;
  text-transform:uppercase;
  color:var(--muted);
}

input,select{
  padding:13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf9;
}

.primary-btn{
  align-self:end;
  border:0;
  background:var(--green);
  color:#fff;
  padding:14px 20px;
  border-radius:12px;
  font-weight:bold;
}

.meta-card{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.meta-pill{
  background:#e8e2d8;
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
}

.hidden{display:none}

.chart-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.palace{
  min-height:245px;
  background:#fffaf2;
  border:2px solid var(--palace-color, var(--line));
  border-radius:18px;
  padding:17px;
  cursor:pointer;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}

.palace:hover{
  transform:translateY(-1px);
}

.palace-name{
  font-family:Georgia,serif;
  font-size:24px;
  font-weight:bold;
  margin-bottom:12px;
  color:var(--palace-color, var(--ink));
}

.rows{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.row-label{
  font-size:10px;
  text-transform:uppercase;
  color:var(--muted);
}

.row-value{
  font-weight:bold;
  margin-top:2px;
}

.value-wood{color:var(--wood)}
.value-fire{color:var(--fire)}
.value-earth{color:var(--earth)}
.value-metal{color:var(--metal)}
.value-water{color:var(--water)}
.value-neutral{color:var(--ink)}

.hidden-stems{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}

.hidden-stem{
  font-weight:bold;
}

.structures{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.badge{
  font-size:11px;
  background:var(--green-soft);
  color:var(--green);
  border-radius:999px;
  padding:6px 8px;
}

.badge.negative{
  background:#f0dfdc;
  color:var(--negative);
}

.badge.neutral{
  background:#e7e0d2;
  color:var(--neutral);
}

.palace.wood{--palace-color:var(--wood)}
.palace.fire{--palace-color:var(--fire)}
.palace.earth{--palace-color:var(--earth)}
.palace.metal{--palace-color:var(--metal)}
.palace.water{--palace-color:var(--water)}

.palace.center{
  background:#fffaf2;
  color:var(--ink);
}

.palace.center .row-label{
  color:var(--muted);
}

.drawer{
  position:fixed;
  top:0;
  right:-450px;
  width:420px;
  max-width:92vw;
  height:100vh;
  background:#fffaf2;
  padding:25px;
  box-shadow:-10px 0 40px rgba(0,0,0,.15);
  transition:.2s;
  overflow:auto;
}

.drawer.open{right:0}

.drawer-close{
  float:right;
  font-size:30px;
  border:0;
  background:none;
}

.drawer h2{
  font-family:Georgia,serif;
}

@media(max-width:900px){
  .controls{grid-template-columns:1fr}
  .chart-grid{min-width:820px}
  .chart-wrap{overflow:auto}
}

.bazi-bar{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:16px 0 12px;
}

.bazi-pillar{
  background:#fffaf2;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  text-align:center;
}

.bazi-pillar.active-pillar{
  border:2px solid var(--green);
}

.bazi-label{
  font-size:10px;
  letter-spacing:.12em;
  color:var(--muted);
}

.bazi-value{
  margin-top:5px;
  font-family:Georgia,serif;
  font-size:20px;
  font-weight:bold;
}

.time-nav{
  display:grid;
  grid-template-columns:56px 1fr 56px auto;
  gap:10px;
  align-items:center;
  background:#fffaf2;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  margin-bottom:16px;
}

.nav-btn{
  height:48px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf9;
  font-size:26px;
  cursor:pointer;
}

.nav-center{
  text-align:center;
}

.selected-date{
  font-family:Georgia,serif;
  font-size:18px;
  margin-bottom:8px;
}

.granularity{
  display:flex;
  gap:6px;
  justify-content:center;
  flex-wrap:wrap;
}

.gran-btn{
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  background:#fffdf9;
  color:var(--muted);
  font-size:11px;
  font-weight:bold;
  cursor:pointer;
}

.gran-btn.active{
  background:var(--green);
  color:white;
  border-color:var(--green);
}

.now-btn{
  border:0;
  background:#e8e2d8;
  color:var(--ink);
  padding:10px 12px;
  border-radius:10px;
  font-weight:bold;
  cursor:pointer;
}

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

.stem-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  font-size:10px;
  font-weight:bold;
  line-height:1;
}

.stem-tag.day{
  background:#e7dccd;
  color:#6f4f32;
}

.stem-tag.hour{
  background:#dbe6ed;
  color:#345a73;
}

.stem-tag.primary{
  transform:scale(1.15);
}

.stem-main{
  font-size:1.15em;
}

.stem-main.primary{
  font-size:1.4em;
}

@media(max-width:900px){
  .bazi-bar{
    grid-template-columns:repeat(4,minmax(110px,1fr));
    min-width:620px;
  }

  .time-nav{
    min-width:760px;
  }
}

/* =========================================================
   MINI BAZI CARD
   ========================================================= */

.bazi-bar{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:16px 0 12px;
}

.bazi-pillar{
  background:#fffaf2;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 10px 14px;
  text-align:center;
  position:relative;
}

.bazi-pillar.day-master{
  border:2px solid var(--metal);
  box-shadow:0 0 0 3px rgba(111,116,117,.08);
}

.bazi-label{
  font-size:10px;
  font-weight:bold;
  letter-spacing:.14em;
  color:var(--muted);
  margin-bottom:8px;
}

.bazi-dm-label{
  font-size:9px;
  letter-spacing:.12em;
  color:var(--metal);
  margin-top:-4px;
  margin-bottom:5px;
}

.bazi-hanzi{
  font-family:Georgia,"Times New Roman",serif;
  font-size:34px;
  line-height:1.05;
  font-weight:bold;
  margin-bottom:4px;
}

.bazi-stem-name{
  font-size:13px;
  font-weight:bold;
  margin-bottom:8px;
}

.bazi-divider{
  height:1px;
  background:#e3ddd4;
  margin:6px 14px 8px;
}

.bazi-branch-hanzi{
  font-family:Georgia,"Times New Roman",serif;
  font-size:30px;
  line-height:1.05;
  font-weight:bold;
  margin-bottom:4px;
}

.bazi-branch-name{
  font-size:12px;
  font-weight:bold;
}

.bazi-wood{color:var(--wood)}
.bazi-fire{color:var(--fire)}
.bazi-earth{color:var(--earth)}
.bazi-metal{color:var(--metal)}
.bazi-water{color:var(--water)}

@media(max-width:900px){
  .bazi-bar{
    min-width:680px;
  }
}

.stem-tag.both{
  background:#ded8eb;
  color:#55476d;
}

.stem-marker.marker-primary{
  background:rgba(184,137,90,.10);
  border-radius:8px;
  padding:2px 5px;
}

.stem-tag.primary{
  box-shadow:0 0 0 2px rgba(31,40,37,.08);
  font-weight:800;
}

.stem-main.primary{
  font-size:1.42em;
  font-weight:800;
}

.bazi-ten-god{
  display:inline-block;
  min-width:30px;
  padding:3px 7px;
  border-radius:999px;
  background:#eee8df;
  color:#4d554f;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  margin-bottom:6px;
}

.bazi-ten-god.day-master-god{
  background:#d9e0dd;
  color:#29483d;
}

.bazi-hidden-list{
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid #e3ddd4;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.bazi-hidden-item{
  display:grid;
  grid-template-columns:28px 22px 1fr;
  align-items:center;
  gap:4px;
  font-size:10px;
  text-align:left;
}

.bazi-hidden-god{
  font-weight:800;
  color:var(--muted);
}

.bazi-hidden-hanzi{
  font-size:16px;
  font-weight:bold;
  text-align:center;
}

.bazi-hidden-name{
  font-weight:bold;
}

/* =========================================================
   QIMEN ELEMENT RELATIONSHIPS
   ========================================================= */

.relation-symbol{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  margin-left:4px;
  padding:0 4px;
  border-radius:6px;
  font-size:15px;
  font-weight:800;
  vertical-align:middle;
  background:#eee9e1;
  color:#4e5652;
}

.relation-component_produces_palace{
  color:#47735a;
}

.relation-same{
  color:#59615d;
}

.relation-palace_produces_component{
  color:#9b7650;
}

.relation-palace_controls_component{
  color:#6f6680;
}

.relation-component_controls_palace{
  color:#7a5661;
}

/* =========================================================
   MOBILE QIMEN v0.1
   ========================================================= */

@media (max-width: 700px){

  body{
    overflow-x:hidden;
  }

  .shell{
    padding:10px;
    max-width:none;
  }

  h1{
    font-size:32px;
    margin-bottom:14px;
  }

  .controls{
    grid-template-columns:1fr;
    gap:8px;
    padding:10px;
    border-radius:14px;
  }

  .primary-btn{
    width:100%;
  }

  /* ---- BAZI ---- */

  .bazi-bar{
    min-width:0;
    grid-template-columns:repeat(4,1fr);
    gap:5px;
    margin:8px 0;
  }

  .bazi-pillar{
    border-radius:10px;
    padding:7px 3px 8px;
  }

  .bazi-label{
    font-size:8px;
    margin-bottom:3px;
  }

  .bazi-ten-god{
    font-size:8px;
    min-width:22px;
    padding:2px 4px;
    margin-bottom:3px;
  }

  .bazi-hanzi{
    font-size:25px;
  }

  .bazi-stem-name{
    font-size:10px;
    margin-bottom:4px;
  }

  .bazi-divider{
    margin:4px 6px;
  }

  .bazi-branch-hanzi{
    font-size:22px;
  }

  .bazi-branch-name{
    font-size:9px;
  }

  .bazi-hidden-list{
    margin-top:5px;
    padding-top:4px;
    gap:2px;
  }

  .bazi-hidden-item{
    grid-template-columns:20px 16px 1fr;
    gap:2px;
    font-size:8px;
  }

  .bazi-hidden-hanzi{
    font-size:12px;
  }

  /* ---- TIME NAV ---- */

  .time-nav{
    padding:8px;
    border-radius:12px;
    margin-bottom:8px;
  }

  .time-nav-main{
    display:grid;
    grid-template-columns:38px 1fr 38px;
    align-items:center;
    gap:6px;
  }

  #selectedDateText{
    font-size:12px;
    text-align:center;
  }

  .shift-btn{
    width:38px;
    height:38px;
    padding:0;
  }

  .granularity{
    gap:4px;
    justify-content:center;
    flex-wrap:nowrap;
  }

  .gran-btn{
    font-size:9px;
    padding:5px 7px;
  }

  #nowBtn{
    font-size:9px;
    padding:5px 7px;
  }

  /* ---- META ---- */

  .meta-card{
    gap:4px;
    margin-bottom:8px;
  }

  .meta-pill{
    font-size:9px;
    padding:5px 7px;
  }

  /* ---- QIMEN BOARD ---- */

  .chart-wrap{
    overflow:visible;
  }

  .chart-grid{
    min-width:0;
    width:100%;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
  }

  .palace{
    min-height:0;
    border-radius:10px;
    padding:7px;
    overflow:hidden;
  }

  .palace-name{
    font-size:15px;
    margin-bottom:6px;
    white-space:nowrap;
  }

  .rows{
    gap:5px 4px;
  }

  .row-label{
    font-size:7px;
    line-height:1;
  }

  .row-value{
    font-size:11px;
    line-height:1.1;
    margin-top:2px;
    overflow-wrap:anywhere;
  }

  .stem-main{
    font-size:11px;
  }

  .stem-main.primary{
    font-size:14px;
  }

  .stem-tag{
    font-size:7px;
    min-width:14px;
    height:14px;
    padding:0 3px;
  }

  .relation-symbol{
    min-width:15px;
    height:15px;
    font-size:11px;
    margin-left:2px;
    padding:0 2px;
    border-radius:4px;
  }

  .structures,
  .badges{
    margin-top:6px;
    gap:3px;
  }

  .badge{
    font-size:7px;
    padding:3px 5px;
    line-height:1.1;
  }

  /* ---- DRAWER ---- */

  .drawer{
    width:100vw;
    max-width:100vw;
    right:-100vw;
    padding:18px;
  }

  .drawer.open{
    right:0;
  }

  .drawer-close{
    font-size:28px;
  }
}

/* =========================================================
   MOBILE POLISH v0.2
   ========================================================= */

@media (max-width:700px){

  .topbar{
    padding-top:8px;
  }

  h1{
    font-size:28px;
    line-height:1.05;
    margin:2px 0 12px;
  }

  .eyebrow{
    font-size:9px;
  }

  /* CONTROLS MÁS COMPACTOS */

  .controls{
    padding:10px;
    gap:8px;
  }

  input, select{
    padding:10px;
    font-size:15px;
  }

  .primary-btn{
    padding:12px;
    font-size:14px;
  }

  /* BAZI MÁS BAJO */

  .bazi-bar{
    gap:4px;
  }

  .bazi-pillar{
    padding:6px 2px;
  }

  .bazi-hanzi{
    font-size:23px;
  }

  .bazi-branch-hanzi{
    font-size:20px;
  }

  .bazi-hidden-list{
    min-height:46px;
  }

  .bazi-hidden-item{
    line-height:1;
  }

  /* NAV COMPLETAMENTE DENTRO DE PANTALLA */

  .time-nav{
    width:100%;
    overflow:hidden;
  }

  .time-nav-main{
    grid-template-columns:42px minmax(0,1fr) 42px;
    width:100%;
  }

  #selectedDateText{
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:11px;
  }

  .granularity{
    width:100%;
    justify-content:center;
    overflow:hidden;
  }

  .gran-btn{
    flex:0 1 auto;
    padding:5px 6px;
  }

  /* META MÁS COMPACTA */

  .meta-card{
    margin-top:6px;
    margin-bottom:7px;
  }

  .meta-pill{
    font-size:8px;
    padding:4px 6px;
  }

  /* TABLERO EMPIEZA MÁS ARRIBA */

  .chart-grid{
    gap:4px;
  }

  .palace{
    padding:6px;
    border-radius:9px;
  }

  .palace-name{
    font-size:14px;
    margin-bottom:5px;
  }

  .row-value{
    font-size:10px;
  }

  .row-label{
    font-size:6.5px;
  }
}

/* =========================================================
   MOBILE TIME NAV FIX v0.3
   ========================================================= */

@media (max-width:700px){

  .time-nav{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow:hidden;
    padding:8px;
  }

  .time-nav-main{
    display:flex !important;
    flex-wrap:wrap;
    width:100%;
    max-width:100%;
    gap:6px;
    align-items:center;
    justify-content:center;
  }

  #selectedDateText{
    order:1;
    flex:0 0 100%;
    width:100%;
    max-width:100%;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:11px;
    padding:0 4px;
  }

  #minusBtn{
    order:2;
    flex:0 0 38px;
  }

  .granularity{
    order:3;
    flex:1 1 auto;
    width:auto;
    min-width:0;
    display:flex;
    justify-content:center;
    gap:3px;
    overflow:hidden;
  }

  #plusBtn{
    order:4;
    flex:0 0 38px;
  }

  #nowBtn{
    order:5;
    flex:0 0 auto;
    margin:0 auto;
    font-size:8px;
    padding:4px 7px;
  }

  .gran-btn{
    flex:1 1 0;
    min-width:0;
    padding:5px 3px;
    font-size:8px;
    white-space:nowrap;
  }

  .shift-btn{
    width:38px;
    height:36px;
    min-width:38px;
    padding:0;
  }
}

/* =========================================================
   MOBILE TIME NAV FIX v0.3
   ========================================================= */

@media (max-width:700px){

  .time-nav{
    width:100%;
    max-width:100%;
    display:block !important;
    padding:8px !important;
    overflow:hidden !important;
  }

  .time-nav-main{
    width:100% !important;
    max-width:100% !important;
    display:grid !important;
    grid-template-columns:38px minmax(0,1fr) 38px !important;
    gap:6px !important;
    align-items:center !important;
  }

  #minusBtn,
  #plusBtn{
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
    padding:0 !important;
  }

  #selectedDateText{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    text-align:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    font-size:11px !important;
  }

  .granularity{
    width:100% !important;
    max-width:100% !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:4px !important;
    margin-top:6px !important;
    flex-wrap:nowrap !important;
    overflow:hidden !important;
  }

  .gran-btn{
    flex:0 1 auto !important;
    min-width:0 !important;
    padding:5px 7px !important;
    font-size:9px !important;
    white-space:nowrap !important;
  }

  #nowBtn{
    flex:0 0 auto !important;
    padding:5px 7px !important;
    font-size:9px !important;
    white-space:nowrap !important;
  }
}

/* =========================================================
   TIME NAV FINAL STRUCTURE
   ========================================================= */

.time-nav{
  width:100%;
  padding:12px;
}

.time-nav-top{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 52px;
  align-items:center;
  gap:10px;
  width:100%;
}

.selected-date{
  min-width:0;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.time-nav-bottom{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:8px;
}

.granularity{
  display:flex;
  gap:5px;
  justify-content:center;
}

.nav-btn{
  width:52px;
  height:44px;
  flex:none;
}

@media (max-width:700px){

  .time-nav{
    padding:8px !important;
    overflow:hidden !important;
  }

  .time-nav-top{
    grid-template-columns:38px minmax(0,1fr) 38px;
    gap:6px;
  }

  #minusBtn,
  #plusBtn{
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
    padding:0 !important;
  }

  .selected-date{
    font-size:11px !important;
  }

  .time-nav-bottom{
    width:100%;
    display:flex;
    gap:5px;
    margin-top:6px;
    justify-content:center;
    align-items:center;
  }

  .granularity{
    flex:1 1 auto;
    min-width:0;
    display:grid !important;
    grid-template-columns:repeat(4,1fr);
    gap:3px !important;
  }

  .gran-btn{
    min-width:0 !important;
    width:100%;
    padding:5px 2px !important;
    font-size:8px !important;
    white-space:nowrap;
  }

  #nowBtn{
    flex:0 0 auto;
    font-size:8px !important;
    padding:5px 6px !important;
    white-space:nowrap;
  }
}

/* =========================================================
   MOBILE TIME NAV — HARD RESET v0.4
   ========================================================= */

@media (max-width:700px){

  #timeNav.time-nav{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:8px !important;
    margin:8px 0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }

  #timeNav .time-nav-top{
    display:grid !important;
    grid-template-columns:40px minmax(0,1fr) 40px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:6px !important;
    align-items:center !important;
  }

  #timeNav #minusBtn,
  #timeNav #plusBtn{
    display:flex !important;
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    height:40px !important;
    margin:0 !important;
    padding:0 !important;
    align-items:center !important;
    justify-content:center !important;
    position:static !important;
    font-size:24px !important;
  }

  #timeNav #selectedDateText{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 4px !important;
    text-align:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    font-size:11px !important;
  }

  #timeNav .time-nav-bottom{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:5px !important;
    align-items:center !important;
    margin-top:6px !important;
  }

  #timeNav .granularity{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:3px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }

  #timeNav .gran-btn{
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:30px !important;
    margin:0 !important;
    padding:0 2px !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:8px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    border-radius:999px !important;
  }

  #timeNav #nowBtn{
    display:flex !important;
    width:auto !important;
    min-width:52px !important;
    height:30px !important;
    margin:0 !important;
    padding:0 7px !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:8px !important;
    white-space:nowrap !important;
    position:static !important;
  }
}

/* =========================================================
   MOBILE FINAL ALIGNMENT v0.5
   ========================================================= */

@media (max-width:700px){

  /* − 13 de septiembre + */

  #timeNav .time-nav-top{
    display:grid !important;
    grid-template-columns:52px minmax(0,1fr) 52px !important;
    grid-template-areas:"minus date plus" !important;
    align-items:center !important;
    column-gap:8px !important;

    width:100% !important;
    min-width:0 !important;
  }

  #timeNav #minusBtn{
    grid-area:minus !important;
    position:static !important;
    order:initial !important;
    justify-self:start !important;

    width:52px !important;
    min-width:52px !important;
    height:46px !important;
  }

  #timeNav #selectedDateText{
    grid-area:date !important;
    position:static !important;
    order:initial !important;

    width:100% !important;
    min-width:0 !important;

    text-align:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;

    font-size:14px !important;
    font-weight:600 !important;
  }

  #timeNav #plusBtn{
    grid-area:plus !important;
    position:static !important;
    order:initial !important;
    justify-self:end !important;

    width:52px !important;
    min-width:52px !important;
    height:46px !important;
  }

  /* Los Heavenly Stems JAMÁS se parten */

  .stem-marker{
    display:inline-flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    white-space:nowrap !important;
    width:auto !important;
  }

  .stem-main{
    display:inline-block !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
    hyphens:none !important;
  }

  .row-value{
    word-break:normal !important;
    overflow-wrap:normal !important;
  }

  .hidden-stems{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:2px !important;
  }
}
