[hidden] {
  display: none !important;
}

.inline-auth-link {
  color: var(--cyan);
  font-weight: 900;
}

.account-form {
  display: grid;
  gap: 15px;
}

.account-form > label:not(.check-row) {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.account-form input[type="email"],
.account-form input[type="password"] {
  margin-top: 0;
}

.account-secondary-button {
  width: 100%;
  padding: 14px 20px;
  background: rgba(16, 31, 73, 0.62);
}

.account-secondary-button[disabled],
.auth-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.stacked-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.account-main {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 64px;
}

.account-loading,
.account-signed-out {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 5vw, 48px);
}

.account-loading h1,
.account-signed-out h1,
.account-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.account-loading p,
.account-signed-out p {
  color: var(--muted);
}

.account-shell {
  display: grid;
  gap: 22px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
}

.account-hero-actions {
  display: grid;
  gap: 10px;
  min-width: 180px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.account-card {
  padding: clamp(24px, 4vw, 36px);
}

.account-card h2 {
  margin: 8px 0 16px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.account-card p {
  color: var(--muted);
}

.account-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-details div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(94, 230, 255, 0.16);
  border-radius: 14px;
  background: rgba(5, 10, 24, 0.34);
}

.account-details dt {
  color: var(--muted);
  font-weight: 800;
}

.account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.account-status-box {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(114, 255, 157, 0.35);
  border-radius: 16px;
  background: rgba(114, 255, 157, 0.08);
}

.account-status-box strong {
  color: var(--green);
}

.account-status-box span {
  color: var(--muted);
}

.account-feature-card {
  min-height: 230px;
}

.account-global-message {
  margin-top: 18px;
}

@media (max-width: 850px) {
  .account-hero,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .account-main {
    margin-top: 24px;
  }

  .account-loading,
  .account-signed-out {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .account-loading .verification-spinner {
    margin-bottom: 0;
  }

  .account-hero-actions {
    grid-template-columns: 1fr;
  }

  .account-details div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.account-card-actions {
  display: grid;
  margin-top: 18px;
}

.account-card-actions .btn {
  width: 100%;
  text-align: center;
}


.admin-tools-card {
  border-color: rgba(255, 202, 87, 0.35);
}

.admin-status-box {
  border-color: rgba(255, 202, 87, 0.38);
  background: rgba(255, 202, 87, 0.08);
}

.admin-status-box strong {
  color: #ffd36f;
}


.author-books-card {
  border-color: rgba(94, 230, 255, 0.34);
}

.books-status-box {
  border-color: rgba(94, 230, 255, 0.35);
  background: rgba(94, 230, 255, 0.08);
}

.books-status-box strong {
  color: var(--cyan);
}


.admin-card-actions {
  gap: 10px;
}


.author-stories-card {
  border-color: rgba(197, 111, 255, 0.34);
}

.stories-status-box {
  border-color: rgba(197, 111, 255, 0.36);
  background: rgba(197, 111, 255, 0.08);
}

.stories-status-box strong {
  color: #d8a2ff;
}


/* === Step 148A: Reader account profile foundation === */
.reader-profile-card form{
  display:grid;
  gap:14px;
}

.reader-profile-card form > label{
  display:grid;
  gap:7px;
  font-weight:800;
}

.reader-profile-card input[type="text"]{
  width:100%;
  min-height:48px;
}

.reader-profile-card .field-help{
  margin:-6px 0 0;
}

.reader-profile-status{
  margin-top:2px;
}

.reader-profile-message{
  margin-top:2px;
}

.reader-profile-card button[disabled]{
  cursor:wait;
  opacity:.72;
}


/* === Step 148B: Pixel Pins reader system === */
.reader-pixel-pins-card{
  grid-column:1 / -1;
}

.reader-pixel-pin-list{
  display:grid;
  gap:12px;
  margin-top:2px;
}

.reader-pixel-pin-list[hidden],
.reader-pixel-pin-empty[hidden]{
  display:none!important;
}

.reader-pixel-pin-empty{
  display:grid;
  gap:5px;
  padding:16px;
  border:1px dashed rgba(152,208,255,.32);
  border-radius:16px;
  background:rgba(9,24,52,.48);
  color:var(--muted);
}

.reader-pixel-pin-empty strong{
  color:var(--text);
}

.reader-pixel-pin-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:15px;
  border:1px solid rgba(80,203,255,.25);
  border-radius:16px;
  background:rgba(8,22,50,.72);
}

.reader-pixel-pin-copy{
  min-width:0;
}

.reader-pixel-pin-title{
  display:inline-block;
  color:#ffffff;
  font-size:17px;
  font-weight:900;
  line-height:1.25;
  text-decoration:none;
}

.reader-pixel-pin-title:hover,
.reader-pixel-pin-title:focus-visible{
  color:#7fe9ff;
  text-decoration:underline;
}

.reader-pixel-pin-byline,
.reader-pixel-pin-meta{
  margin:5px 0 0;
  color:var(--muted);
  line-height:1.45;
}

.reader-pixel-pin-meta{
  font-size:12px;
}

.reader-pixel-pin-item-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.reader-pixel-pin-message{
  margin-top:2px;
}

.reader-pixel-pin-actions{
  margin-top:2px;
}

@media (max-width:720px){
  .reader-pixel-pin-item{
    grid-template-columns:1fr;
  }

  .reader-pixel-pin-item-actions{
    justify-content:flex-start;
  }
}


/* === Step 148C: Follow cities, authors, and Story Trails === */
.reader-following-card{
  grid-column:1 / -1;
}

.reader-following-groups{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.reader-following-group{
  min-width:0;
  padding:15px;
  border:1px solid rgba(80,203,255,.23);
  border-radius:16px;
  background:rgba(8,22,50,.68);
}

.reader-following-group > header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}

.reader-following-group h3{
  margin:4px 0 0;
  font-size:17px;
}

.reader-following-group > header > strong{
  min-width:34px;
  padding:6px 9px;
  border:1px solid rgba(213,103,255,.35);
  border-radius:999px;
  background:rgba(55,17,82,.55);
  color:#f1c2ff;
  text-align:center;
}

.reader-following-kicker{
  color:#79e8ff;
  font-family:"Press Start 2P",monospace;
  font-size:8px;
  line-height:1.5;
}

.reader-following-empty{
  padding:12px;
  border:1px dashed rgba(152,208,255,.28);
  border-radius:12px;
  color:var(--muted);
  line-height:1.45;
}

.reader-following-empty[hidden],
.reader-following-list[hidden]{
  display:none!important;
}

.reader-following-list{
  display:grid;
  gap:10px;
}

.reader-following-item{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid rgba(152,208,255,.18);
  border-radius:13px;
  background:rgba(12,28,61,.72);
}

.reader-following-copy{
  min-width:0;
}

.reader-following-title{
  color:#fff;
  font-weight:900;
  line-height:1.3;
  text-decoration:none;
}

.reader-following-title:hover,
.reader-following-title:focus-visible{
  color:#79e8ff;
  text-decoration:underline;
}

.reader-following-meta{
  margin:6px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.reader-following-item-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.reader-following-message{
  margin-top:2px;
}

.reader-following-actions{
  margin-top:2px;
}

@media (max-width:980px){
  .reader-following-groups{
    grid-template-columns:1fr;
  }
}


/* === Step 149: Pixel Props and All the Props === */
.reader-pixel-props-card{
  grid-column:1 / -1;
}

.reader-pixel-props-empty{
  display:grid;
  gap:5px;
  padding:16px;
  border:1px dashed rgba(255,93,218,.3);
  border-radius:16px;
  background:rgba(45,12,61,.35);
  color:var(--muted);
}

.reader-pixel-props-empty strong{
  color:var(--text);
}

.reader-pixel-props-empty[hidden],
.reader-pixel-props-list[hidden]{
  display:none!important;
}

.reader-pixel-props-list{
  display:grid;
  gap:12px;
}

.reader-pixel-props-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:15px;
  border:1px solid rgba(255,93,218,.25);
  border-radius:16px;
  background:rgba(31,12,53,.68);
}

.reader-pixel-props-copy{
  min-width:0;
}

.reader-pixel-props-title{
  color:#fff;
  font-size:17px;
  font-weight:900;
  line-height:1.3;
  text-decoration:none;
}

.reader-pixel-props-title:hover,
.reader-pixel-props-title:focus-visible{
  color:#f0a4ff;
  text-decoration:underline;
}

.reader-pixel-props-byline,
.reader-pixel-props-meta{
  margin:5px 0 0;
  color:var(--muted);
  line-height:1.45;
}

.reader-pixel-props-meta{
  font-size:12px;
  font-weight:800;
}

.reader-pixel-props-item-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.reader-pixel-props-message{
  margin-top:2px;
}

@media (max-width:720px){
  .reader-pixel-props-item{
    grid-template-columns:1fr;
  }

  .reader-pixel-props-item-actions{
    justify-content:flex-start;
  }
}


/* === Step 150A: Pixel Pings account summary === */
.pixel-pings-account-card{
  grid-column:1 / -1;
}

.pixel-pings-account-empty{
  display:grid;
  gap:5px;
  padding:16px;
  border:1px dashed rgba(83,230,255,.28);
  border-radius:16px;
  background:rgba(13,38,66,.42);
  color:var(--muted);
}

.pixel-pings-account-empty strong{
  color:#fff;
}

.pixel-pings-account-empty[hidden],
.pixel-pings-account-list[hidden]{
  display:none!important;
}

.pixel-pings-account-list{
  display:grid;
  gap:9px;
}

.pixel-pings-account-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:13px;
  background:rgba(18,24,54,.68);
  color:#fff;
  text-decoration:none;
}

.pixel-pings-account-item.is-unread{
  border-color:rgba(83,230,255,.42);
  background:
    linear-gradient(
      135deg,
      rgba(18,57,84,.84),
      rgba(44,22,78,.78)
    );
}

.pixel-pings-account-item:hover,
.pixel-pings-account-item:focus-visible{
  border-color:rgba(83,230,255,.65);
}

.pixel-pings-account-label{
  color:#8ff0ff;
  font-family:"Press Start 2P",monospace;
  font-size:7px;
}

.pixel-pings-account-item-detail{
  color:var(--muted);
  font-size:12px;
}

.pixel-pings-account-message{
  margin-top:2px;
}

@media (max-width:720px){
  .pixel-pings-account-item{
    grid-template-columns:1fr;
  }
}

/* === Step 152C: My Account live reader-state refresh === */

.account-live-refresh-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

#account-reader-refresh[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

#account-reader-refresh.is-refreshing {
  border-color: rgba(94, 230, 255, 0.5);
  background: rgba(94, 230, 255, 0.1);
}

.pixel-stream-account-status strong {
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .account-live-refresh-note {
    grid-column: 1 / -1;
  }
}

/* === Step 152C correction: stable hero action width ===
 *
 * The action column previously used intrinsic width. When the refresh note
 * changed to a shorter sentence, the grid column narrowed and all three
 * buttons appeared to shrink. Give the desktop action column a stable width.
 */
.account-hero-actions {
  width: 260px;
  max-width: 100%;
}

@media (max-width: 850px) {
  .account-hero-actions {
    width: 100%;
  }
}

/* === Step 152C correction: stable hero action position ===
 *
 * The refresh note can occupy one or two text lines depending on its wording.
 * Because the hero vertically centers the action column, that tiny height
 * change can move the entire button stack. Reserve a consistent two-line note
 * area so the buttons remain stationary.
 */
.account-live-refresh-note {
  box-sizing: border-box;
  min-height: 35px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}


/* === Step 158N: high-visibility writer path for reader accounts === */
.account-writer-path-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(26px, 5vw, 46px);
  border-color: rgba(197, 111, 255, 0.52);
  background:
    radial-gradient(circle at 12% 18%, rgba(197, 111, 255, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(11, 24, 58, 0.96), rgba(27, 15, 55, 0.94));
  box-shadow:
    0 0 0 1px rgba(197, 111, 255, 0.09) inset,
    0 20px 48px rgba(0, 0, 0, 0.25),
    0 0 34px rgba(197, 111, 255, 0.1);
}

.account-writer-path-card[hidden] {
  display: none !important;
}

.account-writer-path-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.account-writer-path-card h2 {
  margin: 9px 0 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.account-writer-path-card p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
}

.account-writer-path-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(114, 255, 157, 0.42);
  border-radius: 999px;
  background: rgba(114, 255, 157, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-writer-path-actions {
  display: grid;
  gap: 11px;
}

.account-writer-path-actions .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 850px) {
  .account-writer-path-card {
    grid-template-columns: 1fr;
  }

  .account-writer-path-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .account-writer-path-heading {
    display: grid;
  }

  .account-writer-path-actions {
    grid-template-columns: 1fr;
  }
}

/* === Step 160A: grouped My Account dashboard === */
html {
  scroll-behavior: smooth;
}

.account-main {
  width: min(1280px, calc(100% - 32px));
}

.account-dashboard-nav {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.account-dashboard-nav-label {
  padding: 0 8px;
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.5;
}

.account-dashboard-nav a {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(94, 230, 255, 0.2);
  border-radius: 12px;
  background: rgba(5, 10, 24, 0.46);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.account-dashboard-nav a:hover,
.account-dashboard-nav a:focus-visible {
  border-color: var(--cyan);
  background: rgba(94, 230, 255, 0.09);
  color: var(--cyan);
}

.account-dashboard-nav a[hidden] {
  display: none !important;
}

.account-tool-section {
  display: grid;
  gap: 18px;
  scroll-margin-top: 24px;
}

.account-tool-section[hidden] {
  display: none !important;
}

.account-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
}

.account-section-heading > div {
  min-width: 0;
}

.account-section-heading h2 {
  margin: 9px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.account-section-heading p {
  max-width: 830px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.account-section-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(94, 230, 255, 0.34);
  border-radius: 999px;
  background: rgba(94, 230, 255, 0.075);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

#writer-tools-section .account-section-heading {
  border-color: rgba(197, 111, 255, 0.36);
  background:
    radial-gradient(circle at 90% 12%, rgba(197, 111, 255, 0.11), transparent 38%),
    rgba(5, 10, 24, 0.74);
}

#writer-tools-section .account-section-badge {
  border-color: rgba(197, 111, 255, 0.38);
  background: rgba(197, 111, 255, 0.09);
  color: #e0b4ff;
}

#account-settings-section .account-section-heading {
  border-color: rgba(114, 255, 157, 0.28);
}

#account-settings-section .account-section-badge {
  border-color: rgba(114, 255, 157, 0.34);
  background: rgba(114, 255, 157, 0.075);
  color: var(--green);
}

#administration-tools-section .account-section-heading {
  border-color: rgba(255, 202, 87, 0.34);
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 202, 87, 0.1), transparent 38%),
    rgba(5, 10, 24, 0.74);
}

#administration-tools-section .account-section-badge {
  border-color: rgba(255, 202, 87, 0.4);
  background: rgba(255, 202, 87, 0.085);
  color: #ffd36f;
}

.account-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-section-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-section-stack {
  display: grid;
  gap: 18px;
}

.account-reader-overview-grid > .account-card,
.account-writer-tools-grid > .account-card,
.account-settings-grid > .account-card,
.account-administration-grid > .account-card {
  grid-column: auto;
  height: 100%;
}

.account-reader-overview-grid .account-card {
  display: flex;
  flex-direction: column;
}

.account-reader-overview-grid .account-card-actions {
  margin-top: auto;
  padding-top: 18px;
}


.account-writer-tools-grid > .account-card[hidden] {
  display: none !important;
}

.account-administration-grid {
  grid-template-columns: minmax(0, 1fr);
}

.account-administration-grid .admin-tools-card {
  max-width: none;
}

@media (max-width: 1050px) {
  .account-dashboard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-dashboard-nav-label {
    grid-column: 1 / -1;
  }

  .account-section-grid-three {
    grid-template-columns: 1fr 1fr;
  }

  .account-reader-overview-grid > .account-card:last-child,
  .account-writer-tools-grid > .account-card:last-child:not([hidden]) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .account-section-heading {
    display: grid;
  }

  .account-section-badge {
    justify-self: start;
    white-space: normal;
  }

  .account-section-grid,
  .account-section-grid-three {
    grid-template-columns: 1fr;
  }

  .account-reader-overview-grid > .account-card:last-child,
  .account-writer-tools-grid > .account-card:last-child:not([hidden]) {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .account-dashboard-nav {
    grid-template-columns: 1fr;
  }

  .account-dashboard-nav-label {
    grid-column: auto;
  }
}


/* CITY PIXELS STEP 167C-1 — PIXEL PINGS ACCOUNT CARD LAYOUT */
.pixel-pings-account-item {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label detail"
    "title title";
  align-items: start;
}

.pixel-pings-account-label {
  grid-area: label;
  min-width: 0;
}

.pixel-pings-account-item > strong {
  grid-area: title;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.42;
}

.pixel-pings-account-item-detail {
  grid-area: detail;
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .pixel-pings-account-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "detail";
  }

  .pixel-pings-account-item-detail {
    justify-self: start;
  }
}

/* Step 167C-1: Contact is a normal navigation link unless this is the Contact page. */
.site-header nav .nav-contact:not([aria-current="page"]) {
  background: var(--cp-control-background, rgba(16, 31, 73, 0.7)) !important;
  color: var(--ink, #eefaff) !important;
  border-color: var(--line, rgba(94, 230, 255, 0.22)) !important;
  box-shadow: none !important;
}
