/* Generated by scripts/build-assets.js. Do not edit by hand. */

/* ---- css/00-tokens.css ---- */
:root {
  --bg: #f6f4ef;
  --card: #fffdf8;
  --ink: #1f1f1f;
  --muted: #6f6a62;
  --accent: #0f766e;
  --accent-2: #f6b941;
  --app-status-ink: #f6b941;
  --line: rgba(196, 182, 163, 0.46);
  --surface: rgba(255, 255, 255, 0.5);
  --surface-strong: rgba(255, 255, 255, 0.58);
  --panel-bg: rgba(255, 255, 255, 0);
  --panel-border: rgba(255, 255, 255, 0.72);
  --chip-bg: #f0fdfa;
  --chip-ink: #0f766e;
  --chip-line: #ccfbf1;
  --card-gradient-top: rgba(255, 255, 255, 0.62);
  --card-gradient-bottom: rgba(255, 250, 242, 0.47);
  --article-bg: rgba(253, 247, 236, 0.52);
  /* Skill tags (CV): slightly more saturated so they don't blend into the warm card background. */
  --tag-bg: #ffedd5;
  --tag-line: #fdba74;
  --tag-ink: #3f3b35;
  --text-soft: #3f3b35;
  --glow-1: #fff8e6;
  --glow-2: #e2f8f4;
  --glow-3: transparent;
  --shape-1: #fde68a;
  --shape-2: #a7f3d0;
  --bg-grad-1: rgba(255, 249, 226, 0.9);
  --bg-grad-2: rgba(219, 248, 240, 0.7);
  --bg-grad-3: rgba(243, 234, 214, 0.5);
  --bg-grad-4: rgba(232, 249, 255, 0.42);
  --toggle-active-bg: #111827;
  --toggle-active-ink: #fff;
  --toggle-theme-bg: rgba(255, 255, 255, 0.68);
  --toggle-theme-ink: #1f1f1f;
  --toggle-theme-border: rgba(208, 193, 172, 0.6);
  --toggle-theme-active-bg: #0f766e;
  --toggle-theme-active-ink: #eafcf9;
  --app-icon-border: #f0e8da;
  --app-icon-bg: #fff8ec;
  --app-icon-shadow: 0 6px 14px rgba(26, 26, 26, 0.12);
  --policy-btn-bg: #0f766e;
  /* Deep blue-black (less "linky" electric blue). */
  --policy-link-bg: #070b16;
  --policy-ink: #fff;
  --skills-fade-from: rgba(253, 247, 236, 0);
  --skills-fade-to: rgba(253, 247, 236, 0.96);
  /* Skills-only scrim used for the "collapsed" fade in skill groups. */
  --skills-fade-scrim: rgba(253, 247, 236, 0.88);
  --skills-fade-scrim-hover: rgba(255, 255, 255, 0.74);
  --shadow: 0 14px 40px rgba(28, 23, 15, 0.08);
  /* Tab bar (dock): keep it translucent, but match the active/ink colors to the current theme. */
  --dock-bg: rgba(255, 253, 248, 0.72);
  --dock-border: rgba(196, 182, 163, 0.58);
  /* Light theme: avoid teal/green tint for the dock; keep it warmer + more neutral. */
  --dock-shadow: 0 25px 50px -12px rgba(28, 23, 15, 0.18), 0 0 44px rgba(246, 185, 65, 0.18);
  --dock-active-ink: var(--accent-2);
  --dock-active-bg: rgba(246, 185, 65, 0.16);
  --dock-ink: var(--ink);
  --dock-muted: var(--muted);

  /* Contact buttons: match company cards (exp-card) + moving localized glow. */
  /* Light theme: keep glow subtle and warm, aligned with the page palette. */
  --contact-stroke-a: rgba(15, 118, 110, 0.55);
  --contact-stroke-b: rgba(246, 185, 65, 0.45);
  /* Reduced alpha (less "colorful"): glow stays readable but doesn't flood the panel. */
  --contact-glow-a: rgba(15, 118, 110, 0.13); /* teal (matches --accent) */
  --contact-glow-b: rgba(246, 185, 65, 0.12); /* warm amber (matches --accent-2) */
  /* Fully opaque so the underlay glow never "shines through" inside the button. */
  --contact-hover-bg: var(--card);
  --contact-hover-border: rgba(196, 182, 163, 0.5);
  /* Opaque hover fill so the underlay glow never shows inside the card. */
  --contact-fill-top: #fffdf8;
  --contact-fill-bottom: #fff7ef;
  --contact-hover-shadow: 0 22px 54px rgba(28, 23, 15, 0.14);
}

:root[data-theme="dark"] {
  /* Dark theme: "Aivazovsky sea" palette (deep navy + sea-glass teal + warm sun-yellow). */
  --bg: #070e17;
  --card: #0b1623;
  --ink: #e7ecef;
  --muted: #95a7b6;
  --accent: #59d6cf; /* sea glass */
  --accent-2: #f6b941; /* warm sun yellow (matches theme toggle sun) */
  --app-status-ink: #9fe8df;
  --line: rgba(140, 176, 200, 0.22);
  --surface: rgba(17, 32, 46, 0.42);
  --surface-strong: rgba(17, 32, 46, 0.56);
  --panel-bg: rgba(10, 20, 33, 0.28);
  --panel-border: rgba(169, 209, 232, 0.16);
  --chip-bg: #0e2e33;
  --chip-ink: #9ef6ec;
  --chip-line: #1c4c54;
  --card-gradient-top: rgba(18, 36, 54, 0.26);
  --card-gradient-bottom: rgba(6, 12, 18, 0.18);
  --article-bg: rgba(9, 16, 24, 0.22);
  --tag-bg: rgba(18, 52, 64, 0.44);
  --tag-line: rgba(96, 165, 204, 0.36);
  --tag-ink: #c9f2ee;
  --text-soft: #d4dee6;
  --glow-1: #0b2633;
  /* Push "blue" closer to blue-black. */
  --glow-2: #050a18;
  --glow-3: transparent;
  --shape-1: #071427;
  --shape-2: #0b5e5a;
  --bg-grad-1: rgba(246, 185, 65, 0.1);
  --bg-grad-2: rgba(89, 214, 207, 0.12);
  --bg-grad-3: rgba(10, 30, 55, 0.55);
  --bg-grad-4: rgba(14, 10, 44, 0.18);
  --toggle-active-bg: var(--accent);
  --toggle-active-ink: #052724;
  --toggle-theme-bg: rgba(20, 25, 31, 0.58);
  --toggle-theme-ink: #d8e0e5;
  --toggle-theme-border: rgba(139, 167, 188, 0.34);
  --toggle-theme-active-bg: rgba(23, 38, 49, 0.62);
  --toggle-theme-active-ink: #d8e0e5;
  --app-icon-border: #33404b;
  --app-icon-bg: #12181d;
  --app-icon-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  --policy-btn-bg: #1f7a71;
  --policy-link-bg: #0a1023;
  --policy-ink: #f2f7ff;
  --skills-fade-from: rgba(14, 20, 27, 0);
  --skills-fade-to: rgba(14, 20, 27, 0.96);
  --skills-fade-scrim: rgba(14, 20, 27, 0.78);
  --skills-fade-scrim-hover: rgba(20, 25, 31, 0.72);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --dock-bg: rgba(19, 26, 32, 0.72);
  --dock-border: rgba(169, 209, 232, 0.14);
  --dock-shadow: 0 25px 55px -15px rgba(0, 0, 0, 0.55), 0 0 64px rgba(89, 214, 207, 0.16), 0 0 48px rgba(246, 185, 65, 0.08);
  --dock-active-ink: var(--accent);
  --dock-active-bg: rgba(89, 214, 207, 0.11);
  --dock-ink: var(--ink);
  --dock-muted: var(--muted);

  /* Dark theme contact glow: teal + warm yellow (avoid purple bias). */
  --contact-stroke-a: rgba(89, 214, 207, 0.84);
  --contact-stroke-b: rgba(246, 185, 65, 0.76);
  --contact-glow-a: rgba(89, 214, 207, 0.32);
  --contact-glow-b: rgba(246, 185, 65, 0.18);
  /* Fully opaque so the underlay glow never "shines through" inside the button. */
  --contact-hover-bg: var(--card);
  --contact-hover-border: rgba(169, 209, 232, 0.18);
  --contact-fill-top: #0b1623;
  --contact-fill-bottom: #071019;
  --contact-hover-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

/* ---- css/10-base.css ---- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* iOS Safari can allow horizontal "page panning" even when body clips overflow.
   Clamp overflow on the root element too (e.g. for fixed/blurred background shapes). */
html {
  width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 0% 0%, var(--glow-1) 0%, transparent 35%),
    radial-gradient(circle at 90% 20%, var(--glow-2) 0%, transparent 35%),
    radial-gradient(circle at 92% 88%, var(--glow-3) 0%, transparent 42%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(7rem + env(safe-area-inset-bottom));
  transition: color 0.22s ease;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.55;
}

.bg-shape-1 {
  width: 320px;
  height: 320px;
  background: var(--shape-1);
  top: -80px;
  left: -60px;
}

.bg-shape-2 {
  width: 280px;
  height: 280px;
  background: var(--shape-2);
  right: -80px;
  top: 20%;
}

/* ---- css/14-animations.css ---- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --reveal-distance: 14px;
  --reveal-duration: 820ms;
  /* Smoother "glide" easing (no abrupt stop). */
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/*
  Prevent "already visible" top content from flashing before JS marks it as `.reveal-item`.
  JS switches `data-reveal` to `ready` right after it tags reveal candidates.
*/
:root[data-reveal="pending"] .hero__topbar,
:root[data-reveal="pending"] #admin-banner,
:root[data-reveal="pending"] #name,
:root[data-reveal="pending"] #title,
:root[data-reveal="pending"] #about,
:root[data-reveal="pending"] #meta,
:root[data-reveal="pending"] #socials,
:root[data-reveal="pending"] .tabbar,
:root[data-reveal="pending"] main.layout .panel,
:root[data-reveal="pending"] .footer {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition: none;
}

/*
  Staggered reveal: elements start slightly below and fade/slide up.
  JS sets `--reveal-delay` per element to animate in order.
*/
.reveal-item {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* If a container and its children both reveal, reduce the nested travel distance. */
.reveal-item .reveal-item {
  --reveal-distance: 8px;
}

@media (prefers-reduced-motion: reduce) {
  :root[data-reveal="pending"] .hero__topbar,
  :root[data-reveal="pending"] #admin-banner,
  :root[data-reveal="pending"] #name,
  :root[data-reveal="pending"] #title,
  :root[data-reveal="pending"] #about,
  :root[data-reveal="pending"] #meta,
  :root[data-reveal="pending"] #socials,
  :root[data-reveal="pending"] .tabbar,
  :root[data-reveal="pending"] main.layout .panel,
  :root[data-reveal="pending"] .footer {
    opacity: 1;
    transform: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* ---- css/15-utilities.css ---- */
body.is-modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

/* ---- css/20-hero.css ---- */
.hero,
.layout,
.footer {
  /* Slightly wider gutters so top controls sit closer to the container edges. */
  width: min(1100px, 95vw);
  margin-inline: auto;
}

.hero {
  padding: 2.25rem 0 1.5rem;
  animation: rise 0.7s ease-out;
}

.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
}

.site-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: var(--surface-strong);
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
}

.lang-switch__btn.is-active {
  background: var(--toggle-active-bg);
  color: var(--toggle-active-ink);
}

.theme-switch__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--toggle-theme-border);
  background: var(--toggle-theme-bg);
  color: var(--toggle-theme-ink);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-switch__btn:hover {
  transform: translateY(-1px);
}

.theme-switch__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-switch__btn.is-dark {
  background: var(--toggle-theme-active-bg);
  border-color: var(--toggle-theme-border);
}

.theme-switch__icon {
  position: absolute;
  transition: opacity 0.22s ease, transform 0.24s ease;
}

.theme-switch__icon--sun {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #f6b941;
  box-shadow:
    0 0 0 0.16rem rgba(246, 185, 65, 0.24),
    0 0 0 0.33rem rgba(246, 185, 65, 0.12);
}

.theme-switch__icon--moon {
  width: 0.74rem;
  height: 0.74rem;
  border-radius: 50%;
  box-shadow: inset -0.2rem 0 0 0 #d4deea;
}

.theme-switch__btn .theme-switch__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-switch__btn .theme-switch__icon--moon {
  opacity: 0;
  transform: scale(0.55) rotate(-28deg);
}

.theme-switch__btn.is-dark .theme-switch__icon--sun {
  opacity: 0;
  transform: scale(0.55) rotate(28deg);
}

.theme-switch__btn.is-dark .theme-switch__icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.hero__title {
  margin-top: 0.7rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--accent);
  font-weight: 700;
}

.hero__about {
  margin-top: 1rem;
  max-width: 68ch;
  line-height: 1.65;
  color: var(--text-soft);
}

.hero__meta {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero__links a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero__links a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

:root[data-theme="dark"] .hero__links a:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(246, 185, 65, 0.12);
}

.admin-editable {
  cursor: pointer;
  border-radius: 10px;
  padding: 0.12rem 0.18rem;
  margin-left: -0.18rem;
  margin-right: -0.18rem;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.admin-editable:hover {
  box-shadow: 0 0 0 1px var(--line);
  background: rgba(255, 255, 255, 0.04);
}

:root:not([data-theme="dark"]) .admin-editable:hover {
  background: rgba(0, 0, 0, 0.03);
}

:root:not([data-theme="dark"]) .hero__links a[href*="linkedin.com"]:hover {
  border-color: var(--line);
  box-shadow: 0 0 0 1px var(--line);
}

.admin-banner {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.admin-banner[hidden] {
  display: none;
}

.admin-logout-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-logout-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

:root:not([data-theme="dark"]) .admin-logout-btn:hover {
  border-color: var(--line);
  box-shadow: 0 0 0 1px var(--line);
}

.layout {
  display: grid;
  gap: 1.2rem;
  padding-bottom: 2rem;
  grid-template-areas:
    "apps"
    "cv"
    "contact";
}

#apps-panel {
  grid-area: apps;
}

#cv-panel {
  grid-area: cv;
}

#contact-panel {
  grid-area: contact;
}

/* ---- css/30-tabbar.css ---- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 4rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

@media (max-width: 600px) {
  .tabbar {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

.tabbar__dock {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  background: var(--dock-bg);
  border: 1px solid var(--dock-border);
  box-shadow: var(--dock-shadow);
  width: max-content;
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
  transform: translateZ(0);
  will-change: transform;
  transition: padding 0.5s ease, background 0.3s ease, border-color 0.3s ease;
}

.tabbar__dock.is-compact {
  padding-left: 1rem;
  padding-right: 1rem;
}

.tabbar__active {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  border-radius: 999px;
  background: var(--dock-active-bg);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  will-change: transform, width, height;
}

.tabbar__active.is-visible {
  opacity: 1;
}

.tabbar__item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--dock-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s ease;
}

.tabbar__item:hover {
  color: var(--dock-ink);
}

.tabbar__item:focus-visible {
  outline: 2px solid var(--dock-active-ink);
  outline-offset: 2px;
}

.tabbar__item.is-active {
  color: var(--dock-active-ink);
}

.tabbar__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.tabbar__label {
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease, opacity 0.3s ease;
}

.tabbar__item.is-active .tabbar__label,
.tabbar__item:hover .tabbar__label {
  max-width: 7rem;
  opacity: 1;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-btn {
  text-decoration: none;
  color: inherit;
  /* maxim-egorov.dev inspired "underlay" on hover */
  --contact-radius: 24px;
  --contact-underlay: rgba(95, 211, 198, 0.45);
  --contact-overlay: rgba(95, 211, 198, 0.5);
  position: relative;
  isolation: isolate;
  z-index: 0;
  /* Match education timeline cards: subtle outline even when idle. */
  border: 1px solid var(--line);
  border-radius: var(--contact-radius);
  padding: 0.85rem 0.9rem;
  background: var(--surface);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  text-align: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}

.contact-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--contact-radius) + 8px);
  background: linear-gradient(90deg, var(--contact-underlay), transparent);
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.contact-btn::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--contact-overlay), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.contact-btn > * {
  position: relative;
  z-index: 1;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  z-index: 5;
  transform: translateY(-2px);
  border-color: var(--contact-hover-border);
  background: var(--contact-hover-bg);
  box-shadow: var(--contact-hover-shadow);
}

.contact-btn:hover::before,
.contact-btn:focus-visible::before {
  opacity: 1;
}

.contact-btn:hover::after,
.contact-btn:focus-visible::after {
  opacity: 0.1;
}

#contact-email {
  --contact-underlay: rgba(6, 182, 212, 0.5);
  --contact-overlay: rgba(6, 182, 212, 0.5);
}

#contact-telegram {
  --contact-underlay: rgba(219, 39, 119, 0.5);
  --contact-overlay: rgba(219, 39, 119, 0.5);
}

#contact-call {
  /* "Schedule a call" highlight: warm yellow accent for dark theme. */
  --contact-underlay: rgba(246, 185, 65, 0.58);
  --contact-overlay: rgba(246, 185, 65, 0.58);
}

:root:not([data-theme="dark"]) #contact-email {
  --contact-underlay: rgba(15, 118, 110, 0.22);
  --contact-overlay: rgba(15, 118, 110, 0.35);
}

:root:not([data-theme="dark"]) #contact-telegram {
  --contact-underlay: rgba(246, 185, 65, 0.22);
  --contact-overlay: rgba(246, 185, 65, 0.32);
}

:root:not([data-theme="dark"]) #contact-call {
  --contact-underlay: rgba(246, 185, 65, 0.24);
  --contact-overlay: rgba(246, 185, 65, 0.34);
}
.contact-btn__label {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--muted);
}

.contact-btn__value {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
  word-break: break-word;
}

/* ---- css/40-panels.css ---- */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  padding: 1.2rem;
  scroll-margin-top: 5.5rem;
}

.panel__head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.panel__head p {
  margin: 0;
  color: var(--muted);
}

/* ---- css/50-apps.css ---- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  position: relative;
  isolation: isolate;
}

.apps-grid.is-loaded::before {
  content: "";
  position: absolute;
  inset: -18px;
  pointer-events: none;
  border-radius: 22px;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 28%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.06) 72%,
    transparent 100%
  );
  transform: translate3d(-24%, 0, 0);
  mix-blend-mode: overlay;
  animation: appsSweep 1100ms cubic-bezier(0.16, 1, 0.3, 1) 1 both;
}

:root:not([data-theme="dark"]) .apps-grid.is-loaded::before {
  mix-blend-mode: multiply;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(246, 185, 65, 0.08) 30%,
    rgba(253, 230, 138, 0.26) 50%,
    rgba(15, 118, 110, 0.08) 70%,
    transparent 100%
  );
}

@keyframes appsSweep {
  0% {
    opacity: 0;
    transform: translate3d(-26%, 0, 0);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(26%, 0, 0);
  }
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(180deg, var(--card-gradient-top), var(--card-gradient-bottom));
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: transform 0.5s ease, border-color 0.5s ease;
}

.app-card.reveal-item {
  /* Add a bit of "materialization": blur -> sharp without affecting global reveal. */
  filter: blur(9px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease),
    border-color 0.5s ease;
}

.app-card.reveal-item.is-revealed {
  filter: none;
}

.app-card--skeleton {
  user-select: none;
  pointer-events: none;
  border-color: rgba(186, 210, 230, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  overflow: hidden;
}

:root:not([data-theme="dark"]) .app-card--skeleton {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.75), rgba(255, 247, 239, 0.55));
  border-color: rgba(196, 182, 163, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-card--skeleton::before {
  opacity: 0;
}

.app-card--skeleton::after {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 65%,
    transparent 100%
  );
  transform: translate3d(-30%, 0, 0) rotate(8deg);
  animation: skShimmer 1500ms ease-in-out infinite;
  opacity: 0.9;
}

@keyframes skShimmer {
  0% {
    transform: translate3d(-32%, 0, 0) rotate(8deg);
  }
  100% {
    transform: translate3d(32%, 0, 0) rotate(8deg);
  }
}

.sk {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(186, 210, 230, 0.12);
}

:root:not([data-theme="dark"]) .sk {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(196, 182, 163, 0.28);
}

.sk-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.sk-title {
  height: 18px;
  width: min(180px, 70%);
}

.sk-line {
  height: 12px;
  width: 100%;
  margin-top: 0.65rem;
}

.sk-line--short {
  width: 76%;
  opacity: 0.9;
}

.app-tags--skeleton {
  margin-top: 0.7rem;
  margin-bottom: 0.2rem;
}

.app-tags--skeleton span {
  height: 18px;
  width: 64px;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  border: 0;
}

.sk-pill {
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .apps-grid.is-loaded::before {
    animation: none;
    opacity: 0;
  }

  .app-card--skeleton::after {
    animation: none;
    opacity: 0;
  }

  .app-card.reveal-item {
    filter: none;
  }
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, 0.04);
  transition: opacity 0.5s ease;
}

.app-card:is(:hover, :active, :focus-within) {
  transform: translateY(-2px);
  border-color: rgba(186, 210, 230, 0.18);
}

.app-card:is(:hover, :active, :focus-within)::before {
  opacity: 1;
}

:root:not([data-theme="dark"]) .app-card:is(:hover, :active, :focus-within) {
  border-color: rgba(246, 185, 65, 0.58);
}

:root:not([data-theme="dark"]) .app-card::before {
  /* Light theme: slightly warmer (amber) tint on hover/active/focus-within. */
  background: linear-gradient(135deg, rgba(246, 185, 65, 0.16) 0%, rgba(253, 230, 138, 0.28) 100%);
}

.app-card.is-draggable {
  cursor: grab;
}

.app-card.is-draggable:active {
  cursor: grabbing;
}

.app-card.is-dragging {
  opacity: 0.6;
  transform: scale(0.99);
}

.app-card.is-drop-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

:root:not([data-theme="dark"]) .app-card {
  background: #fdf7ec;
  border-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-card h3 {
  font-size: 1.05rem;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.app-head h3 {
  margin: 0;
  line-height: 1.2;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--app-icon-border);
  box-shadow: var(--app-icon-shadow);
  background: var(--app-icon-bg);
  flex: 0 0 auto;
}

.app-desc {
  margin: 0.55rem 0;
  color: var(--text-soft);
  line-height: 1.45;
  font-size: 0.95rem;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.app-tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-ink);
  border: 1px solid var(--chip-line);
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease, color 0.25s ease;
}

.app-tags span:hover,
.app-tags span:active {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(186, 210, 230, 0.18);
  color: rgba(231, 236, 239, 0.92);
}

:root[data-theme="dark"] .app-tags span:hover,
:root[data-theme="dark"] .app-tags span:active {
  background: rgba(95, 211, 198, 0.14);
  border-color: rgba(95, 211, 198, 0.28);
  color: var(--ink);
}

:root:not([data-theme="dark"]) .app-tags span:hover,
:root:not([data-theme="dark"]) .app-tags span:active {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(196, 182, 163, 0.5);
  color: var(--ink);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.45rem;
  row-gap: 1.05rem;
}

.app-status {
  margin: auto 0 0;
  padding-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--app-status-ink);
  font-weight: 700;
}

.store-links a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: inherit;
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease, color 0.25s ease;
}

.policy-open-btn,
.policy-direct-link {
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: inherit;
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease, color 0.25s ease;
}

.policy-open-btn--main {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.2;
  margin-top: 0.9rem;
}

.policy-open-btn--status-slot {
  margin-top: auto;
}

.policy-direct-link--admin {
  font-size: 0.78rem;
  opacity: 0.92;
}

.store-ios {
  background: var(--surface);
}

.store-android {
  background: var(--surface);
}

.store-links a:hover,
.policy-open-btn:hover,
.policy-direct-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(186, 210, 230, 0.18);
  color: rgba(231, 236, 239, 0.92);
}

:root[data-theme="dark"] .store-links a:hover,
:root[data-theme="dark"] .policy-open-btn:hover,
:root[data-theme="dark"] .policy-direct-link:hover {
  background: rgba(95, 211, 198, 0.14);
  border-color: rgba(95, 211, 198, 0.28);
  color: var(--ink);
}

:root:not([data-theme="dark"]) .store-links a:hover,
:root:not([data-theme="dark"]) .policy-open-btn:hover,
:root:not([data-theme="dark"]) .policy-direct-link:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(196, 182, 163, 0.5);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

/* ---- css/60-cv.css ---- */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cv-actions {
  margin-bottom: 0.8rem;
}

.cv-download {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cv-download:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

:root:not([data-theme="dark"]) .cv-download:hover {
  border-color: var(--line);
  box-shadow: 0 0 0 1px var(--line);
}

.cv-viewer-wrap {
  display: none;
}

.cv-viewer {
  width: 100%;
  height: 460px;
  border: 0;
}

.cv-grid > article {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(180deg, var(--card-gradient-top), var(--card-gradient-bottom));
  backdrop-filter: blur(14px) saturate(128%);
  -webkit-backdrop-filter: blur(14px) saturate(128%);
}

:root:not([data-theme="dark"]) .cv-grid > article {
  background: #fdf7ec;
  border-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cv-grid > article > h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.tag-list,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ---- css/61-skills.css ---- */
.skill-groups {
  display: grid;
  gap: 0.75rem;
}

.skill-group {
  position: relative;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 0.65rem;
  box-shadow: none;
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.skill-group:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(186, 210, 230, 0.18);
  transform: translateY(-2px);
}

:root:not([data-theme="dark"]) .skill-group:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(196, 182, 163, 0.5);
}

.skill-group:hover .skill-group__title {
  color: var(--accent);
}

.skill-group:hover .skill-group__count {
  border-color: rgba(15, 118, 110, 0.35);
}

:root[data-theme="dark"] .skill-group:hover .skill-group__count {
  border-color: rgba(95, 211, 198, 0.25);
}

/* Skills "collapsed" fade:
   - Rest: 0 -> 1 at the card bottom, then 1 -> 0 *below* the card (outside), to avoid a "hard cut".
   - Hover: simpler 0 -> 1 within the card for a cleaner look. */
.skill-group.is-overflowing.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  /* Extend below the card so the fade-out happens outside the rounded card. */
  height: 5.2rem;
  bottom: -2rem;
  border-radius: 0 0 12px 12px;
  pointer-events: none;
  /* Peak opacity aligned to the card bottom (~62%). */
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--skills-fade-scrim) 62%,
    transparent 100%
  );
}

.skill-group.is-overflowing.is-collapsed:hover::after {
  height: 2.8rem;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, var(--skills-fade-scrim-hover) 100%);
}

/* Prefer masking (fade text itself) over painting a solid scrim (color-matching is brittle on gradients). */
@supports (-webkit-mask-image: linear-gradient(#000, transparent)) or (mask-image: linear-gradient(#000, transparent)) {
  .skill-group.is-overflowing.is-collapsed::after,
  .skill-group.is-overflowing.is-collapsed:hover::after {
    content: none;
  }

  .skill-group.is-overflowing.is-collapsed .skill-group__content {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 calc(100% - 3.4rem),
      transparent 100%
    );
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 3.4rem), transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .skill-group.is-overflowing.is-collapsed:hover .skill-group__content {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 calc(100% - 2.2rem),
      transparent 100%
    );
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 2.2rem), transparent 100%);
  }
}

.skill-group.is-collapsible {
  cursor: pointer;
}

.skill-group * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

.skill-group.is-collapsible:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skill-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.55rem;
}

.skill-group__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.skill-group__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.skill-group__count {
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.skill-group__chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.skill-group.is-expanded .skill-group__chev {
  transform: rotate(225deg);
  opacity: 1;
}

.skill-group__content {
  position: relative;
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.skill-group__content .tag-list {
  /* Give hover translateY room so the first/last row doesn't get clipped by overflow:hidden. */
  padding: 2px 0;
}

.skill-group__content.is-overflowing.is-collapsed::after {
  content: none;
}

.tag-list li {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  background: var(--tag-bg);
  border: 1px solid var(--tag-line);
  color: var(--tag-ink);
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease, color 0.25s ease;
}

.tag-list li:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(186, 210, 230, 0.18);
  color: rgba(231, 236, 239, 0.92);
}

:root[data-theme="dark"] .tag-list li:hover {
  background: rgba(95, 211, 198, 0.14);
  border-color: rgba(95, 211, 198, 0.28);
  color: var(--ink);
}

:root:not([data-theme="dark"]) .tag-list li:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(196, 182, 163, 0.5);
  color: var(--ink);
}

.tag-list li:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- css/62-timeline.css ---- */
.plain-list li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  padding: 0;
  border: 0;
}

.timeline-rail {
  position: relative;
}

.timeline-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -14px;
  bottom: -14px;
  width: 2px;
  background: var(--line);
  border-radius: 999px;
}

.timeline-item:first-child .timeline-rail::before {
  top: 18px;
}

.timeline-item:last-child .timeline-rail::before {
  bottom: 18px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 1.05rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

:root:not([data-theme="dark"]) .timeline-dot {
  box-shadow: 0 10px 24px rgba(28, 23, 15, 0.09);
}

.timeline-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  background: var(--article-bg);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(95, 211, 198, 0.14), rgba(242, 173, 98, 0.06));
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.timeline-head-left {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.timeline-head-text {
  min-width: 0;
}

.timeline-head-right {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.timeline-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--app-icon-border);
  background: var(--app-icon-bg);
  flex: 0 0 auto;
}

.timeline-item-title {
  font-weight: 800;
  line-height: 1.2;
}

.timeline-item-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-item-period {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}

.timeline-item-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.timeline-item--collapsible {
  cursor: pointer;
}

.timeline-item--collapsible:hover .timeline-card {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

:root:not([data-theme="dark"]) .timeline-card::before {
  /* Light theme: keep it subtle and closer to the page background. */
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(246, 185, 65, 0.08));
}

:root[data-theme="dark"] .timeline-card::before {
  background: linear-gradient(135deg, rgba(95, 211, 198, 0.14), rgba(242, 173, 98, 0.06));
}

:root:not([data-theme="dark"]) .timeline-item--collapsible:hover .timeline-card {
  border-color: rgba(196, 182, 163, 0.7);
}

:root[data-theme="dark"] .timeline-item--collapsible:hover .timeline-card {
  border-color: rgba(186, 210, 230, 0.2);
}

.timeline-item--collapsible:hover .timeline-card::before {
  opacity: 1;
  transform: translateY(0);
}

:root[data-theme="dark"] .timeline-item--collapsible:hover .timeline-item-title,
:root[data-theme="dark"] .timeline-item--collapsible:hover .timeline-item-summary,
:root[data-theme="dark"] .timeline-item--collapsible:hover .timeline-item-text {
  color: #fff;
}

:root[data-theme="dark"] .timeline-item--collapsible:hover .timeline-item-meta {
  color: rgba(255, 255, 255, 0.84);
}

:root[data-theme="dark"] .timeline-item--collapsible:hover .timeline-item-period {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.timeline-item.is-expanded .timeline-item-chevron {
  transform: rotate(225deg);
  opacity: 1;
}

.timeline-item-summary {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.timeline-item-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.28s ease, transform 0.28s ease,
    margin-top 0.28s ease;
}

.timeline-item-text.is-open {
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.35rem;
}

.timeline-item-text p {
  margin: 0;
}

@media (max-width: 600px) {
  .timeline-card {
    padding: 0.7rem 0.7rem;
  }

  .timeline-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .timeline-head-right {
    width: 100%;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .timeline-item-period {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
  }
}

/* ---- css/63-experience.css ---- */
/* Experience (maxim-egorov.dev inspired) */
#experience.exp {
  /* Used by JS to decide whether each company card should be collapsed. */
  --exp-card-collapsed-height: 300px;

  display: grid;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  #experience.exp {
    --exp-card-collapsed-height: 320px;
  }
}

@media (max-width: 600px) {
  #experience.exp {
    --exp-card-collapsed-height: 300px;
  }
}

.exp-group.is-collapsible {
  cursor: pointer;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.exp-group.is-collapsible:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.exp-group {
  position: relative;
  display: block;
}

.exp-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  padding: 1.25rem;
  overflow: hidden;
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease, max-height 0.35s ease;
}

:root:not([data-theme="dark"]) .exp-card {
  background: transparent;
  border-color: transparent;
}

/* Per-card collapse/fade (same behavior as skills, but on exp cards). */
.exp-group.is-overflowing.is-collapsed .exp-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.2rem;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 0%, var(--skills-fade-scrim) 100%);
}

.exp-group.is-overflowing.is-collapsed:hover .exp-card::after {
  height: 3rem;
  background: linear-gradient(180deg, transparent 0%, var(--skills-fade-scrim-hover) 100%);
}

/* Prefer masking (fade text itself) over painting a solid scrim (color-matching is brittle on gradients). */
@supports (-webkit-mask-image: linear-gradient(#000, transparent)) or (mask-image: linear-gradient(#000, transparent)) {
  .exp-group.is-overflowing.is-collapsed .exp-card::after,
  .exp-group.is-overflowing.is-collapsed:hover .exp-card::after {
    content: none;
  }

  .exp-group.is-overflowing.is-collapsed .exp-card {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 calc(100% - 4.6rem),
      transparent 100%
    );
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 4.6rem), transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .exp-group.is-overflowing.is-collapsed:hover .exp-card {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 calc(100% - 2.6rem),
      transparent 100%
    );
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 2.6rem), transparent 100%);
  }
}

.exp-group:hover .exp-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(186, 210, 230, 0.18);
  transform: translateY(-2px);
}

:root:not([data-theme="dark"]) .exp-group:hover .exp-card {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(196, 182, 163, 0.5);
}

.exp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.exp-company {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.exp-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

:root:not([data-theme="dark"]) .exp-logo {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(196, 182, 163, 0.6);
}

.exp-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  /* Match the rounded container corners so square PNG logos don't look "cut". */
  border-radius: inherit;
  display: block;
}

.exp-company__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 0;
}

.exp-present {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.14);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.exp-pos-list {
  display: grid;
  gap: 1.35rem;
}

.exp-pos {
  position: relative;
  padding-left: 1.35rem;
}

.exp-pos::before {
  content: "";
  position: absolute;
  /* Keep rail + dot perfectly aligned by sharing the same X. */
  left: var(--exp-rail-x, 0.4rem);
  transform: translateX(-50%);
  top: 0.1rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.55), rgba(15, 118, 110, 0.18), transparent);
}

:root[data-theme="dark"] .exp-pos::before {
  background: linear-gradient(180deg, rgba(95, 211, 198, 0.4), rgba(95, 211, 198, 0.16), transparent);
}

.exp-pos::after {
  content: "";
  position: absolute;
  left: var(--exp-rail-x, 0.4rem);
  transform: translateX(-50%);
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(15, 118, 110, 0.6);
}

.exp-pos__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem 0.9rem;
}

.exp-pos__title {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color 0.3s ease;
}

:root[data-theme="dark"] .exp-pos__title {
  color: var(--ink);
}

.exp-group:hover .exp-pos__title {
  color: var(--accent);
}

.exp-pos__period {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

:root:not([data-theme="dark"]) .exp-pos__period {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(196, 182, 163, 0.55);
}

.exp-group:hover .exp-pos__period {
  border-color: rgba(15, 118, 110, 0.35);
}

:root[data-theme="dark"] .exp-group:hover .exp-pos__period {
  border-color: rgba(95, 211, 198, 0.25);
}

.exp-pos__desc {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  font-style: italic;
  font-weight: 400;
}

.exp-bullets {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.exp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  transition: color 0.25s ease, transform 0.25s ease;
}

.exp-bullets li::before {
  content: "→";
  color: var(--accent);
  font-weight: 900;
  margin-top: 0.05rem;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.exp-group:hover .exp-bullets li {
  color: var(--text-soft);
}

:root[data-theme="dark"] .exp-group:hover .exp-bullets li {
  color: rgba(231, 236, 239, 0.92);
}

.exp-group:hover .exp-bullets li::before {
  transform: translateX(2px);
}

.timeline-item--collapsible:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.timeline-item-text.is-collapsible {
  position: relative;
}

.timeline-item-text.is-collapsible.is-overflowing.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.8rem;
  background: linear-gradient(180deg, var(--skills-fade-from) 0%, var(--skills-fade-to) 100%);
  pointer-events: none;
}

.timeline-details-list {
  margin: 0;
  padding: 0 0 0 1rem;
  display: grid;
  gap: 0.3rem;
}

/* ---- css/70-privacy.css ---- */
.privacy-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  /* Must be above the fixed tabbar (`z-index: 50`). */
  z-index: 100;
  padding: 2.5rem 1rem 3.5rem;
  overflow: hidden;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.privacy-modal__sheet {
  position: relative;
  width: min(840px, 96vw);
  max-height: calc(100vh - 6rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

:root:not([data-theme="dark"]) .privacy-modal__sheet {
  background: #fdf7ec;
  border-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.privacy-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.privacy-close-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.privacy-close-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

:root:not([data-theme="dark"]) .privacy-close-btn:hover {
  border-color: var(--line);
  box-shadow: 0 0 0 1px var(--line);
}

.privacy-updated {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-content {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 1rem;
  position: relative;
  overflow-y: auto;
  padding-right: 0.2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.privacy-content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.privacy-intro {
  margin: 0;
  color: var(--text-soft);
}

.privacy-section h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.privacy-section p {
  margin: 0.3rem 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.privacy-section ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
}

/* ---- css/80-admin.css ---- */
.admin-edit-form {
  /* Add padding so focus rings aren't clipped by the scroll container/sheet overflow. */
  padding: 0.35rem 0.35rem 0.45rem;
}

.admin-edit-field {
  display: grid;
  gap: 0.35rem;
}

.admin-edit-field label {
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-edit-field input,
.admin-edit-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  padding: 0.62rem 0.75rem;
  font: inherit;
  outline: none;
  box-sizing: border-box;
}

.admin-edit-field input[type="file"] {
  padding: 0.5rem 0.6rem;
}

.admin-edit-field input[type="file"]::file-selector-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  margin-right: 0.6rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-edit-field input[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.admin-edit-field input:focus-visible,
.admin-edit-field textarea:focus-visible {
  border-color: rgba(59, 130, 246, 0.9);
  /* Layered ring: inset for safety + subtle outer for nicer feel (padding prevents clipping). */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22) inset, 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.admin-edit-field textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-edit-error {
  min-height: 1.1rem;
  margin-top: 0.5rem;
  color: #ef4444;
  font-size: 0.92rem;
}

.admin-edit-actions {
  margin-top: 0.7rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-edit-actions .policy-open-btn {
  padding: 0.45rem 0.85rem;
}

.admin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  user-select: none;
  cursor: grab;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-chip:active {
  cursor: grabbing;
}

.admin-chip.is-dragging {
  opacity: 0.6;
  transform: scale(0.98);
}

.admin-chip.is-drop-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.admin-chip__handle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.86rem;
  opacity: 0.75;
  letter-spacing: -0.04em;
}

.admin-chip__text {
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-chip__remove {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.05rem 0.38rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.admin-chip__remove:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  opacity: 1;
}

/* ---- css/90-meeting.css ---- */
.meet-modal__sheet {
  width: min(980px, 96vw);
}

#meet-modal.is-week-open .meet-modal__sheet {
  width: min(1280px, 98vw);
}

.meet-step {
  display: grid;
  gap: 0.9rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 0.25rem;
}

.meet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meet-duration {
  display: inline-flex;
  gap: 0.45rem;
  align-items: baseline;
  color: var(--text-soft);
}

.meet-duration span:first-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.meet-admin-settings {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.meet-admin-settings input {
  width: 7.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.meet-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

.meet-calendar,
.meet-slots {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem 0.85rem 0.95rem;
  background: rgba(18, 24, 34, 0.2);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

:root:not([data-theme="dark"]) .meet-calendar,
:root:not([data-theme="dark"]) .meet-slots {
  background: #fffaf1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.meet-cal-head {
  display: grid;
  grid-template-columns: 2.2rem 1fr 2.2rem;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.meet-cal-month {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.meet-cal-nav {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.meet-cal-nav:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.meet-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.meet-cal-weekdays div {
  text-align: center;
}

.meet-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.meet-day {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 14px;
  padding: 0.55rem 0;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 2.45rem;
}

.meet-day.is-empty {
  border-color: transparent;
  cursor: default;
  background: transparent;
}

.meet-day.is-empty:hover {
  transform: none;
}

.meet-day.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.meet-day.is-available {
  border-color: rgba(59, 130, 246, 0.55);
}

.meet-day.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.08);
}

.meet-day:not(.is-empty):not(.is-disabled):hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.meet-slots-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.meet-selected-date {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.meet-admin-slot-add {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.meet-admin-slot-add input {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.meet-slots-list {
  display: grid;
  gap: 0.5rem;
  max-height: 340px;
  overflow: auto;
  padding-right: 0.2rem;
}

.meet-admin-week {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.75rem 0.75rem 0.85rem;
  margin-bottom: 0.75rem;
  background: rgba(10, 14, 20, 0.12);
}

:root:not([data-theme="dark"]) .meet-admin-week {
  background: rgba(14, 20, 30, 0.03);
}

.meet-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.meet-week-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.meet-week-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.meet-week-grid {
  overflow: auto;
  height: min(62vh, 720px);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 34, 0.10);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  user-select: none;
  -webkit-user-select: none;
}

:root:not([data-theme="dark"]) .meet-week-grid {
  background: rgba(14, 20, 30, 0.03);
}

.meet-week-table {
  display: grid;
  grid-template-columns: 4.2rem repeat(7, minmax(6.5rem, 1fr));
  min-width: 820px;
}

.meet-week-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.26rem 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
  user-select: none;
  line-height: 1.1;
}

:root:not([data-theme="dark"]) .meet-week-cell {
  border-right-color: rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.meet-week-cell.is-head {
  position: sticky;
  top: 0;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  z-index: 2;
  font-weight: 800;
  color: var(--ink);
}

:root:not([data-theme="dark"]) .meet-week-cell.is-head {
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.meet-week-cell.is-time {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  text-align: right;
  padding-right: 0.6rem;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

:root:not([data-theme="dark"]) .meet-week-cell.is-time {
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right-color: rgba(0, 0, 0, 0.08);
}

.meet-week-slot {
  cursor: pointer;
  background: transparent;
  transition: background 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
  min-height: 18px;
  touch-action: manipulation;
}

.meet-week-slot:hover {
  background: rgba(59, 130, 246, 0.08);
}

.meet-week-slot.is-free {
  background: rgba(34, 197, 94, 0.12);
  color: var(--ink);
}

.meet-week-slot.is-free:hover {
  background: rgba(34, 197, 94, 0.18);
}

.meet-week-slot.is-booked {
  cursor: default;
  background: rgba(239, 68, 68, 0.14);
  color: var(--ink);
  opacity: 0.85;
}

.meet-week-slot.is-past {
  opacity: 0.45;
}

.meet-week-slot.is-pending {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: -2px;
}

.meet-slot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 24, 34, 0.12);
  padding: 0.55rem 0.65rem;
}

:root:not([data-theme="dark"]) .meet-slot {
  background: rgba(14, 20, 30, 0.04);
}

.meet-slot-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.meet-slot-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.meet-slot-btn.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.meet-slot-delete {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.meet-slot-delete:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  opacity: 1;
}

.meet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.meet-form {
  display: grid;
  gap: 0.75rem;
}

.meet-field {
  display: grid;
  gap: 0.35rem;
}

.meet-field span {
  font-size: 0.88rem;
  color: var(--muted);
}

.meet-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  padding: 0.62rem 0.75rem;
  font: inherit;
  outline: none;
  box-sizing: border-box;
}

.meet-status {
  margin-top: 0.25rem;
}

.meet-status.is-ok {
  color: #22c55e;
}

.meet-modal .privacy-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

@media (max-width: 880px) {
  .meet-grid {
    grid-template-columns: 1fr;
  }

  .meet-slots-list {
    max-height: 260px;
  }
}

/* ---- css/99-misc.css ---- */

.footer {
  padding: 0.5rem 0 2rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .cv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .layout {
    grid-template-areas:
      "cv"
      "apps"
      "contact";
  }

  .hero {
    padding-top: 1.6rem;
  }

  .hero__topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__controls {
    width: 100%;
    justify-content: space-between;
  }

  .admin-banner {
    width: 100%;
    flex-wrap: wrap;
  }

  .panel {
    padding: 0.95rem;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .cv-viewer {
    height: 320px;
  }
}
