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

.tnd-form-shell,
.tnd-panel,
.tnd-listing-table,
.tnd-thread-box {
	background: #ffffff;
	border: 1px solid #d8e1eb;
	border-radius: 24px;
	box-shadow: 0 18px 40px rgba(18, 38, 63, 0.06);
}

.tnd-form-shell,
.tnd-panel {
	padding: 28px;
}

.tnd-dashboard-grid {
	display: grid;
	gap: 24px;
}

.tnd-section-heading {
	margin-bottom: 18px;
}

.tnd-section-heading h2,
.tnd-section-heading h3,
.tnd-section-heading h4 {
	margin: 0 0 8px;
	color: #102a43;
}

.tnd-section-heading p,
.tnd-empty-state p,
.tnd-status-banner p {
	margin: 0;
	color: #486581;
}

.tnd-kicker {
	display: inline-flex;
	margin-bottom: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fef3c7;
	color: #92400e;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.tnd-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.tnd-form-grid label {
	display: grid;
	gap: 8px;
	color: #102a43;
	font-weight: 600;
}

.tnd-form-grid input,
.tnd-form-grid textarea,
.tnd-form-grid select,
.tnd-form-shell input[type="text"],
.tnd-form-shell input[type="password"] {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	background: #f8fafc;
	color: #102a43;
	font: inherit;
}

.tnd-form-grid textarea {
	resize: vertical;
}

.tnd-span-2 {
	grid-column: 1 / -1;
}

.tnd-form-actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tnd-button,
.tnd-form-shell input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #fb923c, #ea580c);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.tnd-button-secondary {
	background: #0f172a;
}

.tnd-link-button {
	color: #c2410c;
	font-weight: 700;
	text-decoration: none;
}

.tnd-notice {
	margin-bottom: 16px;
	padding: 14px 18px;
	border-radius: 16px;
	font-weight: 600;
}

.tnd-notice-success {
	background: #dcfce7;
	color: #166534;
}

.tnd-notice-error {
	background: #fee2e2;
	color: #b91c1c;
}

.tnd-status-banner {
	margin-bottom: 20px;
	padding: 18px;
	border-radius: 18px;
}

.tnd-status-approved {
	background: #dcfce7;
}

.tnd-status-pending {
	background: #fef3c7;
}

.tnd-status-rejected,
.tnd-status-changes_requested {
	background: #fee2e2;
}

.tnd-listing-table {
	margin-top: 24px;
	overflow: hidden;
}

.tnd-listing-table h3 {
	margin: 0;
	padding: 24px 24px 0;
	color: #102a43;
}

.tnd-listing-table table {
	width: 100%;
	border-collapse: collapse;
}

.tnd-listing-table th,
.tnd-listing-table td {
	padding: 16px 24px;
	border-bottom: 1px solid #e2e8f0;
	text-align: left;
	vertical-align: top;
}

.tnd-empty-state {
	margin-top: 18px;
	padding: 18px;
	border-radius: 18px;
	background: #f8fafc;
}

.tnd-thread-box {
	margin-top: 20px;
	padding: 24px;
}

.tnd-thread-message {
	padding: 16px 0;
	border-bottom: 1px solid #e2e8f0;
}

.tnd-thread-message span {
	color: #64748b;
	font-size: 13px;
}

.tnd-thread-message p {
	margin: 8px 0 0;
	color: #334155;
}

.tnd-thread-reply {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}

.tnd-thread-reply textarea {
	min-height: 120px;
}

.tnd-inquiry-box {
	margin-top: 24px;
}

@media (max-width: 782px) {
	.tnd-form-grid {
		grid-template-columns: 1fr;
	}

	.tnd-span-2,
	.tnd-form-actions {
		grid-column: auto;
	}

	.tnd-listing-table {
		overflow-x: auto;
	}
}
