:root {
  --ebara-ink: #193049;
  --ebara-blue: #174a74;
  --ebara-line: #d3deec;
}

:root[data-layout="work"] .folio-entry {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 75% 37%, #17446d 0, transparent 50%),
    linear-gradient(125deg, #101b2b 8%, #0f1a29 52%, #123351 100%);
}

.folio-entry::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(0deg, #b5d7ff12 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, #b5d7ff12 0 1px, transparent 1px 40px);
  mask-image: linear-gradient(90deg, transparent 15%, #000 88%);
  content: "";
}

:root[data-layout="work"] .folio-case-links {
  width: min(100%, 29rem);
}

.folio-case-links a {
  border-color: #a6caff52;
  background: linear-gradient(110deg, #6ba9eb27, #96c6ff12);
  box-shadow: 0 6px 18px #0b1a3555;
}
.folio-case-links a:hover {
  border-color: #b1d9ffae;
  background: #559ce341;
}
.folio-case-links small { color: #d5e5f6; }

.resume-app { background: #eef3f9; }
.workspace-top, .resume-dock { border-color: var(--ebara-line); background: #f7faff; }
.workspace-logo .monogram, .resume-dock [aria-selected="true"] {
  border-color: var(--ebara-blue);
  background: var(--ebara-blue);
  color: #fff;
}
.workspace-heading .company-heading { color: var(--ebara-blue); }
.workspace-heading .resume-subject { color: var(--ebara-ink); }
.resume-panel { border-color: var(--ebara-line); box-shadow: 0 12px 36px #132d4710; }
.resume-panel .base .list > .item { border-color: #dce5ee; }

.record-description, .career-document, .resume-panel .base .list-introduction > .item > .essay-verbatim {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.record-description:empty { display: none; }
.resume-panel .base .item .content { line-height: 1.7; }
.career-document {
  padding: clamp(.9rem, 2vw, 1.45rem);
  border: 1px solid var(--ebara-line);
  border-radius: .68rem;
  background: #f7faff;
  color: #2d455a;
  line-height: 1.75;
}
.document-section-title { color: #183957; font-size: 1.08rem; }
.document-section-label { color: #1a4b70; }
.service-record { color: var(--ebara-ink); }

.essay-demo .inventory-section {
  padding: clamp(.85rem, 2.7vw, 1.8rem);
  border: 1px solid #445d78;
  border-radius: 1.14rem;
  background: linear-gradient(125deg, #12263a, #193d54);
}
.essay-demo .inventory-section > .shell { width: 100%; }
.essay-demo .inventory-copy h2 { font-size: clamp(1.45rem, 2.6vw, 2.25rem); }
.essay-demo .inventory-layout { gap: 1rem clamp(.9rem, 3vw, 2rem); }
.essay-demo .inventory-board { border-radius: .92rem; }

@media (max-width: 665px) {
  .folio-entry-grid { padding-top: 2.1rem; }
  .folio-entry-visual { padding-top: 0; }
}

@media (max-width: 480px) {
  .essay-demo .count-grid { grid-template-columns: 2.65rem repeat(3, minmax(0, 1fr)); gap: .33rem; }
  .essay-demo .count-head span:first-child { white-space: nowrap; }
}

@media (max-width: 360px) {
  .folio-entry-copy h1 { font-size: 2rem; }
}

@media print {
  .career-document { padding: 0; border: none; background: transparent; color: #111; }
}
