/* CHO OS — Desktop / Folder / App Windows (intro·desktop·folder·about/skills/career/research) */
/* =========================================
   DESKTOP ROOT
========================================= */
.desktop-root {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* =========================================
   TOP BAR
========================================= */
.topbar {
  position: relative;
  z-index: 50;
  height: clamp(28px, 3.2vh, 38px);
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(10px, 1.45vw, 18px);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--ink-200);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.topbar-slim { height: 38px; }

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
  min-width: 0;
}
.topbar-left { flex: 1 1 auto; overflow: hidden; }
.topbar-right { flex: 0 0 auto; }
.topbar-logo {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topbar-title {
  font-weight: 700;
  letter-spacing: 0;
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--ink-100);
  white-space: nowrap;
}
.topbar-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: clamp(0px, 0.5vw, 6px);
  overflow: hidden;
}
.topbar-menu-item {
  padding: 4px clamp(6px, 0.8vw, 10px);
  border-radius: 6px;
  font-size: clamp(11px, 1vw, 12.5px);
  color: var(--ink-300);
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
  white-space: nowrap;
}
.topbar-menu-item:hover { background: rgba(15, 23, 42, 0.06); color: var(--ink-100); }
.topbar-icon,
.topbar-theme-toggle {
  width: clamp(22px, 2.2vw, 28px);
  height: clamp(22px, 2.2vw, 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: clamp(10.5px, 1vw, 12px);
  color: var(--ink-300);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.topbar-icon:hover,
.topbar-theme-toggle:hover {
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.32);
}
.topbar-theme-toggle:active { transform: scale(0.94); }
.topbar-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10.5px, 1vw, 12px);
  color: var(--ink-200);
  font-weight: 500;
  white-space: nowrap;
}

html[data-theme='dark'] .topbar {
  background: rgba(10, 10, 10, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

html[data-theme='dark'] .topbar-menu-item:hover,
html[data-theme='dark'] .topbar-icon:hover,
html[data-theme='dark'] .topbar-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-aspect-ratio: 16/9) {
  .topbar {
    height: clamp(26px, 2.7vh, 34px);
    background: rgba(255, 255, 255, 0.2);
  }
  html[data-theme='dark'] .topbar { background: rgba(10, 10, 10, 0.82); }
}

/* =========================================
   DESKTOP AREA
========================================= */
.desktop-area {
  position: relative;
  flex: 1;
  z-index: 1;
  padding: 32px 32px 110px;
  overflow: hidden;
}

/* Right column desktop icons */
.desktop-icons {
  position: absolute;
  top: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 92px;
  padding: 10px 6px;
  border-radius: 14px;
  transition: all 0.18s var(--easing);
  cursor: pointer;
}
.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  transform: translateY(-2px);
}
.desktop-icon:active { transform: translateY(0) scale(0.97); }

.desktop-icon-img {
  --icon-color: #a78bfa;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  background: linear-gradient(145deg, var(--icon-color), color-mix(in srgb, var(--icon-color) 70%, white));
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--icon-color) 40%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 6px rgba(0, 0, 0, 0.08);
}
.desktop-icon-img::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  pointer-events: none;
}
.desktop-icon-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-200);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* shortcut icons — now use sc-parent / sc-card (shortcut-cards.css) */
.desktop-icon-shortcut {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   WELCOME WIDGET
========================================= */
.welcome-widget {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 420px);
  max-width: 600px;
  padding: 26px 28px;
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow:
    0 24px 60px rgba(168, 139, 250, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  z-index: 1;
}
.welcome-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), transparent 40%, rgba(244, 114, 182, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.welcome-widget-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
  font-weight: 700;
}
.welcome-widget-profile {
  display: flex;
  align-items: center;
  gap: 22px;
}
.welcome-widget-photo {
  width: 110px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
.welcome-widget-info { flex: 1; min-width: 0; }
.welcome-widget-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-100);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 4px;
}
.welcome-widget-title span {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.welcome-widget-role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-300);
  margin: 0 0 3px;
}
.welcome-widget-major {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-400);
  margin: 0 0 9px;
}
.welcome-widget-desc {
  font-size: 13px;
  color: var(--ink-300);
  margin: 0 0 13px;
  line-height: 1.55;
}
.welcome-widget-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.welcome-widget-tags span {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-strong);
  color: var(--ink-200);
}

/* responsive: stack photo on narrow screens */
@media (max-width: 540px) {
  .welcome-widget { width: calc(100% - 32px); padding: 20px 18px; }
  .welcome-widget-profile { flex-direction: column; align-items: flex-start; }
  .welcome-widget-photo { width: 80px; }
  .welcome-widget-title { font-size: 22px; }
}

/* =========================================
   DOCK
========================================= */
.dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.12),
    0 4px 14px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.dock-list {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dock-divider {
  width: 1px;
  height: 36px;
  background: rgba(15, 23, 42, 0.1);
  align-self: center;
  margin: 0 4px;
}
.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--easing);
}
.dock-icon {
  --icon-color: #a78bfa;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  background: linear-gradient(145deg, var(--icon-color), color-mix(in srgb, var(--icon-color) 70%, white));
  box-shadow:
    0 6px 18px color-mix(in srgb, var(--icon-color) 40%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08);
  position: relative;
}
.dock-icon::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  pointer-events: none;
}
.dock-item:hover { transform: translateY(-8px) scale(1.08); }
.dock-item:hover .dock-tooltip { opacity: 1; transform: translate(-50%, -4px); }
.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s var(--easing);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

/* =========================================
   FOLDER OVERLAY (Projects window)
========================================= */
.folder-overlay,
.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--easing);
}
.folder-overlay.open,
.app-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.folder-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 245, 255, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.folder-window,
.app-window {
  position: relative;
  width: min(1080px, 92vw);
  max-height: 82vh;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 40px 80px rgba(76, 29, 149, 0.2),
    0 12px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.28s var(--easing);
}
.folder-window {
  width: min(1280px, 94vw);
  height: min(900px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  min-height: 0;
}
.folder-overlay.open .folder-window,
.app-overlay.open .app-window {
  transform: translateY(0) scale(1);
}

/* Folder toolbar */
.folder-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.folder-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  flex: 1;
  min-width: 220px;
  transition: all 0.18s var(--easing);
}
.folder-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.folder-search i { color: var(--ink-500); font-size: 12px; }
.folder-search input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  font-size: 13px;
  color: var(--ink-100);
}
.folder-search input::placeholder { color: var(--ink-500); }

.folder-filters { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }

.folder-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-500);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.folder-back-btn:hover {
  background: var(--surface-2, rgba(0,0,0,0.06));
  color: var(--ink-900);
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-300);
  cursor: pointer;
  transition: all 0.18s var(--easing);
}
.chip:hover { background: white; color: var(--ink-100); }
.chip.active {
  background: var(--grad-accent);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Folder grid */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  padding: 24px 24px 36px;
  overflow-x: hidden;
  overflow-y: scroll;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.folder-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px 24px;
  color: var(--ink-400, #94a3b8);
  text-align: center;
}
.folder-empty i {
  font-size: 32px;
  opacity: 0.5;
}
.folder-empty p {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.folder-empty span {
  font-size: 13px;
  opacity: 0.7;
}

.folder-grid::-webkit-scrollbar {
  width: 10px;
}
.folder-grid::-webkit-scrollbar-track {
  background: transparent;
}
.folder-grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
.folder-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.58);
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* Project card */
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 365px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.22s var(--easing);
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 50px rgba(76, 29, 149, 0.18),
    0 6px 14px rgba(15, 23, 42, 0.08);
  border-color: rgba(196, 181, 253, 0.6);
}
.project-card.is-hidden { display: none; }

.project-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  height: clamp(145px, 11vw, 190px);
  min-height: 145px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: white;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background-color: rgba(248, 250, 252, 0.84);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.project-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 40%, rgba(0, 0, 0, 0.12) 100%);
}
.badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: white;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.project-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 16px 18px 18px;
}
.project-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-100);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.project-card-tagline {
  font-size: 12.5px;
  color: var(--ink-400);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-stacks { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.stack-pill {
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(168, 139, 250, 0.12);
  border: 1px solid rgba(168, 139, 250, 0.25);
  color: #6d28d9;
}
.project-card-foot {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  margin-top: auto;
  font-size: 11px;
  color: var(--ink-400);
  font-weight: 500;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.project-card-foot .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.project-card-foot .status-wip { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.project-card-foot .status-done { background: #10b981; box-shadow: 0 0 6px #10b981; }

/* App window body */
.app-window-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px 40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(196, 181, 253, 0.1) 0%, transparent 50%),
    rgba(255, 255, 255, 0.5);
}

/* =========================================
   APP WINDOW CONTENT (About / Skills / Career / Research / Contact)
========================================= */
.aw-profile-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.aw-avatar {
  width: auto;
  height: 150px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  background: var(--grad-accent);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.aw-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, transparent 50%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.aw-avatar img {
  width: auto;
  height: 150px;
  display: block;
  border-radius: 20px;
}
.aw-profile-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-100);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.aw-profile-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.aw-profile-bio {
  font-size: 13px;
  color: var(--ink-300);
  line-height: 1.6;
}

.aw-section { margin-bottom: 28px; }
.aw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.aw-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-100);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 8px;
}
.aw-sub {
  font-size: 13px;
  color: var(--ink-400);
  line-height: 1.6;
  margin: 0;
}

.aw-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.aw-row:first-child { border-top: 0; padding-top: 0; }
.aw-row-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.aw-row-value { font-size: 13.5px; color: var(--ink-200); line-height: 1.6; }

.aw-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-tag {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(168, 139, 250, 0.12);
  border: 1px solid rgba(168, 139, 250, 0.25);
  color: #6d28d9;
}

/* Skills */
.aw-skill-cat {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
.aw-skill-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.aw-skill-cat-head i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--grad-accent);
  color: white;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
.aw-skill-cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-100);
  letter-spacing: -0.01em;
}
.aw-skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.aw-skill {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(248, 245, 255, 0.7);
  border: 1px solid var(--line);
}
.aw-skill strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-100);
  margin-bottom: 2px;
}
.aw-skill span {
  font-size: 11.5px;
  color: var(--ink-400);
  line-height: 1.5;
}

/* Timeline */
.aw-timeline { position: relative; padding-left: 28px; }
.aw-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  border-radius: 2px;
}
.aw-tl-item {
  position: relative;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.aw-tl-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.aw-tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.aw-tl-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-100);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.aw-tl-desc { font-size: 12.5px; color: var(--ink-400); line-height: 1.55; }

/* Awards */
.aw-award-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aw-award-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s var(--easing), box-shadow 0.18s var(--easing);
}
.aw-award-item:hover {
  transform: translateX(3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.aw-award-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  background: var(--grad-primary);
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(85, 173, 197, 0.35);
}
.aw-award-body { flex: 1; min-width: 0; }
.aw-award-prize {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-100);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.aw-award-contest {
  font-size: 13.5px;
  color: var(--ink-300);
  line-height: 1.45;
  font-weight: 500;
}
.aw-award-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

html[data-theme='dark'] .aw-award-item {
  background: rgba(40, 40, 40, 0.98);
  border-color: rgba(255, 255, 255, 0.10);
}

.aw-award-item.has-cert {
  cursor: pointer;
}
.aw-award-item.has-cert:hover {
  border-color: rgba(85, 173, 197, 0.5);
  box-shadow: 0 8px 24px rgba(85, 173, 197, 0.18);
}
.aw-award-cert-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(85, 173, 197, 0.14);
  color: var(--accent);
  font-size: 12px;
}

/* Certificate lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--easing);
}
.cert-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.cert-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cert-lightbox-content {
  position: relative;
  max-width: min(860px, 92vw);
  max-height: 90vh;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cert-lightbox.open .cert-lightbox-content {
  transform: scale(1) translateY(0);
}
.cert-lightbox-img {
  display: block;
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.cert-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: #1e293b;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 1;
}
.cert-lightbox-close:hover {
  transform: scale(1.1);
  background: #fee2e2;
  color: #ef4444;
}

/* Research grid */
.aw-research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.aw-research-card {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(248, 245, 255, 0.7));
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.2s var(--easing);
}
.aw-research-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(168, 139, 250, 0.18);
  border-color: rgba(168, 139, 250, 0.35);
}
.aw-research-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-100);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.aw-research-card p {
  font-size: 12.5px;
  color: var(--ink-400);
  margin: 0;
  line-height: 1.55;
}

/* Contact */
.aw-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.aw-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.2s var(--easing);
}
.aw-contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 139, 250, 0.4);
  box-shadow: 0 12px 28px rgba(168, 139, 250, 0.18);
}
.aw-contact-card i {
  font-size: 22px;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-accent);
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(139, 92, 246, 0.25);
}
.aw-contact-card div { display: flex; flex-direction: column; gap: 2px; }
.aw-contact-card strong { font-size: 13px; font-weight: 700; color: var(--ink-100); }
.aw-contact-card span { font-size: 12px; color: var(--ink-400); }

/* ── Papers ── */
.aw-paper-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
}
.aw-paper-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.aw-paper-item:last-child { border-bottom: none; }
.aw-paper-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-100);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ── Skill level grid (Strong / Knowledgeable / Etc) ── */
.aw-skill-level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.aw-skill-level-col {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.aw-skill-level-col:last-child { border-right: none; }
.aw-skill-level-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-100);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--ink-100);
}
.aw-skill-level-list { display: flex; flex-direction: column; gap: 12px; }
.aw-skill-level-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-200);
  font-weight: 500;
}
.aw-skill-level-item i { font-size: 24px; width: 28px; text-align: center; }
.aw-si-python { color: #3776ab; }
.aw-si-rust   { color: #ce422b; }
.aw-si-aws    { color: #ff9900; }
.aw-si-java   { color: #e76f00; }
.aw-si-node   { color: #339933; }
.aw-si-figma  { color: #f24e1e; }
.aw-si-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.aw-si-sklearn { background: #f89939; }
.aw-si-torch   { background: #ee4c2c; }
.aw-si-gcp     { background: #4285f4; }
.aw-si-notion  { background: #000; font-size: 13px; }

/* ── Work Style 4-quad ── */
.aw-trait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.aw-trait-card {
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aw-trait-card:nth-child(2) { border-right: none; }
.aw-trait-card:nth-child(3) { border-bottom: none; }
.aw-trait-card:nth-child(4) { border-right: none; border-bottom: none; }
.aw-trait-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-100);
  text-align: center;
}
.aw-trait-desc {
  font-size: 12px;
  color: var(--ink-300);
  line-height: 1.6;
  text-align: center;
}

/* ── Experience timeline ── */
.aw-exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border-left: 2px solid var(--ink-600);
  padding-left: 20px;
}
.aw-exp-item {
  position: relative;
  padding: 0 0 24px 0;
}
.aw-exp-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7c3aed;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #7c3aed;
}
.aw-exp-period {
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.aw-exp-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-100);
}
.aw-exp-org {
  font-size: 11.5px;
  color: var(--ink-400);
  margin-bottom: 6px;
}
.aw-exp-bullets {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.aw-exp-bullets li {
  font-size: 12px;
  color: var(--ink-300);
  line-height: 1.5;
}

/* =========================================
   DARK MODE OVERRIDES
   흰 배경이 하드코딩된 컴포넌트를 다크 서피스로 교체
========================================= */
html[data-theme='dark'] .welcome-widget {
  background: rgba(20, 20, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .welcome-widget-tags span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme='dark'] .dock-tooltip {
  background: rgba(20, 20, 20, 0.97);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink-100);
}
html[data-theme='dark'] .folder-backdrop {
  background: rgba(0, 0, 0, 0.6);
}
html[data-theme='dark'] .folder-window,
html[data-theme='dark'] .app-window {
  background: rgba(18, 18, 18, 0.99);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 12px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .folder-toolbar {
  background: rgba(24, 24, 24, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .folder-search {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme='dark'] .folder-search input {
  color: var(--ink-100);
}
html[data-theme='dark'] .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink-200);
}
html[data-theme='dark'] .chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink-100);
}
html[data-theme='dark'] .project-card {
  background: rgba(22, 22, 22, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
html[data-theme='dark'] .project-card:hover {
  border-color: rgba(196, 181, 253, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
html[data-theme='dark'] .stack-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme='dark'] .aw-skill-cat {
  background: rgba(40, 40, 40, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme='dark'] .aw-skill {
  background: rgba(55, 55, 55, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme='dark'] .aw-tl-item {
  background: rgba(22, 22, 22, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .aw-tl-item::before {
  background: var(--surface);
}
html[data-theme='dark'] .aw-research-card {
  background: rgba(22, 22, 22, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .aw-contact-card {
  background: rgba(22, 22, 22, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .aw-contact-card:hover {
  border-color: rgba(168, 139, 250, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
