/* Poor Penny V3 — UI core layer. Loaded after styles-v23.css. Same cream/teal/copper identity.
   Covers: visitor-local clock, lightweight hero links, life-engine diary story, the gentle day-pass card,
   Tiny Jobs (service, experiments, lifecycle, tracker), the plain-language "What's real?" dialog and
   the always-reachable chat launcher. The support/community sections style themselves
   (styles-v3-community.css). */

/* ---------- Hero: one dominant action, light secondary links ---------- */
.hero-ctas{display:flex;flex-wrap:wrap;gap:10px}
.hero-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin:10px 0 0;padding:0;font-size:15px}
.hero-link{display:inline-flex;align-items:center;gap:.28em;min-height:44px;font-weight:700;color:var(--teal-ink,#145c53);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.intro .hero-links .hero-link{font-size:15px}
.hero-link:hover{color:var(--teal)}
.hero-link[hidden]{display:none}

/* ---------- Today card: visitor-local date/time, business-day note ---------- */
.today-time{margin:2px 0 8px;font:700 22px/1.2 var(--mono);color:var(--ink);letter-spacing:.2px}
.today-time time:empty::before{content:'--:--';color:#9aa392}
.today-business{margin:8px 0 0;font-size:12px;line-height:1.45;color:#6d7766}

/* ---------- Diary: life-engine story, narrative vs verified ---------- */
.life-story{margin:4px 0 16px;padding:14px 16px;border:1px solid #d9dfcc;border-radius:12px;background:#fbfaf1}
.life-story[hidden]{display:none}
.life-label{display:inline-block;margin:0 0 8px;padding:3px 9px;border-radius:999px;background:#f1e6d3;color:#7a5a37;font:700 12px var(--mono);letter-spacing:.3px}
.life-stat-list{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0}
.life-stat-list>div{display:flex;gap:6px;align-items:baseline;font-size:15px}
.life-stat-list dt{font-weight:700;color:#55644f}
.life-stat-list dd{margin:0}
.life-paused{margin:8px 0 0;font-size:14px;color:#6d7766}
.life-activity{margin:10px 0 0;font-size:15px;line-height:1.5}
.life-activity-label{font-weight:700;color:#55644f}
.story-block{margin-top:12px}
.story-heading{margin:0 0 6px;font-size:15px}
.story-facts{margin:0;display:grid;gap:6px}
.story-facts>div{display:grid;grid-template-columns:minmax(120px,auto) 1fr;gap:8px;font-size:15px;line-height:1.5}
.story-facts dt{font-weight:700;color:#55644f}
.story-facts dd{margin:0}
.story-thought{margin:10px 0 0;padding:8px 12px;border-left:3px solid #e2c9a5;background:#fff8ec;border-radius:0 8px 8px 0}
.story-thought p{margin:0;font-size:15px;line-height:1.5;font-style:italic}
.story-thought small,.story-tag{display:inline-block;font:600 12px var(--mono);color:#8a6a45;letter-spacing:.2px}
.story-tag{margin-left:8px;padding:1px 6px;border-radius:6px;background:#f6ead6}
.story-next{margin:10px 0 0;font-size:15px;font-weight:700;color:var(--teal-ink,#145c53)}
.diary-row.is-narrative .diary-copy{font-style:italic}
.business-day-note{font-size:13px;font-weight:400;color:#6d7766}
.diary-day .story-block{margin:4px 0 10px;padding:10px 12px;border:1px solid #e4e4d6;border-radius:10px;background:#fbfaf1}

/* ---------- Day pass: one subtle card, only while on sale ---------- */
.pass-offer{margin-top:16px;padding:12px 14px;border:1px dashed #cdbb98;border-radius:10px;background:#fffaf0}
.pass-offer[hidden]{display:none}
.pass-offer-line{margin:0 0 6px;font-size:15px;line-height:1.5}
.pass-offer-facts{margin:0 0 4px;font:700 13px var(--mono);color:#7a5a37}
.pass-offer-link{min-height:44px;display:inline-flex;align-items:center;margin:0;font-size:15px}
.pass-offer-note{display:block;font-size:12px;color:#6d7766;line-height:1.4}
.chat-message.is-pass{background:#fffaf0;border:1px dashed #cdbb98}
.chat-message.is-pass .text-link{display:inline-flex;min-height:44px;align-items:center;margin:2px 0 0;font-size:15px}

/* ---------- Tiny Jobs ---------- */
.job-kicker{display:block;margin:0 0 4px;font:700 12px var(--mono);letter-spacing:.6px;text-transform:uppercase;color:#8a6a45}
.job-main h3{font-size:22px;line-height:1.25}
.job-extras{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:17px;margin-top:17px}
.experiments,.job-lifecycle,.earning-directions,.job-tracker{padding:16px 18px;border:1px solid #d8ddcc;border-radius:12px;background:var(--white)}
.experiments h3,.job-lifecycle h3,.earning-directions h3,.job-tracker h3{margin:0 0 10px;font-size:17px}
.experiments h3 small,.earning-directions h3 small{display:inline-block;margin-left:6px;font:600 12px var(--mono);color:#8a6a45;letter-spacing:.2px}
.experiment-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.experiment-list li{display:flex;gap:12px;align-items:center;justify-content:space-between}
.experiment-list strong{font-size:15px}
.experiment-list p{margin:2px 0 0;font-size:15px;line-height:1.5;color:#5f6b5d}
.experiment-list .button{flex:0 0 auto;min-height:44px;font-size:14px;padding:8px 14px}
.lifecycle-steps{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:6px;counter-reset:step}
.lifecycle-steps li{counter-increment:step;padding:5px 10px;border-radius:999px;background:#eef2e6;color:#3f4f3b;font-size:14px;font-weight:700}
.lifecycle-steps li::before{content:counter(step) '. ';font-weight:400;color:#7a8670}
.lifecycle-steps li.is-done{background:#dceee6;color:#1f5a4e}
.lifecycle-steps li.is-current{background:var(--teal);color:#fff}
.lifecycle-steps li.is-current::before{color:#d9f1ea}
.job-lifecycle p{margin:0;font-size:15px;line-height:1.55;color:#5f6b5d}
.earning-directions{margin-top:17px}
.earning-directions ul{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.earning-directions li{font-size:15px;line-height:1.5;color:#5f6b5d}
.earning-directions b{display:block;color:var(--ink)}
.job-tracker{margin-top:20px;border-color:#9cc7bb;background:#f4fbf7}
.job-tracker[hidden]{display:none}
.job-tracker p{font-size:15px;line-height:1.55;margin:0 0 10px}
.job-tracker .button{min-height:44px}
.job-hide{display:inline-flex;min-height:44px;align-items:center;margin:0 0 0 12px}
.request-done .track-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0 8px 8px 0}

/* ---------- What's real? ---------- */
.real-section{margin-top:14px}
.real-section h3{margin:0 0 6px;font-size:16px}
.real-does{margin:0;padding-left:20px;display:grid;gap:4px;font-size:15px;line-height:1.5}
.real-section .status-list>div{grid-template-columns:1fr}
.real-section .status-detail{font-size:14px;line-height:1.5;color:#55644f}
.real-down .status-list>div{border-color:#e3c9b3;background:#fff6ee}

/* ---------- Chat launcher: always reachable, moves off buttons instead of covering them ---------- */
.chat-launcher{z-index:30;bottom:calc(var(--launcher-bottom,20px) + env(safe-area-inset-bottom))}
.chat-launcher[hidden]{display:none}
.chat-launcher:focus-visible{outline:3px solid var(--focus,#a85e33);outline-offset:3px}

/* ---------- Chat language: Auto | English | Tiếng Việt (segmented radios, keyboard = arrow keys) ---------- */
.chat-header{flex-wrap:wrap;row-gap:10px}
.chat-header>div{flex:1 1 0;min-width:0}
.chat-header .icon-button{flex:0 0 auto}
.chat-lang{flex:1 0 100%;display:flex;min-width:0;margin:0;padding:3px;border:1px solid #5f7a69;border-radius:12px;background:#1d3128}
.chat-lang-option{position:relative;flex:1 1 0;min-width:0;display:flex}
.chat-lang-option input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.chat-lang-option span{flex:1;display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px 6px;border-radius:9px;font-size:14px;font-weight:700;line-height:1.15;text-align:center;color:#dbe5d3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-lang-option input:checked+span{background:#fff5df;color:#263e32}
.chat-lang-option input:hover:not(:checked)+span{background:#2c4638}
.chat-lang-option input:focus-visible+span{outline:3px solid #f0b47c;outline-offset:-3px}

@media(max-width:900px){
  .job-extras{grid-template-columns:1fr}
  .earning-directions ul{grid-template-columns:1fr}
}
@media(max-width:680px){
  .intro>div>.hero-links{display:flex;gap:0 16px;font-size:15px;margin-top:4px}
  .hero-link[href="#diary"]{display:none}
  .today-card>.today-time{display:block;grid-column:2;grid-row:1;margin:0;font-size:15px;color:#55644f;text-align:right;white-space:nowrap}
  .today-card>.today-link{display:none}
  .today-card>.today-business{display:block;grid-column:1/-1;margin:2px 0 0}
  .today-business .note-long{display:none}
  .chat-launcher{bottom:calc(var(--launcher-bottom,88px) + env(safe-area-inset-bottom))}
  .site-footer{padding-bottom:96px}
  .today-card .today-basis{display:none}
  .intro>div>.hero-links{margin-top:2px}
  #motion-toggle{min-height:44px}
  .diary-footer .text-link,.ledger-section .section-heading .text-link{display:inline-flex;align-items:center;min-height:44px}
  .story-facts>div{grid-template-columns:1fr;gap:0}
  .experiment-list li{flex-direction:column;align-items:flex-start}
  .job-main h3{font-size:20px}
}
@media(max-width:370px){.hero-links .link-long{display:none}}
@media(max-width:370px){
  /* Smallest phones: keep Penny's face in the first screen with the secondary links added. */
  .intro{padding-block:6px 4px}
  .intro .premise{margin-bottom:0!important}
  .hero-ctas{margin-top:6px}
  .intro>div>.hero-links{margin-top:0}
  .today-card{margin-top:2px;padding-top:4px}
  /* The room title stays for screen readers (it labels the section); the verified status line stays visible. */
  .room-heading h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .room-heading .room-meta{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){.chat-launcher{animation:none;transition:none}}
