:root {
  --bg: #07131d;
  --bg-soft: rgba(12, 29, 42, 0.72);
  --line: rgba(145, 226, 255, 0.25);
  --ink: #edf7ff;
  --muted: #9db8ca;
  --accent: #7af2d3;
  --accent-2: #ff9565;
  --accent-3: #ffd166;
  --panel: rgba(8, 18, 29, 0.78);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 149, 101, 0.15), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(122, 242, 211, 0.12), transparent 26%),
    linear-gradient(160deg, #02060b 0%, #07131d 45%, #0d2231 100%);
  color: var(--ink);
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
}

body {
  overflow: hidden;
}

body.embed-mode {
  background:
    radial-gradient(circle at top left, rgba(255, 149, 101, 0.1), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(122, 242, 211, 0.08), transparent 24%),
    #f6f4ef;
  color: #10202b;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 100vh;
}

.embed-mode .app-shell {
  min-height: 820px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(16, 32, 43, 0.08),
    0 4px 16px rgba(16, 32, 43, 0.06);
}

.canvas-column {
  position: relative;
  padding: 24px 0 24px 24px;
}

.embed-mode .canvas-column {
  padding: 0;
}

.main-view {
  min-height: calc(100vh - 48px);
}

.main-stage {
  min-height: calc(100vh - 48px);
  display: grid;
  gap: 18px;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  width: min(520px, calc(100% - 72px));
  pointer-events: none;
}

.embed-mode .hero-copy {
  top: 18px;
  left: 18px;
  width: min(420px, calc(100% - 36px));
}

.embed-mode .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.embed-mode .hero-copy h1 {
  color: #fffdf8;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.embed-mode .description {
  color: rgba(255, 250, 242, 0.86);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.eyebrow,
.panel-label,
.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.description {
  margin: 0;
  max-width: 46ch;
  color: rgba(237, 247, 255, 0.74);
  line-height: 1.55;
}

.main-panel {
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11, 24, 37, 0.95), rgba(7, 19, 29, 0.86));
  border: 1px solid rgba(122, 242, 211, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 44px rgba(0, 0, 0, 0.24);
}

.main-panel-wide {
  grid-column: 1 / -1;
}

.main-panel-headline {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.main-panel-headline h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

#sketch-root {
  width: 100%;
  height: calc(100vh - 48px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(122, 242, 211, 0.08), transparent 20%),
    radial-gradient(circle at 24% 16%, rgba(255, 149, 101, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(7, 19, 29, 0.72), rgba(7, 19, 29, 0.26));
  border: 1px solid rgba(122, 242, 211, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 -80px 120px rgba(0, 0, 0, 0.24);
}

.embed-mode #sketch-root {
  height: 820px;
  border-radius: 0;
  border: 0;
}

.embed-mode .main-panel {
  border-radius: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.sidebar {
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
  overflow-y: auto;
  height: 100vh;
  background: linear-gradient(180deg, rgba(3, 8, 14, 0.75), rgba(3, 8, 14, 0.9));
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.embed-mode .sidebar {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(246, 241, 233, 0.96));
  border-left: 1px solid rgba(16, 32, 43, 0.08);
}

.sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sidebar-tab {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.sidebar-tab-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
}

.sidebar-tab-note {
  font-size: 0.66rem;
  color: var(--muted);
  line-height: 1.1;
}

.sidebar-tab.is-active {
  border-color: rgba(122, 242, 211, 0.5);
  background: linear-gradient(180deg, rgba(122, 242, 211, 0.18), rgba(255, 255, 255, 0.04));
}

.embed-mode .sidebar-tab.is-active {
  border-color: rgba(255, 149, 101, 0.32);
  background: linear-gradient(180deg, rgba(255, 149, 101, 0.16), rgba(255, 255, 255, 0.92));
}

.sidebar-view {
  display: grid;
  gap: 16px;
}

.panel-helper-copy {
  margin: 10px 0 0;
  color: rgba(237, 247, 255, 0.74);
  line-height: 1.5;
  font-size: 0.9rem;
}

.embed-mode .panel-helper-copy {
  color: rgba(16, 32, 43, 0.72);
}

.embed-mode .panel {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(16, 32, 43, 0.08);
  box-shadow: 0 10px 24px rgba(16, 32, 43, 0.05);
}

.embed-mode .panel-primary {
  background:
    linear-gradient(135deg, rgba(255, 149, 101, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 234, 0.92));
}

.embed-mode .panel-label,
.embed-mode .stat-label {
  color: rgba(16, 32, 43, 0.54);
}

.embed-mode .big-date,
.embed-mode .stat-value,
.embed-mode .country-count {
  color: #10202b;
}

.embed-mode .current-artist,
.embed-mode .country-title,
.embed-mode .control-row {
  color: rgba(16, 32, 43, 0.84);
}

.embed-mode .country-bar {
  background: rgba(16, 32, 43, 0.08);
}

.embed-mode .detail-empty,
.embed-mode .detail-artist-date,
.embed-mode .detail-stat-label {
  color: rgba(16, 32, 43, 0.54);
}

.embed-mode .detail-artist {
  background: rgba(16, 32, 43, 0.05);
}

.embed-mode .detail-artist-link {
  color: #b85a2f;
}

.embed-mode .country-row:hover {
  background: rgba(16, 32, 43, 0.05);
}

.embed-mode .country-row.is-active {
  background: rgba(255, 149, 101, 0.12);
}

.embed-mode button {
  border-color: rgba(16, 32, 43, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 238, 230, 0.95));
  color: #10202b;
}

.embed-mode button:hover {
  border-color: rgba(255, 149, 101, 0.35);
}

.panel {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(122, 242, 211, 0.12);
  backdrop-filter: blur(18px);
}

.panel-primary {
  background:
    linear-gradient(135deg, rgba(255, 149, 101, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(11, 24, 37, 0.95), rgba(7, 19, 29, 0.82));
}

.big-date {
  margin-top: 10px;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.current-artist {
  margin-top: 12px;
  color: rgba(237, 247, 255, 0.82);
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}

.stat-card-wide {
  grid-column: 1 / -1;
}

.stat-value {
  margin-top: 6px;
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-value-small {
  font-size: 1rem;
  line-height: 1.25;
}

.country-list {
  margin-top: 12px;
  max-height: 34vh;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 6px;
}

.country-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 140ms ease;
}

.country-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.country-row.is-active {
  background: rgba(255, 209, 102, 0.12);
}

.country-name {
  display: grid;
  gap: 6px;
}

.country-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.95rem;
}

.country-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.country-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.country-count {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-3);
}

.country-detail {
  margin-top: 12px;
}

.detail-empty {
  color: rgba(237, 247, 255, 0.62);
  line-height: 1.5;
}

.detail-country {
  font-size: 1.25rem;
  font-weight: 700;
}

.detail-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-stat-value {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.detail-artists {
  margin-top: 14px;
  max-height: 22vh;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 6px;
}

.detail-artist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  line-height: 1.35;
}

.detail-artist-copy {
  min-width: 0;
}

.detail-artist-date {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.detail-artist-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent-3);
  text-decoration: none;
  font-size: 0.8rem;
}

.detail-artist-link:hover {
  text-decoration: underline;
}

.controls-panel {
  align-self: start;
}

.panel-label-spaced {
  margin-top: 16px;
}

.control-row {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  color: rgba(237, 247, 255, 0.86);
}

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

.directory-list {
  margin-top: 12px;
  max-height: 46vh;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 6px;
}

.directory-list-main {
  max-height: 56vh;
}

.year-chart {
  margin: 12px 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 180px;
}

.year-bar {
  min-height: 180px;
  padding: 10px 6px 8px;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  align-items: end;
  justify-items: center;
  background: rgba(255, 255, 255, 0.04);
}

.year-bar:hover {
  border-color: rgba(255, 209, 102, 0.35);
}

.year-bar.is-active {
  border-color: rgba(255, 209, 102, 0.55);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.16), rgba(255, 255, 255, 0.04));
}

.year-bar-count {
  font-size: 0.74rem;
  color: var(--muted);
}

.year-bar-track {
  width: 100%;
  height: 112px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.year-bar-fill {
  width: 100%;
  max-width: 28px;
  min-height: 12px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(122, 242, 211, 0.18);
}

.year-bar-label {
  font-size: 0.72rem;
  color: rgba(237, 247, 255, 0.82);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.directory-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.directory-toolbar-grid {
  align-items: start;
}

.directory-summary {
  margin-bottom: 12px;
  color: rgba(237, 247, 255, 0.72);
  line-height: 1.45;
  font-size: 0.84rem;
}

.view-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.view-toggle-button {
  min-height: 42px;
  padding: 10px 12px;
}

.view-toggle-button.is-active {
  border-color: rgba(122, 242, 211, 0.5);
  background: linear-gradient(180deg, rgba(122, 242, 211, 0.18), rgba(255, 255, 255, 0.04));
}

.embed-mode .main-panel-headline h2 {
  color: #10202b;
}

.embed-mode .main-panel .eyebrow {
  color: rgba(16, 32, 43, 0.54);
}

.embed-mode .main-panel .description {
  color: rgba(16, 32, 43, 0.72);
  text-shadow: none;
}

.embed-mode .directory-summary {
  color: rgba(16, 32, 43, 0.68);
}

.embed-mode .year-bar {
  background: rgba(16, 32, 43, 0.05);
}

.embed-mode .year-bar.is-active {
  background: linear-gradient(180deg, rgba(255, 149, 101, 0.14), rgba(16, 32, 43, 0.03));
}

.embed-mode .year-bar-label,
.embed-mode .year-bar-count {
  color: rgba(16, 32, 43, 0.7);
}

.directory-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 6px;
}

.directory-card-compact {
  gap: 4px;
}

.directory-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
  font-size: 0.92rem;
}

.directory-period {
  color: var(--accent-3);
  font-size: 0.76rem;
  white-space: nowrap;
}

.directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.directory-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(122, 242, 211, 0.1);
  color: rgba(237, 247, 255, 0.82);
  font-size: 0.74rem;
}

.directory-link {
  color: var(--accent-3);
  text-decoration: none;
  font-size: 0.8rem;
}

.directory-link:hover {
  text-decoration: underline;
}

.directory-group {
  display: grid;
  gap: 10px;
}

.directory-group-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(237, 247, 255, 0.88);
}

.directory-group-header span {
  color: var(--muted);
  font-size: 0.78rem;
}

.directory-group-list {
  display: grid;
  gap: 8px;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  color-scheme: dark;
}

select option {
  background: #0d2231;
  color: #edf7ff;
}

.embed-mode select {
  border-color: rgba(16, 32, 43, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #10202b;
  color-scheme: light;
}

.embed-mode select option {
  background: #ffffff;
  color: #10202b;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-2);
}

input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
}

.embed-mode input[type="search"] {
  border-color: rgba(16, 32, 43, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #10202b;
}

.button-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button {
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

button:hover {
  border-color: rgba(122, 242, 211, 0.35);
}

@media (max-width: 1080px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .canvas-column {
    padding: 16px 16px 0;
  }

  .main-view,
  .main-stage {
    min-height: auto;
  }

  .main-stage {
    grid-template-columns: 1fr;
  }

  #sketch-root {
    height: auto;
    aspect-ratio: 1.65 / 1;
    min-height: 320px;
    max-height: 56vw;
  }

  .sidebar {
    padding: 16px;
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .country-list {
    max-height: 28vh;
  }

  .embed-mode .app-shell {
    min-height: auto;
  }

  .embed-mode #sketch-root {
    height: auto;
    aspect-ratio: 1.65 / 1;
    min-height: 320px;
    max-height: 58vw;
  }

  .hero-copy {
    width: min(360px, calc(100% - 32px));
  }

  .main-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(1.6rem, 8vw, 2.8rem);
  }

  .description {
    max-width: 34ch;
    font-size: 0.88rem;
  }

  .big-date {
    font-size: 1.8rem;
  }

  .current-artist {
    font-size: 0.92rem;
  }

  .stat-value {
    font-size: 1.55rem;
  }

  .stat-value-small,
  .country-count,
  .detail-country {
    font-size: 0.98rem;
  }

  .country-title,
  .detail-stat-value,
  .control-row,
  button,
  select {
    font-size: 0.9rem;
  }

  .directory-title {
    font-size: 0.88rem;
  }

  .directory-list {
    max-height: 38vh;
  }

  .directory-list-main {
    max-height: none;
  }

  .year-chart {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 720px) {
  #sketch-root,
  .embed-mode #sketch-root {
    aspect-ratio: 1.45 / 1;
    min-height: 280px;
    max-height: 72vw;
  }

  .hero-copy {
    top: 14px;
    left: 14px;
    width: min(300px, calc(100% - 28px));
  }

  .main-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .hero-copy h1 {
    margin: 6px 0 8px;
    font-size: clamp(1.35rem, 6.2vw, 2.1rem);
  }

  .description {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .eyebrow,
  .panel-label,
  .stat-label {
    font-size: 0.64rem;
    letter-spacing: 0.11em;
  }

  .sidebar {
    padding: 12px;
    gap: 12px;
  }

  .sidebar-tabs {
    grid-template-columns: 1fr;
  }

  .sidebar-tab {
    justify-items: start;
    text-align: left;
    border-radius: 18px;
  }

  .panel {
    padding: 14px;
    border-radius: 18px;
  }

  .big-date {
    font-size: 1.5rem;
  }

  .current-artist {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .stat-value {
    font-size: 1.32rem;
  }

  .stat-value-small {
    font-size: 0.86rem;
  }

  .country-title,
  .country-count,
  .detail-country,
  .detail-stat-value,
  .control-row,
  button,
  select {
    font-size: 0.84rem;
  }

  .detail-stat-label,
  .detail-artist-date {
    font-size: 0.68rem;
  }

  .detail-artists,
  .country-list {
    gap: 6px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .main-filter-grid {
    grid-template-columns: 1fr;
  }

  .year-bar {
    min-height: 152px;
  }

  .year-bar-track {
    height: 92px;
  }

  .view-toggle {
    grid-template-columns: 1fr;
  }

  .directory-pill,
  .directory-period,
  .directory-link {
    font-size: 0.72rem;
  }
}

.editor-body {
  overflow: auto;
}

.editor-shell {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.editor-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.editor-hero h1,
.editor-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 2vw, 2.4rem);
}

.editor-hero-actions,
.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--ink);
  text-decoration: none;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.editor-panel {
  display: grid;
  gap: 12px;
}

.editor-panel-wide {
  grid-column: 1 / -1;
}

.editor-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.editor-note,
.editor-status {
  color: var(--muted);
  line-height: 1.5;
}

.editor-checklist {
  display: grid;
  gap: 8px;
}

.editor-check-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(237, 247, 255, 0.86);
}

.editor-search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-search-bar input,
.editor-cell input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
}

.editor-search-bar input {
  min-height: 48px;
  padding: 0 14px;
  min-width: min(100%, 360px);
}

.editor-table {
  display: grid;
  gap: 8px;
}

.editor-thead,
.editor-tr {
  display: grid;
  gap: 8px;
}

.editor-thead {
  grid-template-columns: 100px minmax(180px, 1.2fr) minmax(140px, 1fr) minmax(220px, 1.5fr) 110px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

#override-table .editor-thead,
#override-table .editor-tr {
  grid-template-columns: 100px minmax(180px, 1.4fr) minmax(140px, 1fr) 110px;
}

#source-table .editor-thead,
#source-table .editor-tr {
  grid-template-columns: 100px minmax(180px, 1.4fr) minmax(140px, 1fr) 130px;
}

.editor-th,
.editor-cell {
  min-width: 0;
}

.editor-cell input,
.editor-cell-static {
  min-height: 44px;
  padding: 10px 12px;
}

.editor-cell-static {
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.editor-cell-action {
  display: flex;
  align-items: center;
}

.editor-delete,
.editor-copy-row {
  width: 100%;
}

.editor-actions button {
  white-space: nowrap;
}

.editor-command-block {
  display: grid;
  gap: 10px;
}

.editor-command-block code {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  overflow: auto;
}

@media (max-width: 1180px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-panel-wide {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .editor-shell {
    padding: 16px;
  }

  .editor-hero,
  .editor-panel-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .editor-thead {
    display: none;
  }

  .editor-tr,
  #override-table .editor-tr,
  #source-table .editor-tr {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
  }
}
