/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; background: #F1F5F9; color: #1E293B; }

/* ===== Layout ===== */
#app { display: flex; flex-direction: column; height: 100vh; }
#main { display: flex; flex: 1; overflow: hidden; }

/* ===== Header ===== */
#header {
  display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 12px;
  background: #FFFFFF; border-bottom: 1.5px solid #E2E8F0;
  flex-shrink: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-left { flex-shrink: 0; }
.header-center { flex: 1; overflow-x: auto; overflow-y: hidden; }
.header-center::-webkit-scrollbar { height: 0; }
.header-right { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }

.logo { display: flex; align-items: center; gap: 8px; user-select: none; }
.logo-text { font-weight: 700; font-size: 15px; color: #1E293B; letter-spacing: -0.3px; }

/* ===== Toolbar ===== */
#toolbar { display: flex; align-items: center; gap: 3px; padding: 0 4px; white-space: nowrap; }
.tool-group { display: flex; align-items: center; gap: 2px; }
.tool-sep { width: 1px; height: 22px; background: #E2E8F0; margin: 0 4px; flex-shrink: 0; }

.tool-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 6px; border: none;
  background: transparent; color: #64748B; cursor: pointer;
  font-size: 12px; font-weight: 500; transition: all 0.12s; white-space: nowrap;
}
.tool-btn:hover { background: #F1F5F9; color: #1E293B; }
.tool-btn.active { background: #EFF6FF; color: #2563EB; font-weight: 600; }

/* Stamp indicator */
#stamp-indicator {
  display: flex; align-items: center; gap: 7px;
  background: #EFF6FF; border: 1.5px solid #93C5FD; border-radius: 8px;
  padding: 4px 10px; color: #1D4ED8; font-size: 12px; font-weight: 500;
}
.stamp-dot { width: 7px; height: 7px; border-radius: 50%; background: #2563EB; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.6; transform:scale(1.3); } }
#stamp-rot-badge {
  background: #2563EB; color: #fff; border-radius: 4px;
  padding: 1px 6px; font-size: 11px; font-weight: 700; min-width: 28px; text-align: center;
}
.stamp-hint {
  color: #60A5FA; font-size: 10px; font-weight: 400;
  border-left: 1px solid #BFDBFE; padding-left: 7px;
}
#stamp-cancel { background: #DBEAFE; border: none; border-radius: 4px; color: #1D4ED8; cursor: pointer; font-size: 11px; padding: 2px 7px; font-weight: 600; transition: all .12s; }
#stamp-cancel:hover { background: #EF4444; color: #fff; }
@media (max-width: 900px) { .stamp-hint { display: none; } }

/* Header buttons */
.hdr-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 8px; border-radius: 6px; border: 1px solid #E2E8F0;
  background: #fff; color: #64748B; cursor: pointer; font-size: 12px;
  transition: all 0.12s; white-space: nowrap;
}
.hdr-btn:hover { background: #F8FAFC; border-color: #CBD5E1; color: #1E293B; }
.hdr-btn:disabled { opacity: 0.35; cursor: default; }
.hdr-btn.danger:hover { background: #FEF2F2; border-color: #FECACA; color: #DC2626; }
.hdr-btn-label { display: inline; }

.btn-primary {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 6px; border: none;
  background: #2563EB; color: #fff; cursor: pointer;
  font-size: 12px; font-weight: 600; transition: all 0.12s;
}
.btn-primary:hover { background: #1D4ED8; }
.btn-ghost { padding: 6px 12px; border-radius: 6px; border: 1.5px solid #E2E8F0; background: #fff; color: #64748B; cursor: pointer; font-size: 12px; transition: all .12s; }
.btn-ghost:hover { background: #F8FAFC; color: #1E293B; }

/* ===== Left Panel ===== */
#panel-left {
  width: 230px; flex-shrink: 0;
  background: #FFFFFF; border-right: 1.5px solid #E2E8F0;
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-inner { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

/* Search */
.lib-search-wrap {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-bottom: 1px solid #F1F5F9; flex-shrink: 0;
  background: #F8FAFC;
}
.search-icon { color: #94A3B8; flex-shrink: 0; }
#lib-search {
  flex: 1; border: none; background: transparent; font-size: 12px;
  color: #1E293B; outline: none;
}
#lib-search::placeholder { color: #94A3B8; }
#lib-search-clear { background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 13px; padding: 0; }
#lib-search-clear:hover { color: #64748B; }

/* Search results */
#search-results { flex: 1; overflow-y: auto; padding: 8px; }

/* Library normal */
#lib-normal { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

/* Tabs */
.lib-tabs {
  display: flex; gap: 0; border-bottom: 1.5px solid #E2E8F0;
  background: #F8FAFC; flex-shrink: 0; overflow-x: auto; overflow-y: hidden;
}
.lib-tabs::-webkit-scrollbar { height: 0; }
.lib-tab {
  padding: 7px 10px; border: none; background: transparent;
  color: #64748B; font-size: 11px; font-weight: 500; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .12s; white-space: nowrap;
}
.lib-tab:hover { color: #1E293B; background: #F1F5F9; }
.lib-tab.active { color: #2563EB; border-bottom-color: #2563EB; background: #FFFFFF; font-weight: 600; }

/* Library panels */
.lib-panel { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px; }
.lib-panel::-webkit-scrollbar { width: 3px; }
.lib-panel::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 2px; }

.lib-section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: #94A3B8; margin: 6px 0 5px;
}
.lib-hint { font-size: 11px; color: #64748B; line-height: 1.5; margin-bottom: 10px; padding: 8px; background: #F8FAFC; border-radius: 6px; }

/* Grid */
.lib-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 4px; }

/* Library items */
.lib-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 6px; border-radius: 8px; border: 1.5px solid #E2E8F0;
  background: #FAFAFA; cursor: pointer; transition: all 0.12s;
  font-size: 10px; color: #64748B; font-weight: 500; text-align: center;
  min-height: 62px; justify-content: center;
}
.lib-item:hover { background: #EFF6FF; border-color: #93C5FD; color: #1D4ED8; }
.lib-item.active-stamp {
  background: #DBEAFE; border-color: #2563EB; color: #1D4ED8;
  box-shadow: 0 0 0 2px #BFDBFE;
}
.lib-item.active-stamp::after {
  content: '✓'; position: absolute; top: 3px; right: 5px;
  font-size: 9px; font-weight: 700; color: #2563EB;
}
.lib-item { position: relative; }
.lib-item span { line-height: 1.2; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }

/* Previews */
.lib-preview {
  font-size: 22px; line-height: 1; display: flex; align-items: center;
  justify-content: center; width: 36px; height: 30px; color: #475569;
}
.road-preview { font-size: 14px; color: #374151; }
.highway-prev { font-size: 12px; color: #F59E0B; letter-spacing: 1px; }
.urban-prev { font-size: 18px; color: #94A3B8; }
.path-prev { font-size: 12px; color: #92400E; letter-spacing: 2px; }
.parking-prev { font-size: 16px; font-weight: 800; color: #2563EB; }
.crosswalk-prev { font-size: 18px; }
.stopline-prev { width: 28px; height: 5px; background: #EF4444; border-radius: 2px; }
.dashes-prev { font-size: 12px; color: #64748B; letter-spacing: 3px; }
.sign-stop-prev { font-size: 8px; background: #EF4444; color: #fff; padding: 3px 5px; border-radius: 3px; font-weight: 800; }
.sign-priority-prev { font-size: 22px; color: #EF4444; }
.sign-diamond-prev { font-size: 16px; color: #EAB308; }
.sign-speed-prev { font-size: 13px; font-weight: 800; color: #1E293B; background: #fff; border: 2.5px solid #EF4444; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.sign-oneway-prev { font-size: 20px; color: #2563EB; }
.sign-nopark-prev { font-size: 18px; color: #EF4444; text-decoration: line-through; }

/* Custom form */
.custom-form { display: flex; flex-direction: column; gap: 6px; }
.cf-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #94A3B8; }
.cf-emoji-row { display: flex; align-items: flex-start; gap: 8px; }
.emoji-input { width: 42px; height: 38px; font-size: 22px; text-align: center; border: 1.5px solid #E2E8F0; border-radius: 6px; background: #F8FAFC; color: #1E293B; outline: none; }
.emoji-input:focus { border-color: #2563EB; background: #fff; }
.emoji-quick { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; }
.emoji-quick button { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 4px; padding: 3px; font-size: 14px; cursor: pointer; transition: background .1s; }
.emoji-quick button:hover { background: #EFF6FF; }
.cf-input { width: 100%; padding: 6px 8px; border: 1.5px solid #E2E8F0; border-radius: 6px; background: #F8FAFC; color: #1E293B; font-size: 12px; outline: none; font-family: inherit; }
.cf-input:focus { border-color: #2563EB; background: #fff; }
.btn-place-custom { margin-top: 6px; padding: 8px; border-radius: 7px; border: none; background: #2563EB; color: #fff; cursor: pointer; font-size: 12px; font-weight: 600; transition: all .12s; }
.btn-place-custom:hover { background: #1D4ED8; }

/* Library bottom bar */
.lib-bottom {
  flex-shrink: 0; border-top: 1.5px solid #E2E8F0;
  background: #F8FAFC; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px;
}
.bottom-section {}
.bottom-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #94A3B8; margin-bottom: 5px; }
.color-row { display: flex; align-items: center; gap: 6px; }
.color-picker-big { width: 28px; height: 28px; border: 2px solid #E2E8F0; border-radius: 6px; cursor: pointer; padding: 0; background: none; flex-shrink: 0; }
.quick-colors { display: flex; gap: 4px; flex-wrap: wrap; }
.qc { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid transparent; cursor: pointer; transition: all .1s; }
.qc:hover { transform: scale(1.15); }
.qc.active { border-color: #fff; box-shadow: 0 0 0 2px #2563EB; }
.bottom-controls { display: flex; gap: 12px; }
.toggle-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #64748B; cursor: pointer; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 30px; height: 17px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #CBD5E1; border-radius: 9px; transition: 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 13px; height: 13px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.toggle input:checked + .toggle-slider { background: #2563EB; }
.toggle input:checked + .toggle-slider::before { transform: translateX(13px); }

/* ===== Right Panel ===== */
#panel-right {
  width: 210px; flex-shrink: 0;
  background: #FFFFFF; border-left: 1.5px solid #E2E8F0;
  overflow-y: auto; overflow-x: hidden;
}
#panel-right .panel-inner { padding: 0; overflow-y: auto; height: 100%; }
#panel-right .panel-inner::-webkit-scrollbar { width: 3px; }
#panel-right .panel-inner::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 2px; }

.section-block { padding: 10px; border-bottom: 1px solid #F1F5F9; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #94A3B8; margin-bottom: 8px; }
.section-header .section-title { margin-bottom: 0; }
#el-count { color: #CBD5E1; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }

/* Props */
.props-section { padding: 10px; border-bottom: 1px solid #F1F5F9; }
.props-section .section-title { margin-bottom: 6px; }
.props-empty { text-align: center; padding: 16px 8px; color: #CBD5E1; }
.props-empty svg { margin-bottom: 6px; }
.props-empty p { font-size: 11px; color: #94A3B8; }

.prop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.prop-row > label { font-size: 11px; color: #64748B; flex-shrink: 0; }
.prop-row input[type="color"] { width: 28px; height: 22px; border: 1.5px solid #E2E8F0; border-radius: 4px; cursor: pointer; background: #fff; padding: 1px; }
.range-row { display: flex; align-items: center; gap: 5px; flex: 1; }
.range-row input[type="range"] { flex: 1; accent-color: #2563EB; height: 4px; }
.range-row span { font-size: 10px; color: #94A3B8; min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.fill-row { display: flex; align-items: center; gap: 6px; }
.text-input { flex: 1; padding: 4px 6px; border: 1.5px solid #E2E8F0; border-radius: 5px; background: #F8FAFC; color: #1E293B; font-size: 11px; outline: none; font-family: inherit; }
.text-input:focus { border-color: #2563EB; background: #fff; }
.rotation-col { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.rot-btns { display: flex; gap: 3px; }
.rot-btns button { flex: 1; padding: 3px 0; border-radius: 4px; border: 1.5px solid #E2E8F0; background: #F8FAFC; color: #64748B; font-size: 9px; cursor: pointer; transition: all .1s; }
.rot-btns button:hover { background: #EFF6FF; border-color: #93C5FD; color: #1D4ED8; }

.prop-actions { display: flex; gap: 5px; margin-top: 10px; }
.prop-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; border-radius: 6px; border: 1.5px solid #E2E8F0; background: #F8FAFC; color: #64748B; cursor: pointer; font-size: 11px; transition: all .12s; }
.prop-btn:hover { background: #F1F5F9; border-color: #CBD5E1; color: #1E293B; }
.prop-btn.danger { border-color: #FEE2E2; color: #DC2626; background: #FFF5F5; }
.prop-btn.danger:hover { background: #FEE2E2; }

/* Layers */
.layer-item { display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 6px; cursor: pointer; transition: background .1s; margin-bottom: 2px; }
.layer-item:hover { background: #F1F5F9; }
.layer-item.active { background: #EFF6FF; }
.layer-name { flex: 1; font-size: 11px; color: #64748B; }
.layer-item.active .layer-name { color: #2563EB; font-weight: 600; }
.layer-vis { background: none; border: none; cursor: pointer; font-size: 13px; opacity: 0.5; }
.layer-vis:hover { opacity: 1; }
.mini-btn { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid #E2E8F0; background: #F8FAFC; color: #64748B; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .1s; }
.mini-btn:hover { background: #EFF6FF; border-color: #93C5FD; color: #2563EB; }

/* Elements */
.element-item { display: flex; align-items: center; gap: 5px; padding: 4px 5px; border-radius: 5px; cursor: pointer; font-size: 11px; color: #64748B; transition: background .1s; margin-bottom: 1px; }
.element-item:hover { background: #F1F5F9; }
.element-item.selected { background: #EFF6FF; color: #2563EB; font-weight: 500; }
.el-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.el-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Notes */
#notes-field { width: 100%; height: 80px; resize: none; border: 1.5px solid #E2E8F0; border-radius: 6px; padding: 6px 8px; background: #F8FAFC; color: #1E293B; font-size: 11px; line-height: 1.5; font-family: inherit; outline: none; }
#notes-field:focus { border-color: #2563EB; background: #fff; }

/* Export */
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.export-btn { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 4px; border-radius: 6px; border: 1.5px solid #E2E8F0; background: #F8FAFC; color: #64748B; cursor: pointer; font-size: 11px; transition: all .12s; }
.export-btn:hover { background: #EFF6FF; border-color: #93C5FD; color: #1D4ED8; }

/* ===== Canvas ===== */
#canvas-area { flex: 1; position: relative; overflow: hidden; background: #E2E8F0; }
#canvas-container { position: absolute; transform-origin: 0 0; }
#canvas-grid, #canvas-main, #canvas-overlay { position: absolute; top: 0; left: 0; }
#canvas-grid { z-index: 1; }
#canvas-main { z-index: 2; }
#canvas-overlay { z-index: 3; cursor: crosshair; }
#canvas-overlay.select-mode { cursor: default; }
#canvas-overlay.pan-mode { cursor: grab; }
#canvas-overlay.pan-mode.panning { cursor: grabbing; }
#canvas-overlay.text-mode { cursor: text; }
#canvas-overlay.eraser-mode { cursor: cell; }
#canvas-overlay.stamp-mode { cursor: copy; }

/* Zoom controls */
#zoom-controls {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 3px;
  background: #FFFFFF; border: 1.5px solid #E2E8F0; border-radius: 8px;
  padding: 4px 8px; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.zoom-btn { width: 24px; height: 24px; border-radius: 5px; border: none; background: transparent; color: #64748B; cursor: pointer; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all .1s; }
.zoom-btn:hover { background: #F1F5F9; color: #1E293B; }
#zoom-label { font-size: 12px; font-weight: 600; color: #1E293B; min-width: 38px; text-align: center; }

#coords-display { position: absolute; bottom: 16px; right: 16px; font-size: 10px; color: #94A3B8; background: #fff; border: 1px solid #E2E8F0; padding: 3px 8px; border-radius: 5px; font-family: monospace; box-shadow: 0 1px 4px rgba(0,0,0,.06); }

/* Text input */
#text-input-container { position: absolute; z-index: 20; }
#text-input-field { background: rgba(255,255,255,.97); border: 2px solid #2563EB; color: #1E293B; font-size: 14px; padding: 3px 8px; border-radius: 5px; outline: none; min-width: 100px; font-family: inherit; box-shadow: 0 2px 8px rgba(37,99,235,.15); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(3px); }
.modal.hidden { display: none; }
.modal-box { background: #fff; border: 1.5px solid #E2E8F0; border-radius: 12px; width: 90vw; max-width: 860px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.15); overflow: hidden; }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #F1F5F9; }
.modal-hdr h2 { font-size: 15px; font-weight: 600; color: #1E293B; }
.modal-close-btn { background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 4px; transition: all .1s; }
.modal-close-btn:hover { background: #F1F5F9; color: #1E293B; }
.modal-body { flex: 1; overflow: auto; padding: 16px; display: flex; justify-content: center; background: #F8FAFC; }
#preview-canvas { max-width: 100%; border: 1px solid #E2E8F0; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.modal-ftr { padding: 12px 18px; border-top: 1px solid #F1F5F9; display: flex; align-items: center; gap: 12px; }
.modal-notes { flex: 1; font-size: 11px; color: #94A3B8; line-height: 1.5; max-height: 50px; overflow-y: auto; }
.modal-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%); background: #1E293B; color: #F8FAFC; padding: 8px 16px; border-radius: 8px; font-size: 12px; z-index: 2000; pointer-events: none; transition: opacity .25s; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.toast.hidden { opacity: 0; }
.toast.success { background: #166534; color: #DCFCE7; }
.toast.error { background: #991B1B; color: #FEE2E2; }

/* Mobile only */
.mobile-only { display: none; }

/* ===== Scrollbars ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #CBD5E1; }
.hidden { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .logo-text { display: none; }
  .hdr-btn-label { display: none; }
  .tool-btn span { display: none; }
}

@media (max-width: 700px) {
  .mobile-only { display: flex; }

  #panel-left {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    width: 100%; max-height: 55vh; height: 55vh;
    border-right: none; border-top: 2px solid #E2E8F0;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%); transition: transform .3s ease;
    z-index: 300; box-shadow: 0 -4px 24px rgba(0,0,0,.1);
  }
  #panel-left.open { transform: translateY(0); }

  #panel-right {
    position: fixed; right: 0; top: 52px; bottom: 0;
    width: 260px; max-width: 80vw;
    transform: translateX(100%); transition: transform .3s ease;
    z-index: 300; box-shadow: -4px 0 24px rgba(0,0,0,.1);
  }
  #panel-right.open { transform: translateX(0); }

  #panel-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,.25);
    z-index: 200; backdrop-filter: blur(1px);
  }

  #canvas-area { flex: 1; }
}

@media (max-width: 480px) {
  #header { padding: 0 8px; gap: 5px; }
  .tool-sep { display: none; }
  #toolbar .tool-group:nth-child(3) { display: none; } /* hide eraser on tiny screens */
}
