:root {
  --bg: #f3f2ef;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --border: #e0e0e0;
  --text: #1f1f1f;
  --muted: #5f5f5f;
  --accent: #0a66c2;
  --positive: #057642;
  --negative: #cc1016;
  --warning: #b45309;
  --shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.08);
  --radius: 10px;
  --gap-sm: 12px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-feature-settings: "tnum" 1, "lnum" 1;
  min-height: 100vh;
  cursor: default;
}

body.no-scroll {
  overflow: hidden;
}

.bg-glow,
.bg-grid {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 16px;
  padding: 12px 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-transform: lowercase;
  font-size: 1.1rem;
}

.search input {
  width: 100%;
  min-width: 180px;
  border: 1px solid var(--border);
  background: #eef3f8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.nav-item {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 8px;
}

.nav-item.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard {
  max-width: var(--max-width);
  margin: 20px auto 40px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: var(--gap-lg);
}

.page-view {
  display: none;
}

.page-view.is-active {
  display: grid;
}

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

.summary-page {
  height: calc(100vh - 80px);
  overflow: hidden;
}

.summary-page .rail {
  gap: 12px;
}

.summary-page .right-rail {
  gap: 8px;
}

.summary-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.summary-gap {
  height: 6px;
}

.summary-page .card {
  padding: 14px;
}

.summary-page h2 {
  font-size: 1.05rem;
}

.summary-page p {
  margin-bottom: 8px;
}

.summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.summary-wide {
  grid-column: 1 / -1;
}

.summary-name {
  margin-top: 0;
  font-size: 1.2rem;
}

.summary-profile {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
}

.summary-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #000000;
}

.summary-thumb {
  display: block;
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  margin: 8px 0 12px;
}

.summary-thumb--small {
  max-height: 112px;
}

.summary-thumb--hpair {
  max-height: 90px;
}

.summary-card-distinctions .summary-thumb {
  margin: 6px 0 8px;
}


.rail {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card::after {
  display: none;
}

.card-head {
  margin-bottom: 12px;
}

.card-head.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 6px 0;
  font-weight: 600;
}

h1 {
  font-size: 1.4rem;
}

h2 {
  font-size: 1.2rem;
  text-decoration: underline;
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.ghost-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.ghost-btn.small {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.pill {
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  background: #f7f7f7;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
}

.pill.active {
  border-color: var(--accent);
  color: var(--accent);
}

.metric {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.metric:last-child {
  border-bottom: none;
}

.metric .label,
.list-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.metric .value,
.list-value {
  font-size: 1rem;
  font-weight: 600;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lang-list .list-value {
  text-align: right;
}
.contact-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-note {
  margin: 0 0 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-honeypot {
  display: none;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}

.label-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.required {
  color: #b42318;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: none;
  overflow: hidden;
  min-height: 160px;
}

.form-status {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.form-status .status-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdc9;
  border-radius: 10px;
  padding: 10px 12px;
}

.form-status .status-success {
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 10px;
  padding: 10px 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

.lang-list .list-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  white-space: nowrap;
}

.lang-list .list-value {
  white-space: nowrap;
}

.lang-list .list-value {
  font-size: 0.85rem;
  color: var(--muted);
}

.badge-grid,
.chips,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-list {
  display: grid;
  gap: 12px;
}

.cert-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.cert-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px;
}

.cert-title {
  font-weight: 600;
}

.cert-skills {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

.badge,
.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f0f2f5;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.chip.warning {
  color: var(--warning);
}

.timeline {
  border: 1px solid var(--border);
}

.timeline-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.timeline-row.no-placeholder {
  grid-template-columns: 1fr;
}

.timeline-row:first-of-type {
  border-top: none;
}

.timeline-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  margin-top: 2px;
  display: grid;
  place-items: center;
}

.timeline-placeholder:empty {
  background-image: url("assets/landscape-placeholder.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
}

.timeline-placeholder--blue {
  background: #eef3f8;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.timeline-placeholder--ghost {
  background: transparent;
  border-color: transparent;
}

.timeline-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.project-grid {
  display: grid;
  gap: 16px;
}

.project {
  padding: 16px;
  border-radius: var(--radius);
  background: #fafafa;
  border: 1px solid var(--border);
}

.project-img,
.award-img {
  width: auto;
  max-width: 240px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 8px 0 10px;
}


.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-grid.is-collapsed .project:nth-child(n + 2) {
  display: none;
}

.project-toggle {
  margin-top: 12px;
}
.project-meta {
  border-left: 2px solid var(--border);
  padding-left: 12px;
  margin-top: 4px;
  margin-bottom: 0;
}

.project-meta + .project-meta {
  margin-top: 2px;
}

.feed-actions {
  display: flex;
  gap: 8px;
}

.edu-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
}

.edu-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #eef3f8;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 600;
}

.edu-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px;
}

.edu-logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #ffffff;
  color: transparent;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0;
  border: 1px solid var(--border);
  background-image: url("assets/landscape-placeholder.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 88%;
}

.edu-logo-placeholder--blue {
  background: #eef3f8;
  color: var(--accent);
  font-size: 1rem;
  background-image: none;
}

.edu-list {
  display: grid;
  gap: 16px;
}

.edu-list.is-collapsed .edu-item:nth-child(n + 3) {
  display: none;
}

.edu-toggle {
  margin-top: 12px;
}

.edu-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-body h3 {
  margin-top: 0;
}

.edu-body .muted {
  margin-bottom: 2px;
}

.edu-body p {
  margin-left: 12px;
}

.edu-body p.edu-meta-line {
  margin-left: 0;
}

.edu-meta {
  border-left: 2px solid var(--border);
  padding-left: 12px;
  display: grid;
  gap: 4px;
}

.edu-meta-line {
  padding-left: 0;
  border-left: none;
  margin-left: 0;
  margin-top: 6px;
}

.edu-more {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  padding-left: 12px;
}

.edu-skills {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

.edu-note {
  margin: 4px 0 12px;
  padding-left: 0;
  margin-left: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.edu-divider {
  border-bottom: 1px solid var(--border);
  margin: -6px 0 16px;
}

.page-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
}

.expand {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafafa;
}

.expand-summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: grid;
  gap: 10px;
}

.expand-summary-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.expand-summary-btn + .expand-summary-btn {
  margin-top: 8px;
}

.expand-summary::-webkit-details-marker {
  display: none;
}

.expand-summary::after {
  content: "";
}

.expand-body {
  margin-top: 10px;
}

.big-profile {
  padding: 0;
  overflow: hidden;
}

.profile-cover {
  height: 220px;
  background: linear-gradient(120deg, #cfe0f1, #e6eef6);
  position: relative;
  z-index: 1;
}

.banner-tst {
  position: absolute;
  left: 20px;
  top: 16px;
  bottom: auto;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cover-actions {
  position: absolute;
  right: 16px;
  top: 16px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.profile-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 20px 20px;
  margin-top: -95px;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: #000000;
  position: relative;
  z-index: 2;
}

.profile-main {
  display: grid;
  gap: 12px;
}

.profile-header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
}

.profile-side {
  display: grid;
  gap: 10px;
  justify-items: start;
  text-align: left;
}

.side-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.side-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef3f8;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.side-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 4px;
  margin-top: 2px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.big-title {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.big-location {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.big-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dot {
  color: var(--muted);
}

.subname {
  font-size: 0.95rem;
  font-weight: 500;
}

.big-name {
  font-size: 1.8rem;
}

.small-text {
  font-size: 0.85rem;
}

.skill-list {
  display: grid;
  gap: 14px;
}

.skill-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.skill-filters .pill {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.skill-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.skill-item h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  background: transparent;
  border: none;
}

.award-list {
  display: grid;
  gap: 16px;
}

.award-list.is-collapsed .award-item:nth-child(n + 3) {
  display: none;
}

.award-toggle {
  margin-top: 12px;
}

.award-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.award-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.award-item h3 {
  margin-top: 0;
}

.award-featured h3 {
  font-size: 1rem;
}

.award-featured .muted {
  font-size: 0.9rem;
}

.award-featured .award-row p {
  font-size: 0.95rem;
}


.award-row {
  display: flex;
  gap: 12px;
  align-items: start;
  margin: 8px 0 10px;
}

.award-row-stack {
  flex-direction: column;
}

.award-row-stack .award-img {
  margin-top: 6px;
}
.award-row > div {
  flex: 1 1 auto;
}

.award-row .award-img {
  order: 2;
}

.award-row p {
  font-size: 0.95rem;
}

.award-row .small-text {
  font-size: 0.95rem;
}

.award-row .award-img {
  margin: 0;
}

.img-preview {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 1;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  cursor: zoom-in;
}

.lightbox-content.large img {
  max-width: 100vw;
  max-height: 100vh;
}

.lightbox-content.is-zoomed img {
  max-width: 100vw;
  max-height: 100vh;
  cursor: zoom-out;
}

.lightbox-lens {
  position: absolute;
  width: 220px;
  height: 140px;
  border-radius: 0;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  background-repeat: no-repeat;
  background-color: #ffffff;
  display: none;
  pointer-events: none;
  z-index: 2;
}

.lightbox-content.is-zoomed .lightbox-lens {
  display: block;
}

.lightbox-image-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: visible;
}

.lightbox-content.show-meta .lightbox-image-wrap {
  align-items: flex-start;
}

.lightbox-image-meta {
  width: 240px;
  text-align: left;
  display: none;
}

.lightbox-content.show-meta .lightbox-image-meta {
  display: block;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: none;
  margin-top: 0;
  margin-left: auto;
}

.lightbox-content.show-meta #lightbox-image {
  max-width: 68vw;
}

.lightbox-pdf {
  display: none;
  align-items: flex-start;
  gap: 16px;
}

#lightbox-pdf {
  width: 70vw;
  max-width: 860px;
  height: 68vh;
  border: none;
  border-radius: 10px;
  background: #ffffff;
}

.lightbox-meta {
  width: 220px;
  padding-top: 6px;
}

.lightbox-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.lightbox-download {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: #ffffff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.date-sim-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  width: 260px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
  overflow: hidden;
}

.date-sim-panel::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -6px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

.date-sim-panel.is-open {
  display: block;
}

.date-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.date-sim-title {
  font-weight: 600;
}

.date-sim-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.date-sim-range {
  width: 100%;
  appearance: none;
  background: transparent;
}

.date-sim-range::-webkit-slider-runnable-track {
  height: 4px;
  background: #e5e5e5;
  border-radius: 999px;
}

.date-sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: -6px;
}

.date-sim-range::-moz-range-track {
  height: 4px;
  background: #e5e5e5;
  border-radius: 999px;
}

.date-sim-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}

.date-sim-value {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.date-debug {
  position: fixed;
  left: 24px;
  bottom: 16px;
  width: 360px;
  max-height: 40vh;
  overflow: hidden;
  scrollbar-width: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  z-index: 20;
}

.date-debug::-webkit-scrollbar {
  display: none;
}

.date-debug:hover {
  overflow: auto;
}

.date-debug h4 {
  margin: 0 0 6px;
  font-size: 0.8rem;
}

.date-debug .row {
  padding: 4px 0;
  border-top: 1px solid var(--border);
}

.date-debug .row:first-of-type {
  border-top: none;
}

@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: 1fr;
  }
  .topbar-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

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

@media (max-width: 720px) {
  .profile-body {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }
  .topbar-left {
    flex-direction: column;
    align-items: flex-start;
  }
}

.exp-logo-row {
  margin: 8px 0 10px;
}

.exp-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px;
}

.exp-entry {
  display: grid;
  gap: 10px;
}

.exp-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.timeline-row .exp-header {
  margin-top: 2px;
}

.exp-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px;
}

.exp-logo-sm {
  width: 40px;
  height: 40px;
  padding: 4px;
}

.exp-attachment {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
}

.exp-thumb {
  width: 88px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(120deg, #dbe6f2, #f3f5f8);
  border: 1px solid var(--border);
}

.exp-attach-title {
  font-weight: 600;
}

.exp-title h3 {
  margin: 0 0 2px;
}

.exp-title p {
  margin: 0 0 4px;
}

.exp-attachment {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  cursor: pointer;
}

.exp-attachment-preview {
  align-items: center;
}

.exp-thumb-preview {
  width: 140px;
  height: 80px;
  overflow: hidden;
  background: #ffffff;
}

.exp-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exp-attachment:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.exp-thumb {
  width: 110px;
  height: 70px;
  border-radius: 8px;
  background: linear-gradient(120deg, #dfe6f2, #f6f7f9);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.exp-thumb-label {
  position: absolute;
  top: 6px;
  left: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.7rem;
  color: var(--muted);
}

.exp-skills {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.exp-more {
  display: none;
}

.exp-more.is-open {
  display: block;
}

.exp-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline;
}

.exp-skills::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: inline-block;
  transform: rotate(45deg);
}

/* Align experience text with logo top edge (LinkedIn-like) */
.exp-header {
  align-items: flex-start;
}

.exp-title {
  padding-top: 2px;
}

.exp-title h3 {
  margin-top: 0;
}

.exp-title p {
  margin-top: 0;
}

.exp-meta-box {
  border-left: 2px solid var(--border);
  padding: 0 0 0 12px;
  display: grid;
  gap: 4px;
}

.exp-meta-box h3 {
  margin: 0;
}

.exp-meta-box p {
  margin: 0;
}

.exp-logo {
  margin-top: 2px;
}

.exp-body {
  padding-left: 68px;
}

.exp-body p {
  margin-left: 12px;
}

@media (max-width: 720px) {
  .exp-body {
    padding-left: 0;
  }
}
