@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --pf-bg: #111113;
  --pf-bg-2: #18191b;
  --pf-bg-3: #212225;
  --pf-bg-4: #272a2d;
  --pf-text: #fafafa;
  --pf-text-2: #e4e4e7;
  --pf-text-3: #a1a1aa;
  --pf-text-4: #8a8a8f;
  --pf-text-5: #74757a;
  --pf-green: #86efac;
  --pf-green-2: #4ade80;
  --pf-green-text: #5ddf6c;
  --pf-green-on: #052e16;
  --pf-red: #f87171;
  --pf-yellow: #f5c518;
  --pf-border: #212225;
  --pf-border-3: #272a2d;
}

.pf-root,
.pf-root * {
  box-sizing: border-box;
}

.pf-root {
  min-height: 100dvh;
  background: var(--pf-bg);
  color: var(--pf-text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  border-color: var(--pf-border);
}

.pf-root button:not(:disabled),
.pf-root [role="button"]:not(:disabled) {
  cursor: pointer;
}

.pf-shell {
  display: flex;
  min-height: 100dvh;
}

/* Left icon rail */
.pf-rail {
  width: 72px;
  flex-shrink: 0;
  background: var(--pf-bg);
  border-right: 1px solid var(--pf-border-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 20px;
  position: sticky;
  top: 0;
  height: 100dvh;
  z-index: 40;
}

.pf-rail-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 18px;
  min-height: 32px;
}

.pf-rail-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.pf-rail-collapse {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--pf-text-4);
  display: grid;
  place-items: center;
  padding: 0;
}

.pf-rail-collapse:hover {
  color: var(--pf-text);
}

.pf-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  flex: 1;
}

.pf-rail-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--pf-text);
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 8px;
}

.pf-rail-btn:hover,
.pf-rail-btn.is-on {
  background: #18181b;
}

.pf-rail-plus {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--pf-green);
  color: var(--pf-green-on);
  display: grid;
  place-items: center;
  margin-top: auto;
}

.pf-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--pf-bg);
}

.pf-banner {
  height: 40px;
  background: var(--pf-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
  font-size: 14px;
  font-weight: 500;
}

.pf-banner a {
  color: var(--pf-text);
  text-decoration: none;
}

.pf-banner-x {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--pf-text-3);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.pf-top {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 12px;
}

.pf-back {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--pf-text);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pf-back:hover {
  background: var(--pf-bg-3);
}

.pf-search {
  flex: 0 1 420px;
  width: 420px;
  max-width: calc(100% - 120px);
  height: 40px;
  background: var(--pf-bg-3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 12px;
  gap: 8px;
  color: var(--pf-text-3);
  min-width: 0;
}

.pf-search span {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--pf-text-4);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-kbd {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pf-text-3);
  background: var(--pf-bg-4);
  border-radius: 4px;
  padding: 2px 6px;
}

.pf-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--pf-bg-3);
  color: var(--pf-text);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pf-btn-create {
  height: 40px;
  border: 0;
  background: var(--pf-bg-3);
  color: var(--pf-text);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pf-btn-signin {
  height: 40px;
  border: 0;
  background: var(--pf-green);
  color: var(--pf-green-on);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.pf-body {
  flex: 1;
  padding: 12px 24px 32px;
}

.pf-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pf-bg-3);
  color: var(--pf-text);
  border: 1px solid var(--pf-border-3);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  z-index: 80;
}

.pf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pf-modal-card {
  width: min(420px, 100%);
  background: var(--pf-bg-2);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 20px;
}

.pf-modal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pf-modal-card p {
  margin: 0 0 16px;
  color: var(--pf-text-3);
  font-size: 14px;
}

.pf-modal-card input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--pf-border-3);
  background: var(--pf-bg);
  color: var(--pf-text);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  margin-bottom: 12px;
}

.pf-mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: var(--pf-bg);
  border-top: 1px solid var(--pf-border-3);
  z-index: 50;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.pf-mobile-nav button {
  background: none;
  border: 0;
  color: var(--pf-text);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.pf-watch {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 16px 0 12px;
  border-bottom: 1px solid #1c1d21;
  flex-shrink: 0;
}

.pf-watch-ico {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--pf-text-3);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pf-watch-ico:hover,
.pf-watch-ico.is-on {
  background: #1c1d22;
  color: var(--pf-text);
}

.pf-watch-avatars {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 6px 0 10px;
  margin-left: 4px;
  border: 0;
  background: transparent;
  color: var(--pf-text-4);
  border-radius: 8px;
  gap: 4px;
}

.pf-watch-avatars:hover {
  background: #1c1d22;
}

.pf-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #111113;
  margin-left: -6px;
  display: inline-block;
  flex-shrink: 0;
}

.pf-av:first-child {
  margin-left: 0;
}

.pf-watch-copy {
  margin: 0 0 0 8px;
  font-size: 13px;
  color: var(--pf-text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-docs-body {
  padding: 28px 48px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pf-doc {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 48px;
  min-width: 0;
}

.pf-doc h1 {
  margin: 12px 0 24px;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.025em;
  color: #fff;
  overflow-wrap: break-word;
  max-width: 100%;
}

.pf-doc-updated {
  margin: -12px 0 24px;
  font-size: 14px;
  color: var(--pf-text-3);
}

.pf-prose {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 920px;
}

.pf-prose p,
.pf-prose li {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

.pf-prose h2 {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #fff;
}

.pf-prose ul {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: disc;
}

.pf-prose li::marker {
  color: #fff;
}

.pf-prose strong {
  font-weight: 700;
}

.pf-prose em {
  font-style: italic;
}

.pf-doc-a {
  color: var(--pf-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pf-doc-a:hover {
  filter: brightness(1.33);
}

.pf-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pf-border-3);
  border-radius: 10px;
}

.pf-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pf-table-wrap th,
.pf-table-wrap td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pf-border-3);
  color: #fff;
}

.pf-table-wrap th {
  font-weight: 600;
  color: var(--pf-text-3);
  background: var(--pf-bg-2);
}

.pf-table-wrap tr:last-child td {
  border-bottom: 0;
}

.pf-doc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin-top: auto;
  padding: 20px 8px 8px;
  color: var(--pf-text-5);
  font-size: 13px;
  border-top: 1px solid #1c1d21;
}

.pf-doc-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pf-doc-foot-links a,
.pf-doc-foot-links button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pf-text-3);
  font-size: 13px;
  text-decoration: none;
}

.pf-doc-foot-links a:hover,
.pf-doc-foot-links button:hover {
  color: var(--pf-text);
}

.pf-cookie {
  position: fixed;
  left: 72px;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--pf-bg);
  border-top: 1px solid var(--pf-border-3);
  padding: 20px 32px 24px;
}

.pf-cookie-inner {
  max-width: 1100px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.pf-cookie-h {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.pf-cookie p {
  margin: 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pf-text-2);
}

.pf-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.pf-cookie-actions button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--pf-bg-3);
  color: var(--pf-text);
  font-size: 14px;
  font-weight: 600;
}

.pf-cookie-actions .is-accept {
  background: var(--pf-green);
  color: var(--pf-green-on);
}

.pf-create-card {
  max-width: 520px;
  margin: 24px auto;
  background: var(--pf-bg-2);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 24px;
}

.pf-create-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.pf-create-lead {
  margin: 0 0 20px;
  color: var(--pf-text-3);
  font-size: 14px;
  line-height: 1.5;
}

.pf-create-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-text-3);
}

.pf-create-card input,
.pf-create-card textarea {
  width: 100%;
  border: 1px solid var(--pf-border-3);
  background: var(--pf-bg);
  color: var(--pf-text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.pf-create-card input {
  height: 42px;
}

.pf-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .pf-rail {
    display: none;
  }
  .pf-top {
    padding: 0 12px;
  }
  .pf-body {
    padding: 8px 12px 80px;
  }
  .pf-btn-create {
    display: none;
  }
  .pf-search span:not(.pf-kbd) {
    display: none;
  }
  .pf-mobile-nav {
    display: flex !important;
  }
  .pf-doc h1 {
    font-size: 26px;
    line-height: 32px;
  }
  .pf-docs-body {
    padding: 8px 16px 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
