:root {
  --terminal: #241733;
  --terminal-2: #4b3566;
  --desktop-purple: #9177d8;
  --desktop-deep: #6d57bd;
  --jar-yellow: #f7d867;
  --jar-yellow-soft: #fff2a7;
  --cream: #fff9ea;
  --cream-2: #fff2d2;
  --ink: #2b2233;
  --muted: #695f73;
  --lavender: #d9c9ff;
  --lavender-mist: #e8ddff;
  --pink-purple: #c58cf0;
  --avatar-pink: #f2b8cf;
  --shadow: rgba(43, 34, 51, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "Fira Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--desktop-purple);
  overflow: hidden;
  letter-spacing: 0;
}
button, a { font: inherit; }
button { border: 0; }

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(247, 216, 103, 0.56), transparent 26%),
    radial-gradient(circle at 76% 72%, rgba(242, 184, 207, 0.34), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(232, 221, 255, 0.78), transparent 30%),
    linear-gradient(135deg, #fbf4d4 0%, #bba3ff 50%, #9177d8 100%);
  transition: opacity .65s ease, transform .65s var(--ease), visibility .65s;
}
.boot-screen.done { opacity: 0; transform: scale(1.04); visibility: hidden; }
.macbook { width: min(780px, 92vw); display: flex; flex-direction: column; align-items: center; }
.screen-bezel {
  width: min(720px, 92vw);
  padding: 0 14px 14px;
  border-radius: 18px 18px 0 0;
  background: #302938;
  box-shadow: 0 26px 70px rgba(43, 34, 51, .34);
}
.notch { width: 118px; height: 13px; margin: 0 auto; background: #302938; border-radius: 0 0 10px 10px; }
.terminal-screen {
  height: min(450px, 58vh);
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(rgba(255,255,255,.035) 50%, transparent 50%) 0 0 / 100% 4px,
    linear-gradient(140deg, var(--terminal), var(--terminal-2));
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.6vw, 14px);
  line-height: 1.75;
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.terminal-title { flex: 1; text-align: center; color: rgba(255,255,255,.48); font-size: 11px; }
.terminal-lines { padding: 18px 22px; }
.term-line { min-height: 24px; opacity: 0; transform: translateY(6px); white-space: pre-wrap; }
.term-line.visible { animation: lineIn .32s ease forwards; }
.prompt { color: var(--jar-yellow); font-weight: 700; }
.cmd { color: white; }
.output { color: rgba(255,255,255,.86); }
.progress { color: var(--jar-yellow-soft); letter-spacing: .08em; }
.cursor { display: inline-block; width: 9px; height: 17px; margin-left: 3px; background: #fff; vertical-align: -3px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.hinge { width: min(735px, 94vw); height: 3px; background: #b8abbc; }
.base { width: min(780px, 96vw); height: 17px; border-radius: 0 0 16px 16px; background: linear-gradient(#e2dfe7, #a9a1b0); }
.shadow { width: min(680px, 88vw); height: 38px; background: radial-gradient(ellipse, rgba(43,34,51,.28), transparent 70%); }
.skip-boot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 249, 234, .72);
  color: var(--ink);
  cursor: pointer;
}

.desktop {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  --wallpaper-image: url("assets/wallpaper-xiaoguan-main.jpg");
  background:
    linear-gradient(180deg, rgba(255,249,234,.04), rgba(75,53,102,.08)),
    var(--wallpaper-image),
    radial-gradient(circle at 50% 38%, rgba(255,242,167,.20), transparent 38%),
    linear-gradient(145deg, #c6a2ff 0%, #a983ef 42%, #7d61d6 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center, center, center, center;
  background-size: auto, cover, cover, cover;
}
.desktop::after {
  content: "";
  position: absolute;
  inset: 38px 0 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(247,216,103,.10), transparent 26%),
    linear-gradient(180deg, rgba(255,249,234,.04), rgba(43,34,51,.10));
}
.menu-bar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(255, 249, 234, .55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 30px rgba(43,34,51,.08);
  position: relative;
  z-index: 20;
}
.menu-left, .menu-right { display: flex; align-items: center; gap: 18px; }
.menu-bar button {
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
}
.menu-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 118px;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: #3c2456;
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(75,53,102,.62);
  letter-spacing: .02em;
}
.page-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(255,249,234,.42);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
  backdrop-filter: blur(18px) saturate(1.1);
}
.page-tabs button {
  min-width: 56px;
  height: 30px;
  padding: 0 12px;
  border-radius: 13px;
  color: #3f3150;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.page-tabs button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.58);
}
.page-tabs button.active {
  background: #fff9ea;
  color: #24172d;
  box-shadow: 0 6px 14px rgba(75,53,102,.12);
}
.page-tabs button.placeholder {
  color: #5d47aa;
}
.menu-right { font-size: 13px; color: rgba(43,34,51,.76); }
.wallpaper { position: absolute; inset: 38px 0 0; pointer-events: none; z-index: 2; opacity: .38; }
.spark {
  position: absolute;
  color: var(--jar-yellow);
  font-family: var(--font-mono);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(246,217,107,.5);
  animation: twinkle 3s ease-in-out infinite;
}
.s1 { top: 8%; left: 43%; font-size: 23px; }
.s2 { top: 18%; left: 82%; font-size: 15px; animation-delay: .8s; }
.s3 { top: 72%; left: 12%; font-size: 18px; animation-delay: 1.2s; }
.s4 { top: 62%; left: 66%; font-size: 26px; animation-delay: .4s; }
.s5 { top: 36%; left: 34%; font-size: 12px; animation-delay: 1.6s; }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.78) rotate(12deg); } }
.jar-orbit {
  position: absolute;
  border: 2px solid rgba(246,217,107,.35);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.jar-orbit.one { width: 430px; height: 150px; right: 8%; top: 15%; }
.jar-orbit.two { width: 330px; height: 105px; left: 34%; bottom: 14%; border-color: rgba(255,249,234,.28); }

.desktop-icons {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  max-width: calc(100vw - 48px);
  padding: 12px 20px 10px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 20%, rgba(247,216,103,.42), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(232,221,255,.62), transparent 32%),
    linear-gradient(135deg, rgba(255,249,234,.52), rgba(242,184,207,.32));
  backdrop-filter: blur(22px) saturate(1.18);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 22px 54px rgba(43,34,51,.22), inset 0 1px 0 rgba(255,255,255,.46);
}
.desktop-icon {
  position: relative;
  width: 66px;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 4px 8px;
  color: white;
  background: transparent;
  border-radius: 18px;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(43,34,51,.38);
  transition: transform .18s var(--ease), filter .18s ease;
  z-index: 1;
}
.desktop-icon:hover, .desktop-icon:focus-visible {
  transform: translateY(-6px) scale(1.06);
  filter: saturate(1.08);
  outline: 0;
}
.desktop-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255,249,234,.92);
  box-shadow: 0 0 10px rgba(255,249,234,.68);
}
.icon-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 150px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255,249,234,.86);
  color: #24172d;
  box-shadow: 0 10px 22px rgba(43,34,51,.13), inset 0 1px 0 rgba(255,255,255,.5);
  backdrop-filter: blur(14px) saturate(1.08);
  opacity: 0;
  visibility: hidden;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-shadow: none;
  white-space: normal;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease, transform .16s var(--ease);
}
.desktop-icon:hover .icon-label,
.desktop-icon:focus-visible .icon-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.icon-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(255,249,234,.76);
}
.icon-art { position: relative; display: block; width: 58px; height: 58px; filter: drop-shadow(0 10px 14px rgba(43,34,51,.26)); }
.icon-art.folder {
  border-radius: 9px;
  background: linear-gradient(#fff0a8 0 22%, #f6d96b 22% 100%);
}
.icon-art.folder::before {
  content: "";
  position: absolute;
  left: 4px; top: -5px;
  width: 24px; height: 12px;
  border-radius: 5px 5px 0 0;
  background: #ffe889;
}
.icon-art.file, .icon-art.card {
  border-radius: 10px;
  background: #fff9ea;
  border: 1px solid rgba(43,34,51,.12);
}
.icon-art.file::after, .icon-art.card::after {
  position: absolute;
  left: 50%; bottom: 7px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: white;
  border-radius: 5px;
  padding: 2px 6px;
  background: var(--desktop-deep);
}
.icon-art.txt::after { content: ".txt"; }
.icon-art.pdf::after { content: ".pdf"; background: #b750dd; }
.icon-art.note::after { content: ".txt"; background: #d19b19; }
.icon-art.app {
  border-radius: 14px;
  background:
    radial-gradient(circle at 34% 30%, var(--jar-yellow) 0 22%, transparent 23%),
    linear-gradient(140deg, #fff9ea, #d9c9ff 72%);
  border: 1px solid rgba(255,255,255,.5);
}
.icon-art.card::after { content: "card"; background: #8d78d6; }

.sticky-note {
  position: absolute;
  right: 7%;
  bottom: 16%;
  width: min(330px, 34vw);
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(160deg, #fff3a9, #fff9ea);
  box-shadow: 0 24px 50px rgba(43,34,51,.18);
  transform: rotate(-2deg);
  z-index: 4;
}
.note-avatar {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 22px;
  float: right;
  margin: -6px -4px 10px 14px;
  border: 3px solid rgba(255,249,234,.86);
  box-shadow: 0 10px 22px rgba(43,34,51,.16);
}
.sticky-note strong { display: block; margin-bottom: 10px; font-family: "Fira Code", monospace; }
.sticky-note p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 24px;
  background: rgba(255,249,234,.44);
  backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 18px 42px rgba(43,34,51,.18), inset 0 1px 0 rgba(255,255,255,.44);
}
.dock button {
  min-width: 74px;
  height: 40px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  color: #3f3150;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.dock button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.8);
}
.dock button.active {
  background: #fff9ea;
  color: #2b2233;
  box-shadow: 0 8px 18px rgba(75,53,102,.14), inset 0 -1px 0 rgba(109,87,189,.12);
}
.dock button.placeholder {
  color: #4b3566;
}
.dock button.placeholder::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 5px;
  border-radius: 50%;
  background: rgba(75,53,102,.28);
  vertical-align: middle;
}

.window-layer { position: absolute; inset: 38px 0 0; pointer-events: none; z-index: 25; }
.os-window {
  position: absolute;
  left: 17%;
  top: 10%;
  width: min(680px, 86vw);
  max-height: min(690px, 78vh);
  overflow: hidden;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid rgba(43,34,51,.12);
  box-shadow: 0 26px 70px var(--shadow), inset 0 1px 0 rgba(255,255,255,.75);
  pointer-events: auto;
  animation: windowIn .24s var(--ease);
}
@keyframes windowIn { from { opacity: 0; transform: scale(.94) translateY(14px); } }
.window-chrome {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(255,255,255,.48);
  border-bottom: 1px solid rgba(43,34,51,.08);
  cursor: grab;
  user-select: none;
}
.window-chrome:active { cursor: grabbing; }
.traffic { display: flex; gap: 7px; }
.traffic button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}
.close { background: #ff5f57; }
.min { background: #ffbd2e; }
.max { background: #28ca41; }
.window-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(43,34,51,.58);
  padding-right: 52px;
}
.window-body {
  overflow: auto;
  max-height: calc(min(690px, 78vh) - 40px);
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(109,87,189,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,249,234,.84));
}
.resume-window { width: min(980px, 92vw); height: min(760px, 84vh); left: 5%; top: 5%; }
.resume-window .window-body { height: calc(100% - 40px); padding: 0; max-height: none; }
.pdf-body iframe { width: 100%; height: 100%; border: 0; background: white; }
.text-window { width: min(640px, 86vw); }
.case-window { width: min(760px, 88vw); }
.workflow-window { width: min(820px, 90vw); }
.folder-window { width: min(720px, 88vw); }
.dashboard-window { width: min(920px, 92vw); }
.data-window { width: min(820px, 90vw); }
.contact-window { width: min(780px, 90vw); }
.prose {
  font-size: 15px;
}
.about-header, .contact-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: start;
}
.about-manifesto {
  display: block;
  max-width: 620px;
  position: relative;
}
.about-manifesto::before {
  content: "Jar";
  position: absolute;
  left: -24px;
  top: -36px;
  z-index: -1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px;
  font-style: italic;
  font-weight: 700;
  color: rgba(109,87,189,.09);
  pointer-events: none;
}
.section-kicker {
  margin: 0 0 30px;
  color: rgba(75,53,102,.62);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.about-title {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 38px !important;
}
.about-title span,
.about-title mark {
  width: 100%;
}
.about-manifesto mark {
  display: block;
  color: inherit;
  background: linear-gradient(transparent 18%, rgba(247,216,103,.78) 18% 88%, transparent 88%);
  padding: 0 .08em .02em 0;
}
.profile-avatar {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 30px;
  background: var(--avatar-pink);
  border: 4px solid rgba(255,255,255,.76);
  box-shadow: 0 18px 34px rgba(43,34,51,.16);
  transform: rotate(3deg);
}
.process-list {
  display: grid;
  gap: 0;
  margin: 44px 0 8px;
  position: relative;
}
.process-list section {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  position: relative;
  padding: 0 0 30px;
}
.process-list section::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(rgba(109,87,189,.26), rgba(247,216,103,.52));
}
.process-list section:last-child::before {
  display: none;
}
.process-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6d57bd;
  color: #fff9ea;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(109,87,189,.2);
}
.process-list h3 {
  margin: 1px 0 6px;
  color: #24172d;
  font-size: 20px;
}
.process-list p {
  margin: 0;
  max-width: 520px;
}
.about-summary {
  width: fit-content;
  max-width: 520px;
  margin-top: 20px;
}
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(3px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease);
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.contact-avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 26px;
  border: 4px solid rgba(255,255,255,.76);
  box-shadow: 0 16px 28px rgba(43,34,51,.14);
}
.prose h1, .prose h2, .window-body h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: 0;
  color: #24172d;
}
.prose h3 {
  margin: 28px 0 12px;
  font-size: 17px;
  color: #4e3a95;
}
.prose p, .muted, .prose li {
  color: var(--muted);
  line-height: 1.9;
}
.prose p {
  margin: 0 0 14px;
}
.lead {
  margin: 0 0 20px;
  font-size: 19px;
  line-height: 1.75;
  color: #3d3047;
  font-weight: 700;
}
.lead.small {
  font-size: 16px;
  font-weight: 500;
  color: #51465d;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--desktop-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.profile-strip, .doc-meta, .archive-toolbar, .app-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(238,230,255,.74);
  border: 1px solid rgba(93,71,170,.12);
}
.profile-strip span, .doc-meta span, .archive-toolbar span, .app-toolbar span, .app-toolbar strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,249,234,.86);
  color: #5d47aa;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.archive-toolbar {
  justify-content: space-between;
  background: rgba(255,242,167,.56);
}
.app-toolbar {
  align-items: center;
  background: rgba(36,23,51,.06);
}
.app-toolbar strong {
  margin-left: auto;
  background: #4b3566;
  color: #fff9ea;
}
.traffic-mini {
  width: 48px;
  height: 12px;
  padding: 0 !important;
  background:
    radial-gradient(circle at 6px 6px, #ff5f57 0 5px, transparent 5.5px),
    radial-gradient(circle at 24px 6px, #ffbd2e 0 5px, transparent 5.5px),
    radial-gradient(circle at 42px 6px, #28ca41 0 5px, transparent 5.5px) !important;
}
.quote-card {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(109,87,189,.18) 0 4px, transparent 4px),
    #fff1aa;
  border: 1px solid rgba(43,34,51,.08);
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 12px 24px rgba(43,34,51,.06);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.tag-row span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #eee6ff;
  color: #5d47aa;
  font-size: 13px;
  font-weight: 700;
}
.folder-grid, .workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.dashboard-hero {
  display: block;
}
.dashboard-hero h2 { margin-bottom: 12px; }
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 20px;
}
.dashboard-metrics div {
  min-height: 92px;
  padding: 15px 13px;
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(75,53,102,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s ease, background .22s ease;
}
.dashboard-metrics div:hover {
  transform: translateY(-5px) scale(1.025);
  background: rgba(255,255,255,.82);
  border-color: rgba(109,87,189,.28);
  box-shadow: 0 18px 34px rgba(43,34,51,.12), inset 0 1px 0 rgba(255,255,255,.74);
}
.dashboard-metrics strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  color: #5d47aa;
}
.dashboard-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 16px;
  align-items: start;
}
.jar-inventory,
.capacity-panel {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,249,234,.62);
  border: 1px solid rgba(75,53,102,.1);
  box-shadow: 0 12px 24px rgba(43,34,51,.06);
}
.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.panel-title h3 {
  margin: 0;
  font-size: 18px;
  color: #24172d;
}
.panel-title span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(75,53,102,.58);
}
.inventory-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 13px;
  background: rgba(255,255,255,.58);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(75,53,102,.08);
  transition: transform .18s ease, background .18s ease;
}
.inventory-row:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.78);
}
.inventory-row span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #4b3566;
}
.inventory-row b {
  color: var(--muted);
  font-size: 13px;
}
.skill-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 0 16px;
  color: var(--ink);
}
.skill-bar::before,
.skill-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  border-radius: 999px;
}
.skill-bar::before { background: rgba(109,87,189,.13); }
.skill-bar::after {
  right: auto;
  width: var(--level);
  background: linear-gradient(90deg, #6d57bd, #f7d867);
}
.skill-bar span { font-weight: 800; }
.skill-bar b {
  font-size: 12px;
  color: #5d47aa;
}
.portfolio-entry {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(247,216,103,.76), rgba(232,221,255,.8));
  color: #24172d;
  border: 1px solid rgba(75,53,102,.1);
}
.portfolio-entry span {
  font-family: var(--font-mono);
  font-weight: 800;
}
.portfolio-entry b { font-size: 14px; }
.jar-showcase {
  position: relative;
  margin-top: 20px;
}
.jar-showcase::before {
  content: "drag jars sideways";
  display: block;
  margin: 0 0 10px;
  color: rgba(75,53,102,.58);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}
.jar-story-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 8px 18px 0;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(109,87,189,.44) rgba(255,249,234,.5);
}
.jar-story-list.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.jar-story-list::-webkit-scrollbar {
  height: 9px;
}
.jar-story-list::-webkit-scrollbar-track {
  background: rgba(255,249,234,.52);
  border-radius: 999px;
}
.jar-story-list::-webkit-scrollbar-thumb {
  background: rgba(109,87,189,.42);
  border-radius: 999px;
}
.jar-story {
  position: relative;
  flex: 0 0 min(390px, 78vw);
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--jar-card-color, #F7D867) 38%, transparent), transparent 25%),
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,249,234,.72));
  border: 1px solid rgba(75,53,102,.1);
  box-shadow: 0 18px 34px rgba(43,34,51,.08);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s ease;
  display: flex;
  flex-direction: column;
}
.jar-story::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--jar-card-color, #d5ff37);
}
.jar-story.active,
.jar-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(43,34,51,.13);
}
.jar-type {
  display: inline-block;
  margin-bottom: 16px;
  color: rgba(75,53,102,.62);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}
.jar-story h3 {
  margin: 0 0 10px;
  color: #24172d;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
}
.jar-story p {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}
.jar-action {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--jar-card-color, #F7D867);
  color: #151515;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(43,34,51,.12);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.jar-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(43,34,51,.16);
  filter: saturate(1.05);
}
.jar-action i {
  width: 12px;
  height: 12px;
  position: relative;
}
.jar-action i::before,
.jar-action i::after,
.jar-action i {
  background:
    radial-gradient(circle at 2px 2px, #151515 0 2px, transparent 2.5px),
    radial-gradient(circle at 9px 4px, #151515 0 2px, transparent 2.5px),
    radial-gradient(circle at 5px 10px, #151515 0 2px, transparent 2.5px);
}
.jar-file, .workflow-card {
  text-align: left;
  border-radius: 16px;
  padding: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(246,217,107,.38), transparent 26%),
    linear-gradient(160deg, #fff9ea, #eee6ff);
  border: 1px solid rgba(43,34,51,.1);
  box-shadow: 0 10px 20px rgba(43,34,51,.06);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.jar-file::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--jar-yellow), var(--avatar-pink));
}
.jar-file:hover, .workflow-card:hover { transform: translateY(-2px); transition: transform .18s ease; }
.jar-file span { display: block; font-family: var(--font-mono); font-weight: 700; margin-bottom: 8px; }
.jar-file small { color: var(--muted); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.metric-grid.compact { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.metric-grid div {
  padding: 18px;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.52), rgba(238,230,255,.88));
  border: 1px solid rgba(93,71,170,.1);
}
.metric-grid strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.8vw, 38px);
  color: #5d47aa;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.metric-grid strong.metric-word {
  font-family: var(--font-ui);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
}
.metric-grid strong.metric-combo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--case-accent, #5d47aa);
}
.metric-combo .metric-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 900;
  line-height: .95;
  font-variant-numeric: tabular-nums;
  color: inherit;
}
.metric-combo .metric-unit {
  font-family: var(--font-ui);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
  color: inherit;
}
.metric-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.sheet {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(43,34,51,.1);
}
.sheet-row {
  display: grid;
  grid-template-columns: 1.1fr .7fr 2fr;
  gap: 12px;
  padding: 15px 16px;
  background: rgba(255,255,255,.48);
  border-bottom: 1px solid rgba(43,34,51,.08);
}
.sheet-row.head {
  background: linear-gradient(90deg, var(--jar-yellow), #eee6ff);
  font-weight: 900;
}
.sheet-row strong { color: #5d47aa; font-family: var(--font-mono); }
.workflow-card h3 { margin: 0 0 10px; font-size: 17px; }
.workflow-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.workflow-card b {
  color: #4b3566;
  font-family: var(--font-mono);
  font-size: 12px;
}
.app-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #5d47aa;
  color: #fff9ea;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 22px; }
.check-list span { padding: 15px; border-radius: 12px; background: #fff1aa; font-weight: 700; }
.jar-detail-window {
  width: min(1040px, 92vw);
}
.jar-detail-body {
  box-sizing: border-box;
  padding: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(93,71,170,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,71,170,.055) 1px, transparent 1px),
    #fffdf5;
  background-size: 28px 28px;
}
.jar-case-shell {
  --case-accent: #6d57bd;
  --case-accent-soft: rgba(109,87,189,.16);
  --case-highlight: #f7d867;
  --case-wash: #fff7cf;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  min-height: 620px;
  width: 100%;
  min-width: 0;
}
.content-theme { --case-accent: #8d6a00; --case-accent-soft: rgba(247,216,103,.32); --case-highlight: #F7D867; --case-wash: #fff6c9; }
.live-theme { --case-accent: #6d57bd; --case-accent-soft: rgba(232,221,255,.48); --case-highlight: #E8DDFF; --case-wash: #f5efff; }
.meituan-theme { --case-accent: #6757c8; --case-accent-soft: rgba(220,214,255,.48); --case-highlight: #DCD6FF; --case-wash: #f8f4ff; }
.offline-theme { --case-accent: #b94f7a; --case-accent-soft: rgba(242,184,207,.42); --case-highlight: #F2B8CF; --case-wash: #fff0f6; }
.sop-theme { --case-accent: #347899; --case-accent-soft: rgba(199,240,255,.52); --case-highlight: #C7F0FF; --case-wash: #effbff; }
.jar-case-nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 110px);
  min-height: 580px;
  padding: 26px 18px;
  background:
    radial-gradient(circle at 20% 18%, color-mix(in srgb, var(--case-highlight) 84%, white), transparent 34%),
    linear-gradient(180deg, var(--case-wash), rgba(255,249,234,.78));
  border-right: 1px solid rgba(75,53,102,.1);
}
.jar-case-nav p {
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  color: #24172d;
  word-break: break-word;
}
.jar-case-nav a {
  display: block;
  margin-bottom: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  color: #51465d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s var(--ease), color .2s ease, background .2s ease;
}
.jar-case-nav a:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,.6);
  color: var(--case-accent);
}
.jar-case-content {
  display: grid;
  gap: 24px;
  padding: 30px;
  min-width: 0;
}
.mag-panel,
.component-panel,
.pull-note {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(75,53,102,.1);
  box-shadow: 0 18px 36px rgba(43,34,51,.08);
}
.mag-panel {
  min-height: 280px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 16%, color-mix(in srgb, var(--case-highlight) 70%, white), transparent 32%),
    linear-gradient(135deg, rgba(255,249,234,.94) 0%, var(--case-wash) 62%, color-mix(in srgb, var(--case-highlight) 62%, white) 100%);
}
.mag-panel::before {
  content: "Jar";
  position: absolute;
  right: 28px;
  bottom: -18px;
  color: color-mix(in srgb, var(--case-accent) 12%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 116px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.section-kicker {
  margin-bottom: 18px !important;
  color: var(--case-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.mag-panel h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
}
.component-panel {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.58)),
    var(--case-wash);
  backdrop-filter: blur(10px);
}
.component-panel .panel-title {
  margin-bottom: 18px;
}
.component-panel .panel-title h3 {
  margin: 0;
  color: #24172d;
}
.component-panel .panel-title span {
  color: var(--case-accent);
}
.pull-note {
  padding: 22px 24px 22px 74px;
  background:
    linear-gradient(90deg, var(--case-highlight) 0 48px, rgba(255,249,234,.86) 48px);
  color: #24172d;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.75;
}
.pull-note::before {
  content: "!";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #24172d;
  color: #fff9ea;
  font-family: var(--font-mono);
  font-size: 12px;
}
.case-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 26px 0;
}
.case-node,
.platform-card,
.sop-file {
  border-radius: 16px;
  padding: 18px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(75,53,102,.1);
  box-shadow: 0 12px 24px rgba(43,34,51,.06);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s ease;
}
.case-node:hover,
.platform-card:hover,
.sop-file:hover,
.funnel-step:hover,
.event-step:hover,
.offer-stack div:hover {
  transform: translateY(-4px);
  border-color: var(--case-accent-soft);
  box-shadow: 0 18px 34px rgba(43,34,51,.12);
}
.case-node span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--case-accent);
  color: #fff9ea;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
}
.case-node b,
.platform-card b {
  display: block;
  margin-bottom: 8px;
  color: #24172d;
}
.case-node p,
.platform-card p,
.sop-file p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.case-proof {
  margin-top: 24px;
}
.case-proof div {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s ease;
}
.jar-case-shell .case-proof strong {
  color: var(--case-accent);
}
.offline-theme .case-proof div {
  background:
    radial-gradient(circle at 86% 12%, rgba(247,216,103,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(242,184,207,.34));
  border-color: rgba(185,79,122,.16);
}
.offline-theme .case-proof div:hover {
  background:
    radial-gradient(circle at 86% 12%, rgba(247,216,103,.24), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(242,184,207,.46));
}
.case-proof div:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 34px rgba(43,34,51,.12);
}
.offline-theme .case-proof div:hover {
  background:
    radial-gradient(circle at 86% 12%, rgba(247,216,103,.24), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(242,184,207,.46));
}
.live-funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.funnel-step {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, var(--case-highlight), transparent 32%),
    linear-gradient(160deg, rgba(255,242,167,.66), rgba(232,221,255,.58));
  border: 1px solid rgba(75,53,102,.1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s ease;
}
.funnel-step::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: rgba(109,87,189,.32);
}
.funnel-step:last-child::after {
  display: none;
}
.funnel-step b {
  display: block;
  color: #24172d;
  font-size: 18px;
}
.funnel-step span {
  display: inline-block;
  margin: 8px 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,249,234,.78);
  color: var(--case-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}
.funnel-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}
.platform-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}
.offer-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.offer-stack div {
  min-height: 150px;
  padding: 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(247,216,103,.28), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(220,214,255,.36));
  border: 1px solid rgba(103,87,200,.16);
  box-shadow: 0 12px 24px rgba(43,34,51,.06);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s ease;
}
.offer-stack small,
.offer-stack span {
  display: block;
  color: var(--muted);
}
.offer-stack small {
  margin-bottom: 28px;
  color: var(--case-accent);
  font-family: var(--font-mono);
  font-weight: 900;
  text-transform: uppercase;
}
.offer-stack b {
  display: block;
  margin-bottom: 10px;
  color: #24172d;
  font-size: 20px;
}
.platform-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--case-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}
.event-timeline {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}
.event-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(75,53,102,.1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s ease;
}
.event-step span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--case-highlight);
  color: #4b3566;
  font-family: var(--font-mono);
  font-weight: 800;
}
.event-step h3 {
  margin: 0 0 6px;
}
.event-step p {
  margin: 0;
}
.sop-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.sop-file span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--case-accent);
  color: #fff9ea;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}
.sop-file h3 {
  margin: 0 0 8px;
}
.method-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.method-strip span {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(238,230,255,.68));
  color: #24172d;
  text-align: center;
  font-weight: 900;
  border: 1px solid rgba(75,53,102,.1);
}
.sop-theme .method-strip span {
  background:
    radial-gradient(circle at 86% 12%, rgba(247,216,103,.24), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(199,240,255,.42));
  border-color: rgba(52,120,153,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  color: #243545;
}
.notes-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  counter-reset: note;
}
.notes-list li {
  counter-increment: note;
  position: relative;
  padding: 15px 16px 15px 54px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(43,34,51,.08);
}
.notes-list li::before {
  content: counter(note, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #5d47aa;
}
.contact-shell {
  display: grid;
  gap: 18px;
}
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 22px;
  align-items: stretch;
  padding: 26px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 14%, rgba(247,216,103,.52), transparent 30%),
    linear-gradient(135deg, rgba(255,249,234,.96), rgba(232,221,255,.72));
  border: 1px solid rgba(93,71,170,.12);
  box-shadow: 0 18px 36px rgba(43,34,51,.08);
}
.contact-hero h2 {
  margin-bottom: 12px;
}
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  color: #5d47aa;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}
.contact-status i,
.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 5px rgba(52,199,89,.12);
}
.avatar-widget {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 168px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,242,167,.44));
  border: 1px solid rgba(247,216,103,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 28px rgba(43,34,51,.08);
}
.avatar-widget .contact-avatar {
  width: 104px;
  height: 104px;
  border-radius: 28px;
}
.avatar-widget b {
  color: #4b3566;
  font-size: 13px;
}
.online-dot {
  position: absolute;
  right: 35px;
  top: 36px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff9ea;
}
.contact-panel {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(75,53,102,.1);
  box-shadow: 0 14px 30px rgba(43,34,51,.07);
}
.contact-panel .panel-title {
  margin-bottom: 14px;
}
.contact-panel .panel-title h3 {
  margin: 0;
  color: #24172d;
}
.contact-panel .panel-title span {
  color: #6d57bd;
}
.contact-card {
  display: grid;
  gap: 10px;
}
.contact-card div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,249,234,.72), rgba(238,230,255,.54));
  border: 1px solid rgba(93,71,170,.1);
}
.contact-card span { color: var(--muted); font-size: 13px; }
.contact-card a,
.contact-card strong {
  min-width: 0;
  color: #24172d;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.contact-card button {
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #5d47aa;
  color: #fff9ea;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  transition: transform .18s var(--ease), background .18s ease;
}
.contact-card button:hover {
  transform: translateY(-1px);
  background: #4b3566;
}
.contact-card button.copied {
  background: var(--jar-yellow);
  color: #24172d;
}
.contact-command-list {
  display: grid;
  gap: 8px;
}
.contact-command-list div {
  display: grid;
  grid-template-columns: 104px 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255,242,167,.56), rgba(255,255,255,.72) 34%, rgba(232,221,255,.42));
  border: 1px solid rgba(93,71,170,.1);
  transition: transform .18s var(--ease), border-color .18s ease, background .18s ease;
}
.contact-command-list div:hover {
  transform: translateX(4px);
  border-color: rgba(109,87,189,.24);
  background:
    linear-gradient(90deg, rgba(255,242,167,.76), rgba(255,255,255,.84) 34%, rgba(232,221,255,.5));
}
.contact-command-list kbd {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 9px;
  background: #4b3566;
  color: #fff9ea;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.16);
}
.contact-command-list strong {
  color: #24172d;
  font-size: 15px;
  font-weight: 900;
}
.contact-command-list span {
  color: #6d57bd;
  font-size: 13px;
  line-height: 1.5;
}
.contact-note {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 10%, rgba(232,221,255,.38), transparent 28%),
    linear-gradient(135deg, #ffe777, #fff2a7 56%, #fff9ea);
  border: 1px solid rgba(247,216,103,.72);
  color: #24172d;
  font-weight: 900;
  line-height: 1.7;
  box-shadow: 0 12px 24px rgba(43,34,51,.06);
}
.contact-tags {
  margin-top: 0;
}

.click-star {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  color: var(--jar-yellow);
  font-weight: 900;
  animation: popStar .7s ease-out forwards;
}
@keyframes popStar {
  from { transform: scale(.2) rotate(0); opacity: .9; }
  to { transform: scale(1.9) rotate(55deg); opacity: 0; }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .menu-bar {
    padding: 0 10px;
  }
  .menu-left {
    gap: 8px;
    min-width: 0;
  }
  .menu-logo {
    min-width: auto;
  }
  .logo-sub,
  .menu-right span:first-child {
    display: none;
  }
  .page-tabs {
    gap: 3px;
    padding: 4px;
  }
  .page-tabs button {
    min-width: auto;
    height: 28px;
    padding: 0 9px;
    font-size: 12px;
  }
  .desktop { min-height: 100svh; overflow: hidden; padding-bottom: 134px; }
  .desktop-icons {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 14px;
    transform: none;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    max-width: none;
    padding: 12px 14px 10px;
    overflow-x: auto;
    border-radius: 24px;
  }
  .desktop-icon {
    flex: 0 0 62px;
    width: 62px;
    min-height: 64px;
  }
  .icon-art {
    width: 54px;
    height: 54px;
  }
  .icon-label {
    max-width: 126px;
    font-size: 12px;
  }
  .window-layer { position: fixed; inset: 38px 0 0; }
  .os-window, .resume-window {
    left: 10px !important;
    top: 12px !important;
    width: calc(100vw - 20px);
    max-height: calc(100svh - 60px);
  }
  .resume-window { height: calc(100svh - 66px); }
  .window-body { padding: 22px; max-height: calc(100svh - 100px); }
  .jar-detail-body { padding: 0; }
  .metric-grid, .sheet-row { grid-template-columns: 1fr; }
  .live-funnel,
  .platform-board,
  .sop-library,
  .offer-stack,
  .method-strip {
    grid-template-columns: 1fr;
  }
  .funnel-step::after {
    display: none;
  }
  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-status {
    min-height: 86px;
  }
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .jar-story {
    min-height: auto;
    flex-basis: min(330px, 84vw);
  }
  .about-header, .contact-head { grid-template-columns: 1fr; }
  .profile-avatar, .contact-avatar { width: 92px; height: 92px; }
  .contact-hero,
  .contact-card div {
    grid-template-columns: 1fr;
  }
  .avatar-widget {
    min-height: 150px;
  }
  .contact-command-list div {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .jar-detail-window {
    width: calc(100vw - 20px);
  }
  .jar-case-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .jar-case-nav {
    position: relative;
    height: auto;
    min-height: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(75,53,102,.1);
  }
  .jar-case-nav p {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 0;
  }
  .jar-case-nav a {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }
  .jar-case-content {
    padding: 18px;
  }
  .mag-panel {
    min-height: 0;
    padding: 28px 22px;
    background:
      linear-gradient(180deg, transparent 0 62%, var(--case-highlight) 62% 100%),
      rgba(255,249,234,.86);
  }
  .mag-panel::before {
    font-size: 72px;
  }
  .pull-note {
    padding-left: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
