* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .paper-raster-container {
    position: relative;
    width: 98%;
    margin: 0.5% auto;
    aspect-ratio: 16 / 9;
    background: #000;
    font-family: monospace;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    willReadFrequently="true";
  }
  
  /* UI Pill */
  .ui-pill {
    position: absolute;
    bottom: 12px;
    background: rgba(20, 20, 20, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    z-index: 10;
    pointer-events: none;
  }
  
  .ui-left { left: 12px; min-width: auto; }
  .ui-right { right: 12px; }
  
  .ui-pill button {
    background: rgba(20, 20, 20, 0.2);
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    pointer-events: auto;
  }
  
  .ui-pill button:hover {
    background: #555;
  }
  
  .color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  input[type="file"] {
    display: none;
  }
  
  .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    z-index: 20;
    display: none;
  }
  
  .notification {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ff6c00;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 30;
  }