/* ze-skin-mono-terminal.css — Mono Terminal visual skin.
   Layered on top of ze-core.css + a palette file (ze-theme-*.css). */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --zw-chart-profile: mono-terminal;
  --zw-brand-logo: var(--zw-brand-logo-light);
}

.ze-canvas {
  background: linear-gradient(to bottom, #252423 0, #252423 36px, #f8fafd 36px, #f8fafd 100%);
  border: 2px solid #252423;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
}

.ze-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #252423;
  z-index: 0;
}

.ze-canvas::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 6px;
  background: #252423;
  z-index: 0;
}

.ze-canvas.ze-canvas-fill {
  background: linear-gradient(to bottom, #252423 0, #252423 36px, #f8fafd 36px, #f8fafd 100%);
  border: 2px solid #252423;
  border-radius: 14px;
  box-shadow: none;
}

.ze-terminal-bar,
.ze-header,
.ze-title,
.ze-subtitle,
.ze-filter-wrap,
.ze-chart-canvas {
  position: relative;
  z-index: 1;
}

.ze-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 20px 8px 20px;
}

.ze-header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ze-terminal-bar {
  padding: 14px 20px 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #ffffff;
  white-space: nowrap;
}

.ze-terminal-logo {
  position: absolute;
  top: 10px;
  right: 20px;
  height: 16px;
  width: auto;
  z-index: 1;
  pointer-events: none;
}

.ze-title {
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
  color: #252423;
}

.ze-subtitle {
  padding: 4px 0 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
  color: #4a5366;
}

.ze-filter-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  border-bottom: none;
}

.ze-header > .ze-filter-wrap,
.ze-filter-wrap.ze-filter-wrap-inline {
  justify-content: flex-end;
  margin-left: auto;
}

.ze-period-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-bottom: 8px;
}

.ze-period-wrap ._ze-float-pill {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
}

.ze-header + .ze-filter-wrap,
.ze-filter-wrap.ze-filter-wrap-row {
  justify-content: flex-start;
  padding: 2px 20px 0 20px;
}

.ze-filter-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.ze-filter-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: #4a5366;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ze-filter-pill-group {
  display: flex;
  gap: 0;
  background: #ffffff;
  border: 2px solid #252423;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
}

.ze-filter-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #252423;
  padding: 8px 18px;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.ze-filter-pill + .ze-filter-pill {
  border-left: 2px solid #252423;
}

.ze-filter-pill:hover {
  background: #eef1f7;
  color: #252423;
}

.ze-filter-pill.active {
  background: #252423;
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}

.ze-filter-dropdown {
  appearance: none;
  -webkit-appearance: none;
  height: 34px;
  box-sizing: border-box;
  padding: 0 34px 0 12px;
  border: 2px solid #252423;
  border-radius: 4px;
  background-color: #ffffff;
  color: #252423;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23252423' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.ze-filter-dropdown:focus {
  outline: 2px solid rgba(37, 36, 35, 0.18);
  outline-offset: 2px;
}

.ze-chart-canvas {
  background: #f8fafd;
  padding: 2px 20px 12px 20px;
}

.ze-chart-host {
  top: 15px;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

/* ── Legend visibility toggle (.ze-switch) ────────────────────────────────── */
.ze-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: #4a5366;
  text-transform: uppercase;
  user-select: none;
}

.ze-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ze-switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  border: 2px solid #252423;
  border-radius: 999px;
  background: #252423;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.ze-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.15s ease;
}

.ze-switch input:not(:checked) + .ze-switch-track {
  background: #ffffff;
}

.ze-switch input:not(:checked) + .ze-switch-track::after {
  transform: translateX(0);
  background: #252423;
}

.ze-switch input:checked + .ze-switch-track::after {
  transform: translateX(18px);
}

/* ── Floating pill bar (period buttons / logo) ────────────────────────────── */
._ze-float-pill {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  white-space: nowrap;
  z-index: 10;
}

._ze-float-pill-periods {
  display: flex;
  align-items: center;
}

._ze-float-pill-divider {
  display: none;
  width: 2px;
  height: 14px;
  background: #252423;
  margin: 0 10px;
  flex-shrink: 0;
}

._ze-float-pill-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

._ze-float-pill ._ze-logo {
  height: 13px;
  width: auto;
  display: block;
  cursor: pointer;
}

._ze-float-pill ._ze-period-btns {
  position: static;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

._ze-float-pill ._ze-pb-btn {
  color: #717a90;
  padding: 0;
  line-height: 1;
  transform: none;
}

._ze-float-pill ._ze-pb-btn._ze-pb-active {
  color: #252423;
  font-weight: 700;
}

/* ── Period buttons ───────────────────────────────────────────────────────── */
._ze-period-btns {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
}

._ze-pb-btn {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #717a90;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: color 0.15s ease;
  text-transform: uppercase;
}

._ze-pb-btn:hover {
  color: #252423;
}

._ze-pb-btn._ze-pb-active {
  color: #252423;
  font-weight: 700;
}

._ze-pb-btn::after {
  content: none;
}

._ze-pb-btn._ze-pb-active::before,
._ze-pb-btn._ze-pb-active::after {
  display: inline;
  color: #252423;
  font-weight: 700;
}

._ze-pb-btn._ze-pb-active::before {
  content: '[';
  margin-right: 6px;
}

._ze-pb-btn._ze-pb-active::after {
  content: ']';
  margin-left: 6px;
}

._ze-pb-sep {
  display: none;
}
