@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../legal/assets/fonts/space-mono-latin-ext-400-normal-DTLbW2xa.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../legal/assets/fonts/space-mono-latin-400-normal-Rg4St2Dn.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../legal/assets/fonts/space-mono-latin-ext-700-normal-B2s3bDs2.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../legal/assets/fonts/space-mono-latin-700-normal-mWgeinG7.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Palgae Outfit";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("demo-palgae/fonts/Outfit-Regular.ttf") format("truetype");
}

:root {
    --ycswu-payment-green: #00ff66;
    --portal-theme-light-bg: #fff;
    --portal-theme-light-fg: #000;
    --portal-theme-dark-bg: #000;
    --portal-theme-dark-fg: #fff;
    --portal-bg: var(--portal-theme-dark-bg);
    --portal-text: var(--portal-theme-dark-fg);
    --portal-muted: var(--portal-theme-dark-fg);
    --portal-border: var(--portal-theme-dark-fg);
    --portal-panel: var(--portal-theme-dark-bg);
    --portal-accent: var(--portal-theme-dark-fg);
    --portal-danger: var(--portal-theme-dark-fg);
}

[data-theme="light"] {
    --portal-bg: var(--portal-theme-light-bg);
    --portal-text: var(--portal-theme-light-fg);
    --portal-muted: var(--portal-theme-light-fg);
    --portal-border: var(--portal-theme-light-fg);
    --portal-panel: var(--portal-theme-light-bg);
    --portal-accent: var(--portal-theme-light-fg);
    --portal-danger: var(--portal-theme-light-fg);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; font-weight: 300 !important; min-width: 0; }
html, body { width: 100%; height: 100%; min-height: 100%; margin: 0; background: var(--portal-bg); color: var(--portal-text); font-family: "Space Mono", "Courier New", monospace; font-size: 12px; font-weight: 300; font-synthesis: none; letter-spacing: 0; text-rendering: geometricPrecision; overflow-x: hidden; }
body.project-room-page { overflow: hidden; }
body.project-room-page .min-h-screen { height: 100dvh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.project-room-page .min-h-screen > header { flex: 0 0 auto; }
body.project-room-page .min-h-screen > main { flex: 1 1 auto; min-height: 0; max-width: none; width: 100%; padding: 0; overflow: hidden; }
a { color: inherit; }
img, video, canvas, svg, iframe { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; border-radius: 0; max-width: 100%; }
button:not([class]),
input[type="button"]:not([class]),
input[type="submit"]:not([class]),
input[type="reset"]:not([class]) {
    -webkit-appearance: none;
    appearance: none;
    min-height: 2rem;
    border: 1px solid var(--portal-border);
    padding: .4rem .65rem;
    background: transparent;
    color: var(--portal-text);
    box-shadow: none;
    font-family: "Space Mono", "Courier New", monospace;
    font-size: inherit;
    line-height: 1;
    cursor: pointer;
}
button:not([class]):hover,
input[type="button"]:not([class]):hover,
input[type="submit"]:not([class]):hover,
input[type="reset"]:not([class]):hover {
    background: var(--portal-text);
    color: var(--portal-bg);
}
button:not([class]):disabled,
input[type="button"]:not([class]):disabled,
input[type="submit"]:not([class]):disabled,
input[type="reset"]:not([class]):disabled {
    opacity: .45;
    cursor: not-allowed;
}
input[type="file"] {
    font-family: "Space Mono", "Courier New", monospace;
    color: var(--portal-text);
    cursor: pointer;
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    -webkit-appearance: none;
    appearance: none;
    min-height: 2rem;
    margin: 0 .5rem 0 0;
    border: 1px solid var(--portal-border);
    padding: .4rem .65rem;
    background: transparent;
    color: var(--portal-text);
    box-shadow: none;
    font-family: "Space Mono", "Courier New", monospace;
    font-size: inherit;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}
input[type="file"]:hover::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button {
    background: var(--portal-text);
    color: var(--portal-bg);
}
table, pre, code { max-width: 100%; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
[x-cloak] { display: none !important; }

.portal-link { color: var(--portal-text); text-decoration: underline; text-underline-offset: 4px; }
.portal-logout-button { border: 1px solid var(--portal-text); background: var(--portal-text); color: var(--portal-bg); padding: .2rem .45rem; cursor: pointer; }
.portal-logout-button:hover { background: var(--portal-bg); color: var(--portal-text); }
.portal-panel { border: 1px solid var(--portal-border); background: var(--portal-panel); }
.portal-input {
    width: 100%;
    border: 1px solid var(--portal-border);
    background: transparent !important;
    background-color: transparent !important;
    color: var(--portal-text);
    box-shadow: none;
    padding: .45rem .5rem;
    outline: none;
}
.portal-input[type="file"] { min-height: 2.4rem; padding: .2rem; }
.portal-input:focus {
    border-color: var(--portal-accent);
    background: transparent !important;
    box-shadow: none;
    outline: 1px solid var(--portal-border);
    outline-offset: 1px;
}
select.portal-input option { background-color: var(--portal-bg); color: var(--portal-text); }
[data-theme="dark"] select.portal-input,
[data-theme="dark"] select.portal-input option { background-color: var(--portal-theme-dark-bg) !important; color: var(--portal-theme-dark-fg) !important; color-scheme: dark; }
[data-theme="light"] select.portal-input,
[data-theme="light"] select.portal-input option { background-color: var(--portal-theme-light-bg) !important; color: var(--portal-theme-light-fg) !important; color-scheme: light; }
.portal-input:-webkit-autofill,
.portal-input:-webkit-autofill:hover,
.portal-input:-webkit-autofill:focus,
.portal-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--portal-text) !important;
    caret-color: var(--portal-text);
    background: transparent !important;
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px var(--portal-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--portal-bg) inset !important;
    transition: background-color 9999s ease-out 0s;
}
.portal-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--portal-border); padding: .45rem .7rem; line-height: 1; min-height: 2rem; text-decoration: none; background: var(--portal-bg); color: var(--portal-text); cursor: pointer; }
.portal-button-primary { background: var(--portal-text); color: var(--portal-bg); border-color: var(--portal-text); }
.portal-button-ghost { background: transparent; color: var(--portal-text); }
.portal-button:hover, .portal-button.is-active, .portal-badge:hover, .portal-badge.is-active { background: var(--portal-text); color: var(--portal-bg); }
.portal-button:disabled { opacity: .45; cursor: not-allowed; }
.portal-button:disabled:hover { background: var(--portal-bg); color: var(--portal-text); }
.portal-button[aria-disabled="true"] { opacity: .35; cursor: not-allowed; pointer-events: none; }
.portal-button[aria-disabled="true"]:hover { background: var(--portal-bg); color: var(--portal-text); }
.portal-badge { display: inline-flex; align-items: center; border: 1px solid var(--portal-border); padding: .2rem .4rem; background: var(--portal-bg); color: var(--portal-text); font-size: 10px; line-height: 1; }
.portal-header { width: 100%; border-bottom: 0 !important; }
.portal-header-inner { width: 100%; max-width: none !important; margin: 0 !important; padding-left: 8px !important; padding-right: 8px !important; border-bottom: 0 !important; }
.portal-brand-mark { color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: default; transition: color 90ms linear; }
.portal-brand-mark:hover { color: #ed1c24; }
.top-switches, .language-switch, .theme-switch { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.theme-switch [data-theme-set="dark"], .pr-theme-switch [data-pr-theme="dark"] { background: var(--portal-theme-dark-bg); color: var(--portal-theme-dark-fg); border-color: var(--portal-theme-dark-fg); }
.theme-switch [data-theme-set="light"], .pr-theme-switch [data-pr-theme="light"] { background: var(--portal-theme-light-bg); color: var(--portal-theme-light-fg); border-color: var(--portal-theme-light-fg); }
.top-switches { justify-content: flex-end; margin-left: auto; }
.top-switches .language-switch { padding-right: 0; border-right: 0; }
.language-switch .is-active { background: var(--portal-text); color: var(--portal-bg); text-decoration: underline; text-underline-offset: 2px; }
.pr-preview, .pr-sidebar, .kk-panel, .kk-stage, .overflow-auto, .overflow-x-auto { scrollbar-width: thin; scrollbar-color: var(--portal-text) var(--portal-bg); }
.pr-preview::-webkit-scrollbar, .pr-sidebar::-webkit-scrollbar, .kk-panel::-webkit-scrollbar, .kk-stage::-webkit-scrollbar, .overflow-auto::-webkit-scrollbar, .overflow-x-auto::-webkit-scrollbar { width: 6px; height: 6px; }
.pr-preview::-webkit-scrollbar-track, .pr-sidebar::-webkit-scrollbar-track, .kk-panel::-webkit-scrollbar-track, .kk-stage::-webkit-scrollbar-track, .overflow-auto::-webkit-scrollbar-track, .overflow-x-auto::-webkit-scrollbar-track { background: var(--portal-bg); border-radius: 0; }
.pr-preview::-webkit-scrollbar-thumb, .pr-sidebar::-webkit-scrollbar-thumb, .kk-panel::-webkit-scrollbar-thumb, .kk-stage::-webkit-scrollbar-thumb, .overflow-auto::-webkit-scrollbar-thumb, .overflow-x-auto::-webkit-scrollbar-thumb { background: var(--portal-text); border: 1px solid var(--portal-bg); border-radius: 0; }
.access-theme-switch { position: fixed; top: 8px; right: 28px; z-index: 20; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.access-gate-shell { width: min(936px, calc(100% - 32px)); margin: 58px auto 40px; }
.access-alert { border: 1px solid var(--portal-border); padding: 8px; margin-bottom: 8px; }
.access-alert ul { margin: 0; padding-left: 16px; }
.access-existing-panel p { margin: 0; }
.access-inline-form { display: inline-flex; margin: 0; }
.access-profile-edit-form { display: block; margin: 0; }
body.access-profile-page main.mx-auto.max-w-7xl { width: 60%; max-width: none; margin-left: 20%; margin-right: 20%; padding-left: 8px; padding-right: 8px; }
.access-profile-heading { width: 100%; max-width: none; margin-bottom: 14px; }
.access-profile-kicker-row { width: 100%; min-height: 20px; margin-bottom: 8px; display: flex; align-items: flex-start; }
.access-profile-title-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.access-profile-title-input { width: min(100%, 560px); margin: 0; justify-self: start; }
.access-profile-edit-toggle { grid-column: 2; min-width: 72px; justify-self: end; }
.access-profile-bio-field { display: block; max-width: 760px; }
.access-profile-bio-field .portal-input { width: 100%; field-sizing: content; resize: none; overflow: hidden; }
.access-profile-edit-form:not(.is-editing) .access-profile-bio-field.is-empty { display: none; }
.access-profile-notice { margin-bottom: 10px; }
.access-profile-details { padding: 0; margin-bottom: 12px; border: 0; background: transparent; }
.access-profile-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.access-profile-section-head h2 { margin: 4px 0 0; font-size: 22px; }
.access-profile-identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.access-profile-edit-form:not(.is-editing) label > .kk-control-label { display: none; }
.access-profile-edit-form:not(.is-editing) .portal-input { min-height: 0; height: auto; padding: 1px 0; border: 0; box-shadow: none; outline: 0; background: transparent; cursor: default; font-size: 22px; line-height: 1.2; }
.access-profile-edit-form:not(.is-editing) .access-profile-title-input { font-size: 38px; line-height: 1; }
.access-profile-edit-form:not(.is-editing) .access-profile-bio-field .portal-input { font-size: 13px; line-height: 1.55; }
.access-profile-edit-form:not(.is-editing) .access-profile-company-field.is-empty { display: block; visibility: hidden; pointer-events: none; }
.access-profile-edit-form.is-editing .portal-input[data-profile-editable] { min-height: 34px; padding: 7px 8px; border-color: var(--portal-border); background: transparent; cursor: text; font-size: 12px; line-height: 1.3; }
.access-profile-edit-form.is-editing .access-profile-title-input[data-profile-editable] { min-height: 54px; font-size: 38px; line-height: 1; }
.access-profile-edit-form.is-editing .access-profile-bio-field .portal-input[data-profile-editable] { min-height: 70px; }
.access-profile-edit-form.is-editing .portal-input[readonly]:not([data-profile-editable]) { min-height: 0; height: auto; padding: 1px 0; border: 0; box-shadow: none; outline: 0; background: transparent; cursor: default; font-size: 22px; line-height: 1.2; }
.access-profile-access-block { min-width: 0; width: max-content; max-width: 100%; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.access-profile-access-email { font-size: 11px; overflow-wrap: anywhere; }
.ycswu-payment-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  margin-top: 2px;
  background: var(--ycswu-payment-green);
  color: #000;
  border: 1px solid var(--ycswu-payment-green);
  font-family: var(--ycswu-font, "Space Mono", monospace);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
[data-theme="dark"] .ycswu-payment-link-button:hover { background: transparent; color: #fff; border-color: #fff; }
[data-theme="light"] .ycswu-payment-link-button:hover { background: transparent; color: #000; border-color: #000; }
.ycswu-payment-status-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border: 1px solid currentColor; font-size: 10px; text-transform: uppercase; }
.project-payment-list { display: grid; gap: 8px; margin-top: 12px; }
.project-payment-item { border: 1px solid var(--portal-border); padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.project-payment-item h3, .project-payment-item p { margin: 0; }
.project-payment-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 11px; }

.simple-info-content {
  width: min(100%, 860px);
}

.simple-info-content h1 {
  margin: 18px 0;
}

.simple-info-content p {
  margin: 0 0 14px;
  line-height: 1.65;
}
.simple-info-header { margin-bottom: 28px; }
.simple-info-lead { max-width: 68ch; font-size: 14px; }
.simple-info-section { padding: 20px 0 6px; border-top: 1px solid var(--portal-border); }
.simple-info-section h2 { margin: 0 0 14px; font-size: 18px; line-height: 1.35; }
.simple-info-section p { max-width: 78ch; }
.contact-primary-details,
.seller-information-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 28px;
  border-top: 1px solid var(--portal-border);
  border-left: 1px solid var(--portal-border);
}
.contact-primary-details > div,
.seller-information-grid > div {
  min-height: 110px;
  padding: 12px;
  border-right: 1px solid var(--portal-border);
  border-bottom: 1px solid var(--portal-border);
}
.contact-primary-details dt,
.seller-information-grid dt {
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
}
.contact-primary-details dd,
.seller-information-grid dd {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: normal;
}
.contact-primary-details address,
.seller-information-grid address { font-style: normal; }
.preview-multiline { white-space: pre-line; }
.seller-information-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
.seller-information-grid > div { min-height: 96px; }
@media (max-width: 720px) {
  .simple-info-content { width: 100%; }
  .simple-info-header { margin-bottom: 22px; }
  .simple-info-lead { font-size: 13px; }
  .contact-primary-details,
  .seller-information-grid { grid-template-columns: 1fr; }
  .contact-primary-details > div,
  .seller-information-grid > div { min-height: 0; }
}
.access-profile-projects { margin-top: 0; }
.access-profile-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.access-profile-project-card { min-height: 220px; border: 1px solid var(--portal-border); background: var(--portal-panel); display: flex; flex-direction: column; overflow: hidden; }
.access-profile-project-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; color: inherit; text-decoration: none; }
.access-profile-project-main:hover { background: var(--portal-text); color: var(--portal-bg); }
.access-profile-project-main h3, .access-profile-add-card h3 { margin: 0; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.access-profile-project-main p { margin: auto 0 0; }
.access-profile-visibility { border-top: 1px solid var(--portal-border); }
.access-profile-visibility > summary { box-sizing: border-box; min-height: 38px; height: 38px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; }
.access-profile-visibility > summary > .kk-control-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-profile-visibility > summary::-webkit-details-marker { display: none; }
.access-profile-visibility > summary:hover { background: var(--portal-text); color: var(--portal-bg); }
.access-profile-visibility > summary:focus-visible { outline: 1px solid currentColor; outline-offset: -1px; }
.access-profile-visibility-tools { box-sizing: border-box; margin-left: auto; min-width: 50px; height: 22px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; line-height: 0; }
.access-profile-visibility-eye { position: relative; box-sizing: border-box; width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 20px; line-height: 0; }
.access-profile-eye { grid-area: 1 / 1; width: 20px; height: 20px; display: grid; place-items: center; line-height: 0; }
.access-profile-eye svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.access-profile-eye-open { display: none; }
.access-profile-visibility.is-public .access-profile-eye-closed { display: none; }
.access-profile-visibility.is-public .access-profile-eye-open { display: inline-grid; }
.access-profile-visibility > form { padding: 10px; border-top: 1px solid var(--portal-border); display: grid; gap: 8px; }
.access-profile-visibility-intro, .access-profile-visibility-warning { margin: 0; font-size: 11px; line-height: 1.5; }
.access-profile-visibility-warning { padding: 6px; border: 1px dashed var(--portal-border); }
.access-profile-visibility-select { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 42%); align-items: center; gap: 8px; }
.access-profile-visibility-select .portal-input { min-height: 32px; }
.access-profile-visibility-select .portal-input:disabled { opacity: .35; cursor: not-allowed; }
.access-profile-visibility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--portal-border); border-left: 1px solid var(--portal-border); }
.access-profile-visibility-toggle { min-height: 36px; padding: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-right: 1px solid var(--portal-border); border-bottom: 1px solid var(--portal-border); cursor: pointer; font-size: 10px; line-height: 1.3; }
.access-profile-visibility-toggle input[type="checkbox"] { appearance: none; flex: 0 0 14px; width: 14px; height: 14px; margin: 0 0 0 auto; border: 1px solid var(--portal-border); border-radius: 0; background: transparent; }
.access-profile-visibility-toggle input[type="checkbox"]:checked { background: var(--portal-text); box-shadow: inset 0 0 0 2px var(--portal-bg); }
.access-profile-visibility-toggle input[type="checkbox"]:disabled { opacity: .35; cursor: not-allowed; }
.access-profile-visibility-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.access-profile-project-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--portal-border); }
.access-profile-project-actions > .portal-button, .access-profile-project-actions > details > summary { width: 100%; min-height: 34px; border: 0; }
.access-profile-project-actions > .portal-button { border-right: 1px solid var(--portal-border); }
.access-profile-remove { position: relative; }
.access-profile-remove summary { list-style: none; cursor: pointer; }
.access-profile-remove summary::-webkit-details-marker { display: none; }
.access-profile-remove-confirm { position: absolute; right: -1px; bottom: calc(100% + 1px); width: min(340px, 90vw); z-index: 5; border: 1px solid var(--portal-border); padding: 10px; background: var(--portal-bg); color: var(--portal-text); }
.access-profile-remove-confirm p { margin: 0 0 8px; }
.access-profile-remove-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.access-profile-remove-actions form { margin: 0; }
.access-profile-remove-actions .portal-button { min-height: 32px; }
.access-profile-add-card { padding: 14px; }
.access-profile-add-card form { width: 100%; min-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.access-profile-add-card label { margin-top: auto; }
.access-profile-add-card button { width: 100%; }
.access-profile-personalize {
    margin-top: clamp(32px, 4vw, 48px);
    padding-top: clamp(14px, 1.5vw, 20px);
    padding-bottom: clamp(32px, 4vw, 48px);
    border-top: 1px solid var(--portal-border);
}
.access-profile-personalize-intro { max-width: 760px; margin: 0 0 12px; line-height: 1.5; }
.access-theme-palette-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.access-theme-palette-card { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--portal-border); display: grid; gap: 8px; }
.access-theme-palette-card legend { padding: 0 5px; font-size: 10px; text-transform: uppercase; }
.access-theme-preview { min-height: 118px; padding: 12px; border: 1px solid var(--preview-fg); background: var(--preview-bg); color: var(--preview-fg); display: flex; flex-direction: column; justify-content: space-between; }
.access-theme-preview strong { font-size: 24px; line-height: 1.05; overflow-wrap: anywhere; }
.access-theme-color-field { display: grid; gap: 4px; }
.access-theme-color-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px; }
.access-theme-color-controls input[type="color"] { width: 44px; height: 34px; padding: 0; border: 1px solid var(--portal-border); background: var(--portal-bg); }
.access-theme-color-controls .portal-input { min-height: 34px; text-transform: uppercase; }
.access-theme-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.access-hero { padding: 30px; }
.access-copy { max-width: 760px; }
.access-copy h1 { margin: 14px 0 26px; font-size: clamp(38px, 5vw, 64px); line-height: .98; }
.access-copy p { max-width: 760px; margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--portal-text); }
.access-price-line { display: inline-block; border: 1px solid var(--portal-border); padding: 6px 8px; }
.access-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--portal-border); padding-top: 14px; margin-top: 18px; }
.access-terms { border: 1px solid var(--portal-border); padding: 12px; margin-top: 14px; display: grid; gap: 8px; }
.access-terms h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.2; }
.access-terms p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--portal-muted); }
.access-get-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.access-get-list li { border: 1px solid var(--portal-border); padding: 6px; }
.access-order-summary { display: grid; gap: 0; margin-top: 14px; padding: 12px; }
.access-order-summary h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.2; }
.access-summary-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px; border-top: 1px solid var(--portal-border); padding: 8px 0; }
.access-summary-row span:first-child { color: var(--portal-muted); text-transform: uppercase; font-size: 10px; }
.access-legal-links { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--portal-border); padding-top: 8px; font-size: 11px; }
.access-check { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 4px; }
.access-check input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin: 0; border: 1px solid var(--portal-border); background: var(--portal-bg); }
.access-check input[type="checkbox"]:checked { background: var(--portal-text); }
.access-warning { margin: 0; color: var(--portal-text); }
.access-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 8px; }
.access-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.access-card { min-height: 196px; padding: 14px; }
.access-card h2 { margin: 16px 0 12px; font-size: 18px; line-height: 1.35; }
.access-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--portal-text); }
.access-microcopy { margin: 12px 0 0; font-size: 12px; color: var(--portal-muted); }
.ai-answer-block, .access-faq { display: grid; gap: 12px; margin-top: 24px; padding: 14px; }
.ai-answer-block article, .access-faq details { border: 1px solid var(--portal-border); padding: 10px; background: var(--portal-bg); }
.ai-answer-block h2, .access-faq h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.25; }
.ai-answer-block p, .access-faq p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--portal-text); }
.access-faq summary { cursor: pointer; list-style-position: inside; }
.access-faq details[open] summary { border-bottom: 1px solid var(--portal-border); margin-bottom: 8px; padding-bottom: 8px; }
.access-gate-shell .ai-answer-block,
.access-gate-shell .access-faq { display: none !important; }
.public-footer { width: 100%; border-top: 0; margin-top: 24px; padding: 18px 0 12px; display: grid; gap: 10px; }
.public-footer-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--portal-muted); font-size: 11px; }
.public-footer-layout { width: 100%; max-width: none; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 0; align-items: stretch; }
.public-footer-links { grid-column: span 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; row-gap: 7px; align-items: start; }
.public-footer-links a { min-width: 0; min-height: 0; padding: 1px 8px; border: 0; color: var(--portal-text); text-decoration: none; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.public-footer-links a:hover,
.public-footer-links a:focus-visible { background: transparent; color: #ed1c24; text-decoration: underline; text-underline-offset: 3px; outline: 0; }
.public-footer-extra { grid-column: 5; min-width: 0; display: grid; grid-template-rows: repeat(3, minmax(18px, 1fr)); align-items: stretch; }
.public-footer-extra-row { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.public-footer-socials { align-self: end; justify-content: flex-end; padding-right: 8px; flex-wrap: wrap; text-align: right; }
.public-footer-social-link { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; color: var(--portal-text); background: transparent; text-decoration: none; }
.public-footer-social-link.is-placeholder { color: var(--portal-text); cursor: default; }
.public-footer-social-link[href]:hover,
.public-footer-social-link[href]:focus-visible { color: #ed1c24; background: transparent; outline: 0; }
.public-footer-social-icon { display: block; width: 15px; height: 15px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
.public-footer-social-icon-instagram { -webkit-mask-image: url('/assets/fontawesome/instagram.svg'); mask-image: url('/assets/fontawesome/instagram.svg'); }
.public-footer-social-icon-youtube { -webkit-mask-image: url('/assets/fontawesome/youtube.svg'); mask-image: url('/assets/fontawesome/youtube.svg'); }
.public-footer-social-icon-github { -webkit-mask-image: url('/assets/fontawesome/github.svg'); mask-image: url('/assets/fontawesome/github.svg'); }
.public-footer-social-icon-behance { -webkit-mask-image: url('/assets/fontawesome/behance.svg'); mask-image: url('/assets/fontawesome/behance.svg'); }
body.shared-footer-page .min-h-screen { min-height: 100dvh; display: flex; flex-direction: column; }
body.shared-footer-page .min-h-screen > header { flex: 0 0 auto; }
body.shared-footer-page .min-h-screen > main { width: 100%; flex: 1 0 auto; display: flex; flex-direction: column; }
body.shared-footer-page .min-h-screen > main > :first-child { margin-top: auto; }
body.shared-footer-page .min-h-screen > main > :last-child { margin-bottom: auto; }
body.shared-footer-page .public-footer { flex: 0 0 auto; margin-top: 0; }
body.shared-footer-page .public-footer-links { width: 100%; }
body.access-landing-page.shared-footer-page .min-h-screen > main > :first-child { margin-top: 0; }
body.access-landing-page.shared-footer-page .min-h-screen > main > :last-child { margin-bottom: 0; }
body.access-landing-page.shared-footer-page .access-page-shell { min-height: auto; }
html[data-theme="light"] body.access-landing-page {
    --portal-bg: #fff;
    --portal-text: #0b0b0b;
    --portal-muted: #0b0b0b;
    --portal-border: #0b0b0b;
    --portal-panel: #fff;
    --portal-accent: #ed1c24;
    background: #fff;
}
html[data-theme="dark"] body.access-landing-page {
    --portal-bg: #000;
    --portal-text: #fff;
    --portal-muted: #fff;
    --portal-border: #fff;
    --portal-panel: #000;
    --portal-accent: #ed1c24;
    background: #000;
}
body.access-landing-page .min-h-screen,
body.access-landing-page .portal-header,
body.access-landing-page .portal-header-inner { background: var(--portal-bg); }
.access-page-shell { width: 100%; min-height: calc(100dvh - 48px); background: var(--portal-bg); color: var(--portal-text); }
.access-page-content { width: min(1180px, calc(100% - 48px)); margin-left: clamp(24px, 2.5vw, 48px); margin-right: auto; padding: clamp(32px, 5vh, 64px) 0 40px; }
.access-page-shell, .access-page-shell * { font-family: "Space Mono", "Courier New", monospace; }
.access-intro { width: 100%; max-width: 100%; }
.access-page-shell .access-copy { max-width: 48ch; }
.access-page-shell .access-eyebrow { display: none; }
.access-page-shell .access-copy h1 { margin: 0 0 14px; max-width: 24ch; font-size: clamp(42px, 5.8vw, 72px); line-height: .95; letter-spacing: 0; font-weight: 400 !important; overflow-wrap: normal; }
.access-page-shell .access-copy p { max-width: 52ch; margin: 0 0 12px; font-size: clamp(13px, .9vw, 15px); line-height: 1.45; font-weight: 400 !important; color: var(--portal-text); }
.access-page-shell .access-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin: 0; align-content: start; }
.access-page-shell .access-card { min-height: 154px; padding: 15px; background: transparent; border: 1px solid var(--portal-border); box-shadow: none; }
.access-page-shell .access-card .portal-badge { min-height: 0; min-width: 0; width: auto; padding: 1px 3px; background: transparent; }
.access-page-shell .access-card h2 { margin: 12px 0 9px; font-size: 13px; line-height: 1.35; text-transform: uppercase; font-weight: 700 !important; }
.access-page-shell .access-card p { width: calc(100% + 6px); max-width: 37ch; margin: 0; font-size: 12px; line-height: 1.4; font-weight: 400 !important; color: var(--portal-text); opacity: .82; }
.access-page-shell .access-card:nth-child(4) p { max-width: 30ch; }
.access-price-cta { margin: 0; padding: 0; border: 0; align-self: end; }
.access-detail-copy { max-width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(18px, 2vw, 32px); }
.access-detail-copy p { max-width: 48ch; margin: 0 0 9px; font-size: 11px; line-height: 1.5; font-weight: 400 !important; }
.access-page-shell .access-actions { margin: 12px 0 0; }
.access-page-shell .access-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.access-page-shell .access-actions .portal-button { width: 100%; }
.access-page-shell .portal-button { min-height: 34px; padding: 0 12px; font-size: 11px; font-weight: 400 !important; text-transform: uppercase; }
.access-page-shell .portal-button:hover { background: #ed1c24; border-color: #ed1c24; color: #0b0b0b; }
html[data-theme="dark"] .access-page-shell .portal-button:hover { color: #000; }
.access-desktop-notice { display: none; }
.access-showcase-shell { display: none; }
.access-showcase-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; }

@media (min-width: 1025px) {
    body.access-landing-page { overflow: hidden; }
    body.access-landing-page.shared-footer-page .min-h-screen { height: 100dvh; min-height: 100dvh; overflow: hidden; }
    body.access-landing-page.shared-footer-page .min-h-screen > main { flex: 1 1 0; min-height: 0; overflow: hidden; }
    body.access-landing-page.shared-footer-page .public-footer { flex: 0 0 auto; padding-top: 8px; padding-bottom: 6px; }
    .access-page-shell {
        --access-layout-edge-y: clamp(8px, 1.25vh, 14px);
        --access-layout-gap: clamp(36px, 2.4vw, 48px);
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, calc(40% - 48px)) minmax(0, 1fr);
        column-gap: var(--access-layout-gap);
        align-items: stretch;
        height: 100%;
        min-height: 0;
        padding: var(--access-layout-edge-y) 12px var(--access-layout-edge-y) 48px;
        overflow: hidden;
    }
    body.access-landing-page.shared-footer-page .min-h-screen > main.access-page-shell {
        display: grid;
        flex-direction: initial;
    }
    .access-page-content {
        --access-content-scale: 1;
        position: relative;
        top: auto;
        left: auto;
        transform: scale(var(--access-content-scale));
        transform-origin: left top;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 100%;
        max-height: none;
        min-height: 0;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-rows: auto auto auto auto;
        align-content: space-between;
        row-gap: clamp(18px, 2.095vh, 26px);
        overflow-x: hidden;
        overflow-y: hidden;
        scrollbar-gutter: auto;
    }
    .access-showcase-shell {
        position: relative;
        z-index: 5;
        top: auto;
        right: auto;
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        transform: none;
        overflow: hidden;
        border: 0;
        background: transparent;
    }
    .access-intro { width: 100%; }
    .access-intro,
    .access-page-shell .access-card-grid,
    .access-detail-copy,
    .access-page-shell .access-actions { width: 96%; }
    .access-page-shell .access-copy { max-width: none; }
    .access-page-shell .access-copy h1 { max-width: 27ch; margin-bottom: clamp(15px, 1.8vh, 19px); font-size: clamp(40px, 2.55vw, 48px); line-height: .95; }
    html[lang="en"] .access-page-shell .access-copy h1 { font-size: clamp(38px, 2.3vw, 43px); white-space: nowrap; }
    .access-page-shell .access-copy p { max-width: 74ch; margin-bottom: 11px; font-size: clamp(11.5px, 1.25vh, 13px); line-height: 1.52; }
    .access-page-shell .access-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, .8vw, 14px); }
    .access-page-shell .access-card { min-height: clamp(147px, 16vh, 164px); padding: 12px 10px; }
    .access-page-shell .access-card h2 { margin: 9px 0 7px; font-size: clamp(11.5px, 1.25vh, 12.75px); line-height: 1.3; }
    .access-page-shell .access-card p { max-width: 37ch; font-size: clamp(11px, 1.17vh, 12px); line-height: 1.45; }
    .access-price-cta { display: contents; }
    .access-detail-copy { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(12px, 1vw, 18px); }
    .access-detail-copy p { max-width: 42ch; margin-bottom: 7px; font-size: clamp(10.5px, 1.17vh, 12px); line-height: 1.47; }
    .access-page-shell .access-actions { margin: 0; padding: 0; gap: 8px; }
    .access-page-shell .portal-button { min-height: 28px; padding: 0 9px; font-size: clamp(9px, .99vh, 10px); }
}
@media (min-width: 1025px) and (max-width: 1280px) {
    .access-page-content { --access-content-scale: .82; width: 121.952%; height: 121.952%; }
}
@media (min-width: 1025px) and (max-height: 800px) {
    .access-page-content { --access-content-scale: .72; width: 138.889%; height: 138.889%; }
}
@media (min-width: 1025px) and (max-width: 1280px) and (max-height: 800px) {
    .access-page-content { --access-content-scale: .66; width: 151.516%; height: 151.516%; }
}
.public-info-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px; border-top: 1px solid var(--portal-border); padding: 8px 0; }
.public-info-row span:first-child { color: var(--portal-muted); text-transform: uppercase; font-size: 10px; }
.control-room-page { width: 100%; min-height: 100dvh; padding: 8px; }
.control-room-hero { padding: 12px; }
.control-room-hero h1 { margin: 4px 0; }
.control-room-hero p { max-width: 980px; }
.control-room-workspace { width: 100%; margin-top: 8px; }
.control-room-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.control-room-hero .control-room-nav { position: sticky; top: 0; z-index: 5; background: var(--portal-bg); border-top: 1px solid var(--portal-border); padding-top: 6px; }
.control-room-preview-panel[hidden] { display: none !important; }
.control-room-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--portal-border); margin-top: 8px; }
.control-room-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.control-room-table th, .control-room-table td { border: 1px solid var(--portal-border); padding: 6px; text-align: left; vertical-align: top; }
.control-room-table th { font-size: 10px; text-transform: uppercase; color: var(--portal-muted); background: var(--portal-bg); }
.control-room-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.control-room-inline-form { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0; }
.control-room-inline-form .portal-input { min-width: 132px; width: auto; }
.control-room-note-list { display: grid; gap: 4px; margin-top: 8px; }
.control-room-pill-row { display: flex; flex-wrap: wrap; gap: 4px; }
.copy-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.copy-editor-form textarea.portal-input, .copy-question-form textarea.portal-input { resize: vertical; }
.copy-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.copy-editor-header h2, .copy-editor-header h3 { margin: 6px 0 0; }
.copy-editor-header p { margin: 4px 0 0; color: var(--portal-muted); }
.copy-field-card, .copy-question-row { display: grid; gap: 8px; align-content: start; }
.copy-field-card h3, .copy-question-row h3 { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.copy-question-list { display: grid; gap: 8px; }
.copy-question-head { display: grid; grid-template-columns: auto 1fr minmax(140px, 220px) minmax(88px, 120px); gap: 6px; align-items: end; }
.copy-question-head-wide { grid-template-columns: auto minmax(220px, 1fr) 160px 110px; }
.copy-question-meta-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.copy-question-bilingual { gap: 10px; }
.copy-bilingual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.copy-bilingual-column { border: 1px solid var(--portal-border); padding: 8px; display: grid; gap: 8px; align-content: start; }
.copy-checkbox-row { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; border: 1px solid var(--portal-border); padding: 4px 6px; }
.copy-preview { white-space: pre-wrap; border: 1px solid var(--portal-border); padding: 8px; margin-top: 6px; max-height: 220px; overflow: auto; }
.kk-question-description { margin: 10px 0 0; color: var(--portal-muted); line-height: 1.4; }
.copy-field-card { display: grid; gap: 8px; }
.copy-question-language-head { border-top: 1px solid var(--portal-border); padding-top: 10px; }
.copy-question-list { display: grid; gap: 8px; margin-top: 8px; }
.copy-question-row { display: grid; gap: 8px; }
.copy-question-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 160px; gap: 6px; align-items: end; }
.payment-brand-panel { border: 1px solid var(--portal-border); padding: 12px; display: grid; gap: 8px; }
.payment-brand-panel p { margin: 0; }
.payment-brand-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.payment-brand-logo, .payment-card-mark { border: 1px solid var(--portal-border); padding: 6px 8px; line-height: 1; }
.payment-brand-logo { background: var(--portal-text); color: var(--portal-bg); }
.kk-shell { display: grid; min-height: 100vh; grid-template-columns: 236px 1fr; border: 1px solid var(--portal-border); background: var(--portal-bg); }
.kk-panel { display: flex; min-width: 0; flex-direction: column; gap: 3px; border-right: 1px solid var(--portal-border); background: var(--portal-bg); overflow-y: auto; padding: 6px; }
.kk-stage { min-width: 0; min-height: 0; background: var(--portal-bg); overflow-y: auto; padding: 6px; }
.kk-control { display: grid; gap: 3px; border: 1px solid var(--portal-border); padding: 3px 6px; background: var(--portal-bg); color: var(--portal-text); }
.kk-control:hover, .kk-control.is-active { background: var(--portal-text); color: var(--portal-bg); }
.kk-control-label { display: block; font-size: 10px; line-height: 1; }
.kk-readout { min-height: 42px; border: 1px solid var(--portal-border); padding: 6px; display: grid; align-content: center; gap: 4px; }
.pr-access-switcher { display: grid; gap: 4px; margin-bottom: 6px; }
.pr-access-compact { border: 1px solid var(--portal-border); padding: 6px; display: grid; gap: 4px; min-height: 44px; align-content: center; }
.pr-projects-tab { position: relative; width: 100%; min-height: 48px; padding-right: 30px; text-align: left; }
.pr-projects-tab.is-static { cursor: default; }
.pr-projects-toggle-icon { position: absolute; top: 50%; right: 8px; width: 16px; height: 16px; display: grid; place-items: center; transform: translateY(-50%); font-size: 16px; line-height: 1; }
.pr-project-dropdown { display: grid; gap: 3px; min-height: 0; }
.pr-project-dropdown[hidden] { display: none; }
.pr-add-project { width: 100%; text-align: left; cursor: pointer; color: inherit; text-decoration: none; }
.pr-add-project:disabled { opacity: .55; cursor: not-allowed; }
.pr-add-project:disabled:hover { background: var(--portal-bg); color: var(--portal-text); }
.pr-project-list { display: grid; gap: 3px; }
.pr-project-card { display: grid; gap: 3px; border: 1px solid var(--portal-border); padding: 3px; }
.pr-project-card.is-active { border-style: dashed; }
.pr-project-item { width: 100%; text-align: left; cursor: pointer; position: relative; }
.pr-project-item:hover, .pr-project-item:focus-visible, .pr-project-item.is-active, .pr-project-item.is-active:hover, .pr-project-item.is-active:focus-visible { background: var(--portal-bg); color: var(--portal-text); outline: 1px dashed var(--portal-border); outline-offset: -3px; }
.pr-project-item.is-active { border-style: solid; }
.pr-project-item span { min-width: 0; overflow-wrap: anywhere; }
.pr-project-progress-line { display: block; height: 5px; border: 1px solid currentColor; margin: 2px 0; background: transparent; }
.pr-project-progress-line span { display: block; width: var(--project-progress, 0%); height: 100%; background: currentColor; }
.pr-project-action { opacity: 0; transition: opacity .12s linear; }
.pr-project-item:hover .pr-project-action, .pr-project-item:focus-visible .pr-project-action { opacity: 1; }
.pr-topbar-project-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-height: 22px; }
.pr-topbar-project-actions.is-confirming { border: 1px dashed var(--portal-border); padding: 2px; }
.pr-topbar-project-actions .portal-badge { justify-content: center; cursor: pointer; min-width: 72px; }
.pr-topbar-project-actions .portal-badge:disabled { opacity: .32; cursor: not-allowed; pointer-events: none; }
.pr-topbar-project-actions .portal-badge:disabled:hover { background: var(--portal-bg); color: var(--portal-text); }
.pr-project-progress { position: relative; width: 100%; min-height: 88px; border: 1px solid var(--portal-border); padding: 0; background: var(--portal-bg); color: var(--portal-text); overflow: hidden; display: grid; align-content: center; text-align: left; cursor: pointer; }
.pr-project-progress.is-incomplete { border-style: dashed; }
.pr-project-progress:hover, .pr-project-progress:focus-visible { outline: 1px dashed var(--portal-border); outline-offset: -4px; }
.pr-project-progress-fill { position: absolute; inset: 0 auto 0 0; width: var(--onboarding-progress, 0%); background: var(--portal-text); transition: width .22s linear; }
.pr-project-progress-text { position: relative; z-index: 1; display: grid; gap: 4px; padding: 6px; color: #fff; mix-blend-mode: difference; line-height: 1.25; }
.pr-project-progress-action { margin-top: 2px; }
.pr-project-progress.is-complete { min-height: 72px; }
.pr-project-progress.is-complete .pr-project-progress-text { align-content: center; }
.pr-incomplete-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border: 1px dashed var(--portal-border); padding: 10px; margin-bottom: 8px; }
.pr-incomplete-banner p, .pr-incomplete-banner small { margin: 4px 0 0; }
.pr-incomplete-banner small { display: block; color: var(--portal-muted); }
.kk-top-actions { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 6px; }
.kk-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.kk-topbar-left, .kk-topbar-right { display: flex; align-items: flex-start; gap: 4px; }
.kk-mini-button { min-height: 22px; padding: 2px 6px; font-size: 10px; }
.kk-mode-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.kk-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.kk-card { border: 1px solid var(--portal-border); background: var(--portal-panel); padding: 8px; min-width: 0; }
.kk-card-3 { grid-column: span 3 / span 3; }
.kk-card-4 { grid-column: span 4 / span 4; }
.kk-card-5 { grid-column: span 5 / span 5; }
.kk-card-6 { grid-column: span 6 / span 6; }
.kk-card-7 { grid-column: span 7 / span 7; }
.kk-card-8 { grid-column: span 8 / span 8; }
.kk-card-12 { grid-column: span 12 / span 12; }
.kk-flow { max-width: 920px; margin: 0 auto; }
body.onboarding-page { overflow: hidden; }
body.onboarding-page .min-h-screen { width: 100%; height: 100dvh; min-height: 100dvh; overflow: hidden; }
body.onboarding-page .min-h-screen > main { width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.onboarding-process-shell { width: 100%; height: 100%; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; background: var(--portal-bg); color: var(--portal-text); }
.onboarding-process-topbar { display: grid; gap: 10px; width: 100%; }
.onboarding-process-navbar { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.onboarding-process-brand { flex: 0 0 auto; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.onboarding-process-navbar .portal-main-nav { flex: 1 1 auto; min-width: 0; }
.onboarding-process-navbar .portal-main-nav form { display: inline-flex; margin: 0; }
.onboarding-process-navbar .portal-logout-button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.onboarding-process-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.onboarding-project-title { display: grid; gap: 4px; width: min(760px, 100%); }
.onboarding-project-title-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: stretch; }
.onboarding-project-title-input { width: 100%; min-width: 0; min-height: 48px; padding: 7px 8px; font-size: 28px; line-height: 1.1; }
.onboarding-project-title-controls { display: flex; align-items: stretch; gap: 4px; }
.onboarding-project-title-controls .portal-button { min-width: 64px; min-height: 48px; justify-content: center; }
.onboarding-project-title-controls .onboarding-project-title-remove { min-width: 48px; padding-inline: 0; font-size: 20px; }
.onboarding-project-title-controls [hidden] { display: none !important; }
.onboarding-project-title-status { min-height: 12px; color: var(--portal-muted); font-size: 10px; line-height: 1.2; }
.onboarding-process-layout { flex: 1 1 auto; min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(220px, 20vw) minmax(560px, 1fr) minmax(280px, 27vw); gap: 8px; align-items: stretch; width: 100%; }
.onboarding-side-panel, .onboarding-center-panel { min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.onboarding-center-panel .kk-flow { width: 100%; max-width: none; margin: 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; height: 100%; }
.onboarding-center-panel .kk-flow-frame { flex: 1 1 auto; min-height: 0; height: 100%; }
.onboarding-material-panel { padding: 10px; overflow-y: auto; overflow-x: hidden; align-content: start; grid-auto-rows: max-content; }
.onboarding-material-panel .kk-material-head { display: grid; }
.onboarding-material-panel .kk-material-head h2 { font-size: 24px; }
.onboarding-material-panel .kk-material-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; }
.onboarding-material-panel .kk-material-controls label { min-width: 0; grid-column: 1 / -1; width: min(220px, 100%); }
.onboarding-material-panel .kk-material-controls > select { grid-column: 1 / -1; width: min(220px, 100%); }
.onboarding-material-panel .kk-material-controls .portal-input { min-height: 30px; height: 30px; padding: 3px 6px; }
.onboarding-material-panel .kk-material-controls input[type="file"] { grid-column: 1; }
.onboarding-material-panel .kk-material-controls > .portal-button { grid-column: 2; width: auto; min-width: 92px; min-height: 30px; padding: 3px 8px; justify-self: end; }
.onboarding-material-panel .kk-material-controls label + .portal-button { grid-column: auto; }
.onboarding-file-input { background: transparent !important; color: var(--portal-text); font-family: "Space Mono", "Courier New", monospace; }
.onboarding-file-input::file-selector-button,
.onboarding-file-input::-webkit-file-upload-button { height: 22px; margin: 0 8px 0 0; padding: 2px 7px; border: 1px solid var(--portal-border); background: transparent; color: var(--portal-text); font-family: "Space Mono", "Courier New", monospace; font-size: 10px; line-height: 1; cursor: pointer; }
.onboarding-file-input:hover::file-selector-button,
.onboarding-file-input:hover::-webkit-file-upload-button { background: var(--portal-text); color: var(--portal-bg); }
.onboarding-upload-status { min-height: 14px; margin: -2px 0 0; font-size: 10px; line-height: 1.3; color: var(--portal-text); }
.onboarding-upload-list,
.onboarding-material-panel .kk-material-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; align-content: start; }
.onboarding-upload-list > .pr-empty,
.onboarding-material-panel .kk-material-list > .pr-empty { grid-column: 1 / -1; width: 100%; }
.onboarding-upload-card { display: grid; grid-template-rows: auto auto; gap: 5px; min-width: 0; color: var(--portal-text); text-decoration: none; }
.onboarding-upload-preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--portal-border); background: transparent; }
.onboarding-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.onboarding-file-icon { display: grid; place-items: center; width: 100%; height: 100%; font-size: 12px; line-height: 1; text-transform: uppercase; }
.onboarding-upload-name { display: block; min-width: 0; font-size: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.onboarding-upload-card:hover .onboarding-upload-preview { background: var(--portal-text); color: var(--portal-bg); }
.onboarding-material-panel .kk-material-card { position: relative; display: grid; grid-template-rows: auto auto; gap: 5px; padding: 0; border: 0; background: transparent; }
.onboarding-material-panel .kk-material-card > img,
.onboarding-material-panel .kk-material-placeholder { width: 100%; aspect-ratio: 1; border: 1px solid var(--portal-border); object-fit: cover; }
.onboarding-material-panel .kk-material-card > .portal-badge { position: absolute; top: 3px; right: 3px; width: 20px; min-width: 20px; min-height: 20px; padding: 0; justify-content: center; }
.onboarding-material-panel .kk-material-forms { grid-template-columns: 1fr; }
.onboarding-target-panel { padding: 10px; overflow-y: auto; overflow-x: hidden; }
.onboarding-material-panel,
.onboarding-target-panel,
.kk-flow-step-host,
.kk-choice-grid,
.kk-answer-field textarea.portal-input { scrollbar-width: thin; scrollbar-color: var(--portal-text) transparent; }
.onboarding-material-panel::-webkit-scrollbar,
.onboarding-target-panel::-webkit-scrollbar,
.kk-flow-step-host::-webkit-scrollbar,
.kk-choice-grid::-webkit-scrollbar,
.kk-answer-field textarea.portal-input::-webkit-scrollbar { width: 4px; height: 4px; }
.onboarding-material-panel::-webkit-scrollbar-track,
.onboarding-target-panel::-webkit-scrollbar-track,
.kk-flow-step-host::-webkit-scrollbar-track,
.kk-choice-grid::-webkit-scrollbar-track,
.kk-answer-field textarea.portal-input::-webkit-scrollbar-track { background: transparent; border: 0; }
.onboarding-material-panel::-webkit-scrollbar-thumb,
.onboarding-target-panel::-webkit-scrollbar-thumb,
.kk-flow-step-host::-webkit-scrollbar-thumb,
.kk-choice-grid::-webkit-scrollbar-thumb,
.kk-answer-field textarea.portal-input::-webkit-scrollbar-thumb { background: var(--portal-text); border: 0; border-radius: 0; }
.onboarding-target-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--portal-border); padding-bottom: 8px; margin-bottom: 8px; min-height: 64px; }
.onboarding-target-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.onboarding-target-grid .kk-readout { min-height: 82px; align-content: start; }
.onboarding-target-card { width: 100%; appearance: none; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.onboarding-target-card:focus-visible { outline: 2px solid var(--portal-text); outline-offset: -3px; }
.onboarding-target-grid .kk-readout:hover { background: var(--portal-text); color: var(--portal-bg); }
.onboarding-target-grid .kk-readout.is-active { outline: 1px dashed var(--portal-border); outline-offset: -3px; }
.onboarding-target-title { display: block; margin-top: 4px; font-size: 12px; line-height: 1.3; font-weight: 400; overflow-wrap: anywhere; }
.onboarding-target-value { margin-top: 6px; overflow-wrap: anywhere; color: inherit; }
.case-studies-page .min-h-screen > main { min-height: 0; padding: 8px 0; flex: 1 1 0; overflow: hidden; }
.case-studies-page .min-h-screen > main > :first-child,
.case-studies-page .min-h-screen > main > :last-child { margin-top: 0; margin-bottom: 0; }
.case-studies-shell { width: 100%; height: 100%; min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 4fr); gap: 0; align-items: stretch; overflow: hidden; }
.case-studies-sidebar { min-width: 0; min-height: 100%; border: 1px solid var(--portal-border); padding: clamp(18px, 3vw, 48px); display: flex; align-items: flex-start; justify-content: flex-start; }
.case-studies-sidebar-inner { position: static; width: 100%; transform: none; }
.case-studies-sidebar h1 { margin: 0 0 16px; max-width: 14ch; white-space: normal; font-size: clamp(28px, 3vw, 46px); line-height: 1; overflow-wrap: anywhere; word-break: break-word; }
.case-studies-sidebar p { max-width: 46ch; line-height: 1.55; }
.case-studies-filter-slot { min-height: 1px; margin-top: 36px; }
.case-studies-results { min-width: 0; min-height: 0; height: 100%; padding: 6px; border: 1px solid var(--portal-border); border-left: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--portal-text) var(--portal-bg); }
.case-studies-results::-webkit-scrollbar { width: 6px; }
.case-studies-results::-webkit-scrollbar-track { background: var(--portal-bg); }
.case-studies-results::-webkit-scrollbar-thumb { background: var(--portal-text); border: 1px solid var(--portal-bg); border-radius: 0; }
.case-studies-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-content: start; }
.case-studies-empty { min-height: 280px; }
.case-studies-results > .case-studies-empty { border: 0; }
.case-study-card { min-width: 0; min-height: 0; padding: 10px; border: 1px solid var(--portal-border); color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.case-study-card:hover { background: var(--portal-text); color: var(--portal-bg); }
.case-study-card-logo { width: 100%; height: clamp(168px, 11vw, 220px); min-height: clamp(168px, 11vw, 220px); margin: 0; border: 1px solid currentColor; display: grid; place-items: center; overflow: hidden; background: var(--portal-bg); color: var(--portal-text); }
.case-study-card-logo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.case-study-card-logo img,
.public-brandbook img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.case-study-card-logo-empty { font-size: 10px; }
.case-study-card h2 { margin: 0; font-size: clamp(22px, 2.4vw, 40px); line-height: 1; overflow-wrap: anywhere; }
.case-study-card-lead { margin: 0; max-width: 680px; font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.case-study-card[data-archive-project="noctrune-objects"] h2 { font-family: "Nocturne Manrope", Arial, sans-serif; font-weight: 700; }
.case-study-card[data-archive-project="noctrune-objects"] .case-study-card-lead { font-family: "Nocturne Arimo", Arial, sans-serif; font-weight: 400; }
.case-study-card[data-archive-project="room-index"] h2 { font-family: Impact, Haettenschweiler, sans-serif; font-weight: 400; }
.case-study-card[data-archive-project="room-index"] .case-study-card-lead { font-family: "Room Index Neue Haas", Arial, sans-serif; font-weight: 400; }
.case-study-card[data-archive-project="palgae"] h2 { font-family: "Palgae Outfit", Arial, sans-serif; font-weight: 400; text-transform: none; }
.case-study-card-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.case-study-card-meta > div { min-height: 84px; padding: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.case-study-card-meta dt { margin-bottom: 8px; font-size: 9px; }
.case-study-card-meta dd { margin: 0; font-size: 11px; line-height: 1.4; }
.case-study-card-open { margin-top: 0; align-self: flex-start; padding: 4px 6px; border: 1px solid currentColor; font-size: 10px; }
.case-study-admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.case-study-admin-add { display: grid; grid-template-columns: minmax(180px, 1fr) 120px auto; gap: 6px; align-items: end; margin-top: 16px; }
.case-study-admin-add label { display: grid; gap: 4px; }
.case-study-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.case-study-admin-card { min-height: 150px; border: 1px solid var(--portal-border); display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 8px; padding: 8px; align-items: start; }
.case-study-admin-logo { width: 140px; height: 132px; border: 1px solid var(--portal-border); display: grid; place-items: center; overflow: hidden; font-size: 9px; }
.case-study-admin-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.case-study-admin-info h3 { margin: 6px 0; font-size: 18px; }
.case-study-admin-info p { margin: 0 0 8px; overflow-wrap: anywhere; }
.case-study-admin-card > form { align-self: start; }
.case-study-detail-page { overflow: hidden; }
.case-study-detail-page .min-h-screen { height: 100dvh; min-height: 100dvh; overflow: hidden; }
body.case-study-detail-page.shared-footer-page .min-h-screen > main { min-height: 0; padding: 8px 0; overflow: hidden; flex: 1 1 0; }
.case-study-detail-results { min-height: 0; padding: 0; border: 0; overflow: hidden; }
.case-study-detail-shell { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); gap: 0; align-items: stretch; overflow: hidden; }
.case-study-detail-back { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid currentColor; color: inherit; text-decoration: none; }
.case-study-detail-back:hover { background: var(--portal-text); color: var(--portal-bg); }
.case-study-detail-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.case-study-detail-info { min-width: 0; min-height: 0; padding: clamp(14px, 2vw, 32px); border: 1px solid var(--portal-border); border-left: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--portal-text) transparent; }
.case-study-detail-info::-webkit-scrollbar { width: 4px; height: 4px; }
.case-study-detail-info::-webkit-scrollbar-track { background: transparent; }
.case-study-detail-info::-webkit-scrollbar-thumb { background: var(--portal-text); border-radius: 0; }
.case-study-detail-info h1 { margin: 10px 0 14px; font-size: clamp(28px, 3vw, 46px); line-height: 1; overflow-wrap: anywhere; }
.case-study-detail-lead { margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.case-study-detail-info-list { display: grid; gap: 0; }
.case-study-detail-info-list section { padding: 10px 0; border-top: 1px solid var(--portal-border); }
.case-study-detail-info-list p { margin: 8px 0 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.case-study-detail-presence { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-study-detail-presence button { appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; }
.case-study-detail-website { min-width: 0; padding: 4px 0; border-bottom: 1px solid transparent !important; font-family: inherit; font-size: 12px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-study-detail-socials { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.case-study-detail-socials a, .case-study-detail-socials button { width: 28px; height: 28px; padding: 3px; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; display: grid; place-items: center; color: var(--portal-text); font-family: "Space Mono", monospace; font-size: 11px; line-height: 1; cursor: pointer; transition: color .15s ease; }
.case-study-detail-socials svg { width: 100%; height: 100%; fill: currentColor; stroke: none; transition: fill .15s ease, stroke .15s ease; }
.case-study-detail-socials a:hover, .case-study-detail-socials a:focus-visible, .case-study-detail-socials button:hover, .case-study-detail-socials button:focus-visible { color: var(--portal-text); background: transparent !important; outline: 0; }
.case-study-detail-socials a:hover svg, .case-study-detail-socials a:focus-visible svg, .case-study-detail-socials button:hover svg, .case-study-detail-socials button:focus-visible svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.case-study-detail-website:hover, .case-study-detail-website:focus-visible { padding-inline: 5px; border-bottom-color: var(--portal-border) !important; }
.pr-brand-presence-controls { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--portal-border); }
.pr-social-link-list { display: grid; gap: 4px; }
.pr-social-link-row { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(0, 1.5fr) auto; gap: 4px; align-items: end; }
.pr-social-platform-picker { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px; align-items: center; }
.pr-social-platform-icon { width: 28px; height: 28px; display: grid; place-items: center; }
.pr-social-platform-icon svg { width: 22px; height: 22px; fill: currentColor; }
.pr-social-remove { min-width: 28px; padding-inline: 6px; }
.public-brandbook { width: min(1180px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--portal-border); border-top: 1px solid var(--portal-border); }
.case-study-detail-shell .public-brandbook { grid-column: 2; width: 100%; height: 100%; min-width: 0; min-height: 0; border-left: 0; border-bottom: 1px solid var(--portal-border); display: flex; flex-direction: column; align-items: stretch; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scroll-padding-top: clamp(120px, 17dvh, 180px); scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--portal-text) var(--portal-bg); cursor: grab; user-select: none; -webkit-user-select: none; }
.case-study-detail-shell .public-brandbook.is-drag-scrolling { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.case-study-detail-shell .public-brandbook::-webkit-scrollbar { width: 5px; height: 5px; }
.case-study-detail-shell .public-brandbook::-webkit-scrollbar-track { background: var(--portal-bg); }
.case-study-detail-shell .public-brandbook::-webkit-scrollbar-thumb { background: var(--portal-text); border: 1px solid var(--portal-bg); border-radius: 0; }
.public-brandbook-logo-suite { flex: 0 0 clamp(190px, 27dvh, 280px); min-height: 190px; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); border-right: 1px solid var(--portal-border); border-bottom: 1px solid var(--portal-border); }
.public-brandbook-logo-suite > div { min-width: 0; padding: 8px; border-right: 1px solid var(--portal-border); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 6px; }
.public-brandbook-logo-suite > div:last-child { border-right: 0; }
.public-brandbook-logo-suite > div:first-child { position: relative; }
.public-brandbook-logo-suite > div:nth-child(2) { padding-left: 0; padding-right: 0; }
.public-brandbook-logo-suite > div:nth-child(2) > .kk-control-label { padding-left: 8px; padding-right: 8px; }
.public-brandbook-logo-suite > div:nth-child(2) { position: relative; }
.public-brandbook-logo-suite figure { position: relative; min-width: 0; min-height: 0; width: 100%; height: 100%; margin: 0; overflow: hidden; contain: strict; }
.public-brandbook-logo-suite .public-brandbook-logo-rotator,
.public-brandbook-logo-suite .public-brandbook-icon-rotator { position: absolute; inset: 0; width: 100%; height: 100%; }
.public-brandbook-logo-suite .public-brandbook-logo-rotator img,
.public-brandbook-logo-suite .public-brandbook-icon-rotator img { opacity: 0; visibility: hidden; transition: opacity .18s linear; }
.public-brandbook-logo-suite .public-brandbook-icon-rotator img { transition: none; }
.public-brandbook-logo-suite .public-brandbook-logo-rotator img.is-active,
.public-brandbook-logo-suite .public-brandbook-icon-rotator img.is-active { opacity: 1; visibility: visible; }
.public-brandbook-logo-suite .theme-brand-asset-dark { display: none; }
.public-brandbook-logo-suite .theme-brand-asset-light { display: block; }
[data-theme="dark"] .public-brandbook-logo-suite .theme-brand-asset-light { display: none; }
[data-theme="dark"] .public-brandbook-logo-suite .theme-brand-asset-dark { display: block; }
.public-brandbook-logo-suite img { position: absolute; top: 50%; left: 50%; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 120px; object-fit: contain; object-position: center; transform: translate(-50%, -50%); }
.public-brandbook-logo-suite > div:first-child .public-brandbook-icon-rotator img { width: min(230px, 64%); height: min(215px, 88%); max-height: none; object-fit: contain; object-position: center; }
.public-brandbook-logo-suite > div:nth-child(2) img { max-height: none; object-fit: contain; object-position: center; }
.public-brandbook-cover { flex: 0 0 clamp(190px, 26dvh, 280px); min-height: 190px; grid-column: 1 / -1; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 1px solid var(--portal-border); border-bottom: 1px solid var(--portal-border); overflow: hidden; }
.public-brandbook-cover-copy { min-width: 0; padding: clamp(12px, 1.7vw, 22px); display: flex; flex-direction: column; justify-content: center; gap: 7px; overflow: hidden; }
.public-brandbook-cover-copy { grid-column: 2; grid-row: 1; }
.public-brandbook-cover-copy h2 { margin: 0; font-family: var(--project-secondary-font, var(--project-primary-font, "Space Mono")); font-size: clamp(24px, 3.4dvh, 38px); line-height: 1; font-weight: normal; }
.public-brandbook-font-primary, .public-brandbook-font-secondary { min-height: 0; display: grid; gap: 7px; overflow: hidden; }
.public-brandbook-font-secondary { margin-top: 7px; padding-top: 9px; border-top: 1px solid var(--portal-border); }
.public-brandbook-font-primary p, .public-brandbook-font-secondary p { margin: 0; }
.public-brandbook-font-secondary p { font-family: var(--project-secondary-font, var(--project-primary-font, "Space Mono")); }
.public-brandbook-cover-visual { position: relative; grid-column: 1; grid-row: 1; min-width: 0; min-height: 0; margin: 0; border-right: 1px solid var(--portal-border); display: grid; place-items: center; overflow: hidden; background: var(--portal-bg); }
.public-brandbook-cover-visual img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.public-brandbook-cover-visual-empty { padding: 16px; color: var(--portal-muted); font-size: 10px; text-align: center; }
.case-study-detail-shell h1 { font-family: var(--project-primary-font, "Space Mono"), "Courier New", monospace; font-weight: var(--project-primary-font-weight, normal); }
.case-study-detail-shell p { font-family: var(--project-secondary-font, var(--project-primary-font, "Space Mono")), "Courier New", monospace; font-weight: var(--project-secondary-font-weight, normal); }
.public-brandbook-font-name { margin-top: clamp(8px, 1.2dvh, 14px); font-family: "Space Mono", "Courier New", monospace; font-size: 9px; line-height: 1.3; text-transform: uppercase; }
.public-brandbook-palette { flex: 0 0 clamp(120px, 17dvh, 180px); position: sticky; top: 0; z-index: 12; align-self: stretch; grid-column: 1 / -1; min-height: 120px; padding: 0; border-right: 1px solid var(--portal-border); border-bottom: 1px solid var(--portal-border); overflow: hidden; background: var(--portal-bg); box-shadow: 0 1px 0 var(--portal-border); }
.public-brandbook-palette > .kk-control-label { position: absolute; top: 7px; left: 8px; z-index: 2; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.public-brandbook-palette-strip { width: 100%; height: 100%; min-height: 120px; margin: 0; display: flex; border: 0; overflow: hidden; }
.public-brandbook-palette-strip > span { position: relative; min-width: 0; flex-grow: 0; flex-shrink: 1; display: block; }
.public-brandbook-palette-strip small { position: absolute; left: 5px; bottom: 7px; max-height: calc(100% - 14px); padding: 0; background: transparent; color: #fff; mix-blend-mode: difference; font-family: "Space Mono", "Courier New", monospace; font-size: 8px; line-height: 1; white-space: nowrap; display: flex; align-items: flex-start; gap: 4px; }
.public-brandbook-palette-strip small b { font: inherit; writing-mode: vertical-rl; transform: rotate(180deg); }
.public-brandbook-cover h1 { margin: 0; font-size: clamp(30px, 4.2dvh, 48px); line-height: .96; overflow-wrap: anywhere; }
.public-brandbook-cover p { max-width: 760px; margin: 0; font-size: clamp(9px, 1.05dvh, 11px); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.public-brandbook-alphabet { width: 100%; max-width: none !important; margin: 0 !important; display: grid !important; gap: 2px; font-size: clamp(10px, 1.35dvh, 13px) !important; line-height: 1.18 !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
.public-brandbook-alphabet span { display: block; min-width: 0; overflow-wrap: anywhere; }
.public-brandbook-font-primary .public-brandbook-alphabet { font-family: var(--project-primary-font, "Space Mono"), "Courier New", monospace; font-weight: var(--project-primary-font-weight, normal); }
.public-brandbook-font-secondary .public-brandbook-alphabet { font-family: var(--project-secondary-font, var(--project-primary-font, "Space Mono")), "Courier New", monospace; font-weight: var(--project-secondary-font-weight, normal); }
.public-brandbook-cover-copy:has(.public-brandbook-font-secondary:not([hidden])) { justify-content: space-evenly; }
.public-brandbook-cover-copy:has(.public-brandbook-font-secondary:not([hidden])) .public-brandbook-font-primary h1,
.public-brandbook-cover-copy:has(.public-brandbook-font-secondary:not([hidden])) h2 { font-size: clamp(24px, 3.2dvh, 36px); }
.public-brandbook-fields-row { flex: 0 0 clamp(130px, 18dvh, 190px); min-height: 130px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-brandbook-field { min-height: 0; padding: clamp(8px, 1.2vw, 14px); border-right: 1px solid var(--portal-border); border-bottom: 1px solid var(--portal-border); overflow: hidden; }
.public-brandbook-field p { margin: clamp(8px, 1.4dvh, 16px) 0 0; font-size: clamp(11px, 1.35dvh, 14px); line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.public-brandbook-materials { flex: 0 0 max(100%, 620px); display: flex; flex-direction: column; grid-column: 1 / -1; min-height: 620px; padding: 8px; border-right: 1px solid var(--portal-border); border-bottom: 1px solid var(--portal-border); }
.public-brandbook-logo-suite, .public-brandbook-materials { scroll-snap-align: start; scroll-snap-stop: always; }
.public-brandbook-materials { scroll-margin-top: 0; }
.public-brandbook-materials-gallery { position: relative; flex: 1 1 auto; min-height: clamp(460px, 65dvh, 740px); margin-top: 8px; padding: 0; overflow: hidden; perspective: 2600px; perspective-origin: 50% 42%; isolation: isolate; background: radial-gradient(circle at 46% 38%, color-mix(in srgb, var(--portal-text) 4%, transparent), transparent 74%); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.public-brandbook-materials-gallery.is-dragging { cursor: grabbing; }
.public-brandbook-materials-controls { position: absolute; top: 8px; right: 8px; z-index: 2000; display: flex; align-items: center; gap: 3px; padding: 3px; background: color-mix(in srgb, var(--portal-bg) 88%, transparent); color: var(--portal-text); cursor: default; }
.public-brandbook-materials-controls button { min-width: 28px; height: 28px; padding: 0 7px; border: 1px solid var(--portal-border); border-radius: 0; background: var(--portal-bg); color: var(--portal-text); font: inherit; font-size: 10px; line-height: 26px; cursor: pointer; }
.public-brandbook-materials-controls button:hover,
.public-brandbook-materials-controls button:focus-visible { background: var(--portal-text); color: var(--portal-bg); outline: 0; }
.public-brandbook-materials-controls button:disabled { opacity: .35; cursor: default; }
.public-brandbook-materials-zoom-value { min-width: 42px; padding: 0 3px; font-size: 10px; line-height: 28px; text-align: center; }
.public-brandbook-materials-space { position: absolute; left: 0; top: 0; display: block; transform-style: preserve-3d; transform-origin: 0 0; transform: translate3d(var(--space-pan-x, 0px), var(--space-pan-y, 0px), 0) scale(var(--space-zoom, 1)); transition: transform .12s ease-out; will-change: transform; }
.public-brandbook-materials-gallery.is-dragging .public-brandbook-materials-space { transition: none; }
.public-brandbook-materials-gallery.is-settling .public-brandbook-materials-space { transition: transform .32s cubic-bezier(.22, .75, .25, 1); }
.public-brandbook-materials-gallery figure { position: absolute; left: 0; top: 0; margin: 0; border: 0; background: transparent; transform: translate3d(var(--space-x, 0px), var(--space-y, 0px), var(--space-z, 0px)) rotateZ(var(--space-rotation, 0deg)) scale(var(--space-scale, 1)) scale(var(--space-hover-scale, 1)); transform-style: preserve-3d; transition: none; backface-visibility: hidden; overflow: hidden; }
.public-brandbook-materials-gallery.is-layout-ready figure { transition: transform .18s ease, outline-color .18s ease; }
.public-brandbook-materials-gallery figure:hover,
.public-brandbook-materials-gallery figure:focus-within,
.public-brandbook-materials-gallery figure.is-focused { --space-hover-scale: 1; filter: none; box-shadow: none; outline: 0; }
.public-brandbook-materials-gallery img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.public-brandbook-materials-gallery figcaption { display: none !important; }
.public-brandbook-materials > p { margin: 8px 0 0; }
.pr-brand-material-thumb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.pr-brand-material-thumb { position: relative; margin: 0; min-width: 0; }
.pr-brand-material-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--portal-border); display: block; }
.pr-brand-material-thumb button { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; padding: 0; border: 1px solid var(--portal-border); border-radius: 0; background: var(--portal-surface); color: var(--portal-text); font: inherit; line-height: 18px; text-align: center; cursor: pointer; }
.pr-brand-material-thumb button:hover,
.pr-brand-material-thumb button:focus-visible { background: var(--portal-text); color: var(--portal-surface); outline: 0; }
.pr-brand-material-thumb.is-cover-fallback::after { content: "COVER"; position: absolute; left: 4px; bottom: 4px; padding: 2px 4px; border: 1px solid currentColor; background: var(--portal-surface); color: var(--portal-text); font-size: 9px; line-height: 1; }
.kk-flow-frame { min-height: 420px; display: flex; flex-direction: column; align-content: stretch; }
.kk-flow-header { min-height: 44px; display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.kk-flow-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.kk-flow-step-host { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.kk-flow-step { flex: 0 0 auto; align-self: center; width: min(820px, calc(100% - 48px)); min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; padding: 12px 0; }
.kk-flow-step[hidden] { display: none !important; }
.kk-flow-question { display: grid; gap: 18px; }
.kk-question-copy { display: grid; gap: 0; }
.kk-question-copy > p:first-child { margin: 0; }
.kk-question-copy h2 { margin: 4px 0 0; max-width: 800px; font-size: clamp(24px, 2vw, 34px); line-height: 1.15; overflow-wrap: anywhere; }
.kk-question-description { max-width: 760px; margin: 4px 0 0; font-size: 13px; line-height: 1.55; }
.kk-flow-example { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; border: 1px solid var(--portal-border); padding: 10px 12px; color: var(--portal-muted); line-height: 1.45; }
.kk-flow-example span { color: var(--portal-text); text-transform: uppercase; white-space: nowrap; line-height: 1.45; }
.kk-flow-example p { margin: 0; overflow-wrap: anywhere; }
.kk-answer-field { display: grid; gap: 8px; }
.kk-answer-field textarea.portal-input { min-height: clamp(150px, 20dvh, 340px); resize: vertical; }
.kk-answer-field input.portal-input { min-height: 58px; }
.kk-flow-progress { display: none; }
.kk-flow-progress-bar { height: 100%; width: 0; background: var(--portal-text); transition: width .18s linear; }
.kk-flow-actions { display: flex; justify-content: space-between; align-items: center; gap: 6px; border-bottom: 1px solid var(--portal-border); padding-bottom: 8px; margin-top: auto; }
.kk-flow-actions .portal-button, .onboarding-form-actions .portal-button { width: auto; min-width: 128px; min-height: 32px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }
.kk-flow-actions .portal-button:disabled, .onboarding-form-actions .portal-button:disabled, .onboarding-form-actions .portal-button[aria-disabled="true"] { opacity: .35; background: transparent; color: var(--portal-muted); border-color: var(--portal-muted); cursor: not-allowed; }
.onboarding-form-actions { display: flex; justify-content: flex-end; gap: 6px; align-items: center; margin-top: 8px; }
.kk-flow-targets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.kk-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; max-height: 320px; overflow: auto; border: 1px solid var(--portal-border); padding: 3px; }
.kk-choice-grid .kk-control { grid-template-columns: minmax(0, 1fr) 14px; align-items: center; min-height: 46px; }
.kk-choice-grid .kk-control input[type="checkbox"], .kk-choice-grid .kk-control input[type="radio"] { appearance: none; -webkit-appearance: none; grid-column: 2; grid-row: 1; justify-self: end; width: 12px; height: 12px; margin: 0; border: 1px solid currentColor; background: transparent; color: inherit; }
.kk-choice-grid .kk-control input[type="checkbox"]:checked, .kk-choice-grid .kk-control input[type="radio"]:checked { background: currentColor; }
.kk-choice-grid .kk-control input[type="checkbox"]:focus-visible, .kk-choice-grid .kk-control input[type="radio"]:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.kk-choice-grid .kk-control span { grid-column: 1; grid-row: 1; min-width: 0; }
.kk-materials { display: grid; gap: 10px; }
.kk-material-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--portal-border); padding-bottom: 8px; }
.kk-material-head h2 { margin: 8px 0 6px; font-size: 28px; line-height: 1.1; }
.kk-material-head p { margin: 0 0 6px; max-width: 820px; }
.kk-material-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 4px; }
.kk-material-controls label { min-width: 220px; }
.kk-material-drop { display: grid; gap: 4px; border: 1px dashed var(--portal-border); padding: 12px; min-height: 70px; place-items: center; text-align: center; }
.kk-material-drop.is-active { background: var(--portal-text); color: var(--portal-bg); }
.kk-material-forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.kk-material-form { display: grid; gap: 4px; border: 1px solid var(--portal-border); padding: 6px; align-content: start; }
.kk-material-form textarea { min-height: 64px; resize: vertical; }
.kk-material-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.kk-material-card { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; border: 1px solid var(--portal-border); padding: 6px; min-width: 0; background: var(--portal-bg); }
.kk-material-card img, .kk-material-placeholder { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--portal-border); object-fit: cover; }
.kk-material-placeholder { display: grid; place-items: center; font-size: 18px; text-transform: uppercase; }
.kk-material-card-body { display: grid; gap: 4px; min-width: 0; }
.kk-material-card small { overflow-wrap: anywhere; }
.kk-material-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.project-room-app { display: flex; flex-direction: column; height: 100dvh; min-height: 0; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); overflow: hidden; }
body.project-room-page .project-room-app { height: 100%; }
.pr-dashboard-global-nav { flex: 0 0 auto; width: 100%; padding: 8px; background: var(--portal-bg); }
.pr-workspace { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 238px minmax(0, 1fr); border-top: 1px solid var(--portal-border); overflow: hidden; }
.pr-sidebar { display: grid; align-content: start; gap: 4px; height: 100%; min-height: 0; border-right: 1px solid var(--portal-border); padding: 6px; background: var(--portal-bg); min-width: 0; overflow-y: auto; }
.pr-mode-switch, .pr-theme-switch { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-nav { display: grid; gap: 3px; margin-top: 4px; }
.pr-nav-item { min-height: 38px; align-items: center; text-align: left; }
.pr-nav-item > span { min-width: 0; overflow-wrap: anywhere; }
.pr-main { min-width: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; background: var(--portal-bg); overflow: hidden; }
.pr-topbar { display: grid; gap: 10px; border-bottom: 1px solid var(--portal-border); padding: 8px; }
.pr-dashboard-nav-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; }
.pr-dashboard-navbar { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
.pr-dashboard-brand { flex: 0 0 auto; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pr-dashboard-navbar .portal-main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.pr-dashboard-navbar .portal-main-nav form { display: inline-flex; margin: 0; }
.pr-dashboard-navbar .portal-logout-button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pr-topbar-left { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.pr-topbar-right { flex: 0 1 auto; display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.pr-preview { flex: 1 1 auto; min-height: 0; padding: 8px; overflow: auto; background: var(--portal-bg); display: flex; flex-direction: column; }
.pr-preview-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--portal-border); padding-bottom: 8px; margin-bottom: 8px; }
.pr-preview-header h2 { margin: 6px 0 0; font-size: 28px; line-height: 1.12; }
.pr-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.pr-summary-document { margin-top: 10px; border-top: 1px solid var(--portal-border); border-bottom: 1px solid var(--portal-border); padding: 10px 0 14px; }
.pr-summary-document-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 2px 10px; }
.pr-summary-document-head h2 { margin: 0; font-size: 24px; line-height: 1.1; }
.pr-summary-section { margin-top: 16px; }
.pr-summary-section:first-of-type { margin-top: 4px; }
.pr-summary-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--portal-border); padding: 0 2px 5px; margin-bottom: 4px; }
.pr-summary-section-head h3 { margin: 0; font-size: 17px; line-height: 1.2; }
.pr-summary-section-index, .pr-summary-field-label { font-size: 10px; line-height: 1.25; text-transform: uppercase; letter-spacing: .03em; }
.pr-summary-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.pr-summary-field { min-width: 0; min-height: 86px; border: 1px solid var(--portal-border); padding: 7px; display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 10px; background: var(--portal-bg); color: var(--portal-text); overflow-wrap: anywhere; }
.pr-summary-field.is-wide { grid-column: 1 / -1; }
.pr-summary-field--hero { min-height: 96px; }
.pr-summary-field--hero .pr-summary-field-value { font-size: 25px; line-height: 1.12; }
.pr-summary-field--narrative { min-height: 132px; }
.pr-summary-field--links { min-height: 92px; }
.pr-summary-field-value { min-height: 1.4em; white-space: pre-wrap; }
.pr-summary-field-value p { margin: 0; white-space: normal; }
.pr-summary-field--character { min-height: 150px; grid-template-rows: auto auto auto 1fr auto; }
.pr-summary-field-description, .snapshot-field-description { margin: 0; line-height: 1.45; }
.pr-summary-edit-link, .pr-brand-character-edit { justify-self: start; margin-top: 4px; font-size: 11px; text-transform: uppercase; }
.pr-summary-field.is-empty .pr-summary-field-value { min-height: 48px; }
.pr-summary-field--narrative.is-empty .pr-summary-field-value { min-height: 88px; }
.pr-summary-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; }
.pr-summary-tag { border: 1px solid var(--portal-border); padding: 3px 6px; font-size: 11px; line-height: 1.2; }
.pr-summary-links { display: grid; align-content: start; gap: 4px; }
.pr-summary-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.pr-proposal-notes { align-content: start; }
.pr-proposal-notes textarea { width: 100%; margin: 0; resize: vertical; }
.pr-editor-row, .pr-upload-strip { margin-top: 8px; border: 1px solid var(--portal-border); padding: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pr-file-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.pr-file-card, .pr-work-card, .pr-thread-item, .pr-folder-panel { border: 1px solid var(--portal-border); padding: 6px; background: var(--portal-bg); min-width: 0; }
.pr-file-card { position: relative; }
.pr-file-card.is-selected { outline: 2px solid var(--portal-text); outline-offset: -3px; }
.pr-file-selection-control { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; padding: 4px 6px; border: 1px solid var(--portal-border); cursor: pointer; }
.pr-file-selection-control input { margin: 0; accent-color: var(--portal-text); }
.pr-file-card img, .pr-work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--portal-border); margin-bottom: 6px; }
.pr-file-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--portal-border); margin-bottom: 6px; font-size: 22px; }
.pr-file-font-preview { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--portal-border); margin-bottom: 6px; background: var(--portal-bg); color: var(--portal-text); font-size: clamp(34px, 4vw, 62px); line-height: .9; letter-spacing: -.06em; white-space: nowrap; overflow: hidden; }
.pr-empty { border: 1px dashed var(--portal-border); padding: 10px; color: var(--portal-muted); }
.pr-brand-layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(420px, 36%) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.pr-brand-controls { height: 100%; min-height: 0; display: grid; align-content: start; gap: 6px; border: 1px solid var(--portal-border); padding: 6px; overflow: auto; }
.pr-theme-asset-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--portal-border); }
.pr-theme-asset-columns > section { min-width: 0; padding: 6px; border-right: 1px solid var(--portal-border); display: grid; align-content: start; gap: 6px; }
.pr-theme-asset-columns > section:last-child { border-right: 0; background: #000; color: #fff; --portal-border: #fff; --portal-text: #fff; --portal-bg: #000; }
.pr-brand-book { container-type: inline-size; height: 100%; min-height: 0; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; }
.pr-brand-book.print-panel { height: auto; overflow: visible; }
.pr-brand-book h1,
.pr-brand-book h2,
.pr-brand-book h3 { font-family: var(--pr-primary-font-family, "Space Mono"), monospace; font-weight: var(--pr-primary-font-weight, 400); }
.pr-brand-book p { font-family: var(--pr-secondary-font-family, var(--pr-primary-font-family, "Space Mono")), sans-serif; font-weight: var(--pr-secondary-font-weight, 400); }
.pr-brand-spread { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-bottom: 1px solid var(--portal-border); padding: 8px 12px; min-height: 82px; }
.pr-brand-character-spread { grid-template-columns: 1fr; min-height: 150px; }
.pr-brand-character-content { display: grid; align-content: start; gap: 8px; }
.pr-brand-cover,
.pr-brand-cover h1,
.pr-brand-cover p,
.pr-brand-character-spread,
.pr-brand-character-spread h2,
.pr-brand-character-spread p { font-family: "Space Mono", "Courier New", monospace; font-weight: 300; }
.pr-brand-character-content h2 { margin: 0; font-size: 24px; line-height: 1.1; }
.pr-brand-draft-notice { margin: 0; max-width: 780px; color: var(--portal-muted); line-height: 1.45; }
.pr-brand-spread:last-child { flex: 1 1 auto; border-bottom: 0; align-content: start; }
.pr-brand-cover { align-items: start; }
.pr-brand-cover h1 { font-size: 42px; line-height: 1.02; margin: 8px 0; overflow-wrap: anywhere; }
.pr-logo-preview { max-height: 140px; max-width: 100%; border: 1px solid var(--portal-border); padding: 6px; object-fit: contain; }
.pr-brand-logo-suite-spread { grid-template-columns: minmax(160px, .65fr) minmax(0, 1.35fr); align-items: start; }
.pr-brand-logo-cell { min-width: 0; display: flex; flex-direction: column; }
.pr-brand-primary-logo, .pr-brand-icon-card, .pr-brand-secondary-card { position: relative; min-height: 160px; border: 1px solid var(--portal-border); padding: 12px; display: grid; place-items: center; overflow: hidden; }
.pr-brand-primary-logo { width: 100%; height: 160px; }
.pr-brand-icon-card { width: 100%; height: auto; aspect-ratio: 1 / 1; min-height: 0; }
.pr-brand-primary-logo img { width: 100%; height: 108px; object-fit: contain; }
.pr-brand-icon-card img { width: 100%; height: 100%; object-fit: contain; }
.pr-brand-icon-rotator { position: relative; width: 100%; height: 100%; margin: 0; }
.pr-brand-icon-rotator img { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: none; }
.pr-brand-icon-rotator img.is-active { opacity: 1; visibility: visible; }
.pr-brand-thumbnail-upload { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; cursor: pointer; }
.pr-brand-thumbnail-upload:hover { outline: 1px dashed var(--portal-border); outline-offset: -1px; }
.pr-brand-thumbnail-upload img { max-width: 100%; max-height: 100%; }
.pr-brand-secondary-suite { grid-column: 1 / -1; }
.pr-brand-secondary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.pr-brand-secondary-card { min-height: 92px; height: 92px; padding: 8px; }
.pr-brand-secondary-card img { width: 100%; height: 76px; object-fit: contain; }
.pr-brand-asset-remove { position: absolute; top: 4px; right: 4px; z-index: 2; min-width: 24px; min-height: 24px; padding: 2px; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); cursor: pointer; }
.pr-brand-control-assets { display: grid; gap: 3px; margin-top: -2px; }
.pr-brand-control-asset { min-height: 30px; border: 1px dashed var(--portal-border); padding: 4px 4px 4px 7px; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 4px; align-items: center; }
.pr-brand-control-asset span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-brand-control-asset button { min-width: 24px; min-height: 24px; padding: 0; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); cursor: pointer; }
.pr-font-upload-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(86px, auto); gap: 4px; align-items: stretch; }
.pr-font-upload-preview { min-height: 2.4rem; border: 1px solid var(--portal-border); display: flex; align-items: center; justify-content: flex-start; padding: 0 .5rem; background: var(--portal-bg); color: var(--portal-text); font-size: 24px; line-height: 1; overflow: hidden; }
.pr-font-upload-action, .pr-font-upload-name { min-height: 2.4rem; height: 100%; }
.pr-font-upload-name { display: flex; align-items: center; justify-content: flex-start; max-width: 132px; border: 1px solid var(--portal-border); padding: 0 .5rem; background: var(--portal-bg); color: var(--portal-muted); opacity: .72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.pr-color-tool { display: grid; gap: 4px; }
.pr-color-control-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "picker fields add"; gap: 4px; margin-top: 4px; align-items: stretch; }
.pr-color-control-row > .pr-color-picker { grid-area: picker; height: 100%; min-height: 92px; }
.pr-color-value-fields { grid-area: fields; display: grid; gap: 4px; }
.pr-color-value-field { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0; align-items: stretch; }
.pr-color-value-field > .kk-control-label { display: flex; align-items: center; border: 1px solid var(--portal-border); border-right: 0; padding: 0 5px; }
.pr-color-value-field > .portal-input { min-height: 2.6rem; }
.pr-color-control-row > [data-pr-color-add] { grid-area: add; }
.pr-color-picker { width: 100%; height: 2rem; min-height: 2rem; padding: 0; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); cursor: pointer; }
.pr-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.pr-color-picker::-webkit-color-swatch { border: 0; }
.pr-brand-typography { display: grid; gap: 8px; justify-items: start; }
.pr-font-aa { margin: 0; font-size: 48px; line-height: 1; text-align: left; }
.pr-swatch-row { display: grid; grid-template-columns: repeat(auto-fill, 46px); gap: 4px; align-items: start; margin-top: 8px; }
.pr-swatch { position: relative; display: block; width: 46px; height: 46px; min-width: 0; padding: 0; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); overflow: hidden; cursor: pointer; }
.pr-swatch.is-editing { outline: 1px dashed var(--portal-border); outline-offset: 2px; }
.pr-swatch-surface { position: absolute; inset: 0; display: block; border: 0; }
.pr-swatch-code { position: absolute; inset: 0; display: grid; place-items: center; padding: 2px; background: var(--portal-bg); color: var(--portal-text); font-size: 8px; line-height: 1; opacity: 0; pointer-events: none; }
.pr-swatch:hover .pr-swatch-code, .pr-swatch:focus-visible .pr-swatch-code { opacity: 1; }
.pr-swatch-editor { grid-column: 1 / -1; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; grid-template-areas: "picker fields apply remove" "picker fields close close"; gap: 4px; align-items: stretch; width: 100%; border: 1px dashed var(--portal-border); padding: 4px; margin-top: 2px; }
.pr-swatch-editor > .pr-color-picker { grid-area: picker; height: 100%; min-height: 92px; }
.pr-swatch-editor > .pr-color-value-fields { grid-area: fields; }
.pr-swatch-editor > [data-pr-color-edit-save] { grid-area: apply; }
.pr-swatch-editor > [data-pr-color-remove] { grid-area: remove; }
.pr-swatch-editor > [data-pr-color-edit-cancel] { grid-area: close; }
.pr-brand-color-spread { grid-template-columns: 1fr; padding: 0; gap: 0; }
.pr-brand-materials-spread { grid-template-columns: 1fr; padding: 8px 12px; }
.pr-brand-materials-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-brand-materials-spread p { margin: 8px 0 0; }
.pr-brand-color-spread > div { position: relative; min-width: 0; }
.pr-brand-color-spread > div > .kk-control-label { position: absolute; top: 7px; left: 8px; z-index: 3; }
.pr-color-row-tools { padding: 25px 8px 8px; display: grid; grid-template-columns: minmax(190px, .6fr) minmax(180px, 1.4fr); gap: 8px; align-items: start; border-bottom: 1px solid var(--portal-border); }
.pr-color-row-tools .pr-color-tool { align-self: start; }
.pr-color-row-tools .pr-swatch-row { margin-top: 0; }
.pr-color-row-tools .pr-color-weight-controls { grid-column: 1 / -1; margin-top: 0; }
.pr-color-dominance-strip { width: 100%; min-height: 96px; display: flex; overflow: hidden; border: 0; margin: 0; }
.pr-color-dominance-strip > span { position: relative; min-width: 0; flex-grow: 0; flex-shrink: 1; display: block; }
.pr-color-dominance-strip small { position: absolute; left: 8px; bottom: 7px; max-height: calc(100% - 14px); padding: 0; background: transparent; color: #fff; mix-blend-mode: difference; font-size: 8px; white-space: nowrap; display: flex; align-items: flex-start; gap: 4px; }
.pr-color-dominance-strip small b { font: inherit; writing-mode: vertical-rl; transform: rotate(180deg); }
.pr-color-weight-controls { display: grid; gap: 5px; margin-top: 8px; }
.pr-color-weight-controls label { display: grid; grid-template-columns: minmax(118px, auto) minmax(120px, 1fr) 42px; gap: 8px; align-items: center; font-size: 9px; }
.pr-color-weight-controls label span { display: flex; align-items: center; gap: 6px; }
.pr-color-weight-controls i { width: 14px; height: 14px; border: 1px solid var(--portal-border); display: inline-block; }
.pr-color-weight-controls input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 0; padding: 0; border: 1px solid var(--portal-border); border-radius: 0; background: var(--pr-range-color, var(--portal-text)); cursor: ew-resize; }
.pr-color-weight-controls input[type="range"]::-webkit-slider-runnable-track { width: 100%; height: 4px; border: 0; border-radius: 0; background: var(--pr-range-color, var(--portal-text)); }
.pr-color-weight-controls input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 1px solid var(--portal-bg); border-radius: 0; background: var(--portal-text); box-shadow: none; }
.pr-color-weight-controls input[type="range"]::-moz-range-track { width: 100%; height: 4px; border: 0; border-radius: 0; background: var(--pr-range-color, var(--portal-text)); }
.pr-color-weight-controls input[type="range"]::-moz-range-progress { height: 4px; border: 0; border-radius: 0; background: var(--pr-range-color, var(--portal-text)); }
.pr-color-weight-controls input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 1px solid var(--portal-bg); border-radius: 0; background: var(--portal-text); box-shadow: none; }
.pr-color-weight-controls output { text-align: right; }
@container (max-width: 560px) {
    .pr-color-row-tools { grid-template-columns: minmax(0, 1fr); }
    .pr-color-row-tools .pr-color-weight-controls { grid-column: 1; }
    .pr-color-control-row { grid-template-columns: 42px minmax(0, 1fr); grid-template-areas: "picker fields" "add add"; width: 100%; }
    .pr-swatch-editor { grid-template-columns: 42px minmax(0, 1fr); grid-template-areas: "picker fields" "apply apply" "remove remove" "close close"; width: 100%; }
    .pr-color-weight-controls label { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
.pr-cover-panel { display: grid; grid-template-rows: auto auto auto; gap: 6px; min-height: 0; align-content: start; }
.pr-cover-surface { width: 100%; min-height: 0; aspect-ratio: 16 / 10; border: 1px solid var(--portal-border); display: grid; place-items: center; overflow: hidden; color: var(--portal-text); }
.pr-cover-surface img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.pr-cover-surface img { display: block; }
.pr-cover-slides { position: relative; width: 100%; height: 100%; overflow: hidden; }
.pr-cover-slide { position: absolute; inset: 0; opacity: 0; }
.pr-cover-slide.is-active { opacity: 1; }
.pr-cover-slide-index { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 3px 5px; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); font-family: "Space Mono", "Courier New", monospace; font-size: 9px; line-height: 1; }
.pr-cover-media { min-width: 0; display: grid; gap: 4px; }
.pr-cover-indicators { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pr-cover-indicator { position: relative; width: 54px; height: 38px; padding: 0; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); cursor: pointer; overflow: hidden; }
.pr-cover-indicator img { width: 100%; height: 100%; display: block; object-fit: contain; }
.pr-cover-indicator > span { position: absolute; left: 3px; top: 3px; z-index: 1; min-width: 14px; padding: 2px 3px; background: var(--portal-bg); color: var(--portal-text); font: 9px/1 "Space Mono", "Courier New", monospace; }
.pr-cover-indicator.is-active { outline: 2px solid var(--portal-text); outline-offset: -2px; }
.case-study-cover-rotator, .public-brandbook-cover-rotator { position: relative; width: 100%; overflow: hidden; }
.case-study-cover-rotator { height: clamp(168px, 11vw, 220px); min-height: clamp(168px, 11vw, 220px); flex: 0 0 clamp(168px, 11vw, 220px); }
.public-brandbook-cover-rotator { height: 100%; }
.case-study-cover-rotator img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.case-study-cover-rotator img.is-active { opacity: 1; }
.public-brandbook-cover-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.public-brandbook-cover-slide.is-active { opacity: 1; }
.public-brandbook-cover-slide img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 1; }
.pr-cover-controls { display: flex; flex-wrap: wrap; gap: 4px; align-items: stretch; }
.pr-cover-controls > .portal-button, .pr-cover-color-row, .pr-cover-color-row > .pr-color-picker, .pr-cover-color-row > .portal-input { height: 2rem; min-height: 2rem; margin: 0; box-sizing: border-box; }
.pr-cover-color-row { display: grid; grid-template-columns: 42px minmax(96px, 132px); gap: 4px; align-items: stretch; align-self: stretch; }
.pr-mini-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pr-mini-image-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--portal-border); }
.pr-thread, .pr-work-grid, .pr-folder-grid { display: grid; gap: 6px; margin-top: 8px; }
.pr-work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pr-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pr-folder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--portal-border); padding-bottom: 6px; margin-bottom: 6px; }
.pr-folder-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.pr-folder-head h3, .pr-work-card h3 { margin: 2px 0 6px; font-size: 18px; }
.pr-material-summary { margin-top: 18px; }
.pr-materials-dropzone { width: 100%; min-height: 112px; margin-top: 8px; padding: 18px 16px; border: 1px dashed var(--portal-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; background: var(--portal-bg); color: var(--portal-text); cursor: pointer; }
.pr-materials-dropzone:hover, .pr-materials-dropzone:focus-within, .pr-materials-dropzone.is-dragover { background: var(--portal-text); color: var(--portal-bg); }
.pr-materials-dropzone-label { text-transform: uppercase; }
.pr-materials-dropzone-hint { color: inherit; opacity: .68; }
.pr-summary-folder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pr-summary-folder { min-height: 76px; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-content: start; text-align: left; cursor: pointer; }
.pr-summary-folder small { grid-column: 1 / -1; opacity: .65; }
.pr-summary-folder:hover, .pr-summary-folder:focus-visible, .pr-summary-folder.is-dragover { background: var(--portal-text); color: var(--portal-bg); }
.pr-summary-inbox { display: grid; gap: 6px; margin-top: 8px; border: 1px solid var(--portal-border); padding: 6px; }
.pr-material-drag-card { min-width: 0; cursor: grab; }
.pr-material-drag-card:active, .pr-summary-folder-file:active { cursor: grabbing; }
.pr-summary-notes { width: 100%; margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--portal-border); }
.pr-summary-note-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 8px; width: 100%; overflow-x: auto; overflow-y: hidden; padding: 0 0 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pr-summary-note-paper { position: relative; min-height: 174px; max-height: 174px; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); text-align: left; scroll-snap-align: start; cursor: pointer; overflow: hidden; }
.pr-summary-note-open { width: 100%; height: 172px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 5px; padding: 8px; border: 0; background: transparent; color: inherit; text-align: left; cursor: inherit; font: inherit; }
.pr-summary-note-paper:hover, .pr-summary-note-paper:focus-visible { background: var(--portal-text); color: var(--portal-bg); }
.pr-summary-note-delete { position: absolute; z-index: 2; top: 6px; right: 6px; min-width: 0; min-height: 0; margin: 0; padding: 2px 5px; border: 1px solid currentColor; background: var(--portal-bg); color: var(--portal-text); font-family: inherit; font-size: 10px; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; }
.pr-summary-note-paper:hover .pr-summary-note-delete, .pr-summary-note-paper:focus-within .pr-summary-note-delete { opacity: 1; pointer-events: auto; }
.pr-summary-note-delete:hover, .pr-summary-note-delete:focus-visible { background: var(--portal-text); color: var(--portal-bg); }
.pr-summary-note-paper[draggable="true"] { cursor: grab; }
.pr-summary-note-paper.is-dragging { opacity: .42; cursor: grabbing; }
.pr-summary-note-paper.is-dragover-before { box-shadow: inset 3px 0 0 currentColor; }
.pr-summary-note-paper.is-dragover-after { box-shadow: inset -3px 0 0 currentColor; }
.pr-summary-note-preview { display: block; min-height: 136px; max-height: 136px; overflow: hidden; border-top: 1px solid currentColor; padding-top: 7px; line-height: 1.45; white-space: pre-wrap; }
.pr-summary-note-modal, .pr-summary-folder-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.pr-summary-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.72); cursor: default; }
.pr-summary-note-dialog, .pr-summary-folder-dialog { position: relative; z-index: 1; width: min(760px, 94vw); max-height: 88dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; border: 1px solid var(--portal-border); padding: 10px; background: var(--portal-bg); color: var(--portal-text); }
.pr-summary-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--portal-border); padding-bottom: 8px; }
.pr-summary-modal-head h3 { margin: 2px 0 0; font-size: 20px; }
.pr-summary-note-dialog textarea { width: 100%; min-height: min(62dvh, 520px); max-height: min(62dvh, 520px); resize: none; overflow-y: auto; padding: 10px; line-height: 1.5; }
.pr-summary-folder-dialog { width: min(1100px, 96vw); }
.pr-summary-folder-actions { display: flex; align-items: center; gap: 6px; }
.pr-summary-folder-files { min-height: 180px; max-height: 68dvh; overflow: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-content: start; }
.pr-summary-folder-file { position: relative; min-width: 0; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); overflow: hidden; cursor: grab; }
.pr-summary-folder-file > img, .pr-summary-folder-file > .pr-file-placeholder, .pr-summary-folder-file > .pr-file-font-preview { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0; border-bottom: 1px solid var(--portal-border); margin-bottom: 0; }
.pr-summary-folder-file-copy { padding: 7px; min-width: 0; }
.pr-summary-folder-file-copy p, .pr-summary-folder-file-copy small { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-summary-file-actions { position: absolute; top: 5px; right: 5px; display: flex; gap: 3px; opacity: 0; transition: opacity .12s linear; }
.pr-summary-folder-file:hover .pr-summary-file-actions, .pr-summary-folder-file:focus-within .pr-summary-file-actions { opacity: 1; }
.pr-summary-file-actions button { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); cursor: pointer; font: inherit; }
.pr-summary-file-actions button:hover, .pr-summary-file-actions button:focus-visible { background: var(--portal-text); color: var(--portal-bg); }
@media (max-width: 760px) {
  .pr-summary-folder-grid, .pr-summary-folder-files { grid-template-columns: 1fr; }
  .pr-summary-note-modal, .pr-summary-folder-modal { padding: 8px; }
  .pr-summary-folder-actions { align-items: stretch; }
}
.pr-ycswu-folder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.pr-ycswu-folder, .pr-ycswu-file-card { display: grid; gap: 6px; text-align: left; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); padding: 8px; cursor: pointer; }
.pr-ycswu-folder:hover, .pr-ycswu-file-card:hover, .pr-ycswu-file-card.is-active { background: var(--portal-text); color: var(--portal-bg); }
.pr-ycswu-folder h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.1; }
.pr-ycswu-folder p, .pr-ycswu-file-card small { margin: 0; color: inherit; }
.pr-ycswu-breadcrumb { display: flex; align-items: center; justify-content: flex-start; gap: 8px; border: 1px solid var(--portal-border); padding: 6px; margin-top: 0; }
.pr-ycswu-browser { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 8px; margin-top: 8px; align-items: start; }
.pr-ycswu-list, .pr-ycswu-preview { display: grid; gap: 6px; border: 1px solid var(--portal-border); padding: 6px; min-width: 0; }
.pr-ycswu-preview .pr-preview-header { margin-bottom: 0; }
.pr-ycswu-preview h3 { margin: 4px 0 0; font-size: 22px; line-height: 1.1; }
.pr-ycswu-preview-surface { min-height: 220px; border: 1px solid var(--portal-border); display: grid; place-items: center; padding: 12px; text-align: center; overflow: hidden; }
.pr-ycswu-preview-surface img, .pr-ycswu-preview-surface iframe { width: 100%; height: 100%; min-height: 220px; border: 0; object-fit: contain; }
.pr-ycswu-preview-surface.is-model-cover { height: clamp(280px, 32vw, 520px); padding: 0; background: #000; }
.pr-ycswu-preview-surface.is-model-cover img { object-fit: cover; object-position: center; }
.pr-font-sample { justify-items: start; text-align: left; font-size: 24px; line-height: 1.2; }
.pr-font-sample span { display: block; }
.pr-text-sample { justify-items: start; text-align: left; place-items: start; }
.pr-ycswu-gallery { display: grid; gap: 5px; min-width: 0; margin-top: 2px; }
.pr-ycswu-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-ycswu-gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 4); gap: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; padding-bottom: 4px; }
.pr-ycswu-gallery-item { aspect-ratio: 4 / 3; min-width: 0; border: 1px solid var(--portal-border); padding: 0; overflow: hidden; background: #000; cursor: pointer; scroll-snap-align: start; }
.pr-ycswu-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pr-ycswu-gallery-item:hover, .pr-ycswu-gallery-item.is-active { outline: 2px solid var(--portal-text); outline-offset: -3px; }
.pr-ycswu-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-tools-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.pr-tools-header { flex: 0 0 auto; }
.pr-tool-tabs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid var(--portal-border);
  padding-bottom: 6px;
}
.pr-tool-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.pr-tool-tabs .portal-badge { cursor: pointer; }
.pr-tool-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}
.pr-tool-support-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-content: center;
  min-width: 154px;
  padding: 4px 8px;
  text-align: left;
  line-height: 1.05;
}
.pr-tool-support-link > span:first-child {
  grid-column: 1;
  grid-row: 1;
  font-size: 12px;
}
.pr-tool-support-link small {
  grid-column: 1;
  grid-row: 2;
  font: 300 8px/1.1 "Space Mono", monospace;
  letter-spacing: 0;
  opacity: .72;
}
.pr-tool-support-link .pr-external-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}
.pr-tool-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pr-tool-card { display: grid; gap: 8px; min-height: 138px; text-align: left; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); padding: 8px; cursor: pointer; }
.pr-tool-card:hover, .pr-tool-card:focus-visible { background: var(--portal-text); color: var(--portal-bg); }
.pr-tool-card h3 { margin: 0; font-size: 20px; line-height: 1.1; }
.pr-tool-card p { margin: 0; color: inherit; }
.pr-tool-stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--portal-border); }
.pr-tool-stage-head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--portal-border); padding: 8px; }
.pr-tool-stage-head h3 { margin: 4px 0 0; font-size: 28px; line-height: 1.05; }
.pr-tool-link { display: inline-flex; align-items: center; margin-left: 10px; border: 1px solid currentColor; padding: 2px 5px; color: inherit; text-decoration: none; font-size: 11px; line-height: 1; vertical-align: middle; }
.pr-tool-link:hover, .pr-tool-link:focus-visible { background: var(--portal-text); color: var(--portal-bg); }
.pr-tool-frame-shell { flex: 1 1 auto; min-height: 0; display: flex; background: #000; overflow: hidden; }
.pr-tool-frame { width: 100%; height: 100%; min-height: 0; border: 0; background: #000; display: block; }
.pr-tool-surface { flex: 1 1 auto; min-height: 320px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 8px; padding: 8px; overflow: hidden; }
.pr-tool-surface aside { border-left: 1px solid var(--portal-border); padding-left: 8px; display: grid; align-content: start; gap: 10px; }
.pr-tool-meter { height: 10px; border: 1px solid var(--portal-border); }
.pr-tool-meter span { display: block; height: 100%; background: var(--portal-text); }
.pr-tool-pixel-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; min-height: 100%; }
.pr-tool-pixel-grid span { border: 1px solid var(--portal-border); background: var(--portal-bg); }
.pr-tool-pixel-grid span.is-on { background: var(--portal-text); }
.pr-tool-shape, .pr-tool-type-preview, .pr-tool-spark-grid, .pr-tool-lines, .pr-tool-frames { min-height: 100%; border: 1px solid var(--portal-border); }
.pr-tool-shape { display: grid; place-items: center; }
.pr-tool-shape span { width: min(46vw, 360px); aspect-ratio: 1; border: 1px solid var(--portal-border); clip-path: polygon(50% 0, 92% 24%, 82% 78%, 32% 100%, 0 52%); }
.pr-tool-type-preview { display: grid; place-items: center; font-size: clamp(80px, 16vw, 220px); line-height: 1; }
.pr-tool-spark-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 8px; }
.pr-tool-spark-grid span { display: grid; place-items: center; border: 1px solid var(--portal-border); font-size: 24px; opacity: .45; }
.pr-tool-spark-grid span.is-hot { background: var(--portal-text); color: var(--portal-bg); opacity: 1; }
.pr-tool-lines { position: relative; overflow: hidden; }
.pr-tool-lines span { position: absolute; top: -20%; bottom: -20%; width: 1px; background: var(--portal-text); transform: rotate(-16deg); transform-origin: center; }
.pr-tool-frames { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 8px; }
.pr-tool-frames span { display: grid; place-items: center; border: 1px solid var(--portal-border); min-height: 72px; }
.pr-question-compose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: start; justify-items: stretch; margin-top: 8px; }
.pr-question-compose textarea { width: 100%; min-height: 96px; resize: vertical; }
.pr-question-compose .portal-button { width: auto; min-width: 86px; min-height: 2rem; align-self: start; justify-self: end; }
.pr-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.pr-form-grid textarea { grid-column: span 2 / span 2; }
.pr-paint-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 4px; flex-wrap: wrap; width: 100%; }
.pr-paint-toolbar-left, .pr-paint-toolbar-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pr-paint-toolbar-actions { margin-left: auto; justify-content: flex-end; }
.pr-paint-toolbar .portal-input { width: auto; min-width: 64px; height: 2rem; min-height: 2rem; max-height: 2rem; padding: 0 .7rem; line-height: 1; appearance: none; -webkit-appearance: none; }
.pr-paint-image-button { min-height: 2rem; }
.pr-paint-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pr-paint-panel .pr-preview-header { flex: 0 0 auto; }
.pr-paint-canvas-wrap { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; border: 1px solid var(--portal-border); background: var(--portal-bg); }
.pr-paint-canvas { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; background: transparent; touch-action: none; image-rendering: auto; }
.pr-paint-image-visual-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pr-paint-image-visual-item { position: absolute; user-select: none; }
.pr-paint-image-visual-item img { width: 100%; height: 100%; object-fit: fill; display: block; user-select: none; pointer-events: none; }
.pr-paint-image-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pr-paint-image-item { position: absolute; pointer-events: auto; border: 1px solid transparent; cursor: move; user-select: none; touch-action: none; background: transparent; }
.pr-paint-image-item:hover { border-color: var(--portal-muted); }
.pr-paint-image-item.is-active { border-color: var(--portal-border); outline: 1px dashed var(--portal-text); outline-offset: 2px; }
.pr-paint-image-hit { position: absolute; inset: 0; display: block; }
.pr-paint-image-delete, .pr-paint-image-handle { opacity: 0; pointer-events: none; }
.pr-paint-image-item:hover .pr-paint-image-delete, .pr-paint-image-item:hover .pr-paint-image-handle { opacity: 1; pointer-events: auto; }
.pr-paint-image-delete { position: absolute; top: -1px; right: -1px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--portal-border); background: var(--portal-bg); color: var(--portal-text); font: inherit; line-height: 1; padding: 0; cursor: pointer; }
.pr-paint-image-handle { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 1px solid var(--portal-border); background: var(--portal-bg); cursor: nwse-resize; }
[data-dashboard-mode-section][hidden] { display: none !important; }

.min-h-screen { min-height: 100vh; }
.min-h-32 { min-height: 8rem; }
.h-3 { height: .75rem; }
.h-fit { height: fit-content; }
.w-3 { width: .75rem; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.max-w-full { max-width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.place-items-center { place-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.border { border: 1px solid var(--portal-border); }
.border-b { border-bottom: 1px solid var(--portal-border); }
.border-t { border-top: 1px solid var(--portal-border); }
.border-dashed { border-style: dashed; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-2 { padding-bottom: .5rem; }
.pb-3 { padding-bottom: .75rem; }
.pt-2 { padding-top: .5rem; }
.pt-4 { padding-top: 1rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.uppercase { text-transform: uppercase; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-50 { z-index: 50; }
.aspect-\[16\/7\] { aspect-ratio: 16 / 7; }
.object-cover { object-fit: cover; }
.h-full { height: 100%; }
.max-h-\[720px\] { max-height: 720px; }
.bg-black\/70 { background: rgba(0, 0, 0, .7); }
.text-white { color: #fff; }
.divide-y > * + * { border-top: 1px solid var(--portal-border); }
.min-w-full { min-width: 100%; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.ycswu-folder-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 4px;
}
.ycswu-folder-tabs .portal-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
}
.ycswu-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 16px;
}
.ycswu-category-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    align-content: start;
    min-height: 118px;
    border: 1px solid var(--portal-border);
    padding: 10px;
    color: inherit;
    text-decoration: none;
    background: var(--portal-bg);
}
.ycswu-category-card:hover,
.ycswu-category-card:focus-visible {
    outline: 1px solid var(--portal-border);
    outline-offset: -3px;
}
.ycswu-category-card.is-active {
    color: var(--portal-bg);
    background: var(--portal-text);
}
.ycswu-category-card .kk-control-label {
    grid-column: 1 / -1;
}
.ycswu-category-card-title {
    font-size: 16px;
    line-height: 1.15;
}
.ycswu-category-card-count {
    align-self: start;
    white-space: nowrap;
    font-size: 10px;
}
.ycswu-category-card small {
    grid-column: 1 / -1;
    line-height: 1.35;
    opacity: .72;
}
.ycswu-files-admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.ycswu-form-wide {
    grid-column: 1 / -1;
}
.ycswu-checkbox-line {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--portal-border);
    padding: 6px 8px;
    text-transform: uppercase;
    font-size: 11px;
}
.ycswu-admin-assets {
    display: grid;
    gap: 8px;
}
.ycswu-admin-asset {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid var(--portal-border);
    padding: 8px;
}
.ycswu-admin-thumb {
    width: 132px;
    height: 132px;
    min-width: 132px;
    min-height: 132px;
    aspect-ratio: 1 / 1;
    align-self: start;
    border: 1px solid var(--portal-border);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--portal-bg);
}
.ycswu-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ycswu-admin-asset-main {
    min-width: 0;
}
.ycswu-edit-form {
    margin-top: 8px;
}
.ycswu-gallery-manage-form { display: grid; gap: 8px; margin-top: 10px; border-top: 1px solid var(--portal-border); padding-top: 10px; }
.ycswu-admin-gallery { display: grid; gap: 8px; }
.ycswu-admin-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ycswu-admin-gallery-item { display: grid; gap: 5px; min-width: 0; border: 1px solid var(--portal-border); padding: 5px; }
.ycswu-admin-gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }

@media (min-width: 768px) {
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-6 { grid-column: span 6 / span 6; }
    .md\:p-10 { padding: 2.5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-\[1fr_320px\] { grid-template-columns: 1fr 320px; }
    .lg\:grid-cols-\[1fr_360px\] { grid-template-columns: 1fr 360px; }
    .lg\:grid-cols-\[1fr_420px\] { grid-template-columns: 1fr 420px; }
    .lg\:grid-cols-\[1\.2fr_0\.8fr\] { grid-template-columns: 1.2fr .8fr; }
    .lg\:grid-cols-\[360px_1fr\] { grid-template-columns: 360px 1fr; }
}

@media (max-width: 720px) {
    .access-gate-shell { width: calc(100% - 16px); margin-top: 48px; }
    .portal-header-inner { align-items: flex-start; }
    .portal-main-nav { width: 100%; }
    .top-switches { width: 100%; justify-content: flex-end; }
    .access-hero { padding: 18px; }
    .access-form-grid, .access-card-grid, .access-get-list, .public-footer-links, .public-info-row, .access-summary-row { grid-template-columns: 1fr; }
    .copy-editor-grid, .copy-question-head, .copy-question-head-wide, .copy-question-meta-grid, .copy-bilingual-grid { grid-template-columns: 1fr; }
    .copy-editor-header { display: grid; }
    .kk-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .kk-panel { min-height: auto; flex-direction: row; align-items: stretch; border-right: 0; border-bottom: 1px solid var(--portal-border); overflow-x: auto; overflow-y: hidden; }
    .kk-control, .kk-readout, .portal-button { min-width: 148px; }
    .kk-topbar { align-items: stretch; }
    .kk-topbar-left, .kk-topbar-right { flex-wrap: wrap; }
    .kk-mode-row { min-width: 300px; }
    .kk-board { grid-template-columns: 1fr; }
    .kk-card, .kk-card-3, .kk-card-4, .kk-card-5, .kk-card-6, .kk-card-7, .kk-card-8, .kk-card-12 { grid-column: auto; }
    .kk-flow { max-width: none; }
    .kk-flow-frame { min-height: 520px; }
    .kk-flow-targets { grid-template-columns: 1fr; }
    .kk-choice-grid { grid-template-columns: 1fr; max-height: 340px; }
    .kk-material-forms, .kk-material-list { grid-template-columns: 1fr; }
    .pr-workspace { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
    .pr-sidebar { border-right: 0; border-bottom: 1px solid var(--portal-border); }
    .pr-incomplete-banner { grid-template-columns: 1fr; }
    .pr-topbar, .pr-preview-header { flex-direction: column; }
    .pr-summary-grid, .pr-summary-section-grid, .pr-file-grid, .pr-brand-layout, .pr-brand-spread, .pr-work-grid, .pr-folder-grid, .pr-form-grid, .pr-ycswu-folder-grid, .pr-ycswu-browser, .pr-tool-overview, .pr-tool-surface { grid-template-columns: 1fr; }
    .pr-summary-field.is-wide { grid-column: auto; }
    .pr-tool-surface aside { border-left: 0; border-top: 1px solid var(--portal-border); padding-left: 0; padding-top: 8px; }
    .pr-form-grid textarea { grid-column: auto; }
    .pr-preview { min-height: 0; }
    .pr-ycswu-gallery-track { grid-auto-columns: calc((100% - 4px) / 2); }
    .ycswu-admin-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    body.access-profile-page main.mx-auto.max-w-7xl { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
    .public-footer-layout { grid-template-columns: minmax(0, 4fr) minmax(140px, 1fr); }
    .public-footer-links { grid-column: 1; }
    .public-footer-extra { grid-column: 2; }
    .case-studies-shell { grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); }
    .case-studies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-study-admin-grid { grid-template-columns: 1fr; }
    .access-profile-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-profile-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-card-grid, .public-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-page-shell .access-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.onboarding-page { overflow: auto; }
    body.onboarding-page .min-h-screen, body.onboarding-page .min-h-screen > main { height: auto; min-height: 100dvh; overflow: visible; }
    .onboarding-process-shell { height: auto; min-height: 100dvh; overflow: visible; }
    .onboarding-process-layout { grid-template-columns: 1fr; min-height: auto; overflow: visible; }
    .onboarding-side-panel, .onboarding-center-panel { height: auto; min-height: auto; overflow: visible; }
    .onboarding-center-panel .kk-flow { height: auto; }
    .onboarding-center-panel .kk-flow-frame { min-height: 420px; }
    .onboarding-target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kk-board { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .kk-card-3, .kk-card-4 { grid-column: span 3 / span 3; }
    .kk-card-5, .kk-card-6, .kk-card-7, .kk-card-8, .kk-card-12 { grid-column: span 6 / span 6; }
    .kk-material-forms, .kk-material-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-workspace { grid-template-columns: 220px minmax(0, 1fr); }
    .pr-dashboard-nav-row { flex-wrap: wrap; }
    .pr-dashboard-navbar { width: 100%; flex-basis: 100%; }
    .pr-topbar-right { width: 100%; margin-left: 0; }
    .pr-summary-grid, .pr-file-grid, .pr-work-grid, .pr-tool-overview, .pr-ycswu-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-brand-layout { grid-template-columns: 280px minmax(0, 1fr); }
    .pr-tool-surface { grid-template-columns: minmax(0, 1fr); overflow: auto; }
    .pr-tool-surface aside { border-left: 0; border-top: 1px solid var(--portal-border); padding-left: 0; padding-top: 8px; }
    .pr-tool-frame-shell, .pr-tool-frame { min-height: 56dvh; }
    .ycswu-files-admin-grid { grid-template-columns: 1fr; }
    .ycswu-admin-asset { grid-template-columns: 1fr; }
    .ycswu-admin-thumb { width: 132px; height: 132px; }
}

@media (max-width: 640px) {
    .portal-header .portal-header-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand nav"
            ". switches";
        align-items: start !important;
        gap: 5px 10px !important;
        padding: 6px 8px !important;
    }
    .portal-header .portal-header-inner > a:first-child,
    .portal-header .portal-header-inner > .portal-brand-mark {
        grid-area: brand;
        align-self: start;
        min-width: 0;
    }
    .portal-header .portal-main-nav {
        grid-area: nav;
        width: auto !important;
        justify-self: end;
        justify-content: flex-end;
        align-items: center;
        gap: 9px !important;
        white-space: nowrap;
    }
    .portal-header .portal-main-nav form { display: inline-flex; margin: 0; }
    .portal-header .top-switches {
        grid-area: switches;
        width: auto !important;
        margin: 0 !important;
        justify-self: end;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 3px;
    }
    .portal-header .top-switches .language-switch,
    .portal-header .top-switches .theme-switch {
        display: flex;
        width: auto;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 3px;
    }
    .portal-header .top-switches .portal-badge {
        flex: 0 0 30px !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        justify-content: center;
        text-align: center;
    }
    .portal-header .top-switches .language-switch .portal-badge {
        font-size: 8px !important;
    }
    .portal-header .top-switches .theme-switch .portal-badge {
        font-size: 0 !important;
        color: transparent;
    }
    .access-profile-title-row { grid-template-columns: minmax(0, 1fr) auto; align-items: flex-start; }
    .access-profile-title-row .access-profile-edit-toggle { grid-column: 2; grid-row: 1; width: auto; min-width: 72px; min-height: 32px; }
    .public-footer-layout { grid-template-columns: 1fr; row-gap: 12px; }
    .public-footer-links { grid-column: 1; }
    .public-footer-extra { grid-column: 1; grid-template-rows: 0 0 auto; }
    .case-studies-shell { grid-template-columns: 1fr; }
    .case-studies-shell { grid-template-rows: auto minmax(0, 1fr); }
    .case-studies-sidebar { min-height: auto; padding: 18px; }
    .case-studies-sidebar-inner { position: static; transform: none; }
    .case-studies-sidebar h1 { max-width: 100%; font-size: clamp(28px, 9vw, 40px); }
    .case-studies-grid { grid-template-columns: 1fr; }
    .case-study-admin-add { grid-template-columns: 1fr; }
    .case-study-admin-card { grid-template-columns: 88px minmax(0, 1fr); }
    .case-study-admin-logo { width: 88px; height: 88px; }
    .case-study-admin-card > form { grid-column: 1 / -1; }
    .access-profile-identity-grid, .access-profile-project-grid { grid-template-columns: 1fr; }
    .access-theme-palette-grid { grid-template-columns: 1fr; }
    .access-profile-access-block { grid-column: 1; width: 100%; align-items: flex-start; justify-self: start; text-align: left; }
    .access-profile-project-card { min-height: 200px; }
    .access-profile-visibility-grid, .case-study-card-meta { grid-template-columns: 1fr; }
    .access-profile-visibility-actions { display: grid; grid-template-columns: 1fr; }
    .pr-brand-logo-suite-spread { grid-template-columns: 1fr; }
    .pr-brand-icon-card { width: min(180px, 100%); }
    .pr-brand-secondary-suite { grid-column: auto; }
    .pr-brand-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body:not(.project-room-page) .min-h-screen { min-height: 100dvh; }
    body.project-room-page .min-h-screen { height: 100dvh; min-height: 100dvh; }
    .onboarding-process-shell { padding: 8px; }
    .onboarding-process-navbar { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
    .onboarding-process-navbar .portal-main-nav { order: 3; flex-basis: 100%; width: 100%; }
    .onboarding-process-actions { margin-left: auto; }
    .onboarding-project-title { width: 100%; }
    .onboarding-project-title-input { min-height: 42px; font-size: 22px; }
    .onboarding-material-panel .kk-material-controls { grid-template-columns: 1fr; }
    .onboarding-material-panel .kk-material-controls label,
    .onboarding-material-panel .kk-material-controls > select,
    .onboarding-material-panel .kk-material-controls input[type="file"],
    .onboarding-material-panel .kk-material-controls > .portal-button,
    .onboarding-material-panel .kk-material-controls label + .portal-button { grid-column: 1; width: 100%; justify-self: stretch; }
    .onboarding-target-grid { grid-template-columns: 1fr; }
    .public-brandbook { grid-template-columns: 1fr; }
    .case-study-detail-page { overflow: auto; }
    .case-study-detail-page .min-h-screen { height: auto; min-height: 100dvh; overflow: visible; }
    body.case-study-detail-page.shared-footer-page .min-h-screen > main { overflow: visible; flex: 0 0 auto; }
    .case-study-detail-page .min-h-screen > main,
    .case-study-detail-results { overflow: visible; }
    .case-study-detail-page .case-studies-shell { height: auto; grid-template-rows: auto auto; overflow: visible; }
    .case-study-detail-page .case-study-detail-results { height: auto; }
    .case-study-detail-shell { height: auto; grid-template-columns: 1fr; overflow: visible; }
    .case-study-detail-info { overflow: visible; }
    .case-studies-results { border-left: 1px solid var(--portal-border); border-top: 0; }
    .case-study-detail-results { border: 0; }
    .case-study-detail-shell .public-brandbook { grid-column: 1; height: auto; border-left: 1px solid var(--portal-border); border-top: 0; display: grid; grid-template-rows: auto; overflow: visible; scroll-snap-type: none; scroll-padding-top: 0; }
    .public-brandbook-logo-suite { flex: 0 0 auto; min-height: 220px; }
    .public-brandbook-cover { flex: 0 0 auto; min-height: 56dvh; grid-template-columns: 1fr; }
    .public-brandbook-cover-copy { grid-column: 1; grid-row: 2; min-height: 28dvh; }
    .public-brandbook-cover-visual { grid-column: 1; grid-row: 1; min-height: 28dvh; border-right: 0; border-bottom: 1px solid var(--portal-border); }
    .public-brandbook-fields-row { flex: 0 0 auto; min-height: 0; grid-template-columns: 1fr; }
    .public-brandbook-field { min-height: 150px; }
    .public-brandbook-palette { flex: 0 0 auto; position: relative; top: auto; box-shadow: none; }
    .public-brandbook-materials { flex: 0 0 auto; min-height: 540px; scroll-margin-top: 0; }
    .public-brandbook-materials-gallery { min-height: 480px; padding: 0; perspective: 1900px; }
    .public-brandbook-materials-space { display: block; }
    .access-theme-switch { top: 4px; right: 14px; max-width: calc(100% - 28px); flex-wrap: wrap; justify-content: flex-end; }
    .access-theme-switch .language-switch { border-right: 1px solid var(--portal-border); padding-right: 4px; }
    .access-gate-shell { width: 100%; margin: 44px 0 24px; padding: 0 8px; }
    .access-page-content { width: auto; max-width: none; margin: 0 20px; padding: 64px 0 48px; }
    .access-page-shell .access-copy h1 { font-size: clamp(38px, 12vw, 54px); line-height: .96; }
    .access-page-shell .access-copy p { font-size: 13px; line-height: 1.55; }
    .access-page-shell .access-card-grid { grid-template-columns: 1fr; gap: 8px; }
    .access-page-shell .access-card { min-height: 156px; }
    .access-page-shell .access-price-cta { margin-top: 14px; }
    .access-desktop-notice {
        display: none;
    }
    .access-showcase-shell {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 10 / 7;
        margin: 0 0 14px;
        transform: none;
        overflow: hidden;
        border: 1px solid var(--portal-border);
        background: transparent;
    }
    .access-page-shell .access-actions { display: grid; grid-template-columns: 1fr; }
    .access-hero, .portal-panel.p-4 { padding: 12px; }
    .access-copy h1 { font-size: 34px; line-height: 1; overflow-wrap: anywhere; }
    .access-copy p, .access-card p, .ai-answer-block p, .access-faq p { font-size: 12px; line-height: 1.45; }
    .access-actions, .kk-material-controls, .pr-cover-controls, .payment-brand-row { display: grid; grid-template-columns: 1fr; width: 100%; align-items: stretch; }
    .portal-button, .portal-badge, .kk-mini-button { min-height: 44px; min-width: 0; width: 100%; }
    .access-form-grid, .access-card-grid, .access-get-list, .public-footer-links, .public-info-row, .access-summary-row, .payment-brand-row, .kk-board, .kk-material-forms, .kk-material-list { grid-template-columns: 1fr; }
    .copy-editor-grid, .copy-question-head, .copy-question-head-wide, .copy-question-meta-grid, .copy-bilingual-grid { grid-template-columns: 1fr; }
    .kk-card, .kk-card-3, .kk-card-4, .kk-card-5, .kk-card-6, .kk-card-7, .kk-card-8, .kk-card-12 { grid-column: 1 / -1; }
    .kk-shell { min-height: 100dvh; }
    .kk-panel { max-width: 100%; }
    .kk-control, .kk-readout { min-width: 148px; }
    .kk-flow-frame { min-height: calc(100dvh - 160px); }
    .kk-flow-step { width: 100%; min-height: 280px; gap: 14px; padding: 24px 0; }
    .kk-flow-actions, .onboarding-form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .kk-flow-actions .portal-button, .onboarding-form-actions .portal-button { width: 100%; min-width: 0; min-height: 44px; }
    .kk-choice-grid { grid-template-columns: 1fr; max-height: 42dvh; }
    .kk-choice-grid .kk-control { min-height: 52px; }
    .project-room-app { height: 100dvh; width: 100%; overflow: hidden; border-left: 0; border-right: 0; }
    .pr-dashboard-global-nav { padding: 6px; }
    .pr-workspace { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; width: 100%; overflow: hidden; }
    .pr-sidebar { width: 100%; height: auto; max-height: 42dvh; min-height: 0; overflow: auto; border-right: 0; border-bottom: 1px solid var(--portal-border); display: grid; gap: 6px; padding: 4px; align-content: start; }
    .pr-access-switcher { display: grid; gap: 4px; }
    .pr-project-list { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
    .pr-project-card { min-width: 220px; }
    .pr-project-progress { min-height: 74px; }
    .pr-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; margin-top: 2px; }
    .pr-nav .kk-control { min-width: 150px; min-height: 54px; }
    .pr-main { flex: 1 1 auto; height: auto; min-height: 0; width: 100%; }
    .pr-topbar { flex: 0 0 auto; padding: 6px; gap: 6px; }
    .pr-dashboard-nav-row, .pr-dashboard-navbar, .pr-topbar-left, .pr-topbar-right, .pr-mode-switch { width: 100%; flex-wrap: wrap; }
    .pr-dashboard-navbar { align-items: flex-start; gap: 8px; }
    .pr-dashboard-navbar .portal-main-nav { flex-basis: 100%; width: 100%; gap: 8px; }
    .pr-topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
    .pr-topbar-project-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 0 100%; width: 100%; }
    .pr-theme-switch, .pr-topbar-right .language-switch { width: auto; flex: 0 0 auto; flex-wrap: nowrap; }
    .pr-topbar-right .language-switch { display: flex; gap: 4px; }
    .language-switch .portal-badge,
    .pr-topbar-right .language-switch .portal-badge {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        text-align: center;
    }
    .pr-topbar h1 { font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
    .pr-mode-switch .portal-button, .pr-theme-switch .portal-badge, .pr-topbar-project-actions .portal-badge { flex: 1 1 0; width: auto; min-width: 0; }
    .pr-theme-switch { justify-content: flex-end; gap: 4px; }
    .pr-theme-switch .portal-badge {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        overflow: hidden;
        font-size: 0;
        color: transparent;
    }
    .pr-theme-switch [data-pr-theme="dark"],
    .pr-theme-switch [data-pr-theme="dark"].is-active {
        background: var(--portal-theme-dark-bg);
        border-color: var(--portal-theme-dark-fg);
        color: transparent;
    }
    .pr-theme-switch [data-pr-theme="light"],
    .pr-theme-switch [data-pr-theme="light"].is-active {
        background: var(--portal-theme-light-bg);
        border-color: var(--portal-theme-light-fg);
        color: transparent;
    }
    .theme-switch { width: auto; flex: 0 0 auto; flex-wrap: nowrap; }
    .theme-switch .portal-badge {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        overflow: hidden;
        font-size: 0;
        color: transparent;
    }
    .theme-switch [data-theme-set="dark"],
    .theme-switch [data-theme-set="dark"].is-active {
        background: var(--portal-theme-dark-bg);
        border-color: var(--portal-theme-dark-fg);
        color: transparent;
    }
    .theme-switch [data-theme-set="light"],
    .theme-switch [data-theme-set="light"].is-active {
        background: var(--portal-theme-light-bg);
        border-color: var(--portal-theme-light-fg);
        color: transparent;
    }
    .pr-preview { padding: 6px; overflow: auto; width: 100%; }
    .pr-preview-header { gap: 6px; }
    .pr-preview-header h2 { font-size: 22px; }
    .pr-summary-note-strip { grid-auto-columns: minmax(220px, 82vw); }
    .pr-incomplete-banner, .pr-summary-grid, .pr-summary-section-grid, .pr-file-grid, .pr-brand-layout, .pr-brand-spread, .pr-work-grid, .pr-folder-grid, .pr-form-grid, .pr-ycswu-folder-grid, .pr-ycswu-browser, .pr-tool-overview, .pr-tool-surface { grid-template-columns: 1fr; }
    .pr-form-grid textarea { grid-column: auto; }
    .pr-brand-controls, .pr-brand-book { height: auto; overflow: visible; }
    .pr-brand-cover h1 { font-size: 32px; overflow-wrap: anywhere; }
    .pr-font-upload-row { grid-template-columns: minmax(0, 1fr); }
    .pr-font-upload-name { max-width: none; }
    .pr-color-control-row { grid-template-columns: 42px minmax(0, 1fr); grid-template-areas: "picker fields" "add add"; width: 100%; }
    .pr-cover-color-row { grid-template-columns: 42px minmax(0, 1fr); width: 100%; }
    .pr-cover-controls .portal-button { grid-column: 1 / -1; }
    .pr-swatch-row { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
    .pr-swatch { width: 100%; height: 44px; }
    .pr-swatch-editor { grid-template-columns: 42px minmax(0, 1fr); grid-template-areas: "picker fields" "apply apply" "remove remove" "close close"; width: 100%; }
    .pr-color-weight-controls label { grid-template-columns: 1fr; gap: 3px; }
    .pr-question-compose { grid-template-columns: 1fr; }
    .pr-question-compose .portal-button { width: auto; justify-self: end; }
    .pr-paint-toolbar { align-items: stretch; }
    .pr-paint-toolbar-left, .pr-paint-toolbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-left: 0; }
    .pr-paint-toolbar .portal-input, .pr-paint-toolbar .portal-button { width: 100%; min-height: 44px; height: 44px; max-height: none; }
    .pr-paint-canvas-wrap { min-height: 44dvh; }
    .pr-tool-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    .pr-tool-tab-list { display: contents; }
    .pr-tool-tabs .portal-badge { width: auto; flex: 0 0 auto; min-width: 132px; }
    .pr-tool-support-link { min-width: 154px; margin-left: auto; }
    .pr-tool-stage-head { flex-direction: column; }
    .pr-tool-frame-shell, .pr-tool-frame { min-height: 58dvh; }
    .pr-ycswu-breadcrumb { flex-direction: row; align-items: center; flex-wrap: wrap; }
    .pr-ycswu-preview-surface { min-height: 180px; }
    .pr-ycswu-preview-surface img, .pr-ycswu-preview-surface iframe { min-height: 180px; }
}

@media (max-width: 480px) {
    html, body { font-size: 13px; }
    .access-copy h1 { font-size: 30px; }
    .text-3xl { font-size: 1.5rem; line-height: 1.9rem; }
    .pr-project-card { min-width: 190px; }
    .pr-nav .kk-control { min-width: 132px; }
    .pr-topbar-right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-topbar-project-actions { grid-column: 1 / -1; }
    .pr-paint-toolbar-left, .pr-paint-toolbar-actions { grid-template-columns: 1fr; }
    .pr-tool-frame-shell, .pr-tool-frame { min-height: 52dvh; }
}

@media (min-width: 1440px) {
    .max-w-7xl { max-width: 96rem; }
    .access-gate-shell { width: min(1100px, calc(100% - 48px)); }
    .pr-workspace { grid-template-columns: 238px minmax(0, 1fr); }
}
.copy-language-warning {
    margin: 6px 0;
    padding: 5px 7px;
    border: 1px solid currentColor;
    color: var(--portal-text);
    font: inherit;
    font-size: 11px;
    line-height: 1.35;
}

.pr-phone-rail {
    display: none;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--portal-border);
    background: var(--portal-bg);
    color: var(--portal-text);
}

.pr-phone-rail-head {
    display: flex;
    min-height: 51px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    border-bottom: 1px solid var(--portal-border);
}

.pr-phone-rail-head h2 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pr-phone-rail-body {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
    overflow: hidden;
    padding: 10px;
}

.pr-phone-stage {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    background: var(--portal-bg);
}

.pr-phone-frame {
    position: relative;
    width: min(286px, calc(100% - 16px));
    aspect-ratio: 1 / 2;
    max-height: 572px;
    padding: 4px;
    border: 1px solid var(--portal-border);
    border-radius: 30px !important;
    background: var(--portal-bg);
}

.pr-phone-frame:focus {
    outline: 0;
}

.pr-phone-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 26px !important;
    background: var(--portal-bg);
}

.pr-phone-message-head {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 13px;
    border-bottom: 1px solid var(--portal-border);
    background: var(--portal-bg);
    font-size: 8px;
    text-transform: uppercase;
}

.pr-phone-message-head strong {
    font-size: 9px;
    letter-spacing: .04em;
}

.pr-phone-message-head span {
    max-width: 58%;
    overflow: hidden;
    color: var(--portal-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-phone-pairing {
    position: absolute;
    z-index: 3;
    inset: 36px 0 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
}

.pr-phone-rail.has-conversation .pr-phone-pairing {
    display: none;
}

.pr-phone-pairing-copy {
    max-width: 190px;
    margin-bottom: 24px;
    text-align: center;
}

.pr-phone-pairing-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.3;
    text-transform: uppercase;
}

.pr-phone-pairing-copy p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 8px;
    line-height: 1.5;
}

.pr-phone-pairing-code {
    display: grid;
    justify-items: center;
    opacity: 1;
}

.pr-phone-qr {
    display: block;
    width: 132px;
    height: 132px;
    padding: 8px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    pointer-events: none;
    cursor: default;
}

.pr-phone-qr span {
    background: transparent;
}

.pr-phone-qr span.is-on {
    background: currentColor;
}

.pr-phone-qr svg {
    display: block;
    width: 100%;
    height: 100%;
    color: #000;
}

.pr-phone-qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.pr-phone-qr svg rect {
    fill: #fff !important;
    shape-rendering: crispEdges;
}

.pr-phone-qr svg path {
    fill: #000 !important;
    stroke: transparent !important;
}

.pr-phone-qr.is-unavailable {
    background:
        linear-gradient(45deg, transparent 48%, currentColor 49%, currentColor 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, currentColor 49%, currentColor 51%, transparent 52%);
}

.pr-phone-thread {
    position: absolute;
    inset: 36px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 18px 12px 24px;
    scrollbar-width: none;
}

.pr-phone-thread:empty {
    display: none;
}

.pr-phone-thread::-webkit-scrollbar {
    display: none;
}

.pr-phone-message-head button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 8px;
    text-transform: uppercase;
    cursor: pointer;
}

.pr-phone-conversation-list {
    position: absolute;
    inset: 36px 0 0;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: none;
}

.pr-phone-conversation-list::-webkit-scrollbar {
    display: none;
}

.pr-phone-conversation-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid var(--portal-border);
}

.pr-phone-conversation-open {
    display: grid;
    min-width: 0;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pr-phone-conversation-open:hover,
.pr-phone-conversation-open:focus-visible {
    outline: 0;
    background: color-mix(in srgb, var(--portal-text) 8%, transparent);
}

.pr-phone-conversation-avatar {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid var(--portal-text);
    border-radius: 50% !important;
    background: var(--portal-text);
    color: var(--portal-bg);
    font-family: "Space Mono", monospace;
    font-size: 11px;
    font-weight: 400 !important;
    letter-spacing: .02em;
}

.pr-phone-conversation-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.pr-phone-conversation-copy strong,
.pr-phone-conversation-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-phone-conversation-copy strong {
    font-size: 8px;
}

.pr-phone-conversation-copy small {
    color: var(--portal-muted);
    font-size: 7px;
}

.pr-phone-conversation-mini {
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 8px;
    cursor: pointer;
}

.pr-phone-conversation-mini:hover,
.pr-phone-conversation-mini:focus-visible {
    outline: 0;
    background: var(--portal-text);
    color: var(--portal-bg);
}

.pr-phone-loading {
    margin: auto;
    color: var(--portal-muted);
    font-size: 8px;
    text-align: center;
}

.pr-phone-bubble {
    width: fit-content;
    max-width: 82%;
    padding: 8px 10px;
    border: 1px solid var(--portal-border);
    border-radius: 14px 14px 14px 3px;
    background: var(--portal-bg);
    color: var(--portal-text);
    font-size: 8px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pr-phone-bubble.is-outgoing {
    align-self: flex-end;
    border-radius: 14px 14px 3px 14px;
    background: var(--portal-text);
    color: var(--portal-bg);
}

.pr-phone-bubble-sender {
    display: block;
    margin-bottom: 3px;
    font-size: 7px;
    font-weight: 700;
    opacity: .72;
    text-transform: uppercase;
}

.pr-phone-bubble-copy {
    display: block;
}

.pr-phone-bubble-time {
    display: block;
    margin-top: 4px;
    font-size: 6px;
    opacity: .58;
    text-align: right;
}

.pr-phone-controls {
    display: flex;
    min-height: 31px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 5px;
    font-size: 8px;
}

.pr-phone-controls output {
    min-width: 0;
    overflow: hidden;
    color: var(--portal-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-phone-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.pr-phone-actions button {
    min-height: 24px;
    padding: 4px 7px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 8px;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.pr-phone-actions button:hover,
.pr-phone-actions button:focus-visible {
    outline: 0;
    background: var(--portal-text);
    color: var(--portal-bg);
    text-decoration: none;
}

.pr-phone-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.phone-pair-page {
    min-height: 100dvh;
    background: var(--portal-bg);
    color: var(--portal-text);
}

.phone-pair-page main {
    min-height: 100dvh;
}

.phone-pair-app {
    width: min(680px, 100%);
    min-height: 100dvh;
    margin: 0 auto;
    border-right: 1px solid var(--portal-border);
    border-left: 1px solid var(--portal-border);
    background: var(--portal-bg);
}

.phone-pair-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--portal-border);
    font-size: 10px;
}

.phone-pair-head strong {
    padding: 6px 8px;
    background: var(--portal-text);
    color: var(--portal-bg);
    font-size: 8px;
}

.phone-pair-main {
    display: grid;
    gap: 14px;
    padding: 28px 16px 48px;
}

.phone-pair-main h1 {
    margin: 0;
    font-size: clamp(26px, 7vw, 44px);
    font-weight: 400;
    overflow-wrap: anywhere;
}

.phone-pair-main > p {
    max-width: 58ch;
    margin: 0;
    line-height: 1.55;
}

.phone-pair-paste {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--portal-border);
}

.phone-pair-paste label {
    display: grid;
    gap: 6px;
}

.phone-pair-paste label > span,
.phone-pair-paste small {
    font-size: 9px;
    line-height: 1.45;
}

.phone-pair-paste input,
.phone-pair-paste textarea {
    width: 100%;
    border: 1px solid var(--portal-border);
    background: var(--portal-bg);
    color: var(--portal-text);
    padding: 10px;
}

.phone-pair-paste textarea {
    min-height: 180px;
    resize: vertical;
}

.phone-pair-paste button {
    min-height: 42px;
    border: 1px solid var(--portal-text);
    background: var(--portal-text);
    color: var(--portal-bg);
    cursor: pointer;
}

.phone-pair-paste button:disabled {
    opacity: .45;
    cursor: wait;
}

.phone-pair-paste small {
    color: var(--portal-muted);
}

.phone-pair-help {
    border: 1px solid var(--portal-border);
}

.phone-pair-help summary {
    padding: 12px;
    cursor: pointer;
    font-size: 9px;
    list-style-position: inside;
}

.phone-pair-help[open] summary {
    border-bottom: 1px solid var(--portal-border);
}

.phone-pair-help > div {
    display: grid;
    gap: 9px;
    padding: 12px;
}

.phone-pair-help h2,
.phone-pair-help p,
.phone-pair-help ol {
    margin: 0;
}

.phone-pair-help h2 {
    font-size: 10px;
}

.phone-pair-help ol {
    display: grid;
    gap: 5px;
    padding-left: 20px;
    font-size: 9px;
    line-height: 1.5;
}

.phone-pair-help p {
    padding-top: 9px;
    border-top: 1px solid var(--portal-border);
    color: var(--portal-muted);
    font-size: 9px;
    line-height: 1.5;
}

.phone-pair-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--portal-muted);
    font-size: 9px;
}

.phone-pair-divider::before,
.phone-pair-divider::after {
    height: 1px;
    background: var(--portal-border);
    content: "";
    flex: 1 1 auto;
}

.phone-pair-drop {
    position: relative;
    display: grid;
    min-height: 56px;
    place-items: center;
    padding: 20px;
    border: 1px dashed var(--portal-border);
    text-align: center;
    cursor: pointer;
}

.phone-pair-drop:hover,
.phone-pair-drop:focus-within {
    background: var(--portal-text);
    color: var(--portal-bg);
}

.phone-pair-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.phone-pair-status {
    min-height: 34px;
    padding: 8px;
    border: 1px solid var(--portal-border);
    font-size: 10px;
}

.phone-pair-status:empty {
    display: none;
}

.phone-pair-list {
    display: grid;
    gap: 8px;
}

.phone-pair-list[hidden] {
    display: none;
}

.phone-pair-list h2 {
    margin: 0;
    font-size: 10px;
}

.phone-pair-list [data-phone-pair-list] {
    display: grid;
}

.phone-pair-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--portal-border);
}

.phone-pair-list article strong,
.phone-pair-list article span {
    overflow-wrap: anywhere;
}

.phone-pair-list article span {
    flex: 0 0 auto;
    color: var(--portal-muted);
    font-size: 9px;
}

@media (max-width: 520px) {
    .phone-pair-app {
        border-right: 0;
        border-left: 0;
    }
}

@media (min-width: 1180px) {
    .pr-workspace.has-phone-rail {
        grid-template-columns: 238px minmax(0, 1fr) 340px;
    }

    .pr-phone-rail {
        display: flex;
    }
}

@media (min-width: 1440px) {
    .pr-workspace.has-phone-rail {
        grid-template-columns: 238px minmax(0, 1fr) 382px;
    }
}

@media (min-width: 1180px) and (max-height: 760px) {
    .pr-phone-frame {
        width: min(248px, calc(100% - 16px));
    }

    .pr-phone-pairing-copy {
        margin-bottom: 14px;
    }
}
.kk-flow-question + .kk-flow-question {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--portal-line, rgba(127,127,127,.35));
}

.onboarding-current-target {
  display: grid;
  gap: 1rem;
}

.onboarding-current-target .kk-readout {
  min-height: 7rem;
  white-space: pre-wrap;
}

.kk-choice-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.kk-choice-tools [data-choice-count] {
  border: 1px solid var(--portal-border);
  padding: 7px 9px;
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
}

.kk-selected-choices,
.onboarding-character-answer-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
}

.kk-selected-choices {
  margin: 0 0 6px;
}

.kk-selected-choices:empty {
  display: none;
}

.kk-selected-choices > span,
.onboarding-character-answer-list > span {
  border: 1px solid var(--portal-border);
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.onboarding-current-target {
  align-content: start;
}

.onboarding-target-destination {
  border-bottom: 1px solid var(--portal-border);
  padding-bottom: 10px;
}

.onboarding-target-destination h3 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .kk-choice-tools { grid-template-columns: 1fr; }
  .kk-choice-tools [data-choice-count] { justify-self: start; }
}

body.thinking-booklet-open {
  overflow: hidden !important;
}

@font-face {
  font-family: "EB Garamond Thinking";
  src: url("./fonts/EBGaramond12-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond Thinking";
  src: url("./fonts/EBGaramond12-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

.project-room-page .pr-sidebar {
  padding-bottom: 92px;
}

.pr-thinking-launcher {
  position: fixed;
  z-index: 82;
  left: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  width: 222px;
  display: grid;
  padding: 6px;
  border: 1px dashed var(--portal-border);
  background: var(--portal-bg);
  color: var(--portal-text);
}

.pr-thinking-launcher-button {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--portal-border);
  background: var(--portal-text);
  color: var(--portal-bg);
  font: inherit;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}

.pr-thinking-launcher-button:hover,
.pr-thinking-launcher-button:focus-visible {
  outline: 1px solid var(--portal-text);
  outline-offset: 2px;
}

.pr-thinking-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pr-thinking-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .78);
  cursor: default;
}

.pr-thinking-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  height: min(96vh, 1000px);
  height: min(96dvh, 1000px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--portal-border);
  background: var(--portal-bg);
  color: var(--portal-text);
  overflow: hidden;
}

.pr-thinking-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--portal-border);
}

.pr-thinking-dialog-head h2 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pr-thinking-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.pr-thinking-dialog-actions [aria-busy="true"] {
  min-width: 104px;
}

.pr-thinking-reader {
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 22px;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  background: #b8b5ae;
}

.pr-thinking-page {
  position: relative;
  flex: 0 0 auto;
  width: 148mm;
  height: 210mm;
  padding: 20mm 20mm 21mm;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #f3efe7;
  color: #11110f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  font-family: "EB Garamond Thinking", Garamond, Georgia, "Times New Roman", serif;
  font-size: 10.8pt;
  font-weight: 400;
  line-height: 1.58;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.pr-thinking-page-copy {
  width: 100%;
  height: 169mm;
  overflow: hidden;
}

.pr-thinking-page h2 {
  max-width: 100mm;
  margin: 0 0 11mm;
  font: italic 400 21pt/1.04 "EB Garamond Thinking", Garamond, Georgia, "Times New Roman", serif;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.pr-thinking-block {
  display: block;
  margin: 0 0 4mm;
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.pr-thinking-block.is-separator {
  margin: 6mm 0;
  text-align: center;
}

.pr-thinking-block.is-quote {
  font-style: italic;
}

.pr-thinking-block.is-attribution {
  margin-top: -1.5mm;
  margin-bottom: 5mm;
  color: #625f58;
  font-size: 9.5pt;
  font-style: normal;
}

.pr-thinking-block.is-link {
  margin-top: -1mm;
  margin-bottom: 4mm;
  font-size: 9.4pt;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-thickness: .2mm;
  text-underline-offset: .8mm;
}

.pr-thinking-page-number {
  position: absolute;
  right: 7mm;
  bottom: 5.5mm;
  font: 400 7.5pt/1 "EB Garamond Thinking", Garamond, Georgia, "Times New Roman", serif;
}

.pr-thinking-page.is-en {
  font-size: 10pt;
  line-height: 1.48;
}

.pr-thinking-page.is-en h2 {
  margin-bottom: 10mm;
  font-size: 20pt;
}

.pr-thinking-page.is-en .pr-thinking-block {
  margin-bottom: 3mm;
}

.pr-thinking-empty {
  width: min(560px, 100%);
  border: 1px solid currentColor;
  padding: 24px;
  background: var(--portal-bg);
  color: var(--portal-text);
}

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

.thinking-master-entry.is-new {
  border-style: dashed;
}

.thinking-master-body {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  white-space: pre-wrap;
}

@media (max-width: 1024px) {
  .pr-thinking-launcher {
    width: 206px;
  }
}

/* One responsive navigation scale for every portal and preview page. */
.portal-header {
  --portal-nav-font-size: 12px;
  --portal-nav-control-size: 22px;
  --portal-nav-gap: 12px;
  font-size: var(--portal-nav-font-size) !important;
  line-height: 1.2;
}

.portal-header .portal-header-inner {
  display: flex !important;
  min-height: 48px;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: var(--portal-nav-gap) !important;
  padding: 8px !important;
  font-size: var(--portal-nav-font-size) !important;
  line-height: 1.2 !important;
}

.portal-header .portal-header-inner > div:first-child,
.portal-header .portal-main-nav,
.portal-header .top-switches,
.portal-header .language-switch,
.portal-header .theme-switch {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.portal-header .portal-header-inner > div:first-child,
.portal-header .portal-main-nav {
  gap: var(--portal-nav-gap) !important;
}

.portal-header .portal-main-nav {
  width: auto !important;
  font-size: var(--portal-nav-font-size) !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.portal-header .portal-brand-mark,
.portal-header .portal-main-nav a,
.portal-header .portal-header-inner > div:first-child > a:first-child {
  font-size: var(--portal-nav-font-size) !important;
  line-height: 1.2 !important;
}

.portal-header .top-switches {
  width: auto !important;
  margin-left: auto !important;
  justify-content: flex-end !important;
  gap: 4px !important;
}

.portal-header .top-switches .portal-badge,
.portal-header .top-switches .kk-mini-button {
  width: auto !important;
  min-width: 0 !important;
  height: var(--portal-nav-control-size) !important;
  min-height: var(--portal-nav-control-size) !important;
  padding: 2px 6px !important;
  justify-content: center;
  font-size: 10px !important;
  line-height: 1 !important;
}

@media (max-width: 720px) {
  .portal-header {
    --portal-nav-font-size: 11px;
    --portal-nav-control-size: 30px;
    --portal-nav-gap: 9px;
  }

  .portal-header .portal-header-inner {
    min-height: 46px;
    flex-wrap: wrap !important;
    row-gap: 6px !important;
    padding: 6px 8px !important;
  }

  .portal-header .portal-header-inner > div:first-child {
    flex: 1 1 auto;
    min-width: max-content;
  }

  .portal-header .top-switches {
    flex: 0 0 auto;
  }

  .portal-header .top-switches .portal-badge,
  .portal-header .top-switches .kk-mini-button {
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    font-size: 8px !important;
  }

  .portal-header .top-switches .theme-switch .portal-badge {
    font-size: 0 !important;
    color: transparent;
  }
}

@media (max-width: 420px) {
  .portal-header .portal-header-inner {
    align-content: start;
  }

  .portal-header .portal-header-inner > .portal-main-nav {
    order: 2;
    flex: 1 1 auto;
  }

  .portal-header .portal-header-inner > .top-switches {
    order: 3;
  }
}

@media (max-width: 760px) {
  .project-room-page .pr-sidebar {
    padding-bottom: 0;
  }
  .pr-thinking-launcher {
    left: 8px;
    width: 172px;
    padding: 5px;
  }
  .pr-thinking-launcher-button {
    min-height: 32px;
  }
  .pr-preview {
    padding-bottom: 82px;
  }
  .pr-thinking-modal {
    padding: 7px;
  }
  .pr-thinking-dialog {
    width: calc(100vw - 14px);
    height: calc(100vh - 14px);
    height: calc(100dvh - 14px);
  }
  .pr-thinking-reader {
    justify-items: start;
    padding: 10px;
    scroll-snap-type: y proximity;
  }
}
