@import url("./app-decoherence.css");

.climate-tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: .35rem;
  padding: .25rem;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 999px;
  background: rgba(8, 8, 8, .92);
}

.climate-tab {
  min-width: 112px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .48);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.climate-tab:hover {
  color: #fff;
}

.climate-tab.on {
  background: var(--gradient-1);
  color: #fff;
}

.climate-panel {
  display: none;
  flex-direction: column;
  gap: 1.2rem;
}

.climate-panel.active {
  display: flex;
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}

.scenario-btn {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .68);
  cursor: pointer;
  font-family: var(--f-ui);
  font-size: .76rem;
  font-weight: 800;
  padding: .55rem .7rem;
  text-align: left;
}

.scenario-btn span {
  color: rgba(255, 255, 255, .36);
  font-family: var(--f-mono);
  font-size: .56rem;
  font-weight: 400;
}

.scenario-btn.on {
  border-color: transparent;
  background: var(--gradient-1);
  color: #fff;
}

.scenario-btn.on span {
  color: rgba(255, 255, 255, .72);
}

.scenario-note {
  margin-top: .65rem;
  color: rgba(255, 255, 255, .42);
  font-family: var(--f-mono);
  font-size: .62rem;
  line-height: 1.55;
}

.inp {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
  font-family: var(--f-mono);
  font-size: .78rem;
  outline: none;
  padding: .62rem .8rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.inp:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
}

.inp.readonly {
  background: transparent;
  color: #FACC15;
}

select.inp,
select.inp option {
  color: rgba(255, 255, 255, .82);
}

select.inp option {
  background: #111;
}

.parameter-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: .65rem;
  padding: 0 0 .35rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.parameter-header span {
  color: rgba(255, 255, 255, .34);
  font-family: var(--f-mono);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.parameter-header span:last-child {
  text-align: center;
}

.parameter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: .65rem;
  padding: .34rem 0;
}

.parameter-label {
  min-width: 0;
  color: rgba(255, 255, 255, .68);
  font-family: var(--f-mono);
  font-size: .66rem;
  line-height: 1.35;
}

.field-hint {
  color: rgba(255, 255, 255, .34);
  font-size: .58rem;
  white-space: nowrap;
}

.parameter-row .inp {
  min-height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  padding: .12rem 0;
  text-align: center;
}

.parameter-row .inp:focus {
  box-shadow: inset 0 -1px 0 rgba(249, 115, 22, .65);
}

.parameter-row .inp.readonly {
  color: #FACC15;
}

.sidebar input[type="number"] {
  color-scheme: dark;
}

.sidebar input[type="number"]::-webkit-outer-spin-button,
.sidebar input[type="number"]::-webkit-inner-spin-button {
  opacity: .32;
  filter: invert(1) grayscale(1);
}

.sidebar input[type="number"]:hover::-webkit-outer-spin-button,
.sidebar input[type="number"]:hover::-webkit-inner-spin-button,
.sidebar input[type="number"]:focus::-webkit-outer-spin-button,
.sidebar input[type="number"]:focus::-webkit-inner-spin-button {
  opacity: .52;
}

.input-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-s);
}

.input-summary div {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .93);
  text-align: center;
}

.input-summary span {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.input-summary strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.data-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 18px;
  background: rgba(255, 255, 255, .93);
}

.drift-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 18px;
  background: var(--border-s);
}

.drift-item {
  padding: .9rem .8rem;
  background: rgba(255, 255, 255, .93);
  text-align: center;
}

.drift-lbl,
.wpci-item-lbl {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.drift-val,
.wpci-item-val {
  margin-top: .35rem;
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 1.2rem;
  font-weight: 800;
}

.drift-val.pos,
.wpci-item-val.warn {
  color: #A16207;
}

.wpci-item-val.alarm,
.alarm-cell {
  color: var(--danger) !important;
}

.alerts-wrap {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.alert-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 8, 8, .92);
  color: rgba(255, 255, 255, .66);
  font-family: var(--f-mono);
  font-size: .68rem;
}

.alert-year {
  margin-left: auto;
  color: #FACC15;
  font-weight: 800;
}

.main-chart-wrap {
  position: relative;
  height: 300px;
  border-radius: 12px;
  background: rgba(17, 17, 17, .025);
}

.wpci-box {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 18px;
  background: rgba(255, 255, 255, .93);
  padding: 1.15rem;
}

.wpci-lbl {
  margin-bottom: .85rem;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wpci-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.wpci-item-unit {
  margin-top: .2rem;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .58rem;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, .93);
}

.timeline-table th,
.timeline-table td {
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--border-s);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .72rem;
  text-align: center;
}

.timeline-table th {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.timeline-table th:first-child,
.timeline-table td:first-child {
  text-align: left;
}

.now-row td {
  color: #A16207;
  font-weight: 800;
}

.gold {
  color: #facc15;
}

@media (max-width: 1180px) {
  .input-summary,
  .wpci-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .input-summary,
  .drift-strip,
  .wpci-grid {
    grid-template-columns: 1fr;
  }
}
