/* ================================================================
   Cessna Breaker Label Generator — Stylesheet
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-app:      #f0f0f3;   /* canvas area — light grey  */
  --bg-side:     #ffffff;   /* sidebar — white           */
  --bg-elevated: #f5f5f7;   /* cards, dropdowns          */
  --bg-control:  #ffffff;   /* inputs                    */
  --bg-hover:    #e8e8ec;   /* hover state               */
  --bg-active:   #dcdce2;   /* active/pressed            */

  /* Borders — black-alpha for light surfaces */
  --bd-faint:   rgba(0,0,0,0.06);
  --bd-soft:    rgba(0,0,0,0.12);
  --bd-default: rgba(0,0,0,0.20);
  --bd-strong:  rgba(0,0,0,0.36);

  /* Text — WCAG AAA on white */
  --tx-1: #111111;   /* ~18:1 — headings, values, input text */
  --tx-2: #374151;   /* ~12:1 — labels, form text            */
  --tx-3: #6b7280;   /*  ~7:1 — helper text, secondary       */
  --tx-4: #9ca3af;   /*  ~4:1 — row numbers, drag handles    */

  /* Accent — blue-600, readable on white */
  --accent:      #2563eb;
  --accent-lt:   #3b82f6;
  --accent-bg:   rgba(37,99,235,0.08);
  --accent-bd:   rgba(37,99,235,0.35);
  --accent-glow: rgba(37,99,235,0.18);

  /* Danger */
  --danger:    #dc2626;
  --danger-bg: rgba(220,38,38,0.08);

  /* Shape */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 9px;
  --r-lg: 13px;
  --r-xl: 18px;

  --ease: 150ms ease;
  --side-w: 400px;
}

/* ── Base ───────────────────────────────────────────────────────── */
body {
  font-family: -apple-system, 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg-app);
  color: var(--tx-1);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
#sidebar {
  width: var(--side-w);
  flex-shrink: 0;
  background: var(--bg-side);
  border-right: 1px solid var(--bd-soft);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

#sidebar::-webkit-scrollbar       { width: 5px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: var(--bd-default); border-radius: 3px; }

/* ── App header ─────────────────────────────────────────────────── */
#app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--bd-soft);
  background: linear-gradient(160deg, rgba(37,99,235,0.06) 0%, transparent 55%);
  flex-shrink: 0;
}

#app-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-lt) 0%, var(--accent) 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 18px var(--accent-glow);
}

#app-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tx-1);
  letter-spacing: -0.02em;
}

#app-sub {
  font-size: 11.5px;
  color: var(--tx-3);
  margin-top: 2px;
}

/* ── Panels ─────────────────────────────────────────────────────── */
.panel {
  border-bottom: 1px solid var(--bd-soft);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px 9px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-lt);
}

.panel-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 13px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.8;
  flex-shrink: 0;
}

.panel-body {
  padding: 4px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Form rows ──────────────────────────────────────────────────── */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row label {
  width: 150px;
  flex-shrink: 0;
  color: var(--tx-2);
  font-size: 12.5px;
  font-weight: 500;
}

input[type="number"],
input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 34px;
  background: var(--bg-control);
  border: 1px solid var(--bd-soft);
  border-radius: var(--r-sm);
  color: var(--tx-1);
  font-size: 13px;
  padding: 0 11px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

input[type="number"]:hover,
input[type="text"]:hover  { border-color: var(--bd-default); }

input[type="number"]:focus,
input[type="text"]:focus  {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

input[type="color"] {
  width: 34px;
  height: 34px;
  border: 1px solid var(--bd-soft);
  border-radius: var(--r-sm);
  padding: 3px;
  background: var(--bg-control);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--ease);
}

input[type="color"]:hover { border-color: var(--bd-default); }

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.hex-input {
  width: 80px !important;
  flex: none !important;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 11.5px !important;
  letter-spacing: 0.03em;
}

/* ── Color rows ─────────────────────────────────────────────────── */
.color-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.color-row-top > .field-label {
  color: var(--tx-2);
  font-size: 12.5px;
  font-weight: 500;
}

.transp-group {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.transp-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.transp-lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-3);
  white-space: nowrap;
  user-select: none;
}

.color-row .color-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--ease);
}

.color-row.is-transparent .color-controls {
  opacity: 0.20;
  pointer-events: none;
}

/* ── Rotation picker ────────────────────────────────────────────── */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-stack-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tx-2);
}

.rot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.rot-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 58px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--bd-soft);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}

.rot-tile:hover:not(.active) {
  background: var(--bg-hover);
  border-color: var(--bd-default);
}

.rot-tile.active {
  background: var(--accent-bg);
  border-color: var(--accent-bd);
}

.rot-icon {
  font-size: 17px;
  font-weight: 800;
  color: var(--tx-2);
  line-height: 1;
  display: inline-block;
}

.rot-tile.active .rot-icon { color: var(--accent); }

.rot-deg {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--tx-4);
  font-variant-numeric: tabular-nums;
}

.rot-tile.active .rot-deg { color: var(--accent); }

.rot-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Font picker ────────────────────────────────────────────────── */
.font-picker {
  position: relative;
  flex: 1;
}

.font-trigger {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-control);
  border: 1px solid var(--bd-soft);
  border-radius: var(--r-sm);
  color: var(--tx-1);
  padding: 0 11px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.font-trigger:hover { border-color: var(--bd-default); }
.font-trigger:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.font-trigger-label {
  font-size: 14px;
  font-weight: bold;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.font-arrow {
  font-size: 9px;
  color: var(--tx-3);
  flex-shrink: 0;
  transition: transform var(--ease);
}

.font-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--bd-default);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 0 0 1px var(--bd-soft);
  max-height: 310px;
  overflow-y: auto;
  z-index: 9999;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.font-dropdown.open { display: block; }

.font-option {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--bd-faint);
  transition: background var(--ease);
}

.font-option:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.font-option:last-child  { border-bottom: none; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.font-option:hover       { background: var(--bg-hover); }
.font-option.active      { background: var(--accent-bg); }

.font-opt-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--tx-1);
  white-space: nowrap;
  overflow: hidden;
}

/* ── Breaker list ───────────────────────────────────────────────── */
#breaker-panel { flex: 1; }

.list-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--tx-3);
  padding: 0 0 6px 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.list-col-header .lch-label { flex: 1; }
.list-col-header .lch-hint  { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--tx-4); }

#breaker-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

/* ── Breaker row card ───────────────────────────────────────────── */
.b-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px 10px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--bd-soft);
  border-radius: var(--r-md);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.b-row:hover {
  border-color: var(--bd-default);
}

.b-row.is-modified {
  border-color: #d97706;
  background: rgba(217,119,6,0.05);
}

.b-row.is-modified:hover {
  border-color: #b45309;
}

/* Revert button — invisible until card is modified (keeps grid space always) */
.b-revert {
  display: inline-flex;
  visibility: hidden;
  pointer-events: none;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(217,119,6,0.40);
  border-radius: var(--r-xs);
  color: #d97706;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.b-row.is-modified .b-revert {
  visibility: visible;
  pointer-events: auto;
}

.b-revert:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

.b-revert:hover {
  background: rgba(217,119,6,0.12);
  border-color: #d97706;
  color: #b45309;
}

.b-handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  width: 18px;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  color: var(--tx-4);
  padding-top: 5px;
  transition: color var(--ease);
}

.b-handle:hover  { color: var(--tx-2); }
.b-handle:active { cursor: grabbing; }

.b-drag-icon { font-size: 13px; line-height: 1; letter-spacing: -1px; }

.b-num {
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tx-4);
}

.b-row[draggable]  { cursor: default; }
.b-row.dragging    { opacity: 0.3; }
.b-row.drag-above  { border-top:    2px solid var(--accent); }
.b-row.drag-below  { border-bottom: 2px solid var(--accent); }

/* Body column: stacks textarea above controls */
.b-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.b-label {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-control);
  border: 1px solid var(--bd-soft);
  border-radius: var(--r-sm);
  color: var(--tx-1);
  font-size: 12.5px;
  font-family: 'Menlo', 'Consolas', monospace;
  padding: 6px 9px;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.b-label:hover { border-color: var(--bd-default); }
.b-label:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

/* Control grid: labels row + controls row, full-width under the textarea */
.b-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 4px;
  align-items: center;
  justify-items: center;
  width: 100%;
}

.b-ctrl-lbl {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tx-4);
}

.b-size-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
}

.b-gap-val,
.b-brkw-val,
.b-size-val {
  font-size: 10.5px;
  color: var(--tx-3);
  min-width: 30px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ── Icon buttons ───────────────────────────────────────────────── */
.icon-btn {
  background: transparent;
  border: 1px solid var(--bd-soft);
  border-radius: var(--r-xs);
  color: var(--tx-3);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.icon-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-bd);
  color: var(--tx-1);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon-btn.del:hover {
  background: var(--danger-bg);
  border-color: rgba(220,38,38,0.40);
  color: var(--danger);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  background: var(--bg-elevated);
  border: 1px solid var(--bd-default);
  border-radius: var(--r-md);
  color: var(--tx-2);
  cursor: pointer;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn:hover {
  background: var(--bg-hover);
  color: var(--tx-1);
  border-color: var(--bd-strong);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-dashed:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-lt) 0%, var(--accent) 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 10px var(--accent-glow);
  padding: 9px 22px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, var(--accent-lt) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-dashed {
  border-style: dashed;
  border-color: var(--bd-soft);
  color: var(--tx-3);
  width: 100%;
  border-radius: var(--r-md);
  padding: 9px;
  font-size: 12.5px;
}

.btn-dashed:hover {
  color: var(--tx-2);
  border-color: var(--accent-bd);
  background: var(--accent-bg);
}

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.btn-row .btn { flex: 1; }

/* ── Main / preview area ────────────────────────────────────────── */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Import/measurements labels that act as buttons */
label.btn { cursor: pointer; }

/* Measurements toggle — highlighted when checked */
.meas-toggle-btn input { display: none; }
.meas-toggle-btn:has(input:checked) {
  background: #eff6ff;
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

#toolbar {
  padding: 12px 24px;
  background: var(--bg-side);
  border-bottom: 1px solid var(--bd-soft);
  display: flex;
  align-items: center;
  gap: 16px;
}

#info {
  font-size: 11px;
  color: var(--tx-3);
  font-variant-numeric: tabular-nums;
  font-family: 'Menlo', 'Consolas', monospace;
  letter-spacing: 0.01em;
  transition: color var(--ease);
}

#info.info-overflow {
  color: var(--danger);
  font-weight: 600;
}

#overflow-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #fef2f2;
  border-bottom: 2px solid #dc2626;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

#overflow-banner[hidden] { display: none; }

.overflow-icon {
  font-size: 18px;
  flex-shrink: 0;
  animation: overflow-pulse 1.2s ease-in-out infinite;
}

@keyframes overflow-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

#canvas-wrap {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-app);
  padding: 32px;
}

/* Empty breaker list state */
.b-empty-state {
  text-align: center;
  padding: 24px 16px;
  color: var(--tx-4);
  font-size: 12px;
  border: 1.5px dashed var(--bd-soft);
  border-radius: var(--r-md);
  line-height: 1.5;
}

/* Panel title count badge */
.panel-title-count {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--tx-3);
  font-size: 11px;
}

/* Font dropdown keyboard focus */
.font-option:focus-visible {
  outline: none;
  background: var(--bg-hover);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* Unavailable fonts are visually dimmed */
.font-option.font-unavailable .font-opt-name {
  opacity: 0.45;
}

.font-option.font-unavailable::after {
  content: 'not available';
  font-size: 10px;
  color: var(--tx-4);
  display: block;
  margin-top: 1px;
}

/* ── Help button ────────────────────────────────────────────────── */
#bmc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0 14px;
  height: 34px;
  background: #FFDD00;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #000000;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: filter var(--ease), transform var(--ease);
}

#bmc-btn:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}

.btn-help {
  margin-left: auto;
  background: transparent;
  border-color: var(--bd-default);
  color: var(--tx-2);
  font-weight: 600;
}

.btn-help:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Help modal ─────────────────────────────────────────────────── */
.help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  animation: fade-in 150ms ease;
}

.help-backdrop[hidden],
.help-modal[hidden] { display: none; }

.help-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: #ffffff;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  animation: modal-in 180ms ease;
}

@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }

.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--bd-soft);
  flex-shrink: 0;
}

.help-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--tx-1);
  letter-spacing: -0.02em;
}

.help-close {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  font-size: 18px;
  line-height: 1;
  color: var(--tx-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), color var(--ease);
}

.help-close:hover { background: var(--bg-hover); color: var(--tx-1); }

.help-body {
  overflow-y: auto;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.help-section h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-lt);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bd-faint);
}

.help-section p,
.help-section ul,
.help-section dl { font-size: 13px; color: var(--tx-2); line-height: 1.65; }

.help-section dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.help-section dt { font-weight: 600; color: var(--tx-1); white-space: nowrap; padding-top: 1px; }
.help-section dd { margin: 0; }
.help-section ul { padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }

.help-section code {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 11.5px;
  background: var(--bg-elevated);
  border: 1px solid var(--bd-faint);
  border-radius: 3px;
  padding: 1px 4px;
}

/* Checkerboard transparency indicator */
#preview {
  display: block;
  border-radius: var(--r-sm);
  box-shadow:
    0 0 0 1px var(--bd-default),
    0 8px 32px rgba(0,0,0,0.12);
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #e8e8ec 25%, transparent 25%),
    linear-gradient(-45deg, #e8e8ec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e8ec 75%),
    linear-gradient(-45deg, transparent 75%, #e8e8ec 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}
