/**
 * Reading Base LMS — component styles
 * tokens.css / fonts.css 선행 로드 전제. 색·공간은 tokens 변수만 사용.
 */

* { box-sizing: border-box; }

body.lms-body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.55;
	font-weight: 500;
	color: var(--ink);
	background: var(--bg);
	display: flex;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ── Sidebar (light · 시안) ── */
.lms-sidebar {
	width: var(--sidebar-w);
	background: var(--sidebar);
	color: var(--sidebar-text);
	display: flex;
	flex-direction: column;
	padding: 18px 14px 14px;
	flex-shrink: 0;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	overflow-y: auto;
	z-index: 100;
	border-right: 1px solid var(--sidebar-line);
}

.lms-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px 16px;
	border-bottom: 1px solid var(--sidebar-line);
	margin-bottom: 8px;
}
.lms-brand-icon {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: linear-gradient(155deg, #4CA284, #1F5943);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lms-brand-icon svg { display: block; }
.lms-brand-icon.lg {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-lg);
}
.lms-brand strong {
	display: block;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--ink);
}
.lms-brand em {
	font-style: normal;
	font-size: 11px;
	letter-spacing: .2em;
	font-weight: 600;
	color: var(--sidebar-text-dim);
}

.lms-nav { flex: 1; }
.lms-nav-label {
	font-size: 11px;
	letter-spacing: .08em;
	margin: 16px 10px 6px;
	font-weight: 700;
	color: var(--sidebar-text-dim);
}
.lms-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	color: var(--sidebar-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 2px;
	position: relative;
}
.lms-nav-item.lms-nav-child {
	padding: 8px 12px 8px 40px;
	font-size: 13px;
	font-weight: 500;
	color: var(--sidebar-text-dim);
}
.lms-nav-ico {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}
.lms-nav-item:hover {
	background: var(--surface-alt);
	color: var(--ink);
}
.lms-nav-item.on {
	background: var(--sidebar-active);
	color: var(--accent-deep);
	box-shadow: inset 2.5px 0 0 var(--accent);
}
.lms-badge {
	position: absolute;
	right: 10px;
	background: var(--red);
	color: #fff;
	font-size: 10px;
	min-width: 18px;
	height: 18px;
	border-radius: var(--radius-full);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.lms-user-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	padding: 12px;
	border-radius: var(--radius-lg);
	background: var(--accent-soft2);
	border: 1px solid var(--accent-soft);
}
.lms-user-meta { flex: 1; min-width: 0; }
.lms-user-meta strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink);
}
.lms-user-meta em {
	display: block;
	font-style: normal;
	font-size: 11.5px;
	color: var(--muted);
	margin-top: 2px;
}
.lms-user-out {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-md);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-deep);
	text-decoration: none;
}
.lms-user-out:hover { background: var(--accent-soft); }

.lms-user-avatar,
.lms-avatar,
.lms-asg-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
	color: #fff;
	background: var(--av-1);
	font-size: 13px;
}
.lms-user-avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.av-1 { background: var(--av-1); }
.av-2 { background: var(--av-2); }
.av-3 { background: var(--av-3); }
.av-4 { background: var(--av-4); }
.av-5 { background: var(--av-5); }

.lms-main {
	margin-left: var(--sidebar-w);
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.lms-topbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	min-height: var(--topbar-h);
	padding: 16px var(--space-page-x) 14px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 50;
	gap: 16px;
}
.lms-topbar-left { min-width: 0; }
.lms-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px 0;
	margin-bottom: 4px;
}
.lms-breadcrumb span,
.lms-breadcrumb strong {
	color: var(--muted);
	font-size: 12.5px;
	margin-right: 6px;
	font-weight: 500;
	font-family: var(--font-body);
}
.lms-breadcrumb .lms-crumb-sep { color: var(--border); }
.lms-breadcrumb strong {
	color: var(--ink);
	font-weight: 700;
}
.lms-top-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 23px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.lms-topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	padding-top: 4px;
}
.lms-top-user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px 6px 6px;
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	background: var(--surface);
}
.lms-top-user em {
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
}
.lms-content {
	padding: 22px var(--space-page-x) 40px;
	max-width: var(--app-max);
	width: 100%;
}
.lms-page-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.lms-page-head h1,
.lms-page-head > div > p { display: none; } /* 타이틀은 topbar */
.lms-page-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin: -6px 0 16px;
}

.lms-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}
.lms-stat-card {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 22px;
	box-shadow: var(--shadow-card);
}
.lms-stat-ico {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.lms-stat-ico.is-green { background: var(--accent-soft); color: var(--accent-deep); }
.lms-stat-ico.is-blue { background: var(--blue-soft); color: var(--blue); }
.lms-stat-ico.is-warm { background: var(--warm-soft); color: var(--warm); }
.lms-stat-ico.is-violet { background: var(--violet-soft); color: var(--violet); }
.lms-stat-tag {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: 8px;
}
.lms-stat-value {
	display: block;
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink);
	margin-bottom: 10px;
}
.lms-stat-value small {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	margin-left: 4px;
}

.lms-panel {
	background: var(--surface);
	border-radius: var(--radius-xl);
	border: 1px solid var(--border);
	padding: var(--space-panel);
	box-shadow: none;
}
.lms-panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.lms-panel h3,
.lms-panel-head h3 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
}
.lms-panel-sub {
	margin: 4px 0 0;
	font-size: 12.5px;
	color: var(--muted);
	font-weight: 500;
}

.lms-btn-accent {
	background: var(--surface);
	color: var(--accent-deep);
	border: 1.5px solid var(--accent);
}
.lms-btn-accent:hover {
	background: var(--accent-soft2);
	color: var(--accent-deep);
}

.lms-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 700;
}
.lms-status i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.lms-status.is-ok { background: var(--accent-soft); color: var(--accent-deep); }
.lms-status.is-warn { background: var(--warm-soft); color: #B4552F; }
.lms-status.is-info { background: var(--blue-soft); color: var(--blue); }
.lms-status.is-muted { background: var(--surface-alt); color: var(--muted); }

.lms-person-name {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
}
.lms-person-id {
	display: block;
	font-style: normal;
	font-size: 11.5px;
	font-family: var(--font-mono);
	color: var(--muted);
	font-weight: 600;
}

.lms-cal-month-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}
.lms-cal-month-nav strong {
	font-family: var(--font-display);
	font-size: 16px;
	min-width: 110px;
	text-align: center;
}
.lms-cal-cell.is-assigned {
	background: var(--accent-soft2);
	border-color: var(--accent-soft);
}
.lms-cal-cell.has-event {
	background: var(--surface-alt);
}
.lms-cal-chip {
	display: block;
	border-radius: 7px;
	padding: 5px 7px;
	margin-bottom: 4px;
	font-size: 10.5px;
	line-height: 1.35;
	color: var(--ink);
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform .12s ease, box-shadow .12s ease;
}
.lms-cal-chip:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(24, 36, 32, 0.12);
}
.lms-cal-chip strong {
	display: block;
	font-size: 11px;
	font-weight: 800;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lms-cal-chip.is-ls {
	background: var(--sub-ls);
	border-color: var(--sub-ls);
	color: #fff;
}
.lms-cal-chip.is-reading {
	background: var(--sub-reading);
	border-color: var(--sub-reading);
	color: #fff;
}
.lms-cal-chip.is-voca {
	background: var(--sub-voca);
	border-color: var(--sub-voca);
	color: #fff;
}
.lms-cal-chip.is-pattern {
	background: var(--sub-pattern);
	border-color: var(--sub-pattern);
	color: #fff;
}
.lms-cal-chip.is-plan { background: var(--accent); color: #fff; }
.lms-cal-chip.is-done { background: var(--blue); color: #fff; }
.lms-cal-dow.is-sat { color: var(--blue); }
.lms-cal-dow.is-sun { color: var(--red); }
.lms-cal-subject.is-ls.is-on,
.lms-cal-subject.is-ls:hover { border-color: var(--sub-ls); color: var(--sub-ls); background: var(--sub-ls-soft); }
.lms-cal-subject.is-reading.is-on,
.lms-cal-subject.is-reading:hover { border-color: var(--sub-reading); color: var(--sub-reading); background: var(--sub-reading-soft); }
.lms-cal-subject.is-pattern.is-on,
.lms-cal-subject.is-pattern:hover { border-color: var(--sub-pattern); color: var(--sub-pattern); background: var(--sub-pattern-soft); }
.lms-cal-subject.is-voca.is-on,
.lms-cal-subject.is-voca:hover { border-color: var(--sub-voca); color: var(--sub-voca); background: var(--sub-voca-soft); }
.lms-cal-legend-subjects {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--border-soft);
	align-items: center;
}
.lms-cal-legend-subjects span {
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink-soft);
}
.lms-cal-legend-subjects i {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-right: 6px;
	vertical-align: middle;
}
.lms-cal-legend-subjects i.is-ls { background: var(--sub-ls); }
.lms-cal-legend-subjects i.is-reading { background: var(--sub-reading); }
.lms-cal-legend-subjects i.is-pattern { background: var(--sub-pattern); }
.lms-cal-legend-subjects i.is-voca { background: var(--sub-voca); }
.lms-asg-type-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	border: 1px solid transparent;
}
.lms-asg-type-pill.is-ls { background: var(--sub-ls-soft); color: var(--sub-ls); border-color: var(--sub-ls); }
.lms-asg-type-pill.is-reading { background: var(--sub-reading-soft); color: var(--sub-reading); border-color: var(--sub-reading); }
.lms-asg-type-pill.is-pattern { background: var(--sub-pattern-soft); color: var(--sub-pattern); border-color: var(--sub-pattern); }
.lms-asg-type-pill.is-voca { background: var(--sub-voca-soft); color: var(--sub-voca); border-color: var(--sub-voca); }
.lms-cal-dow.is-sat { color: var(--blue); }
.lms-cal-dow.is-sun { color: var(--red); }

.lms-toggle-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.lms-option-group {
	margin: 6px 0 2px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-mute, #6b7280);
}
.lms-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	cursor: default;
}
.lms-toggle input { display: none; }
.lms-toggle i {
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: var(--border);
	position: relative;
	flex-shrink: 0;
}
.lms-toggle i::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s ease;
}
.lms-toggle input:checked + i { background: var(--accent); }
.lms-toggle input:checked + i::after { transform: translateX(18px); }

@media (max-width: 1100px) {
	.lms-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.lms-stat-grid { grid-template-columns: 1fr; }
	.lms-top-title { font-size: 20px; }
}
.lms-badge {
	position: absolute;
	right: 10px;
	background: var(--red);
	color: #fff;
	font-size: 10px;
	min-width: 18px;
	height: 18px;
	border-radius: var(--radius-full);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-style: normal;
	font-weight: 700;
}

/* Avatars */
.lms-avatar,
.lms-asg-avatar,
.lms-user-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
	color: #fff;
	background: var(--av-1);
}
.lms-asg-avatar { width: 34px; height: 34px; font-size: 14px; }
.lms-avatar.av-1, .lms-asg-avatar.av-1, .lms-user-avatar.av-1,
.av-1 { background: var(--av-1); }
.lms-avatar.av-2, .lms-asg-avatar.av-2, .lms-user-avatar.av-2,
.av-2 { background: var(--av-2); }
.lms-avatar.av-3, .lms-asg-avatar.av-3, .lms-user-avatar.av-3,
.av-3 { background: var(--av-3); }
.lms-avatar.av-4, .lms-asg-avatar.av-4, .lms-user-avatar.av-4,
.av-4 { background: var(--av-4); }
.lms-avatar.av-5, .lms-asg-avatar.av-5, .lms-user-avatar.av-5,
.av-5 { background: var(--av-5); }
.lms-table tbody tr:nth-child(5n+1) .lms-avatar,
.lms-asg-table tbody tr:nth-child(5n+1) .lms-asg-avatar,
.lms-insp-table tbody tr:nth-child(5n+1) .lms-asg-avatar { background: var(--av-1); }
.lms-table tbody tr:nth-child(5n+2) .lms-avatar,
.lms-asg-table tbody tr:nth-child(5n+2) .lms-asg-avatar,
.lms-insp-table tbody tr:nth-child(5n+2) .lms-asg-avatar { background: var(--av-2); }
.lms-table tbody tr:nth-child(5n+3) .lms-avatar,
.lms-asg-table tbody tr:nth-child(5n+3) .lms-asg-avatar,
.lms-insp-table tbody tr:nth-child(5n+3) .lms-asg-avatar { background: var(--av-3); }
.lms-table tbody tr:nth-child(5n+4) .lms-avatar,
.lms-asg-table tbody tr:nth-child(5n+4) .lms-asg-avatar,
.lms-insp-table tbody tr:nth-child(5n+4) .lms-asg-avatar { background: var(--av-4); }
.lms-table tbody tr:nth-child(5n+5) .lms-avatar,
.lms-asg-table tbody tr:nth-child(5n+5) .lms-asg-avatar,
.lms-insp-table tbody tr:nth-child(5n+5) .lms-asg-avatar { background: var(--av-5); }

.lms-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-md);
	text-decoration: none;
	flex-shrink: 0;
	transition: background .15s ease, color .15s ease;
}
.lms-icon-btn svg { display: block; }
.lms-icon-btn-top {
	background: var(--accent);
	color: #fff;
	box-shadow: var(--shadow-card);
}
.lms-icon-btn-top:hover {
	background: var(--accent-deep);
	color: #fff;
}
.lms-icon-btn-side {
	background: var(--surface-alt);
	color: var(--sidebar-text);
	border: 1px solid var(--border);
}
.lms-icon-btn-side:hover {
	background: var(--accent-soft);
	color: var(--accent-deep);
}

.lms-user-logout {
	width: 100%;
	margin-top: 4px;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--sidebar-text);
	text-decoration: none;
	padding: 8px 10px;
	border-radius: var(--radius-md);
	background: var(--surface-alt);
}
.lms-user-logout:hover {
	background: var(--accent-soft);
	color: var(--accent-deep);
}

/* ── Main / Topbar ── */
.lms-main {
	margin-left: var(--sidebar-w);
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.lms-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--topbar-h);
	padding: 0 var(--space-page-x);
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 50;
}
.lms-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 0;
}
.lms-breadcrumb span {
	color: var(--muted);
	font-size: 12.5px;
	margin-right: 6px;
	font-weight: 500;
}
.lms-breadcrumb .lms-crumb-sep {
	color: var(--border);
	font-weight: 400;
}
.lms-breadcrumb strong {
	font-size: 12.5px;
	font-family: var(--font-body);
	font-weight: 700;
	color: var(--ink);
	margin-right: 0;
}
	letter-spacing: -0.02em;
}
.lms-topbar-actions { display: flex; align-items: center; gap: 12px; }
.lms-search input {
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	padding: 9px 16px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink);
	width: 220px;
	outline: none;
	background: var(--surface);
	font-family: var(--font-body);
}
.lms-search input::placeholder { color: var(--muted); }
.lms-search input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.lms-btn-logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: var(--radius-md);
	background: var(--accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.lms-btn-logout:hover { background: var(--accent-deep); color: #fff; }
.lms-logout {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-md);
	background: var(--accent-soft);
	color: var(--accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 16px;
}

.lms-content {
	padding: 22px var(--space-page-x) 40px;
	max-width: var(--app-max);
	width: 100%;
}

/* ── Page head ── */
.lms-page-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.lms-page-head h1 {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 23px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.lms-page-head p {
	margin: 0;
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 500;
}
.lms-page-head-actions { display: flex; gap: 8px; align-items: center; }

/* ── Stats ── */
.lms-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 18px;
}
.lms-stat-card {
	background: var(--surface);
	border-radius: var(--radius-xl);
	border: 1px solid var(--border);
	padding: 18px 20px;
	box-shadow: var(--shadow-card);
}
.lms-stat-label {
	display: block;
	font-size: 12.5px;
	color: var(--muted);
	margin-bottom: 6px;
	font-weight: 600;
}
.lms-stat-value {
	font-family: var(--font-display);
	font-size: 28px;
	line-height: 1.05;
	font-weight: 700;
	color: var(--accent-deep);
	letter-spacing: -0.02em;
}
.lms-stat-value small {
	font-size: 13px;
	color: var(--muted);
	margin-left: 2px;
	font-family: var(--font-body);
	font-weight: 600;
}
.lms-stat-badge {
	display: inline-block;
	margin-top: 8px;
	font-size: 11px;
	font-style: normal;
	padding: 3px 8px;
	border-radius: var(--radius-full);
	background: var(--accent-soft);
	color: var(--accent-deep);
	font-weight: 700;
}
.lms-stat-badge.up {
	background: var(--accent-soft);
	color: var(--accent);
}
.lms-stat-badge.warn {
	background: var(--warm-soft);
	color: #B4552F;
}

/* ── Panel ── */
.lms-panel {
	background: var(--surface);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
	border: 1px solid var(--border);
	padding: var(--space-panel);
}
.lms-panel h3 {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
	font-family: var(--font-display);
	letter-spacing: -0.02em;
}
.lms-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	gap: 12px;
}
.lms-panel-head h3 { margin: 0; }
.lms-panel-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Table ── */
.lms-table-wrap {
	overflow-x: auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}
.lms-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	color: var(--ink);
	background: var(--surface);
}
.lms-table th,
.lms-table td {
	padding: 15px 10px;
	border-bottom: 1px solid var(--border-soft);
	text-align: center;
	vertical-align: middle;
}
.lms-table th {
	color: var(--muted);
	font-weight: 700;
	font-size: 11.5px;
	background: var(--surface-alt);
	letter-spacing: -0.01em;
}
.lms-table tbody tr { background: var(--surface); }
.lms-table tbody tr:hover { background: var(--surface-alt); }
.lms-table tbody tr:last-child td { border-bottom: 0; }

.lms-empty,
.lms-empty-sm {
	text-align: center;
	color: var(--muted);
	padding: 32px 12px !important;
	font-weight: 500;
}
.lms-empty-sm {
	padding: 16px 0 !important;
	list-style: none;
}

.lms-student {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
}
.lms-student strong {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.02em;
}
.lms-student em {
	font-style: normal;
	font-size: 12px;
	color: var(--muted);
	font-weight: 500;
	font-family: var(--font-mono);
}

.lms-progress {
	height: 6px;
	background: var(--border-soft);
	border-radius: var(--radius-full);
	overflow: hidden;
	margin-bottom: 4px;
	min-width: 80px;
}
.lms-progress-bar { height: 100%; border-radius: var(--radius-full); background: var(--accent); }
.lms-progress-bar.high,
.lms-progress-bar.mid,
.lms-progress-bar.low { background: var(--accent); }

/* ── Pill / Badge ── */
.lms-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: var(--radius-full);
	background: var(--accent-soft);
	color: var(--accent-deep);
	font-size: 11.5px;
	font-weight: 700;
}
.lms-pill.is-ok {
	background: var(--accent-soft);
	color: var(--accent-deep);
}
.lms-pill.is-warn {
	background: var(--warm-soft);
	color: #B4552F;
}
.lms-pill.is-info {
	background: var(--blue-soft);
	color: var(--blue);
}
.lms-pill.is-purple {
	background: var(--violet-soft);
	color: var(--violet);
}
.lms-pill.is-muted {
	background: var(--surface-alt);
	color: var(--muted);
}

/* ── Buttons ── */
.lms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--radius-md);
	padding: 11px 18px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	font-family: var(--font-body);
	line-height: 1.2;
}
.lms-btn-primary {
	background: var(--accent);
	color: #fff;
	box-shadow: var(--shadow-card);
}
.lms-btn-primary:hover {
	background: var(--accent-deep);
	color: #fff;
}
/* 숙제 액션 구분 — 시작 / 계속 / 재학습 / 결과 */
.lms-btn-start,
.lms-btn.lms-btn-start,
.lms-btn-sm.lms-btn-start {
	background: var(--accent);
	color: #fff;
	box-shadow: var(--shadow-card);
}
.lms-btn-start:hover,
.lms-btn.lms-btn-start:hover,
.lms-btn-sm.lms-btn-start:hover {
	background: var(--accent-deep);
	color: #fff;
}
.lms-btn-continue,
.lms-btn.lms-btn-continue,
.lms-btn-sm.lms-btn-continue {
	background: var(--blue);
	color: #fff;
	box-shadow: var(--shadow-card);
}
.lms-btn-continue:hover,
.lms-btn.lms-btn-continue:hover,
.lms-btn-sm.lms-btn-continue:hover {
	filter: brightness(0.9);
	color: #fff;
}
.lms-btn-retry,
.lms-btn.lms-btn-retry,
.lms-btn-sm.lms-btn-retry {
	background: var(--warm);
	color: #fff;
	box-shadow: var(--shadow-card);
}
.lms-btn-retry:hover,
.lms-btn.lms-btn-retry:hover,
.lms-btn-sm.lms-btn-retry:hover {
	filter: brightness(0.9);
	color: #fff;
}
.lms-btn-result,
.lms-btn.lms-btn-result,
.lms-btn-sm.lms-btn-result {
	background: var(--violet);
	color: #fff;
	box-shadow: var(--shadow-card);
}
.lms-btn-result:hover,
.lms-btn.lms-btn-result:hover,
.lms-btn-sm.lms-btn-result:hover {
	filter: brightness(0.9);
	color: #fff;
}
.lms-btn-sm {
	padding: 7px 12px;
	font-size: 12px;
	border-radius: var(--radius-sm);
}
.lms-btn-block { width: 100%; }
.lms-btn-ghost,
.lms-btn.lms-btn-ghost,
.lms-btn-sm.lms-btn-ghost {
	background: var(--surface);
	color: var(--ink-soft);
	border: 1px solid var(--border);
	font-weight: 700;
}
.lms-btn-ghost:hover,
.lms-btn.lms-btn-ghost:hover,
.lms-btn-sm.lms-btn-ghost:hover {
	background: var(--surface-alt);
	border-color: var(--accent);
	color: var(--accent-deep);
}
.lms-btn-danger,
.lms-btn.lms-btn-danger,
.lms-btn-sm.lms-btn-danger {
	background: var(--red-soft);
	border: 1px solid var(--red);
	color: var(--red);
}
.lms-btn-danger:hover,
.lms-btn.lms-btn-danger:hover,
.lms-btn-sm.lms-btn-danger:hover {
	background: var(--red);
	color: #fff;
}
.lms-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.lms-inline-form {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.lms-inline-form select {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 6px 10px;
	font-size: 13px;
	font-family: var(--font-body);
	background: var(--surface);
	color: var(--ink);
}

.lms-pagination {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 16px;
}
.lms-pagination a {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	border: 1px solid var(--border);
	background: var(--surface);
}
.lms-pagination a.on {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.lms-hint {
	font-size: 13px;
	color: var(--muted);
	margin: 0 0 10px;
	font-weight: 500;
}
.lms-muted-count {
	font-style: normal;
	font-weight: 600;
	font-size: 12px;
	color: var(--muted);
	margin-left: 6px;
}
.lms-row-sub {
	display: block;
	font-style: normal;
	font-size: 12px;
	font-weight: 500;
	color: var(--ink-soft);
}

/* ── Forms / filters ── */
.lms-field { display: block; margin-bottom: 16px; }
.lms-field > span {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-soft);
	margin-bottom: 6px;
	letter-spacing: -0.01em;
}
.lms-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.lms-field select,
.lms-field textarea {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 500;
	font-family: var(--font-body);
	color: var(--ink);
	outline: none;
	background: var(--surface);
}
.lms-field input::placeholder { color: var(--muted); }
.lms-field input:not([type="checkbox"]):not([type="radio"]):focus,
.lms-field select:focus,
.lms-field textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.lms-field input.is-readonly,
.lms-field input[readonly] {
	background: var(--surface-alt);
	color: var(--muted);
}
.lms-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 8px;
	justify-content: flex-end;
	align-items: center;
}
.lms-empty-state {
	text-align: center;
	padding: 48px 20px;
	color: var(--muted);
}
.lms-empty-state strong {
	display: block;
	color: var(--ink);
	font-size: 15px;
	margin-bottom: 8px;
}

.lms-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}
.lms-filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 140px;
}
.lms-filter-field span {
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-soft);
}
.lms-filter-field select,
.lms-filter-field input {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 9px 12px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink);
	font-family: var(--font-body);
	outline: none;
	background: var(--surface);
	min-height: 40px;
}
.lms-filter-field select:focus,
.lms-filter-field input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.lms-filter-grow { flex: 1; min-width: 180px; }

.lms-asg-form { margin-top: 18px; }
.lms-asg-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 14px;
}
.lms-subhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.lms-subhead strong { font-size: 13px; }

.lms-check-list {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 8px 10px;
	max-height: 220px;
	overflow: auto;
	background: var(--surface);
}
.lms-check-list-tall { max-height: 280px; }
.lms-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px;
	margin: 0 0 6px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	letter-spacing: -0.02em;
	background: var(--surface);
}
.lms-check:last-child { margin-bottom: 0; }
.lms-check:hover {
	background: var(--surface-alt);
	border-color: var(--border);
}
.lms-check > span {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	line-height: 1.45;
	font-family: var(--font-body);
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
}
.lms-check em {
	font-style: normal;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
}
.lms-check em.lms-row-sub {
	flex: 1 1 100%;
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--ink-soft);
}

/* ── Login ── */
body.lms-login-body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.lms-login-wrap {
	display: grid;
	grid-template-columns: 1fr 400px;
	max-width: 920px;
	width: 100%;
	background: var(--surface);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shadow-modal);
	border: 1px solid var(--border);
}
.lms-login-visual {
	background: var(--accent-deep);
	color: #fff;
	padding: 48px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.lms-login-brand h1 {
	font-family: var(--font-display);
	font-size: 28px;
	margin: 12px 0 4px;
}
.lms-login-brand p { opacity: .85; margin: 0; font-size: 13.5px; }
.lms-login-features { margin: 32px 0 0; padding: 0; list-style: none; }
.lms-login-features li {
	padding: 10px 0 10px 20px;
	position: relative;
	font-size: 14px;
	opacity: .92;
}
.lms-login-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	font-weight: 700;
}
.lms-login-panel { padding: 48px 40px; }
.lms-login-panel h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-family: var(--font-display);
	color: var(--ink);
}
.lms-login-sub {
	color: var(--muted);
	font-size: 13.5px;
	margin: 0 0 28px;
}
.lms-login-demo {
	font-size: 12px;
	color: var(--muted);
	margin: 16px 0 0;
}
.lms-login-demo code {
	background: var(--accent-soft);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--accent-deep);
	font-family: var(--font-mono);
}
.lms-login-back { margin-top: 20px; font-size: 13px; }
.lms-login-back a { color: var(--accent); }

/* ── Assign dual-list ── */
.lms-assign-board {
	padding: 0;
	overflow: hidden;
}
.lms-assign-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
	gap: 14px;
	align-items: stretch;
	padding: 16px;
	min-height: 480px;
}
.lms-assign-pane {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	overflow: hidden;
}
.lms-assign-pane-members {
	border-color: var(--border);
	background: var(--surface);
}
.lms-assign-pane form {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}
.lms-assign-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border-soft);
	background: var(--surface);
}
.lms-assign-tool {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 120px;
}
.lms-assign-tool-grow { flex: 1; min-width: 140px; }
.lms-assign-tool span {
	font-size: 11px;
	font-weight: 700;
	color: var(--ink-soft);
}
.lms-assign-tool select,
.lms-assign-tool input {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 7px 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	font-family: var(--font-body);
	outline: none;
	background: var(--surface);
	min-height: 36px;
	width: 100%;
}
.lms-assign-tool select:focus,
.lms-assign-tool input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.lms-assign-tool input::placeholder { color: var(--muted); }
.lms-assign-pane-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
	background: var(--surface);
}
.lms-assign-pane-title {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}
.lms-assign-pane-title strong {
	font-size: 16px;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.lms-assign-pane-title em {
	font-style: normal;
	font-size: 12px;
	color: var(--accent-deep);
	font-weight: 700;
	background: var(--accent-soft);
	padding: 2px 8px;
	border-radius: var(--radius-full);
}
.lms-assign-list {
	flex: 1;
	max-height: none;
	min-height: 320px;
	height: 50vh;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--surface);
	padding: 10px 10px 12px;
}
.lms-assign-empty {
	margin: 28px 8px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--muted);
}
.lms-assign-row {
	align-items: flex-start;
	gap: 12px;
	padding: 12px 10px;
	margin: 0 0 6px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease;
}
.lms-assign-row:hover {
	background: var(--surface-alt);
	border-color: var(--border);
}
.lms-assign-row:has(input:checked) {
	background: var(--accent-soft2);
	border-color: var(--accent);
}
.lms-assign-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 4px;
	flex-shrink: 0;
	accent-color: var(--accent);
}
.lms-assign-person {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 10px;
	align-items: baseline;
	min-width: 0;
	width: 100%;
	line-height: 1.35;
}
.lms-assign-name {
	grid-column: 1;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.02em;
	line-height: 1.3;
}
.lms-assign-id {
	grid-column: 2;
	font-style: normal;
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
	margin: 0;
	font-family: var(--font-mono);
}
.lms-assign-sub {
	grid-column: 1 / -1;
	font-style: normal;
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
	margin: 2px 0 0;
}
.lms-assign-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
	padding: 8px 0;
	align-self: center;
}
.lms-assign-move {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	min-height: 64px;
	padding: 12px 10px;
	font-size: 13px;
	font-weight: 700;
	border-radius: var(--radius-md);
	white-space: normal;
	line-height: 1.3;
	text-align: center;
}
.lms-assign-move-ico {
	display: block;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

/* ── Profile ── */
.lms-profile-panel { max-width: 960px; }
.lms-profile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 28px;
	row-gap: 0;
	align-items: start;
}
.lms-profile-col-title {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.3;
}
.lms-profile-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.lms-profile-panel .lms-field {
	margin-bottom: 14px;
	min-width: 0;
}
.lms-profile-panel .lms-profile-row .lms-field {
	margin-bottom: 14px;
}
.lms-profile-note .lms-hint {
	margin: 0;
	padding: 11px 0;
	min-height: 42px;
	display: flex;
	align-items: center;
	line-height: 1.45;
}
.lms-profile-span-2 { grid-column: 1 / -1; }
.lms-profile-spacer-box {
	height: 42px;
	visibility: hidden;
}
.lms-profile-panel .lms-form-actions {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	justify-content: flex-end;
}

.lms-autofill-trap {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	pointer-events: none !important;
}
.lms-pw-mask {
	-webkit-text-security: disc;
	text-security: disc;
}

/* ── Loading overlay ── */
body.lms-loading-lock { overflow: hidden; }
.lms-loading {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(24, 36, 32, .42);
	backdrop-filter: blur(2px);
}
.lms-loading.is-on { display: flex; }
.lms-loading-card {
	background: var(--surface);
	border-radius: var(--radius-xl);
	padding: 28px 32px;
	min-width: 240px;
	text-align: center;
	box-shadow: var(--shadow-modal);
	border: 1px solid var(--border);
}
.lms-loading-spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 14px;
	border: 3px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: lms-spin .8s linear infinite;
}

/* ── Layer popup ── */
body.lms-layer-lock { overflow: hidden; }
.lms-layer {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.lms-layer.is-on { display: flex; }
.lms-layer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 36, 32, .45);
	backdrop-filter: blur(2px);
}
.lms-layer-dialog {
	position: relative;
	z-index: 1;
	width: min(640px, 100%);
	max-height: min(88vh, 860px);
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-modal);
	overflow: hidden;
}
.lms-layer-dialog.is-wide {
	width: min(960px, 100%);
}
.lms-layer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	background: var(--surface-alt);
}
.lms-layer-head strong {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
}
.lms-layer-x {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--ink-soft);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.lms-layer-x:hover {
	background: var(--accent-soft);
	color: var(--accent-deep);
}
.lms-layer-body {
	padding: 18px 20px 22px;
	overflow: auto;
}
.lms-layer-form .lms-check-list {
	max-height: 180px;
}

/* 학생 폼 — 소속 클래스 조회 */
.lms-class-view {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	overflow: hidden;
}
.lms-class-view-empty {
	margin: 0;
	padding: 14px 12px;
	font-size: 13px;
	color: var(--muted);
}
.lms-class-view-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 12px;
	border-bottom: 1px solid var(--border);
}
.lms-class-view-row:last-child { border-bottom: 0; }
.lms-class-view-row strong {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}
.lms-class-view-row em {
	font-style: normal;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--muted);
	white-space: nowrap;
}
/* 레이어 탭 */
.lms-tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 16px;
	border-bottom: 1px solid var(--border);
}
.lms-tab {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 10px 14px;
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.lms-tab:hover { color: var(--ink); }
.lms-tab.is-on {
	color: var(--accent-deep);
	border-bottom-color: var(--accent);
}
.lms-tab-panel[hidden] { display: none !important; }
.lms-history-block { margin-bottom: 18px; }
.lms-history-block h4 {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-soft);
}
.lms-history-table { max-height: 148px; overflow: auto; }
.lms-history-table .lms-table th,
.lms-history-table .lms-table td {
	padding: 8px 10px;
}

.lms-bulk-wrap .lms-hint { margin: 0 0 12px; }
.lms-sheet-wrap {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: auto;
	max-height: min(52vh, 420px);
	background: var(--surface);
}
.lms-sheet {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	min-width: 760px;
}
.lms-sheet th,
.lms-sheet td {
	padding: 0;
	border-bottom: 1px solid var(--border-soft);
	border-right: 1px solid var(--border-soft);
	text-align: center;
	vertical-align: middle;
}
.lms-sheet th:last-child,
.lms-sheet td:last-child { border-right: 0; }
.lms-sheet thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 8px 8px;
	background: var(--surface-alt);
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 700;
	text-align: center;
}
.lms-sheet-no {
	width: 36px;
	text-align: center !important;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11px;
	background: var(--surface-alt);
}
.lms-sheet td.lms-sheet-no { padding: 0 6px; }
.lms-sheet input {
	width: 100%;
	border: 0;
	background: transparent;
	padding: 7px 8px;
	font: inherit;
	font-family: var(--font-body);
	color: var(--ink);
	outline: none;
	text-align: center;
}
.lms-sheet input:focus {
	background: var(--accent-soft2);
}
.lms-sheet-result {
	min-width: 140px;
	padding: 0 8px;
	font-size: 11.5px;
	color: var(--muted);
	white-space: nowrap;
	text-align: center;
}
.lms-sheet-result.is-ok { color: var(--accent-deep); font-weight: 700; }
.lms-sheet-result.is-warn { color: var(--warm); font-weight: 700; }
.lms-mono {
	font-family: var(--font-mono);
	font-size: 12.5px;
	font-weight: 500;
}

.lms-loading-text {
	margin: 0;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
}
.lms-loading-sub {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--muted);
}
@keyframes lms-spin {
	to { transform: rotate(360deg); }
}

.lms-asg-stat-ico.is-green {
	background: var(--accent-soft);
	color: var(--accent-deep);
}
.lms-asg-stat-ico.is-blue {
	background: var(--blue-soft);
	color: var(--blue);
}
.lms-asg-stat-ico.is-orange {
	background: var(--warm-soft);
	color: #B4552F;
}
.lms-asg-stat-ico.is-purple {
	background: var(--violet-soft);
	color: var(--violet);
}
.lms-asg-class {
	display: flex;
	align-items: center;
	gap: 10px;
}
.lms-asg-class strong {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
}
.lms-asg-table td {
	font-size: 13.5px;
	font-weight: 600;
}

/* ── Calendar ── */
.lms-cal-board-wide {
	width: 100%;
}
.lms-cal-board-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.lms-cal-board-top h3 {
	margin: 0 0 4px;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
}
.lms-cal-subjects {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
}
.lms-cal-subject {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: var(--radius-full);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--ink-soft);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.lms-cal-subject em {
	font-style: normal;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
}
.lms-cal-subject:hover {
	border-color: var(--accent);
	color: var(--accent-deep);
}
.lms-cal-subject.is-on {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-deep);
}
.lms-cal-subject.is-on em { color: var(--accent-deep); }
.lms-cal-subject-empty {
	font-size: 12.5px;
	color: var(--muted);
}
.lms-asg-settings .lms-cal-student-list,
.lms-asg-settings .lms-cal-content-list {
	max-height: 140px;
}
.lms-cal-filter .lms-field { margin-bottom: 10px; }
.lms-cal-member-tag {
	display: none;
}

/* ── Assignment settings (출제하기) ── */
.lms-asg-settings {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.lms-asg-section {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg, 14px);
	background: var(--surface);
	padding: 14px 14px 12px;
}
.lms-asg-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin-bottom: 12px;
}
.lms-asg-section-head strong {
	font-size: 14px;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.02em;
}
.lms-asg-section-head span {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}
.lms-asg-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
}
.lms-asg-grid.lms-asg-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lms-asg-grid .lms-field { margin: 0; }
.lms-asg-range {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 10px;
	align-items: end;
}
.lms-asg-range-sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	font-size: 16px;
	font-weight: 800;
	color: var(--muted);
}
.lms-asg-student-list {
	max-height: 220px;
	padding: 8px;
	background: var(--surface-alt);
	border-color: var(--border);
}
.lms-asg-student {
	border: 1px solid var(--border) !important;
	background: var(--surface) !important;
	margin-bottom: 8px !important;
	padding: 12px 12px !important;
	cursor: pointer;
}
.lms-asg-student input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--accent);
	flex-shrink: 0;
}
.lms-asg-student.is-checked {
	border-color: var(--accent) !important;
	background: var(--accent-soft) !important;
	box-shadow: inset 0 0 0 1px var(--accent);
}
.lms-asg-student .lms-person-name {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--ink);
}
.lms-asg-option-blocks {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.lms-asg-option-card {
	border: 1px solid var(--border);
	border-radius: var(--radius-md, 12px);
	background: var(--surface-alt);
	overflow: hidden;
}
.lms-asg-option-card-head {
	padding: 9px 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--accent-deep);
	background: var(--accent-soft2);
	border-bottom: 1px solid var(--border-soft);
}
.lms-asg-option-card .lms-toggle-list {
	padding: 10px 12px 12px;
	gap: 10px;
}
.lms-asg-opt-field {
	margin: 0 !important;
}
.lms-asg-opt-field span {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink-soft);
}
@media (max-width: 640px) {
	.lms-asg-grid { grid-template-columns: 1fr; }
	.lms-asg-grid.lms-asg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lms-asg-range { grid-template-columns: 1fr; }
	.lms-asg-range-sep { height: auto; padding: 2px 0; }
}

/* ── Assignment detail / list ── */
.lms-asg-list-panel { margin-top: 16px; }
.lms-asg-plan-panel { margin-top: 0; margin-bottom: 16px; }
.lms-asg-plan-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
}
.lms-asg-plan-filters .lms-btn-primary { margin-left: auto; }
.lms-asg-plan-search { flex: 1 1 180px; max-width: 260px; }
.lms-asg-plan-search input,
.lms-asg-plan-filters select {
	width: 100%;
	min-height: 36px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm, 8px);
	padding: 0 10px;
	font-family: var(--font-body);
	font-size: 13px;
	background: var(--surface);
	color: var(--ink);
}
.lms-field-inline { display: inline-flex; margin: 0; }
.lms-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
.lms-asg-plan-table .lms-col-no { width: 48px; text-align: center; }
.lms-asg-plan-detail .lms-asg-plan-summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.lms-asg-plan-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--muted);
}
.lms-asg-plan-detail .lms-asg-plan-meta b { color: var(--ink); font-weight: 700; }
.lms-asg-plan-actions {
	flex-wrap: nowrap;
	white-space: nowrap;
}
.lms-asg-plan-actions form {
	display: inline-flex;
	margin: 0;
}
.lms-asg-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	margin: 0;
}
.lms-asg-info-grid > div.is-wide { grid-column: 1 / -1; }
.lms-asg-info-grid dt {
	font-size: 12px;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 4px;
}
.lms-asg-info-grid dd {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}
.lms-asg-range-view {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
}
.lms-asg-range-view span { color: var(--muted); }
.lms-asg-option-view {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}
.lms-asg-option-view li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm, 8px);
	background: var(--surface);
	font-size: 13px;
}
.lms-asg-option-view span { color: var(--muted); }
.lms-asg-option-view strong { color: var(--ink); font-weight: 700; }
.lms-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}
.lms-status.is-ok {
	background: var(--accent-soft);
	color: var(--accent-deep);
}
.lms-status.is-muted {
	background: var(--surface-alt);
	color: var(--muted);
}
.lms-asg-list-table td { vertical-align: middle; }
.lms-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
	align-items: center;
}
.lms-asg-detail-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.lms-asg-detail-meta strong {
	display: block;
	font-size: 16px;
	font-weight: 800;
	color: var(--ink);
}
.lms-asg-detail-meta span {
	font-size: 12.5px;
	color: var(--muted);
	font-weight: 600;
}
.lms-asg-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.lms-asg-preview-block {
	border: 1px solid var(--border);
	border-radius: var(--radius-md, 12px);
	padding: 12px 14px;
	margin-bottom: 12px;
	background: var(--surface);
}
.lms-asg-preview-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 420px;
	overflow: auto;
}
.lms-asg-preview-list > li {
	border: 1px solid var(--border-soft);
	border-radius: 10px;
	padding: 12px;
	background: var(--surface-alt);
}
.lms-asg-preview-list header {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: baseline;
	margin-bottom: 8px;
}
.lms-asg-preview-list header em {
	font-style: normal;
	font-family: var(--font-mono, monospace);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--accent-deep);
}
.lms-asg-preview-list header strong {
	font-size: 14px;
	font-weight: 800;
	color: var(--ink);
}
.lms-asg-preview-passage,
.lms-asg-preview-q {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0 0 8px;
	white-space: normal;
	word-break: keep-all;
}
.lms-asg-preview-choices {
	margin: 0;
	padding-left: 1.2em;
	font-size: 13px;
	color: var(--ink-soft);
	line-height: 1.5;
}
.lms-asg-target-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.lms-asg-target-list li {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 999px;
	background: var(--accent-soft2);
	border: 1px solid var(--border);
}
.lms-asg-target-list strong { font-size: 13px; font-weight: 800; }
.lms-asg-target-list em {
	font-style: normal;
	font-size: 11.5px;
	color: var(--muted);
	font-family: var(--font-mono, monospace);
}
.lms-asg-study-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}
.lms-asg-study-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md, 12px);
	background: var(--surface);
}
.lms-asg-study-list em {
	display: block;
	font-style: normal;
	font-size: 11px;
	color: var(--muted);
	margin-bottom: 2px;
}
.lms-asg-study-list strong {
	display: block;
	font-size: 13px;
	font-weight: 800;
	color: var(--ink);
}
.lms-badge.is-ok {
	background: var(--accent-soft);
	color: var(--accent-deep);
}
.lms-badge.is-muted {
	background: var(--surface-alt);
	color: var(--muted);
}
.lms-cal-student-list,
.lms-cal-content-list {
	max-height: 160px;
	margin-top: 0;
}
.lms-cal-days {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.lms-cal-day {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	cursor: pointer;
	background: var(--surface);
	position: relative;
}
.lms-cal-day input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.lms-cal-day.is-on {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}
.lms-cal-board { padding: var(--space-panel); }
.lms-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}
.lms-cal-dow {
	text-align: center;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--muted);
	padding: 4px 0;
}
.lms-cal-cell {
	min-height: 98px;
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	padding: 8px;
	background: var(--surface-alt);
}
.lms-cal-cell.is-blank {
	background: transparent;
	border-color: transparent;
}
.lms-cal-cell.is-today {
	outline: 2px solid var(--accent);
	outline-offset: -1px;
	background: var(--surface);
}
.lms-cal-cell.is-holiday {
	background: color-mix(in srgb, var(--warm) 10%, var(--surface-alt));
}
.lms-cal-date em.lms-cal-hol {
	color: var(--warm);
	font-weight: 700;
}
.lms-cal-holiday-name {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--warm);
	margin: -2px 0 6px;
	line-height: 1.3;
}
.lms-cal-date {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--ink);
}
.lms-cal-date em {
	font-style: normal;
	font-size: 11px;
	color: var(--accent-deep);
	margin-left: 4px;
}
.lms-cal-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 14px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}
.lms-cal-legend i {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 4px;
	margin-right: 6px;
	vertical-align: -2px;
}
.lms-cal-legend i.is-done { background: var(--blue); }
.lms-cal-legend i.is-plan { background: var(--accent); }
.lms-cal-legend i.is-today {
	background: var(--surface);
	border: 2px solid var(--accent);
}

/* ── Inspection heatmap ── */
.lms-insp-month {
	display: flex;
	align-items: center;
	gap: 8px;
}
.lms-insp-month input[type="month"] {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 8px 10px;
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 700;
	background: var(--surface);
	color: var(--ink);
}
.lms-insp-panel { padding: var(--space-panel); }
.lms-insp-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.lms-insp-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.lms-insp-filters select {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 8px 10px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	background: var(--surface);
	min-height: 38px;
	color: var(--ink);
}
.lms-insp-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}
.lms-insp-legend i {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	margin-right: 6px;
	vertical-align: -3px;
	border: 1px solid transparent;
}
.lms-insp-wrap {
	overflow: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}
.lms-insp-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 980px;
}
.lms-insp-table th,
.lms-insp-table td {
	border-bottom: 1px solid var(--border-soft);
	padding: 12px 4px;
	text-align: center;
	vertical-align: middle;
	font-size: 12px;
}
.lms-insp-table th {
	background: var(--surface-alt);
	font-weight: 700;
	font-size: 11.5px;
	color: var(--muted);
	position: sticky;
	top: 0;
	z-index: 2;
}
.lms-insp-table tbody tr { background: var(--surface); }
.lms-insp-table tbody tr:hover { background: var(--surface-alt); }
.lms-insp-student-col {
	position: sticky;
	left: 0;
	z-index: 3;
	background: inherit;
	text-align: left !important;
	min-width: 168px;
	padding-left: 12px !important;
	padding-right: 12px !important;
}
.lms-insp-table thead .lms-insp-student-col {
	background: var(--surface-alt);
	z-index: 4;
}
.lms-insp-rate-col {
	position: sticky;
	right: 0;
	background: inherit;
	z-index: 3;
	font-weight: 700;
	min-width: 64px;
}
.lms-insp-table thead .lms-insp-rate-col {
	background: var(--surface-alt);
	z-index: 4;
}
.lms-insp-student {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
}
.lms-insp-student strong {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.02em;
}
.lms-insp-student em {
	display: block;
	font-style: normal;
	font-size: 12px;
	color: var(--muted);
	font-weight: 500;
	font-family: var(--font-mono);
}
.lms-insp-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	min-width: 26px;
	padding: 0;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	box-sizing: border-box;
	cursor: default;
}
a.lms-insp-cell {
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
a.lms-insp-cell:hover,
a.lms-insp-cell:focus-visible {
	transform: translateY(-1px);
	box-shadow: var(--shadow-card);
	opacity: 0.92;
	outline: none;
	color: #fff;
}
.lms-insp-cell.is-empty {
	background: var(--border-soft);
	border: 0;
	color: transparent;
	box-shadow: none;
	cursor: default;
}
.lms-insp-legend .tone-allpass,
.lms-insp-cell.tone-allpass {
	background: var(--accent);
	color: #fff;
}
.lms-insp-legend .tone-mix,
.lms-insp-cell.tone-mix {
	background: var(--violet);
	color: #fff;
}
.lms-insp-legend .tone-fail,
.lms-insp-cell.tone-fail {
	background: var(--amber);
	color: #fff;
}
.lms-insp-legend .tone-partial,
.lms-insp-cell.tone-partial,
.lms-insp-legend .tone-miss,
.lms-insp-cell.tone-miss {
	background: var(--red);
	color: #fff;
	border: 0;
	box-shadow: none;
}
.lms-insp-legend .tone-future,
.lms-insp-cell.tone-future {
	background: var(--border);
	color: var(--muted);
	border: 0;
	box-shadow: none;
}
.lms-insp-cell.is-disabled {
	opacity: 0.45;
	filter: grayscale(0.35);
	cursor: default;
}
a.lms-insp-cell.is-disabled:hover,
a.lms-insp-cell.is-disabled:focus-visible {
	transform: none;
	box-shadow: none;
	opacity: 0.5;
}

/* 학습검사 상세 레이어 */
.lms-layer-dialog:has(.lms-insp-detail) {
	width: min(1180px, calc(100vw - 40px));
	max-height: min(92vh, 980px);
}
.lms-insp-detail .lms-table-wrap {
	max-height: min(74vh, 760px);
	overflow: auto;
}
.lms-insp-detail-table th,
.lms-insp-detail-table td {
	font-size: 13px;
	vertical-align: middle;
}
.lms-insp-detail-table .lms-col-check {
	width: 36px;
	text-align: center;
}
.lms-insp-detail-table .lms-row-sub {
	display: block;
	margin-top: 2px;
	font-style: normal;
	font-size: 11px;
	color: var(--muted);
	font-weight: 500;
}

/* ── Print (basic) ── */
body.lms-print-body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--bg);
}
.lms-print-toolbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}
.lms-print-toolbar strong { display: block; font-size: 14px; }
.lms-print-toolbar span { font-size: 12px; color: var(--muted); }
.lms-print-toolbar-actions { display: flex; gap: 8px; }
.lms-print-sheet {
	max-width: 820px;
	margin: 20px auto 40px;
	background: var(--surface);
	padding: 28px 32px;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}
.lms-print-meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--ink);
}
.lms-print-meta em {
	display: block;
	font-style: normal;
	font-size: 12px;
	color: var(--muted);
}
.lms-print-meta strong {
	font-size: 20px;
	font-family: var(--font-display);
}
.lms-print-meta-right {
	text-align: right;
	font-size: 12px;
	color: var(--muted);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.lms-print-item {
	padding: 18px 0;
	border-bottom: 1px dashed var(--border);
	page-break-inside: avoid;
}
.lms-print-item-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 10px;
}
.lms-print-no {
	width: 28px;
	height: 28px;
	border-radius: var(--radius-sm);
	background: var(--accent-soft);
	color: var(--accent-deep);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
	flex-shrink: 0;
}
.lms-print-item-head strong { display: block; font-size: 15px; }
.lms-print-item-head em {
	font-style: normal;
	font-size: 12px;
	color: var(--muted);
}
.lms-print-passage {
	background: var(--surface-alt);
	border-left: 3px solid var(--accent);
	padding: 12px 14px;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.65;
}
.lms-print-q {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.55;
	font-weight: 600;
}
.lms-print-choices {
	margin: 0;
	padding-left: 22px;
	font-size: 14px;
	line-height: 1.7;
}
.lms-print-choices li.is-correct {
	font-weight: 700;
	color: var(--accent-deep);
}
.lms-print-answer {
	margin-top: 12px;
	padding: 10px 12px;
	background: var(--amber-soft);
	border-radius: var(--radius-md);
	font-size: 13px;
}
.lms-print-answer strong {
	display: block;
	margin-bottom: 4px;
	color: var(--warm);
}
.lms-print-answer p { margin: 0; line-height: 1.55; }

.lms-print-filter { align-items: flex-end; }
.lms-print-mode-opts {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 40px;
	justify-content: center;
}
.lms-print-mode-opts label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	white-space: nowrap;
}
.lms-print-mode-opts input { accent-color: var(--accent); }
.lms-print-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}
.lms-print-textbook-card { max-width: 640px; }
.lms-print-textbook-card h3 {
	margin: 0 0 18px;
	font-family: var(--font-display);
	font-size: 20px;
}
.lms-print-textbook-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.lms-print-textbook-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
}
.lms-print-textbook-actions { text-align: right; }
.lms-print-sheet.is-exam { max-width: 900px; }
.lms-print-exam-head { margin-bottom: 22px; }
.lms-print-exam-head table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.lms-print-exam-head th,
.lms-print-exam-head td {
	border: 1px solid var(--border);
	padding: 8px 10px;
	text-align: center;
	color: var(--ink);
}
.lms-print-exam-title {
	font-family: var(--font-display);
	font-size: 18px;
	text-align: left !important;
}
.lms-print-exam-blank,
.lms-print-exam-score { min-width: 90px; min-height: 36px; }
.lms-print-cover {
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 10px;
	page-break-after: always;
}
.lms-print-cover em {
	font-style: normal;
	font-size: 13px;
	color: var(--muted);
	letter-spacing: .04em;
}
.lms-print-cover strong {
	font-family: var(--font-display);
	font-size: 32px;
	color: var(--ink);
}
.lms-print-cover-level {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--sub-reading);
	color: var(--sub-reading);
	border-radius: var(--radius-sm, 8px);
	font-weight: 600;
}
.lms-print-cover p { margin: 8px 0 0; color: var(--muted); }
.lms-print-cover small { color: var(--muted); }
.lms-print-blank-page {
	height: 0;
	page-break-after: always;
}
.lms-print-no.is-pad {
	font-family: var(--font-mono);
	min-width: 42px;
	border-radius: 999px;
	background: var(--sub-reading);
	color: #fff;
}
.lms-print-track {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: var(--sub-reading-soft);
	color: var(--sub-reading);
	margin-right: 6px;
}
.lms-print-vocab-box {
	margin: 12px 0;
	padding: 10px 12px;
	border: 1px solid var(--line, #d9e4dc);
	border-radius: 8px;
	background: #f8fbf9;
}
.lms-print-vocab-box strong {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--sub-reading);
}
.lms-print-vocab-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 12px;
}
.lms-print-vocab-box li {
	font-size: 12px;
	display: flex;
	gap: 6px;
}
.lms-print-vocab-box b { min-width: 88px; }
.lms-print-voca-table { display: grid; gap: 6px; }
.lms-print-voca-row {
	display: grid;
	grid-template-columns: 36px 1fr 1.2fr;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line, #d9e4dc);
	font-size: 13px;
}
.lms-print-voca-row em { font-style: normal; color: var(--muted); }
@media print {
	.lms-print-cover { min-height: 90vh; }
	.lms-print-blank-page { height: 1px; }
}
.lms-print-passage.is-kr {
	border-left-color: var(--violet);
	background: var(--violet-soft);
	color: var(--ink-soft);
}
.lms-print-pattern { display: flex; flex-direction: column; gap: 10px; }
.lms-print-sentence {
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-alt);
	page-break-inside: avoid;
}
.lms-print-sentence-en { font-size: 14px; line-height: 1.6; }
.lms-print-sentence-kr {
	margin-top: 6px;
	font-size: 13px;
	color: var(--ink-soft);
}
.lms-print-choice-mark {
	display: inline-block;
	min-width: 1.4em;
	font-family: var(--font-mono);
	color: var(--muted);
}
.lms-print-break { page-break-before: always; }
.lms-word-setup { max-width: 920px; }
.lms-word-options h2 {
	margin: 0 0 16px;
	font-family: var(--font-display);
	font-size: 20px;
}
.lms-word-option-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.lms-word-option-actions { margin-top: 16px; text-align: right; }
.lms-word-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin: 0 0 16px;
}
.lms-word-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
}
.lms-word-table th,
.lms-word-table td {
	border: 1px solid var(--border);
	padding: 8px 10px;
	text-align: center;
	color: var(--ink);
}
.lms-word-table th {
	background: var(--surface-alt);
	font-size: 13px;
}
.lms-wordbook-page {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.lms-wordbook-card {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 16px;
	background: var(--surface);
	page-break-inside: avoid;
}
.lms-wordbook-card table { width: 100%; border-collapse: collapse; }
.lms-wordbook-card td {
	width: 50%;
	text-align: center;
	padding: 10px 6px;
	font-size: 16px;
	border: 0;
}
.lms-mono { font-family: var(--font-mono); font-size: 12px; }

@media print {
	body.lms-print-body { background: #fff; }
	.no-print { display: none !important; }
	.lms-print-sheet {
		max-width: none;
		margin: 0;
		padding: 0;
		box-shadow: none;
		border: 0;
		border-radius: 0;
	}
	.lms-print-break { page-break-before: always; }
}

/* ── 학생 숙제 허브 (LMS 셸 내부) ── */
.lms-subject-pick {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 4px 0 8px;
}
.lms-subject-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--surface-alt);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 16px;
	transition: border-color .12s ease, transform .12s ease;
}
.lms-subject-card:hover {
	border-color: var(--accent);
	transform: translateY(-1px);
}
.lms-subject-card strong {
	display: block;
	font-size: 15px;
	margin-bottom: 4px;
	font-family: var(--font-display);
}
.lms-subject-card span {
	font-size: 12px;
	color: var(--muted);
}
.lms-subject-card.is-ls { border-left: 3px solid var(--sub-ls); }
.lms-subject-card.is-pattern { border-left: 3px solid var(--sub-pattern); }
.lms-subject-card.is-reading { border-left: 3px solid var(--sub-reading); }
.lms-subject-card.is-voca { border-left: 3px solid var(--sub-voca); }

.lms-hw-list { padding: 2px 0 8px; }
.lms-hw-asg {
	padding: 14px 0;
	border-top: 1px solid var(--border-soft);
}
.lms-hw-asg:first-child { border-top: 0; }
.lms-hw-asg-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}
.lms-hw-asg-head strong {
	display: block;
	font-size: 15px;
	font-family: var(--font-display);
}
.lms-hw-asg-head p,
.lms-hw-main p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12.5px;
}
.lms-hw-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 10px;
	border-radius: var(--radius-md);
	border: 1px solid transparent;
}
.lms-hw-row + .lms-hw-row { margin-top: 4px; }
.lms-hw-row:hover { background: var(--surface-alt); border-color: var(--border-soft); }
.lms-hw-row.is-locked { opacity: 0.72; }
.lms-hw-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.lms-hw-main strong {
	font-size: 13.5px;
	font-weight: 700;
}
.lms-hw-type {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.02em;
	padding: 3px 7px;
	border-radius: var(--radius-full);
	font-family: var(--font-mono);
}
.lms-hw-type.is-ls { background: var(--sub-ls-soft); color: var(--sub-ls); }
.lms-hw-type.is-pattern { background: var(--sub-pattern-soft); color: var(--sub-pattern); }
.lms-hw-type.is-reading { background: var(--sub-reading-soft); color: var(--sub-reading); }
.lms-hw-type.is-voca { background: var(--sub-voca-soft); color: var(--sub-voca); }
.lms-hw-type.is-grammar { background: var(--amber-soft); color: var(--amber); }
.lms-hw-code {
	font-style: normal;
	font-size: 11px;
	color: var(--muted);
	font-family: var(--font-mono);
}
.lms-toggle.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}
.lms-btn-disabled,
.lms-btn.lms-btn-disabled {
	background: var(--border-soft);
	color: var(--muted);
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}

/* 학생 숙제 캘린더 — 학습검사 tone 재사용 */
.lms-member-hw-cal .lms-insp-legend {
	margin-top: 10px;
}
.lms-member-cal-cell {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 88px;
}
a.lms-member-cal-cell:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-sm);
}
.lms-member-cal-cell.is-selected {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px var(--accent-soft);
	background: var(--surface-alt);
}
.lms-member-cal-cell .lms-insp-cell {
	width: 100%;
	min-height: 36px;
	font-size: 12px;
	font-family: var(--font-mono);
	font-weight: 600;
	letter-spacing: -0.02em;
}
.lms-member-cal-cell.is-empty-day .lms-insp-cell.is-empty {
	min-height: 28px;
}

/* 학생 일자 학습 목록 — 레이어 한 줄 */
.lms-layer-dialog:has(.lms-member-day) {
	width: min(720px, 100%);
}
.lms-member-day-meta {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--muted);
}
.lms-member-day-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--border-soft);
}
.lms-member-day-row {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	border-bottom: 1px solid var(--border-soft);
	min-height: 40px;
}
.lms-member-day-row.is-locked { opacity: 0.72; }
.lms-member-day-row .lms-hw-type {
	justify-self: center;
	justify-content: center;
	align-items: center;
	text-align: center;
	min-width: 88px;
	max-width: 120px;
	width: 100%;
	box-sizing: border-box;
	white-space: normal;
	line-height: 1.25;
	font-family: var(--font-body);
	letter-spacing: -0.02em;
}
.lms-member-day-title {
	justify-self: start;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	width: 100%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.lms-member-day-title-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lms-member-day-title .lms-status {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 2px 8px;
	font-size: 11px;
}
.lms-member-day-act {
	justify-self: end;
}
.lms-insp-detail-table .lms-insp-col-subject {
	text-align: center;
}
.lms-insp-detail-table .lms-insp-col-title {
	text-align: left;
}
.lms-insp-detail-table .lms-insp-col-level {
	text-align: center;
}
@media (max-width: 640px) {
	.lms-member-day-row {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		gap: 8px;
	}
}

@media (max-width: 720px) {
	.lms-subject-pick { grid-template-columns: 1fr; }
	.lms-hw-row {
		flex-direction: column;
		align-items: flex-start;
	}
	.lms-member-cal-cell .lms-insp-cell {
		font-size: 11px;
		min-height: 32px;
		padding: 4px 2px;
	}
}

/* ── Responsive ── */
@media (max-width: 1100px) {
	.lms-assign-split {
		grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
	}
	.lms-assign-move { font-size: 12px; min-height: 58px; }
}
@media (max-width: 1024px) {
	.lms-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.lms-profile-grid,
	.lms-profile-row { grid-template-columns: 1fr; }
	.lms-profile-span-2 { grid-column: auto; }
	.lms-profile-spacer { display: none; }
}
@media (max-width: 860px) {
	.lms-assign-split {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.lms-assign-actions {
		flex-direction: row;
		flex-wrap: wrap;
		order: 2;
	}
	.lms-assign-pane:first-child { order: 1; }
	.lms-assign-pane:last-child { order: 3; }
	.lms-assign-move {
		flex: 1;
		min-width: 140px;
		flex-direction: row;
		gap: 8px;
	}
	.lms-assign-list {
		height: 280px;
		min-height: 240px;
	}
}
@media (max-width: 768px) {
	.lms-sidebar { transform: translateX(-100%); }
	.lms-main { margin-left: 0; }
	.lms-content { padding-left: 16px; padding-right: 16px; }
	.lms-topbar { padding-left: 16px; padding-right: 16px; }
	.lms-login-wrap { grid-template-columns: 1fr; }
	.lms-login-visual { display: none; }
}
@media (max-width: 720px) {
}

/* QC 관리 */
.lms-qc-table { table-layout: fixed; }
.lms-qc-col-id { width: 64px; }
.lms-qc-col-cat { width: 96px; }
.lms-qc-col-cmt { width: 64px; }
.lms-qc-col-cmt.has-cmt {
	color: var(--accent-deep);
	font-weight: 700;
}
.lms-qc-col-status { width: 88px; }
.lms-qc-col-author { width: 110px; }
.lms-qc-col-date {
	width: 168px;
	white-space: nowrap;
}
.lms-qc-row { cursor: pointer; }
.lms-qc-row:focus {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}
.lms-qc-table th.lms-qc-title,
.lms-qc-table td.lms-qc-title {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	text-align: left;
}
.lms-qc-cat {
	display: inline-block;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-weight: 600;
	background: var(--surface-alt);
	color: var(--muted);
}
.lms-qc-cat.is-bug { background: var(--red-soft); color: var(--red); }
.lms-qc-cat.is-improve { background: var(--sub-ls-soft); color: var(--sub-ls); }
.lms-qc-cat.is-etc { background: var(--sub-pattern-soft); color: var(--sub-pattern); }
.lms-status-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: var(--surface-alt);
	color: var(--muted);
}
.lms-status-pill.is-prog-request { background: var(--sub-pattern-soft); color: var(--sub-pattern); }
.lms-status-pill.is-prog-progress { background: var(--sub-ls-soft); color: var(--sub-ls); }
.lms-status-pill.is-prog-done { background: var(--sub-reading-soft); color: var(--sub-reading); }
.lms-status-pill.is-qc-pending { background: var(--surface-alt); color: var(--muted); }
.lms-status-pill.is-qc-checking { background: var(--sub-ls-soft); color: var(--sub-ls); }
.lms-status-pill.is-qc-passed { background: var(--sub-reading-soft); color: var(--sub-reading); }
.lms-status-pill.is-qc-failed { background: var(--red-soft); color: var(--red); }

/* QC 상세 페이지 스택 */
.lms-qc-page {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 880px;
}
.lms-qc-page-head {
	margin-bottom: 0;
	align-items: center;
}
.lms-qc-page-head .lms-page-actions {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.lms-qc-page-head .lms-page-actions form {
	display: inline-flex;
	margin: 0;
}

.lms-qc-detail,
.lms-qc-comment-panel {
	margin: 0;
}

.lms-qc-detail-head {
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--border);
}
.lms-qc-detail-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}
.lms-qc-detail-title {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.02em;
	line-height: 1.35;
}
.lms-qc-detail-meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.4;
}
.lms-qc-detail-meta .lms-dot { color: var(--border); }

.lms-qc-status-form {
	display: grid;
	grid-template-columns: minmax(120px, 160px) minmax(120px, 160px) auto;
	gap: 12px 14px;
	align-items: end;
	padding: 14px 16px;
	margin: 0 0 16px;
	background: var(--surface-alt);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
}
.lms-qc-status-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	min-width: 0;
}
.lms-qc-status-field span {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	line-height: 1;
}
.lms-qc-status-field select {
	width: 100%;
	min-height: 36px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 0 10px;
	font-family: var(--font-body);
	font-size: 13px;
	background: var(--surface);
	color: var(--ink);
}
.lms-qc-status-actions {
	display: flex;
	align-items: flex-end;
	padding-bottom: 1px;
}
@media (max-width: 640px) {
	.lms-qc-status-form {
		grid-template-columns: 1fr 1fr;
	}
	.lms-qc-status-actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}
}

.lms-qc-body {
	padding: 0;
}
.lms-qc-body-label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
	letter-spacing: 0.02em;
}
.lms-qc-html {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--ink);
	word-break: break-word;
	overflow-wrap: anywhere;
	padding: 14px 16px;
	background: var(--surface-alt);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	min-height: 64px;
}
.lms-qc-html a {
	color: var(--accent-deep);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.lms-qc-html a:hover { color: var(--accent); }
.lms-qc-html img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
}
.lms-qc-html p { margin: 0 0 0.75em; }
.lms-qc-html p:last-child { margin-bottom: 0; }
.lms-qc-url-line {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.5;
}

.lms-qc-comment-panel .lms-panel-head {
	margin-bottom: 12px;
}
.lms-qc-comment-panel .lms-panel-head em {
	font-style: normal;
	color: var(--muted);
	font-weight: 600;
}
.lms-qc-comment-empty {
	margin: 0 0 16px;
	padding: 14px 16px;
	background: var(--surface-alt);
	border-radius: var(--radius-md);
	color: var(--muted);
	font-size: 13.5px;
}
.lms-qc-comments {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.lms-qc-comments li {
	padding: 12px 0;
	border-bottom: 1px solid var(--border-soft);
}
.lms-qc-comments li:first-child { padding-top: 0; }
.lms-qc-comments li:last-child { border-bottom: 0; }
.lms-qc-comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--muted);
}
.lms-qc-comment-meta form { display: inline-flex; margin: 0; }
.lms-qc-comment-meta strong { color: var(--ink); }
.lms-qc-comment-body {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink-soft);
}
.lms-qc-comment-form {
	margin-top: 0;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}
.lms-qc-comment-form .lms-field { margin: 0; }
.lms-qc-comment-form textarea {
	min-height: 84px;
	resize: vertical;
	width: 100%;
}
.lms-qc-comment-actions {
	margin-top: 10px;
	display: flex;
	justify-content: flex-end;
}
.lms-link-btn {
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
	font-size: 12px;
	text-decoration: underline;
	padding: 0;
}
.lms-link-btn:hover { color: var(--red); }
.lms-mono { font-family: var(--font-mono); font-size: 12px; }
.lms-page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lms-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
}
.lms-filter-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--muted);
}
.lms-filter-field select,
.lms-filter-field input {
	min-width: 140px;
	padding: 8px 10px;
	border: 1px solid var(--line, #d9e4dc);
	border-radius: 8px;
	font-size: 14px;
}

/* ── 우리학원 보카 ── */
.lms-avoca-grid {
	display: grid;
	grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}
.lms-avoca-level-form {
	display: grid;
	gap: 8px;
	margin-bottom: 14px;
}
.lms-avoca-level-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}
.lms-avoca-level-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-alt);
}
.lms-avoca-level-list li.is-on {
	border-color: var(--accent);
	background: var(--accent-soft2);
}
.lms-avoca-level-list a {
	flex: 1;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	font-size: 13.5px;
}
.lms-avoca-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
}
.lms-avoca-toolbar .lms-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--ink-soft);
}
#avocaWordTable input[type="text"] {
	width: 100%;
	min-height: 36px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 0 10px;
	font-family: var(--font-body);
	font-size: 13.5px;
	background: var(--surface);
	color: var(--ink);
}
.lms-td-actions {
	white-space: nowrap;
}
@media (max-width: 900px) {
	.lms-avoca-grid { grid-template-columns: 1fr; }
}

/* ── 보카패스 단어일람 모달 ── */
.lms-btn-warm {
	background: var(--warm);
	color: #fff;
	box-shadow: var(--shadow-card);
}
.lms-btn-warm:hover {
	background: color-mix(in srgb, var(--warm) 88%, var(--ink));
	color: #fff;
}
.lms-btn-sm.lms-btn-warm {
	padding: 6px 12px;
	font-size: 12px;
}
.lms-voca-modal {
	position: fixed;
	inset: 0;
	z-index: 9600;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.lms-voca-modal[hidden] {
	display: none !important;
}
.lms-voca-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 36, 32, .5);
}
.lms-voca-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(86vh, 760px);
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-modal);
	overflow: hidden;
}
.lms-voca-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
}
.lms-voca-modal-head strong {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}
.lms-voca-level-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-soft);
	background: var(--surface-alt);
}
.lms-voca-level-btn {
	appearance: none;
	border: 1.5px solid var(--blue);
	background: var(--surface);
	color: var(--blue);
	border-radius: var(--radius-sm);
	padding: 5px 10px;
	font-size: 12.5px;
	font-weight: 700;
	font-family: var(--font-body);
	cursor: pointer;
	line-height: 1.2;
}
.lms-voca-level-btn:hover {
	background: var(--blue-soft);
}
.lms-voca-level-btn.is-on {
	background: var(--blue);
	color: #fff;
	border-color: var(--blue);
}
.lms-voca-word-result {
	flex: 1;
	min-height: 280px;
	max-height: 420px;
	overflow: auto;
	padding: 14px 16px;
	user-select: none;
	-webkit-user-select: none;
}
.lms-voca-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lms-voca-grid li {
	padding: 7px 2px;
	border-bottom: 1px solid var(--border-soft);
	font-size: 13.5px;
	font-family: var(--font-body);
	color: var(--ink);
	line-height: 1.35;
}
.lms-voca-modal-foot {
	display: flex;
	justify-content: center;
	padding: 12px 16px 16px;
	border-top: 1px solid var(--border);
}
@media (max-width: 560px) {
	.lms-voca-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 학생 관리 목록 스타일은 static/lms/css/students.css 로 분리됨 */
