@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

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

    body {
      font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: #f9fbfd;
      color: #1f1f1f;
      margin: 0;
      padding: 0;
      overflow: hidden;
      height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Google Sheets Authentic Scrollbars */
    ::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    ::-webkit-scrollbar-track {
      background: #f1f3f4;
    }
    ::-webkit-scrollbar-thumb {
      background: #dadce0;
      border-radius: 5px;
      border: 2px solid #f1f3f4;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #bdc1c6;
    }

    /* Grid Table Styling */
    .gs-grid-container {
      flex: 1;
      overflow: auto;
      position: relative;
      background: #ffffff;
      border-top: 1px solid #e0e2e0;
    }

    .gs-table {
      border-collapse: separate;
      border-spacing: 0;
      table-layout: fixed;
      background: #ffffff;
    }

    .gs-corner {
      position: sticky;
      top: 0;
      left: 0;
      z-index: 30;
      width: 46px;
      min-width: 46px;
      height: 24px;
      background: #f8f9fa;
      border-right: 1px solid #c7c7c7;
      border-bottom: 1px solid #c7c7c7;
    }

    .gs-col-header {
      position: sticky;
      top: 0;
      z-index: 20;
      height: 24px;
      background: #f8f9fa;
      border-right: 1px solid #e1e3e1;
      border-bottom: 1px solid #c7c7c7;
      font-size: 11px;
      font-weight: 600;
      color: #444746;
      text-align: center;
      vertical-align: middle;
      cursor: pointer;
      position: sticky;
    }
    .gs-col-header:hover {
      background: #e8eaed;
    }
    .gs-col-header.active-header {
      background: #d3e3fd;
      color: #0b57d0;
      font-weight: 700;
    }

    .gs-row-header {
      position: sticky;
      left: 0;
      z-index: 20;
      width: 46px;
      min-width: 46px;
      height: 26px;
      background: #f8f9fa;
      border-right: 1px solid #c7c7c7;
      border-bottom: 1px solid #e1e3e1;
      font-size: 11px;
      font-weight: 500;
      color: #444746;
      text-align: center;
      vertical-align: middle;
      cursor: pointer;
    }
    .gs-row-header:hover {
      background: #e8eaed;
    }
    .gs-row-header.active-header {
      background: #d3e3fd;
      color: #0b57d0;
      font-weight: 700;
    }

    .gs-cell {
      height: 26px;
      border-right: 1px solid #e1e3e1;
      border-bottom: 1px solid #e1e3e1;
      padding: 0 6px;
      font-size: 12px;
      color: #1f1f1f;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      position: relative;
      cursor: cell;
      background: #ffffff;
      vertical-align: middle;
      line-height: 25px;
    }

    .gs-cell.in-selection {
      background-color: rgba(11, 87, 208, 0.08) !important;
    }

    .gs-cell.active-cell {
      outline: 2px solid #0b57d0;
      outline-offset: -2px;
      z-index: 10;
    }

    .gs-fill-handle {
      position: absolute;
      right: -3px;
      bottom: -3px;
      width: 7px;
      height: 7px;
      background: #0b57d0;
      border: 1px solid #ffffff;
      cursor: crosshair;
      z-index: 15;
    }

    .gs-cell-input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 2px solid #0b57d0;
      padding: 0 5px;
      font-size: 12px;
      font-family: inherit;
      background: #ffffff;
      color: #1f1f1f;
      outline: none;
      z-index: 25;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      user-select: text;
    }

    .col-resizer {
      position: absolute;
      top: 0;
      right: 0;
      width: 5px;
      height: 100%;
      cursor: col-resize;
      z-index: 25;
    }
    .col-resizer:hover {
      background: #0b57d0;
    }

    /* Menu dropdown */
    .gs-menu-btn {
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 13px;
      color: #1f1f1f;
      cursor: pointer;
    }
    .gs-menu-btn:hover, .gs-menu-btn.open {
      background-color: #e8eaed;
    }

    .gs-toolbar-btn {
      height: 28px;
      min-width: 28px;
      padding: 0 5px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #444746;
      cursor: pointer;
      transition: background 0.12s;
      font-size: 12px;
    }
    .gs-toolbar-btn:hover {
      background-color: #e8eaed;
    }
    .gs-toolbar-btn.active {
      background-color: #d3e3fd;
      color: #0b57d0;
    }

    .mono {
      font-family: 'JetBrains Mono', monospace;
    }
