/* Composition: archived JUHI screenshots 001-035 and three 2025 Store images. */
:root { color-scheme:light; --primary:#009900; --secondary:#009900; --success:#009900; --error:#fc6e73; --bg:#f4f5fa; --card:#fff; --ink:#5d5d5d; --muted:#a2a2a2; --line:#d1d1d1; --shadow:0 2px 6px #0002; }
:root[data-reference="training"] { --primary:#9dcc49; --secondary:#9dcc49; --success:#9dcc49; }
[hidden] { display:none!important; }
.training-logo { width:58px; height:40px; background:url('assets/training-reference.png') -29px -63px / 406px auto no-repeat; }
html,body { margin:0; overflow:hidden; }
body,button,input,textarea,select { font-family:Lato,-apple-system,sans-serif; letter-spacing:0; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { color:inherit; }
button:disabled { opacity:.5; cursor:default; }
button:focus-visible,a:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.phone { max-width:760px; margin:auto; }
.screen { padding-bottom:calc(100px + env(safe-area-inset-bottom)); overscroll-behavior:contain; }
.screen.nochrome { padding-bottom:20px; }
.topbar { height:calc(62px + env(safe-area-inset-top)); padding:env(safe-area-inset-top) 12px 0; position:sticky; top:0; display:grid; grid-template-columns:56px 1fr 56px; gap:0; border:0; box-shadow:0 2px 4px #0001; z-index:5; }
.topbar h1 { text-align:center; color:#080808; font-size:20px; font-weight:700; line-height:1.15; }
.topbar .header-logo { width:76px; max-height:34px; object-fit:contain; }
.topbar .iconbtn { background:transparent; box-shadow:none; width:32px; height:40px; border-radius:0; color:#111; }
.header-tools { display:flex; justify-content:flex-end; gap:3px; color:var(--primary); }
.header-tools button { border:0; background:transparent; padding:2px; }
.header-tools .ion { font-size:22px; }
.pad { padding:24px 20px; }
.tabbar { height:calc(66px + env(safe-area-inset-bottom)); padding:9px 0 env(safe-area-inset-bottom); border-top:1px solid #eaeaea; box-shadow:none; align-items:flex-start; }
.tab { color:#5d5d5d; padding:4px 0; }
.tab .ion { font-size:26px; }
.tab.active { color:var(--primary); }
.homeTabOuter { width:68px; height:68px; margin-top:-35px; overflow:visible; justify-content:center; }
.homeTabInner { width:55px; height:55px; margin:0; box-shadow:0 1px 5px #0002; border:1px solid #eee; color:#666; }
.homeTabInner.active { color:white; border-color:var(--primary); }
.homeTabInner .ion { font-size:30px; }
.btn { border-radius:10px; padding:7px 12px; min-height:36px; line-height:1.15; font-weight:700; font-size:16px; background:var(--primary); }
.btn.secondary { background:transparent; border:1px solid #777; color:var(--ink); }
.btn.outline { background:transparent; border:1px solid var(--primary); color:var(--primary); }
.btn.reject { background:#fc6e73; }
.btn.danger-solid { background:red; }
.button-row { display:flex; gap:14px; margin-top:18px; }
.button-row > .btn { flex:1; margin:0; min-width:0; }
.plain { border:none; background:transparent; font:inherit; cursor:pointer; padding:4px; }
.green { color:var(--primary); }
.home-pad { width:82%; margin:0 auto; padding:22px 0; }
.greeting { font-size:25px; margin:0 0 12px; font-weight:700; }
.ranking-card { background:var(--primary); border-radius:20px; color:#fff; padding:20px 14px 12px; box-shadow:0 3px 8px #0003; display:grid; grid-template-columns:80px 1fr; gap:12px; margin-bottom:20px; }
.ranking-avatar { display:block; width:60px; height:60px; background:url('assets/training-home-reference.png') -90px -251px / 469px auto no-repeat; border-radius:50%; margin:10px auto; }
.ranking-left { text-align:center; font-size:15px; line-height:1.2; }
.ranking-main { text-align:center; font-size:13px; font-weight:400; }
.ranking-main hr { border:0; border-top:1px solid #ffffff80; margin:15px 0 8px; }
.level-link { background:#fff; color:#999; width:100%; border:0; border-radius:5px; text-decoration:underline; font-size:12px; }
.ranking-locked { display:flex; justify-content:space-between; padding:10px 0; color:#777; }
.ranking-btn { margin-bottom:20px; }
.availability-label { text-align:center; font-size:14px; margin:22px 0; }
.availability { display:flex; justify-content:space-between; padding:15px; background:white; border-radius:10px; gap:20px; }
.availability button { flex:1; min-height:60px; border:3px solid transparent; border-radius:10px; color:white; font:700 16px Lato; cursor:pointer; background:#d1dfb3; }
.availability button[data-value="LITTLE"] { background:#f9d89a; }
.availability button[data-value="NO"] { background:#e99a8e; }
.availability button.selected[data-value="YES"] { background:var(--primary); border-color:#427c25; }
.availability button.selected[data-value="LITTLE"] { background:#f5b331; border-color:#b87918; }
.availability button.selected[data-value="NO"] { background:red; border-color:#ad2626; }
.section-heading { font-size:18px; margin:30px 4px 20px; }
.invitation { background:white; border-radius:10px; box-shadow:var(--shadow); padding:24px 26px 18px; margin:18px 0; color:#181818; }
.data-row { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--line); padding:13px 0; font-size:16px; line-height:1.22; gap:6px; }
.data-row > b { color:var(--primary); font-weight:700; overflow-wrap:anywhere; }
.data-row > span { min-width:0; overflow-wrap:anywhere; }
.description { display:block; line-height:1.3; }
.description b { margin-right:5px; color:var(--primary); }
.invitation .more { display:block; text-align:center; text-decoration:underline; font-weight:700; margin:10px auto; font-size:15px; }
.invitation ul { padding-left:20px; line-height:1.7; font-size:14px; }
.replacement-label { display:block; background:orange; border-radius:14px; text-align:center; color:white; font-weight:700; font-size:14px; margin-bottom:6px; }
.next-heading { display:flex; align-items:center; justify-content:space-between; margin:40px 4px 30px; gap:10px; }
.next-heading h2 { font-size:18px; }
.countdown { color:var(--primary); text-align:center; white-space:nowrap; font-size:17px; }
.countdown small { display:block; font-size:12px; }
.empty { text-align:center; font-weight:700; font-size:20px; padding:22px 0; }
.next-card { background:white; padding:12px 20px; border-radius:10px; }
.next-card .data-row { border:none; }
.client-filter { padding:32px 16px 10px; position:sticky; top:calc(62px + env(safe-area-inset-top)); background:var(--bg); z-index:4; }
.picker-button { display:flex; align-items:center; justify-content:space-between; width:100%; background:var(--primary); color:#fff; border:0; border-radius:9px; min-height:41px; padding:9px 12px; font:400 16px Lato; cursor:pointer; }
.picker-button .ion { font-size:22px; }
.client-stack { padding:0 16px 24px; }
.reference-client { padding:20px; border-radius:12px; background:white; margin-bottom:15px; color:#191919; }
.reference-client .start-label { border:1px solid var(--primary); color:#333; background:transparent; border-radius:5px; padding:2px 6px; display:flex; gap:24px; align-items:center; font:14px Lato; margin-bottom:10px; }
.reference-client .start-label .ion { color:var(--primary); font-size:17px; }
.reference-client .data-row { padding:14px 0; }
.reference-client .description-row { border:none; }
.reference-client a,.next-card a { color:#999; text-decoration:underline; font-style:italic; }
.reference-client a .ion { font-size:20px; color:var(--primary); vertical-align:middle; }
.reference-client .btn { margin-top:16px; }
.calendar-pad { padding:26px 18px; }
.calendar-toolbar { display:flex; gap:8px; align-items:center; margin-bottom:24px; }
.calendar-toolbar .picker-button { text-align:center; }
.calendar-toolbar .picker-button span:first-child { flex:1; }
.add-visit { width:46px; height:46px; flex:0 0 46px; border:0; border-radius:50%; background:var(--primary); color:white; }
.month-nav { display:flex; justify-content:space-between; align-items:center; margin:4px 25px 20px; font-size:16px; }
.month-nav button { font-size:27px; padding:0; }
.weekdays,.month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; }
.weekdays { margin-bottom:8px; }
.day { height:46px; padding:0; border:0; background:transparent; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#666; font:14px Lato; position:relative; cursor:pointer; }
.day.outside { color:#d6d6d6; }
.day > span { border-radius:50%; width:32px; height:32px; display:grid; place-items:center; }
.day.selected > span { background:var(--primary); }
.day i { width:4px; height:4px; border-radius:50%; background:var(--primary); position:absolute; bottom:2px; }
.day .signed-dot { font-size:13px; width:15px; height:15px; bottom:-3px; background:var(--primary); color:#fff; }
.calendar-empty { margin-top:75px; text-align:center; font-size:18px; font-weight:700; }
.visit-list { margin:20px 10px 0; }
.visit-title { display:flex; gap:10px; justify-content:space-between; align-items:center; font:18px Lato; width:100%; padding:10px 0; border:0; background:none; text-align:left; }
.visit-title .client-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.visit-title .time { white-space:nowrap; }
.visit-actions { display:flex; gap:10px; margin:10px 0 20px; align-items:center; }
.visit-actions .btn { flex:1; }
.circle-action { width:36px; height:36px; border:1px solid var(--primary); color:var(--primary); background:transparent; border-radius:50%; flex:0 0 36px; }
.circle-action.delete { color:#e47983; border-color:#e47983; }
.circle-action .ion { font-size:23px; }
.visit-form { padding:24px 28px; }
.visit-form label { font-size:16px; font-weight:700; color:var(--primary); }
.underline-picker { border:0; border-bottom:1px solid #777; background:transparent; border-radius:0; padding:12px 0; font:16px Lato; display:flex; justify-content:space-between; width:100%; text-align:left; }
.date-pickers { display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; margin:20px 0 38px; }
.time-pickers { display:flex; justify-content:space-between; margin-bottom:36px; }
.time-pickers label { width:35%; }
.time-pickers input { border:1px solid var(--primary); border-radius:8px; background:transparent; text-align:center; padding:6px; font-size:18px; margin-top:4px; }
.time-pickers input::-webkit-calendar-picker-indicator { display:none; }
.visit-form .btn + .btn { margin-top:10px; }
.monthly-pad { padding:42px 16px; }
.month-pickers { display:grid; grid-template-columns:1fr 1fr; gap:36px; margin-bottom:20px; }
.month-pickers label { color:var(--primary); font-size:14px; font-weight:700; }
.month-pickers button { margin-top:20px; color:var(--ink); }
.monthly-client { border:1px solid #444; border-radius:10px; margin-bottom:20px; overflow:hidden; }
.monthly-client.complete { border-color:var(--primary); background:var(--primary); color:white; }
.monthly-client > button { display:block; width:100%; border:0; background:none; padding:20px 35px; text-align:left; font:700 19px Lato; }
.monthly-body { border-top:1px solid #777; padding:14px 20px 22px; margin:0 5px; font-size:14px; line-height:1.4; }
.monthly-visits { background:white; border-radius:14px; padding:20px; margin:18px 0; }
.monthly-visits h3 { font-size:18px; }
.monthly-visit { border:0; background:none; padding:16px 0; font:16px Lato; text-align:left; }
.sheet { border-radius:0; padding:0 10px 30px; max-height:70%; overflow:auto; }
.sheet.dialog { top:50%; bottom:auto; left:12%; right:12%; transform:translateY(-50%); border-radius:6px; padding:25px 20px 20px; max-height:85%; }
.dialog p { font-size:16px; line-height:1.6; white-space:pre-line; }
.dialog-close { position:absolute; right:6px; top:5px; padding:0; font-size:22px; line-height:1; }
.picker-header { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #ddd; height:64px; color:#111; font-size:18px; }
.picker-options { height:190px; overflow:auto; scroll-snap-type:y mandatory; padding:66px 8px; }
.picker-option { display:block; width:100%; height:42px; border:0; background:none; font:21px Lato; scroll-snap-align:center; color:#aaa; border-radius:8px; }
.picker-option.chosen { background:#e9e9eb; color:#333; }
.toast { top:calc(12px + env(safe-area-inset-top)); bottom:auto; background:#fff; color:#111; border-left:5px solid #8acd9b; box-shadow:0 3px 8px #0001; text-align:left; font-size:14px; border-radius:6px; }
.toast.error { border-color:#e47983; }
.faq-list { padding:24px 0; }
.faq-category { border-top:1px solid #ccc; }
.faq-category summary { list-style:none; cursor:pointer; }
.faq-category > summary { padding:16px 22px; font-weight:700; display:flex; justify-content:space-between; }
.faq-question { border-top:1px solid #e1e8de; }
.faq-question > summary { display:flex; justify-content:space-between; gap:12px; padding:16px 22px; font-size:14px; color:var(--primary); font-weight:700; }
.faq-question[open] { background:#edffdc; }
.faq-answer { padding:0 22px 14px; color:#999; font-size:14px; line-height:1.35; }
.faq-answer p { white-space:pre-line; margin:0 0 12px; }
.faq-answer a { color:#4e7a9b; overflow-wrap:anywhere; }
.faq-answer li { margin:10px 0 10px 16px; }
.signature-layout { padding:24px 28px; display:grid; grid-template-columns:170px 1fr; gap:16px; min-height:100dvh; align-content:center; }
.signature-meta { display:flex; flex-direction:column; justify-content:center; gap:16px; }
.signature-data { border-radius:12px; overflow:hidden; text-align:center; background:var(--primary); color:white; font-size:23px; }
.signature-data strong { display:block; padding:15px 8px; border:1px solid #555; border-radius:10px; background:var(--bg); color:#555; font-size:20px; }
.signature-data span { display:block; padding:24px 8px; }
.signature-main h1 { text-align:center; font-size:20px; margin-bottom:12px; }
.signature-frame { border:1px solid #333; border-radius:30px; padding:16px 30px; }
.signature-help { text-align:center; font-size:17px; height:32px; margin-bottom:10px; }
.signature-pad { position:relative; background:white; border-radius:16px; overflow:hidden; }
.signature-pad canvas { width:100%; height:180px; touch-action:none; display:block; }
.signature-copy { position:absolute; inset:24px 10px; font-size:15px; line-height:1.3; color:#aaa; pointer-events:none; }
.signature-footer { border-top:2px solid #111; padding-top:12px; margin-top:6px; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:15px; }
.repeat-signature { background:#f3c300; color:#fff; border:0; border-radius:4px; padding:8px 18px; font:16px Lato; }
.signature-layout .btn { border-radius:5px; min-width:115px; }
.signature-screen { padding:0!important; }
.ranking-podium { background:var(--primary); color:white; border-radius:0 0 55px 55px; padding:18px 24px 30px; box-shadow:0 8px 12px #0002; }
.rank-period { display:flex; align-items:center; justify-content:space-between; }
.rank-period button { color:inherit; }
.podium { display:flex; justify-content:space-around; align-items:center; margin-top:20px; text-align:center; font-size:13px; }
.podium img { display:block; width:64px; height:64px; padding:8px; background:#fff; border:3px solid #ecdb39; border-radius:50%; margin:18px auto 8px; }
.podium .first img { width:104px; height:104px; }
.rank-switch { display:flex; background:var(--primary); border-radius:20px; padding:5px; margin:20px auto; width:max-content; max-width:100%; }
.rank-switch button { border:0; border-radius:15px; background:none; color:#fff; padding:4px 20px; font:14px Lato; }
.rank-switch button.active { color:#555; background:#fff; }
.rank-row { display:flex; align-items:center; gap:14px; border:1px solid #ddd; border-radius:14px; padding:8px 14px; margin:8px 0; }
.rank-row img { width:40px; height:40px; border-radius:50%; }
.preferences-day { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #ddd; padding:12px 0; gap:10px; }
.preferences-day select { width:155px; padding:8px; }
.upload-control { border:1px solid var(--primary); background:white; padding:10px; border-radius:8px; color:var(--primary); font:16px Lato; cursor:pointer; }
.upload-control input { display:none; }
.video-box { aspect-ratio:16/9; width:100%; border:0; }
@media(max-width:500px) { .signature-layout { grid-template-columns:1fr; padding:20px; align-content:start; } .signature-meta { flex-direction:row; gap:10px; } .signature-data { flex:1; font-size:17px; } .signature-data strong { font-size:16px; padding:8px; } .signature-data span { padding:12px; } .signature-frame { padding:14px; border-radius:20px; } .signature-footer { flex-wrap:wrap; } }
@media(min-width:761px) { body { background:#e9eaee; } .phone:has(.signature-layout) { max-width:1100px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none!important; animation:none!important; } }
