/* The shared Publika surface: one quiet canvas, one red action, real content. */
:root {
  --pk-canvas: #08090a;
  --pk-surface: #121516;
  --pk-surface-raised: #171a1b;
  --pk-border: #303334;
  --pk-muted: #a9adae;
  --pk-accent: #f0442e;
  --pk-glow: rgba(137, 30, 20, .19);
}
body.fs-page { background: var(--pk-canvas); color: #f5f4f2; }
body.fs-backdrop::before { background: var(--pk-canvas); background-image: none; filter: none; transform: none; }
body.fs-backdrop::after { background: radial-gradient(780px 540px at 94% 18%, var(--pk-glow), transparent 75%); }
.pk-top { position: sticky; top: 0; z-index: 30; gap: 16px; min-height: 58px; padding: 7px 20px; background: rgba(9,10,11,.96); border-bottom: 1px solid #292c2d; backdrop-filter: blur(16px); }
.pk-wordmark { flex: 0 0 182px; min-height: 40px; color: #f8f7f5; font-size: 19px; font-weight: 750; letter-spacing: -.045em; }
.pk-wordmark:hover { color: #fff; }
.pk-mark { width: 25px; height: 25px; border-radius: 5px; }
.pk-top .pk-search { flex: 1 1 300px; max-width: 460px; margin: 0 auto 0 0; }
.pk-top .pk-search .pk-control { min-height: 36px; padding: 7px 13px 7px 36px; border: 1px solid #343839; border-radius: 7px; background: #181b1c; color: #f4f4f3; font-size: 13px; }
.pk-search { position: relative; }
.pk-search::before { content: ''; position: absolute; top: 13px; left: 13px; width: 11px; height: 11px; border: 1.7px solid #a9adae; border-radius: 50%; pointer-events: none; }
.pk-search::after { content: ''; position: absolute; top: 25px; left: 23px; width: 6px; height: 1.7px; background: #a9adae; transform: rotate(45deg); transform-origin: left center; pointer-events: none; }
#suggest-results:not([hidden]) { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; display: grid; gap: 3px; padding: 9px; border: 1px solid #3b4142; border-radius: 9px; background: #1a1e1f; box-shadow: 0 20px 42px #000b; }
#suggest-results>strong { padding: 7px 8px; color: #aeb7b8; font-size: 11px; letter-spacing: .03em; }
#suggest-results>a { display: grid; gap: 3px; min-height: 35px; padding: 7px 9px; border-radius: 6px; color: #f5f5f3; font-size: 12px; text-decoration: none; }
#suggest-results>a:hover, #suggest-results>a:focus { background: #2b3131; }
#suggest-results>a small { color: #aeb4b4; font-size: 10px; }
#suggest-results>a.pk-search-all { color: #f5836d; border-top: 1px solid #343b3c; border-radius: 0; }
.pk-search-skeleton { display: block; height: 40px; border-radius: 6px; background: linear-gradient(100deg,#272d2e,#3a4142,#272d2e); background-size: 200% 100%; animation: pk-shimmer 1.2s linear infinite; }
.pk-top .fs-button { min-height: 36px; min-width: 36px; padding: 7px 12px; border-radius: 7px; font-size: 13px; }
.pk-top .pk-create-action { padding-inline: 14px; }
.pk-icon-action { position: relative; padding: 7px !important; background: transparent !important; border-color: transparent !important; color: #e8ebea; }
.pk-icon-action:hover { background: #202425 !important; }
.pk-icon-action svg, .pk-rail svg { width: 18px; height: 18px; flex: none; }
#inbox-count:not(:empty) { position: absolute; top: 0; right: -1px; min-width: 15px; min-height: 15px; padding: 1px 3px; border-radius: 99px; background: var(--pk-accent); color: white; font-size: 9px; line-height: 13px; }
.pk-account { position: relative; }
.pk-account summary { gap: 8px; min-height: 36px; padding: 3px 5px; background: transparent; border: 0; font-size: 12px; }
.pk-account summary:hover { background: #1d2021; }
.pk-account-avatar { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #40231d; background: #e9b6a8; font-size: 11px; font-weight: 750; }
.pk-account-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.pk-account-name { max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-account nav { position: absolute; top: calc(100% + 4px); right: 0; z-index: 40; min-width: 230px; max-height: min(70vh, 570px); overflow-y: auto; background: #181b1c; border-color: #363a3b; box-shadow: 0 20px 40px #0009; }
.pk-account nav a, .pk-account nav button { min-height: 36px; padding: 8px 10px; color: #e9ebea; font-size: 13px; }
.pk-account nav a:hover { background: #272b2c; }
.pk-frame { gap: 0; padding: 0; min-height: calc(100vh - 58px); }
.pk-rail { position: sticky; top: 58px; align-self: flex-start; flex: 0 0 154px; width: 154px; height: calc(100vh - 58px); min-height: 0; gap: 4px; padding: 14px 8px; border-right: 1px solid #2b2e2f; background: #0b0d0e; }
.pk-rail a { gap: 10px; min-height: 39px; padding: 8px 11px; border-radius: 7px; color: #bdc1c1; font-size: 13px; font-weight: 550; }
.pk-rail a:hover { color: #fff; background: #1a1d1e; }
.pk-rail a[aria-current=page] { color: #ff5a42; background: #1b1d1e; font-weight: 700; }
.pk-stage { width: calc(100% - 154px); min-height: calc(100vh - 58px); }
.pk-stage > main:not(.pk-home):not(.pk-profile):not(.pk-servers) { display: block; width: min(100%, 1120px); padding: 34px clamp(18px, 3vw, 40px) 90px; margin: 0 auto; }
.pk-stage > main > .pk-page-head { margin-bottom: 26px; }
.pk-page-head .fs-kicker { margin: 0 0 9px; color: #ff674f; font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.pk-page-head .fs-kicker:empty { display: none; }
.pk-page-head h1 { margin: 0 0 7px; font-size: clamp(27px, 2.7vw, 39px); line-height: 1.08; letter-spacing: -.05em; }
.pk-page-head .pk-lede { margin: 0; color: var(--pk-muted); font-size: 14px; line-height: 1.55; }
.pk-stage section > h2, .pk-stage aside > h2 { margin: 0 0 15px; font-size: 17px; letter-spacing: -.025em; }
.pk-stage main > section { margin: 22px 0 30px; }
.pk-stage main > section > ol:not(.pk-home-cards), .pk-stage main > section > ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pk-stage main > section > ol > li:not(.pk-discovery-card), .pk-stage main > section > ul > li { padding: 17px 19px; background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 9px; }
.pk-stage main > section > ol > li > a { color: #f4f4f2; font-weight: 650; text-decoration: none; }
.pk-stage main > section > ol > li > span { color: var(--pk-muted); font-size: 13px; }
.pk-stage main > section > ol > li > a:hover { color: #ff7660; }
.pk-tabs { gap: 6px; margin: 18px 0 26px; }
.pk-tabs a { min-height: 33px; min-width: 0; padding: 7px 12px; border: 1px solid #303536; border-radius: 99px; color: #c5c8c8; background: #141718; font-size: 12px; font-weight: 550; }
.pk-tabs a[aria-current=page] { color: #fff; border-color: #e83c29; background: #d62e1c; }
.pk-tabs a:hover { color: #fff; border-color: #9a4b3b; }
.fs-empty, .pk-home-opening, .pk-home-empty { min-height: 125px; padding: 25px; background: linear-gradient(155deg, #15191a, #111415); border: 1px solid var(--pk-border); border-radius: 9px; color: var(--pk-muted); }
.fs-empty { justify-items: center; align-content: center; text-align: center; }
.fs-empty::before { content: '◇'; color: #798080; font-size: 25px; line-height: 1; }
.fs-empty h2 { margin: 0; color: #f1f1ef; font-size: 16px; }
.fs-empty p { margin: 0; font-size: 13px; }
.fs-button { min-height: 38px; padding: 8px 14px; border-radius: 7px; font-size: 13px; font-weight: 700; box-shadow: none; transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.fs-button:hover:not(:disabled), button:hover:not(:disabled) { transform: translateY(-1px); }
.fs-button:active:not(:disabled), button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.fs-button--primary { background: #de301e; border-color: #de301e; color: white; }
.fs-button--primary:hover:not(:disabled) { background: #bf2518; border-color: #bf2518; box-shadow: 0 6px 22px #ab241c4d; }
.pk-control, .pk-stage input:not([type=checkbox]):not([type=radio]):not([type=file]), .pk-stage select, .pk-stage textarea { min-height: 41px; max-width: 100%; padding: 9px 12px; border: 1px solid #3a3e3f; border-radius: 7px; background: #171a1c; color: #f5f5f3; font: 14px/1.35 var(--fs-font); }
.pk-control:focus, .pk-stage input:focus, .pk-stage select:focus, .pk-stage textarea:focus { outline: 2px solid #e95c48; outline-offset: 1px; border-color: #ef715c; }
.pk-stage textarea { min-height: 110px; resize: vertical; }
.pk-field { gap: 7px; }
.pk-field label, .pk-stage form label, .pk-stage fieldset legend { color: #e4e6e5; font-size: 13px; font-weight: 650; }
.pk-hint, .pk-field small { color: var(--pk-muted); font-size: 12px; }
.pk-stage > main > form:not(.pk-discovery-filters), .pk-stage > main > section > form { display: grid; gap: 16px; width: min(100%, 770px); padding: 22px; background: #111516; border: 1px solid var(--pk-border); border-radius: 11px; }
.pk-stage form fieldset { display: grid; gap: 10px; padding: 18px; border: 1px solid #343839; border-radius: 9px; }
.pk-stage form fieldset legend { padding: 0 6px; }
.pk-stage form .fs-button--primary { justify-self: start; }
.pk-stage form [role=status] { min-height: 1.3em; margin: 0; color: #f2a595; font-size: 13px; }
.pk-discovery-filters { background: #121617; border-color: var(--pk-border); padding: 17px; border-radius: 9px; }
.pk-discovery-card { background: #15191a; border-color: var(--pk-border); border-radius: 9px; transition: border-color .2s ease, transform .2s ease; }
.pk-discovery-card:hover { border-color: #755044; transform: translateY(-2px); }
.pk-discovery-avatar { border-radius: 10px; background: linear-gradient(145deg, #ad4330, #3f261f); }
.pk-home-layout { padding: 30px clamp(18px, 3vw, 40px) 40px; }
.pk-home-intro h1 { font-size: clamp(31px, 3.3vw, 48px); }
.pk-home-card article, .pk-home-side-card, .pk-home-opening, .pk-home-prompt-grid a, .pk-server-card, .pk-server-create, .pk-server-channels, .pk-server-conversation { background: linear-gradient(145deg, #171a1b, #111415); border-color: var(--pk-border); border-radius: 9px; }
.pk-home-card article, .pk-home-prompt-grid a, .pk-server-card { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.pk-home-card article:hover, .pk-home-prompt-grid a:hover, .pk-server-card:hover { border-color: #754237; transform: translateY(-2px); box-shadow: 0 12px 30px #0004; }
.pk-home-onboard { background: linear-gradient(140deg, #311813, #1b1110); border-color: #763a2d; border-radius: 10px; }
.pk-home-topics a { background: #15191a; border-color: #323637; }
.pk-home-join { background: linear-gradient(100deg, #170e0d, #341612); }
.pk-profile-cover { background: radial-gradient(640px 250px at 85% 0, #5a271f, #171819 72%); border-color: var(--pk-border); }
.pk-profile-side, .pk-profile-work li, #profile-form .pk-profile-media-edit label, #profile-form fieldset { background: #15191a; border-color: var(--pk-border); }
#profile-form { padding: 22px; width: min(100%, 860px); }
#profile-form .pk-profile-media-edit { margin-top: 0; }
#profile-form .pk-profile-media-edit .pk-upload-card { display: grid; justify-items: start; align-content: start; gap: 7px; min-height: 180px; padding: 16px; cursor: pointer; }
.pk-upload-preview { display: grid; place-items: center; overflow: hidden; width: 90px; height: 90px; border: 1px solid #6d443b; border-radius: 11px; background: radial-gradient(circle at 60% 20%,#a64a35,#3c2924 75%); color: #fff; font-size: 34px; }
.pk-upload-preview img { width: 100%; height: 100%; max-height: none !important; margin: 0 !important; object-fit: cover; }
.pk-upload-cover { width: 100%; height: 90px; border-color: #3e494a; background: radial-gradient(circle at 85% 20%,#6d3029,#1d2425 75%); }
.pk-upload-card strong { font-size: 13px; }.pk-upload-card small { color: #aeb5b5; font-size: 11px; }
.pk-avatar-crop { display: grid; gap: 12px; max-width: 360px; margin: 18px 0; padding: 18px; border: 1px solid var(--pk-border); border-radius: 16px; background: #15191a; }
.pk-avatar-crop[hidden] { display: none; }
.pk-avatar-crop canvas { width: min(100%, 256px); aspect-ratio: 1; border-radius: 14px; }
.pk-avatar-crop label { display: grid; gap: 5px; }
.pk-avatar-crop input { width: 100%; accent-color: #eb3321; }
.pk-profile-name-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
#profile-form input[type=file]::file-selector-button { background: #292e2e; border-color: #535b5c; }
.pk-servers { padding-top: 34px; }
.pk-servers .pk-home-intro { margin-bottom: 24px; }
.pk-server-create { max-width: 730px; }
.pk-server-grid { gap: 12px; }
.pk-server-card { min-height: 170px; }
.pk-foot { gap: 12px 20px; padding: 19px 22px; color: #8e9394; background: #0b0d0e; border-color: #282c2d; font-size: 12px; }
.pk-foot a { min-height: 25px; min-width: 0; padding: 0; color: #a7acad; font-size: 12px; font-weight: 500; }
.pk-notification-panel { border-color: #383d3e; background: #191d1e; }
.pk-mark, .pk-rail svg, .pk-icon-action svg, .pk-home-card-actions svg { transition: transform .25s cubic-bezier(.2,.8,.2,1), filter .25s ease, stroke .25s ease; transform-origin: center; }
.pk-wordmark:hover .pk-mark { transform: rotate(-8deg) scale(1.14); filter: drop-shadow(0 0 8px #ef4b2daa); }
.pk-rail a:hover svg, .pk-rail a[aria-current=page] svg { transform: translateX(2px) scale(1.11); filter: drop-shadow(0 0 6px #f3513b66); }
.pk-icon-action:hover svg, .pk-home-card-actions :is(a,button):hover svg { transform: scale(1.16) rotate(-7deg); }
.pk-home-layout { grid-template-columns: minmax(0,1fr) minmax(260px,310px); }
.pk-home-intro { margin-bottom: 18px; }
.pk-home-intro h1 { max-width: none; font-size: clamp(28px,2.65vw,39px); }
.pk-home-intro>p:last-child { max-width: none; font-size: 14px; }
.pk-home-topics { margin-bottom: 27px; }
.pk-home-stream-head { align-items: start; margin-bottom: 14px; }
.pk-home-stream-head h2 { margin: 0 0 4px; font-size: clamp(19px,1.8vw,25px); letter-spacing: -.035em; }
.pk-home-stream-head p { margin: 0; color: #aeb3b4; font-size: 13px; }
.pk-home-stream-head>a { margin-top: 5px; color: #bec3c3; text-decoration: none; white-space: nowrap; font-size: 12px; }
.pk-home-stream-head>a:hover { color: #fff; }
.pk-home-feed-featured { grid-template-columns: repeat(4,minmax(0,1fr)); }
.pk-home-feed-featured .pk-home-card article { min-height: 298px; padding: 13px; }
.pk-home-feed-featured .pk-home-card h2 { margin: 13px 0 5px; font-size: 15px; }
.pk-home-feed-featured .pk-home-card h2+p { margin: 0 0 12px; font-size: 11px; }
.pk-home-feed-featured .pk-home-image { order: -1; display: grid; place-items: center; width: 100%; aspect-ratio: 16/8.2; margin: 0 0 13px; border-radius: 7px; }
.pk-home-image-empty { background: radial-gradient(circle at 50% 45%,#333738,#202425 65%,#171b1c); color: #858d8e; text-decoration: none; }
.pk-home-image-empty span { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #646b6c; border-radius: 50%; font-size: 30px; }
.pk-home-card-actions { display: flex; align-items: center; gap: 14px; margin-top: auto; color: #aeb5b5; }
.pk-home-card-actions svg { width: 18px; height: 18px; }
.pk-home-card-actions button, .pk-home-card-actions a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; border: 0; background: transparent; color: #aeb5b5; text-decoration: none; font: 12px var(--fs-font); cursor: pointer; }
.pk-home-card-actions button[aria-pressed=true] { color: #ff654d; }
.pk-home-card-actions .pk-home-open { margin: 0 0 0 auto; font-size: 11px; }
.pk-home-action-status:empty { display: none; }.pk-home-action-status { margin-top: 6px !important; font-size: 11px !important; }
.pk-home-entry>a { display: flex; flex-direction: column; min-height: 298px; height: 100%; padding: 13px; border: 1px solid var(--pk-border); border-radius: 9px; background: linear-gradient(145deg,#171a1b,#101314); color: #fff; text-decoration: none; transition: transform .2s ease,border-color .2s ease; }
.pk-home-entry>a:hover { transform: translateY(-3px); border-color: #8c493a; }
.pk-home-entry-art { display: grid; place-items: center; width: 100%; aspect-ratio: 16/8.2; margin-bottom: 13px; border-radius: 7px; background: radial-gradient(circle at 50% 45%,#303536,#1c2021 70%); color: #7a8485; font-size: 49px; transition: color .2s ease,transform .2s ease; }
.pk-home-entry>a:hover .pk-home-entry-art { color: #f2725a; }
.pk-home-entry .pk-home-kind { margin-bottom: 12px; }
.pk-home-entry strong { display: block; margin-bottom: 6px; font-size: 16px; line-height: 1.2; }
.pk-home-entry-detail { color: #aeb3b4; font-size: 12px; line-height: 1.45; }
.pk-home-entry-open { margin-top: auto; padding-top: 16px; color: #ee8f7f; font-size: 11px; font-weight: 700; }
.pk-home-screening { margin-top: 33px !important; }
.pk-home-screening-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 0; list-style: none; }
.pk-home-screening-grid a { display: grid; gap: 4px; color: #f2f3f1; text-decoration: none; }
.pk-home-screening-grid img, .pk-home-screening-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 16/7.6; object-fit: cover; border: 1px solid var(--pk-border); border-radius: 7px; background: #1b2021; color: #818a8a; font-size: 29px; }
.pk-home-screening-grid a:hover img, .pk-home-screening-grid a:hover .pk-home-screening-placeholder { border-color: #a44b3b; }
.pk-home-screening-grid strong { margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.pk-home-screening-grid small { color: #a6adad; font-size: 11px; }
.pk-home-screening-empty { display: flex; align-items: center; gap: 15px; min-height: 110px; padding: 20px; border: 1px dashed #3a4142; border-radius: 9px; color: #acb2b2; font-size: 13px; }
.pk-home-screening-empty>span { font-size: 33px; color: #797f80; }.pk-home-screening-empty p { margin: 0; }.pk-home-screening-empty a { margin-left: auto; color: #f08d78; white-space: nowrap; }
.pk-home-side-card { padding: 18px; }
.pk-home-side-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pk-home-side-heading h2 { margin: 0; font-size: 16px; }.pk-home-side-heading>a { color: #bbc0c0; font-size: 11px; text-decoration: none; }
.pk-home-side-empty { display: grid; justify-items: center; align-content: center; min-height: 130px; padding: 15px; border: 1px solid #313637; border-radius: 7px; background: #171b1c; text-align: center; }
.pk-home-side-empty>span { color: #8b9293; font-size: 27px; }.pk-home-side-empty p { margin: 8px 0 2px; color: #e2e4e2; font-size: 12px; }.pk-home-side-empty small { max-width: 200px; color: #a5adad; font-size: 11px; line-height: 1.4; }
.pk-home-side-empty a { margin-top: 10px; color: #f38871; font-size: 11px; }
.pk-home-suggestions { display: grid; gap: 8px; padding: 0; list-style: none; }
.pk-home-suggestions li { display: flex; align-items: center; gap: 8px; }
.pk-home-suggestions li>a { display: flex; align-items: center; min-width: 0; flex: 1; gap: 8px; color: #fff; text-decoration: none; }
.pk-home-suggestions img, .pk-home-suggest-avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; object-fit: cover; border-radius: 50%; background: #74402f; color: #fff; }
.pk-home-suggestions strong, .pk-home-suggestions small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-home-suggestions strong { font-size: 12px; }.pk-home-suggestions small { color: #a8afaf; font-size: 10px; }
.pk-home-suggestions .fs-button { min-height: 29px; min-width: 0; padding: 5px 8px; color: #f66c55; font-size: 11px; }
.pk-home-suggestions [role=status] { display: none; }
.pk-home-trending ol { display: grid; gap: 11px; padding: 0; margin: 5px 0 0; list-style: none; }
.pk-home-trending li { display: flex; justify-content: space-between; gap: 10px; color: #afb4b4; font-size: 12px; }
.pk-home-trending li a { color: #e2e5e4; text-decoration: none; }
.pk-home-tagline { justify-self: end; padding: 4px 35px 15px; color: #f15139; font: italic 25px/1.05 cursive; transform: rotate(-12deg); text-align: center; }
.pk-home-join { gap: 28px; margin-top: 10px; border-color: #42231f; }
.pk-home-join h2 { font-size: clamp(23px,2.9vw,39px); }.pk-home-join h2 em { color: #f0442e; font-style: normal; }
.pk-home-join-actions { min-width: min(100%,330px); flex-direction: column; }.pk-home-join-actions .fs-button { width: 100%; }
@media(max-width:1300px){.pk-home-feed-featured,.pk-home-screening-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:1050px){.pk-home-layout{grid-template-columns:1fr}.pk-home-side{grid-template-columns:repeat(2,minmax(0,1fr));}.pk-home-tagline{align-self:center;}}
@media(max-width:759px){.pk-home-feed-featured,.pk-home-screening-grid,.pk-home-side{grid-template-columns:1fr}.pk-home-entry>a{min-height:250px}.pk-home-entry-art{aspect-ratio:16/6}.pk-home-screening-empty{flex-wrap:wrap}.pk-home-screening-empty a{margin-left:0}.pk-home-join-actions{min-width:0}}

/* Motion is purposeful: arrive, acknowledge, then get out of the way. */
@keyframes pk-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pk-spin { to { transform: rotate(360deg); } }
@keyframes pk-shimmer { to { background-position: -200% 0; } }
@keyframes pk-pulse { 50% { opacity: .45; } }
.pk-stage > main { animation: pk-arrive .32s cubic-bezier(.2,.8,.2,1) both; }
.pk-home-cards > li, .pk-home-feed > li, .pk-discovery-card { animation: pk-arrive .35s both; }
.pk-home-cards > li:nth-child(2), .pk-home-feed > li:nth-child(2), .pk-discovery-card:nth-child(2) { animation-delay: 45ms; }
.pk-home-cards > li:nth-child(3), .pk-home-feed > li:nth-child(3), .pk-discovery-card:nth-child(3) { animation-delay: 90ms; }
.pk-home-cards > li:nth-child(4), .pk-home-feed > li:nth-child(4), .pk-discovery-card:nth-child(4) { animation-delay: 135ms; }
button.pk-loading, .fs-button.pk-loading { position: relative; cursor: progress; padding-left: 37px; opacity: .86; }
button.pk-loading::before, .fs-button.pk-loading::before { content: ''; position: absolute; left: 13px; top: calc(50% - 7px); width: 14px; height: 14px; border: 2px solid #ffffff7a; border-top-color: #fff; border-radius: 50%; animation: pk-spin .68s linear infinite; }
.pk-skeleton { min-height: 18px; border-radius: 5px; background: linear-gradient(100deg, #242829 25%, #353a3b 50%, #242829 75%); background-size: 200% 100%; animation: pk-shimmer 1.3s linear infinite; }
[role=status]:not(:empty) { transition: color .2s ease, opacity .2s ease; }
.pk-chat-panel[hidden], .pk-notification-panel[hidden] { display: none; }
.pk-chat-panel:not([hidden]), .pk-notification-panel:not([hidden]) { animation: pk-arrive .2s ease both; }
@media (max-width: 1050px) { .pk-wordmark { flex-basis: 150px; } .pk-home-layout { grid-template-columns: 1fr; } }
@media (max-width: 759px) {
  .pk-top { position: sticky; gap: 8px; padding: 8px 12px; }
  .pk-wordmark { flex: 1 1 auto; font-size: 17px; }
  .pk-account-name { display: none; }
  .pk-top .pk-search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .pk-top .pk-icon-action { display: none; }
  .pk-top .pk-create-action { min-width: 38px; }
  .pk-frame { display: block; }
  .pk-stage { width: 100%; }
  .pk-rail { position: fixed; top: auto; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); width: 100%; height: auto; max-height: 55vh; overflow-y: auto; z-index: 20; box-shadow: 0 -16px 36px #0009; }
  .pk-spaces-toggle:checked ~ .pk-rail { display: flex; }
  .pk-spaces-label { bottom: calc(56px + env(safe-area-inset-bottom)); background: #171b1c; border-top: 1px solid var(--pk-border); }
  .pk-stage > main:not(.pk-home):not(.pk-profile):not(.pk-servers) { padding: 25px 16px 95px; }
  .pk-stage > main > form:not(.pk-discovery-filters) { padding: 16px; }
  .pk-home-layout { padding: 24px 16px 85px; }
  .pk-home-recent, .pk-home-cards, .pk-home-side { grid-template-columns: 1fr; }
  .pk-mobile-nav { background: #121617; border-color: #343839; }
  .pk-mobile-nav a { color: #b8bebe; }
  .pk-mobile-nav a[aria-current=page] { color: #ff6b52; }
  .pk-mobile-nav { min-height: 67px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 35px #0008; }
  .pk-mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 53px; border-radius: 9px; font-size: 10px; font-weight: 650; transition: color .18s ease, background .18s ease; }
  .pk-mobile-nav a:hover, .pk-mobile-nav a[aria-current=page] { background: #222728; }
  .pk-mobile-nav svg { width: 21px; height: 21px; transition: transform .24s cubic-bezier(.2,.8,.2,1), filter .24s ease; }
  .pk-mobile-nav a:hover svg, .pk-mobile-nav a[aria-current=page] svg { transform: translateY(-2px) scale(1.13); filter: drop-shadow(0 0 6px #f55a4277); }
  .pk-mobile-nav .pk-mobile-create { width: 52px; height: 52px; min-height: 52px; margin: -12px auto 0; border: 1px solid #ff694e; border-radius: 16px; background: linear-gradient(145deg,#f24c33,#d82c1c); box-shadow: 0 8px 25px #cd301f60; }
  .pk-mobile-nav .pk-mobile-create:hover { background: #e43622; }
  .pk-chat-dock { bottom: calc(65px + env(safe-area-inset-bottom)); }
  .pk-profile-name-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
