.ws-font {
  grid-template-columns: var(--left-w, 268px) 1fr var(--right-w, 292px);
}

.gpanel__head {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px var(--pad);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.gpanel__filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpanel__filters select.input {
  flex: 0 1 108px;
}

.gpanel__only {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.gcells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 1px;
  padding: 4px;
  outline: none;
}

.gcell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 3px 2px 4px;
  min-height: 56px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--ink);
}

.gcell:hover {
  background: var(--surface-2);
}

.gcell.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.gcell.is-empty {
  color: var(--ink-4);
}

.gcell.is-locked .gcell__box {
  opacity: 0.55;
}

.gcell__box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.gcell__art {
  display: block;
}

.gcell__ghost {
  color: var(--ink-4);
  font-size: 19px;
  line-height: 1;
}

.gcell__name {
  max-width: 52px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-3);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.gcell.is-active .gcell__name {
  color: var(--ink-2);
}

.gbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}

.gbar__spacer {
  flex: 1;
}

.fmain {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--paper);
}

.ftoolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  padding: 0 6px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  user-select: none;
}

.ftoolbar__group {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
}

.ftoolbar__sep {
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 5px;
  flex: 0 0 auto;
}

.ftoolbar__spacer {
  flex: 1;
  min-width: 8px;
}

.ftoolbar__zoom {
  min-width: 44px;
  font-variant-numeric: tabular-nums;
}

.ftoolbar__name {
  color: var(--ink-3);
  white-space: nowrap;
  flex: 0 0 auto;
}

.feditor {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.feditor > * {
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.fstrip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
  padding: 5px var(--pad) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.fstrip__row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fstrip__row > .input {
  flex: 0 1 220px;
}

.fstrip__presets {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  min-width: 0;
}

.fstrip__canvas {
  display: block;
  width: 100%;
  height: 144px;
  color: var(--ink);
}

.fam-subhead,
.feat-head,
.kern-sub,
.kern-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}

.prm {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.prm__range {
  width: 100%;
  height: 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: ew-resize;
}

.prm__range::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--line-2);
}

.prm__range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  background: var(--ink-2);
  border: 0;
  border-radius: 1px;
}

.prm__range:hover::-webkit-slider-thumb,
.prm__range:focus::-webkit-slider-thumb {
  background: var(--accent);
}

.prm__range::-moz-range-track {
  height: 1px;
  background: var(--line-2);
}

.prm__range::-moz-range-thumb {
  width: 9px;
  height: 9px;
  background: var(--ink-2);
  border: 0;
  border-radius: 1px;
}

.prm__range:hover::-moz-range-thumb {
  background: var(--accent);
}

.fam-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--row);
  padding: 0 2px;
  cursor: pointer;
}

.fam-row:hover,
.fam-row.is-open {
  background: var(--surface-2);
}

.fam-row__chevron {
  display: flex;
  align-items: center;
  color: var(--ink-3);
  flex: 0 0 auto;
}

.fam-row__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fam-row__wc {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.fam-badge {
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-3);
  font-size: var(--fs-xs);
  line-height: 15px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.fam-badge--ital {
  font-style: italic;
}

.fam-edit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 6px 7px;
  padding: 4px 0 6px 10px;
  border-left: 1px solid var(--line);
}

.fam-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  cursor: pointer;
}

.fam-check input,
.exp-check input {
  accent-color: var(--accent);
  margin: 0;
}

.fam-master {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--row);
}

.fam-report__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 200px;
  overflow-y: auto;
}

.feat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  min-width: 0;
}

.feat-row__from {
  color: var(--ink-2);
  white-space: nowrap;
}

.feat-row__arrow {
  color: var(--ink-4);
}

.feat-row__to {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.feat-row__to:hover {
  color: var(--accent);
}

.feat-sets {
  display: flex;
  flex-direction: column;
}

.feat-set {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.feat-set__head {
  display: flex;
  align-items: center;
  gap: 4px;
}

.feat-set__head .field {
  flex: 1;
  min-width: 0;
}

.kern-quick {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kern-preview {
  display: block;
  width: 100%;
  height: 84px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
}

.kern-preview:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.kern-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 210px;
  overflow-y: auto;
}

.kern-list--all {
  max-height: 180px;
}

.kern-row {
  padding-left: 5px;
  border-left: 2px solid transparent;
}

.kern-row.is-set {
  border-left-color: var(--accent);
  background: var(--surface-2);
}

.kern-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  min-width: 0;
}

.kern-pair__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.kern-pair__name:hover {
  color: var(--accent);
}

.kern-pair__val {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.exp-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exp-label {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exp-formats {
  display: flex;
  gap: 16px;
}

.exp-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs);
  cursor: pointer;
}

.exp-check--row {
  height: 22px;
  min-width: 0;
}

.exp-meta {
  margin-left: auto;
  white-space: nowrap;
}

.exp-instances {
  display: flex;
  flex-direction: column;
  max-height: 200px;
  overflow-y: auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.exp-preview {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 140px;
  overflow-y: auto;
  color: var(--ink-2);
}

.exp-preview__row {
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}
