:root {
  --bg: #0d1117;
  --bg-bar: #161b22;
  --bg-elevated: #1c2128;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #c9d1d9;
  --text-bright: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --green: #7ee787;
  --blue: #79c0ff;
  --orange: #ffa657;
  --red: #ff7b72;
  --purple: #d2a8ff;
  --pink: #ff9ec9;
  --yellow: #f2cc60;
  --link: #79c0ff;
  --link-hover: #a5d6ff;
  --selection: rgba(56, 139, 253, 0.4);
  --scrollbar: rgba(110, 118, 129, 0.4);
  --terminal-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 12px 32px -8px rgba(0, 0, 0, 0.4);
  --mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-bar: #f6f8fa;
  --bg-elevated: #f6f8fa;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #24292f;
  --text-bright: #1f2328;
  --text-muted: #57606a;
  --text-dim: #8c959f;
  --green: #1a7f37;
  --blue: #0969da;
  --orange: #bc4c00;
  --red: #cf222e;
  --purple: #8250df;
  --pink: #bf3989;
  --yellow: #9a6700;
  --link: #0969da;
  --link-hover: #0550ae;
  --selection: rgba(9, 105, 218, 0.2);
  --scrollbar: rgba(140, 149, 159, 0.4);
}

[data-theme="matrix"] {
  --bg: #000000;
  --bg-bar: #001a00;
  --bg-elevated: #001500;
  --border: rgba(0, 255, 0, 0.2);
  --border-strong: rgba(0, 255, 0, 0.4);
  --text: #00ff41;
  --text-bright: #80ff80;
  --text-muted: #00aa2b;
  --text-dim: #007020;
  --green: #00ff41;
  --blue: #00ff41;
  --orange: #00ff41;
  --red: #00ff41;
  --purple: #00ff41;
  --pink: #00ff41;
  --yellow: #00ff41;
  --link: #80ff80;
  --link-hover: #ffffff;
  --selection: rgba(0, 255, 65, 0.3);
}

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

[hidden] { display: none !important; }

html, body {
  height: 100%;
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

::selection { background: var(--selection); color: var(--text-bright); }

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--bg-bar);
  color: var(--text-bright);
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
}
.skip-link:focus { top: 8px; }

.page {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(ellipse at top, rgba(126, 231, 135, 0.04), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(121, 192, 255, 0.04), transparent 50%),
    var(--bg);
  position: relative;
}

[data-theme="light"] .page {
  background:
    radial-gradient(ellipse at top, rgba(9, 105, 218, 0.03), transparent 50%),
    var(--bg);
}

.mode-toggle {
  display: inline-flex;
  background: var(--bg-bar);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 16px;
  gap: 2px;
  font-family: var(--sans);
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: transparent;
  border: none;
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-btn:hover { color: var(--text-bright); }

.mode-btn--active {
  background: var(--bg-elevated);
  color: var(--text-bright);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .mode-btn--active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mode-icon {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.mode-btn--active .mode-icon { color: var(--green); }

.terminal {
  width: 920px;
  max-width: calc(100vw - 48px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--terminal-shadow);
  display: flex;
  flex-direction: column;
  height: 720px;
  max-height: calc(100vh - 140px);
  min-height: 360px;
  min-width: 480px;
  position: relative;
  transition: opacity 0.2s ease;
}

.terminal.is-resizing {
  transition: none;
  user-select: none;
}

.terminal.is-resizing .terminal__body { pointer-events: none; }

.terminal__bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-bar);
  border-bottom: 1px solid var(--border);
  user-select: none;
  flex-shrink: 0;
}

.terminal__dots { display: flex; gap: 8px; }

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  border: none;
  padding: 0;
  position: relative;
}
.dot:hover { transform: scale(1.1); filter: brightness(1.2); }
.dot:active { transform: scale(0.95); }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

.terminal__title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.terminal__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(126, 231, 135, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(126, 231, 135, 0); }
}

.terminal__body {
  flex: 1;
  padding: 20px 24px 24px;
  overflow-y: auto;
  cursor: text;
  outline: none;
  font-size: 14px;
  line-height: 1.7;
}

.terminal__body::-webkit-scrollbar { width: 10px; }
.terminal__body::-webkit-scrollbar-track { background: transparent; }
.terminal__body::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 5px; }
.terminal__body::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

.resize-handle {
  position: absolute;
  z-index: 10;
  color: var(--text-muted);
}

.resize-handle--n  { top: -4px;    left: 12px;   right: 12px;  height: 8px;  cursor: ns-resize; }
.resize-handle--s  { bottom: -4px; left: 12px;   right: 12px;  height: 8px;  cursor: ns-resize; }
.resize-handle--e  { top: 12px;    bottom: 12px; right: -4px;  width: 8px;   cursor: ew-resize; }
.resize-handle--w  { top: 12px;    bottom: 12px; left: -4px;   width: 8px;   cursor: ew-resize; }
.resize-handle--ne { top: -4px;    right: -4px;  width: 14px;  height: 14px; cursor: nesw-resize; }
.resize-handle--nw { top: -4px;    left: -4px;   width: 14px;  height: 14px; cursor: nwse-resize; }
.resize-handle--se {
  bottom: 0; right: 0; width: 16px; height: 16px;
  cursor: nwse-resize;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 2px;
}
.resize-handle--sw { bottom: -4px; left: -4px;   width: 14px;  height: 14px; cursor: nesw-resize; }

.prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: nowrap;
}

.prompt {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 500;
}

.prompt-user { color: var(--green); }
.prompt-at { color: var(--text-muted); }
.prompt-host { color: var(--blue); }
.prompt-colon { color: var(--text-muted); }
.prompt-path { color: var(--purple); }
.prompt-arrow { color: var(--text-muted); margin-left: 4px; }

.input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-family: var(--mono);
  font-size: 14px;
  caret-color: transparent;
  padding: 0;
  min-width: 0;
}

.cursor {
  position: absolute;
  width: 8px;
  height: 16px;
  background: var(--green);
  pointer-events: none;
  animation: blink 1.1s steps(2, start) infinite;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.cursor.cursor--inactive { animation: none; opacity: 0.4; }

@keyframes blink { to { visibility: hidden; } }

.output-block { margin-bottom: 12px; animation: fadeIn 0.18s ease-out; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

.output-line { display: block; }

.command-echo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.command-echo .prompt { font-size: 14px; }

.cmd-text { color: var(--text-bright); }

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-red { color: var(--red); }
.text-purple { color: var(--purple); }
.text-pink { color: var(--pink); }
.text-yellow { color: var(--yellow); }
.text-bright { color: var(--text-bright); }

.term-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}
.term-link:hover { color: var(--link-hover); }
.term-link:focus-visible { outline: 1px solid var(--link); outline-offset: 2px; border-radius: 2px; }

.banner-anim {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.1;
  white-space: pre;
  margin-bottom: 10px;
  min-height: 84px;
  font-weight: 700;
  letter-spacing: 0;
}

.banner-line {
  display: block;
  overflow: hidden;
}

.banner-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-8px) scale(0.5);
  animation: charDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  color: var(--green);
}

.banner-char--alt { color: var(--orange); }
.banner-char--purple { color: var(--purple); }
.banner-char--blue { color: var(--blue); }

@keyframes charDrop {
  0% { opacity: 0; transform: translateY(-12px) scale(0.3); filter: blur(2px); }
  60% { opacity: 1; transform: translateY(2px) scale(1.05); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.banner-glitch {
  animation: glitchFlash 0.08s ease-out forwards;
}

@keyframes glitchFlash {
  0% { color: var(--green); opacity: 0.4; }
  50% { color: var(--red); transform: translateX(2px); }
  100% { color: var(--green); opacity: 1; transform: translateX(0); }
}

@media (max-width: 540px) { .banner-anim { font-size: 8px; min-height: 56px; } }

.welcome-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.welcome-tagline {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 13px;
  opacity: 0;
  animation: fadeInDelayed 0.4s ease-out 1.6s forwards;
}

.welcome-hint {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 8px;
  opacity: 0;
  animation: fadeInDelayed 0.4s ease-out 1.9s forwards;
}

@keyframes fadeInDelayed { to { opacity: 1; } }

.welcome-hint kbd, .kbd {
  background: var(--bg-bar);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-bright);
}

.section { margin: 4px 0 12px; }
.section-title { color: var(--orange); font-weight: 700; margin-bottom: 6px; }

.list-item { display: flex; gap: 10px; align-items: flex-start; padding: 2px 0; }
.list-bullet { color: var(--text-muted); flex-shrink: 0; }

.project-card { padding: 10px 0; border-top: 1px dashed var(--border); }
.project-card:first-of-type { border-top: none; padding-top: 6px; }

.project-header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.project-name { color: var(--orange); font-weight: 700; }
.project-desc { color: var(--text-muted); }
.project-meta { color: var(--text-dim); font-size: 13px; margin-bottom: 4px; }
.project-stack { color: var(--text-muted); }
.project-tag {
  display: inline-block; padding: 0 6px; border-radius: 3px;
  background: var(--bg-bar); color: var(--text); font-size: 11px;
  margin: 0 2px 2px 0; border: 1px solid var(--border);
}

.project-actions { margin-top: 4px; }
.project-actions a + a { margin-left: 14px; }

.experience-item { padding: 8px 0; border-top: 1px dashed var(--border); }
.experience-item:first-of-type { border-top: none; padding-top: 4px; }
.exp-header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.exp-role { color: var(--orange); font-weight: 700; }
.exp-company { color: var(--text); }
.exp-dates { color: var(--text-dim); font-size: 12px; }
.exp-bullets { margin-top: 4px; color: var(--text-muted); }
.exp-bullet { display: flex; gap: 8px; padding: 1px 0; }
.exp-bullet::before { content: '└─'; color: var(--text-dim); flex-shrink: 0; }

.now-line { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
.now-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; flex-shrink: 0; }

.help-table { display: grid; grid-template-columns: 160px 1fr; gap: 4px 16px; margin-top: 6px; }
.help-cmd { color: var(--green); font-weight: 500; }
.help-desc { color: var(--text-muted); }
@media (max-width: 540px) {
  .help-table { grid-template-columns: 110px 1fr; gap: 4px 8px; }
  .help-cmd { font-size: 13px; }
  .help-desc { font-size: 12px; }
}

.error-text { color: var(--red); }
.success-text { color: var(--green); }
.suggestion { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

.footer {
  margin-top: 16px; font-size: 12px; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: center;
  font-family: var(--mono);
}
.footer-sep { color: var(--border-strong); }
.footer-link {
  background: none; border: none; color: var(--text-muted);
  font-family: var(--mono); font-size: 12px; cursor: pointer;
  padding: 0; text-decoration: none;
}
.footer-link:hover { color: var(--text-bright); }

.opinion-card {
  border-left: 3px solid var(--orange);
  padding: 8px 0 8px 14px; margin: 8px 0;
  background: rgba(255, 166, 87, 0.04);
}
[data-theme="light"] .opinion-card { background: rgba(188, 76, 0, 0.04); }
.opinion-quote { color: var(--text-bright); font-style: italic; margin-bottom: 4px; }
.opinion-context { color: var(--text-muted); font-size: 12px; }

.changed-mind { padding: 6px 0; border-top: 1px dashed var(--border); }
.changed-mind:first-of-type { border-top: none; }
.cm-before { color: var(--red); text-decoration: line-through; opacity: 0.7; }
.cm-after { color: var(--green); }
.cm-arrow { color: var(--text-dim); margin: 0 6px; }
.cm-why { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

.coffee-art { white-space: pre; color: var(--orange); font-size: 12px; line-height: 1.2; margin: 4px 0; }



.gui-app {
  width: 1180px;
  max-width: calc(100vw - 48px);
  height: 820px;
  max-height: calc(100vh - 140px);
  min-height: 420px;
  min-width: 600px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--terminal-shadow);
  display: grid;
  grid-template-columns: 240px 1fr;
  font-family: var(--sans);
  position: relative;
  transition: opacity 0.2s ease;
}

.gui-app.is-resizing { transition: none; user-select: none; }
.gui-app.is-resizing .gui-main,
.gui-app.is-resizing .gui-sidebar { pointer-events: none; }

.gui-sidebar {
  background: var(--bg-bar);
  border-right: 1px solid var(--border);
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.gui-sidebar::-webkit-scrollbar { width: 6px; }
.gui-sidebar::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }

.gui-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 4px 14px;
  border-bottom: 1px solid var(--border);
}

.gui-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 700;
  font-size: 22px;
  font-family: var(--mono);
  overflow: hidden;
  position: relative;
}
.gui-avatar--photo {
  background: transparent;
  border: 1.5px solid var(--border);
}
.gui-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gui-name { font-size: 15px; font-weight: 600; color: var(--text-bright); line-height: 1.2; }
.gui-role { font-size: 12.5px; color: var(--green); font-weight: 500; }
.gui-loc { font-size: 12px; color: var(--text-muted); }

.gui-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--green);
  font-weight: 500;
}
.gui-availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 231, 135, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(126, 231, 135, 0); }
}

.gui-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }

.gui-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}
.gui-nav-item:hover { background: var(--bg-elevated); color: var(--text-bright); }
.gui-nav-item--active {
  background: var(--bg-elevated);
  color: var(--text-bright);
}
.gui-nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
}
.gui-nav-item--active .gui-nav-icon { opacity: 1; color: var(--green); }
.gui-nav-icon svg { display: block; }

.gui-cta {
  width: 100%;
  padding: 10px 16px;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gui-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.gui-main {
  padding: 40px 48px 80px;
  overflow-y: auto;
  background: var(--bg);
  scroll-behavior: smooth;
}
.gui-main::-webkit-scrollbar { width: 8px; }
.gui-main::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }

.gui-section {
  scroll-margin-top: 24px;
  padding-bottom: 56px;
  animation: fadeIn 0.22s ease-out;
}
.gui-section:last-child { padding-bottom: 24px; }

.gui-h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.gui-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}
.gui-h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 28px 0 12px;
}

.gui-about-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.gui-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(126, 231, 135, 0.08);
  border: 1px solid rgba(126, 231, 135, 0.2);
  border-radius: 10px;
  max-width: 320px;
}
[data-theme="light"] .gui-status-banner {
  background: rgba(26, 127, 55, 0.06);
  border-color: rgba(26, 127, 55, 0.2);
}

.gui-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulseDot 2.4s infinite;
}
.gui-status-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1px;
  font-weight: 600;
}
.gui-status-message {
  font-size: 13px;
  color: var(--text-bright);
  font-weight: 500;
}

.gui-bio {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
  margin: 20px 0 8px;
  max-width: 640px;
}

.gui-exp-item {
  background: var(--bg-bar);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.gui-exp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.gui-exp-role { font-size: 14.5px; font-weight: 600; color: var(--text-bright); }
.gui-exp-co { font-size: 13px; color: var(--green); margin-top: 1px; }
.gui-exp-date { font-size: 12px; color: var(--text-muted); font-family: var(--mono); white-space: nowrap; }
.gui-exp-bullets { list-style: none; padding: 0; margin-top: 10px; }
.gui-exp-bullets li {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
}
.gui-exp-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-family: var(--mono);
}

.gui-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gui-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--bg-bar);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  transition: all 0.15s ease;
}
.gui-contact-link:hover {
  border-color: var(--border-strong);
  color: var(--text-bright);
  transform: translateY(-1px);
}
.gui-contact-icon { display: inline-flex; color: var(--text-muted); flex-shrink: 0; }
.gui-contact-link:hover .gui-contact-icon { color: var(--green); }
.gui-contact-ext { display: inline-flex; color: var(--text-dim); margin-left: 2px; }

.gui-section-head {
  margin-bottom: 18px;
}

.gui-project-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 4px;
}

.gui-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gui-search-wrap {
  position: relative;
  flex: 0 0 240px;
  max-width: 240px;
}
.gui-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  display: inline-flex;
}
.gui-search {
  width: 100%;
  background: var(--bg-bar);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px 8px 32px;
  color: var(--text-bright);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  transition: all 0.15s ease;
}
.gui-search:focus {
  border-color: var(--green);
  background: var(--bg);
}
.gui-search::placeholder { color: var(--text-dim); }

.gui-tag-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  overflow-x: auto;
  padding-bottom: 2px;
  min-width: 0;
}
.gui-tag-row::-webkit-scrollbar { height: 6px; }
.gui-tag-row::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }

.gui-filter-pill {
  background: var(--bg-bar);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
  flex-shrink: 0;
}
.gui-filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-bright);
}
.gui-filter-pill--active {
  background: var(--text-bright);
  border-color: var(--text-bright);
  color: var(--bg);
}

.gui-clear-btn {
  display: none;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}
.gui-clear-btn:hover { color: var(--text-bright); border-color: var(--border-strong); }
.gui-clear-btn svg { display: block; }

.gui-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.gui-project {
  background: var(--bg-bar);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.18s ease;
  animation: fadeIn 0.2s ease-out;
}
.gui-project:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.gui-project-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: rgba(126, 231, 135, 0.1);
  padding: 3px 7px;
  border-radius: 4px;
}

.gui-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 76px;
}
.gui-project-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
  letter-spacing: -0.01em;
}
.gui-project-cat {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.gui-project-cat:hover { color: var(--green); border-color: var(--green); }

.gui-project-tagline { font-size: 12.5px; color: var(--text-muted); margin-top: -6px; }

.gui-project-desc {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.gui-project-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  align-self: flex-start;
}
.gui-project-metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}
.gui-project-metric-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  font-family: var(--mono);
}

.gui-project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.gui-tag-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.gui-tag-pill:hover {
  border-color: var(--green);
  color: var(--green);
}

.gui-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.gui-project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.12s ease;
}
.gui-project-link:hover {
  color: var(--text-bright);
  border-color: var(--border-strong);
}
.gui-project-link--primary {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
  font-weight: 600;
}
.gui-project-link--primary:hover {
  filter: brightness(1.08);
  color: var(--bg);
  border-color: var(--green);
}

.gui-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
  background: var(--bg-bar);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.gui-empty-clear {
  display: inline-block;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--link);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.gui-timeline {
  position: relative;
  padding-left: 26px;
}
.gui-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.gui-timeline-item {
  position: relative;
  margin-bottom: 16px;
}
.gui-timeline-marker {
  position: absolute;
  left: -26px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
  z-index: 1;
}
.gui-timeline-content {
  background: var(--bg-bar);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}
.gui-timeline-content .gui-exp-head { margin-bottom: 4px; }

.gui-skill-group { margin-bottom: 22px; }
.gui-skill-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.gui-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gui-skill-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  background: var(--bg-bar);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 6px;
  transition: all 0.12s ease;
}
.gui-skill-tag:hover {
  color: var(--text-bright);
  border-color: var(--border-strong);
}

.suggestions-popup {
  position: absolute; bottom: 100%; left: 0;
  margin-bottom: 4px;
  background: var(--bg-bar); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 0;
  min-width: 180px; z-index: 10;
  display: none; max-height: 200px; overflow-y: auto;
}
.suggestions-popup.visible { display: block; }
.suggestion-item {
  padding: 4px 12px; cursor: pointer;
  color: var(--text); font-size: 13px;
}
.suggestion-item.active, .suggestion-item:hover {
  background: var(--border); color: var(--text-bright);
}

@media (max-width: 700px) {
  .page { padding: 12px; }
  .terminal, .gui-app { border-radius: 8px; min-width: 0; }
  .gui-app { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 140px); }
  .gui-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .gui-profile {
    flex-direction: row;
    text-align: left;
    flex-shrink: 0;
    padding: 0 14px 0 0;
    border-bottom: none;
    border-right: 1px solid var(--border);
    gap: 8px;
  }
  .gui-avatar { width: 40px; height: 40px; font-size: 14px; }
  .gui-name { font-size: 13px; }
  .gui-role, .gui-loc { font-size: 11px; }
  .gui-nav { flex-direction: row; flex-wrap: nowrap; flex: 1; gap: 4px; }
  .gui-nav-item { padding: 7px 10px; flex-shrink: 0; }
  .gui-footer { display: none; }
  .gui-main { padding: 24px 20px 60px; }
  .gui-h1 { font-size: 24px; }
  .gui-about-head { flex-direction: column; }
  .gui-status-banner { max-width: 100%; }
  .gui-filter-bar { flex-direction: column; align-items: stretch; }
  .gui-search-wrap { max-width: 100%; flex: 1 0 100%; }
  .gui-project-head { padding-right: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
  .gui-project-featured { position: static; align-self: flex-start; margin-bottom: 4px; }
  .terminal__body { padding: 14px 16px 18px; font-size: 13px; }
  .terminal__title { font-size: 10px; }
  .terminal__status { display: none; }
  .resize-handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor { animation: none; }
  .status-dot, .now-dot { animation: none; }
  .banner-char { opacity: 1; transform: none; }
  .welcome-tagline, .welcome-hint { opacity: 1; }
}

.music-player {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  font-family: var(--sans);
}

#yt-host {
  position: fixed;
  width: 320px;
  height: 240px;
  opacity: 0;
  pointer-events: none;
  top: -10000px;
  left: -10000px;
  visibility: hidden;
}

.music-player__container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.music-player__toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-bar);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  padding: 0;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.music-player__toggle:hover {
  color: var(--text-bright);
  border-color: var(--border-strong);
  transform: scale(1.05);
}

.music-player.is-playing .music-player__toggle {
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(126, 231, 135, 0.1);
}

[data-theme="light"] .music-player.is-playing .music-player__toggle {
  box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.1);
}

.music-player__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.music-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 14px;
}

.music-eq-bar {
  display: block;
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  height: 4px;
  transition: height 0.15s ease;
}

.music-eq-bar:nth-child(1) { height: 8px; }
.music-eq-bar:nth-child(2) { height: 12px; }
.music-eq-bar:nth-child(3) { height: 6px; }

.music-player.is-playing .music-eq-bar {
  animation: eqBounce 0.9s ease-in-out infinite;
}
.music-player.is-playing .music-eq-bar:nth-child(1) { animation-delay: 0s; }
.music-player.is-playing .music-eq-bar:nth-child(2) { animation-delay: 0.15s; }
.music-player.is-playing .music-eq-bar:nth-child(3) { animation-delay: 0.3s; }

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

.music-player__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: none;
  animation: pulse 2s infinite;
}

.music-player__panel {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--bg-bar);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 6px 52px 6px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 280px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: all 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

.music-player.is-expanded .music-player__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.music-player__close {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #28c840;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  transition: all 0.12s ease;
  z-index: 2;
}
.music-player__close:hover {
  opacity: 1;
  filter: brightness(1.15);
  transform: translateY(-50%) scale(1.15);
}
.music-player__close:active { transform: translateY(-50%) scale(0.92); }

.music-player__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 4px 0;
  min-width: 0;
}

.music-player__track-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.music-player__track-title {
  font-size: 12px;
  color: var(--text-bright);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  line-height: 1.3;
}

.music-player__controls {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
}

.music-player__divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 4px;
}

.music-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

.music-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-bright);
}

.music-btn--play {
  width: 30px;
  height: 30px;
  color: var(--text-bright);
}

.music-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  outline: none;
  margin-left: 4px;
  cursor: pointer;
}

.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text-bright);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.music-volume::-webkit-slider-thumb:hover { transform: scale(1.2); }

.music-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--text-bright);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.music-player__hint {
  font-size: 10px;
  color: var(--text-dim);
  padding: 0 4px 2px;
  text-align: center;
  font-style: italic;
}

@media (max-width: 600px) {
  .music-player { top: 12px; right: 12px; }
  .music-player__toggle { width: 36px; height: 36px; }
  .music-player__panel { min-width: 240px; }
  .music-player__track-title { max-width: 140px; }
  .music-volume { width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .music-eq-bar { animation: none !important; }
  .music-player__badge { animation: none !important; }
}

.crt-mode .terminal {
  position: relative;
}

.crt-mode .terminal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 100;
  animation: crtFlicker 0.15s infinite;
}

.crt-mode .terminal::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
  z-index: 99;
}

.crt-mode .terminal__body {
  text-shadow: 0 0 1px currentColor;
}

@keyframes crtFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 0.96; }
  94% { opacity: 1; }
  96% { opacity: 0.92; }
  98% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .crt-mode .terminal::before { animation: none; }
}