.google-sheets-modal {
    z-index: 10000;
    padding: 16px;
}

body.google-sheets-modal-open {
    overflow: hidden;
}

.google-sheets-modal[hidden] {
    display: none !important;
}

.google-sheets-modal-card {
    width: min(480px, calc(100vw - 32px));
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 32px);
    overflow: auto;
    pointer-events: auto;
}

.google-sheets-modal .app-modal-backdrop {
    z-index: 0;
}

.google-sheets-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.google-sheets-modal-heading {
    min-width: 0;
    flex: 1;
}

.google-sheets-modal-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(42, 67, 101, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #3c3c3c;
    cursor: pointer;
}

.google-sheets-modal-close:hover {
    background: #f0f4f8;
}

.google-sheets-modal-close .material-icons {
    font-size: 22px;
}

.google-sheets-modal-body {
    display: grid;
    gap: 12px;
}

.google-sheets-status {
    margin: 4px 0 0;
    font-size: 12px;
    color: #5c6b7a;
}

.google-sheets-hint {
    margin: 0;
    font-size: 12px;
    color: #5c6b7a;
}

.google-sheets-field {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #3c3c3c;
}

.google-sheets-field .resource-input,
.google-sheets-field select {
    width: 100%;
    font-weight: 400;
}

.google-sheets-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.google-sheets-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.google-sheets-text-button {
    width: auto;
    height: auto;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
}

.google-sheets-error {
    margin: 0;
    font-size: 12px;
    color: #b42318;
}
