/* lobster-vietnamese-400-normal */
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:url('/fonts/lobster-vietnamese-400-normal.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* lobster-latin-400-normal */
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:url('/fonts/lobster-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
.head-info,.rail-coffee,.footer-coffee,.doc-coffee {display:inline-flex;align-items:center;justify-content:center;color:var(--accent-ink);}
.head-info {width:38px;height:38px;border-radius:50%;flex:none;}
.head-info .icon,.rail-coffee .icon {width:23px;height:23px;}
.head-info:hover,.head-info.on,.rail-coffee:hover,.rail-coffee.on {background:var(--wash);}
.rail-coffee {position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:12px;right:12px;height:46px;gap:7px;border-radius:13px;}
.rail-coffee span,.footer-coffee {display:none;}
.expanded .rail-coffee span {display:inline;}
.studio-doc {max-width:760px;margin:0 auto;overflow-wrap:break-word;}
.studio-doc>.back {margin-bottom:6px;}
.studio-doc h1 {font-size:clamp(1.8rem,4vw,2.45rem);line-height:1.14;margin:5px 0 18px;letter-spacing:-.035em;}
.studio-doc h2 {font-size:1.35rem;margin:24px 0 9px;line-height:1.18;}
.backup-box,.doc-sections,.coffee-card,.sister-products {background:var(--surface);border:1px solid var(--line);border-radius:16px;}
.backup-box {padding:clamp(15px,3vw,26px);}
.backup-box h2,.coffee-card h2 {margin-top:0;}
.studio-doc p {margin:8px 0;}
.backup-box ol {padding-left:1.35em;}
.backup-box li+li {margin-top:5px;}
.backup-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:16px 0;}
.backup-preview {padding:12px;margin:12px 0;background:var(--wash);border-radius:12px;}
.backup-preview button,.backup-actions button {min-height:42px;display:inline-flex;}
.backup-box .doc-hint {font-size:.9rem;color:var(--secondary);margin-top:14px;}
.backup-status {color:var(--ink);}
.doc-sections details+details,.sister-products a+a {border-top:1px solid var(--line);}
.doc-sections details {padding:0 16px;}
.doc-sections summary {cursor:pointer;padding:13px 0;font-weight:650;}
.doc-sections details[open] {padding-bottom:12px;}
.doc-sections a,.doc-coffee {color:var(--accent-ink);text-decoration:underline;text-underline-offset:2px;}
.doc-coffee {margin-top:20px;gap:8px;}
.coffee-card {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:clamp(16px,4vw,32px);background:color-mix(in srgb,var(--wash) 65%,var(--surface));}
.coffee-intro>img {object-fit:contain;}
.coffee-code {margin:0;text-align:center;background:white;border:1px solid #dacebb;border-radius:14px;padding:4px 4px 10px;color:#594932;}
.coffee-code img {display:block;width:clamp(150px,18vw,205px);height:auto;aspect-ratio:1;}
.coffee-code figcaption,.sister-products small {font-size:.9rem;line-height:1.4;}
.sister-products a {display:flex;gap:14px;align-items:center;padding:14px 18px;}
.sister-products img {width:46px;height:46px;object-fit:contain;flex:none;}
.sister-products span {flex:1;}
.sister-products b,.sister-products small {display:block;}
.sister-products small {color:var(--secondary);}
.sister-products a:hover b {text-decoration:underline;}
@media(max-width:700px){
 .rail-coffee {display:none;}
 .footer-coffee {display:inline-flex;margin-left:auto;min-width:32px;min-height:32px;}
 .head-info {width:34px;height:36px;}
 .head-acts {gap:4px;}
 #find {min-width:0;}
}
@media(max-width:490px){
 .coffee-card {grid-template-columns:1fr;}
 .coffee-code {justify-self:center;}
 .coffee-code img {width:195px;}
}
@media(max-width:375px){
 .bar .add {font-size:0;width:35px;height:35px;justify-content:center;}
 .bar .add .icon {width:18px;height:18px;}
}

.video-source {display:inline-block;margin-top:6px;text-decoration:underline;text-underline-offset:2px;}

.coffee-code {display:grid;justify-items:center;align-content:center;min-width:0;}
.coffee-code img {margin-inline:auto;}
.bank-info {margin:17px 0 0;border-top:1px solid var(--line);padding-top:10px;}
.bank-info>div {display:flex;align-items:center;flex-wrap:wrap;gap:2px 12px;padding:3px 0;}
.bank-info dt {color:var(--secondary);font-size:.85rem;min-width:80px;}
.bank-info dd {margin:0;display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-weight:650;}
.account-number {font-variant-numeric:tabular-nums;letter-spacing:.025em;user-select:all;}
.account-copy,.backup-actions button,.backup-preview button {display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.2;font:inherit;font-weight:650;cursor:pointer;border-radius:10px;}
.account-copy {min-height:40px;padding:5px 10px;background:var(--surface);border:1px solid var(--line);color:var(--accent-ink);}
.account-copy .icon,.backup-actions .icon {width:18px;height:18px;flex:none;}
.studio-doc .copy-status {margin:0;font-size:.88rem;}
.copy-status:not(:empty) {padding-top:8px;}
.backup-actions button,.backup-preview button {min-height:44px;padding:9px 16px;}
.backup-actions [data-file],.backup-preview [data-cancel] {background:var(--wash);color:var(--accent-ink);border:1px solid color-mix(in srgb,var(--accent-ink) 35%,var(--line));}
.backup-actions button:hover,.account-copy:hover {filter:brightness(.95);}
.head-personal {background:color-mix(in srgb,var(--accent-ink) 8%,var(--surface));}
.head-personal.on {box-shadow:inset 0 0 0 1px var(--accent-ink);}
.profile-tabs {display:flex;gap:6px;flex-wrap:wrap;margin:0 0 18px;}
.profile-tabs a,.period-switch button {display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:20px;min-height:40px;padding:5px 13px;color:var(--secondary);font-weight:650;}
.profile-tabs a[aria-current] {background:var(--ink);color:var(--surface);}
.profile-tabs .profile-admin {margin-inline-start:auto;color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px;}
.profile-tabs .profile-admin:hover {background:var(--wash);}
@media (max-width:420px) {
  .profile-tabs {column-gap:2px;}
  .profile-tabs a {padding-inline:6px;font-size:.875rem;}
}
.admin-entry {max-width:34rem;margin:10dvh auto;padding:24px;}
.profile-tabs .icon,.profile-streak .icon,.profile-metric .icon {width:17px;height:17px;flex:none;}
.profile-body {--leaf:#44683f;--soft-leaf:#a8c198;display:grid;gap:15px;}
.profile-hero,.profile-panel {border:1px solid var(--line);border-radius:20px;overflow:hidden;}
.profile-hero {display:flex;align-items:center;justify-content:space-between;position:relative;isolation:isolate;padding:20px clamp(15px,4vw,30px);background:color-mix(in srgb,#ddba68 25%,var(--surface));}
.profile-hero::after {content:"";position:absolute;z-index:-1;right:-28px;bottom:-155px;width:255px;height:255px;background:color-mix(in srgb,#b99d61 20%,transparent);border-radius:50%;}
.profile-hero img {width:clamp(80px,22vw,136px);height:110px;object-fit:contain;}
.profile-streak {display:inline-flex;align-items:center;gap:6px;border-radius:16px;padding:4px 9px;background:var(--surface);color:var(--accent-ink);font-size:.82rem;font-weight:650;}
.profile-hero h2 {margin:12px 0 2px;font-size:1.04rem;font-weight:600;}
.profile-today {font-variant-numeric:tabular-nums;font-size:clamp(2.3rem,5vw,3.1rem);font-weight:750;line-height:1.05;}
.profile-today small {font-size:1.04rem;font-weight:500;}
.profile-panel {padding:clamp(14px,3vw,24px);background:var(--surface);}
.profile-panel-head {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.profile-panel-head h2 {margin:0;}
.profile-panel-head>a {font-size:.9rem;color:var(--accent-ink);}
.period-switch {display:flex;padding:3px;background:var(--paper);border-radius:20px;border:1px solid var(--line);}
.period-switch button {min-height:32px;border:0;background:none;font:inherit;font-size:.85rem;padding:3px 10px;cursor:pointer;}
.period-switch button[aria-pressed=true] {background:var(--leaf);color:white;}
.studio-doc .chart-average {color:var(--secondary);margin:8px 0 14px;}
.chart-average strong {color:var(--leaf);}
.study-bars,.chart-labels {display:flex;gap:clamp(2px,1vw,8px);}
.study-bars {height:116px;align-items:stretch;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent,transparent calc(33.333% - 1px),var(--hairline) calc(33.333% - 1px),var(--hairline) 33.333%);}
.study-bars span,.chart-labels span {flex:1;min-width:0;text-align:center;}
.study-bars span {display:flex;align-items:flex-end;justify-content:center;}
.study-bars i {display:block;width:80%;max-width:64px;min-height:2px;background:var(--soft-leaf);border-radius:5px 5px 0 0;}
.study-bars span:last-child i {background:var(--leaf);}
.chart-labels {padding-top:4px;color:var(--secondary);font-size:.74rem;font-variant-numeric:tabular-nums;}
.chart-labels span {white-space:nowrap;}
.chart-labels span:last-child {direction:rtl;text-align:right;}
.daily-table {margin-top:8px;color:var(--secondary);font-size:.83rem;}
.daily-table summary {cursor:pointer;}
.daily-table dl {max-height:185px;overflow:auto;padding-right:12px;}
.daily-table dl div {display:flex;justify-content:space-between;}
.daily-table dd {margin:0;}
.profile-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px;}
.profile-metric {display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:12px;border-radius:12px;background:var(--paper);}
.profile-metric span {display:flex;align-items:center;gap:5px;font-size:.83rem;color:var(--secondary);}
.profile-metric .icon {color:var(--leaf);}
.profile-metric strong {font-size:clamp(1.05rem,2vw,1.35rem);line-height:1.15;font-variant-numeric:tabular-nums;}
.studio-doc .metric-note {color:var(--secondary);font-size:.84rem;margin:10px 0 0;}
[data-theme=dark] .profile-body {--leaf:#9fc399;--soft-leaf:#627c62;}
[data-theme=dark] .period-switch button[aria-pressed=true] {color:#142318;}
@media(max-width:640px) {
  .bar .add {font-size:0;width:34px;min-width:34px;height:36px;padding:0;justify-content:center;}
  .profile-hero img {max-width:28%;}
  .profile-metric {padding:9px 7px;}
  .profile-metric span {display:block;line-height:1.3;}
  .profile-metric .icon {display:block;margin-bottom:5px;}
  .chart-labels {font-size:.66rem;}
}

.coffee-card {display:block;}
.coffee-intro>img {float:right;margin-left:10px;}
.bank-slip {clear:both;display:grid;grid-template-columns:minmax(120px,190px) minmax(0,1fr);align-items:center;gap:clamp(12px,4vw,32px);padding:clamp(12px,3vw,22px);max-width:600px;margin:20px auto 0;background:color-mix(in srgb,var(--surface) 55%,var(--wash));border:1px solid color-mix(in srgb,var(--accent-ink) 27%,var(--line));border-radius:6px;}
.bank-slip .coffee-code {width:100%;max-width:190px;justify-self:center;border:0;padding:0;border-radius:0;background:transparent;color:var(--secondary);}
.bank-slip .coffee-code img {width:100%;height:auto;background:white;}
.bank-slip figcaption {font-size:.78rem;margin-top:4px;}
.bank-slip .bank-info {margin:0;padding:0;border:0;}
.bank-slip .bank-info>div {display:block;border-bottom:1px solid var(--line);padding:7px 0;}
.bank-slip .bank-info>div:last-child {border:0;}
.bank-slip dd {font-family:ui-monospace,monospace;line-height:1.4;font-size:.97rem;margin-top:3px;}
.bank-slip .account-copy {font-family:inherit;font-size:.83rem;min-height:35px;border-radius:5px;padding:5px 8px;}
.bank-slip .account-copy .icon {width:14px;}
.hero-streak {display:inline-flex;align-items:center;gap:7px;margin-top:10px;font-size:.88rem;color:var(--accent-ink);}
.hero-streak .icon {width:17px;height:17px;}
@media(max-width:480px) {
 .bank-slip {grid-template-columns:minmax(72px,.85fr) minmax(0,1.45fr);gap:10px;padding:10px;}
 .bank-slip dd {font-size:.87rem;}
 .bank-slip .account-copy {min-height:40px;}
 .coffee-intro>img {width:54px;height:54px;}
}
@media(max-width:355px){.bank-slip{grid-template-columns:1fr;}.bank-slip .coffee-code{width:150px;}.bank-slip .bank-info{width:100%;}}

.coffee-intro h2 {font-family:"Lobster",cursive;font-size:clamp(2.1rem,4vw,3.25rem);font-weight:400;line-height:1.24;letter-spacing:normal;text-wrap:balance;}
.studio-doc:has(.coffee-card) {max-width:1080px;}
.coffee-card .copy-status:empty {display:none;}
@media(min-width:1100px) {
 .coffee-card {display:grid;grid-template-columns:1fr 1fr;column-gap:clamp(18px,3vw,48px);}
 .coffee-intro>img {float:none;width:49px;height:49px;margin:0 0 5px;}
 .bank-slip {margin:0;grid-template-columns:minmax(90px,.85fr) minmax(0,1.3fr);padding:14px;gap:15px;}
 .copy-status {grid-column:2;}
}

#find[hidden] {display:none;}
.bar .head-acts {margin-inline-start:auto;}
@media(min-width:701px) {.bar .head-personal {display:none;}}
.weekly-quota {display:block;color:var(--secondary);font-size:.88rem;margin-top:5px;}
.weekly-replays {padding-left:1.4rem;line-height:1.8;}
.weekly-replays a {text-decoration:underline;text-underline-offset:3px;}
