/* Drawings page layout. Shared pieces live in /ui/kit.css; colours in /ui/tokens.css. */

.ui-head label {
  width: min(340px, 100%);
}

.drawing-attention {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.drawing-attention li {
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.drawing-attention:empty {
  display: none;
}

.drawing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.drawing-bar .ui-eyebrow {
  margin: 0;
}

.sheet-list,
.sheet-history {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet {
  border-top: 1px solid var(--hair);
}

.sheet.off {
  color: var(--text-3);
}

/* Tick, sheet, revision, where the site stands, actions: one line that wraps on a phone. */
.sheet-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) 232px;
  align-items: center;
  gap: 8px 18px;
  min-height: 64px;
  padding: 10px 0;
}

.sheet-line input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.sheet-line b {
  font: 600 14px/1.3 var(--mono);
}

.sheet-name {
  font: 500 15px/1.35 var(--sans);
  overflow-wrap: anywhere;
}

.sheet small {
  display: block;
  color: var(--text-3);
  font: 500 12px/1.5 var(--mono);
}

.sheet-line .ui-state {
  white-space: normal;
}

.sheet-line .ui-actions {
  flex-wrap: nowrap;
}

.sheet-history {
  margin: 0 0 6px 42px;
  border-top: 1px solid var(--hair);
}

.sheet-history li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}

.sheet-history li.off {
  color: var(--text-3);
}

.sheet-history li > span {
  flex: 1 1 280px;
  min-width: 0;
}

.sheet .note {
  margin: 8px 0 14px 42px;
}

@media (max-width: 760px) {
  .sheet-line {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .sheet-line > :nth-child(n + 3) {
    grid-column: 2;
  }

  .sheet-history,
  .sheet .note {
    margin-left: 0;
  }
}
