/* Poor Penny v2.1 — readability, layout and live-data components.
   Loaded after styles-v2.css. The v2 identity (cream, teal, copper, room, robot) is unchanged;
   this layer raises text sizes, reflows narrow layouts and styles server-backed states. */

[hidden]{display:none!important}
:root{--meta:12px;--body:15px;--copper-ink:#8f5531;--focus:#a85e33}
body{font-size:15px}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* ---------- Shared readable sizes (all widths) ---------- */
.diary-copy{font-size:15px;line-height:1.65}
.diary-meta,.diary-row time{font-size:var(--meta);letter-spacing:0}
.diary-row{grid-template-columns:48px 26px 1fr}
.live-diary{max-height:none;overflow:visible}
.diary-empty,.board-empty{font-size:15px;color:var(--muted);padding:16px 0;border-top:1px solid var(--rule);list-style:none}
.mode-tag{display:inline-block;margin-left:8px;padding:1px 6px;border-radius:4px;background:#f1dfcb;color:var(--copper-ink);font:700 11px var(--mono);letter-spacing:.3px}
.diary-row.is-test{opacity:.92}
.section-intro{font-size:15px}
.screen-description h4{font-size:16px;line-height:1.3}
.screen-description p{font-size:14px;line-height:1.55;min-height:0}
.screen-kicker{font:600 var(--meta) var(--mono)!important;color:#7d8a72!important;margin:0 0 4px!important;text-transform:uppercase;letter-spacing:.4px}
.screen-next{color:var(--teal)!important;font-weight:700}
.screen-feed{font-size:13px;max-height:none;overflow:visible;gap:8px}
.screen-log-time{font-size:var(--meta)}
.screen-bottom{font-size:var(--meta)}
.screen-bottom button{font-size:var(--meta);min-height:32px}
.scene-status{font-size:13px}
.room-controls button{font-size:14px;min-height:44px;padding:8px 12px}
.controls-label{font-size:var(--meta)}
.audience-row,.audience-row button{font-size:var(--meta)}
.audience-row>span{white-space:normal}
.bubble-name,.bubble-emotion{font-size:var(--meta)!important}
.chat-message{font-size:15px;line-height:1.55}
.chat-speaker{font-size:var(--meta)!important}
.chat-scope{font-size:var(--meta)}
.chat-pass,.chat-pass button,.chat-footnote{font-size:var(--meta)}
.chat-pass button{min-height:32px}
.quick-replies button{font-size:13px;min-height:36px;padding:6px 12px}
.chat-form input{font-size:16px}
.chat-form .button{font-size:14px;min-height:44px}
.notice{font-size:14px}
.dialog-intro{font-size:15px;line-height:1.6;color:#62705a}
.label{font-size:13px}
.input,.textarea,.select{font-size:16px}
.check-label{font-size:14px;color:#62705a}
.ledger-stats>div>span{font-size:13px}
.ledger-stats small{font-size:var(--meta)}
.ledger-notice{font-size:13px;line-height:1.6;display:flex;flex-direction:column;gap:4px}
.daily-ledger table{font-size:14px}
.daily-ledger summary,.daily-ledger summary>span:last-child{font-size:13px}
.ledger-empty{font-size:14px!important}
.hustle-card p,.service-card>p,.post-text{font-size:15px;line-height:1.6}
.hustle-footer,.service-card>small,.post-label,.board-note,.suggestion-form>small{font-size:var(--meta)}
.confession-card>p{font-size:15px}
.confession-buttons>span,.pass-tease>small{font-size:var(--meta)}
.pass-tease>button,.pass-tease>span{font-size:14px}
.community-copy>p:not(.eyebrow),.intro .premise{font-size:16px;line-height:1.6}
.suggestion-form>label{font-size:13px}
.suggestion-form textarea,.suggestion-bottom input{font-size:16px}
.eyebrow{font-size:var(--meta)!important}
.preview-inner,.preview-inner a,.preview-inner button{font-size:var(--meta)!important}
.site-footer>div,.site-footer>div button,.site-footer>small{font-size:13px}
.toast{font-size:14px}
.text-link{font-size:14px}
.flow-step{font-size:14px;align-items:flex-start;color:#5b6b52}
.flow-step:before{flex-shrink:0;font-size:12px}
.hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.service-price>[data-price]{font-size:inherit;color:inherit;margin:0}
.ledger-section .section-heading>.text-link{font-size:14px}
.daily-ledger th{font-size:var(--meta)}
.form-status{font-size:14px;color:#4f6b47;margin:0;grid-column:1/-1;min-height:1.2em}

/* ---------- Today card (replaces the per-visitor countdown) ---------- */
.today-card{width:280px}
.today-date{font-family:Georgia,serif;font-size:22px!important;color:var(--ink)!important;margin:6px 0 10px!important;letter-spacing:-.3px}
.today-facts{margin:0;display:grid;gap:8px}
.today-facts>div{display:grid;gap:1px}
.today-facts dt{font:600 var(--meta) var(--mono);color:#7d8a72;text-transform:uppercase;letter-spacing:.3px}
.today-facts dd{margin:0;font-size:15px;font-weight:700;overflow-wrap:anywhere}
.dt-note{text-transform:none;font-weight:400}
.today-basis{font-size:var(--meta)!important;color:var(--muted)!important;margin:8px 0 0!important;line-height:1.5}
.today-link{margin-top:8px!important;font-size:13px}
.season-top{font-size:var(--meta)}

/* ---------- Room states ---------- */
body:not(.feed-live) #feed-dot{background:#c9a27f;box-shadow:0 0 0 4px #c9a27f22}
.room-mode{font-size:11px!important;max-width:none!important}
.penny-room[data-activity=demo]::after{content:'REVIEWER DEMO · NOT REAL ACTIVITY';position:absolute;z-index:7;top:44px;right:14px;font:700 11px var(--mono);background:#f1dfcb;color:var(--copper-ink);padding:3px 7px;border-radius:4px}
.penny-rive-slot{position:absolute;inset:auto 0 0 0;height:100%;z-index:3;pointer-events:none}
.penny-rive-slot canvas{width:100%;height:100%;display:block}
.rive-active .penny-character{visibility:hidden}

/* ---------- Status list in “What’s real?” ---------- */
.status-list{margin:12px 0;display:grid;gap:10px}
.status-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 12px;border:1px solid #d9e0cc;border-radius:8px;background:#fbfcf4}
.status-list dt{font-weight:700;font-size:14px}
.status-list dd{margin:0}
.status-chip{font:700 var(--meta) var(--mono);color:var(--teal);text-align:right}
.status-detail{grid-column:1/-1;font-size:13px;color:var(--muted);line-height:1.5}
.diary-day h3{font-size:16px;margin:18px 0 4px}
.diary-archive .diary-list{list-style:none;padding:0;margin:0}
.price-options{border:0;padding:0}
.price-option{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;font-size:20px}
.price-option:has(input:checked){background:#e0eed8;border:2px solid #6a9469;color:#426b40}

/* ---------- Chat tabs ---------- */
.chat-tabs{display:flex;border-bottom:1px solid #d6dfc8;background:#f7f7ec}
.chat-tabs [role=tab]{flex:1;min-height:44px;font-size:14px;font-weight:700;color:#6c7c62;border-bottom:3px solid transparent}
.chat-tabs [role=tab][aria-selected=true]{color:var(--teal);border-bottom-color:var(--teal);background:#fffdf5}
.chat-panel{display:flex;flex-direction:column;flex:1;min-height:0}
.chat-panel[hidden]{display:none}
#panel-hire{overflow-y:auto;padding:4px 16px 16px}
.inquiry-form{grid-template-columns:1fr;margin-top:10px}
.inquiry-form .order-ref[hidden]{display:none}
.chat-message.is-system{align-self:center;background:#f5e9d6;border-color:#e4d3b3;font-size:14px}
.chat-messages>.button{align-self:center}

/* ---------- Supporters ---------- */
.supporters{margin-top:18px;padding:16px;border:1px dashed #d6c4a5;border-radius:10px;background:#fbf4e7}
.supporters h3{font-size:16px}
.supporters h3 small{font-size:var(--meta);font-weight:400;color:var(--muted)}
.supporters ul{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:6px;font-size:15px}

/* ---------- Launcher: compact, never parked over the room actions ---------- */
.chat-launcher{font-size:13px}
.chat-launcher small{font-size:var(--meta)}
body.chat-open .chat-launcher{display:none}
.chat-launcher{transition:opacity .2s,transform .2s}
body.room-in-view .chat-launcher{opacity:0;pointer-events:none;transform:translateY(10px)}

/* ---------- Narrow screens ---------- */
@media(max-width:850px){
  .today-card{width:230px}
  .screen-description p{font-size:14px}
  .diary-copy{font-size:15px}
  .diary-meta{font-size:var(--meta)}
}
@media(max-width:680px){
  body{font-size:16px;padding-bottom:76px}
  .intro>div>p.premise{display:block;font-size:15px;line-height:1.55;margin-top:10px;max-width:none}
  .intro{padding-block:12px 12px}
  .intro h1{font-size:30px}
  .today-card{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:4px 12px;width:100%;border-top:1px dashed #cfd5c3;padding:10px 0 0;margin-top:10px}
  .today-card .season-top{display:none}
  .today-date{grid-column:1;font-size:17px!important;margin:0!important}
  .today-link{grid-column:2;grid-row:1;margin:0!important;font-size:13px}
  .today-facts{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:6px 14px}
  /* Activity is shown directly under Penny in the room on phones. */
  .today-facts>div:first-child,.today-basis{display:none}
  .today-facts dt{font-size:12px}
  .today-card>.today-date{display:block!important}
  .today-card .countdown-row{grid-column:1/-1}
  .room-heading h2{font-size:13px}
  .room-mode{font-size:11px!important}
  .speech-bubble{top:40px}
  .penny-room{height:445px}
  .speech-bubble p{font-size:17px;line-height:1.3;min-height:0}
  .scene-status{font-size:13px;line-height:1.35;bottom:8px;padding:6px 9px}
  .room-controls{grid-template-columns:1fr 1fr;gap:8px}
  .room-controls button{font-size:14px;min-height:44px;white-space:normal}
  .audience-row{font-size:var(--meta)}
  /* Work panel: one readable column instead of a shrunken desktop layout. */
  .screen-panel{display:flex;flex-direction:column;gap:12px;padding:16px}
  .screen-panel-title{margin-bottom:0}
  .screen-description{order:1;margin:0}
  .screen-description h4{font-size:17px}
  .screen-description p{font-size:15px;margin:6px 0 0}
  .screen-feed{order:2;font-size:14px;margin:0}
  .screen-log-time{font-size:var(--meta)}
  .work-browser{order:3;max-width:320px;width:100%;align-self:center}
  .browser-chrome{height:22px}
  .browser-chrome span{font-size:11px}
  .cafe-preview{padding:12px}
  .cafe-top{font-size:11px}
  .cafe-top span{font-size:10px;padding-top:0}
  .cafe-preview p{font-size:24px;max-width:none}
  .cafe-cup{font-size:30px;top:58px}
  .cafe-button{font-size:11px;padding:5px 9px}
  .cafe-bottom{font-size:11px}
  .work-progress{font-size:11px;min-height:34px}
  .sample-chip{font-size:10px}
  .screen-bottom{order:4;font-size:var(--meta);margin-top:0}
  .screen-bottom button{font-size:var(--meta)}
  .moment-bar>div{grid-template-columns:repeat(2,1fr)}
  .moment-bar button,.moment-bar>span,.moment-bar>span small{font-size:13px}
  .section-intro{font-size:15px}
  .diary-row{grid-template-columns:44px 24px 1fr;gap:8px}
  .diary-copy{font-size:16px;line-height:1.6}
  .diary-meta,.diary-row time{font-size:var(--meta)}
  .diary-footer .text-link{font-size:14px}
  .ledger-stats>div>span{font-size:13px}
  .ledger-stats small{font-size:var(--meta)}
  .ledger-stats strong{font-size:24px}
  .ledger-notice{font-size:13px}
  .daily-ledger summary,.daily-ledger summary>span:last-child{font-size:13px}
  .daily-ledger table{font-size:13px;min-width:0}
  .daily-ledger th{font-size:11px}
  .hustle-card p,.service-card>p,.post-text,.community-copy>p:not(.eyebrow),.confession-card>p{font-size:15px}
  .hustle-stage{font-size:11px;max-width:none}
  .hustle-footer,.service-card>small,.post-label,.board-note,.suggestion-form>small,.board-heading>span{font-size:var(--meta)}
  .service-price>span{font-size:13px}
  .service-card>.button,.confession-buttons .button,.suggestion-bottom .button{font-size:15px;min-height:44px}
  .suggestion-bottom{flex-wrap:wrap}
  .suggestion-bottom input,.suggestion-bottom .button{width:100%;flex-basis:100%}
  .ad-badge{font-size:11px}
  .site-footer>p{font-size:14px}
  .site-footer>div,.site-footer>div button,.site-footer>small{font-size:13px}
  .site-footer>div button,.site-footer>div a{min-height:36px;display:inline-flex;align-items:center}
  .site-header nav{font-size:13px}
  .header-chat{font-size:13px;min-height:40px}
  .chat-launcher{padding:0;width:56px;height:56px;border-radius:50%;justify-content:center;right:12px;bottom:12px}
  .chat-launcher .launcher-text,.chat-launcher i{display:none}
  .chat-launcher>span:first-child{font-size:24px}
  .chat-header h2{font-size:17px}
  .chat-header p{font-size:13px}
  .chat-message{font-size:15px}
  .chat-scope,.chat-pass,.chat-pass button,.chat-footnote{font-size:var(--meta)}
  .chat-form input{font-size:16px}
  .chat-form .button{font-size:14px}
  .quick-replies button{font-size:13px}
  #dialog-body{font-size:15px}
  .dialog-intro,.notice{font-size:15px}
  .label{font-size:13px}
  .input,.textarea,.select{font-size:16px}
  .mini-facts dt{font-size:13px}
  .price-option{font-size:18px}
  .toast{font-size:14px;width:auto}
}
@media(max-width:370px){
  .site-header{flex-wrap:wrap;min-height:0;padding-block:10px 6px}
  .brand{font-size:21px}
  .header-chat{order:2;font-size:12px!important;min-height:36px!important;padding:6px 9px!important}
  .intro>div>.eyebrow{display:none}
  .intro h1{font-size:27px;margin-top:2px}
  .intro>div>p.premise{font-size:14px;line-height:1.5}
  .premise-more{display:none}
  .today-facts{grid-template-columns:1fr}
  .speech-bubble p{font-size:16px}
  .penny-room{height:440px}
  .speech-bubble{top:36px;padding:9px 12px}
  .room-controls button{font-size:13px;padding:6px 6px}
  .ledger-stats{grid-template-columns:1fr}
  .ledger-stats>div{border-left:0!important;border-top:1px solid #d5ddcc}
  .ledger-stats>div:first-child{border-top:0}
}
@media(prefers-reduced-motion:reduce){.chat-launcher{transition:none}}
