/* Portfolio website generator (rebuilt 2026-10-03). Page tokens come from /tools/tools.css. */
.pf-container { max-width: var(--container-wide, 1400px); margin: 0 auto; padding: 28px var(--gutter, 20px) 0; }
.pf-hero { max-width: 860px; margin: 0 0 22px; }
.pf-hero h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 12px 0 10px; }
.pf-hero p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.pf-app { background: var(--surface); border: 1px solid var(--hair-2); border-radius: var(--r-lg); padding: clamp(14px, 2.4vw, 26px); box-shadow: var(--shadow-sm); }
[hidden] { display: none !important; }

/* buttons */
.pf-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--hair-3); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; }
.pf-btn:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.pf-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-btn-primary:hover { background: var(--accent-2); color: #fff; }
.pf-mini { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-xs); border: 1px solid var(--hair-2); background: var(--paper); color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pf-mini:hover:not(:disabled) { border-color: var(--accent-line); color: var(--accent-ink); }
.pf-mini:disabled { opacity: .45; cursor: default; }
.pf-mini[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.pf-del { color: var(--bad); }
.pf-link { background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 600; color: var(--accent-ink); text-decoration: underline; cursor: pointer; text-align: left; }

/* start screen */
.pf-start-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.pf-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 230px; padding: 28px 20px; border: 2px dashed var(--accent-line); border-radius: var(--r-md); background: var(--accent-soft); cursor: pointer; transition: border-color .15s, background .15s; }
.pf-drop:hover, .pf-drop.over, .pf-drop:focus-within { border-color: var(--accent); background: #e4e9ff; }
.pf-drop b { font-size: 19px; color: var(--ink); }
.pf-drop span { font-size: 14.5px; color: var(--ink-2); }
.pf-drop .pf-btn { margin-top: 6px; pointer-events: none; }
.pf-drop .pf-btn-primary { color: #fff; }
.pf-drop.busy { opacity: .75; }
.pf-busy { min-height: 20px; font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.pf-alt { display: flex; flex-direction: column; gap: 14px; }
.pf-alt h2 { font-size: 16px; color: var(--ink); }
.pf-alt textarea { width: 100%; min-height: 170px; padding: 12px; border: 1px solid var(--hair-3); border-radius: var(--r-sm); font-size: 14px; line-height: 1.5; resize: vertical; background: var(--surface); color: var(--ink); }
.pf-alt label { font-weight: 600; font-size: 14px; display: block; margin: 0 0 6px; color: var(--ink); }
.pf-saved { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.pf-continue { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--ok-soft); border: 1px solid #bbf7d0; font-size: 15px; color: var(--ink); }
.pf-note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* studio */
.pf-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.pf-bar-l, .pf-bar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-more { position: relative; }
.pf-more > summary { list-style: none; }
.pf-more > summary::-webkit-details-marker { display: none; }
.pf-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; gap: 6px; min-width: 210px; padding: 10px; background: var(--surface); border: 1px solid var(--hair-2); border-radius: var(--r-sm); box-shadow: var(--shadow-md); }
.pf-menu .pf-mini { justify-content: flex-start; width: 100%; }
.pf-tabs { display: none; }
.pf-report, .pf-done, .pf-nostore { position: relative; margin: 0 0 14px; padding: 12px 40px 12px 16px; border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.pf-report { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.pf-report p { margin: 0 0 6px; }
.pf-done { background: var(--ok-soft); border: 1px solid #bbf7d0; padding-right: 16px; }
.pf-done p { margin: 0 0 6px; }
.pf-done p:last-child { margin: 0; }
.pf-weak, .pf-fixback { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.pf-weak { background: var(--warn-soft); border: 1px solid var(--warn-line); }
.pf-fixback { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.pf-weak p, .pf-fixback p { margin: 0 0 10px; }
.pf-weak .pf-row, .pf-fixback .pf-row { align-items: center; }
.pf-weak .pf-help { display: block; margin-top: 10px; }
.pf-og img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border: 1px solid var(--hair-2); border-radius: var(--r-xs); background: var(--paper-3); }
.pf-img img { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--hair-2); }
.pf-nostore { background: var(--warn-soft); border: 1px solid var(--warn-line); padding-right: 16px; }
.pf-x { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.pf-checks { margin: 0 0 14px; font-size: 14.5px; }
.pf-checks summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.pf-checks.bad summary { color: var(--bad); }
.pf-checks.warn summary { color: #92400e; }
.pf-checks.ok p { color: var(--ok); font-weight: 600; }
.pf-checks ul { margin: 0 0 4px; padding-left: 20px; line-height: 1.5; }
.pf-checks li { margin: 4px 0; }
.pf-checks li.bad { color: var(--bad); font-weight: 600; }
.pf-grid { display: grid; grid-template-columns: minmax(340px, 470px) 1fr; gap: 22px; align-items: start; }
.pf-edit, .pf-view { min-width: 0; }
.pf-view { position: sticky; top: calc(var(--nav-h, 64px) + 12px); }
.pf-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.pf-viewbar h2 { font-size: 15px; color: var(--ink); }
.pf-frame-wrap { position: relative; overflow: hidden; border: 1px solid var(--hair-2); border-radius: var(--r-sm); background: var(--paper-3); }
#pf-frame { display: block; border: 0; background: #fff; transform-origin: 0 0; }
[data-vp-now="phone"] #pf-frame { margin: 0 auto; }

/* editor */
.pf-edit { display: flex; flex-direction: column; gap: 10px; }
.pf-panel { border: 1px solid var(--hair-2); border-radius: var(--r-sm); background: var(--surface); }
.pf-panel > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--ink); list-style-position: inside; }
.pf-panel[open] > summary { border-bottom: 1px solid var(--hair); }
.pf-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.pf-count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--paper-3); color: var(--ink-3); font-size: 12px; text-align: center; font-weight: 600; }
.pf-tag { font-size: 12px; color: var(--warn); font-weight: 600; }
.pf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.pf-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-wide { grid-column: 1 / -1; }
.pf-f label, .pf-lab { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pf-f input, .pf-f textarea, .pf-addsec select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--hair-3); border-radius: var(--r-xs); background: var(--surface); color: var(--ink); font-size: 15px; }
.pf-f textarea { resize: vertical; line-height: 1.45; }
.pf-f input:focus, .pf-f textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.pf-help { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.pf-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); min-height: 36px; grid-column: 1 / -1; cursor: pointer; }
.pf-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.pf-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-sechead .pf-f { flex: 1; }
.pf-item { border: 1px solid var(--hair); border-radius: var(--r-xs); background: var(--paper); }
.pf-item > summary { cursor: pointer; padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pf-item[open] > summary { border-bottom: 1px solid var(--hair); }
.pf-item > .pf-fields, .pf-item > .pf-row { padding: 10px 12px; }
.pf-item > .pf-row { padding-top: 0; }
.pf-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.pf-theme { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; border: 1px solid var(--hair-2); border-radius: var(--r-xs); background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); }
.pf-theme.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-line); }
.pf-theme b { font-size: 14px; }
.pf-theme small { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.pf-sw { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 100%; height: 44px; padding: 0 10px; border: 1px solid; border-radius: 4px; }
.pf-sw i { display: block; height: 5px; border-radius: 3px; width: 70%; }
.pf-sw i + i { width: 40%; }
.pf-accents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--hair-3); cursor: pointer; }
.pf-dot[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.pf-pick input { width: 28px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.pf-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-photo img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.pf-linkrow { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; align-items: end; }
.pf-addsec { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.pf-addsec label { width: 100%; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pf-addsec select { width: auto; flex: 1; }
.pf-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-md); }

/* publish steps and text below the tool */
.pf-online { margin: 34px 0 0; }
.pf-online-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 14px 0 0; }
.pf-card { background: var(--surface); border: 1px solid var(--hair-2); border-radius: var(--r-md); padding: 22px; }
.pf-card h3 { font-size: 18px; color: var(--ink); margin: 0 0 10px; }
.pf-card ol { padding-left: 22px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pf-card li { margin: 0 0 8px; }
.pf-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 10px 0 0; }
.pf-text { margin-top: 54px; border-top: 1px solid var(--hair); padding-top: 44px; }
.pf-text h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 16px; }
.pf-text > p, .pf-text > ol, .pf-text > ul { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 820px; margin: 0 0 16px; }
.pf-text > ol, .pf-text > ul { padding-left: 22px; }
.pf-text > ol li, .pf-text > ul li { margin: 0 0 8px; }
.pf-cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 0 0 40px; }
.pf-cards3 h3 { font-size: 17px; }
.pf-faq { max-width: 820px; display: flex; flex-direction: column; gap: 12px; margin: 0 0 56px; }
.pf-faq details { background: var(--surface); border: 1px solid var(--hair-2); border-radius: var(--r-sm); padding: 14px 18px; }
.pf-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16px; }
.pf-faq p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-top: 10px; }
.pf-hub { background: var(--paper-2); border: 1px solid var(--hair-2); border-radius: var(--r-md); padding: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.pf-text code, .pf-card code { font-size: .92em; background: var(--paper-3); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 900px) {
  .pf-start-grid, .pf-online-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-view { position: static; }
  .pf-tabs { display: inline-flex; border: 1px solid var(--hair-2); border-radius: var(--r-sm); overflow: hidden; }
  .pf-tabs button { min-height: 40px; padding: 0 16px; border: 0; background: var(--surface); font-weight: 600; color: var(--ink-2); cursor: pointer; }
  .pf-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
  .pf-studio[data-tab="edit"] .pf-view, .pf-studio:not([data-tab]) .pf-view { display: none; }
  .pf-studio[data-tab="view"] .pf-edit { display: none; }
  .pf-bar-l { width: 100%; justify-content: space-between; }
}
@media (max-width: 520px) {
  .pf-fields { grid-template-columns: 1fr; }
  .pf-linkrow { grid-template-columns: 1fr; }
  .pf-bar .pf-btn { padding: 0 12px; font-size: 14px; }
  .pf-drop { min-height: 190px; }
}

/* Steps and the design / photo screens (copied from self.cv's builder: Upload, Template, Photo, Preview), 2026-10-03 */
.pf-steps { list-style: none; margin: 0 0 22px; padding: 12px 16px; display: flex; gap: 8px; align-items: center; border: 1px solid var(--hair-2); border-radius: var(--r-md); background: var(--surface); counter-reset: none; }
.pf-steps li { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--ink-3); }
.pf-steps li + li::before { content: ""; flex: 0 1 40px; height: 1px; background: var(--hair-2); margin-right: 6px; }
.pf-steps b { display: block; font-size: 14px; color: var(--ink-2); }
.pf-steps small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-sn { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair-3); font-size: 13px; font-weight: 600; background: var(--surface); }
.pf-steps li.now .pf-sn { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.pf-steps li.now b { color: var(--ink); }
.pf-steps li.done .pf-sn { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-wiz { text-align: center; }
.pf-kick { margin: 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.pf-wh { margin: 6px 0 6px; font: 600 clamp(28px, 4vw, 40px)/1.15 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.pf-wsub { margin: 0 auto 22px; max-width: 640px; color: var(--ink-2); font-size: 15.5px; }
.pf-pick-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; text-align: left; }
.pf-stage { border: 1px solid var(--hair-2); border-radius: var(--r-lg); background: var(--paper); padding: 14px 16px 22px; min-width: 0; }
.pf-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 14px; color: var(--ink-3); }
.pf-stage-top b { font-size: 16px; color: var(--ink); }
.pf-device { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pf-screen { position: relative; overflow: hidden; flex: 1; max-width: 760px; border: 10px solid #1d2033; border-radius: 16px 16px 6px 6px; background: #fff; box-shadow: 0 28px 50px -24px rgba(14,16,32,.45); }
.pf-screen::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -26px; height: 16px; }
.pf-device[data-vp="phone"] .pf-screen { flex: none; border-width: 9px; border-radius: 30px; max-width: 280px; }
#pf-pick-frame { display: block; border: 0; background: #fff; transform-origin: 0 0; pointer-events: none; }
.pf-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-3); background: var(--surface); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.pf-arrow:hover { border-color: var(--accent); color: var(--accent-ink); }
.pf-pick-side { border: 1px solid var(--hair-2); border-radius: var(--r-lg); background: var(--surface); padding: 14px; max-height: 620px; overflow: auto; }
.pf-pick-list { display: grid; gap: 8px; }
.pf-pick-list .pf-theme { width: 100%; flex-direction: row; align-items: center; gap: 12px; padding: 10px; }
.pf-pick-list .pf-theme .pf-sw { flex: none; }
.pf-pick-list .pf-theme span.pf-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-new { margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.pf-wfoot { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.pf-wfoot .pf-btn-primary { min-width: 220px; justify-content: center; min-height: 48px; font-size: 15.5px; border-radius: 999px; }
.pf-snap-box { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; padding: 28px; border: 1px dashed var(--hair-3); border-radius: var(--r-lg); background: var(--paper); max-width: 640px; margin: 0 auto; }
.pf-snap-pic { width: 168px; height: 168px; border-radius: 28px; background: var(--paper-3) center/cover no-repeat; display: grid; place-items: center; font: 700 48px/1 var(--sans); color: var(--ink-3); }
.pf-snap-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 280px; text-align: left; }
@media (max-width: 900px) {
  .pf-pick-grid { grid-template-columns: 1fr; }
  .pf-pick-side { max-height: none; padding: 10px; }
  .pf-pick-list { grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .pf-pick-list .pf-theme { scroll-snap-align: start; }
  .pf-steps small { display: none; }
}
@media (max-width: 600px) {
  .pf-steps { padding: 10px; gap: 4px; }
  .pf-steps li + li::before { flex-basis: 8px; margin-right: 2px; }
  .pf-steps { justify-content: space-between; }
  .pf-steps li { flex: none; }
  .pf-steps li > span:not(.pf-sn) { display: none; }
  .pf-steps li.now > span:not(.pf-sn) { display: block; }
  .pf-steps li + li::before { display: none; }
  .pf-arrow { width: 36px; height: 36px; font-size: 22px; }
  .pf-screen { border-width: 6px; }
  .pf-wfoot .pf-btn-primary { min-width: 0; flex: 1; }
}
.pf-pick-list .pf-sw { width: 64px; }
