/* 원본 디자인을 유지하며 MVC 링크/입력폼에만 적용한다. */
a.nav-item, a.profile, a.icon-button { text-decoration: none; color: inherit; }
a.nav-item { display: flex; }
[hidden] { display: none !important; }
button:disabled { cursor: not-allowed; opacity: .5; }
/* 사이트 전체 placeholder를 실제 입력값보다 연하고 가볍게 표시합니다. */
input::placeholder, textarea::placeholder { color: #b4bcc8; opacity: 1; font-weight: 400; }
input::-ms-input-placeholder, textarea::-ms-input-placeholder { color: #b4bcc8; font-weight: 400; }
.assignment-selector-bar { justify-content: flex-start; gap: 16px; }
.assignment-selector-bar select { max-width: 100%; min-width: 220px; padding: 9px; border: 1px solid var(--line, #e2e8e5); border-radius: 8px; }
.content-preview { max-width: 1200px; margin: auto; }
.content-preview .panel { margin-bottom: 20px; }
.json-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.7 monospace; max-height: 600px; overflow: auto; }
.class-list .btn { margin-left: auto; }
.login-card form label { display: block; }
.required-label { display: inline-flex; align-items: baseline; }
.required-label em { margin-left: 3px; color: #e5484d; font-style: normal; font-weight: 900; }
.toast.error { max-width: min(560px, calc(100vw - 52px)); line-height: 1.5; white-space: normal; }
.staff-filter { height: 42px; min-width: 130px; padding: 0 11px; border: 1px solid #dfe4eb; border-radius: 10px; background: #fff; color: #4d5563; }
.staff-table { min-width: 980px; }
.staff-table tr.is-archived { opacity: .68; }
.staff-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 250px; }
.staff-policy-note { margin: 14px 2px 0; color: #7b8390; font-size: 12px; }
.profile-panel { max-width: 850px; margin: 0 auto; }
.profile-form label { display: grid; gap: 7px; margin-bottom: 14px; color: #343b47; font-size: 12px; font-weight: 800; }
.profile-form input, .profile-form select { width: 100%; padding: 11px 12px; border: 1px solid #dfe4eb; border-radius: 10px; background: #fff; outline: none; }
.profile-form input:disabled { background: #f4f6f8; color: #737c89; }
.profile-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 8px; border-top: 1px solid #edf0f3; }

.class-student-count { border: 0; background: transparent; color: var(--purple, #6942e8); padding: 3px 5px; border-radius: 5px; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.class-student-count:hover, .class-student-count:focus-visible { background: #f0ebff; }
.class-students-backdrop { place-items: center; padding: 20px; }
.class-students-backdrop .modal { width: min(620px, 94vw); max-height: 90dvh; border-radius: 20px; }
.class-students-backdrop .modal > header, .class-students-backdrop .modal > footer { flex: 0 0 auto; }
.class-students-backdrop .modal-body { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.class-students-summary { flex: 0 0 auto; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.class-students-scroll { min-height: 0; max-height: min(420px, 55dvh); overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.class-students-scroll table { min-width: 0; table-layout: fixed; }
.class-students-scroll th { position: sticky; top: 0; z-index: 1; border-top: 0; }
.class-students-scroll td { overflow-wrap: anywhere; }
.class-students-message { padding: 24px 12px; text-align: center; color: var(--muted); }
.class-students-backdrop .modal > footer { display: flex; justify-content: flex-end; }
.class-students-backdrop .modal > footer .btn { width: auto; }

/* 긴 학생 이름에 맞춰 상세 레이어 헤더 높이를 늘립니다. */
.drawer > header {
  height: auto;
  min-height: 66px;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
}
.drawer > header > div { flex: 1; min-width: 0; }
.drawer > header > .icon-button { flex: 0 0 auto; }
.student-drawer-header { align-items: flex-start; }
.student-drawer-header h2 {
  flex: 1 1 100%;
  min-width: 0;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.student-drawer-header .badge { flex: 0 0 auto; }
.drawer > header p { line-height: 1.5; overflow-wrap: anywhere; }

.operation-log-search { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.operation-log-search select { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.operation-log-search .search-box { flex: 1; min-width: 200px; max-width: 500px; }
.operation-log-search .search-box input { min-width: 0; }
.operation-log-results { display: grid; gap: 18px; }
.operation-log-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.operation-log-pager > span { color: var(--muted); font-size: 12px; }
.operation-log-pager nav { display: flex; gap: 5px; flex-wrap: wrap; }
.operation-log-pager .btn[aria-current="page"] {
  background: var(--purple, #6b43e9);
  border-color: var(--purple, #6b43e9);
  color: #fff;
  opacity: 1;
  min-width: 36px;
  cursor: default;
}
.operation-log-pager .btn[aria-current="page"] strong { color: inherit; }
.operation-log-table td { overflow-wrap: anywhere; }
.operation-log-table td:first-child { min-width: 150px; }
.operation-log-empty { text-align: center; color: var(--muted); padding: 30px; }
.operation-log-error { color: #c94a50; }
.operation-log-dates { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.operation-log-dates label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.operation-log-dates input { height: 42px; min-width: 135px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
/* Read-only assignment status, aligned with the adjacent class selector. */
.modal .assignment-period-state{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:42px;padding:10px 12px;border:1px solid #e2e6ec;border-radius:10px;background:#f7f8fa;color:#657083;font-size:12px;font-weight:700;line-height:20px}
.assignment-period-state::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:currentColor}
.modal .assignment-period-state[data-status="active"]{background:#f0f9f2;border-color:#d8ebde;color:#2c8050}
.modal .assignment-period-state[data-status="scheduled"]{background:#f5f1fd;border-color:#e6ddf7;color:#7853bd}
.assignment-period-state[data-status=""]::before{display:none}

/* Password visibility control: show/hide without submitting the form. */
.password-field{position:relative;display:block;width:100%;min-width:0}
.password-field input{box-sizing:border-box;width:100%;padding-right:50px!important}
.password-field .password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;margin:0;padding:9px;border:0;border-radius:8px;background:transparent;color:#7b728d;box-shadow:none;cursor:pointer;line-height:1}
.password-field .password-toggle:hover{background:#f0ecf8;color:#6845cb}
.password-field .password-toggle:focus-visible{outline:2px solid #8660ed;outline-offset:1px}
.password-toggle svg{display:block;width:22px;height:22px;pointer-events:none}
.password-toggle .password-eye-off,.password-toggle[aria-pressed="true"] .password-eye{display:none}
.password-toggle[aria-pressed="true"] .password-eye-off{display:block}
