.coach-coin{width:26px;height:26px;object-fit:contain;vertical-align:middle}.nav-icon svg{width:22px;height:22px;stroke:currentColor}.billing-cycle,.feedback-tabs{display:flex;gap:12px;border:0;padding:8px 0}.feedback-tabs button{border:1px solid #c9d5cc;border-radius:8px;padding:9px 16px;background:transparent;color:inherit}.feedback-tabs [aria-selected=true]{background:#deeadf}.tour-dialog{position:fixed;inset:auto 18px 18px auto;max-width:390px;padding:24px;border:1px solid #c9d5cc;border-radius:18px;background:#fbfaf6;color:#263c32;box-shadow:0 10px 40px #0003;z-index:100}.tour-actions{display:flex;gap:10px;align-items:center}.tour-highlight{outline:3px solid #4b8a69!important;outline-offset:5px}.effort-control{margin:15px 0}.effort-control select{padding:12px;width:100%;border-radius:9px;border:1px solid #c9d5cc;background:transparent;color:inherit}.bug-card{max-width:none;width:100%}.coach-coin+span{margin-left:6px}[hidden]{display:none!important}@media(max-width:560px){.tour-dialog{inset:auto 10px 10px 10px;max-width:none}.credit-balance{font-size:12px}.coach-coin{width:20px;height:20px}}

.account-menu-wrap{position:relative}.account-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:170px;padding:6px;background:#fff;border:1px solid #c9d5cc;border-radius:12px;box-shadow:0 8px 24px #0002}.account-menu button{display:block;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#263c32;text-align:left;cursor:pointer}.account-menu button:hover,.account-menu button:focus-visible{background:#deeadf}#account-menu-signout{color:#b34e40}

/* Journal is an app page; horizontal scrolling stays inside its table. */
#view-journal,#view-plans{min-width:0}
#view-journal .page-heading{gap:20px}
#journal-content,#journal-locked{min-width:0;padding:24px}
#journal-preview{min-width:0}
#journal-summary{color:var(--muted);margin:0 0 18px;overflow-wrap:anywhere}
.journal-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px;overscroll-behavior-x:contain}
.journal-table-wrap table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5}
.journal-table-wrap th,.journal-table-wrap td{padding:12px 14px;text-align:start;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere;min-width:100px;max-width:300px}
.journal-table-wrap th{background:var(--mint);color:var(--green-dark);font-size:12px;font-weight:700}
.journal-table-wrap tr:last-child td{border-bottom:0}
.journal-table-wrap td:last-child{min-width:180px}
.journal-plan-label{display:block;padding:2px 6px;border-radius:6px;background:var(--mint);color:var(--green-dark);font-size:10px;font-weight:700;line-height:1.4}
#view-bugs .bug-card{max-width:none;width:100%}
#upgrade-plan{flex:none;min-height:40px;padding:9px 13px;white-space:nowrap;border-radius:10px}
.topbar:has(#upgrade-plan) .topbar-right{min-width:0}
@media(max-width:760px){
 .topbar:has(#upgrade-plan){height:auto;min-height:62px;flex-wrap:wrap;padding-block:10px;row-gap:8px}
 .topbar:has(#upgrade-plan) .mobile-brand{flex:1;min-width:0}
 .topbar:has(#upgrade-plan) .topbar-right{display:flex;flex:1 1 100%;width:100%;justify-content:flex-end;gap:6px}
 .topbar:has(#upgrade-plan) .credit-balance{min-width:0;max-width:100%;flex:0 1 auto;padding-inline:6px}
 .topbar:has(#upgrade-plan) .credit-balance>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .topbar:has(#upgrade-plan) .credit-balance .coach-coin{flex:none}
 .topbar:has(#upgrade-plan) .account-menu-wrap{flex:0 1 auto;min-width:0}
 .topbar:has(#upgrade-plan) .account-link{max-width:62px;padding-inline:4px}
 #upgrade-plan{padding-inline:9px;font-size:12px}
 #view-journal .range-select{width:100%;flex-wrap:wrap}
 #journal-content,#journal-locked{padding:16px}
 .journal-table-wrap th,.journal-table-wrap td{padding:10px;font-size:12px}
}

body.plan-tour-open .content-wrap{padding-bottom:calc(var(--plan-tour-space,0px) + 24px)}
body.plan-tour-open .tour-highlight{scroll-margin-top:var(--plan-tour-header,90px)}

/* Destructive controls use filled red, readable text and explicit labels. */
body .button.danger, body .button.danger-outline, .sheet-photo .button.danger {
  background: #ac302b; color: #fff; border: 1px solid #ac302b;
}
body .button.danger:hover, body .button.danger-outline:hover { background: #892621; border-color: #892621; color: #fff; }
body .button.danger:focus-visible, body .button.danger-outline:focus-visible { outline: 3px solid #38bdf8; outline-offset: 3px; }
body .button.danger:disabled, body .button.danger-outline:disabled { opacity: .6; cursor: not-allowed; }
body .account-menu .button.danger { color: #fff; background: #ac302b; }
.chat-aside #chat-new { width: 100%; margin-bottom: 12px; }
.fs-btn svg { width: 18px; height: 18px; vertical-align: middle; margin-inline-end: 5px; }
#delete-account-dialog { max-width: min(460px, calc(100vw - 32px)); }
@media(max-width:760px) { .chat-aside { display: block; order: -1; } .chat-list { max-height: 180px; overflow-y: auto; } }

.coin-history-list{list-style:none;padding:0;margin:16px 0;max-height:50vh;overflow:auto}.coin-history-list li{display:grid;grid-template-columns:80px 1fr;gap:4px 12px;padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.coin-history-list time{grid-column:2;color:var(--muted);font-size:12px}.coin-gained{color:var(--green-dark)}.coin-spent{color:#a33b30}

.coin-history-list strong{direction:ltr;unicode-bidi:isolate}

.auth-brand-logo{display:inline-block;object-fit:contain;flex:none;vertical-align:middle}
.coin-wallet{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:0}
#daily-coin-reward{font-size:11px;line-height:1.35;color:var(--green-dark,#263c32);text-align:end;max-width:230px;overflow-wrap:anywhere}
@media(max-width:560px){#daily-coin-reward{font-size:10px;max-width:155px}}

.current-plan-label{display:block;text-align:center;font-weight:700;color:var(--green-dark);padding:10px}
.coin-history-list li{grid-template-columns:minmax(100px,auto) minmax(0,1fr)}
