@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --color-bg-main: #06070a;
  --color-bg-sidebar: #0f1015;
  --color-bg-card: #181920;
  --color-bg-input: #1a1b23;
  --color-bg-hover: rgba(243, 115, 33, 0.1);
  
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a5b5;
  --color-text-muted: #5e6270;
  
  --color-accent-orange: #f37321; /* Asset Theme Orange */
  --color-accent-glow: rgba(243, 115, 33, 0.4);
  --color-accent-orange-soft: rgba(243, 115, 33, 0.15);
  
  --color-border: #1f2029;
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  overflow: hidden;
  height: 100vh;
  display: flex;
}

/* --- Splash Screen --- */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: #0A0A0F;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

.splash-radial-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(243, 115, 33, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.splash-content {
  text-align: center;
  z-index: 1;
  animation: slideUpFadeIn 0.6s ease-out forwards;
}

@keyframes slideUpFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-logo-text {
  font-family: 'Outfit', var(--font-family);
  font-size: 2.4rem;
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow: 0 0 7px rgba(243, 115, 33, 0.8), 0 0 20px rgba(243, 115, 33, 0.6), 0 0 40px rgba(243, 115, 33, 0.4);
  line-height: 1.2;
}

.splash-logo-text span {
  color: var(--color-accent-orange);
}

.splash-loading-track {
  width: 300px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin: 16px auto 12px;
  overflow: hidden;
}

.splash-loading-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f37321, #ff9800);
  border-radius: 10px;
  transform-origin: left;
  animation: loadingBarAnim 1.2s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loadingBarAnim {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.splash-status-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* --- Layout --- */
.app-container {
  display: flex;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in;
}

.app-container.visible {
  opacity: 1;
}

/* --- Sidebar --- */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: rgba(15, 16, 21, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 16px;
  height: calc(100vh - 32px);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 50;
  position: relative;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* --- Sidebar Header / Brand --- */
.sidebar-header {
  margin-bottom: 28px;
  flex-shrink: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.brand-icon-container {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mindStoneGlow 3s ease-in-out infinite;
}

@keyframes mindStoneGlow {
  0% { filter: drop-shadow(0 0 4px rgba(243, 115, 33, 0.4)); }
  50% { filter: drop-shadow(0 0 12px rgba(243, 115, 33, 0.8)); }
  100% { filter: drop-shadow(0 0 4px rgba(243, 115, 33, 0.4)); }
}

.brand-icon {
  font-size: 32px;
  color: var(--color-accent-orange);
  filter: drop-shadow(0 0 8px rgba(243, 115, 33, 0.7)) drop-shadow(0 0 16px rgba(243, 115, 33, 0.4));
}

.brand-text-container {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow: 0 0 8px rgba(243, 115, 33, 0.8), 0 0 16px rgba(243, 115, 33, 0.4);
  line-height: 1.2;
}

.brand-name strong {
  color: var(--color-accent-orange);
  font-weight: 800;
}

.brand-vol-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.brand-vol-prefix {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-vol-number {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-accent-orange);
  letter-spacing: 0.05em;
}

/* --- Sidebar Navigation --- */
.sidebar-nav {
  flex: 1;
}

/* --- Menu Section --- */
.menu-section {
  margin-bottom: 24px;
}

.menu-section-title {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  margin-bottom: 8px;
}

.section-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent-orange);
  box-shadow: 0 0 8px var(--color-accent-orange);
  margin-right: 8px;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-accent-orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(243, 115, 33, 0.4);
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(243, 115, 33, 0.15), transparent);
  margin-left: 12px;
}

.section-chevron {
  color: var(--color-text-muted);
  margin-left: 8px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.menu-section.collapsed .section-chevron {
  transform: rotate(-90deg);
}

.menu-section.collapsed .menu-list {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

/* --- Menu List --- */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  text-align: left;
  position: relative;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-primary);
}

.menu-item.active {
  border: 1px solid rgba(243, 115, 33, 0.25);
  background: rgba(243, 115, 33, 0.1);
  color: var(--color-accent-orange);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(243, 115, 33, 0.08);
}

.menu-icon {
  font-size: 16px;
}

.menu-item.active .menu-icon {
  filter: drop-shadow(0 0 4px rgba(243, 115, 33, 0.6));
}

.menu-text {
  flex: 1;
}

/* RAG Badge */
.menu-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-item.active .menu-badge {
  background: rgba(243, 115, 33, 0.2);
  color: var(--color-accent-orange);
  border: 1px solid rgba(243, 115, 33, 0.3);
}

/* --- Sidebar Footer --- */
.sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-text {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-align: center;
  margin-top: 20px;
  opacity: 0.8;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.header {
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.topbar-actions {
  position: absolute;
  right: 32px;
  display: flex;
  align-items: center;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
}

.status-indicators {
  display: flex;
  gap: 16px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-bg-card);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.status-badge.connected {
  color: var(--color-text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.status-badge.connected .status-dot {
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: tailwind-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes tailwind-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px;
  position: relative;
  overflow-y: auto;
}

/* Content area scrollbar */
.content-area::-webkit-scrollbar {
  width: 6px;
}
.content-area::-webkit-scrollbar-track {
  background: transparent;
}
.content-area::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}
.content-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

/* Decorative Background element */
.bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 800px;
  background: radial-gradient(ellipse at left center, rgba(243, 115, 33, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════
   AI Analysis Page (기존 Hero)
   ═══════════════════════════════════════ */
.ai-analysis-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-section {
  text-align: center;
  margin-bottom: 40px;
  z-index: 1;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.search-container {
  width: 100%;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 6px 16px;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--color-accent-orange);
  box-shadow: 0 0 0 1px var(--color-accent-orange), 0 0 20px rgba(243, 115, 33, 0.1);
}

.search-icon {
  color: var(--color-text-secondary);
  font-size: 18px;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 15px;
  padding: 12px 0;
  font-family: var(--font-family);
  outline: none;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-button {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background-color: var(--color-bg-hover);
  color: var(--color-accent-orange);
}

.search-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Material Symbols Integration for Icons */
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
}


/* ═══════════════════════════════════════
   Page Transition
   ═══════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-enter {
  animation: fadeInUp 0.4s ease-out forwards;
}


/* ═══════════════════════════════════════
   Dashboard Page
   ═══════════════════════════════════════ */
.dashboard-page {
  animation: fadeInUp 0.4s ease-out;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-orange), rgba(243, 115, 33, 0.3));
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  border-color: rgba(243, 115, 33, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-accent-orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-orange);
}

.stat-card-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
}

.stat-card-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.dashboard-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-section-title .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-accent-orange);
}

.dashboard-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.dashboard-empty .material-symbols-outlined {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}


/* ═══════════════════════════════════════
   Data Center Page (통합 데이터 센터)
   ═══════════════════════════════════════ */
.data-center-page {
  animation: fadeInUp 0.4s ease-out;
}

.dc-page-header {
  margin-bottom: 32px;
}

.dc-page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dc-page-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.dc-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.dc-category-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.dc-category-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(243, 115, 33, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.dc-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.dc-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(243, 115, 33, 0.15), rgba(243, 115, 33, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-orange);
  font-size: 24px;
}

.dc-card-title {
  font-size: 17px;
  font-weight: 700;
}

.dc-card-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-left: auto;
}

.dc-card-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Upload Area */
.dc-upload-area {
  border: 2px dashed rgba(243, 115, 33, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(243, 115, 33, 0.02);
}

.dc-upload-area:hover {
  border-color: rgba(243, 115, 33, 0.4);
  background: rgba(243, 115, 33, 0.05);
}

.dc-upload-area.drag-over {
  border-color: var(--color-accent-orange);
  background: rgba(243, 115, 33, 0.1);
  box-shadow: 0 0 20px rgba(243, 115, 33, 0.15);
}

.dc-upload-icon {
  font-size: 36px;
  color: var(--color-accent-orange);
  margin-bottom: 12px;
  opacity: 0.7;
}

.dc-upload-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.dc-upload-hint {
  font-size: 12px;
  color: var(--color-text-muted);
}

.dc-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Upload Progress */
.dc-upload-progress {
  margin-top: 16px;
  display: none;
}

.dc-upload-progress.active {
  display: block;
}

.dc-progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.dc-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-orange), #ff9800);
  border-radius: 6px;
  width: 0%;
  transition: width 0.3s ease;
}

.dc-progress-text {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

/* Upload Result */
.dc-upload-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.15);
  display: none;
}

.dc-upload-result.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.dc-upload-result.error {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.15);
}

.dc-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.dc-result-header .material-symbols-outlined {
  font-size: 18px;
}

.dc-result-header.success {
  color: var(--color-success);
}

.dc-result-header.error {
  color: var(--color-error);
}

.dc-result-details {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ═══════════════════════════════════════
   Operating Income Page (운영이익)
   ═══════════════════════════════════════ */
.oi-page {
  animation: fadeInUp 0.4s ease-out;
}

/* Controls bar */
.oi-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.oi-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 400px;
}

.oi-search-input {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 40px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: var(--font-family);
  outline: none;
  transition: all 0.3s ease;
}

.oi-search-input:focus {
  border-color: var(--color-accent-orange);
  box-shadow: 0 0 0 1px var(--color-accent-orange), 0 0 12px rgba(243, 115, 33, 0.1);
}

.oi-search-input::placeholder {
  color: var(--color-text-muted);
}

.oi-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Autocomplete dropdown */
.oi-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.oi-autocomplete.active {
  display: block;
}

.oi-autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all 0.15s ease;
  border-bottom: 1px solid var(--color-border-subtle);
}

.oi-autocomplete-item:last-child {
  border-bottom: none;
}

.oi-autocomplete-item:hover {
  background: var(--color-bg-hover);
  color: var(--color-accent-orange);
}

.oi-autocomplete-item .school-name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.oi-autocomplete-item .school-code {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-left: 8px;
}

/* Select dropdowns */
.oi-select {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 32px 10px 14px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: var(--font-family);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e6270' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.3s ease;
  min-width: 140px;
}

.oi-select:focus {
  border-color: var(--color-accent-orange);
}

.oi-select option {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
}

.oi-unit-label {
  margin-left: auto;
  font-size: 13px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Selected school info */
.oi-school-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(243, 115, 33, 0.05);
  border: 1px solid rgba(243, 115, 33, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.oi-school-info-icon {
  color: var(--color-accent-orange);
  font-size: 20px;
}

.oi-school-info-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.oi-school-info-code {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: 8px;
}

/* Data Table */
.oi-table-container {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
}

.oi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.oi-table th,
.oi-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
}

.oi-table thead {
  background: linear-gradient(180deg, rgba(243, 115, 33, 0.08), rgba(243, 115, 33, 0.03));
}

.oi-table thead th {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent-orange);
  border-bottom: 1px solid rgba(243, 115, 33, 0.15);
  white-space: nowrap;
}

.oi-table tbody tr {
  transition: background 0.15s ease;
}

.oi-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.oi-table td {
  color: var(--color-text-secondary);
}

.oi-table td.item-name {
  color: var(--color-text-primary);
  font-weight: 500;
  padding-left: 28px;
}

.oi-table td.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Total row */
.oi-table tr.total-row {
  background: rgba(243, 115, 33, 0.04);
  border-top: 1px solid rgba(243, 115, 33, 0.15);
}

.oi-table tr.total-row td {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 14px;
}

.oi-table tr.total-row td.amount {
  color: var(--color-accent-orange);
}

/* Result row (감가상각비, 운영이익) */
.oi-table tr.result-row {
  background: rgba(243, 115, 33, 0.06);
  border-top: 2px solid rgba(243, 115, 33, 0.2);
}

.oi-table tr.result-row td {
  font-weight: 700;
  font-size: 14px;
  padding: 14px 16px;
}

.oi-table tr.result-row td.amount {
  color: var(--color-accent-orange);
  font-size: 16px;
}

.oi-table tr.result-row td.profit-positive {
  color: var(--color-success);
}

.oi-table tr.result-row td.profit-negative {
  color: var(--color-error);
}

/* Section header within table */
.oi-table .section-header td {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 13px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--color-border);
}

/* No data state */
.oi-no-data {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
}

.oi-no-data .material-symbols-outlined {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.2;
  color: var(--color-accent-orange);
}

.oi-no-data-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.oi-no-data-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ═══════════════════════════════════════
   Asset Pages (기본재산 관리 - 플레이스홀더)
   ═══════════════════════════════════════ */
.asset-page {
  animation: fadeInUp 0.4s ease-out;
}

.asset-coming-soon {
  text-align: center;
  padding: 100px 20px;
}

.asset-coming-soon .material-symbols-outlined {
  font-size: 64px;
  color: var(--color-accent-orange);
  opacity: 0.3;
  margin-bottom: 20px;
}

.asset-coming-soon h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.asset-coming-soon p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════ */
.text-orange { color: var(--color-accent-orange); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.fw-700 { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(243, 115, 33, 0.2);
  border-top-color: var(--color-accent-orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================
   Login Modal
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 32rem; /* 512px */
  margin: 0 16px;
  background-color: #1a1b23;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(243, 115, 33, 0.15); /* orange glow */
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.sidebar-header {
  margin-bottom: 28px;
  flex-shrink: 0;
}

/* --- Main Shortcut Button --- */
.main-shortcut-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(243, 115, 33, 0.3);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.main-shortcut-btn:hover {
  background-color: rgba(243, 115, 33, 0.1);
  border: 1px solid rgba(243, 115, 33, 0.6);
  box-shadow: 0 0 15px rgba(243, 115, 33, 0.1);
}

.shortcut-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent-orange);
  color: var(--color-accent-orange);
  flex-shrink: 0;
}

.shortcut-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-icon {
  color: var(--color-accent-orange);
}

.modal-close-btn {
  background: none;
  border: none;
  color: #5e6270;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-desc {
  font-size: 0.875rem;
  color: #a0a5b5;
  margin-bottom: 16px;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a0a5b5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  background-color: #0f1015;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #ffffff;
  transition: all 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-accent-orange);
  box-shadow: 0 0 0 1px var(--color-accent-orange);
}

.login-error {
  font-size: 0.75rem;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.login-error.hidden {
  display: none;
}

.login-submit-btn {
  width: 100%;
  padding: 12px 24px;
  background-color: var(--color-accent-orange);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(243, 115, 33, 0.3);
}

.login-submit-btn:hover {
  background-color: #e3681c;
  box-shadow: 0 0 30px rgba(243, 115, 33, 0.5);
}

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

/* ═══════════════════════════════════════════════════
   교육용 토지 — 지도 페이지
   ═══════════════════════════════════════════════════ */

.land-page {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  height: calc(100vh - 100px);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

/* 좌측 패널 */
.land-sidebar {
  background: rgba(15, 16, 21, 0.8);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.land-sidebar::-webkit-scrollbar { width: 4px; }
.land-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.land-sidebar-header { display: flex; align-items: center; gap: 8px; }
.land-sidebar-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--color-accent-orange);
  margin: 0;
}
.land-sidebar-title .material-symbols-outlined { font-size: 20px; }

/* 연도 탭 */
.land-year-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.land-year-tab {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted); cursor: pointer;
  font-size: 12px; transition: all 0.2s; flex: 1;
}
.land-year-tab:hover { background: rgba(255,255,255,0.06); color: var(--color-text-primary); }
.land-year-tab.active {
  background: rgba(243, 115, 33, 0.1);
  border-color: rgba(243, 115, 33, 0.3);
  color: var(--color-accent-orange);
}
.land-year-label { font-weight: 700; font-size: 14px; }
.land-year-count { font-size: 10px; opacity: 0.7; margin-top: 2px; }

/* 필터 */
.land-filter-section { display: flex; flex-direction: column; gap: 6px; }
.land-filter-label { font-size: 11px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.land-select {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  background: var(--color-bg-input); border: 1px solid var(--color-border);
  color: var(--color-text-primary); font-size: 13px;
  appearance: none; cursor: pointer;
}
.land-select-sm { flex: 1; }

/* 검색 */
.land-search-wrapper { position: relative; }
.land-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--color-text-muted); }
.land-search-input {
  width: 100%; padding: 8px 12px 8px 36px; border-radius: 8px;
  background: var(--color-bg-input); border: 1px solid var(--color-border);
  color: var(--color-text-primary); font-size: 13px; outline: none;
}
.land-search-input:focus { border-color: rgba(243, 115, 33, 0.4); }

/* 학교 목록 */
.land-school-list {
  max-height: 300px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.land-school-item {
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  transition: all 0.15s; border: 1px solid transparent;
}
.land-school-item:hover { background: rgba(255,255,255,0.04); }
.land-school-item.active {
  background: rgba(243, 115, 33, 0.08);
  border-color: rgba(243, 115, 33, 0.2);
}
.land-school-name { font-size: 13px; font-weight: 600; color: var(--color-text-primary); }
.land-school-meta { display: flex; gap: 8px; font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.land-school-empty { padding: 16px; text-align: center; color: var(--color-text-muted); font-size: 12px; }

.land-geo-badge {
  padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600;
}
.land-geo-badge.has-coords { background: rgba(34,197,94,0.1); color: #22c55e; }
.land-geo-badge.no-coords { background: rgba(239,68,68,0.1); color: #ef4444; }

/* 비교 모드 */
.land-compare-controls { display: flex; gap: 8px; }
.land-btn-compare {
  padding: 8px 14px; border-radius: 8px;
  background: rgba(243, 115, 33, 0.1); border: 1px solid rgba(243, 115, 33, 0.3);
  color: var(--color-accent-orange); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.land-btn-compare:hover:not(:disabled) { background: rgba(243, 115, 33, 0.2); }
.land-btn-compare:disabled { opacity: 0.4; cursor: not-allowed; }

/* 중앙 지도 */
.land-map-area { position: relative; overflow: hidden; }
.land-map-container {
  width: 100%; height: 100%; background: #0d0d0d;
}
.land-map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--color-text-muted); gap: 12px; z-index: 5;
  background: rgba(6,7,10,0.9);
}
.land-map-placeholder .material-symbols-outlined { font-size: 48px; opacity: 0.3; }
.land-map-placeholder p { text-align: center; font-size: 13px; line-height: 1.6; }

/* 범례 */
.land-legend {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(15,16,21,0.9); backdrop-filter: blur(8px);
  border: 1px solid var(--color-border); border-radius: 12px;
  padding: 10px 14px; z-index: 10;
  display: block; opacity: 1; visibility: visible;
}
.land-legend-title { font-size: 10px; font-weight: 700; color: var(--color-text-muted); margin-bottom: 6px; letter-spacing: 0.5px; }
.land-legend-items { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.land-legend-item {
  display: flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: 6px; font-size: 11px; color: var(--color-text-secondary);
  cursor: pointer; transition: all 0.15s; border: none; background: none;
}
.land-legend-item:hover { background: rgba(255,255,255,0.05); }
.land-legend-item.disabled { opacity: 0.3; }
.land-legend-item.static { cursor: default; }
.land-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.land-legend-separator { width: 1px; height: 16px; background: var(--color-border); margin: 0 4px; }
.land-legend-line { width: 16px; height: 2px; border-radius: 1px; }
.land-legend-line.solid { background: var(--color-text-muted); }
.land-legend-line.dashed { border-top: 2px dashed var(--color-text-muted); }

/* 우측 상세 패널 */
.land-detail {
  background: rgba(15, 16, 21, 0.8);
  border-left: 1px solid var(--color-border);
  overflow-y: auto; padding: 20px 16px;
  display: flex; flex-direction: column;
}
.land-detail::-webkit-scrollbar { width: 4px; }
.land-detail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.land-detail-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.land-detail-title { font-size: 15px; font-weight: 700; color: var(--color-text-primary); margin: 0; }
.land-detail-close {
  display: none !important;
}
.land-detail-content { flex: 1; }
.land-detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 200px; color: var(--color-text-muted); gap: 8px; text-align: center;
}
.land-detail-empty .material-symbols-outlined { font-size: 40px; opacity: 0.3; }
.land-detail-empty p { font-size: 13px; line-height: 1.6; }

/* 요약 카드 */
.land-summary-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.land-summary-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--color-border);
  border-radius: 10px; padding: 10px 12px;
}
.land-summary-label { font-size: 10px; color: var(--color-text-muted); display: block; }
.land-summary-value { font-size: 16px; font-weight: 700; color: var(--color-text-primary); display: block; margin-top: 2px; }
.land-summary-value.warn { color: var(--color-warning); }

/* 요약 섹션 */
.land-summary-section { margin-bottom: 16px; }
.land-summary-section h4 {
  font-size: 11px; font-weight: 700; color: var(--color-text-muted);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* 좌표 진행 바 */
.land-geo-progress-bar {
  height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden;
}
.land-geo-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--color-accent-orange), #FFC478);
  border-radius: 3px; transition: width 0.5s;
}
.land-geo-progress-text { font-size: 11px; color: var(--color-text-muted); margin-top: 4px; }

/* 지목 바 */
.land-jimok-bars { display: flex; flex-direction: column; gap: 4px; }
.land-jimok-bar-row { display: flex; align-items: center; gap: 6px; }
.land-jimok-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.land-jimok-name { font-size: 11px; width: 50px; flex-shrink: 0; color: var(--color-text-secondary); }
.land-jimok-bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.04); border-radius: 3px; overflow: hidden; }
.land-jimok-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.land-jimok-pct { font-size: 11px; color: var(--color-text-muted); width: 44px; text-align: right; flex-shrink: 0; font-family: var(--font-family); font-weight: 500; }

/* 교지 구분 */
.land-zone-list { display: flex; flex-direction: column; gap: 4px; }
.land-zone-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.land-zone-name { font-size: 12px; color: var(--color-text-secondary); }
.land-zone-value { font-size: 13px; color: var(--color-text-primary); font-weight: 600; font-family: var(--font-family); letter-spacing: -0.02em; }

/* 필지 목록 */
.land-parcel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.land-parcel-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 170px;
}
.land-parcel-search-input {
  width: 100%;
  padding: 5px 28px 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--color-text-primary);
  outline: none;
  transition: all 0.2s ease;
}
.land-parcel-search-input:focus {
  border-color: var(--color-accent-orange);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 8px rgba(243, 115, 33, 0.25);
}
.land-parcel-search-icon {
  position: absolute;
  right: 6px;
  font-size: 16px !important;
  color: var(--color-text-muted);
  pointer-events: none;
}

.land-parcel-list { display: flex; flex-direction: column; gap: 4px; }
.land-parcel-item {
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s;
}
.land-parcel-item:hover { background: rgba(255,255,255,0.03); border-color: var(--color-border); }
.land-parcel-row { display: flex; justify-content: space-between; align-items: center; }
.land-parcel-jimok { font-size: 12px; font-weight: 700; }
.land-parcel-area { font-size: 13px; color: var(--color-text-primary); font-weight: 700; font-family: var(--font-family); letter-spacing: -0.02em; }
.land-parcel-addr { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.land-parcel-meta { display: flex; gap: 6px; margin-top: 4px; }
.land-parcel-source {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 600;
}
.land-parcel-source.exact { background: rgba(34,197,94,0.1); color: #22c55e; }
.land-parcel-source.similar { background: rgba(33,150,243,0.1); color: #2196f3; }
.land-parcel-source.cadastral { background: rgba(156,39,176,0.1); color: #9c27b0; }
.land-parcel-source.keyword { background: rgba(255,152,0,0.1); color: #ff9800; }
.land-parcel-source.estimated { background: rgba(255,193,7,0.1); color: #ffc107; }
.land-parcel-source.none { background: rgba(158,158,158,0.1); color: #9e9e9e; }
.land-parcel-zone { font-size: 10px; color: var(--color-text-muted); }
.land-parcel-more { text-align: center; padding: 8px; font-size: 11px; color: var(--color-text-muted); }

/* 필지 상세 */
.land-parcel-detail { display: flex; flex-direction: column; gap: 8px; }
.land-back-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.18), rgba(255, 138, 0, 0.28));
  border: 1px solid var(--color-primary, #FF6B00);
  border-radius: 8px; color: var(--color-primary-light, #FFA04D); font-size: 13px; font-weight: 700;
  cursor: pointer; margin-bottom: 12px; width: 100%; transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
  flex-wrap: wrap; word-break: keep-all; line-height: 1.4; text-align: center;
}
.land-back-btn-school { font-size: 12px; opacity: 0.85; width: 100%; }
.land-back-btn-label { width: 100%; }
.land-back-btn:hover {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.35), rgba(255, 138, 0, 0.5));
  color: #FFFFFF;
  border-color: #FF8A00;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
  transform: translateY(-1px);
}
.land-back-btn .material-symbols-outlined { font-size: 18px; color: var(--color-primary, #FF6B00); }
.land-back-btn:hover .material-symbols-outlined { color: #FFFFFF; }

.land-detail-field {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.land-detail-field label { font-size: 11px; color: var(--color-text-muted); flex-shrink: 0; width: 80px; }
.land-detail-field span { font-size: 12px; color: var(--color-text-primary); text-align: right; word-break: break-all; }
.land-detail-field .warn { color: var(--color-warning); }
.land-raw-addr { color: var(--color-text-muted) !important; font-style: italic; }
.land-mono { font-family: var(--font-family); font-size: 12px !important; font-weight: 600; letter-spacing: -0.01em; }

/* 비교 모드 */
.land-compare-summary { display: flex; flex-direction: column; gap: 12px; }
.land-compare-cards { display: flex; flex-direction: column; gap: 8px; }
.land-compare-card {
  display: grid; grid-template-columns: 32px 60px 1fr auto;
  align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--color-border);
}
.land-compare-card.acquired { background: rgba(95,191,127,0.05); border-color: rgba(95,191,127,0.2); }
.land-compare-card.disposed { background: rgba(224,96,58,0.05); border-color: rgba(224,96,58,0.2); }
.land-compare-card.changed { background: rgba(255,196,120,0.05); border-color: rgba(255,196,120,0.2); }
.land-compare-icon .material-symbols-outlined { font-size: 20px; }
.land-compare-card.acquired .material-symbols-outlined { color: #5FBF7F; }
.land-compare-card.disposed .material-symbols-outlined { color: #E0603A; }
.land-compare-card.changed .material-symbols-outlined { color: #FFC478; }
.land-compare-label { font-size: 12px; color: var(--color-text-muted); }
.land-compare-value { font-size: 14px; font-weight: 700; color: var(--color-text-primary); }
.land-compare-area { font-size: 11px; color: var(--color-text-muted); text-align: right; font-family: ui-monospace, monospace; }

.land-compare-legend { display: flex; gap: 16px; padding-top: 8px; }
.land-compare-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--color-text-muted); }
.land-compare-legend-item .dot { width: 8px; height: 8px; border-radius: 50%; }

.land-loading-mini { padding: 12px; text-align: center; color: var(--color-text-muted); font-size: 12px; }


/* ═══════════════════════════════════════════════════
   대시보드 — 교육용 토지 섹션
   ═══════════════════════════════════════════════════ */

.dash-land-section { display: flex; flex-direction: column; gap: 16px; }

.dash-land-year-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-land-year-tab {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.03); border: 1px solid var(--color-border);
  color: var(--color-text-muted); cursor: pointer; transition: all 0.2s;
}
.dash-land-year-tab:hover { background: rgba(255,255,255,0.06); }
.dash-land-year-tab.active {
  background: rgba(243, 115, 33, 0.1);
  border-color: rgba(243, 115, 33, 0.3);
  color: var(--color-accent-orange);
}

.dash-land-total {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.dash-land-total-label { font-size: 13px; color: var(--color-text-muted); }
.dash-land-total-value { font-size: 28px; font-weight: 800; color: var(--color-accent-orange); font-family: ui-monospace, monospace; }
.dash-land-total-sub { font-size: 12px; color: var(--color-text-muted); }

/* 지목 구성 띠 */
.dash-jimok-band {
  display: flex; height: 20px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--color-border);
}
.dash-jimok-segment { min-width: 2px; transition: width 0.5s; }
.dash-jimok-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-jimok-legend-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--color-text-secondary); }
.dash-jimok-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.dash-land-desc { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }

/* 좌표 진행 */
.dash-geo-progress { }
.dash-geo-header { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.dash-geo-bar { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.dash-geo-fill { height: 100%; background: linear-gradient(90deg, var(--color-accent-orange), #FFC478); border-radius: 4px; transition: width 0.8s ease; }

/* 지표 카드 */
.dash-land-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-metric-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--color-border);
  border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dash-metric-card .material-symbols-outlined { font-size: 24px; color: var(--color-accent-orange); opacity: 0.7; }
.dash-metric-label { font-size: 10px; color: var(--color-text-muted); }
.dash-metric-value { font-size: 16px; font-weight: 700; color: var(--color-text-primary); font-family: ui-monospace, monospace; }
.dash-metric-value.warn { color: var(--color-warning); }

.dash-section-sub-title { font-size: 12px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* 교지 구분 카드 */
.dash-zone-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-zone-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--color-border);
  border-radius: 10px; padding: 12px; text-align: center;
}
.dash-zone-name { font-size: 11px; color: var(--color-text-muted); margin-bottom: 4px; }
.dash-zone-value { font-size: 14px; font-weight: 700; color: var(--color-text-primary); font-family: ui-monospace, monospace; }
.dash-zone-pct { font-size: 11px; color: var(--color-accent-orange); }

/* 상위 목록 */
.dash-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-top-section h4 {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--color-text-muted);
  margin-bottom: 8px;
}
.dash-top-section h4 .material-symbols-outlined { font-size: 16px; }
.dash-top-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
  transition: all 0.15s;
}
.dash-top-item:hover { background: rgba(243, 115, 33, 0.06); }
.dash-top-name { font-size: 12px; color: var(--color-text-secondary); }
.dash-top-value { font-size: 12px; color: var(--color-text-primary); font-weight: 600; font-family: ui-monospace, monospace; }
.dash-top-empty { font-size: 12px; color: var(--color-text-muted); padding: 8px; text-align: center; }


/* ═══════════════════════════════════════════════════
   데이터 센터 — 교육용 토지 확장
   ═══════════════════════════════════════════════════ */

.dc-card-icon.land-icon .material-symbols-outlined {
  color: #2d8a4e;
}

.dc-land-sub-title {
  font-size: 12px; font-weight: 700; color: var(--color-text-muted);
  margin: 18px 0 10px; display: flex; align-items: center; gap: 6px;
}

.dc-land-years-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.dc-land-year-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.dc-land-year-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.dc-land-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-land-year-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-accent-orange);
  white-space: nowrap;
}

.dc-land-year-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dc-btn-action-download {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dc-btn-action-download:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  color: #ffffff;
}

.dc-btn-action-download .material-symbols-outlined { font-size: 14px; }

.dc-btn-action-delete {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dc-btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
}

.dc-btn-action-delete .material-symbols-outlined { font-size: 14px; }

.dc-land-year-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dc-year-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.dc-year-badge.highlight {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-weight: 600;
}

.dc-year-badge.sub {
  font-size: 10px;
  color: var(--color-text-muted);
}

.dc-btn-download-sm {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 4px;
  color: #60a5fa; font-size: 11px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: all 0.2s ease;
}
.dc-btn-download-sm:hover {
  background: rgba(59, 130, 246, 0.3); color: #ffffff;
}

.dc-land-history-table { overflow-x: auto; }
.dc-land-history-table table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.dc-land-history-table th {
  text-align: left; padding: 8px 10px; font-weight: 600;
  color: var(--color-text-muted); border-bottom: 1px solid var(--color-border);
  font-size: 11px;
}
.dc-land-history-table td {
  padding: 6px 10px; color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.dc-land-status {
  font-size: 10px; padding: 2px 8px; border-radius: 4px; font-weight: 600;
}
.dc-land-status.success { background: rgba(34,197,94,0.1); color: #22c55e; }
.dc-land-status.error { background: rgba(239,68,68,0.1); color: #ef4444; }
.dc-land-status.pending { background: rgba(245,158,11,0.1); color: #f59e0b; }

.dc-land-rules {
  margin-top: 16px; padding: 14px; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--color-border);
}
.dc-land-rules h4 {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--color-accent-orange);
  margin-bottom: 8px;
}
.dc-land-rules h4 .material-symbols-outlined { font-size: 16px; }
.dc-land-rules ul {
  list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px;
}
.dc-land-rules li {
  font-size: 11px; color: var(--color-text-muted); line-height: 1.5;
  padding-left: 12px; position: relative;
}
.dc-land-rules li::before {
  content: '•'; position: absolute; left: 0; color: var(--color-accent-orange);
}
.dc-land-rules li strong { color: var(--color-text-secondary); }


/* ═══════════════════════════════════════════════════
   반응형 — 1024px 이하 1단 전환
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .land-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 400px auto;
    height: auto;
  }
  .land-sidebar {
    border-right: none; border-bottom: 1px solid var(--color-border);
    max-height: 300px;
  }
  .land-detail {
    border-left: none; border-top: 1px solid var(--color-border);
    max-height: 400px;
  }
  .dash-land-metrics { grid-template-columns: 1fr 1fr; }
  .dash-zone-cards { grid-template-columns: 1fr 1fr; }
  .dash-top-grid { grid-template-columns: 1fr; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .land-year-tab,
  .land-school-item,
  .land-parcel-item,
  .land-legend-item,
  .dash-land-year-tab,
  .dash-top-item,
  .land-geo-progress-fill,
  .dash-geo-fill,
  .dash-jimok-segment {
    transition: none !important;
  }
}
