:root {
    color-scheme: dark;
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #1f2933;
    --surface-3: #0f1720;
    --border: #30363d;
    --border-strong: #46515f;
    --text: #e6edf3;
    --text-strong: #f8fafc;
    --muted: #9aa4b2;
    --accent: #8fb4e8;
    --accent-strong: #b7d0f4;
    --danger: #e26d6d;
    --danger-bg: #7f1d1d;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

button,
input,
textarea,
table {
    font: inherit;
}

button,
a,
input,
textarea {
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.page {
    min-height: 100vh;
}

.topbar {
    align-items: stretch;
    background: rgba(13, 17, 23, 0.96);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-main {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.brand {
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.brand-link {
    color: inherit;
    text-decoration: none;
}

.main-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.nav-link {
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 2.25rem;
    padding: 0.5rem 0.7rem;
    text-decoration: none;
}

.nav-link:hover {
    background: var(--surface-2);
    color: var(--text-strong);
}

.nav-link.active {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--accent-strong);
}

.container {
    margin: 0 auto;
    max-width: 1060px;
    padding: 1.25rem 1rem 2.5rem;
    width: 100%;
}

.centered {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.panel,
.form-panel,
.list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel {
    padding: 1.25rem;
    width: min(100%, 420px);
}

.panel h1,
.content-title,
.welcome-title {
    color: var(--text-strong);
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.welcome-title {
    font-size: 2.25rem;
    margin: 0;
}

.field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.field label {
    color: var(--text-strong);
    font-size: 0.9rem;
    font-weight: 650;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="text"],
.field textarea {
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text);
    min-height: 2.75rem;
    padding: 0.7rem 0.8rem;
    width: 100%;
}

.field input[type="email"]:hover,
.field input[type="password"]:hover,
.field input[type="number"]:hover,
.field input[type="text"]:hover,
.field textarea:hover {
    border-color: var(--muted);
}

.field input[type="email"]:focus,
.field input[type="password"]:focus,
.field input[type="number"]:focus,
.field input[type="text"]:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(143, 180, 232, 0.16);
}

.field textarea {
    min-height: 8rem;
    resize: vertical;
}

.checkbox {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.checkbox input {
    accent-color: var(--accent);
}

.button {
    align-items: center;
    background: var(--accent);
    border: 1px solid transparent;
    border-radius: 6px;
    color: #07111f;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.65rem 0.95rem;
    text-decoration: none;
}

.button:hover {
    background: var(--accent-strong);
}

.button.secondary {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--text);
}

.button.secondary:hover {
    background: #283342;
    border-color: var(--muted);
}

.button.danger {
    background: var(--danger-bg);
    border-color: #b33b3b;
    color: #fff5f5;
}

.button.danger:hover {
    background: #991b1b;
}

.error {
    color: var(--danger);
    font-size: 0.875rem;
    margin: 0.35rem 0 0;
}

.muted {
    color: var(--muted);
    margin: 0;
}

.header-row,
.actions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stack {
    display: grid;
    gap: 1rem;
}

.list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.list-item {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.list-item-content {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.list-item h2 {
    color: var(--text-strong);
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0;
}

.list-item .muted {
    min-height: 1.35rem;
    overflow-wrap: anywhere;
}

.form-panel {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    max-width: 680px;
    padding: 1.25rem;
}

.danger {
    color: var(--danger);
}

.link {
    color: var(--accent);
    text-decoration: none;
}

.link:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

@media (min-width: 640px) {
    .topbar {
        align-items: center;
        flex-direction: row;
        padding: 1rem 1.5rem;
    }

    .topbar-main {
        align-items: center;
        flex-direction: row;
        gap: 1.25rem;
    }

    .container {
        padding: 2rem 1.5rem 3rem;
    }

    .panel {
        padding: 1.5rem;
    }

    .panel h1,
    .content-title {
        font-size: 1.9rem;
    }

    .header-row {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .actions {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .list-item {
        align-items: start;
        grid-template-columns: 1fr auto;
        padding: 1.1rem 1.2rem;
    }

    .list-item > .actions {
        justify-content: flex-end;
        justify-self: end;
    }

    .form-panel {
        padding: 1.5rem;
    }
}

@media (min-width: 900px) {
    .container {
        padding-top: 2.5rem;
    }
}

.editor-layout {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.editor-tools {
    display: grid;
    gap: 1rem;
}

.tool-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.tool-panel h2 {
    color: var(--text-strong);
    font-size: 1rem;
    margin: 0;
}

.field.compact {
    margin-bottom: 0;
}

.sheet-editor {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.editor-status {
    align-self: start;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.85rem;
    justify-self: start;
    padding: 0.35rem 0.7rem;
}

.editor-status[data-state="saving"] {
    color: var(--accent-strong);
}

.editor-status[data-state="saved"] {
    color: #9bd6aa;
}

.editor-status[data-state="error"] {
    color: var(--danger);
}

.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: auto;
    width: 100%;
}

.sheet-table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.sheet-table th,
.sheet-table td {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0.65rem;
    vertical-align: top;
}

.sheet-table th {
    background: var(--surface);
    color: var(--text-strong);
    font-weight: 700;
    text-align: left;
}

.sheet-table tbody tr:hover td,
.sheet-table tbody tr:hover .uuid-cell {
    background: rgba(143, 180, 232, 0.06);
}

.uuid-column,
.uuid-cell {
    min-width: 14rem;
    width: 14rem;
}

.uuid-cell code {
    color: var(--muted);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.row-action-column,
.row-actions {
    min-width: 8.25rem;
    width: 8.25rem;
}

.column-form {
    display: grid;
    gap: 0.45rem;
    min-width: 11rem;
}

.column-form input[type="text"],
.cell-input {
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text);
    min-height: 2.45rem;
    padding: 0.55rem 0.65rem;
    width: 100%;
}

.cell-input:focus,
.column-form input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(143, 180, 232, 0.16);
    outline: 0;
}

.compact-button {
    min-height: 2.2rem;
    padding: 0.45rem 0.7rem;
}

.table-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.row-actions {
    margin-top: 0;
}

.icon-button {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    height: 2.15rem;
    justify-content: center;
    min-width: 2.15rem;
    padding: 0 0.45rem;
}

.icon-button:hover:not(:disabled) {
    background: #283342;
}

.icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.icon-button.danger {
    color: var(--danger);
}

.empty-table {
    color: var(--muted);
    text-align: center;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.meta-row span {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    padding: 0.25rem 0.55rem;
}

.token-summary {
    min-width: 0;
}

.textarea-mono,
.token-value,
.ip-list code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.notice {
    background: #132018;
    border: 1px solid #31543a;
    border-radius: var(--radius);
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 1rem;
}

.notice strong {
    color: #c7e8cc;
}

.notice p {
    color: var(--muted);
    margin: 0;
}

.field input[type="file"] {
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text);
    min-height: 2.75rem;
    padding: 0.6rem;
    width: 100%;
}

.field input[type="file"]::file-selector-button {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text-strong);
    cursor: pointer;
    font-weight: 700;
    margin-right: 0.75rem;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
}

.field input[type="file"]::file-selector-button:hover {
    background: #283342;
}

.import-mode-panel {
    margin-bottom: 1rem;
}

.mode-fieldset {
    border: 0;
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
}

.mode-fieldset legend {
    color: var(--text-strong);
    font-size: 0.95rem;
    font-weight: 750;
    margin-bottom: 0.3rem;
}

.radio-option {
    align-items: flex-start;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    gap: 0.7rem;
    padding: 0.85rem;
}

.radio-option:hover {
    border-color: var(--border-strong);
}

.radio-option input {
    accent-color: var(--accent);
    margin-top: 0.2rem;
}

.radio-option span {
    display: grid;
    gap: 0.2rem;
}

.radio-option strong {
    color: var(--text-strong);
}

.radio-option small {
    color: var(--muted);
    line-height: 1.35;
}

.import-preview-wrap {
    margin-top: 1rem;
}

.import-preview-table {
    min-width: 640px;
}

.import-preview-cell-input {
    background: transparent;
    border: 0;
    color: var(--text);
    font: inherit;
    line-height: 1.35;
    max-width: 34rem;
    min-width: 12rem;
    overflow: hidden;
    padding: 0;
    text-overflow: ellipsis;
    width: 100%;
}

.import-preview-cell-input:focus {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
}

.import-progress {
    display: grid;
    gap: 0.45rem;
}

.import-progress-track {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    height: 0.75rem;
    overflow: hidden;
}

.import-progress-bar {
    background: var(--accent);
    height: 100%;
    transition: width 160ms ease;
    width: 0;
}

.token-value {
    background: #08120b;
    border: 1px solid #31543a;
    border-radius: 6px;
    color: #d7f7dc;
    display: block;
    overflow-x: auto;
    padding: 0.8rem;
    white-space: nowrap;
}

.details-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

.details-grid > div {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
}

.change-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1fr;
}

.change-item {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: grid;
    gap: 0.3rem;
    padding: 0.75rem;
}

.change-item span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.detail-label {
    color: var(--muted);
    font-size: 0.78rem;
}

.section-title {
    color: var(--text-strong);
    font-size: 1rem;
    margin: 0;
}

.ip-list {
    display: grid;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ip-list li {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
}

.api-docs {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.api-docs-bar {
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.api-docs-bar h1 {
    color: var(--text-strong);
    font-size: 1.45rem;
    margin: 0 0 0.25rem;
}

.api-docs-bar p {
    color: var(--muted);
    margin: 0;
}

#swagger-ui {
    background: #f8fafc;
    border-radius: var(--radius);
    min-height: 70vh;
    overflow: hidden;
}

@media (min-width: 640px) {
    .details-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .change-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .api-docs {
        padding: 1.25rem;
    }

    .api-docs-bar {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 900px) {
    .editor-layout {
        align-items: start;
        grid-template-columns: 17rem minmax(0, 1fr);
    }

    .editor-tools {
        position: sticky;
        top: 5rem;
    }
}

.sheet-screen {
    display: grid;
    gap: 0.85rem;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    min-height: calc(100vh - 3.75rem);
    padding: 0.85rem;
}

.sheet-titlebar {
    align-items: stretch;
    background: #111821;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.sheet-titlebar h1 {
    color: var(--text-strong);
    font-size: 1.45rem;
    line-height: 1.15;
    margin: 0.2rem 0 0;
}

.sheet-kicker {
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.sheet-description {
    color: var(--muted);
    line-height: 1.5;
    margin: 0.35rem 0 0;
    max-width: 72rem;
}

.sheet-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.sheet-stats span {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    padding: 0.28rem 0.6rem;
}

.sheet-flash {
    background: #132018;
    border: 1px solid #31543a;
    border-radius: 999px;
    color: #c7e8cc;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 750;
    margin: 0.75rem 0 0;
    padding: 0.35rem 0.65rem;
}

.sheet-titlebar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sheet-workbook {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: start;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.sheet-toolbar {
    align-items: stretch;
    background: #0f151d;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.75rem;
}

.toolbar-title {
    display: grid;
    gap: 0.12rem;
}

.toolbar-title strong {
    color: var(--text-strong);
    font-size: 0.95rem;
}

.toolbar-title span {
    color: var(--muted);
    font-size: 0.78rem;
}

.sheet-toolbar-form {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sheet-toolbar-form input {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text);
    min-height: 2.5rem;
    padding: 0.55rem 0.7rem;
}

.sheet-error,
.sheet-hint {
    padding: 0 0.75rem;
}

.modal-open {
    overflow: hidden;
}

.modal-dialog {
    align-items: center;
    background: rgba(0, 0, 0, 0.68);
    color: var(--text);
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 100;
}

.modal-dialog.is-open {
    display: flex;
}

.modal-panel {
    background: #111821;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
    max-height: calc(100vh - 2rem);
    max-width: 38rem;
    overflow: auto;
    padding: 1.1rem;
    width: min(100%, 38rem);
}

.modal-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.modal-header h2 {
    color: var(--text-strong);
    font-size: 1.1rem;
    margin: 0 0 0.2rem;
}

.modal-header p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.modal-panel textarea {
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text);
    min-height: 14rem;
    padding: 0.7rem 0.8rem;
    resize: vertical;
    width: 100%;
}

.modal-panel textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(143, 180, 232, 0.16);
    outline: 0;
}

.modal-actions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spreadsheet-wrap {
    max-width: 100%;
    min-height: 18rem;
    overflow: auto;
}

.spreadsheet-grid {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    table-layout: fixed;
    width: max-content;
}

.row-header-col {
    width: 17.5rem;
}

.spreadsheet-grid th,
.spreadsheet-grid td {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 2.65rem;
    padding: 0;
    vertical-align: middle;
}

.spreadsheet-grid thead th {
    background: #151d27;
    position: sticky;
    top: 0;
    z-index: 5;
}

.spreadsheet-grid tbody th {
    background: #151d27;
}

.row-header {
    left: 0;
    position: sticky;
    z-index: 4;
}

.corner-cell {
    color: var(--muted);
    font-weight: 700;
    text-align: center;
    z-index: 8;
}

.column-header {
    min-width: 72px;
    position: relative;
}

.column-resize-handle {
    background: transparent;
    border: 0;
    bottom: 0;
    cursor: col-resize;
    padding: 0;
    position: absolute;
    right: -4px;
    top: 0;
    touch-action: none;
    width: 8px;
    z-index: 7;
}

.column-resize-handle::after {
    background: transparent;
    bottom: 0.35rem;
    content: "";
    position: absolute;
    right: 3px;
    top: 0.35rem;
    width: 1px;
}

.column-resize-handle:hover::after,
.column-resize-handle:focus-visible::after,
.spreadsheet-grid.is-resizing .column-resize-handle::after {
    background: var(--accent);
}

.spreadsheet-grid.is-resizing {
    cursor: col-resize;
    user-select: none;
}

.column-letter {
    align-items: center;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    font-size: 0.72rem;
    font-weight: 800;
    height: 1.45rem;
    justify-content: center;
}

.column-name-form input {
    background: transparent;
    border: 0;
    color: var(--text-strong);
    font-weight: 700;
    height: 2.35rem;
    padding: 0 0.6rem;
    width: 100%;
}

.column-name-form input:focus {
    background: var(--surface-3);
    box-shadow: inset 0 0 0 2px var(--accent);
    outline: 0;
}

.column-controls {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    padding: 0.25rem;
}

.row-controls {
    border-left: 1px solid var(--border);
    display: flex;
    flex-shrink: 0;
    gap: 0.2rem;
    justify-content: flex-end;
    padding: 0 0.35rem;
}

.grid-icon-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    height: 1.7rem;
    justify-content: center;
    min-width: 1.7rem;
    padding: 0;
}

.grid-icon-button:hover:not(:disabled) {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--text-strong);
}

.grid-icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.25;
}

.grid-icon-button.danger {
    color: var(--danger);
}

.row-header-inner {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: 100%;
    min-width: 0;
}

.row-identity {
    align-items: center;
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    height: 100%;
    min-width: 0;
}

.row-number {
    align-items: center;
    background: var(--surface-2);
    border-right: 1px solid var(--border);
    color: var(--muted);
    display: inline-flex;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    min-width: 2.75rem;
}

.uuid-copy {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: copy;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.68rem;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0 0.6rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uuid-copy:hover {
    color: var(--accent-strong);
}

.spreadsheet-grid .cell-input {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--text);
    height: 2.65rem;
    min-height: 2.65rem;
    padding: 0 0.6rem;
    width: 100%;
}

.spreadsheet-grid .cell-input:focus {
    background: #0b1220;
    box-shadow: inset 0 0 0 2px var(--accent);
    outline: 0;
}

.spreadsheet-grid tbody tr:hover td,
.spreadsheet-grid tbody tr:hover .row-header {
    background: rgba(143, 180, 232, 0.05);
}

.empty-table {
    color: var(--muted);
    padding: 1rem;
    text-align: center;
}

.sheet-empty-callout {
    background: #111821;
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
}

.sheet-empty-callout strong {
    color: var(--text-strong);
}

@media (min-width: 700px) {
    .sheet-screen {
        gap: 1rem;
        padding: 1rem 1.25rem 1.25rem;
    }

    .sheet-titlebar {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.15rem;
    }

    .sheet-toolbar {
        align-items: center;
        flex-direction: row;
    }

    .sheet-toolbar-form {
        align-items: center;
        display: flex;
        flex-direction: row;
    }

    .sheet-toolbar-form input {
        width: 14rem;
    }

    .editor-status {
        margin-left: auto;
    }

    .modal-actions {
        align-items: center;
        flex-direction: row;
        justify-content: flex-end;
    }
}
