:root {
  --ink: #18202a;
  --muted: #65717e;
  --line: #dce4ea;
  --surface: #ffffff;
  --surface-soft: #f3f7f6;
  --page-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, .96);
  --input-bg: #ffffff;
  --input-text: #18202a;
  --field-bg: #ffffff;
  --panel-tint: #f7fbff;
  --row-bg: #f8fbfa;
  --chip-bg: #edf5f2;
  --file-bg: #f3f8ff;
  --level-bg: #e3ece8;
  --cv-bg: #eef5ff;
  --cv-chip-bg: #f0f6ff;
  --count-bg: #e8f2ff;
  --video-bg: #111111;
  --contact-bg: #18202a;
  --contact-text: #f6fbff;
  --footer-bg: #ffffff;
  --teal: #1f6feb;
  --teal-dark: #164f9f;
  --coral: #2f80ed;
  --gold: #65a7ff;
  --shadow: 0 18px 50px rgba(24, 32, 42, .1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6edf7;
  --muted: #9aa8ba;
  --line: #28364a;
  --surface: #121926;
  --surface-soft: #0b111d;
  --page-bg: #090f19;
  --nav-bg: rgba(12, 18, 29, .94);
  --input-bg: #0d1523;
  --input-text: #e6edf7;
  --field-bg: #111a2a;
  --panel-tint: #101a2a;
  --row-bg: #101827;
  --chip-bg: #111d2d;
  --file-bg: #101d31;
  --level-bg: #263247;
  --cv-bg: #0d1421;
  --cv-chip-bg: #101d31;
  --count-bg: #12233a;
  --video-bg: #05080d;
  --contact-bg: #080d16;
  --contact-text: #e6edf7;
  --footer-bg: #080d16;
  --teal: #65a7ff;
  --teal-dark: #8fc0ff;
  --coral: #7ec7ff;
  --gold: #94e7ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, .36);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  color: var(--coral);
}

.page-shell {
  min-height: calc(100vh - 168px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 13, 24, .96);
  border-bottom: 1px solid rgba(101, 167, 255, .18);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}

.navbar-brand {
  color: #f3f7ff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: .65rem;
}

.brand-lockup img {
  height: 42px;
  width: 42px;
}

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-link {
  color: #eef4ff;
  font-weight: 800;
  padding-inline: .7rem !important;
}

.nav-link:hover,
.nav-link:focus,
.navbar-nav .show > .nav-link {
  color: var(--teal);
}

.dropdown-menu {
  background: #0d1523;
  border: 1px solid rgba(101, 167, 255, .18);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  padding: .5rem;
}

.dropdown-item {
  border-radius: 8px;
  color: #dce8f8;
  font-weight: 750;
  padding: .65rem .8rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(31, 111, 235, .16);
  color: var(--teal);
}

.language-link {
  border: 1px solid rgba(101, 167, 255, .26);
  border-radius: 8px;
  margin-inline-start: .4rem;
  min-height: 44px;
  padding-inline: 1rem !important;
}

.theme-toggle {
  align-items: center;
  background: #111a2a;
  border: 1px solid rgba(101, 167, 255, .26);
  border-radius: 8px;
  color: #eef4ff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-inline-start: .5rem;
  padding: 0;
  width: 42px;
}

.theme-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.theme-toggle-icon {
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 18px;
  position: relative;
  width: 18px;
}

.theme-toggle-icon::before {
  background: var(--field-bg);
  border-radius: 50%;
  content: "";
  height: 18px;
  position: absolute;
  right: -6px;
  top: -2px;
  width: 18px;
}

[data-theme="dark"] .theme-toggle-icon::before {
  background: transparent;
  border: 2px solid currentColor;
  box-shadow:
    0 -10px 0 -7px currentColor,
    0 10px 0 -7px currentColor,
    10px 0 0 -7px currentColor,
    -10px 0 0 -7px currentColor;
  height: 24px;
  left: -3px;
  top: -3px;
  width: 24px;
}

.hero-section {
  background: var(--ink);
}

.hero-slide {
  min-height: min(760px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .55fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 850;
  line-height: 1;
  margin: 0 0 1rem;
}

.hero-title {
  color: #dcebe8;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
}

.hero-copy p {
  color: #ecf5f2;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.btn {
  border-radius: 8px;
  font-weight: 750;
  min-height: 44px;
  padding: .65rem 1.1rem;
}

.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.profile-visual {
  justify-self: center;
  width: min(330px, 78vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-visual img,
.profile-initials {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-initials {
  align-items: center;
  background: linear-gradient(135deg, #1f6feb, #65a7ff);
  color: #fff;
  display: flex;
  font-size: 7rem;
  font-weight: 850;
  justify-content: center;
}

.section-band {
  padding-block: clamp(3.75rem, 7vw, 6.5rem);
}

.cv-command-band {
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .95), rgba(18, 48, 86, .92), rgba(7, 17, 31, .95)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 96px);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.cv-jump-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.75rem, 2vw, 1.75rem);
  justify-content: center;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.cv-jump-nav a {
  align-items: center;
  background: #050b15;
  border: 1px solid rgba(101, 167, 255, .25);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 850;
  gap: 1rem;
  justify-content: center;
  min-height: 74px;
  min-width: min(220px, 100%);
  padding: 1rem 1.5rem;
}

.cv-jump-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.stats-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 2.25rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: auto;
  max-width: 1010px;
}

.stat-card {
  align-items: center;
  background: rgba(15, 24, 39, .94);
  border: 1px solid rgba(101, 167, 255, .24);
  border-radius: 8px;
  color: #d9e9ff;
  display: grid;
  gap: .8rem;
  justify-items: center;
  min-height: 210px;
  padding: 2rem 1.25rem;
  text-align: center;
}

.stat-card strong {
  color: #94e7ff;
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.stat-card > span:last-child {
  color: #a7b6cb;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.stat-icon {
  color: #65a7ff;
  display: inline-block;
  height: 34px;
  position: relative;
  width: 42px;
}

.stat-briefcase {
  border: 5px solid currentColor;
  border-radius: 5px;
}

.stat-briefcase::before {
  border: 4px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
  height: 10px;
  left: 12px;
  position: absolute;
  top: -14px;
  width: 18px;
}

.stat-briefcase::after {
  background: currentColor;
  content: "";
  height: 5px;
  left: 14px;
  position: absolute;
  top: 11px;
  width: 14px;
}

.stat-folder {
  background: currentColor;
  border-radius: 5px;
  height: 26px;
  transform: skewX(-16deg);
  width: 42px;
}

.stat-folder::before {
  background: currentColor;
  border-radius: 5px 5px 0 0;
  content: "";
  height: 12px;
  left: 2px;
  position: absolute;
  top: -8px;
  transform: skewX(16deg);
  width: 22px;
}

.stat-certificate {
  background: currentColor;
  clip-path: polygon(50% 0, 60% 13%, 76% 8%, 80% 25%, 96% 31%, 87% 47%, 100% 60%, 84% 70%, 84% 87%, 66% 86%, 50% 100%, 34% 86%, 16% 87%, 16% 70%, 0 60%, 13% 47%, 4% 31%, 20% 25%, 24% 8%, 40% 13%);
  height: 34px;
  width: 34px;
}

.muted-band {
  background: var(--surface-soft);
}

.section-heading {
  margin-bottom: 1.75rem;
  max-width: 760px;
}

.section-submenu {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 2rem;
}

.section-submenu a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: .55rem .8rem;
}

.section-submenu a:hover,
.section-submenu a.active {
  background: rgba(31, 111, 235, .14);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.section-heading h1,
.section-heading h2,
.admin-heading h1,
.admin-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1.08;
  margin: 0;
}

.compact h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.split-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  max-width: none;
}

.slider-heading {
  align-items: start;
}

.slider-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.slider-buttons {
  display: inline-flex;
  gap: .7rem;
}

.slider-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 1.5rem;
  font-weight: 850;
  height: 48px;
  justify-content: center;
  line-height: 1;
  width: 48px;
}

.slider-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.info-grid,
.entry-grid,
.video-grid,
.admin-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid article,
.entry-card,
.admin-tile,
.video-item,
.comment-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.info-grid p,
.entry-card p,
.admin-heading p,
.admin-tile span,
.contact-grid p,
.blog-article p {
  color: var(--muted);
  line-height: 1.75;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 100%;
}

.section-detail-list {
  display: grid;
  gap: 1rem;
}

.section-detail-card {
  min-height: auto;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.horizontal-entry-rail {
  display: flex;
  gap: clamp(1rem, 2vw, 1.35rem);
  grid-template-columns: none;
  overflow-x: auto;
  padding: .2rem .05rem 1rem;
  scroll-padding-inline: .05rem;
  scroll-snap-type: x mandatory;
}

.horizontal-entry-rail::-webkit-scrollbar {
  height: 10px;
}

.horizontal-entry-rail::-webkit-scrollbar-track {
  background: var(--surface-soft);
}

.horizontal-entry-rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.experience-card {
  flex: 0 0 clamp(285px, 23.5vw, 380px);
  gap: 1.05rem;
  min-height: 520px;
  padding: 1.7rem;
  scroll-snap-align: start;
}

.section-rail-card {
  flex: 0 0 clamp(280px, 24vw, 360px);
  min-height: 390px;
  scroll-snap-align: start;
}

.experience-period {
  color: var(--gold);
  display: block;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.experience-card h3 {
  font-size: 1.25rem;
}

.experience-card .entry-meta {
  font-size: 1rem;
  margin-top: .85rem;
}

.experience-card p {
  font-size: 1.02rem;
  line-height: 1.85;
}

.entry-card h2,
.entry-card h3,
.video-item h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0;
}

.entry-meta,
.entry-date {
  color: var(--muted);
  display: block;
  font-size: .92rem;
  margin: 0;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.skill-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.level-bar {
  background: var(--level-bg);
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.level-bar span {
  background: linear-gradient(90deg, var(--teal), var(--coral));
  display: block;
  height: 100%;
}

.file-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.file-links a,
.social-links a {
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 750;
  padding: .45rem .65rem;
}

.document-actions {
  display: grid;
}

.file-pill {
  align-items: center;
  background: var(--file-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .35rem;
  padding: .7rem;
}

.file-pill strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.file-pill span {
  color: var(--muted);
}

.file-pill span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.files-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.file-card h3 {
  overflow-wrap: anywhere;
}

.two-column,
.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.language-list {
  display: grid;
  gap: 1rem;
}

.language-row {
  display: grid;
  gap: .5rem;
}

.language-row div:first-child {
  display: flex;
  justify-content: space-between;
}

.video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--video-bg);
  border-radius: 8px;
  overflow: hidden;
}

.video-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.contact-band {
  background: var(--contact-bg);
  color: var(--contact-text);
}

.contact-band a,
.contact-band p {
  color: var(--contact-text);
}

.contact-form,
.admin-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

input,
textarea,
select {
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--input-text);
  min-height: 44px;
  padding: .72rem .85rem;
  width: 100%;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  color: var(--muted);
  display: grid;
  font-weight: 700;
  gap: .35rem;
}

.check-row {
  align-items: center;
  display: flex;
  gap: .5rem;
}

.check-row input {
  min-height: auto;
  width: auto;
}

.narrow-container {
  max-width: 860px;
}

.blog-article h1 {
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 850;
  margin: .75rem 0 1rem;
}

.article-body {
  border-block: 1px solid var(--line);
  margin-block: 2rem;
  padding-block: 2rem;
}

.comments-section {
  display: grid;
  gap: 1rem;
}

.comment-item strong,
.comment-item span {
  display: block;
}

.comment-item span {
  color: var(--muted);
  font-size: .9rem;
}

.admin-shell {
  background: var(--surface-soft);
  min-height: calc(100vh - 140px);
  padding-block: 3rem;
}

.admin-heading {
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-metrics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.admin-metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .25rem;
  padding: 1rem;
}

.admin-metrics strong {
  color: var(--teal);
  font-size: 2rem;
  line-height: 1;
}

.admin-metrics span {
  color: var(--muted);
  font-weight: 750;
}

.admin-tile {
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: .5rem;
}

.admin-tile strong {
  font-size: 1.15rem;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.provider-settings-grid {
  display: grid;
  gap: 1rem;
}

.provider-card {
  display: grid;
  gap: 1rem;
}

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

.wide-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.compact-form {
  margin-top: 1rem;
}

.admin-list {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.slide-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  scroll-snap-type: x proximity;
}

.slide-row {
  align-items: flex-start;
  flex: 0 0 min(340px, 86vw);
  min-height: 120px;
  scroll-snap-align: start;
}

.slide-row > span {
  display: grid;
  gap: .35rem;
}

.slide-row small {
  color: var(--muted);
  line-height: 1.45;
}

.section-tree {
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 1rem 0;
  padding: 1rem;
}

.section-tree strong {
  display: block;
  margin-bottom: .6rem;
}

.section-tree ul {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-tree a,
.section-tree-picker label {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: .6rem;
  justify-content: space-between;
  min-height: 48px;
  padding: .65rem .8rem;
}

.section-tree a.active,
.admin-section-tabs a.active {
  background: rgba(31, 111, 235, .14);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.section-tree small {
  align-items: center;
  background: var(--count-bg);
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-width: 28px;
  padding: .1rem .45rem;
}

.section-tree-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: .5rem 0 1rem;
  padding: 1rem;
}

.section-tree-picker legend {
  float: none;
  font-size: 1rem;
  font-weight: 850;
  margin: 0;
  padding: 0 .35rem;
  width: auto;
}

.section-tree-picker label {
  cursor: pointer;
  justify-content: flex-start;
}

.section-tree-picker input {
  min-height: auto;
  width: auto;
}

.section-tree-picker input:checked + span {
  color: var(--teal);
}

.section-tree-picker small {
  color: var(--muted);
  margin-inline-start: auto;
}

.compact-tree-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-admin-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .75rem;
  padding: 1rem;
}

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

.section-admin-group h3 {
  font-size: 1.2rem;
  font-weight: 850;
  margin: 0;
}

.section-admin-group h3 span {
  color: var(--muted);
  font-size: .95rem;
  margin-inline-start: .4rem;
}

.section-add-box {
  background: var(--panel-tint);
  border: 1px dashed rgba(31, 111, 235, .35);
  border-radius: 8px;
  padding: .9rem;
}

.section-add-box summary {
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 850;
}

.section-add-box[open] summary {
  margin-bottom: .75rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: .8rem;
  text-align: start;
}

.admin-table th {
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
}

.auth-band {
  background: var(--surface-soft);
}

.auth-panel {
  box-shadow: var(--shadow);
}

.external-login-panel {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.external-login-panel h2 {
  font-size: 1.1rem;
  font-weight: 850;
}

.list-row,
.edit-row {
  background: var(--row-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem;
}

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

.full-span {
  grid-column: 1 / -1;
}

.attached-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: .9rem 0 1rem;
}

.attached-file-chip {
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: .25rem;
  min-width: min(260px, 100%);
  padding: .7rem .85rem;
}

.attached-file-chip small {
  color: var(--muted);
}

.attached-file-chip span {
  display: flex;
  gap: .7rem;
}

.template-helper {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: .75rem;
}

.template-helper strong,
.template-helper span {
  border-radius: 8px;
  font-weight: 800;
  padding: .45rem .65rem;
}

.template-helper strong {
  color: var(--muted);
  padding-inline-start: 0;
}

.template-helper span {
  background: var(--panel-tint);
  border: 1px solid var(--line);
  color: var(--teal-dark);
}

.admin-dashboard-shell {
  background: #050a13;
  color: #e8eef8;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.admin-sidebar {
  background: #0d1220;
  border-right: 4px solid #5487ff;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.3rem 1rem;
}

.admin-brand {
  align-items: center;
  color: #f4f7ff;
  display: flex;
  gap: .8rem;
  margin-bottom: .8rem;
}

.admin-brand:hover {
  color: #fff;
}

.admin-brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #4e7ef7, #6cb6ff);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.admin-brand strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
}

.admin-brand b {
  color: #5f8cff;
}

.admin-brand small {
  color: #7181a1;
  display: block;
  font-size: .72rem;
  font-weight: 800;
  margin-top: .15rem;
}

.admin-sidebar-group {
  display: grid;
  gap: .35rem;
}

.admin-sidebar-group > span {
  color: #53617d;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  margin: .35rem .65rem;
  text-transform: uppercase;
}

.admin-side-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #8ea1bd;
  display: flex;
  font-weight: 750;
  min-height: 42px;
  padding: .62rem .85rem;
  text-align: start;
  width: 100%;
}

.admin-side-link:hover,
.admin-side-link.active {
  background: #172138;
  color: #f4f7ff;
}

.admin-sidebar-footer {
  border-top: 1px solid #1c2a43;
  display: grid;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
}

.admin-sidebar-footer form {
  margin: 0;
}

.admin-signout {
  cursor: pointer;
  font: inherit;
}

.admin-dashboard-main {
  display: grid;
  gap: 1.6rem;
  padding: 0 2rem 2rem;
}

.admin-dashboard-topbar {
  align-items: center;
  border-bottom: 1px solid #1c2a43;
  display: flex;
  justify-content: space-between;
  margin-inline: -2rem;
  min-height: 64px;
  padding-inline: 2rem;
}

.admin-dashboard-topbar h1 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.admin-dashboard-topbar span {
  color: #7485a3;
  font-weight: 750;
}

.dashboard-metrics {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-metric,
.dashboard-panel {
  background: #151d30;
  border: 1px solid #253452;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.dashboard-metric {
  display: grid;
  gap: .45rem;
  justify-items: center;
  min-height: 140px;
  padding: 1.8rem 1rem;
  position: relative;
}

.dashboard-metric::before {
  background: var(--metric-color, #5487ff);
  content: "";
  height: 2px;
  inset-inline: 0;
  position: absolute;
  top: 0;
}

.dashboard-metric strong {
  color: var(--metric-color, #5487ff);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
}

.dashboard-metric span {
  color: #7587a4;
  font-weight: 800;
}

.accent-blue { --metric-color: #6089ff; }
.accent-green { --metric-color: #62d899; }
.accent-gold { --metric-color: #ffd25e; }
.accent-sky { --metric-color: #68b7ff; }

.dashboard-panels {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dashboard-panel {
  padding: 1.5rem;
}

.dashboard-panel h2 {
  color: #7889aa;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .06em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

.quick-action-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: .9rem;
}

.quick-action-grid a,
.dashboard-primary-action {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1rem;
}

.quick-action-grid a {
  background: #202a3d;
  border: 1px solid #2d3b57;
  color: #98a9c3;
}

.quick-action-grid a:hover {
  border-color: #5487ff;
  color: #fff;
}

.dashboard-primary-action {
  background: linear-gradient(135deg, #5d8bff, #425bdc);
  border: 0;
  color: #fff;
  width: 100%;
}

.dashboard-notify-form {
  display: grid;
  gap: 1rem;
}

.dashboard-notify-form input,
.dashboard-notify-form textarea {
  background: #0c1220;
  border-color: #1d2940;
  color: #e8eef8;
}

.dashboard-panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.dashboard-panel-heading a {
  background: #202a3d;
  border: 1px solid #2d3b57;
  border-radius: 8px;
  color: #98a9c3;
  font-size: .85rem;
  font-weight: 850;
  padding: .55rem .85rem;
}

.dashboard-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.dashboard-table th,
.dashboard-table td {
  border-bottom: 1px solid #1f2d46;
  color: #91a4c0;
  padding: .9rem 1rem;
  text-align: start;
}

.dashboard-table th {
  background: #0b111e;
  color: #667896;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-table tr:last-child td {
  border-bottom: 0;
}

.cv-page-shell {
  background: var(--cv-bg);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.cv-document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-inline: auto;
  max-width: 1020px;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.cv-document-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 1.5rem;
}

.cv-document-header h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 900;
  margin: 0;
}

.cv-document-header p {
  color: var(--teal-dark);
  font-size: 1.2rem;
  font-weight: 800;
}

.cv-document-header img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 150px;
}

.cv-contact-line,
.cv-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.cv-contact-line span,
.cv-contact-line a,
.cv-chip-list span {
  background: var(--cv-chip-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: .45rem .65rem;
}

.cv-document-section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  padding-block: 1.5rem;
}

.cv-document-section h2 {
  color: var(--teal-dark);
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0;
}

.cv-line-item {
  display: grid;
  gap: .35rem;
}

.cv-line-item h3 {
  font-size: 1.1rem;
  font-weight: 850;
  margin: 0;
}

.cv-line-item > span {
  color: var(--muted);
  font-weight: 750;
}

.cv-print-actions {
  justify-content: flex-end;
}

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.25rem 0;
}

.site-footer a {
  color: var(--teal-dark);
}

.site-footer .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 991px) {
  .admin-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-bottom: 4px solid #5487ff;
    border-right: 0;
  }

  .admin-dashboard-main {
    padding: 0 1rem 1.5rem;
  }

  .admin-dashboard-topbar {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .dashboard-panels {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    justify-self: start;
  }

  [dir="rtl"] .profile-visual {
    justify-self: end;
  }

  .info-grid,
  .entry-grid,
  .skill-grid,
  .video-grid,
  .admin-grid,
  .admin-metrics,
  .section-tree ul,
  .section-tree-picker,
  .compact-tree-picker,
  .stats-grid,
  .files-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-slide {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 30vw);
    gap: 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .profile-visual {
    align-self: start;
    width: min(140px, 30vw);
  }

  .experience-card {
    flex-basis: 82vw;
    min-height: 460px;
  }

  .section-rail-card {
    flex-basis: 82vw;
    min-height: 360px;
  }

  .dashboard-metrics,
  .quick-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
    justify-content: center;
    padding-block: .8rem;
  }

  .hero-grid {
    padding-block: 3rem;
  }

  .info-grid,
  .entry-grid,
  .skill-grid,
  .video-grid,
  .admin-grid,
  .admin-metrics,
  .section-tree ul,
  .section-tree-picker,
  .compact-tree-picker,
  .stats-grid,
  .files-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .section-admin-header,
  .list-row,
  .site-footer .container {
    align-items: stretch;
    flex-direction: column;
  }

  .cv-document-header {
    grid-template-columns: 1fr;
  }

  .cv-document-header img {
    width: 120px;
  }
}

@media print {
  .site-nav,
  .site-footer,
  .cv-print-actions,
  .print-hidden {
    display: none !important;
  }

  .cv-page-shell {
    background: #fff;
    padding: 0;
  }

  .cv-document {
    border: 0;
    box-shadow: none;
    max-width: none;
    padding: 0;
  }
}
