.airtable-page {
	--at-bg: #f8fafc;
	--at-surface: #ffffff;
	--at-dark: #0f172a;
	--at-text: #1e293b;
	--at-muted: #475569;
	--at-border: #e2e8f0;
	--at-accent: #166ee1;
	--at-accent-dark: #0f4fb8;
	--at-yellow: #fcb400;
	--at-green-bg: #dcfce7;
	--at-green-fg: #166534;
	--at-amber-bg: #fef3c7;
	--at-amber-fg: #92400e;
	--at-red-bg: #fee2e2;
	--at-red-fg: #991b1b;
	background: var(--at-bg);
	color: var(--at-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.airtable-shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.airtable-hero {
	padding: 72px 0 56px;
	background: radial-gradient(circle at 85% 15%, rgba(22, 110, 225, 0.10), transparent 45%),
		radial-gradient(circle at 15% 80%, rgba(252, 180, 0, 0.12), transparent 40%),
		#ffffff;
	border-bottom: 1px solid var(--at-border);
}

.airtable-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	background: #eff6ff;
	color: var(--at-accent);
	border: 1px solid #bfdbfe;
	margin-bottom: 18px;
}

.airtable-hero h1 {
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.15;
	font-weight: 800;
	color: var(--at-dark);
	margin: 0 0 18px;
	max-width: 820px;
}

.airtable-lead {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--at-muted);
	max-width: 780px;
	margin: 0 0 28px;
}

.airtable-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 36px;
}

.airtable-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	transition: transform 0.15s ease, background-color 0.15s ease;
	cursor: pointer;
	border: 1px solid transparent;
}

.airtable-btn-primary {
	background: var(--at-accent);
	color: #ffffff !important;
}

.airtable-btn-primary:hover {
	background: var(--at-accent-dark);
	transform: translateY(-1px);
}

.airtable-btn-ghost {
	background: #ffffff;
	color: var(--at-dark) !important;
	border-color: #cbd5e1;
}

.airtable-btn-ghost:hover {
	background: #f1f5f9;
}

.airtable-grid-card {
	background: #ffffff;
	border: 1px solid var(--at-border);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.airtable-grid-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	background: #f8fafc;
	border-bottom: 1px solid var(--at-border);
	font-size: 13px;
	font-weight: 600;
	color: var(--at-dark);
}

.airtable-grid-wrap {
	overflow-x: auto;
}

.airtable-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.airtable-table th,
.airtable-table td {
	padding: 11px 14px;
	border-bottom: 1px solid #f1f5f9;
	border-right: 1px solid #f1f5f9;
	text-align: left;
	white-space: nowrap;
}

.airtable-table th {
	background: #f8fafc;
	color: #475569;
	font-weight: 600;
}

.at-chip {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.at-chip-ok {
	background: var(--at-green-bg);
	color: var(--at-green-fg);
}

.at-chip-warn {
	background: var(--at-amber-bg);
	color: var(--at-amber-fg);
}

.at-chip-bad {
	background: var(--at-red-bg);
	color: var(--at-red-fg);
}

.airtable-section {
	padding: 64px 0;
}

.airtable-section-alt {
	background: #ffffff;
	border-top: 1px solid var(--at-border);
	border-bottom: 1px solid var(--at-border);
}

.airtable-section-head {
	margin-bottom: 32px;
}

.airtable-section-head h2 {
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
	font-weight: 800;
	color: var(--at-dark);
	margin: 0 0 10px;
}

.airtable-section-head p {
	font-size: 1.05rem;
	color: var(--at-muted);
	max-width: 740px;
	margin: 0;
}

.airtable-ops-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.airtable-op-tab {
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: var(--at-dark);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.airtable-op-tab[aria-selected="true"] {
	background: var(--at-dark);
	color: #ffffff;
	border-color: var(--at-dark);
}

.airtable-op-panel {
	background: var(--at-dark);
	color: #e2e8f0;
	border-radius: 12px;
	padding: 20px;
}

.airtable-op-panel[hidden] {
	display: none;
}

.airtable-op-meta {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	color: #93c5fd;
	margin-bottom: 10px;
}

.airtable-code {
	background: #0b1120;
	color: #e2e8f0;
	padding: 16px;
	border-radius: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12.5px;
	line-height: 1.55;
	overflow-x: auto;
	max-height: 300px;
	margin: 0;
}

.airtable-modes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
}

.airtable-mode-card {
	background: #ffffff;
	border: 1px solid var(--at-border);
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.airtable-mode-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: #fef3c7;
	color: #92400e;
	margin-bottom: 12px;
}

.airtable-mode-card h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--at-dark);
	margin: 0 0 10px;
}

.airtable-mode-card p {
	font-size: 0.95rem;
	color: var(--at-muted);
	margin: 0 0 16px;
}

.airtable-copy-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.airtable-copy-btn {
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid var(--at-accent);
	background: #eff6ff;
	color: var(--at-accent);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.airtable-copy-btn:hover {
	background: var(--at-accent);
	color: #ffffff;
}

.airtable-copy-status {
	font-size: 12px;
	font-weight: 600;
	color: var(--at-green-fg);
}

.airtable-sg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.airtable-sg-card {
	background: #f8fafc;
	border: 1px solid var(--at-border);
	border-radius: 10px;
	padding: 20px;
}

.airtable-sg-card h3 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--at-dark);
	margin: 0 0 8px;
}

.airtable-sg-card p {
	font-size: 0.92rem;
	color: var(--at-muted);
	margin: 0;
}

.airtable-faq details {
	background: #ffffff;
	border: 1px solid var(--at-border);
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 12px;
}

.airtable-faq summary {
	font-weight: 700;
	color: var(--at-dark);
	cursor: pointer;
}

.airtable-faq-body {
	margin-top: 10px;
	color: var(--at-muted);
	line-height: 1.6;
}

.airtable-closing {
	padding: 64px 0;
	background: var(--at-dark);
	color: #ffffff;
	text-align: center;
}

.airtable-closing h2 {
	color: #ffffff;
	font-size: clamp(1.75rem, 3vw, 2.3rem);
	font-weight: 800;
	margin: 0 0 12px;
}

.airtable-closing p {
	color: #cbd5e1;
	max-width: 680px;
	margin: 0 auto 26px;
	font-size: 1.05rem;
}

.airtable-closing .airtable-actions {
	justify-content: center;
	margin-bottom: 0;
}
