.profile-main { width: min(100% - 56px, 1120px); min-height: calc(100svh - 170px); margin: 0 auto; padding: clamp(46px, 8vw, 92px) 0 72px; }
.application-main { width: min(100% - 40px, 850px); }
.application-closed-panel { border-color: color-mix(in srgb,var(--accent) 32%,var(--line-strong)); }
.application-age-note,.application-private-note { color: var(--muted); font-size: 10px; line-height: 1.8; }
.application-age-note { margin: 16px 0 0; }
.application-private-note { margin: 0 0 18px; }
.application-code-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.application-policy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.application-policy { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised); }
.application-policy summary { color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 620; }
.application-policy summary span { margin-left: 5px; color: var(--faint); font: 8px var(--font-mono); }
.application-policy h3 { margin: 12px 0 6px; font-size: 11px; }
.application-policy-body { max-height: 230px; overflow: auto; color: var(--muted); font: 9px/1.8 var(--font-sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.application-consents { display: grid; gap: 8px; }
.application-consents .profile-toggle { align-items: flex-start; }
.application-consents .profile-toggle input { flex: 0 0 auto; margin-top: 2px; }
.age-confirmation-toggle { border-color: color-mix(in srgb,var(--accent) 42%,var(--line)); }
.sensitive-info-consent { border-color: color-mix(in srgb,var(--accent) 42%,var(--line)); background: color-mix(in srgb,var(--accent) 5%,var(--bg-raised)); }
.application-evidence-field { padding: 14px; border: 1px dashed var(--line-strong); border-radius: 9px; background: color-mix(in srgb,var(--surface-raised) 65%,transparent); }
.application-evidence-field > label { color: var(--ink); font-size: 10px; }
.application-evidence-field input[type="file"] { width: 100%; color: var(--muted); font-size: 10px; }
.application-evidence-field input[type="file"]::file-selector-button { min-height: 34px; margin-right: 10px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-raised); cursor: pointer; }
.application-evidence-status { margin: 0; color: var(--faint); font-size: 9px; }
.application-challenge { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 12px 0; padding: 15px 17px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-well); }
.application-challenge > div { display: grid; gap: 4px; }
.application-challenge strong { color: var(--accent-bright); font: 24px/1.2 var(--font-mono); letter-spacing: .18em; }
.application-challenge small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.application-state { margin: 12px 0 17px; padding: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised); font-size: 10px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.application-state.is-error { color: #e9827c; border-color: color-mix(in srgb,#e9827c 42%,var(--line)); }
.application-actions { margin-top: 3px; }
.application-delete-request { width: fit-content; margin: 0 0 16px; color: var(--muted); border-color: color-mix(in srgb,#e9827c 42%,var(--line-strong)); }
.account-closure-panel { display: grid; gap: 12px; margin-top: 24px; padding: 17px; border: 1px solid color-mix(in srgb,#e9827c 35%,var(--line)); border-radius: 9px; background: color-mix(in srgb,#e9827c 4%,var(--surface)); }
.account-closure-panel .eyebrow,.account-closure-panel h3,.account-closure-panel .profile-help { margin: 0; }
.account-closure-panel h3 { font-size: 14px; }
.account-closure-options { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.account-closure-options legend { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.account-closure-options .profile-toggle input { flex: 0 0 auto; }
.account-closure-password { max-width: 400px; }
.button-danger { color: #fff; border: 1px solid #a94843; background: #a94843; }
.button-danger:hover { border-color: #bd5b55; background: #bd5b55; }
.public-profile-main { display: flex; min-height: calc(100svh - 150px); flex-direction: column; }
.profile-status { min-height: 22px; margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.profile-status.is-error { color: #e9827c; }
.public-profile { display: flex; flex: 1 0 auto; flex-direction: column; gap: clamp(28px, 5vh, 58px); }
.public-profile-main .profile-project-section { display: flex; flex: 1 0 auto; min-height: 0; flex-direction: column; }
.public-profile-hero { display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: clamp(24px, 5vw, 52px); padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line-strong); border-radius: 15px; background: linear-gradient(140deg,color-mix(in srgb,var(--surface-raised) 94%,transparent),color-mix(in srgb,var(--surface) 92%,transparent)); box-shadow: var(--card-shadow); transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px)); transform-style: preserve-3d; transition: transform 220ms ease,border-color 180ms ease,box-shadow 220ms ease; }
.public-profile-avatar { display: grid; place-items: center; width: 128px; height: 128px; overflow: hidden; color: var(--accent-bright); border: 1px solid color-mix(in srgb,var(--accent) 50%,var(--line)); border-radius: 50%; background: var(--accent-soft); font: 30px var(--font-mono); }
.public-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.public-profile-heading { min-width: 0; }
.public-profile-heading .eyebrow { margin: 0 0 10px; }
.public-profile-heading h1 { margin: 0; font-size: clamp(32px,6vw,58px); letter-spacing: -.055em; }
.public-profile-bio { max-width: 730px; margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; white-space: pre-line; }
.public-profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.public-profile-links a { padding: 8px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; font-size: 10px; text-decoration: none; transition: color 160ms ease,border-color 160ms ease,transform 160ms ease; }
.public-profile-links a:hover { color: var(--accent-bright); border-color: var(--line-strong); transform: translateY(-2px); }
.profile-section-heading,.profile-editor-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.profile-section-heading .eyebrow,.profile-editor-heading .eyebrow { margin: 0 0 5px; }
.profile-section-heading h2,.profile-editor-heading h2 { margin: 0; font-size: clamp(21px,3vw,30px); }
.profile-project-count { color: var(--faint); font: 9px var(--font-mono); }
.profile-project-grid { display: grid; flex: 1 0 auto; grid-auto-columns: min(350px, calc(100vw - 88px)); grid-auto-flow: column; align-content: start; gap: 12px; padding: 5px 3px 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
.developer-project-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb,var(--surface) 88%,transparent); transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px)); transform-style: preserve-3d; transition: transform 220ms ease,border-color 170ms ease; scroll-snap-align: start; }
.developer-project-card:hover { --tilt-lift: -3px; border-color: color-mix(in srgb,var(--accent) 55%,var(--line-strong)); }
.developer-project-heading { display: flex; align-items: center; gap: 9px; }
.developer-project-icon { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; }
.developer-project-title { min-width: 0; }
.developer-project-card h3 { margin: 0; font-size: 13px; }
.developer-project-card > div > p { min-height: 36px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.developer-project-meta,.developer-project-links { display: flex; flex-wrap: wrap; gap: 5px; }
.developer-project-meta span { padding: 3px 5px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; font-size: 8px; }
.developer-project-links { margin-top: 12px; }
.developer-project-links a { color: var(--accent-bright); font-size: 9px; text-decoration: none; }
.developer-project-links a:hover { text-decoration: underline; }
.profile-project-empty { width: 100%; padding: 28px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 9px; text-align: center; font-size: 11px; scroll-snap-align: start; }
.profile-unavailable { max-width: 670px; margin: 5vh auto; padding: clamp(24px,5vw,48px); border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--card-shadow); transform: perspective(1500px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px)); transform-style: preserve-3d; transition: transform 360ms cubic-bezier(0.2,0.7,0.25,1),border-color 200ms ease,box-shadow 220ms ease; }
.profile-unavailable:hover { --tilt-lift: -3px; border-color: color-mix(in srgb,var(--accent) 45%,var(--line-strong)); }
.profile-unavailable h1 { margin: 17px 0 8px; font-size: clamp(25px,5vw,40px); }
.profile-unavailable > p,.profile-settings-intro > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.9; }
.profile-unavailable .button { margin-top: 10px; }
.profile-settings-intro { max-width: 760px; margin: 0 auto 30px; }
.profile-settings-intro h1 { margin: 10px 0 12px; font-size: clamp(37px,7vw,68px); letter-spacing: -.06em; line-height: 1.04; }
.profile-settings-intro h1 span { color: var(--accent-bright); }
.profile-settings-intro > p:last-child { max-width: 680px; }
.profile-panel { max-width: 880px; margin: 0 auto 26px; padding: clamp(20px,4vw,34px); border: 1px solid var(--line-strong); border-radius: 13px; background: color-mix(in srgb,var(--surface) 94%,transparent); box-shadow: var(--card-shadow); transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px)); transform-style: preserve-3d; transition: transform 220ms ease,border-color 180ms ease,box-shadow 220ms ease; }
.profile-login-panel { max-width: 570px; }
.application-entry-link { width: fit-content; margin-top: 14px; text-decoration: none; }
.profile-panel h2 { margin: 0 0 8px; font-size: 21px; }
.profile-help,.profile-field small,.social-editor-heading p { color: var(--muted); font-size: 10px; line-height: 1.8; }
.profile-help { margin: 0 0 18px; }
.profile-form { display: grid; gap: 17px; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.profile-field { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 10px; }
.profile-field input:not([type="file"]),.profile-field textarea { width: 100%; }
.profile-field textarea { min-height: 100px; line-height: 1.7; resize: vertical; }
.profile-field small { font-size: 9px; }
.profile-field-wide { grid-column: 1/-1; }
.profile-toggle { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised); cursor: pointer; }
.profile-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.profile-toggle span { display: grid; gap: 4px; }
.profile-toggle strong { font-size: 11px; }
.profile-toggle small { color: var(--muted); font-size: 9px; line-height: 1.6; }
.profile-editor-heading { align-items: center; margin-bottom: 22px; }
.quiet-button { min-height: 35px; padding: 7px 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 7px; background: transparent; cursor: pointer; font-size: 10px; }
.social-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.social-editor-heading h3 { margin: 0 0 3px; font-size: 12px; }
.social-editor-heading p { margin: 0; font-size: 9px; }
.social-editor-heading .admin-action:disabled { cursor: not-allowed; opacity: .48; }
.social-link-editor { display: grid; gap: 8px; }
.social-link-row { display: grid; grid-template-columns: minmax(100px,.55fr) minmax(0,1fr) auto; align-items: end; gap: 8px; }
.social-link-row input { width: 100%; min-height: var(--control-height); }
.remove-social-link { min-height: 36px; padding: 6px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; font-size: 9px; }
.profile-form-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 3px; }
.profile-form-actions .button { text-decoration: none; }
.public-profile-main .profile-pagination { align-self: center; margin-top: auto; padding-top: 22px; padding-bottom: 8px; }
.avatar-upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.avatar-upload-preview { display: grid; flex: 0 0 auto; place-items: center; width: 58px; height: 58px; overflow: hidden; color: var(--accent-bright); border: 1px solid var(--line-strong); border-radius: 50%; background: var(--accent-soft); font-size: 9px; }
.avatar-upload-preview img { width: 100%; height: 100%; object-fit: cover; }

@media (hover: none), (prefers-reduced-motion: reduce) {
  .developer-project-card:hover,.profile-unavailable:hover { --tilt-lift: 0px; }
}
.avatar-file-picker { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 11px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-raised); cursor: pointer; font-size: 10px; transition: border-color 160ms ease,transform 160ms ease; }
.avatar-file-picker:hover { border-color: var(--accent); transform: translateY(-1px); }
.avatar-file-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.avatar-file-picker:focus-within { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.avatar-upload-row .quiet-button { min-height: 36px; }
.catalog-grid:focus-visible,.profile-project-grid:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }
@media(max-width:760px) {
  .profile-main { width: min(100% - 32px,680px); }
  .application-main { width: min(100% - 32px,680px); }
  .application-policy-grid { grid-template-columns: 1fr; }
  .public-profile-hero { grid-template-columns: 90px minmax(0,1fr); gap: 18px; padding: 19px; }
  .public-profile-avatar { width: 88px; height: 88px; }
  .profile-project-grid { grid-auto-columns: min(350px, calc(100vw - 64px)); }
}
@media(max-width:520px) {
  .profile-main { padding-top: 33px; }
  .public-profile-hero { grid-template-columns: 1fr; justify-items: start; }
  .profile-project-grid { grid-auto-columns: 84vw; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-field-wide { grid-column: auto; }
  .social-link-row { grid-template-columns: 1fr; }
  .social-link-row .remove-social-link { justify-self: start; }
  .social-editor-heading { align-items: start; flex-direction: column; }
  .profile-section-heading,.profile-editor-heading { align-items: start; }
  .site-footer { align-items: start; flex-direction: column; }
  .footer-disclaimer { text-align: left; }
}
