
.workspace--type {
  grid-template-columns: 268px 3px 1fr 3px 292px;
}

.type-view {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  min-width: 0;
  min-height: 0;
  touch-action: none;
}

.type-view.is-panning {
  cursor: grab;
}

.type-paper {
  position: absolute;
  top: 0;
  left: 0;
  outline: 1px solid var(--line-2);
  will-change: transform;
}

.type-layer {
  position: absolute;
  inset: 0;
}

.type-guides {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
}

.type-guides * {
  vector-effect: non-scaling-stroke;
  fill: none;
  stroke-width: 1;
}

.type-g-grid {
  stroke: var(--grid-line);
}

.type-g-margin {
  stroke: var(--line-2);
  stroke-dasharray: 3 3;
}

.type-g-col {
  stroke: var(--accent-line);
  stroke-dasharray: 2 4;
}

.type-block {
  position: absolute;
  top: 0;
  left: 0;
  cursor: default;
}

.type-block.is-locked {
  cursor: not-allowed;
}

.type-block__text {
  margin: 0;
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  user-select: none;
  -webkit-user-select: none;
}

.type-block__text p {
  margin: 0;
}

.type-block__text > * + * {
  margin-top: var(--pspace, 0);
}

.type-block__text.is-optical {
  hanging-punctuation: first last;
}

.type-block.is-editing {
  cursor: text;
}

.type-block.is-editing .type-block__text {
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.type-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.type-frame {
  position: absolute;
  border: 1px solid var(--accent);
  pointer-events: none;
}

.type-frame.is-locked {
  border-style: dashed;
  border-color: var(--ink-4);
}

.type-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--surface);
  border: 1px solid var(--accent);
  pointer-events: auto;
}

.type-handle[data-dir='n'],
.type-handle[data-dir='s'] {
  cursor: ns-resize;
}

.type-handle[data-dir='e'],
.type-handle[data-dir='w'] {
  cursor: ew-resize;
}

.type-handle[data-dir='nw'],
.type-handle[data-dir='se'] {
  cursor: nwse-resize;
}

.type-handle[data-dir='ne'],
.type-handle[data-dir='sw'] {
  cursor: nesw-resize;
}

.type-guide {
  position: absolute;
  background: var(--accent);
  pointer-events: none;
}

.type-guide.is-v {
  width: 1px;
}

.type-guide.is-h {
  height: 1px;
}

.type-marquee {
  position: absolute;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  opacity: 0.4;
  pointer-events: none;
}

.type-viewbar {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  padding: 0 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  z-index: 4;
}

.type-viewbar__sep {
  width: 1px;
  height: 14px;
  background: var(--line);
  margin: 0 4px;
}

.type-zoom {
  min-width: 42px;
  text-align: center;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.type-count {
  padding: 0 6px;
  color: var(--ink-4);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.type-left .section__body {
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}

.type-style-row {
  gap: 8px;
  cursor: pointer;
}

.type-style-prev {
  flex: 0 0 26px;
  width: 26px;
  color: var(--ink-2);
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}

.type-style-row.is-active .type-style-prev {
  color: var(--ink);
}

.type-style-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.type-block-row {
  cursor: pointer;
}

.type-block-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.type-row-btns {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  opacity: 0;
}

.type-block-row:hover .type-row-btns,
.type-block-row.is-active .type-row-btns {
  opacity: 1;
}

.type-row-btn {
  width: 20px;
  height: 20px;
}

.type-row-btn[disabled] {
  opacity: 0.35;
}

.type-panel-group {
  display: flex;
  flex-direction: column;
}

.type-panel-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.type-aux {
  margin: -2px 0 2px;
  padding-left: 92px;
  color: var(--ink-4);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  min-height: 12px;
}

.type-ot {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.type-ot .field {
  grid-template-columns: 1fr auto;
}

.type-swatches {
  display: flex;
  gap: 4px;
  padding-top: 2px;
}

.type-swatch {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}

.type-swatch:hover {
  border-color: var(--ink-3);
}

.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
