/* KiduArt – styles.css */
  :root {
    --toolbar-bg: #1a1a2e;
    --panel-bg:   #16213e;
    --accent:     #e94560;
    --yellow:     #ffd460;
    --teal:       #00b4d8;
    --white:      #f8f9fa;
    --shadow:     0 4px 20px rgba(0,0,0,0.25);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Quicksand', sans-serif;
    background: #0d0d1a;
    height: 100vh;
    display: flex; flex-direction: column;
    overflow: hidden; user-select: none;
  }

  /* ── TOPBAR ── */
  .topbar {
    background: var(--toolbar-bg);
    border-bottom: 2px solid #ffffff0d;
    display: flex; align-items: center;
    padding: 5px 12px;
    gap: 8px;
    flex-shrink: 0;
    overflow: visible; /* FIX T1: was overflow-x:auto which clipped absolute tooltips */
  }

  /* Logo always far left */
  .app-logo {
    font-family: 'Righteous', cursive;
    font-size: 1.15rem; color: var(--yellow);
    letter-spacing: 1px; white-space: nowrap;
    flex-shrink: 0; margin-right: 2px;
  }
  .app-logo span { color: var(--accent); }

  /* Centred content wrapper — carries the scroll so topbar can stay overflow:visible */
  .toolbar-centre {
    display: flex; align-items: center; gap: 8px;
    flex: 1; justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .toolbar-centre::-webkit-scrollbar { display: none; }

  /* FIX #12: scroll-fade affordance on toolbar-centre so users know it's scrollable on small screens */
  .toolbar-centre-wrap {
    flex: 1; position: relative; overflow: hidden; min-width: 0;
  }
  .toolbar-centre-wrap::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
    background: linear-gradient(to right, transparent, var(--toolbar-bg));
    pointer-events: none; z-index: 2;
  }

  .divider { width: 1.5px; height: 46px; background: #ffffff18; flex-shrink: 0; }

  /* section-group: two stacked sub-rows */
  .section-group { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
  .sub-row { display: flex; gap: 4px; align-items: center; }

  /* TOOL BUTTON */
  .tool-btn {
    background: #ffffff10; border: 1.5px solid #ffffff15;
    border-radius: 9px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; cursor: pointer; transition: all 0.15s;
    color: var(--white);
    position: relative; overflow: visible;
    flex-shrink: 0;
  }
  .tool-btn:hover { background: #ffffff22; border-color: #ffffff30; transform: scale(1.08); }
  .tool-btn.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(233,69,96,0.5); }

  /* ── VIEWPORT-FIXED TOOLTIP (real DOM element, escapes all overflow/stacking) ── */
  #tt {
    position: fixed;
    background: rgba(16,16,16,0.95);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2147483647;
    opacity: 0;
    transition: opacity 0.18s ease-out 0.18s, transform 0.18s ease-out 0.18s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  }
  /* arrow shared */
  #tt::before {
    content: '';
    position: absolute;
    width: 0; height: 0;
    border: 5px solid transparent;
    pointer-events: none;
  }
  /* DOWN: arrow on top of box */
  #tt.pos-down { transform: translateY(-4px); }
  #tt.pos-down.tt-show { transform: translateY(0); opacity: 1; }
  #tt.pos-down::before {
    border-bottom-color: rgba(16,16,16,0.95);
    top: -10px; left: 50%; transform: translateX(-50%);
  }
  /* LEFT: arrow on right of box */
  #tt.pos-left { transform: translateX(4px); }
  #tt.pos-left.tt-show { transform: translateX(0); opacity: 1; }
  #tt.pos-left::before {
    border-left-color: rgba(16,16,16,0.95);
    right: -10px; top: 50%; transform: translateY(-50%);
  }

  /* Sliders */
  .size-wrap, .opacity-wrap {
    display: flex; align-items: center; gap: 5px;
    background: #ffffff08; border-radius: 9px;
    padding: 4px 9px; border: 1.5px solid #ffffff10; flex-shrink: 0;
  }
  .size-wrap label, .opacity-wrap label { font-size: 0.62rem; font-weight: 700; color: #94a3b8; white-space: nowrap; }
  #brush-size, #opacity-slider { -webkit-appearance: none; height: 4px; border-radius: 4px; outline: none; cursor: pointer; }
  #brush-size { width: 68px; background: linear-gradient(90deg, var(--accent), var(--yellow)); }
  #opacity-slider { width: 56px; background: linear-gradient(90deg, #ffffff30, var(--teal)); }
  #brush-size::-webkit-slider-thumb, #opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 13px; height: 13px;
    border-radius: 50%; background: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4); cursor: pointer;
  }
  #size-display { font-size: 0.7rem; font-weight: 700; color: var(--yellow); width: 16px; text-align: center; }
  #opacity-display { font-size: 0.7rem; font-weight: 700; color: var(--teal); width: 26px; text-align: center; }

  /* Action buttons */
  .action-btn {
    background: #ffffff10; border: 1.5px solid #ffffff15;
    border-radius: 9px; padding: 4px 11px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.73rem; font-weight: 700; color: var(--white);
    cursor: pointer; transition: all 0.15s; white-space: nowrap; flex-shrink: 0;
  }
  .action-btn:hover { background: #ffffff20; border-color: #ffffff30; }
  .action-btn.save-btn  { background: linear-gradient(135deg,#0f9b58,#06d6a0); border-color: #0f9b58; color: white; }
  .action-btn.clear-btn { background: linear-gradient(135deg,#e94560,#ff6b6b); border-color: var(--accent); color: white; }
  .action-btn.save-btn:hover  { box-shadow: 0 4px 14px rgba(15,155,88,0.4); transform: scale(1.04); }
  .action-btn.clear-btn:hover { box-shadow: 0 4px 14px rgba(233,69,96,0.4); transform: scale(1.04); }

  /* MAIN */
  .main { display: flex; flex: 1; overflow: hidden; }

  /* Left colour panel */
  .colour-panel {
    background: var(--panel-bg); width: 64px;
    display: flex; flex-direction: column; align-items: center;
    padding: 9px 6px; gap: 6px;
    border-right: 2px solid #ffffff0d;
    overflow-y: auto; flex-shrink: 0;
  }
  .colour-panel::-webkit-scrollbar { width: 3px; }
  .colour-panel::-webkit-scrollbar-thumb { background: #ffffff20; border-radius: 3px; }
  .panel-label { font-size: 0.57rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #475569; text-align: center; }
  .current-colour-wrap {
    width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid #ffffff30; box-shadow: 0 0 16px rgba(0,0,0,0.4);
    position: relative; flex-shrink: 0; cursor: pointer; overflow: hidden; transition: transform 0.15s;
  }
  .current-colour-wrap:hover { transform: scale(1.1); }
  #colour-picker-hidden { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
  #colour-preview-circle { width: 100%; height: 100%; background: #e94560; border-radius: 50%; }
  .swatches-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; }
  .swatch { width: 22px; height: 22px; border-radius: 5px; cursor: pointer; border: 2px solid transparent; transition: all 0.15s; }
  .swatch:hover { transform: scale(1.2); border-color: white; }
  .swatch.active { border-color: white; box-shadow: 0 0 8px rgba(255,255,255,0.5); transform: scale(1.15); }

  /* Canvas wrap */
  .canvas-wrap {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background: #111827; position: relative; overflow: hidden;
  }
  #canvas {
    background: white; border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: crosshair; display: block;
    max-width: 100%; max-height: 100%; touch-action: none;
  }
  #canvas.cursor-eraser  { cursor: cell; }
  #canvas.cursor-fill    { cursor: copy; }
  #canvas.cursor-text    { cursor: text; }
  #canvas.cursor-eyedrop { cursor: crosshair; }
  #canvas.cursor-stamp   { cursor: default; }
  #canvas.cursor-select  { cursor: default; }

  .zoom-badge {
    position: absolute; bottom: 10px; right: 12px;
    background: #000000aa; color: #94a3b8;
    font-size: 0.68rem; font-weight: 700;
    padding: 3px 9px; border-radius: 20px; pointer-events: none;
  }

  /* Right panel */
  .shapes-panel {
    background: var(--panel-bg); width: 64px;
    display: flex; flex-direction: column; align-items: center;
    padding: 9px 6px; gap: 6px;
    border-left: 2px solid #ffffff0d;
    overflow-y: auto; flex-shrink: 0;
  }

  /* Status bar */
  .statusbar {
    background: var(--toolbar-bg); border-top: 2px solid #ffffff0d;
    padding: 4px 13px; display: flex; align-items: center; gap: 12px;
    font-size: 0.68rem; color: #475569; font-weight: 700; flex-shrink: 0;
  }
  .status-item { display: flex; align-items: center; gap: 4px; }
  .status-item span.val { color: #94a3b8; }

  /* Text overlay */
  #text-input-overlay {
    display: none; position: absolute; z-index: 20;
    background: rgba(255,255,255,0.95); border: 2.5px solid var(--accent);
    border-radius: 8px; padding: 4px 8px;
    font-family: 'Quicksand', sans-serif; font-weight: 700;
    outline: none; min-width: 120px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3); color: #1a1a2e;
  }

  /* Stamp popup */
  .stamp-popup {
    display: none; position: absolute;
    background: var(--panel-bg); border: 1.5px solid #ffffff15;
    border-radius: 13px; padding: 10px; z-index: 9998;
    box-shadow: var(--shadow);
    grid-template-columns: repeat(4,1fr); gap: 5px;
    left: 80px; top: 62px;
  }
  .stamp-popup.show { display: grid; }
  .stamp-item {
    width: 33px; height: 33px; display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; cursor: pointer; border-radius: 7px; transition: all 0.15s; background: #ffffff08;
  }
  .stamp-item:hover { background: #ffffff18; transform: scale(1.2); }

  /* Rainbow animation */
  @keyframes rainbow-shift { 0%{background-position:0% 50%} 100%{background-position:100% 50%} }
  .tool-btn.rainbow-active {
    background: linear-gradient(90deg,#ff0000,#ff7700,#ffff00,#00ff00,#0000ff,#8b00ff);
    background-size: 200% 200%; animation: rainbow-shift 1.5s linear infinite; border-color: transparent;
  }

  /* Confirm */
  #confirm-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 200;
    align-items: center; justify-content: center;
  }
  #confirm-overlay.show { display: flex; }
  #confirm-box {
    background: #1e293b; border: 1.5px solid #ffffff15;
    border-radius: 15px; padding: 22px 26px; text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6); max-width: 300px; width: 90%;
  }
  #confirm-box p { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 15px; line-height: 1.5; }
  #confirm-box .btn-row { display: flex; gap: 10px; justify-content: center; }
  #confirm-box button { padding: 7px 20px; border-radius: 9px; border: none; font-family: 'Quicksand',sans-serif; font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: all 0.15s; }
  #confirm-yes { background: var(--accent); color: white; }
  #confirm-yes:hover { background: #ff6b6b; }
  #confirm-no { background: #ffffff15; color: var(--white); border: 1.5px solid #ffffff20; }
  #confirm-no:hover { background: #ffffff25; }

  /* Custom swatches */
  .custom-swatches-wrap { width: 100%; }
  #custom-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; }

  /* Toast */
  #toast {
    position: fixed; bottom: 44px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b; color: var(--white);
    font-size: 0.76rem; font-weight: 700; padding: 7px 18px;
    border-radius: 30px; border: 1.5px solid #ffffff15;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s; z-index: 100;
  }
  #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* Brush cursor */
  #brush-cursor {
    position: absolute; border-radius: 50%; pointer-events: none;
    border: 1.5px solid rgba(255,255,255,0.7);
    transform: translate(-50%,-50%); z-index: 10;
    display: none; mix-blend-mode: difference;
  }

  /* Select overlay */
  #select-overlay {
    position: absolute; pointer-events: none;
    border: 2px dashed rgba(0,180,216,0.85);
    border-radius: 3px; display: none; z-index: 15;
  }
  .sel-handle {
    position: absolute; width: 12px; height: 12px;
    background: white; border: 2px solid var(--teal);
    border-radius: 2px; pointer-events: all; z-index: 16;
    touch-action: none;
  }
  .sel-handle.nw{top:-6px;left:-6px;cursor:nw-resize}
  .sel-handle.ne{top:-6px;right:-6px;cursor:ne-resize}
  .sel-handle.sw{bottom:-6px;left:-6px;cursor:sw-resize}
  .sel-handle.se{bottom:-6px;right:-6px;cursor:se-resize}
  .sel-handle.n{top:-6px;left:calc(50% - 6px);cursor:n-resize}
  .sel-handle.s{bottom:-6px;left:calc(50% - 6px);cursor:s-resize}
  .sel-handle.w{top:calc(50% - 6px);left:-6px;cursor:w-resize}
  .sel-handle.e{top:calc(50% - 6px);right:-6px;cursor:e-resize}
  /* Rotate handle */
  .sel-rotate {
    position: absolute; width: 18px; height: 18px;
    background: var(--yellow); border: 2px solid #b8860b;
    border-radius: 50%; pointer-events: all; z-index: 16;
    top: -36px; left: calc(50% - 9px);
    cursor: grab; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; touch-action: none; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }
  .sel-rotate:active { cursor: grabbing; }
  .sel-rotate-line {
    position: absolute; width: 2px; background: rgba(0,180,216,0.6);
    top: -34px; left: calc(50% - 1px); height: 32px;
    pointer-events: none; z-index: 15;
  }
  /* Multi-select overlay */
  #multi-select-overlay {
    position: absolute; pointer-events: all;
    border: 2px dashed rgba(255,212,96,0.9);
    border-radius: 3px; display: none; z-index: 14;
    background: rgba(255,212,96,0.06);
    cursor: move;
  }
  .msel-handle {
    position: absolute; width: 14px; height: 14px;
    background: var(--yellow); border: 2px solid #b8860b;
    border-radius: 3px; pointer-events: all; z-index: 16;
    cursor: move; touch-action: none;
  }
  .msel-handle.nw{top:-7px;left:-7px;}
  .msel-handle.ne{top:-7px;right:-7px;}
  .msel-handle.sw{bottom:-7px;left:-7px;}
  .msel-handle.se{bottom:-7px;right:-7px;}
  /* Rubber-band selection rectangle */
  #rubber-band {
    position: absolute; pointer-events: none;
    border: 1.5px dashed rgba(0,180,216,0.8);
    background: rgba(0,180,216,0.08);
    display: none; z-index: 20;
  }
  /* Per-shape highlight when in multi-select */
  .shape-highlight {
    position: absolute; pointer-events: none;
    border: 1.5px solid rgba(255,212,96,0.7);
    border-radius: 2px; z-index: 13;
  }

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE  –  appended, non-destructive
   Targets portrait phones (≤ 600px wide) and
   small landscape tablets (≤ 900px, touch).
═══════════════════════════════════════════════ */

/* ── Shared touch-target enlargement for all handheld screens ── */
@media (max-width: 900px) {
  /* Bigger tap targets on toolbar buttons */
  .tool-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  /* Slightly larger slider thumbs */
  #brush-size::-webkit-slider-thumb,
  #opacity-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }

  /* Bigger selection handles for fat fingers */
  .sel-handle {
    width: 18px;
    height: 18px;
  }
  .sel-handle.nw{top:-9px;left:-9px}
  .sel-handle.ne{top:-9px;right:-9px}
  .sel-handle.sw{bottom:-9px;left:-9px}
  .sel-handle.se{bottom:-9px;right:-9px}
  .sel-handle.n{top:-9px;left:calc(50% - 9px)}
  .sel-handle.s{bottom:-9px;left:calc(50% - 9px)}
  .sel-handle.w{top:calc(50% - 9px);left:-9px}
  .sel-handle.e{top:calc(50% - 9px);right:-9px}

  .sel-rotate {
    width: 26px;
    height: 26px;
    top: -44px;
    left: calc(50% - 13px);
  }
  .sel-rotate-line { top: -42px; height: 40px; }

  .msel-handle { width: 20px; height: 20px; }
  .msel-handle.nw{top:-10px;left:-10px}
  .msel-handle.ne{top:-10px;right:-10px}
  .msel-handle.sw{bottom:-10px;left:-10px}
  .msel-handle.se{bottom:-10px;right:-10px}
}

/* ── Portrait phones: full layout rethink ── */
@media (max-width: 600px) {

  /* Keep body full-height, allow the mobile bottom bar */
  body {
    height: 100dvh; /* dynamic viewport height — handles mobile browser chrome */
  }

  /* ── TOPBAR: two-row column so toolbar gets its own full-width scroll row ── */
  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    /* overflow:visible is kept (set globally) — tooltip engine still works */
  }

  /* Hide logo entirely on phones */
  .app-logo {
    display: none;
  }

  /*
   * KEY FIX: the wrapper no longer clips.
   * It becomes a plain full-width row that lets the inner
   * .toolbar-centre scroll freely without any hidden-overflow parent.
   */
  .toolbar-centre-wrap {
    flex: none;
    width: 100%;
    overflow: visible;   /* ← was overflow:hidden, which clipped the scroll */
    position: static;    /* no pseudo-element clip */
  }

  /* Remove the fade-gradient pseudo-element on mobile (it clips on iOS) */
  .toolbar-centre-wrap::after {
    display: none;
  }

  /*
   * .toolbar-centre is NOW the scrollable container.
   * Full width, left-aligned, scrolls horizontally, never clips.
   */
  .toolbar-centre {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;   /* let section-groups breathe vertically */
    padding: 5px 8px;
    gap: 6px;
    /* iOS momentum scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
  }

  /* Sliders slightly narrower to save space */
  #brush-size  { width: 52px; }
  #opacity-slider { width: 44px; }

  .action-btn {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  /* ── MAIN area: stack canvas + panels vertically ── */
  .main {
    flex-direction: column;
    overflow: hidden;
  }

  /* ── SIDE PANELS → horizontal strip at the bottom ── */
  .colour-panel {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 10px;
    gap: 8px;
    border-right: none;
    border-top: 2px solid #ffffff0d;
    order: 2; /* appears below canvas */
    scrollbar-width: none;
    align-items: center;
    flex-shrink: 0;
    max-height: 64px;
  }
  .colour-panel::-webkit-scrollbar { display: none; }

  /* Colour preview circle: smaller in horizontal bar */
  .current-colour-wrap {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  /* Panel labels hidden in horizontal strip (too narrow) */
  .colour-panel .panel-label { display: none; }

  /* Swatches: single horizontal row instead of 2-column grid */
  .swatches-grid {
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: auto;
    flex-shrink: 0;
  }

  .swatch {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  /* Custom swatches: also horizontal */
  .custom-swatches-wrap { display: none; } /* hide in mobile strip to save space */

  /* Right panel: also horizontal strip, shown above colour panel */
  .shapes-panel {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 10px;
    gap: 8px;
    border-left: none;
    border-top: 2px solid #ffffff0d;
    order: 3;
    scrollbar-width: none;
    align-items: center;
    flex-shrink: 0;
    max-height: 54px;
  }
  .shapes-panel::-webkit-scrollbar { display: none; }
  .shapes-panel .panel-label {
    font-size: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* Thin divider line between BG and ZOOM labels */
  .shapes-panel > div[style*="width:40px"] {
    width: 1.5px !important;
    height: 30px !important;
    margin: 0 2px;
  }

  /* ── CANVAS WRAP: takes all remaining vertical space ── */
  .canvas-wrap {
    order: 1;
    flex: 1;
    min-height: 0; /* allow flex shrink */
  }

  /* ── STATUS BAR: hide less-important items on tiny screens ── */
  .statusbar {
    padding: 3px 8px;
    gap: 8px;
    font-size: 0.6rem;
    flex-shrink: 0;
  }

  /* Hide position and size status items — canvas is small, save space */
  .status-item:nth-child(2),
  .status-item:nth-child(3) {
    display: none;
  }

  /* ── STAMP POPUP: reposition so it doesn't go off-screen ── */
  .stamp-popup {
    left: 50%;
    top: auto;
    bottom: 130px; /* float above bottom panels */
    transform: translateX(-50%);
  }

  /* ── TOAST: keep above bottom panels ── */
  #toast {
    bottom: 140px;
  }

  /* ── ZOOM BADGE: move so it's visible ── */
  .zoom-badge {
    bottom: 6px;
    right: 8px;
    font-size: 0.6rem;
  }
}

/* ── Very small phones (≤ 380px) ── */
@media (max-width: 380px) {
  .tool-btn {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }

  .app-logo { font-size: 0.82rem; }

  #brush-size  { width: 44px; }
  #opacity-slider { width: 36px; }

  .action-btn { padding: 3px 6px; font-size: 0.62rem; }

  .swatch { width: 22px; height: 22px; }
}

/* ── Landscape phones (short + wide) ── */
@media (max-height: 500px) and (orientation: landscape) {
  /* Topbar stays compact */
  .topbar { min-height: 46px; padding: 3px 8px; }

  /* Side panels stay as thin vertical strips — no layout change needed,
     but reduce width slightly to give canvas more room */
  .colour-panel { width: 52px; }
  .shapes-panel { width: 52px; }

  /* Status bar minimal */
  .statusbar { padding: 2px 8px; }
  .status-item:nth-child(2),
  .status-item:nth-child(3) { display: none; }

  .swatch { width: 18px; height: 18px; }
  .current-colour-wrap { width: 30px; height: 30px; }
}
