.gms-login,
.gms-dashboard {
	box-sizing: border-box;
	max-width: 1100px;
	margin: 2rem auto;
	color: #1f2937;
}

.gms-login *,
.gms-dashboard * {
	box-sizing: border-box;
}

.gms-login {
	max-width: 460px;
	padding: 2rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.gms-login__title,
.gms-dashboard h2,
.gms-dashboard h3 {
	margin-top: 0;
}

.gms-form {
	display: grid;
	gap: 1rem;
}

.gms-field {
	display: grid;
	gap: .4rem;
}

.gms-field label {
	font-weight: 600;
}

.gms-field input,
.gms-field textarea,
.gms-field select {
	width: 100%;
	padding: .7rem .8rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
}

.gms-checkbox {
	display: flex;
	gap: .5rem;
	align-items: center;
}

.gms-button {
	display: inline-block;
	padding: .7rem 1rem;
	border: 0;
	border-radius: 6px;
	background: #1d4ed8;
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.gms-button--secondary {
	background: #e5e7eb;
	color: #1f2937;
}

.gms-button--sm {
	padding: .4rem .75rem;
	font-size: .875rem;
}

.gms-required {
	color: #dc2626;
}

.gms-notice {
	margin: 1rem 0;
	padding: .85rem 1rem;
	border-radius: 6px;
}

.gms-notice--error {
	background: #fef2f2;
	color: #991b1b;
}

.gms-notice--success {
	background: #ecfdf5;
	color: #065f46;
}

.gms-notice--info {
	background: #eff6ff;
	color: #1e40af;
}

.gms-nav-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.gms-back-link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: #1d4ed8;
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
}

.gms-back-link:hover {
	text-decoration: underline;
}

.gms-role-badge {
	margin: .25rem 0 0 0;
	color: #475569;
	font-size: .95rem;
}

.gms-role-badge strong {
	color: #1e293b;
}

.gms-dashboard__header,
.gms-panel__header,
.gms-actions {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
}

.gms-dashboard__header {
	margin-bottom: 1.5rem;
}

.gms-eyebrow {
	margin-bottom: .35rem;
	color: #64748b;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Dashboard Cards Grid */
.gms-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.gms-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: transform .15s ease, box-shadow .15s ease;
}

.gms-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.gms-card--featured {
	border-color: #bfdbfe;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.07);
}

.gms-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.gms-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
}

.gms-card__icon--blue {
	background: #eff6ff;
	color: #2563eb;
}

.gms-card__icon--green {
	background: #ecfdf5;
	color: #059669;
}

.gms-card__icon--gray {
	background: #f1f5f9;
	color: #475569;
}

.gms-stat-pill {
	padding: .3rem .75rem;
	border-radius: 9999px;
	background: #dbeafe;
	color: #1e40af;
	font-size: .85rem;
	font-weight: 700;
}

.gms-badge-status {
	padding: .25rem .55rem;
	border-radius: 4px;
	background: #d1fae5;
	color: #065f46;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.gms-card__body {
	flex-grow: 1;
	margin-bottom: 1.5rem;
}

.gms-card__body h3 {
	margin-bottom: .5rem;
	font-size: 1.25rem;
}

.gms-card__body p {
	margin: 0;
	color: #64748b;
	font-size: .95rem;
	line-height: 1.5;
}

.gms-user-meta-list {
	display: grid;
	gap: .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .95rem;
	color: #334155;
}

.gms-card__actions {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
	align-items: center;
}

.gms-panel {
	padding: 1.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.gms-table-wrap {
	overflow-x: auto;
}

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

.gms-table th,
.gms-table td {
	padding: .8rem;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: middle;
}

.gms-table th {
	background: #f8fafc;
	font-weight: 700;
}

.gms-table__th-actions {
	text-align: right;
	width: 150px;
}

.gms-table__td-actions {
	text-align: right;
}

.gms-table__actions {
	display: inline-flex;
	gap: .75rem;
	align-items: center;
	justify-content: flex-end;
}

.gms-table__actions form {
	display: inline;
}

.gms-link-button {
	padding: 0;
	border: 0;
	background: none;
	color: #b91c1c;
	font: inherit;
	cursor: pointer;
}

.gms-link-button--danger {
	color: #dc2626;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: underline;
}

.gms-link-button--danger:hover {
	color: #991b1b;
}

@media (max-width: 640px) {
	.gms-dashboard__header,
	.gms-panel__header,
	.gms-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.gms-nav-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: .75rem;
	}
}
