.ibd-page {
  margin: 0;
  background: #080909;
  color: #f1f1ec;
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
}
.ibd-page * {
  box-sizing: border-box;
}
.ibd-page a {
  color: inherit;
  text-decoration: none;
}
.ibd-page button,
.ibd-page input,
.ibd-page textarea,
.ibd-page select {
  font: inherit;
}
.ibd-header {
  box-sizing: border-box;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid #292c30;
  background: #080909;
  color: #eee;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.ibd-header a {
  text-decoration: none;
  color: inherit;
}
.ibd-header .ibd-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 44px;
  border-radius: 8px;
}
.ibd-header .ibd-brand img {
  display: block;
  width: 52px;
  height: 52px;
  max-width: none;
  object-fit: contain;
}
.ibd-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font: inherit;
}
.ibd-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 6px;
  margin-right: 12px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
.ibd-header nav a[aria-current] {
  background: transparent;
  color: #ffdf39;
  border-bottom-color: #ffda00;
}
.ibd-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.ibd-header .ibd-settings,
.ibd-header .ibd-activity {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}
.ibd-header .ibd-settings,
.ibd-header .ibd-activity {
  color: #b8bec3;
}
.ibd-header .ibd-settings:hover,
.ibd-header .ibd-settings[aria-current],
.ibd-header .ibd-activity:hover,
.ibd-header .ibd-activity[aria-current] {
  color: #ffda00;
}
#ibd-activity-count {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffda00;
  box-shadow: 0 0 0 2px #080909;
}
.ibd-main {
  max-width: 1280px;
  margin: auto;
  padding: 42px 24px 80px;
}
.ibd-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.ibd-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin: 0 0 12px;
}
.ibd-page h2 {
  line-height: 1.25;
}
.ibd-page p {
  color: #aeb4ba;
}
.ibd-page .ibd-primary {
  background: #ffda00;
  color: #12130b;
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
}
.ibd-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ibd-page input,
.ibd-page textarea,
.ibd-page select {
  width: 100%;
  padding: 13px;
  border: 1px solid #343b43;
  border-radius: 12px;
  background: #111415;
  color: #eee;
}
.ibd-toolbar input {
  flex: 1;
  min-width: 180px;
}
.ibd-segments {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.ibd-segments button,
.ibd-secondary {
  padding: 11px 15px;
  background: #141617;
  color: #c7ccd0;
  border: 1px solid #343b43;
  border-radius: 12px;
  cursor: pointer;
}
.ibd-segments [aria-pressed="true"] {
  background: #292a20;
  color: #ffdf39;
  border-color: #8f7a1a;
}
.ibd-quiet {
  font-size: 14px;
  color: #aeb4ba !important;
}
.ibd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.ibd-card {
  display: block;
  min-width: 0;
  border: 1px solid #2b3035;
  border-radius: 20px;
  background: #111415;
  overflow: hidden;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.ibd-card:hover {
  border-color: #8f7a1a;
  transform: translateY(-2px);
}
.ibd-card img,
.ibd-card-art {
  width: 100%;
  height: 145px;
  object-fit: cover;
}
.ibd-card-art {
  background: radial-gradient(ellipse at 70% 0%, #34301b, #171a1b 80%);
  color: #d6bf56;
  display: grid;
  place-items: center;
  font-size: 34px;
}
.ibd-card-body {
  padding: 22px;
}
.ibd-card h2 {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.ibd-card p {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.ibd-badge {
  font-size: 12px;
  color: #d6bf56;
}
.ibd-card-open {
  font-size: 13px;
  color: #d5d6c5;
}
.ibd-empty {
  text-align: center;
  padding: 70px 20px;
  background: #111415;
  border: 1px solid #30332d;
  border-radius: 24px;
}
.ibd-empty h2 {
  font-size: 30px;
}
.ibd-empty a {
  margin: 12px;
}
.ibd-spark {
  font-size: 48px;
  color: #ffda00;
}
.ibd-page [hidden],
.ibd-header [hidden] {
  display: none !important;
}
.ibd-form {
  max-width: 760px;
}
.ibd-form label {
  display: block;
  margin: 20px 0 7px;
}
.ibd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0;
}
.ibd-notice {
  padding: 16px;
  border: 1px solid #514a27;
  border-radius: 12px;
}
.ibd-error {
  color: #ff9292 !important;
}
.ibd-hero {
  padding: 28px;
  background: radial-gradient(ellipse at top right, #34301b, #131510 70%);
  border: 1px solid #63541a;
  border-radius: 24px;
  margin: 28px 0;
}
/* Settings (/account) styles are the .set-* block at the end. */
.ibd-mypage-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #ffd700;
}
.ibd-trending {
  display: flex;
  gap: 18px;
  overflow: auto;
  margin: 20px 0 32px;
  padding-bottom: 8px;
}
.ibd-trending .ibd-card {
  flex: 0 0 290px;
}
.ibd-trending .ibd-card:first-child {
  background: #271616;
  border-color: #c34242;
}
.ibd-trending .ibd-card:first-child .ibd-badge {
  color: #ff7474;
}
.ibd-work {
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #30343a;
  padding: 18px 0;
}
.ibd-work img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 10px;
}
.ibd-work a {
  flex: 1;
}
.ibd-work button {
  background: #202428;
  border: 1px solid #454b51;
  border-radius: 8px;
  color: #eee;
  padding: 9px;
  cursor: pointer;
}
.ibd-page :focus-visible,
.ibd-header :focus-visible {
  outline: 2px solid #ffda00;
  outline-offset: 4px;
}
.ibd-page button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 680px) {
  .ibd-header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 10px 16px;
    column-gap: 8px;
    row-gap: 4px;
  }
  .ibd-header .ibd-brand {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
  }
  .ibd-header .ibd-brand img {
    width: 46px;
    height: 46px;
  }
  .ibd-header nav {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    gap: 2px;
  }
  .ibd-header nav a {
    flex: 1;
    padding: 8px 3px;
    margin-right: 0;
    font-size: 13px;
  }
  .ibd-header .ibd-header-actions {
    grid-column: 3;
    grid-row: 1;
    gap: 0;
  }
  .ibd-main {
    padding: 28px 18px 60px;
  }
  .ibd-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .ibd-toolbar {
    align-items: stretch;
  }
  .ibd-toolbar input {
    flex-basis: 100%;
  }
  .ibd-grid {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  }
  .ibd-empty {
    padding: 40px 16px;
  }
}

@media (max-width: 680px) {
  .ibd-heading {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .ibd-heading > div {
    min-width: 0;
  }
  .ibd-heading .ibd-primary {
    flex-shrink: 0;
    padding: 11px 15px;
  }
  .ibd-heading p {
    font-size: 14px;
    margin: 0;
  }
  .ibd-toolbar {
    gap: 12px;
    margin-bottom: 22px;
  }
  .ibd-segments button {
    font-size: 13px;
    padding: 10px 12px;
  }
  .ibd-toolbar > .ibd-quiet {
    font-size: 13px;
  }
  .ibd-card-art {
    height: 110px;
  }
}
/* Keep shared navigation contained inside older page layouts too. */
.ibd-header {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}
body:has(> .ibd-header):not(.ibd-page) {
  padding-top: 0;
}
body:has(> .ibd-header):not(.ibd-page) > .ibd-header {
  margin-bottom: 28px;
}

/* Align the navigation with the canvas edges, without adding a taller header. */
body.ideas-canvas-page:has(> .ibd-header) {
  padding-left: 0;
  padding-right: 0;
}
body.ideas-canvas-page:has(> .ibd-header) > .ibd-header {
  margin-bottom: 0;
  padding: 12px max(24px, calc((100vw - 1480px) / 2));
}
@media (max-width: 680px) {
  body.ideas-canvas-page:has(> .ibd-header) > .ibd-header {
    padding: 10px 16px;
  }
  body.ideas-canvas-page:has(> .ibd-header) > .shell {
    width: calc(100% - 32px);
  }
}

/* Community reads as a conversation stream, with a compact discovery rail. */
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 320px);
  gap: 32px;
  justify-content: center;
  align-items: start;
  margin-top: 24px;
}
.community-stream {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.community-trending {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 24px;
}
.community-trending h2,
.community-intro h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.community-caption,
.community-intro p {
  margin: 0 0 20px;
  font-size: 14px;
  color: #a1a6ab;
}
.community-feed-label {
  font-size: 14px;
  color: #a1a6ab;
  margin: 24px 0 12px;
}
.community-feed {
  display: grid;
  gap: 22px;
}
.community-post {
  border: 1px solid #292e32;
  border-radius: 18px;
  overflow: hidden;
  background: #111415;
}
.community-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 8px;
}
.community-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: #29291e;
  color: #e0cb63;
  border-radius: 50%;
  font-weight: 700;
}
.community-author strong {
  font-size: 15px;
}
.community-author time {
  display: block;
  color: #999fa6;
  font-size: 12px;
  margin-top: 3px;
}
.community-post-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.community-post-link h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 16px 24px 12px;
  overflow-wrap: anywhere;
}
.community-post-text {
  margin: 0 24px 22px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
}
.community-post-image {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #090b0c;
}
.community-post footer {
  border-top: 1px solid #292e32;
  padding: 15px 24px;
}
.community-post footer a {
  color: #dfca60;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.community-trending .ibd-trending {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow: visible;
}
.community-trend {
  display: block;
  padding: 18px;
  border: 1px solid #554624;
  border-radius: 16px;
  background: #1b1913;
  text-decoration: none;
  color: #eee;
}
.community-trend-first {
  border-color: #a33d3d;
  background: radial-gradient(ellipse at top right, #492121, #201414 75%);
}
.community-rank {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 10px;
  background: #493719;
  color: #f0c36d;
  font-size: 13px;
  font-weight: 700;
}
.community-trend-first .community-rank {
  background: #e44348;
  color: #fff;
}
.community-trend-content {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}
.community-trend-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.community-trend-content span,
.community-trend-open {
  font-size: 12px;
  color: #bcb6ad;
}
.community-trend-content img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}
.community-trend-open {
  display: block;
  border-top: 1px solid #ffffff18;
  padding-top: 12px;
}
.community-post a:focus-visible,
.community-trend:focus-visible {
  outline: 2px solid #ffe000;
  outline-offset: -3px;
}
.community-stream > #load-more {
  margin-top: 22px;
}
@media (max-width: 850px) {
  .community-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .community-trending,
  .community-stream {
    width: 100%;
    position: static;
  }
  .community-trending .ibd-trending {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }
  .community-trend {
    flex: 0 0 min(280px, 85%);
    scroll-snap-align: start;
  }
  .community-post-link h2 {
    font-size: 21px;
  }
}
.community-live {
  padding: 0 24px 20px;
}
.community-live button,
.community-live select {
  font: inherit;
  font-size: 13px;
  color: #d7dbe0;
  background: #1a1e21;
  border: 1px solid #363d43;
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
}
.community-live button:disabled {
  cursor: default;
  opacity: 0.65;
}
.community-live button[aria-pressed="true"] {
  background: #3a3020;
  border-color: #dbbf55;
  color: #ffe080;
}
.community-live .community-heart[aria-pressed="true"] {
  color: #ff7d89;
  background: #3b1e25;
  border-color: #af4155;
}
.community-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #2c3237;
  padding: 16px 0;
}
.community-actions a {
  color: #dcca68;
  font-size: 13px;
  text-decoration: none;
  margin-left: auto;
}
.community-progress {
  margin-bottom: 18px;
  font-size: 13px;
}
.community-status {
  display: inline-block;
  color: #dcca68;
  padding: 6px 10px;
  border: 1px solid #5b5130;
  border-radius: 20px;
}
.community-status.status-shipped {
  color: #70d899;
  border-color: #346d49;
}
.community-status.status-in_progress {
  color: #83b7fa;
  border-color: #365d87;
}
.community-insights h3,
.community-comments h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.community-raters {
  color: #a0a8b0;
  font-size: 12px;
  margin: 0 0 14px;
}
.community-dimensions {
  display: grid;
  gap: 12px;
}
.community-dimension {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.community-dimension strong {
  font-size: 13px;
}
.community-dimension small {
  display: block;
  color: #a0a8b0;
  font-size: 12px;
  margin-top: 4px;
}
.community-dimension > div:last-child {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.community-comments {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #2c3237;
}
.community-comment {
  background: #1a1e21;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}
.community-comment strong {
  font-size: 13px;
}
.community-comment p {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0 0;
}
.community-comment-form {
  margin-top: 16px;
}
.community-comment-form label {
  display: block;
  font-size: 13px;
  color: #b5bdc5;
}
.community-comment-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  background: #0d1012;
  border: 1px solid #363d43;
  border-radius: 10px;
  color: #eee;
  font: inherit;
  resize: vertical;
}
.community-comment-form button {
  color: #ffe080;
}
.community-feedback {
  color: #ddc76b;
  font-size: 13px;
}
.community-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
@media (max-width: 480px) {
  .community-live {
    padding: 0 16px 16px;
  }
  .community-dimension {
    flex-wrap: wrap;
  }
}
.community-feed-modes {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 20px 0 16px;
  border-bottom: 1px solid #292e32;
}
.community-feed-modes button {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #aeb4ba;
  font: inherit;
  cursor: pointer;
}
.community-feed-modes button[aria-pressed="true"] {
  border-bottom-color: #ffda00;
  color: #ffda00;
}
.community-project-link {
  display: inline-block;
  color: #81c9a0;
  margin: 16px 24px;
  font-size: 14px;
  text-decoration: none;
}
/* Keep every question visible while making inline voting self-explanatory. */
.community-insights {
  padding: 12px 0;
  border-top: 1px solid #2c3237;
}
.community-insights h3 {
  margin-bottom: 5px;
  font-size: 14px;
}
.community-raters {
  margin-bottom: 10px;
  line-height: 1.4;
}
.community-dimensions {
  gap: 5px;
}
.community-dimension {
  min-height: 36px;
}
.community-dimension > div:first-child {
  font-size: 13px;
  line-height: 1.35;
}
.community-dimension button {
  padding: 7px 9px;
  min-height: 34px;
  font-size: 12px;
}
.community-dimension button span {
  margin-left: 4px;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}
.community-progress {
  margin-bottom: 10px;
}
.community-comments {
  margin-top: 8px;
  padding-top: 12px;
}
.community-feedback:empty {
  display: none;
}
@media (max-width: 480px) {
  .community-dimension {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .community-dimension > div:first-child {
    min-width: 0;
    font-size: 12px;
  }
  .community-dimension button {
    min-height: 44px;
    padding: 7px;
  }
  .community-dimension > div:last-child {
    gap: 4px;
  }
}
.community-owner-insights h3 {
  font-size: 12px;
  color: #a0a8b0;
}
.community-owner-insights .community-raters {
  font-size: 11px;
  margin-bottom: 8px;
}
.community-owner-insights .community-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.community-stat {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2c3237;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  background: #15191b;
}
.stat-agree {
  color: #91cda5;
}
.stat-disagree {
  color: #b2b8be;
}

/* Workspace focus mode keeps its own screenplay tools, without site navigation. */
body.focus-mode > .ibd-header {
  display: none;
}
.community-video {
  margin: 16px 24px;
  padding: 12px;
  border: 1px solid #404437;
  border-radius: 12px;
}
.community-video summary {
  cursor: pointer;
  color: #e0ca63;
  font-weight: 600;
}
.community-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  margin-top: 12px;
}
.community-video a {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #9abbe0;
}

.membership-intro {
  max-width: 1000px;
  margin: 16px auto 0;
}
.membership-intro h1 {
  max-width: 740px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  margin: 20px 0;
  letter-spacing: -0.045em;
}
.membership-lead {
  font-size: clamp(18px, 2vw, 23px);
  max-width: 620px;
}
.membership-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0;
}
.membership-benefits article {
  padding: 26px;
  border: 1px solid #30372c;
  background: linear-gradient(145deg, #202518, #111410);
  border-radius: 20px;
}
.membership-benefits article > span {
  color: #ffe000;
  font-size: 30px;
}
.membership-benefits h2 {
  font-size: 21px;
  margin-top: 20px;
}
.membership-benefits p,
.membership-next p,
.membership-free p {
  color: #a6afa7;
  line-height: 1.7;
}
.membership-next {
  max-width: 550px;
}
.membership-next p {
  font-size: 14px;
}
.membership-free {
  max-width: 1000px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #30372c;
}
.membership-free a {
  color: #ffe000;
}
.ibd-activity {
  white-space: nowrap;
}
@media (max-width: 680px) {
  .membership-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 24px 0;
  }
  .membership-benefits article {
    padding: 20px;
  }
  .membership-benefits h2 {
    margin-top: 12px;
  }
}

/* My Page: looks like the public page; Edit turns it into inputs in place. */
.page-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  background: #080b0bf2;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #30363a;
  margin-bottom: 32px;
}
.page-toolbar > div:first-child {
  min-width: 0;
  font-size: 12px;
  color: #aab2b8;
}
.page-toolbar #page-url {
  display: block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 13px;
  color: #dfca72;
}
.page-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-toolbar-actions > * {
  font-size: 14px !important;
  padding: 10px 16px !important;
}
.page-toolbar-actions > [hidden] {
  display: none !important;
}
.page-discard {
  border: 0;
  background: none;
  color: #aab2b8;
  cursor: pointer;
}
.page-canvas {
  max-width: 680px;
  margin: 0 auto 80px;
}
.page-canvas:not(.is-editing) .page-edit,
.page-canvas.is-editing .page-view {
  display: none !important;
}
.page-identity {
  margin-bottom: 20px;
}
.page-identity img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
}
.page-canvas .page-name {
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.page-headline {
  font-size: 20px;
  color: #bdc5ca;
  margin: 0;
}
.page-bio {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #dfe3e0;
}
.page-canvas input,
.page-canvas textarea,
.page-canvas select {
  display: block;
  background: #121617;
  border: 1px solid #353d42;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  margin: 0 0 10px;
  color: #ecefed;
  box-shadow: none;
  font: inherit;
}
.page-canvas input:focus,
.page-canvas textarea:focus,
.page-canvas select:focus {
  border-color: #c9b458;
  outline: none;
}
.page-canvas input::placeholder,
.page-canvas textarea::placeholder {
  color: #727c84;
}
.page-canvas #displayName {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.page-canvas #headline {
  font-size: 18px;
}
.page-canvas textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 100px;
}
.page-canvas select {
  width: auto;
  max-width: 240px;
  margin-top: 6px;
}
.page-canvas section {
  padding: 24px 0;
  border-top: 1px solid #293035;
}
.page-canvas h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
.page-canvas label {
  display: block;
  font-size: 12px;
  color: #929ca4;
  margin: 12px 0 4px;
}
.page-canvas:not(.is-editing) .page-links.is-empty {
  display: none;
}
.page-links .page-view {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* In view mode the links read as part of the header, not a section. */
.page-canvas:not(.is-editing) .page-links h2 {
  display: none;
}
.page-canvas:not(.is-editing) .page-links {
  margin-top: 4px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
  background: color-mix(in srgb, var(--brand) 14%, #101516);
  color: #f2f3f5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
a.social-pill:hover,
a.social-pill:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--brand) 24%, #101516);
  border-color: var(--brand);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 30%, transparent);
  outline: none;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  flex: none;
}
.social-chip svg {
  width: 16px;
  height: 16px;
}
.social-favicon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
}
.social-pill-twitter .social-chip,
.social-pill-github .social-chip,
.social-pill-website .social-chip,
.social-pill-thawtr .social-chip,
.social-pill-other .social-chip {
  color: #0b0c0e;
}
.social-pill-instagram .social-chip {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.link-order {
  margin-top: 16px;
}
.link-order-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #929ca4;
}
.link-order ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.link-order li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 8px;
  border: 1px solid #30383c;
  border-radius: 12px;
  background: #101516;
}
.link-order li > span:nth-child(2) {
  flex: 1;
  font-weight: 600;
}
.link-order .social-chip {
  width: 26px;
  height: 26px;
}
.link-order .social-chip svg {
  width: 13px;
  height: 13px;
}
.link-order button {
  width: 36px;
  height: 36px;
  border: 1px solid #30383c;
  border-radius: 8px;
  background: transparent;
  color: #ecefed;
  cursor: pointer;
}
.link-order button:disabled {
  opacity: 0.3;
  cursor: default;
}
.social-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .social-pill {
    min-height: 38px;
    padding-right: 13px;
    gap: 7px;
    font-size: 13px;
  }
  .social-chip {
    width: 28px;
    height: 28px;
  }
}
.page-links .page-view p,
.page-empty {
  margin: 0;
  color: #8b959d;
}
.page-work-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid #30383c;
  border-radius: 14px;
  background: #101516;
}
.page-work-card img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
}
.page-work-body {
  flex: 1;
  min-width: 0;
}
/* The first card leads the page, as on the public profile. */
.page-work-card.is-lead {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.page-work-card.is-lead img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.page-work-card.is-lead .page-work-body {
  padding: 18px;
}
.page-work-card.is-lead a {
  font-size: 20px;
}
.page-visitors {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #a4adb3;
}
.page-work-card a {
  font-weight: 600;
  color: #ecefed;
  text-decoration: none;
}
.page-work-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #a4adb3;
  margin: 7px 0 0;
}
.page-work-controls {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.page-work-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #929ca4;
  cursor: pointer;
  font-size: 22px;
}
.page-work-controls .work-drag {
  cursor: grab;
  touch-action: none;
}
.page-work-controls button:hover {
  color: #ecefed;
  background: #1b2124;
}
.page-work-controls .work-remove:hover {
  color: #ff8a80;
}
.work-keyboard-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.work-drag:focus-visible + .work-keyboard-hint {
  bottom: calc(100% + 8px);
  right: 0;
  width: 220px;
  height: auto;
  clip-path: none;
  padding: 8px 10px;
  border: 1px solid #495158;
  border-radius: 8px;
  background: #192023;
  color: #ecefed;
  font-size: 12px;
  z-index: 2;
}
.page-work-card.drag-before {
  box-shadow: 0 -3px #ffda00;
}
.page-work-card.drag-after {
  box-shadow: 0 3px #ffda00;
}
.page-work-card.dragging {
  opacity: 0.45;
}
.page-add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 72px;
  border: 1px dashed #4a5258;
  border-radius: 14px;
  background: transparent;
  color: #dfca72;
  font-weight: 600;
  cursor: pointer;
}
.page-add-card span {
  font-size: 22px;
}
.page-add-card:hover,
.page-add-card:focus-visible {
  border-color: #c9b458;
  background: #c9b4580d;
}
.page-undo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 14px;
  color: #c3cacf;
}
.page-undo[hidden] {
  display: none;
}
.page-undo button {
  border: 0;
  background: none;
  color: #dfca72;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
}
.page-idea-picker {
  width: min(560px, 94vw);
  max-height: 85dvh;
  overflow: auto;
  padding: 20px;
  border: 1px solid #384148;
  border-radius: 16px;
  background: #101516;
  color: #eee;
}
.page-idea-picker::backdrop {
  background: #000b;
}
.page-idea-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.page-idea-picker header button {
  border: 1px solid #495158;
  background: #192023;
  color: #eee;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
}
.page-idea-picker h2 {
  margin: 0;
}
.page-idea-picker p {
  color: #a4adb3;
  font-size: 14px;
  line-height: 1.5;
}
.page-idea-picker input {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #080b0b;
  border: 1px solid #384148;
  color: #eee;
}
.page-idea-option {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid #30383c;
  background: none;
  color: #eee;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.page-idea-option:hover,
.page-idea-option:focus-visible {
  background: #182023;
}
.page-idea-option img,
.page-idea-placeholder {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}
.page-idea-placeholder {
  display: grid;
  place-items: center;
  background: #202629;
  color: #c9b458;
}
.page-idea-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.page-idea-option strong {
  font-size: 15px;
}
.page-idea-option small {
  display: block;
  color: #9aa5ac;
  font-size: 12px;
  margin-top: 4px;
}
.page-idea-plus {
  flex: none;
  color: #dfca72;
  font-size: 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 700px) {
  .page-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
  .page-canvas .page-name {
    font-size: 30px;
  }
  .page-work-card {
    padding: 12px;
    gap: 10px;
  }
  .page-work-card:not(.is-lead) img {
    width: 60px;
    height: 60px;
  }
  .page-work-card p {
    font-size: 13px;
  }
}
/* Web checkout on /membership (server/lib/webCheckout.ts) */
.checkout-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.checkout-plans .plan {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #30372c;
  background: #151a13;
  color: #f4f1e8;
  cursor: pointer;
  font: inherit;
}
.checkout-plans .plan.selected {
  border-color: #ffe000;
  box-shadow: 0 0 0 1px #ffe000;
}
.plan-name { font-weight: 700; }
.plan-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe000;
  color: #111;
  font-size: 12px;
}
.plan-price { font-size: 22px; font-weight: 700; }
.plan-price small, .plan-note { font-size: 13px; color: #a6afa7; font-weight: 400; }
.checkout-start { width: 100%; max-width: 420px; }
.checkout-summary { margin-top: 10px; }
.checkout-message.err { color: #ff8a7a; }
.checkout-message.ok { color: #9be79b; }
.checkout-member { color: #f4f1e8 !important; font-size: 18px !important; }
.membership-next a:not(.ibd-primary) { color: #ffe000; }
/* In-card sign-in steps on /membership (checkout.entry.mjs) */
.checkout-auth {
  max-width: 520px;
  padding: 18px;
  border: 1px solid #3a3620;
  border-radius: 16px;
  background: #15150e;
}
.checkout-step label {
  display: block;
  margin-bottom: 10px;
  color: #f4f1e8;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.checkout-row {
  display: flex;
  gap: 10px;
}
.checkout-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #3b4237;
  border-radius: 12px;
  background: #0b0d0a;
  color: #f4f1e8;
  font: inherit;
  font-size: 16px;
}
.checkout-row input:focus {
  outline: 2px solid #ffe000;
  outline-offset: 1px;
  border-color: transparent;
}
#auth-code {
  letter-spacing: 6px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 20px;
}
.checkout-row .ibd-primary {
  flex: none;
  min-height: 48px;
}
.checkout-hint {
  margin: 10px 0 0;
  font-size: 13px !important;
  color: #a6afa7;
}
.checkout-link {
  padding: 0;
  border: 0;
  background: none;
  color: #ffe000;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.checkout-fine {
  font-size: 13px !important;
}
.checkout-fine a,
.checkout-hint a {
  color: #ffe000;
}
@media (max-width: 480px) {
  .checkout-row {
    flex-direction: column;
  }
}
/* Community preview for signed-out visitors: the most-loved ideas as a
   gallery (server/lib/communityPreview.ts). */
.preview-empty { color: #a6afa7; }
.pop-hero { max-width: 760px; margin: 8px 0 30px; }
.pop-hero .pop-eyebrow { margin: 0 0 10px; color: #ffe000; font-size: 12px; font-weight: 800; letter-spacing: 1.8px; }
.pop-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.03em; }
.pop-hero > p { margin: 0 0 20px; color: #a6afa7; font-size: 18px; line-height: 1.55; }
.pop-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.pop-hero-actions a:not(.ibd-primary) { color: #ffe000; }

.pop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.pop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #25282a;
  border-radius: 18px;
  background: #111311;
  color: #eee;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pop-card:hover { transform: translateY(-3px); border-color: #5a5530; box-shadow: 0 16px 34px rgb(0 0 0 / 45%); }
.pop-card:focus-visible { outline: 3px solid #ffe000; outline-offset: 3px; }
.pop-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1c19; }
.pop-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
/* Covers keep the dark ground most were designed on (white-on-transparent logos). */
.pop-art img.pop-fit { object-fit: contain; padding: 6%; }
.pop-card:hover .pop-art img { transform: scale(1.05); }
.pop-art-poster { display: grid; place-items: center; }
.pop-art-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgb(255 255 255 / 14%) 1.2px, transparent 1.4px) 0 0 / 14px 14px; mix-blend-mode: overlay; }
.pop-initial { font: 800 clamp(64px, 7vw, 110px)/1 Georgia, "Times New Roman", serif; color: rgb(255 255 255 / 88%); text-shadow: 0 6px 24px rgb(0 0 0 / 25%); transform: rotate(-6deg); }
.pop-hue-0 { background: linear-gradient(135deg, #e0533a, #8e2a1d); }
.pop-hue-1 { background: linear-gradient(135deg, #f5c518, #c77d0a); }
.pop-hue-2 { background: linear-gradient(135deg, #3b6fd8, #1d3a7e); }
.pop-hue-3 { background: linear-gradient(135deg, #3aa77a, #1c5c41); }
.pop-hue-4 { background: linear-gradient(135deg, #8b5cf6, #4c2a9e); }
.pop-hue-5 { background: linear-gradient(135deg, #ef6aa3, #9c2b5d); }
.pop-hue-1 .pop-initial { color: rgb(24 20 6 / 82%); text-shadow: none; }
.pop-rank {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: #ffe000; color: #151709;
  font-size: 13px; font-weight: 900; letter-spacing: .02em;
  box-shadow: 0 4px 12px rgb(0 0 0 / 35%);
}
.pop-hearts {
  position: absolute; right: 12px; bottom: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: rgb(10 11 10 / 78%); color: #fff;
  font-size: 13px; font-weight: 800;
  backdrop-filter: blur(6px);
}
.pop-hearts span { color: #ff5d73; }
.pop-body { display: grid; align-content: start; gap: 7px; padding: 16px 18px 18px; }
.pop-kind { color: #ffe000; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.pop-body strong { font-size: 18px; line-height: 1.25; }
.pop-body p { margin: 0; color: #a6afa7; font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pop-by { color: #7f8780; font-size: 13px; }

/* #1: a big feature card, two columns and two rows. */
.pop-feature { grid-column: span 2; grid-row: span 2; }
.pop-feature .pop-art { aspect-ratio: auto; flex: 1; min-height: 280px; }
.pop-feature .pop-rank { font-size: 16px; padding: 6px 14px; }
.pop-feature .pop-body { padding: 20px 22px 24px; }
.pop-feature .pop-body strong { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; }
.pop-feature .pop-body p { font-size: 15px; -webkit-line-clamp: 4; }

/* The last tile: the way in. */
.pop-join { justify-content: center; gap: 10px; padding: 26px; background: radial-gradient(circle at 20% 0%, #3a3413, #15150e 70%); border-color: #5a5530; }
.pop-join-mark { color: #ffe000; font-size: 30px; }
.pop-join strong { font-size: 22px; line-height: 1.2; }
.pop-join p { margin: 0; color: #c9c6b8; font-size: 14px; line-height: 1.55; }
.pop-join-cta { margin-top: 6px; color: #ffe000; font-weight: 800; }

@media (max-width: 1000px) { .pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pop-feature { grid-row: auto; }
  .pop-feature .pop-art { aspect-ratio: 16 / 10; min-height: 0; }
  .pop-body { padding: 12px 13px 14px; }
  .pop-body strong { font-size: 15px; }
  .pop-body p { display: none; }
  .pop-feature .pop-body p { display: -webkit-box; }
  .pop-join { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { .pop-card, .pop-art img { transition: none; } .pop-card:hover { transform: none; } .pop-card:hover .pop-art img { transform: none; } }
/* Settings (/account): settingsPageContent + settings.js. A sticky section
   list beside one column of sections; a chip row on phones. */
.ibd-page:has(.set) {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 215, 0, 0.1), transparent 34rem),
    #08090b;
}
.set {
  --set-mono: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  --set-card: linear-gradient(145deg, #121417 0%, #0d0f12 100%);
  --set-line: #292d33;
  --set-muted: #9299a3;
  --set-faint: #7e8794;
  --set-blue: #60a5fa;
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 56px;
  justify-content: center;
}
.set-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.set-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 0;
}
.set-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.set-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #aeb4ba;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.set-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f1ec;
}
.set-nav a[aria-current] {
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
}
.set-body {
  min-width: 0;
}
.set-section {
  scroll-margin-top: 24px;
  margin-top: 48px;
}
.set-section h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -0.2px;
}
.set-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.set-lede {
  margin: -6px 0 16px;
  color: var(--set-muted);
  font: 13px/1.6 var(--set-mono);
}
.set-lede strong {
  color: #e6e6e0;
  font-weight: 600;
}
.set-muted {
  color: var(--set-muted);
  font-size: 14px;
  margin: 0;
}
.set-note {
  margin: 12px 2px 0;
  color: var(--set-faint);
  font: 12px/1.6 var(--set-mono);
}
.set-note a {
  color: #ffd700;
}
.set-saved,
.set-status {
  font: 12px var(--set-mono);
  color: #9be79b;
  min-height: 1em;
}
.set-saved.is-error,
.set-status.is-error {
  color: #ff9292;
}
.set-status {
  margin: 8px 0 0;
}
.set-status:empty {
  display: none;
}
.set-status a {
  color: #ffd700;
  font-weight: 600;
}

/* Who you are */
.set-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--set-line);
  border-radius: 20px;
  background: var(--set-card);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.set-avatar-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.ibd-page .set-avatar {
  position: relative;
  width: 104px;
  height: 104px;
  padding: 0;
  border: 3px solid color-mix(in srgb, #ffd700 65%, #292d33);
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.set-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.set-avatar > span:first-child {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 40px;
  font-weight: 700;
  color: #ffd700;
}
.set-avatar-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s;
}
.set-avatar:hover .set-avatar-overlay,
.set-avatar:focus-visible .set-avatar-overlay {
  opacity: 1;
}
.ibd-page .set-textbutton {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: #aeb4ba;
  font-size: 13px;
  cursor: pointer;
}
.ibd-page .set-textbutton:hover {
  color: #f1f1ec;
  text-decoration: underline;
}
.set-hero-copy {
  min-width: 0;
}
.set-hero h1 {
  margin: 0 0 6px;
  font: 600 11px var(--set-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffd700;
}
.ibd-page .set-name {
  margin: 0;
  color: #f6f6f0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.ibd-page .set-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 6px 0 0;
  color: #d4d6d0;
}
.set-meta:empty {
  display: none;
}
.set-meta a {
  color: #ffd700;
}
.ibd-page .set-meta span:first-child {
  color: #ffd700;
  font: 13px/1.9 var(--set-mono);
}
.set-meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: #6c7177;
}
.set-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.set-badge {
  padding: 2px 8px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.12);
  font: 700 10px var(--set-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #93c5fd;
}
.set-badge-member {
  border-color: rgba(255, 215, 0, 0.55);
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
}
.set-since {
  color: var(--set-faint);
  font: 11px var(--set-mono);
}

/* My page */
.set .set-mypage {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.11), transparent 45%),
    var(--set-card);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.set .ibd-mypage-eyebrow {
  font-family: var(--set-mono);
  font-size: 10px;
  letter-spacing: 1.8px;
}
.set-mypage strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  letter-spacing: -0.3px;
}
.set-mypage-promo:hover {
  border-color: rgba(255, 215, 0, 0.5);
}
.set-mypage-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.set-stat {
  display: grid;
  gap: 6px;
  min-width: 120px;
  padding: 12px 14px;
  border: 1px solid var(--set-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}
.set-stat strong {
  margin: 0;
  font-size: 25px;
  font-weight: 750;
  color: #fff;
  line-height: 1;
}
.set-stat span {
  font: 9px var(--set-mono);
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--set-faint);
}
.set-urlbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--set-line);
  border-radius: 12px;
  background: #08090b;
}
.set-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d4d6d0;
  font: 13px var(--set-mono);
}
.ibd-page .set-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--set-line);
  border-radius: 9px;
  background: #15181c;
  color: #e0e0e0;
  font: 12px var(--set-mono);
  cursor: pointer;
  white-space: nowrap;
}
.ibd-page .set-chip:hover {
  border-color: #5a6068;
}
.ibd-page .set-mypage-edit {
  justify-self: start;
}
.set-cta {
  color: #ffd700;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

/* Cards and rows */
.set-card {
  border: 1px solid var(--set-line);
  border-radius: 18px;
  background: var(--set-card);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
.set-card > * + * {
  border-top: 1px solid #1f2328;
}
.ibd-page .set-row,
.ibd-page .set-plan {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  color: #f1f1ec;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}
.set-row::-webkit-details-marker {
  display: none;
}
.ibd-page .set-row:hover,
.ibd-page .set-plan:hover {
  background: rgba(255, 255, 255, 0.025);
}
.set-row > .set-icon:last-child {
  color: #6c7177;
  flex: none;
  transition: transform 0.15s;
}
.set-credits[open] .set-row > .set-icon:last-child {
  transform: rotate(90deg);
}
.set-row-icon,
.set-plan-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: #93c5fd;
}
.set-row-icon-pink {
  background: rgba(255, 143, 177, 0.1);
  color: #ff8fb1;
}
.set-plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.set-plan-icon.is-member {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
}
.set-row-copy {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.set-row-copy strong {
  font-weight: 600;
}
.set-row-copy span {
  color: var(--set-muted);
  font-size: 14px;
}
.set-plan .set-row-copy strong {
  font-size: 17px;
}
.set-credits-body {
  padding: 4px 18px 18px 68px;
}
.set-credits-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.set-credits-body li {
  display: grid;
  gap: 1px;
}
.set-credits-body li span {
  color: #aeb4ba;
  font-size: 13px;
}

/* Switches */
.ibd-page .set-switch {
  appearance: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  flex: none;
  border-radius: 999px;
  background: #23272d;
  cursor: pointer;
  transition: background 0.18s;
}
.set-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e6e6e0;
  transition: transform 0.18s;
}
.set-switch:checked {
  background: #ffe000;
  box-shadow: 0 4px 14px rgba(255, 224, 0, 0.18);
}
.set-switch:checked::after {
  transform: translateX(18px);
  background: #12130b;
}
.set-switch:disabled {
  opacity: 0.35;
  cursor: default;
}
.set-switch:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}
.set-master {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}

/* Notifications grid */
.set-notif {
  width: 100%;
  border-collapse: collapse;
}
.set-notif th,
.set-notif td {
  padding: 12px 18px;
  text-align: left;
  font-weight: inherit;
}
.set-notif thead th {
  padding-top: 14px;
  padding-bottom: 6px;
  font: 600 10px var(--set-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--set-faint);
}
.set-notif thead th + th,
.set-notif td {
  width: 92px;
  text-align: center;
}
.set-notif tbody th strong {
  display: block;
  font-weight: 500;
}
.set-notif tbody th span {
  display: block;
  color: var(--set-faint);
  font-size: 13px;
}
.set-notif tbody tr + tr {
  border-top: 1px solid #1a1d22;
}
.set-notif .set-notif-group th {
  padding: 20px 18px 6px;
  font: 800 10px var(--set-mono);
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: var(--set-blue);
}
.set-notif.push-off tbody td:nth-child(2) {
  opacity: 0.5;
}
.set-dash {
  color: #4b5056;
}

/* Rhythm */
.set-rhythm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ibd-page .set-rhythm button {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--set-line);
  border-radius: 18px;
  background: var(--set-card);
  color: #f1f1ec;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ibd-page .set-rhythm button:hover:not(:disabled) {
  border-color: #4a4f55;
}
.ibd-page .set-rhythm button[aria-checked="true"] {
  border-color: rgba(255, 215, 0, 0.55);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.1), transparent 55%),
    var(--set-card);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.55);
}
.set-rhythm strong {
  font-size: 17px;
}
.set-rhythm [aria-checked="true"] strong::after {
  content: "  ✓";
  color: #ffd700;
}
.set-rhythm em {
  font: 800 10px var(--set-mono);
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: var(--set-blue);
}
.set-rhythm [aria-checked="true"] em {
  color: #ffd700;
}
.set-rhythm span {
  color: var(--set-muted);
  font-size: 14px;
}
.set-rhythm button:disabled {
  cursor: default;
}

/* Account */
.set-kv {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 18px;
}
.set-kv > span {
  color: var(--set-faint);
  font: 600 10px var(--set-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.set-kv > strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.set-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.set-providers li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--set-line);
  border-radius: 999px;
  background: #15181c;
  font: 12px var(--set-mono);
}
.set-providers .set-icon {
  color: #9be79b;
}
.set-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.set-kv-actions .set-actions {
  margin-top: 4px;
}
.set-subhead {
  margin: 32px 0 12px;
  font: 800 10px var(--set-mono);
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: var(--set-blue);
}
.set-danger {
  margin-top: 32px;
  border: 1px solid #4a2326;
  border-radius: 18px;
  background: linear-gradient(145deg, #150c0e 0%, #0f0a0b 100%);
}
.set-danger summary {
  padding: 16px 18px;
  color: #ff9292;
  font-weight: 600;
  cursor: pointer;
}
.set-danger > div {
  padding: 0 18px 18px;
}
.set-danger p {
  margin: 0 0 14px;
  color: #c9b3b4;
  font-size: 14px;
}
.set-danger label {
  font-size: 14px;
  color: #c9b3b4;
}
.ibd-page .set-danger input {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid #4a2326;
  border-radius: 10px;
  background: #080909;
  color: #f1f1ec;
}
.ibd-page .set-delete {
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: #d9363e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.ibd-page .set-delete:disabled {
  background: #3a1f22;
  color: #8a6d70;
  cursor: default;
}

@media (max-width: 960px) {
  .set {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .set-nav {
    order: 2;
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 24px -18px 0;
    padding: 10px 18px;
    background: rgba(8, 9, 11, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1c1f22;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .set-nav ul {
    display: flex;
    gap: 6px;
  }
  .set-nav a {
    padding: 7px 12px;
    border: 1px solid #292c30;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
  }
  .set-nav .set-icon {
    display: none;
  }
  .set-body {
    display: contents;
  }
  .set-hero {
    order: 1;
    padding: 20px;
  }
  .set-section {
    order: 3;
    margin-top: 40px;
    scroll-margin-top: 72px;
  }
  #profile {
    margin-top: 0;
  }
  .set-nav {
    margin-bottom: 4px;
  }
}
@media (max-width: 600px) {
  .set-hero {
    gap: 18px;
  }
  .ibd-page .set-avatar {
    width: 76px;
    height: 76px;
  }
  .set-name {
    font-size: 26px;
  }
  .set-meta {
    flex-direction: column;
  }
  .set-meta span + span::before {
    content: none;
  }
  .set .set-mypage {
    padding: 18px;
  }
  .set-mypage strong {
    font-size: 20px;
  }
  .set-stat strong {
    font-size: 24px;
  }
  .set-stat {
    min-width: 0;
    padding: 10px 12px;
  }
  .set-urlbar .set-chip span {
    display: none;
  }
  .set-rhythm {
    grid-template-columns: 1fr;
  }
  .set-kv {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ibd-page .set-plan {
    flex-wrap: wrap;
  }
  .set-plan .set-cta {
    flex-basis: 100%;
    padding-left: 58px;
  }
  .set-notif th,
  .set-notif td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .set-notif thead th + th,
  .set-notif td {
    width: 64px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .set-credits-body {
    padding-left: 18px;
  }
}

/* Activity (/activity): activityPageContent + activity.js. The public page's
   palette (#08090b, yellow glow, gradient cards, #292d33 line, mono kickers,
   blue labels, yellow for actions) in one inbox column, grouped by day. */
.ibd-page:has(.act) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 215, 0, 0.1), transparent 34rem) no-repeat,
    #08090b;
}
.act {
  --act-mono: ui-monospace, "SF Mono", Menlo, "Fira Code", "Cascadia Code", Consolas, monospace;
  --act-card: linear-gradient(145deg, #121417 0%, #0d0f12 100%);
  --act-line: #292d33;
  --act-muted: #9299a3;
  --act-faint: #7e8794;
  max-width: 760px;
  margin: 0 auto;
}
.act-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.act-kicker {
  margin-bottom: 10px;
  color: #60a5fa;
  font: 700 11px/1 var(--act-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ibd-page .act h1 {
  margin: 0 0 8px;
}
.ibd-page .act-lede {
  margin: 0;
  color: var(--act-muted);
  font: 13px/1.6 var(--act-mono);
}
.act-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.act-actions [hidden] {
  display: none;
}
.act-unread {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  font: 700 12px/1 var(--act-mono);
  letter-spacing: 0.04em;
}
.ibd-page .act-readall {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 10px;
  background: transparent;
  color: #ffd700;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.act-readall:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.6);
}
.act-readall:disabled {
  opacity: 0.5;
}
.act-group {
  margin-top: 26px;
}
.ibd-page .act-group h2 {
  margin: 0 0 10px 4px;
  color: var(--act-faint);
  font: 700 11px/1 var(--act-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.act-group-items {
  overflow: hidden;
  border: 1px solid var(--act-line);
  border-radius: 18px;
  background: var(--act-card);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.act-item {
  --tone: #9299a3;
  --tone-bg: rgba(146, 153, 163, 0.12);
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  transition: background 0.15s;
}
.act-item + .act-item {
  border-top: 1px solid #1d2026;
}
.act-item:hover {
  background: rgba(255, 255, 255, 0.025);
}
.act-item:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: -2px;
}
.act-item[data-tone="gold"] { --tone: #ffd700; --tone-bg: rgba(255, 215, 0, 0.12); }
.act-item[data-tone="red"] { --tone: #ff5d73; --tone-bg: rgba(255, 93, 115, 0.13); }
.act-item[data-tone="blue"] { --tone: #60a5fa; --tone-bg: rgba(96, 165, 250, 0.13); }
.act-item[data-tone="green"] { --tone: #4ade80; --tone-bg: rgba(74, 222, 128, 0.12); }
.act-item[data-tone="violet"] { --tone: #a78bfa; --tone-bg: rgba(167, 139, 250, 0.14); }
.act-item[data-unread="true"] {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.055), transparent 60%);
}
.act-item[data-unread="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}
.act-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--tone-bg);
  color: var(--tone);
}
.act-mark svg {
  width: 21px;
  height: 21px;
}
.act-mark.has-photo {
  border-radius: 50%;
  background: #1a1d22;
}
.act-mark img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.act-mark.has-photo .act-glyph {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #0f1114;
  border-radius: 50%;
  background: var(--tone);
  color: #0a0a0a;
}
.act-mark.has-photo .act-glyph svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}
.act-text {
  min-width: 0;
}
.act-text strong {
  display: block;
  color: #f1f1ec;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}
.act-item[data-unread="false"] .act-text strong {
  color: #d5d9de;
  font-weight: 600;
}
.act-body {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--act-muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.act-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  align-self: start;
  padding-top: 3px;
}
.act-meta time {
  color: var(--act-faint);
  font: 12px/1 var(--act-mono);
  white-space: nowrap;
}
.act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
.act-item[data-unread="false"] .act-dot {
  visibility: hidden;
}
.ibd-page .act-status {
  margin: 0;
  color: var(--act-muted);
  font: 13px/1.6 var(--act-mono);
}
.ibd-page .act-status:empty {
  display: none;
}
.ibd-page .act-status.is-error {
  padding: 14px 16px;
  border: 1px solid rgba(255, 146, 146, 0.3);
  border-radius: 12px;
  background: rgba(255, 146, 146, 0.06);
  color: #ff9292;
}
.ibd-page .act-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 56px 24px;
  border: 1px solid var(--act-line);
  border-radius: 18px;
  background: var(--act-card);
  text-align: center;
  font-family: inherit;
}
.act-empty-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.04);
}
.act-empty-mark svg {
  width: 26px;
  height: 26px;
}
.act-empty strong {
  color: #f1f1ec;
  font-size: 17px;
}
.act-foot {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.act-foot [hidden] {
  display: none;
}
.ibd-page .act-more {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--act-line);
  border-radius: 10px;
  background: #121417;
  color: #d5d9de;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.act-more:hover {
  border-color: #3a4048;
  color: #fff;
}
@media (max-width: 560px) {
  .act-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .act-item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 14px 16px 16px;
  }
  .act-mark,
  .act-mark img {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .act-item,
  .act-readall {
    transition: none;
  }
}
