/* ==========================================================================
   HELLDIVER // TAG WORKSHOP
   Editor-specific layout. Shared base styles live in styles.css.
   ========================================================================== */

.editor-page {
  background: var(--bg);
}

.editor-topbar {
  padding-bottom: 14px;
}

.editor-topbar-side {
  gap: 18px;
}

.editor-save-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(240, 198, 75, 0.65);
  animation: pulseDot 2.2s ease-in-out infinite;
}

.editor-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.editor-back:hover {
  border-color: var(--gold);
  background: rgba(240, 198, 75, 0.06);
  color: var(--gold);
}

.editor-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.editor-main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px 26px;
}

.editor-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 32px 0 22px;
}

.editor-hero h1 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.editor-hero h1 span {
  color: var(--gold);
}

.editor-lede {
  max-width: 740px;
  margin-top: 13px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.85;
}

.editor-lede::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 2px 0;
  background: var(--gold);
  transform: rotate(45deg);
}

.editor-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 21, 13, 0.55);
}

.editor-metric {
  display: flex;
  flex-direction: column;
  padding: 11px 17px 10px;
  border-left: 1px solid var(--line);
}

.editor-metric:first-child {
  border-left: 0;
}

.editor-metric span {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.editor-metric strong {
  margin-top: 3px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.editor-metric small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.editor-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Library
   -------------------------------------------------------------------------- */

.library-panel {
  position: sticky;
  top: 14px;
  display: flex;
  flex-direction: column;
  height: min(760px, calc(100vh - 250px));
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(240, 198, 75, 0.035), transparent 32%),
    rgba(16, 20, 12, 0.9);
}

.library-head {
  flex: 0 0 auto;
  padding: 13px 13px 12px;
  border-bottom: 1px solid var(--line);
}

.library-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.library-title .section-index {
  min-width: 28px;
  padding-right: 9px;
  font-size: 9px;
}

.library-title h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.05;
}

.library-title p {
  margin-top: 2px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.library-title > b {
  display: grid;
  place-items: center;
  min-width: 33px;
  height: 23px;
  margin-left: auto;
  padding: 0 6px;
  border: 1px solid rgba(240, 198, 75, 0.28);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
}

.library-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 11px;
  border: 1px solid var(--line);
}

.library-tabs button {
  height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.library-tabs button:last-child {
  border-right: 0;
}

.library-tabs button:hover {
  color: var(--text);
}

.library-tabs button[aria-selected="true"] {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.library-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.library-search input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(4, 6, 3, 0.4);
  color: var(--text);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  outline: none;
}

.library-search input::placeholder {
  color: var(--muted-dark);
}

.library-search input:focus {
  border-color: rgba(240, 198, 75, 0.52);
}

.library-search svg {
  position: absolute;
  right: 10px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  pointer-events: none;
}

.library-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.library-empty {
  padding: 38px 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.library-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 64px;
  padding: 7px 11px;
  border: 0;
  border-bottom: 1px solid rgba(231, 218, 180, 0.075);
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.library-item:hover {
  background: rgba(240, 198, 75, 0.045);
}

.library-item.is-active {
  border-left-color: var(--gold);
  background: rgba(240, 198, 75, 0.08);
}

.library-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 40px;
  overflow: hidden;
}

.library-thumb--weapon {
  background: var(--bone);
}

.library-thumb--weapon img {
  width: 45px;
  height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(20, 23, 15, 0.8));
}

.library-thumb--strat img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.library-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.library-name {
  overflow: hidden;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-meta {
  overflow: hidden;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-item-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.library-tag-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
}

.library-tag-count i {
  width: 4px;
  height: 4px;
  background: var(--gold);
}

.library-edited {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(131, 184, 107, 0.65);
}

.library-chevron {
  color: var(--muted-dark);
  font-size: 12px;
}

.library-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Workbench
   -------------------------------------------------------------------------- */

.workbench {
  min-width: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(240, 198, 75, 0.03), transparent 28%),
    rgba(16, 20, 12, 0.88);
  box-shadow: var(--shadow);
}

.workbench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.workbench-kicker {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.workbench-kicker span {
  color: var(--muted-dark);
}

.workbench-kicker b {
  color: var(--muted);
  font-weight: 400;
}

.workbench-head h2 {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.workbench-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.editor-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 3, 0.28);
  color: var(--text-soft);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.editor-button:hover:not(:disabled) {
  border-color: rgba(240, 198, 75, 0.55);
  background: rgba(240, 198, 75, 0.06);
  color: var(--gold);
}

.editor-button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.editor-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workbench-body {
  padding: 15px;
}

.editor-preview {
  display: grid;
  grid-template-columns: minmax(210px, 290px) minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.editor-preview-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.38), transparent 68%),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(30, 31, 22, 0.065) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(30, 31, 22, 0.065) 24px 25px),
    linear-gradient(145deg, #e7e1cf, #cfc7b1);
}

.editor-preview-visual::before {
  content: "SPECIMEN // ARMORY RECORD";
  position: absolute;
  top: 8px;
  left: 10px;
  color: rgba(23, 26, 18, 0.45);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
}

.editor-preview-visual::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 11px;
  width: 26px;
  height: 26px;
  border-right: 1px solid rgba(23, 26, 18, 0.28);
  border-bottom: 1px solid rgba(23, 26, 18, 0.28);
}

.editor-preview-visual img {
  position: relative;
  z-index: 1;
  width: 90%;
  height: 84%;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 9px rgba(23, 26, 18, 0.26))
    drop-shadow(0 0 1px rgba(20, 23, 15, 0.9));
}

.editor-preview-visual--strat {
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--permit-rgb, 240, 198, 75), 0.17), transparent 66%),
    #0c0f09;
  border-color: var(--line);
}

.editor-preview-visual--strat::before {
  color: var(--muted-dark);
}

.editor-preview-visual--strat::after {
  border-color: var(--line-strong);
}

.editor-preview-visual--strat img {
  width: min(62%, 180px);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.58));
}

.preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.preview-kind {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.preview-name {
  margin-top: 5px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.preview-en {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.preview-badge {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9px;
}

.preview-badge--gold {
  border-color: rgba(240, 198, 75, 0.32);
  color: var(--gold);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 430px;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--line);
}

.preview-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px 6px;
  background: rgba(7, 9, 5, 0.42);
}

.preview-stat span {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
}

.preview-stat b {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  margin-top: 12px;
}

.preview-tag-empty {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
}

.preview-wiki {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin-top: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.preview-wiki:hover {
  color: var(--gold);
}

.preview-wiki svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

/* --------------------------------------------------------------------------
   Tag matrix
   -------------------------------------------------------------------------- */

.tag-editor {
  padding-top: 16px;
}

.tag-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.tag-editor-head h2 {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
}

.tag-editor-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.tag-counter {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  flex: 0 0 auto;
  column-gap: 3px;
  padding: 8px 11px;
  border: 1px solid rgba(240, 198, 75, 0.28);
  background: rgba(240, 198, 75, 0.04);
}

.tag-counter strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 0.9;
}

.tag-counter > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.tag-counter small {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.tag-counter.is-warning {
  border-color: rgba(223, 90, 65, 0.5);
  background: rgba(223, 90, 65, 0.06);
}

.tag-counter.is-warning strong {
  color: var(--red);
}

.tag-matrix {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tag-group-block {
  --tag-color: var(--gold);
  --tag-rgb: 240, 198, 75;
  border: 1px solid rgba(231, 218, 180, 0.11);
  background: rgba(5, 7, 3, 0.22);
}

.tag-group-block[data-group="range"] {
  --tag-color: var(--gold);
  --tag-rgb: 240, 198, 75;
}

.tag-group-block[data-group="role"] {
  --tag-color: var(--red);
  --tag-rgb: 223, 90, 65;
}

.tag-group-block[data-group="utility"] {
  --tag-color: var(--blue);
  --tag-rgb: 90, 168, 212;
}

.tag-group-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(231, 218, 180, 0.08);
}

.tag-group-block-head h3 {
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tag-group-block-head h3 span {
  margin-left: 5px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.tag-group-block-head b {
  color: var(--tag-color);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
}

.tag-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 6px;
  padding: 8px;
}

.tag-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 9px 30px 9px 10px;
  border: 1px solid rgba(231, 218, 180, 0.13);
  background: rgba(11, 14, 8, 0.38);
  color: var(--muted);
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.tag-choice:hover:not(:disabled) {
  border-color: rgba(var(--tag-rgb), 0.48);
  background: rgba(var(--tag-rgb), 0.06);
  color: var(--text-soft);
}

.tag-choice[aria-pressed="true"] {
  border-color: var(--tag-color);
  background: rgba(var(--tag-rgb), 0.13);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--tag-color);
}

.tag-choice:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.tag-choice-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 1px solid var(--tag-color);
  background: transparent;
}

.tag-choice[aria-pressed="true"] .tag-choice-dot {
  background: var(--tag-color);
  box-shadow: 0 0 8px rgba(var(--tag-rgb), 0.5);
}

.tag-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tag-choice-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-choice-copy small {
  color: var(--muted-dark);
  font-size: 9px;
  line-height: 1.5;
}

.tag-choice-check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 15px;
  height: 15px;
  color: var(--tag-color);
  opacity: 0;
}

.tag-choice[aria-pressed="true"] .tag-choice-check {
  opacity: 1;
}

.tag-choice-check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.text-button--danger {
  color: var(--red);
}

.text-button--danger:hover {
  color: #ff7a61;
}

/* --------------------------------------------------------------------------
   Footer note
   -------------------------------------------------------------------------- */

.editor-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(15, 18, 10, 0.66);
}

.editor-note-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240, 198, 75, 0.28);
  color: var(--gold);
}

.editor-note-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.editor-note h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.editor-note p {
  max-width: 900px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.editor-note code {
  color: var(--gold-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.editor-note .text-button {
  flex: 0 0 auto;
  margin-left: auto;
}

.editor-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 17px 28px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Editor responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .editor-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .editor-preview {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 15px;
  }

  .editor-preview-visual {
    min-height: 190px;
  }
}

@media (max-width: 980px) {
  .editor-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .editor-metrics {
    width: 100%;
  }

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

  .library-panel {
    position: static;
    height: 360px;
    min-height: 0;
  }

  .editor-preview {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .tag-choice-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }
}

@media (max-width: 720px) {
  .editor-main {
    padding: 0 20px 20px;
  }

  .editor-topbar {
    padding: 14px 20px;
  }

  .editor-save-state {
    display: none;
  }

  .editor-back span {
    display: none;
  }

  .editor-back {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .editor-hero {
    padding: 25px 0 18px;
  }

  .editor-hero h1 {
    font-size: 46px;
  }

  .editor-lede {
    font-size: 12px;
  }

  .editor-metric {
    padding: 9px 11px;
  }

  .editor-metric strong {
    font-size: 22px;
  }

  .workbench-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .workbench-actions {
    width: 100%;
  }

  .editor-button {
    flex: 1;
    justify-content: center;
  }

  .editor-preview {
    grid-template-columns: 1fr;
  }

  .editor-preview-visual {
    min-height: 210px;
  }

  .editor-preview-visual img {
    width: 82%;
    height: 82%;
  }

  .tag-editor-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .tag-counter {
    align-self: flex-end;
  }

  .tag-editor-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-note {
    flex-wrap: wrap;
  }

  .editor-note .text-button {
    margin-left: 47px;
  }

  .editor-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 15px 20px 26px;
  }
}

@media (max-width: 480px) {
  .editor-main {
    padding: 0 12px 16px;
  }

  .editor-topbar {
    padding: 12px 14px;
  }

  .brand-title {
    font-size: 17px;
  }

  .editor-hero h1 {
    font-size: 40px;
  }

  .editor-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .editor-metric {
    padding: 8px 7px;
  }

  .editor-metric span {
    font-size: 5.8px;
  }

  .editor-metric strong {
    font-size: 19px;
  }

  .editor-metric small {
    font-size: 6.5px;
  }

  .library-panel {
    height: 330px;
  }

  .library-head {
    padding: 11px;
  }

  .workbench-head {
    padding: 11px;
  }

  .workbench-body {
    padding: 11px;
  }

  .editor-preview-visual {
    min-height: 185px;
  }

  .preview-name {
    font-size: 26px;
  }

  .tag-choice-grid {
    grid-template-columns: 1fr;
  }

  .tag-choice {
    min-height: 54px;
  }

  .editor-note {
    padding: 11px;
  }

  .editor-note p {
    font-size: 8.5px;
  }

  .editor-note .text-button {
    margin-left: 0;
  }
}
