.gstudio-admin,
.gstudio-public {
	max-width: 1440px;
}

.gstudio-hero,
.gstudio-public__head {
	background: #111827;
	border-radius: 8px;
	color: #fff;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin: 18px 0;
	padding: 28px;
}

.gstudio-hero h1,
.gstudio-public__head h2 {
	color: #fff;
	font-size: 34px;
	line-height: 1.1;
	margin: 0 0 10px;
}

.gstudio-kicker {
	color: #5eead4;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.gstudio-panel,
.gstudio-schedule-card,
.gstudio-conflicts,
.gstudio-overview {
	background: #fff;
	border: 1px solid #d9dee8;
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
	margin: 18px 0;
	padding: 22px;
}

.gstudio-panel__head,
.gstudio-schedule-card__head,
.gstudio-date-picker__head,
.gstudio-group-card__summary {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.gstudio-panel__head h2,
.gstudio-overview h2,
.gstudio-conflicts h2,
.gstudio-preview h2,
.gstudio-comparison h2 {
	color: #111827;
	font-size: 22px;
	margin: 0 0 6px;
}

.gstudio-panel__head p,
.gstudio-date-picker__head p,
.gstudio-overview p,
.gstudio-card-facts,
.gstudio-summary {
	color: #64748b;
	margin: 0;
}

.gstudio-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gstudio-grid--compact {
	margin-bottom: 18px;
}

.gstudio-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gstudio-field span {
	color: #334155;
	font-weight: 700;
}

.gstudio-field input,
.gstudio-field select {
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	min-height: 38px;
	width: 100%;
}

.gstudio-btn,
.gstudio-submit {
	border-radius: 8px !important;
}

.gstudio-group-card {
	background: #f8fafc;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	margin-top: 16px;
	padding: 18px;
}

.gstudio-group-title {
	align-items: center;
	display: flex;
	gap: 12px;
}

.gstudio-group-title h3 {
	color: #0f172a;
	font-size: 20px;
	margin: 0 0 4px;
}

.gstudio-color-dot {
	background: var(--gstudio-group-color);
	border-radius: 999px;
	height: 14px;
	width: 14px;
}

.gstudio-card-facts {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 16px 0;
}

.gstudio-card-facts span {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
}

.gstudio-card-actions,
.gstudio-editor-actions,
.gstudio-group-card__checks,
.gstudio-picker-nav,
.gstudio-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gstudio-group-editor {
	background: #fff;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	margin-top: 16px;
	padding: 16px;
}

.gstudio-date-picker {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-top: 18px;
	padding: 16px;
}

.gstudio-picker-months {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin-top: 14px;
}

.gstudio-picker-month {
	background: #fff;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	padding: 12px;
}

.gstudio-picker-month h4 {
	margin: 0 0 10px;
}

.gstudio-picker-grid {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(7, 1fr);
}

.gstudio-picker-grid span,
.gstudio-picker-grid button {
	align-items: center;
	aspect-ratio: 1;
	border: 0;
	border-radius: 6px;
	display: inline-flex;
	justify-content: center;
}

.gstudio-picker-grid span {
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
}

.gstudio-picker-grid button {
	background: #f1f5f9;
	color: #0f172a;
	cursor: pointer;
}

.gstudio-picker-grid button.is-weekend {
	background: #fee2e2;
	color: #991b1b;
	cursor: not-allowed;
}

.gstudio-picker-grid button.is-selected {
	background: #0f766e;
	color: #fff;
}

.gstudio-selected-dates {
	color: #475569;
	font-size: 13px;
	margin-top: 10px;
}

.gstudio-status {
	border-radius: 999px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	padding: 7px 10px;
	text-transform: uppercase;
}

.gstudio-status.is-upcoming { background: #dbeafe; color: #1d4ed8; }
.gstudio-status.is-active { background: #dcfce7; color: #166534; }
.gstudio-status.is-finished { background: #e2e8f0; color: #475569; }
.gstudio-status.is-unknown { background: #fee2e2; color: #991b1b; }

.gstudio-overview__list {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gstudio-overview-card {
	border-left: 5px solid var(--gstudio-group-color);
	background: #f8fafc;
	border-radius: 8px;
	cursor: pointer;
	padding: 16px;
	transform: translateY(0);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gstudio-overview-card h3 {
	margin: 10px 0;
}

.gstudio-overview-card:hover,
.gstudio-overview-card.is-active {
	box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
	transform: translateY(-3px);
}

.gstudio-overview-card.is-active {
	background: color-mix(in srgb, var(--gstudio-group-color) 8%, #fff);
	outline: 2px solid color-mix(in srgb, var(--gstudio-group-color) 55%, #fff);
}

.gstudio-view-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 18px;
}

.gstudio-view-btn {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	color: #0f172a;
	cursor: pointer;
	font-weight: 800;
	min-height: 38px;
	padding: 0 14px;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.gstudio-view-btn:hover,
.gstudio-view-btn.is-active {
	background: #111827;
	border-color: #111827;
	color: #fff;
	transform: translateY(-2px);
}

.gstudio-public-schedules > [hidden] {
	display: none !important;
}

.gstudio-student-panel {
	align-items: stretch;
	background: linear-gradient(135deg, #111827 0%, #172033 58%, #0f766e 100%);
	border: 1px solid rgba(94, 234, 212, .28);
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
	color: #fff;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(220px, 1fr) minmax(240px, 360px);
	margin: 18px 0;
	overflow: hidden;
	padding: 24px;
}

.gstudio-student-panel h2 {
	color: #fff;
	font-size: 28px;
	line-height: 1.15;
	margin: 0 0 8px;
}

.gstudio-student-panel p {
	color: rgba(255, 255, 255, .78);
	margin: 0;
}

.gstudio-student-panel__control {
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.gstudio-student-select-label {
	color: rgba(255, 255, 255, .78);
	font-size: 13px;
	font-weight: 800;
}

.gstudio-student-panel select {
	appearance: none;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 8px;
	color: #0f172a;
	font-size: 16px;
	font-weight: 800;
	min-height: 48px;
	padding: 0 44px 0 14px;
	width: 100%;
}

.gstudio-student-notice {
	align-items: center;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 8px;
	display: flex;
	gap: 14px;
	grid-column: 1 / -1;
	justify-content: space-between;
	padding: 14px;
}

.gstudio-student-notice[hidden] {
	display: none !important;
}

.gstudio-student-notice strong,
.gstudio-student-notice span {
	display: block;
}

.gstudio-student-notice strong {
	color: #fff;
	font-size: 17px;
}

.gstudio-student-notice span {
	color: rgba(255, 255, 255, .78);
	margin-top: 3px;
}

.gstudio-student-notice .gstudio-view-btn {
	background: #5eead4;
	border-color: #5eead4;
	color: #0f172a;
	flex: 0 0 auto;
}

.gstudio-next-lesson,
.gstudio-today-lesson {
	position: relative;
}

.gstudio-next-lesson {
	box-shadow: inset 0 0 0 3px #14b8a6, 0 14px 28px rgba(20, 184, 166, .18);
}

.gstudio-today-lesson {
	box-shadow: inset 0 0 0 3px #f59e0b, 0 14px 28px rgba(245, 158, 11, .18);
}

.gstudio-next-badge {
	background: #111827;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 11px;
	font-weight: 900;
	left: 8px;
	line-height: 1;
	padding: 6px 8px;
	position: absolute;
	right: 8px;
	text-align: center;
	top: 38px;
	z-index: 3;
}

.gstudio-today-lesson .gstudio-next-badge {
	background: #b45309;
}

.gstudio-highlight-pulse {
	animation: gstudioPulse 1.8s ease-in-out 2;
}

@keyframes gstudioPulse {
	0% { transform: scale(1); }
	45% { transform: scale(1.018); }
	100% { transform: scale(1); }
}

.gstudio-conflicts.is-clear {
	background: #f0fdf4;
	border-color: #86efac;
}

.gstudio-conflicts.is-alert {
	background: #fff1f2;
	border-color: #fda4af;
}

.gstudio-errors {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	margin: 14px 0;
	padding: 12px;
}

.gstudio-calendar-wrap {
	overflow-x: auto;
}

.gstudio-calendar {
	border-collapse: collapse;
	min-width: 1080px;
	width: 100%;
}

.gstudio-calendar th,
.gstudio-calendar td {
	border: 1px solid #cbd5e1;
	vertical-align: top;
}

.gstudio-calendar th {
	background: #e2e8f0;
	color: #334155;
	padding: 10px;
	text-align: center;
}

.gstudio-day {
	background: #fff;
	min-height: 108px;
	padding: 0;
	width: 14.285%;
}

.gstudio-day.is-study {
	background: color-mix(in srgb, var(--gstudio-group-color) 14%, #fff);
}

.gstudio-day.is-weekend,
.gstudio-day.is-global-off,
.gstudio-day.is-group-off {
	background: #fff1f2;
}

.gstudio-day.is-conflict {
	box-shadow: inset 0 0 0 3px #ef4444;
}

.gstudio-day__date {
	border-bottom: 1px solid rgba(15, 23, 42, .08);
	font-weight: 800;
	padding: 8px 10px;
}

.gstudio-day__meta,
.gstudio-day-note {
	color: #64748b;
	display: block;
	font-size: 12px;
	padding: 8px 10px;
}

.gstudio-lessons {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
}

.gstudio-lesson {
	align-items: center;
	background: var(--gstudio-group-color);
	border-radius: 8px;
	color: #fff;
	display: flex;
	gap: 8px;
	justify-content: space-between;
	padding: 7px 8px;
	position: relative;
}

.gstudio-lesson-menu-btn {
	background: rgba(255, 255, 255, .18);
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font-weight: 800;
	line-height: 1;
	padding: 2px 7px 5px;
}

.gstudio-lesson-menu {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
	min-width: 240px;
	padding: 8px;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 20;
}

.gstudio-lesson-menu button {
	background: transparent;
	border: 0;
	color: #0f172a;
	cursor: pointer;
	display: block;
	padding: 8px;
	text-align: left;
	width: 100%;
}

.gstudio-chip {
	align-items: center;
	background: #f1f5f9;
	border-radius: 999px;
	color: #334155;
	display: inline-flex;
	font-weight: 700;
	gap: 7px;
	padding: 8px 12px;
}

.gstudio-chip i {
	background: var(--gstudio-group-color);
	border-radius: 999px;
	height: 10px;
	width: 10px;
}

.gstudio-chip.is-global { background: #fee2e2; color: #991b1b; }
.gstudio-chip.is-conflict { background: #ffe4e6; color: #be123c; }

.gstudio-history-list {
	display: grid;
	gap: 10px;
}

.gstudio-history-list article {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px;
}

@media (max-width: 900px) {
	.gstudio-hero,
	.gstudio-public__head,
	.gstudio-panel__head,
	.gstudio-schedule-card__head,
	.gstudio-date-picker__head,
	.gstudio-group-card__summary,
	.gstudio-student-notice {
		align-items: flex-start;
		flex-direction: column;
	}

	.gstudio-hero h1,
	.gstudio-public__head h2 {
		font-size: 28px;
	}

	.gstudio-student-panel {
		grid-template-columns: 1fr;
		padding: 20px;
	}

	.gstudio-student-panel h2 {
		font-size: 24px;
	}

	.gstudio-student-notice .gstudio-view-btn {
		width: 100%;
	}
}
