/* io — 인증·피드·관리자·NEIS 보조 스타일 */

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-actions a.primary-btn,
.hero-actions a.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ppt-slide.card-like {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

.ppt-toc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.ppt-toc a {
  font-weight: 500;
}

.two-col {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.web-plan-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.layout-narrow {
  max-width: 480px;
}

.auth-card {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.auth-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.auth-form input,
.auth-form textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--input-bg);
  color: var(--text);
}

.full-width {
  width: 100%;
  margin-top: 0.35rem;
}

.req {
  color: #b91c1c;
  font-weight: 700;
}

.topbar .brand {
  text-decoration: none;
}

.block-picker {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0 1.1rem;
}

.block-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--surface);
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.block-option:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.block-option:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: var(--shadow-xs);
}

html[data-theme="dark"] .block-option:has(input:checked) {
  background: rgba(59, 130, 246, 0.12);
  box-shadow: none;
}

.block-option--muted {
  opacity: 0.52;
  cursor: not-allowed;
}

.compose-school-only-hint {
  margin: 0.65rem 0 0;
  line-height: 1.5;
}

.block-option input {
  margin-top: 0.2rem;
}

.block-picker-fieldset {
  border: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.field-legend {
  font-weight: 600;
  margin: 0 0 0.4rem;
  padding: 0;
  font-size: 0.95rem;
}

.field-legend-sub {
  font-weight: 400;
}

.block-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.block-option-desc {
  line-height: 1.45;
}

.composer-intro {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.composer.card {
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius-lg);
}

.composer .section-title {
  margin-bottom: 0.65rem;
}

.notion-compose-form {
  gap: 0.95rem;
}

.notion-toolbar.card {
  margin-top: 0.2rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.notion-toolbar-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.notion-toolbar-title {
  font-size: 0.9rem;
  letter-spacing: -0.015em;
}

.notion-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.notion-menu-wrap {
  position: relative;
}

.notion-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.48rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.notion-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.notion-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notion-btn-menu[aria-expanded="true"] {
  border-color: var(--blue-500);
  box-shadow: var(--ring-focus);
}

.notion-btn-icon {
  font-size: 0.92rem;
  color: var(--muted);
}

.notion-menu-popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 220px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.notion-menu-item {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.58rem;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  cursor: pointer;
}

.notion-menu-item:hover:not(:disabled) {
  background: var(--surface-2);
}

.notion-menu-item[aria-checked="true"] {
  background: var(--blue-50);
  color: var(--blue-800);
}

html[data-theme="dark"] .notion-menu-item[aria-checked="true"] {
  background: rgba(59, 130, 246, 0.16);
  color: var(--accent);
}

.notion-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.notion-complete-btn {
  margin-left: auto;
  min-width: 5.8rem;
}

@media (max-width: 700px) {
  .notion-complete-btn {
    margin-left: 0;
  }
}

.notion-toolbar-help {
  margin: 0.55rem 0 0;
}

.notion-choice-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.notion-editor.card {
  padding: 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: none;
}

/* 공지 작성 위저드 (공개 범위 → 유형 → 본문) */
.compose-wizard-form {
  margin-top: 0.25rem;
}

.compose-steps {
  margin: 0 0 1.25rem;
}

.compose-steps-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (max-width: 520px) {
  .compose-steps-track {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.compose-steps-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.compose-steps-item--current {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-800);
  box-shadow: var(--shadow-xs);
}

html[data-theme="dark"] .compose-steps-item--current {
  background: rgba(59, 130, 246, 0.14);
  color: var(--accent);
  border-color: var(--blue-500);
}

.compose-steps-item--done {
  border-color: var(--border-strong);
  color: var(--text-body);
}

.compose-steps-item--done .compose-steps-num {
  background: var(--blue-600);
  color: #fff;
}

.compose-steps-item--todo {
  opacity: 0.82;
}

.compose-steps-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--border);
  color: var(--muted);
  flex-shrink: 0;
}

.compose-steps-item--current .compose-steps-num {
  background: var(--blue-600);
  color: #fff;
}

.compose-steps-label {
  line-height: 1.3;
}

.compose-step-panel {
  margin-top: 0.25rem;
}

.compose-step-heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.compose-step-lead {
  margin: 0 0 1rem;
}

.compose-field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.compose-scope-radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 520px) {
  .compose-scope-radios {
    grid-template-columns: 1fr;
  }
}

.compose-scope-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--surface);
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.compose-scope-radio:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.compose-scope-radio:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: var(--shadow-xs);
}

html[data-theme="dark"] .compose-scope-radio:has(input:checked) {
  background: rgba(59, 130, 246, 0.12);
  box-shadow: none;
}

.compose-scope-radio:has(input:focus-visible) {
  outline: none;
  box-shadow: var(--ring-focus);
}

.compose-scope-radio input {
  margin-top: 0.25rem;
  accent-color: var(--blue-600);
}

.compose-scope-radio-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.compose-scope-radio-title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.compose-scope-radio-desc {
  line-height: 1.45;
}

.compose-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.compose-wizard-actions .primary-btn,
.compose-wizard-actions .secondary-btn {
  min-width: 6.5rem;
}

.compose-wizard-actions-spacer {
  flex: 1;
  min-width: 0.5rem;
}

.feed-draft {
  width: 100%;
  margin-top: 0.75rem;
  opacity: 0.85;
}

.feed-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35);
}

.feed-badge-soft {
  background: #475569;
  box-shadow: none;
}

.feed-badge-warn {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.35);
}

/* 피드: 대화 맥락 문구는 오른쪽 배지에 길게 들어갈 수 있음 */
.feed-badge-flow {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.38;
  padding: 0.32rem 0.55rem;
  border-radius: var(--radius-md);
  white-space: normal;
  max-width: 100%;
  text-align: right;
  box-sizing: border-box;
}

.small {
  font-size: 0.82rem;
}

/* 실무 앱 레이아웃 */
.app-body {
  min-height: 100vh;
}

.app-topbar .app-nav a {
  font-weight: 600;
}

.app-layout {
  max-width: 1120px;
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.scope-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.scope-tab {
  padding: 0.48rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface-2);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.scope-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.scope-tab-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

html[data-theme="dark"] .scope-tab-active {
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
}

.gate-wrap {
  padding-top: 2rem;
}

.gate-card {
  padding: 1.5rem 1.4rem;
}

.gate-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.gate-bullets {
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: var(--text-body);
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gate-actions a {
  text-decoration: none;
}

.dialogue-flow-wrap {
  display: none;
  margin-top: 0.35rem;
}

.dialogue-flow-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.dialogue-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.45rem;
}

@media (max-width: 560px) {
  .dialogue-flow-grid {
    grid-template-columns: 1fr;
  }
}

.dialogue-flow-card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    background var(--transition-fast);
  min-height: 4.1rem;
}

.dialogue-flow-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.dialogue-flow-card:has(input:checked) {
  border-color: #0f766e;
  background: linear-gradient(160deg, #ecfdf5 0%, #f0fdfa 100%);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2), var(--shadow-sm);
}

html[data-theme="dark"] .dialogue-flow-card:has(input:checked) {
  border-color: #5eead4;
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.45) 0%, rgba(17, 94, 89, 0.35) 100%);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.28);
}

.dialogue-flow-card:has(input:focus-visible) {
  outline: none;
  box-shadow: var(--ring-focus);
}

.dialogue-flow-card:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.dialogue-flow-card input {
  margin-top: 0.26rem;
  accent-color: #0d9488;
  flex-shrink: 0;
}

.dialogue-flow-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.dialogue-flow-card-title {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.38;
  color: var(--text);
}

.dialogue-flow-card-hint {
  line-height: 1.42;
}

.composer-form textarea {
  resize: vertical;
}

.side-dl {
  margin: 0;
  display: grid;
  gap: 0.35rem 0.75rem;
  grid-template-columns: auto 1fr;
  font-size: 0.88rem;
}

.side-dl dt {
  font-weight: 600;
  color: var(--muted);
}

.side-dl dd {
  margin: 0;
}

/* 피드: 본문 중심 카드, 데스크톱에서 살짝 떠 보이는 그림자 */
.feed-outer {
  padding: 0 0 2.75rem;
  min-height: calc(100vh - 4rem);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(37, 99, 235, 0.07), transparent 52%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(124, 58, 237, 0.05), transparent 45%),
    var(--bg);
}

[data-theme="dark"] .feed-outer {
  background:
    radial-gradient(ellipse 90% 70% at 50% -25%, rgba(59, 130, 246, 0.12), transparent 50%),
    var(--bg);
}

.app-layout--feed {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
  align-items: start;
}

.app-main--feed {
  min-width: 0;
}

@media (min-width: 900px) {
  .app-layout--feed {
    grid-template-columns: minmax(0, 1fr) minmax(252px, 300px);
    gap: 1.5rem 2rem;
  }
}

.ig-feed-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.15rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .ig-feed-topbar {
  background: var(--surface);
  border-color: var(--border);
}

.ig-scope-tabs {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.ig-new-btn {
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
  white-space: nowrap;
}

.ig-feed-hint {
  margin: 0 0 1.1rem;
  line-height: 1.55;
  max-width: 56rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.ig-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ig-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: var(--radius-lg);
}

.ig-post {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

@media (hover: hover) {
  .ig-post:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
}

[data-theme="dark"] .ig-post {
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .ig-post:hover {
  border-color: #3f3f46;
}

.ig-post--announcement {
  border-left: 4px solid var(--blue-600);
}

.ig-post--dialogue {
  border-left: 4px solid #64748b;
}

.ig-post--checklist {
  border-left: 4px solid #d97706;
}

.ig-post-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.ig-avatar {
  flex-shrink: 0;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 45%, #db2777 100%);
  color: #fff;
  box-shadow:
    0 0 0 2px var(--surface),
    0 2px 8px rgba(79, 70, 229, 0.35);
}

.ig-avatar-lg {
  width: 3rem;
  height: 3rem;
  font-size: 1.1rem;
}

.ig-post-user {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ig-post-name {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ig-post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.ig-post-type {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(13.75rem, 48%);
  padding-top: 0.15rem;
  text-align: right;
}

.ig-post-body {
  padding: 1rem 1.15rem 0.35rem;
}

.ig-post-caption {
  padding: 0;
}

.ig-post-stats {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.ig-caption-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.ig-caption-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-body, var(--text));
}

.ig-flow {
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

[data-theme="dark"] .ig-flow {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.ig-comments {
  list-style: none;
  margin: 0;
  padding: 0.55rem 1.15rem 0.4rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  max-height: 240px;
  overflow-y: auto;
}

.ig-comment {
  padding: 0.55rem 0 0;
  font-size: 0.875rem;
}

.ig-comment:first-child {
  padding-top: 0.2rem;
}

.ig-comment-author {
  font-weight: 700;
}

.ig-comment-body {
  margin: 0.22rem 0 0;
  padding-left: 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ig-reply-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.ig-reply-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.ig-reply-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: var(--ring-focus);
}

.ig-reply-send {
  flex-shrink: 0;
  border: none;
  background: linear-gradient(180deg, #3b82f6 0%, var(--blue-600) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
  transition: filter var(--transition-fast);
}

.ig-reply-send:hover {
  filter: brightness(1.06);
}

.ig-profile-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
  .ig-profile-card {
    position: sticky;
    top: 0.85rem;
  }
}

.ig-profile-card .ig-profile-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.ig-profile-name {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.ig-side-dl {
  margin-bottom: 0.55rem;
}

.compose-tips {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.neis-advanced {
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.neis-advanced input {
  width: 100%;
  margin-bottom: 0.5rem;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--blue-800);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}

html[data-theme="dark"] .role-pill {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.role-pill-lg {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

.nav-admin {
  font-weight: 700;
  color: #b45309 !important;
}

[data-theme="dark"] .nav-admin {
  color: #fbbf24 !important;
}

.layout-profile {
  max-width: 560px;
}

.profile-card {
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem;
}

.profile-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
}

.profile-form {
  margin-top: 0.5rem;
}

.profile-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0 0.75rem;
}

.success-msg {
  color: #15803d;
  font-weight: 600;
  margin: 0.5rem 0;
}

[data-theme="dark"] .success-msg {
  color: #4ade80;
}

.admin-layout {
  max-width: 960px;
}

.admin-hero {
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem;
}

.admin-badge {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

[data-theme="dark"] .admin-badge {
  background: #422006;
  color: #fde68a;
  border-color: #78350f;
}

.admin-stats {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
}

.admin-stat-grid {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.admin-stat-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2, var(--surface));
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-two-col {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 860px) {
  .admin-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-panel {
  padding: 1.25rem 1.35rem;
}

.admin-thread-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-thread-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-thread-title {
  display: block;
  margin-top: 0.15rem;
}

.admin-thread-body {
  margin: 0.25rem 0 0;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0.35rem;
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}

.admin-subnav {
  margin-top: 1rem;
  padding: 0.65rem 1rem;
}

.admin-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.admin-subnav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
}

.admin-subnav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.admin-subnav-link--active {
  color: var(--blue-800);
  background: var(--blue-50);
}

html[data-theme="dark"] .admin-subnav-link--active {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
}

.admin-toolbar {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.admin-toolbar-label {
  margin: 0;
  flex: 1 0 100%;
}

@media (min-width: 520px) {
  .admin-toolbar-label {
    flex: 0 0 auto;
  }
}

.admin-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.admin-toolbar-meta {
  margin: 0;
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .admin-toolbar-meta {
    margin-left: auto;
  }
}

.admin-nowrap-ts {
  white-space: nowrap;
}

.admin-table--actions .admin-table-actions {
  text-align: right;
  white-space: nowrap;
}

.admin-inline-form {
  display: inline;
}

.admin-delete-btn {
  font-size: 0.78rem;
  padding: 0.32rem 0.65rem;
}

.admin-post-preview {
  max-width: 22rem;
}

.admin-post-preview p {
  margin: 0.2rem 0 0;
}

.admin-pager {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0 0.25rem;
}

.admin-user-form-cell {
  padding: 0.65rem 0.5rem !important;
  vertical-align: middle;
}

.admin-user-row-form {
  display: grid;
  grid-template-columns: minmax(4.5rem, 1fr) minmax(7rem, 2fr) minmax(6.5rem, 1.1fr) minmax(6rem, 1.3fr) auto;
  gap: 0.45rem 0.6rem;
  align-items: center;
}

@media (max-width: 720px) {
  .admin-user-row-form {
    grid-template-columns: 1fr;
  }
}

.admin-user-select,
.admin-user-class-input {
  width: 100%;
  max-width: 100%;
  font-size: 0.85rem;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.admin-user-save {
  font-size: 0.8rem;
  padding: 0.38rem 0.85rem;
  white-space: nowrap;
}

.admin-user-name {
  font-weight: 700;
}

.feed-toolbar {
  margin: 0.75rem 0 1rem;
}

/* 게이트 랜딩 */
.gate-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.gate-hero {
  position: relative;
  margin-top: 1.75rem;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.gate-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #db2777);
}

.gate-title {
  font-size: clamp(1.85rem, 4.2vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.gate-hero .hero-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36rem;
}

.gate-bullets {
  margin: 1.15rem 0;
  padding-left: 1.25rem;
  color: var(--text-body);
  line-height: 1.55;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.gate-actions a {
  text-decoration: none;
}

.gate-sections {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .gate-sections {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gate-section-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-base);
}

@media (hover: hover) {
  .gate-section-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
}

.gate-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-700);
}

[data-theme="dark"] .gate-section-title {
  color: var(--blue-500);
}

.gate-section-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-body);
}

/* NEIS 일정·급식 도구 */
.neis-tool-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.neis-back {
  margin-top: 0.75rem;
}

.neis-tool-header {
  margin-top: 0.5rem;
  padding: 1.2rem 1.35rem;
}

.neis-tool-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0369a1;
  vertical-align: middle;
}

[data-theme="dark"] .neis-tool-badge {
  background: #0c4a6e;
  color: #bae6fd;
}

.neis-tool-lead {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.neis-panel {
  padding: 1.15rem 1.3rem;
  margin-top: 1rem;
}

.neis-panel-title {
  margin: 0;
  font-size: 1.05rem;
}

.neis-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.neis-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.neis-meta {
  font-size: 0.78rem;
  max-width: 100%;
}

.neis-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.neis-search-input {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
}

.neis-filter-input {
  width: 100%;
  max-width: 420px;
  margin: 0.5rem 0 0.85rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
}

.neis-table-wrap {
  margin-top: 0.5rem;
}

.neis-table th {
  font-size: 0.78rem;
}

.neis-split {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

@media (min-width: 960px) {
  .neis-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.neis-meal-hint {
  margin: 0 0 0.35rem;
}

/* 학사일정 카드 */
.schedule-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.schedule-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.schedule-card-datecol {
  text-align: center;
  min-width: 4.5rem;
}

.schedule-card-day {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}

.schedule-card-week {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.schedule-card-kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

[data-theme="dark"] .schedule-card-kind {
  background: #1e293b;
  color: #cbd5e1;
}

.schedule-card-event {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.schedule-card-school {
  margin: 0;
  font-size: 0.78rem;
}

/* 급식 목록: 학사일정과 동일한 .schedule-cards / .schedule-card 마크업 사용
   (global.css 의 .card p 가 본문색을 주므로 div 대신 p 구조를 맞춤) */
.neis-meal-list {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding-right: 0.15rem;
}

.neis-meal-list .schedule-card-event {
  word-break: keep-all;
}
