/* folio — a quiet, editorial home for a professional story */
:root {
  color-scheme: light;
  --ink: #262733;
  --ink-soft: #515462;
  --muted: #8b8c99;
  --line: #ececf0;
  --canvas: #f8f8fa;
  --purple: #6959c8;
  --purple-dark: #5545b3;
  --purple-soft: #f0eefc;
  --green: #319a78;
  --shadow: 0 12px 35px rgba(34, 34, 55, .035), 0 2px 8px rgba(34, 34, 55, .025);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.5; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(105, 89, 200, .25); outline-offset: 3px; }
.icon { display: inline-block; width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 14px; background: white; border-radius: 6px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

/* Header and global frame */
.site-header { height: 76px; background: rgba(255,255,255,.97); border-bottom: 1px solid #ebebef; }
.header-inner { max-width: 1370px; height: 100%; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: #6d5bc5; color: #fff; border-radius: 11px; box-shadow: 0 4px 10px rgba(105,89,200,.2); }
.brand-mark svg { width: 29px; height: 29px; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; gap: 4px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -1.2px; }
.brand-period, .title-period { color: #7969d2; }
.brand-caption { font-size: 8px; letter-spacing: 1.15px; font-weight: 800; color: #a4a2ac; white-space: nowrap; }
.header-separator { height: 27px; width: 1px; background: #e9e9ee; margin: 0 31px; }
.header-nav { height: 100%; display: flex; align-items: stretch; }
.header-nav-link { position: relative; display: flex; align-items: center; color: #7d7d89; font-weight: 600; font-size: 13px; }
.header-nav-link.is-current { color: #3b3948; }
.header-nav-link.is-current::after { content: ""; height: 3px; border-radius: 3px 3px 0 0; background: #7563cc; position: absolute; bottom: 0; left: 0; right: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 23px; }
.header-visibility { color: #858790; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; background: #59b394; border-radius: 50%; box-shadow: 0 0 0 3px #e5f4ee; }
.button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; border-radius: 8px; font-weight: 700; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button .icon { width: 16px; height: 16px; }
.button-header { border-color: #e5e3ed; color: #4e465f; background: #fff; padding: 10px 14px; font-size: 12px; }
.button-header:hover { border-color: #cfc8ed; background: #faf9ff; }
.button-header .icon { color: #7767c8; }
.button-primary { color: white; background: #6958c5; border-color: #6958c5; padding: 12px 17px; box-shadow: 0 4px 9px rgba(105,88,197,.16); }
.button-primary:hover { background: #5b4bb4; border-color: #5b4bb4; box-shadow: 0 5px 14px rgba(105,88,197,.24); }
.button-primary:disabled { opacity: .6; transform: none; cursor: wait; }
.button-secondary { background: white; color: #5c5d69; border-color: #e2e2e9; padding: 12px 17px; }
.button-secondary:hover { border-color: #bfb7e6; background: #fcfbff; }
.header-back { display: inline-flex; align-items: center; gap: 8px; color: #6a6977; font-size: 12px; font-weight: 700; }
.header-back:hover { color: var(--purple); }
.header-back .icon { width: 15px; height: 15px; }
.page-shell { width: min(100% - 80px, 1190px); margin: 0 auto; padding-top: 34px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #aaa9b3; font-size: 9px; font-weight: 800; letter-spacing: 1.1px; }
.breadcrumb-slash { color: #d2d1da; font-size: 13px; font-weight: 400; }
.breadcrumb-current { color: #81769f; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 28px 0 31px; }
.heading-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #887bb9; font-size: 9px; font-weight: 800; letter-spacing: 1.35px; }
.heading-kicker > span, .profile-eyebrow > span, .gate-eyebrow > span { width: 17px; height: 2px; border-radius: 2px; background: #8e80cc; }
.page-heading h1, .editor-page-heading h1 { margin: 0; font-size: 36px; line-height: 1.12; font-weight: 750; letter-spacing: -1.7px; }
.page-heading p, .editor-page-heading p { margin: 9px 0 0; color: #898a96; font-size: 14px; }
.view-indicator { display: flex; align-items: center; gap: 11px; padding-bottom: 2px; }
.view-indicator-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #8376be; background: #eeecf9; border-radius: 10px; }
.view-indicator-icon .icon { width: 17px; height: 17px; }
.view-indicator strong, .view-indicator small { display: block; }
.view-indicator strong { font-size: 11px; color: #555463; }
.view-indicator small { color: #a3a2ad; margin-top: 2px; font-size: 10px; }
.view-indicator > .status-dot { width: 6px; height: 6px; margin-left: 5px; }
.site-footer { margin-top: 52px; border-top: 1px solid #efeff2; }
.footer-inner { width: min(100% - 80px, 1190px); min-height: 75px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #a5a4ad; font-size: 11px; }
.footer-brand { color: #8c879f; font-size: 13px; font-weight: 800; letter-spacing: -.5px; }
.footer-inner > span:last-child { font-size: 10px; letter-spacing: .1px; }
.footer-inner > span:last-child span { color: #b6a9dc; font-size: 13px; margin-left: 4px; }

/* Public resume */
.resume-layout, .editor-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 34px; align-items: start; }
.page-sidebar { padding-top: 7px; }
.sidebar-title { display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #a8a6b0; font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.sidebar-title span { height: 1px; flex: 1; background: #e8e8ed; }
.section-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; }
.section-nav-link { min-height: 41px; display: flex; align-items: center; gap: 13px; padding: 0 12px; border-radius: 8px; color: #82828d; font-size: 12px; font-weight: 600; transition: background .18s, color .18s; }
.section-nav-link:hover { color: #6253b5; background: #f1effa; }
.section-nav-link.is-active { color: #5f51b0; background: #eeecf9; }
.nav-number { color: #b8b6c1; font-size: 10px; font-weight: 700; letter-spacing: .2px; }
.section-nav-link.is-active .nav-number { color: #9a8ed0; }
.nav-active-dot { width: 5px; height: 5px; border-radius: 50%; margin-left: auto; opacity: 0; background: #8474d0; }
.section-nav-link.is-active .nav-active-dot { opacity: 1; }
.sidebar-note { overflow: hidden; position: relative; margin-top: 35px; padding: 17px 16px 18px; border: 1px solid #eae7f8; border-radius: 11px; background: #f2f0fb; }
.note-illustration { position: relative; width: 60px; height: 47px; margin: 0 0 12px 2px; }
.note-illustration-page { position: absolute; left: 4px; top: 3px; width: 32px; height: 38px; display: grid; place-items: center; color: #8a79cc; background: white; border: 1px solid #e2dcf7; border-radius: 5px; transform: rotate(-7deg); box-shadow: 0 3px 7px rgba(87,73,160,.08); }
.note-illustration-page .icon { width: 22px; height: 22px; }
.note-sparkle { position: absolute; color: #b6a8e1; }
.note-sparkle-one { left: 38px; top: 0; font-size: 17px; }
.note-sparkle-two { left: 44px; top: 24px; font-size: 10px; }
.sidebar-note h2 { margin: 0; color: #514a69; font-size: 12px; font-weight: 750; letter-spacing: -.2px; }
.sidebar-note p { margin: 7px 0 12px; color: #8d88a2; font-size: 11px; line-height: 1.6; }
.sidebar-note a { color: #7867bd; font-size: 10px; font-weight: 750; display: inline-flex; align-items: center; gap: 4px; }
.sidebar-note a:hover { color: #51409d; }
.sidebar-note a .icon { width: 12px; height: 12px; }
.resume-paper { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e9e9ef; border-radius: 13px; box-shadow: var(--shadow); }
.paper-topline { min-height: 76px; padding: 19px 28px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.paper-identity { display: flex; align-items: center; gap: 10px; }
.paper-identity-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #8272c7; background: #f2f0fb; border-radius: 9px; }
.paper-identity-icon .icon { width: 18px; height: 18px; }
.paper-identity strong, .paper-identity small { display: block; }
.paper-identity strong { font-size: 12px; line-height: 1.2; letter-spacing: -.1px; }
.paper-identity small { margin-top: 4px; color: #b3b0bc; font-size: 8px; font-weight: 750; letter-spacing: .95px; }
.paper-public { display: flex; align-items: center; gap: 8px; color: #999aa4; font-size: 9px; font-weight: 750; letter-spacing: .75px; }
.paper-public .status-dot { width: 6px; height: 6px; box-shadow: none; }
.profile-hero { position: relative; overflow: hidden; min-height: 162px; margin: 0 28px; padding: 31px 34px; display: flex; align-items: center; background: #f0eefb; border: 1px solid #ebe8f9; border-radius: 10px; scroll-margin-top: 24px; }
.profile-hero::before { content: ""; position: absolute; left: -48px; bottom: -104px; width: 230px; height: 165px; border: 1px solid rgba(152,135,215,.11); border-radius: 50%; transform: rotate(-19deg); }
.profile-hero-content { position: relative; z-index: 1; max-width: calc(100% - 180px); }
.profile-eyebrow, .gate-eyebrow { display: flex; align-items: center; gap: 8px; color: #897bbb; font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.profile-hero h2 { margin: 14px 0 11px; color: #37324d; font-size: clamp(25px, 2.45vw, 32px); line-height: 1.17; letter-spacing: -1.2px; font-weight: 750; overflow-wrap: anywhere; }
.hero-caption { color: #a39db5; font-size: 11px; font-weight: 500; }
.hero-caption-star { padding-right: 5px; color: #9a8acb; font-size: 13px; }
.profile-art { position: absolute; top: 0; right: 0; width: 215px; height: 100%; }
.art-orbit { position: absolute; border: 1px solid rgba(161,146,215,.24); border-radius: 50%; }
.art-orbit-one { width: 180px; height: 180px; top: -7px; right: 12px; }
.art-orbit-two { width: 226px; height: 226px; top: -30px; right: -11px; border-color: rgba(161,146,215,.14); }
.art-document { position: absolute; top: 45px; right: 67px; width: 63px; height: 76px; display: grid; place-items: center; border: 1px solid #e3dcf7; border-radius: 9px; color: #8c7bc9; background: rgba(255,255,255,.8); box-shadow: 0 12px 20px rgba(118,99,180,.1); transform: rotate(-8deg); }
.art-document .icon { width: 38px; height: 38px; stroke-width: 1.2; }
.art-star { position: absolute; color: #aa9bd8; }
.art-star-one { top: 29px; right: 40px; font-size: 22px; }
.art-star-two { bottom: 28px; right: 136px; font-size: 14px; }
.art-dot { position: absolute; right: 35px; bottom: 37px; width: 6px; height: 6px; border-radius: 50%; background: #c2b7e6; }
.resume-sections { padding: 3px 28px 1px; }
.resume-section { display: grid; grid-template-columns: minmax(190px, 34%) minmax(0, 1fr); gap: 20px; padding: 26px 4px; border-bottom: 1px solid #efeff2; scroll-margin-top: 24px; }
.resume-section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: flex-start; gap: 12px; }
.section-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.section-icon .icon { width: 18px; height: 18px; }
.section-icon-summary { color: #8c78ca; background: #f1eefb; }
.section-icon-experience { color: #b58b72; background: #fbf2eb; }
.section-icon-education { color: #80a897; background: #edf6f1; }
.section-icon-skills { color: #a28abf; background: #f6eff9; }
.section-overline { display: block; margin: 0 0 3px; color: #b4b1bd; font-size: 8px; font-weight: 800; letter-spacing: .95px; }
.section-heading h3 { margin: 0; color: #3a3b48; font-size: 14px; line-height: 1.25; letter-spacing: -.25px; }
.section-heading small { display: block; color: #aaaab5; margin-top: 4px; font-size: 10px; }
.section-content { min-width: 0; padding-top: 6px; }
.summary-copy, .entry-description, .empty-copy { margin: 0; color: #777986; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-copy { color: #aaa9b2; font-style: italic; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 9px; left: 3px; width: 1px; background: #e9e6f3; }
.timeline-entry { position: relative; padding-left: 20px; }
.timeline-entry + .timeline-entry { padding-top: 22px; }
.timeline-dot { position: absolute; z-index: 1; top: 5px; left: 0; width: 7px; height: 7px; border: 2px solid #a696da; border-radius: 50%; background: white; box-shadow: 0 0 0 3px #f6f4fc; }
.timeline-entry + .timeline-entry .timeline-dot { top: 27px; }
.entry-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.entry-top h4 { margin: 0; color: #484856; font-size: 12px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.date-label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; color: #9996a6; font-size: 10px; font-weight: 600; white-space: nowrap; }
.date-label .icon { width: 12px; height: 12px; color: #b5adca; }
.entry-description { margin-top: 7px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 11px; background: #f5f3fb; border: 1px solid #eeebf8; color: #7466ad; border-radius: 6px; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.skill-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #ac9ce0; }
.paper-footer { min-height: 48px; padding: 0 32px; background: #fcfcfd; border-top: 1px solid #f1f1f3; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #bbb9c3; font-size: 8px; font-weight: 800; letter-spacing: .85px; }
.paper-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.paper-footer .icon { width: 13px; height: 13px; color: #b4a9d6; }
.paper-footer > span > span { color: #c4b9df; font-size: 12px; }
.unset-card { padding: 70px 24px; background: white; border: 1px solid #e9e9ef; border-radius: 13px; box-shadow: var(--shadow); text-align: center; }
.unset-icon { margin: 0 auto 20px; width: 56px; height: 56px; display: grid; place-items: center; background: #f0eefb; color: #8877c8; border-radius: 16px; }
.unset-icon .icon { width: 29px; height: 29px; }
.unset-card .profile-eyebrow { display: block; }
.unset-card h2 { margin: 10px 0; font-size: 24px; letter-spacing: -.8px; }
.unset-card p { color: #8e8d98; margin: 0 auto 23px; max-width: 370px; }

/* Password gate */
.edit-page-root { min-height: calc(100vh - 204px); }
.gate-shell { width: min(100% - 40px, 500px); margin: 0 auto; padding-top: 34px; text-align: center; }
.gate-breadcrumb { justify-content: center; margin-bottom: 37px; }
.gate-card { position: relative; overflow: hidden; padding: 41px 43px 29px; text-align: left; background: #fff; border: 1px solid #e9e8ef; border-radius: 15px; box-shadow: 0 18px 45px rgba(42,38,72,.06), 0 2px 8px rgba(42,38,72,.025); }
.gate-decoration { position: absolute; right: 0; top: 0; width: 135px; height: 135px; overflow: hidden; pointer-events: none; }
.gate-decoration-orbit { position: absolute; width: 160px; height: 160px; border: 1px solid #f0edf9; border-radius: 50%; top: -50px; right: -40px; box-shadow: 0 0 0 20px #faf9fe, 0 0 0 21px #f4f2fb; }
.gate-decoration-star { position: absolute; top: 31px; right: 38px; color: #d0c7e9; font-size: 19px; }
.gate-lock-icon { position: relative; display: grid; place-items: center; width: 50px; height: 50px; color: #7868c4; background: #f0eefb; border-radius: 14px; }
.gate-lock-icon .icon { width: 24px; height: 24px; }
.gate-eyebrow { margin-top: 28px; }
.gate-card h1 { margin: 9px 0 10px; color: #302e3c; font-size: 29px; line-height: 1.2; font-weight: 750; letter-spacing: -1.05px; }
.gate-description { margin: 0; max-width: 335px; color: #92919e; font-size: 13px; line-height: 1.7; }
.gate-form { margin-top: 28px; }
.gate-form label, .field label, .skill-input-label { display: block; margin-bottom: 8px; color: #555562; font-size: 12px; font-weight: 700; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 48px; }
input, textarea { width: 100%; border: 1px solid #e2e2e9; border-radius: 7px; color: #3c3c49; background: #fff; padding: 11px 12px; font-size: 13px; line-height: 1.45; transition: border-color .18s, box-shadow .18s; }
input::placeholder, textarea::placeholder { color: #bbb9c3; opacity: 1; }
input:hover, textarea:hover { border-color: #cfcbdc; }
input:focus, textarea:focus { border-color: #9588d4; outline: 0; box-shadow: 0 0 0 3px rgba(122,105,201,.1); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #d88989; background: #fffdfd; }
textarea { resize: vertical; min-height: 98px; }
.password-toggle { position: absolute; top: 0; bottom: 0; right: 0; width: 44px; border: 0; background: transparent; color: #aaa8b4; display: grid; place-items: center; }
.password-toggle:hover { color: #6f60b8; }
.password-toggle .icon { width: 18px; height: 18px; }
.field-error { margin: 7px 0 0; color: #bf5d65; font-size: 11px; font-weight: 600; line-height: 1.4; }
.gate-submit { width: 100%; margin-top: 19px; min-height: 45px; }
.gate-submit .icon { margin-left: auto; }
.gate-submit > span { margin-left: auto; }
.gate-security { display: flex; align-items: flex-start; gap: 9px; margin-top: 26px; padding-top: 21px; border-top: 1px solid #f0eff3; color: #aaa9b3; font-size: 10px; line-height: 1.6; }
.gate-security .icon { width: 15px; height: 15px; color: #a7a0ba; }
.gate-return { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: #807b94; font-size: 11px; font-weight: 700; }
.gate-return:hover { color: var(--purple); }
.gate-return .icon { width: 14px; height: 14px; }
.gate-bottom-note { margin: 35px 0 0; color: #b6b4bd; font-size: 10px; }
.gate-bottom-note span { color: #b3a6d9; padding-left: 3px; }
.noscript { text-align: center; color: #bf5d65; }

/* Editor */
.editor-shell { padding-bottom: 3px; }
.editor-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 28px 0 31px; }
.editor-actions { display: flex; align-items: center; gap: 9px; }
.editor-actions .button { font-size: 12px; min-height: 42px; }
.editor-sidebar .sidebar-note { background: #f4f2fb; }
.editor-note-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #8978ca; background: #fff; margin-bottom: 12px; }
.editor-note-icon .icon { width: 18px; height: 18px; }
.editor-form-content { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.edit-card { scroll-margin-top: 24px; background: white; border: 1px solid #e9e9ef; border-radius: 12px; box-shadow: var(--shadow); }
.edit-card-head { display: flex; align-items: flex-start; gap: 12px; padding: 23px 25px 19px; border-bottom: 1px solid #f0f0f3; }
.edit-card-head .section-icon { width: 38px; height: 38px; }
.edit-card-title { flex: 1; min-width: 0; }
.edit-card-title h2 { margin: 0; color: #393946; font-size: 15px; letter-spacing: -.25px; }
.edit-card-title p { margin: 4px 0 0; color: #a09fa9; font-size: 11px; line-height: 1.5; }
.edit-card-number { color: #c1bdcb; font-size: 9px; font-weight: 800; letter-spacing: 1px; padding-top: 4px; }
.edit-card-body { padding: 22px 25px 25px; }
.field + .field { margin-top: 20px; }
.field label .required { color: #9b8bd3; margin-left: 2px; }
.field-label-row { display: flex; justify-content: space-between; gap: 12px; }
.field-optional { color: #b1afb9; font-size: 10px; font-weight: 500; }
.field-help { margin: 6px 0 0; color: #aaa8b3; font-size: 10px; }
.field-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 17px; }
.field-bottom .field-error { flex: 1; }
.field-count { flex: 0 0 auto; margin: 7px 0 0 auto; color: #bbb9c3; font-size: 10px; font-variant-numeric: tabular-nums; }
.field-count.is-over { color: #bf5d65; }
.entry-editor { border: 1px solid #ecebf1; border-radius: 9px; background: #fdfdfe; }
.entry-editor + .entry-editor { margin-top: 13px; }
.entry-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid #f0eff3; }
.entry-editor-title { display: flex; align-items: center; gap: 9px; color: #5b5868; font-size: 11px; font-weight: 750; }
.entry-editor-number { display: grid; place-items: center; width: 24px; height: 24px; color: #9687ca; background: #f1effa; border-radius: 7px; font-size: 9px; font-weight: 800; }
.remove-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px; border: 0; background: transparent; color: #a29faa; font-size: 10px; font-weight: 650; }
.remove-button:hover { color: #bd686d; }
.remove-button .icon { width: 14px; height: 14px; }
.entry-editor-fields { padding: 17px 15px 16px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid .field + .field { margin-top: 0; }
.entry-editor-fields > .field { margin-top: 16px; }
.editor-empty { display: flex; align-items: center; gap: 10px; padding: 15px; border: 1px dashed #e6e4ed; border-radius: 8px; color: #aaa8b4; background: #fdfcfe; font-size: 11px; }
.editor-empty .icon { width: 17px; height: 17px; color: #c0b8d7; }
.add-entry-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; padding: 9px 12px; border: 1px solid #e3def3; border-radius: 7px; background: #faf9fe; color: #7666ba; font-size: 11px; font-weight: 750; }
.add-entry-button:hover { border-color: #c9beec; background: #f3f0fb; }
.add-entry-button .icon { width: 14px; height: 14px; }
.skill-editor-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
.edit-skill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 7px 6px 10px; border: 1px solid #ece8f8; border-radius: 6px; background: #f5f3fb; color: #7466ad; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.skill-remove { display: grid; place-items: center; flex: 0 0 auto; width: 19px; height: 19px; padding: 0; border: 0; border-radius: 4px; color: #a79bc9; background: transparent; }
.skill-remove:hover { color: #6c58b5; background: #e9e3f8; }
.skill-remove .icon { width: 13px; height: 13px; }
.skill-add-row { display: flex; gap: 8px; }
.skill-add-row input { max-width: 400px; }
.skill-add-row .button { flex-shrink: 0; padding: 10px 14px; font-size: 11px; }
.skill-tip { margin: 7px 0 0; color: #aaa8b4; font-size: 10px; }
.save-confirmation { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 12px 14px; color: #43846c; background: #eff8f3; border: 1px solid #dbf0e3; border-radius: 8px; font-size: 12px; font-weight: 650; }
.save-confirmation .icon { width: 17px; height: 17px; }
.save-error { color: #a35159; background: #fff4f4; border-color: #f5dede; }
.editor-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 0 0; color: #aaa9b4; font-size: 10px; }
.editor-footnote .icon { width: 14px; height: 14px; color: #b8afcf; }

@media (max-width: 1000px) {
  .page-shell, .footer-inner { width: min(100% - 56px, 1190px); }
  .resume-layout, .editor-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .resume-section { grid-template-columns: minmax(160px, 36%) minmax(0, 1fr); gap: 14px; }
  .entry-top { flex-direction: column; gap: 5px; }
  .date-label { white-space: normal; }
}
@media (max-width: 720px) {
  .site-header { height: 68px; }
  .header-inner { padding: 0 20px; }
  .header-separator { margin: 0 20px; }
  .header-visibility { display: none; }
  .header-actions { gap: 8px; }
  .page-shell, .footer-inner { width: calc(100% - 36px); }
  .page-shell { padding-top: 25px; }
  .page-heading, .editor-page-heading { margin: 24px 0; }
  .page-heading h1, .editor-page-heading h1 { font-size: 31px; }
  .view-indicator { display: none; }
  .resume-layout, .editor-layout { display: block; }
  .page-sidebar { display: none; }
  .profile-hero { min-height: 145px; padding: 25px; }
  .profile-hero-content { max-width: calc(100% - 120px); }
  .profile-art { transform: scale(.82); transform-origin: right center; }
  .resume-section { grid-template-columns: 1fr; gap: 12px; padding: 22px 2px; }
  .section-content { padding: 0 0 0 48px; }
  .entry-top { flex-direction: row; }
  .site-footer { margin-top: 40px; }
  .editor-actions .button { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .brand-caption { font-size: 7px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 35px; height: 35px; }
  .header-separator, .header-nav { display: none; }
  .button-header { padding: 9px 11px; }
  .header-back { font-size: 11px; }
  .heading-kicker { font-size: 8px; }
  .page-heading h1, .editor-page-heading h1 { font-size: 29px; }
  .paper-topline { padding: 17px 18px; }
  .paper-public { font-size: 8px; }
  .profile-hero { margin: 0 17px; padding: 23px 20px; min-height: 135px; }
  .profile-hero h2 { font-size: 25px; }
  .profile-hero-content { max-width: calc(100% - 80px); }
  .profile-art { right: -22px; transform: scale(.65); }
  .hero-caption { font-size: 10px; }
  .resume-sections { padding: 1px 18px; }
  .entry-top { flex-direction: column; }
  .paper-footer { padding: 0 20px; font-size: 7px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
  .gate-card { padding: 32px 25px 25px; }
  .gate-breadcrumb { margin-bottom: 25px; }
  .gate-card h1 { font-size: 26px; }
  .editor-page-heading { align-items: flex-start; flex-direction: column; }
  .editor-actions { width: 100%; }
  .editor-actions .button { flex: 1; }
  .edit-card-head { padding: 20px 18px 16px; }
  .edit-card-body { padding: 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .skill-add-row .button { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
