*, *::before, *::after {
box-sizing: border-box;
}
html, body, #root {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 13px;
margin: 0;
padding: 0;
height: fit-content;
}
body {
background: transparent;
color: #202124;
}
@media (prefers-color-scheme: dark) {
body {
color: #e8eaed;
}
}
.main {
padding: 0;
position: relative;
}
.main.fullscreen {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
background: #fff;
}
@media (prefers-color-scheme: dark) {
.main.fullscreen {
background: #202124;
}
}
/* Toolbar with fullscreen button */
.toolbar {
position: fixed;
top: 8px;
right: 8px;
z-index: 100;
opacity: 0;
transition: opacity 0.2s ease;
}
.main:hover .toolbar {
opacity: 1;
}
.fullscreen-btn {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
color: rgba(0, 0, 0, 0.45);
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: none;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
pointer-events: auto;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.fullscreen-btn:hover {
color: rgba(0, 0, 0, 0.7);
background: rgba(255, 255, 255, 0.8);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
@media (prefers-color-scheme: dark) {
.fullscreen-btn {
color: rgba(255, 255, 255, 0.5);
background: rgba(50, 50, 50, 0.6);
}
.fullscreen-btn:hover {
color: rgba(255, 255, 255, 0.8);
background: rgba(50, 50, 50, 0.8);
}
}
.main.fullscreen .toolbar {
display: none !important;
}
/* Grid — single scroll container for sticky to work */
.spreadsheet-container {
display: grid;
border: 1px solid #c0c0c0;
border-radius: 4px;
overflow: auto;
max-height: 400px;
background: #fff;
width: fit-content;
transition: grid-template-columns 0.15s ease-out;
}
.main.fullscreen .spreadsheet-container {
width: 100%;
min-width: 100%;
height: 100%;
max-height: 100%;
overflow: auto;
border: none;
border-radius: 0;
}
@media (prefers-color-scheme: dark) {
.spreadsheet-container {
background: #202124;
border-color: #333;
}
}
/* Base cell */
.cell {
padding: 2px 8px;
border-right: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 18px;
}
@media (prefers-color-scheme: dark) {
.cell {
border-right-color: #2d2d2d;
border-bottom-color: #2d2d2d;
}
}
/* Corner cell (top-left) */
.corner-cell {
background: #f8f9fa;
border-right: 1px solid #c0c0c0 !important;
border-bottom: 1px solid #c0c0c0;
position: sticky;
top: 0;
left: 0;
z-index: 15;
}
@media (prefers-color-scheme: dark) {
.corner-cell {
background: #292a2d;
border-color: #3a3a3a;
}
}
/* Column headers (A, B, C...) */
.col-header {
background: #f8f9fa;
font-weight: 500;
color: #5f6368;
text-align: center;
font-size: 12px;
border-bottom: 1px solid #c0c0c0;
border-right: 1px solid #c0c0c0;
position: sticky;
top: 0;
z-index: 10;
}
.resize-handle {
position: absolute;
right: -6px;
top: 0;
bottom: 0;
width: 12px;
cursor: col-resize;
background: transparent;
z-index: 11;
}
.resize-handle:hover {
background: rgba(0, 0, 0, 0.1);
}
.resizing {
transition: none !important;
}
.resizing * {
transition: none !important;
}
/* Row headers (1, 2, 3...) */
.cell.row-header {
background: #f8f9fa;
font-weight: 400;
color: #5f6368;
text-align: center;
font-size: 12px;
border-right: 1px solid #c0c0c0 !important;
position: sticky;
left: 0;
z-index: 5;
}
@media (prefers-color-scheme: dark) {
.col-header, .cell.row-header {
background: #292a2d;
color: #9aa0a6;
}
.col-header {
border-bottom-color: #3a3a3a;
}
.cell.row-header {
border-right-color: #3a3a3a !important;
}
.resize-handle:hover {
background: rgba(255, 255, 255, 0.15);
}
}
/* Data cells */
.data-cell {
background: #fff;
}
.data-cell.can-overflow {
overflow: visible;
z-index: 1;
}
@media (prefers-color-scheme: dark) {
.data-cell {
background: #202124;
}
}
@keyframes valueAppear {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.cell-value {
display: inline-block;
animation: valueAppear 0.2s ease-out;
}
.cell-link {
color: light-dark(#1a73e8, #8ab4f8);
text-decoration: none;
}
.cell-link:hover {
text-decoration: underline;
}
.loading {
padding: 1rem;
color: #5f6368;
}
.error {
padding: 1rem;
color: #d93025;
}