:root{
  --bg: #000;
  --text: #fff;
  --muted: rgba(255,255,255,0.7);
  --line: rgba(255,255,255,0.18);
  --btn: #555;
  --accent: #e67e23;
}

body {
  font-family: sans-serif;
  text-align: center;
  padding: 14px;
  background: var(--bg);
  color: var(--text);
}

.section {
  padding: 8px 0;
}

.sep {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

/* --- Presets row --- */
.presets-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.presets-bar {
  display: flex;
  justify-content: center;
}

#presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.preset {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preset button {
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  background: var(--accent);
}

.preset button.save {
  margin-top: 4px;
  font-size: 10px;
  background: var(--btn);
}

/* --- Rows --- */
.pattern-controls,
.transport-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.transport-spacer {
  width: 10px;
}

/* --- Buttons --- */
.btn-orange {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-dark {
  background: var(--btn);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.small {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
}

/* Divisions: compact, NOT bold */
.division-btn {
  min-width: 70px;
  padding: 10px 10px;
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
}

/* --- Signature section --- */
.sig-block {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.sig-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: center;
}

.sig-label {
  text-align: right;
  color: var(--muted);
}

.sig-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.sig-btn {
  min-width: 42px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 8px;
}

/* --- Display area --- */
.display-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.display-item .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.display-item .value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- Shortcuts box --- */
.shortcuts-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

.shortcuts-title {
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.9;
}

.shortcut-line {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 2px 0;
}

.k {
  color: var(--text);
  opacity: 0.95;
  font-weight: 600;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--text);
  opacity: 0.95;
}

.sep-inline {
  margin: 0 8px;
  opacity: 0.5;
}

.rights {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.8;
}

