
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      user-select: none;
    }

    body {
      overflow: hidden;
      font-family: 'Segoe UI', 'Cascadia Code', 'Consolas', system-ui, sans-serif;
      background: #ffffff;
    }

    /* main canvas – infinite board */
    canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: block;
      background: #ffffff;
      cursor: crosshair;
      touch-action: none; /* prevent browser gestures on pen/touch */
    }

    /* --- AWW APP style toolbar --- */
    .toolbar {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 8px;
      background: white;
      padding: 10px 18px;
      border-radius: 40px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
      border: 1px solid #e9e9e9;
      backdrop-filter: blur(4px);
      z-index: 100;
      pointer-events: auto;
    }

    .tool-btn {
      width: 44px;
      height: 44px;
      border-radius: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      cursor: pointer;
      transition: all 0.15s ease;
      color: #1e1e1e;
      font-size: 20px;
      font-weight: 500;
      line-height: 1;
      padding: 0;
    }

    .tool-btn:hover {
      background: #f2f2f2;
    }

    .tool-btn.active {
      background: #e0e0ff;
      color: #3b3b9f;
    }

    .toolbar-divider {
      width: 1px;
      height: 28px;
      background: #e0e0e0;
      margin: 0 4px;
    }

    .color-palette {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .color-dot {
      width: 28px;
      height: 28px;
      border-radius: 28px;
      border: 2px solid transparent;
      cursor: pointer;
      transition: transform 0.1s ease, border 0.1s ease;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .color-dot:hover {
      transform: scale(1.15);
    }

    .color-dot.active {
      border: 2px solid #1e1e1e;
      transform: scale(1.1);
    }

    .eraser-btn {
      font-size: 20px;
    }

    /* tiny status / hint */
    .hint {
      position: fixed;
      bottom: 90px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0,0,0,0.6);
      color: white;
      padding: 6px 16px;
      border-radius: 40px;
      font-size: 13px;
      letter-spacing: 0.2px;
      pointer-events: none;
      backdrop-filter: blur(4px);
      white-space: nowrap;
      z-index: 99;
      opacity: 0.8;
      transition: opacity 0.3s;
    }

    /* pen pressure indicator (optional but nice) */
    .pressure-indicator {
      position: fixed;
      bottom: 90px;
      right: 24px;
      background: #f8f8f8;
      border: 1px solid #ddd;
      border-radius: 20px;
      padding: 6px 14px;
      font-size: 12px;
      color: #333;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      z-index: 100;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .pressure-bar {
      width: 60px;
      height: 6px;
      background: #e0e0e0;
      border-radius: 6px;
      overflow: hidden;
    }

    .pressure-fill {
      height: 100%;
      width: 0%;
      background: #3b3b9f;
      border-radius: 6px;
      transition: width 0.05s;
    }