/* A working journal: soft colour, readable lessons, and explicit status stickers. */
body{background:light-dark(#f4f3ea,#171f21)}
:is(#tutor-rhythm,.auth-screen){font-size:15px;--r-ink:light-dark(#253c39,#edf4ef);--r-soft:light-dark(#60736d,#a7bcb4);--r-line:light-dark(#d6dfd6,#394b45);--r-gold:light-dark(#8b5510,#f6c46b);--r-sand:light-dark(#ffe5a5,#5b421d)}
#tutor-rhythm *{box-sizing:border-box}
#tutor-rhythm .shell{border:0;border-radius:0;min-height:100vh;grid-template-columns:205px minmax(0,1fr)}
#tutor-rhythm .sidebar{background:var(--r-bg);padding:30px 17px;border-right:1px solid var(--r-line)}
#tutor-rhythm .brand{font-size:29px;font-weight:800;letter-spacing:-1.4px;padding-bottom:35px}
#tutor-rhythm .brandmark{border:1px solid var(--r-accent);background:var(--r-lilac);width:41px;height:41px;box-shadow:3px 3px 0 var(--r-line)}
#tutor-rhythm .nav{font-size:14px;font-weight:600;padding:13px 11px;border:1px solid transparent;min-height:47px}
#tutor-rhythm .nav[aria-pressed=true]{border-color:var(--r-accent);box-shadow:3px 3px 0 var(--r-line);border-radius:14px}
#tutor-rhythm .page{padding:22px 30px 30px}
#tutor-rhythm h2{font-size:30px;font-weight:800;letter-spacing:-1px}
#tutor-rhythm h3{font-weight:700;font-size:18px}
#tutor-rhythm .top{margin:21px 0 24px}
#tutor-rhythm .top p{font-size:14px;margin-top:7px}
#tutor-rhythm button{font-size:14px;font-weight:600;min-height:38px}
#tutor-rhythm button.primary{border:1px solid var(--r-accent);box-shadow:3px 3px 0 var(--r-line);padding:11px 17px}
#tutor-rhythm button.primary:hover{transform:translateY(-1px);box-shadow:3px 5px 0 var(--r-line)}
#tutor-rhythm label{font-size:13px}
#tutor-rhythm .appearance{display:flex;gap:18px;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding-bottom:15px;border-bottom:1px solid var(--r-line)}
#tutor-rhythm .stylepicker{display:flex;gap:4px;background:var(--r-lilac);padding:4px;border-radius:13px}
#tutor-rhythm .stylepicker button{background:transparent;border:0;padding:7px 12px;min-height:32px;font-size:12px}
#tutor-rhythm .stylepicker button[aria-pressed=true]{background:var(--r-paper);box-shadow:1px 2px 0 var(--r-line)}
#tutor-rhythm .colorpicker{display:flex;gap:3px}
#tutor-rhythm .colorpicker button{padding:4px;min-height:34px;border:2px solid transparent;background:transparent;border-radius:50%}
#tutor-rhythm .colorpicker button[aria-pressed=true]{border-color:var(--r-accent)}
#tutor-rhythm .colorcircle{display:block;width:22px;height:22px;border-radius:50%;border:2px solid light-dark(#fff,#283b34)}
#tutor-rhythm .colorcircle.sage{background:#4f927c}
#tutor-rhythm .colorcircle.ocean{background:#4a91b1}
#tutor-rhythm .colorcircle.sunset{background:#d28259}
#tutor-rhythm .colorcircle.lilac{background:#9c84bf}
#tutor-rhythm .stylepicker{width:max-content;max-width:100%}
#tutor-rhythm .theme-toggle{width:auto;min-height:38px;padding:8px 14px;border-radius:11px;white-space:nowrap;flex:0 0 auto}
#tutor-rhythm .calendar-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
#tutor-rhythm .calendar-sticker{display:inline-flex;align-items:center;gap:7px;transform:rotate(-1deg);padding:8px 13px;background:var(--r-sand);color:var(--r-gold);border:1px solid var(--r-gold);border-radius:9px;font-size:12px;font-weight:700;box-shadow:2px 2px 0 var(--r-line)}
#tutor-rhythm .calendar-sticker svg{width:16px;height:16px}
#tutor-rhythm .period{font-size:22px;font-weight:750;letter-spacing:-.6px}
#tutor-rhythm .legend{font-size:12px;gap:18px;margin-bottom:18px}
#tutor-rhythm .dot{height:9px;width:9px}
#tutor-rhythm .calendar-scroll{overflow:auto;max-height:calc(100vh - 320px);min-height:360px;border:1px solid var(--r-line);border-radius:20px;box-shadow:4px 5px 0 var(--r-line);background:var(--r-paper)}
#tutor-rhythm .timeline{border:0;border-radius:0;grid-template-columns:58px repeat(7,minmax(0,1fr));overflow:visible}
#tutor-rhythm .timeline.single{grid-template-columns:58px minmax(0,1fr)}
#tutor-rhythm .timehead{position:sticky;top:0;z-index:2;background:var(--r-paper);height:90px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:8px;gap:4px;border-bottom:1px solid var(--r-line)}
#tutor-rhythm .timehead button{display:flex;flex-direction:column;gap:0;padding:3px 8px;background:transparent;border:0;border-radius:14px;min-width:44px}
#tutor-rhythm .timehead span{text-transform:uppercase;font-size:11px;color:var(--r-soft);font-weight:600}
#tutor-rhythm .timehead strong{font-size:24px;font-weight:750;line-height:1.25}
#tutor-rhythm .timehead.is-today button{background:var(--r-accent);color:var(--r-accent-ink);transform:rotate(-3deg)}
#tutor-rhythm .timehead.is-today span{color:var(--r-accent-ink)}
#tutor-rhythm .timehead em{font-size:10px;font-style:normal;color:var(--r-accent);font-weight:700}
#tutor-rhythm .hours div{height:84px;font-size:12px;padding-top:6px;font-weight:600}
#tutor-rhythm .lane{background:repeating-linear-gradient(to bottom,transparent 0,transparent 83px,var(--r-line) 83px,var(--r-line) 84px)}
#tutor-rhythm .lane.is-today{background-color:var(--r-lilac)}
#tutor-rhythm .event{border:1px solid var(--r-accent);border-left:4px solid var(--r-accent);border-radius:12px;padding:6px 9px;gap:2px;box-shadow:1px 2px 0 var(--r-shadow);justify-content:flex-start;color:var(--r-ink)}
#tutor-rhythm .event strong{font-size:14px;line-height:1.3;font-weight:750}
#tutor-rhythm .event small{display:flex;gap:4px;align-items:center;font-size:13px;line-height:1.25;color:var(--r-ink);font-weight:500}
#tutor-rhythm .event small svg{width:12px;height:12px}
#tutor-rhythm .event .event-time{display:flex;align-items:center;gap:1px;line-height:1.25;font-size:12px;font-weight:650;width:100%;white-space:nowrap}
#tutor-rhythm .event-time span{font-weight:450;opacity:.8}
#tutor-rhythm .event-time svg{width:12px;height:12px;margin-left:auto}
#tutor-rhythm .event.one{border-color:var(--r-coral)}
#tutor-rhythm .event.done{border-color:var(--r-green)}
#tutor-rhythm .event.moved{border:1px solid var(--r-gold);border-left:4px dashed var(--r-gold);background:var(--r-sand)}
#tutor-rhythm .event.selected{box-shadow:0 0 0 2px var(--r-accent)}
#tutor-rhythm .month{background:var(--r-paper);border:1px solid var(--r-line);border-radius:20px;overflow:hidden;box-shadow:4px 5px 0 var(--r-line)}
#tutor-rhythm .weekday{padding:14px;font-weight:700}
#tutor-rhythm .day{padding:10px 8px;min-height:230px}
#tutor-rhythm .day.today{background:var(--r-lilac)}
#tutor-rhythm .datebtn{font-size:15px;font-weight:700;min-height:29px;margin-bottom:5px}
#tutor-rhythm .day.today .datebtn{background:var(--r-accent);color:var(--r-accent-ink);padding:4px 8px;transform:rotate(-3deg)}
#tutor-rhythm .month .event{padding:6px;min-height:67px}
#tutor-rhythm .month .event strong{font-size:12px}
#tutor-rhythm .unscheduled{display:flex;align-items:center;gap:13px;flex-wrap:wrap;background:var(--r-sand);padding:16px;border-radius:15px;margin-top:19px;border:1px solid var(--r-gold);font-size:13px}
#tutor-rhythm .unscheduled>svg{width:24px;color:var(--r-gold)}
#tutor-rhythm .unscheduled p{margin-top:4px;color:var(--r-soft)}
#tutor-rhythm .unscheduled .actions{margin-left:auto}
#tutor-rhythm .drawer{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(680px,calc(100vw - 48px));height:auto;max-height:calc(100dvh - 48px);overflow:auto;z-index:50;margin:0;padding:28px 28px 24px;border:1px solid var(--r-line);border-radius:32px;background:var(--r-paper);box-shadow:4px 5px 0 var(--r-line);scrollbar-color:var(--r-line) transparent}
#tutor-rhythm .drawerhead h2{font-size:25px;font-weight:750}
#tutor-rhythm .reschedulebox{padding:17px;margin-top:15px;background:var(--r-sand);border:1px solid var(--r-gold);border-radius:17px}
#tutor-rhythm .reschedulebox h3{display:flex;align-items:center;gap:7px}
#tutor-rhythm .reschedulebox p{margin-bottom:13px}
#tutor-rhythm .movebtn{color:var(--r-gold);background:var(--r-sand);border-color:var(--r-gold);width:100%;margin-top:8px}
#tutor-rhythm .badge{font-size:12px;padding:6px 9px;border-radius:9px;font-weight:600}
#tutor-rhythm .sectionbox,#tutor-rhythm .profilehero,#tutor-rhythm .metric,#tutor-rhythm .studentlist,#tutor-rhythm .goals{box-shadow:3px 4px 0 var(--r-line)}
#tutor-rhythm .times{border-radius:24px;padding:22px 8px;gap:0}
#tutor-rhythm .times>div{text-align:center;padding:4px 16px}
#tutor-rhythm .times>div+div{border-left:1px solid color-mix(in srgb,var(--r-ink) 14%,transparent)}
#tutor-rhythm .times strong{font-size:40px;font-weight:750;letter-spacing:-.04em;line-height:1.05;margin-top:6px}
#tutor-rhythm[data-style=soft] .sectionbox,#tutor-rhythm[data-style=soft] .profilehero,#tutor-rhythm[data-style=soft] .metric,#tutor-rhythm[data-style=soft] .studentlist,#tutor-rhythm[data-style=soft] .goals,#tutor-rhythm[data-style=soft] .calendar-scroll,#tutor-rhythm[data-style=soft] .month{box-shadow:0 8px 24px var(--r-shadow);border-color:transparent;border-radius:24px}
#tutor-rhythm[data-style=soft] .calendar-sticker,#tutor-rhythm[data-style=soft] .timehead.is-today button,#tutor-rhythm[data-style=soft] .day.today .datebtn{transform:none}
#tutor-rhythm[data-style=soft] .event{border:0;border-left:4px solid var(--r-accent);border-radius:15px}
#tutor-rhythm[data-style=soft] .event.one{border-left-color:var(--r-coral)}
#tutor-rhythm[data-style=soft] .event.done{border-left-color:var(--r-green)}
#tutor-rhythm[data-style=soft] .event.moved{border-left:4px dashed var(--r-gold)}
#tutor-rhythm[data-style=clear] .calendar-sticker{transform:none;background:transparent;border:0;box-shadow:none;padding-left:0}
#tutor-rhythm[data-style=clear] .event,#tutor-rhythm[data-style=clear] .calendar-scroll,#tutor-rhythm[data-style=clear] .month,#tutor-rhythm[data-style=clear] .sectionbox,#tutor-rhythm[data-style=clear] .profilehero,#tutor-rhythm[data-style=clear] .studentlist,#tutor-rhythm[data-style=clear] .metric,#tutor-rhythm[data-style=clear] .goals{border-radius:8px;box-shadow:none}
#tutor-rhythm[data-style=clear] .timehead.is-today button,#tutor-rhythm[data-style=clear] .day.today .datebtn{transform:none;border-radius:8px}
#tutor-rhythm #retry-save{display:block;font-size:12px;background:var(--r-sand);color:var(--r-gold)}
@media(max-width:1100px){#tutor-rhythm .shell{grid-template-columns:170px minmax(0,1fr)}#tutor-rhythm .page{padding:20px}#tutor-rhythm .event strong{font-size:12px}#tutor-rhythm .event .event-time{font-size:11px}#tutor-rhythm .event-time span{display:none}}
@media(max-width:800px){#tutor-rhythm .shell{grid-template-columns:1fr}#tutor-rhythm .sidebar{padding:13px;flex-direction:row;border-right:0}#tutor-rhythm .brand{font-size:24px;padding-bottom:12px}#tutor-rhythm .nav{font-size:12px;padding:9px;min-height:40px}#tutor-rhythm .page{padding:17px}#tutor-rhythm .drawer{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border-radius:28px;padding:22px 18px 18px;border:1px solid var(--r-line)}#tutor-rhythm .appearance{justify-content:flex-start;gap:10px}#tutor-rhythm .calendar-scroll{max-height:65vh}#tutor-rhythm .calendar-intro{flex-wrap:wrap}#tutor-rhythm .period{font-size:20px}}
@media(max-width:560px){#tutor-rhythm .timeline{grid-template-columns:50px minmax(0,1fr)}#tutor-rhythm .timeline.single{grid-template-columns:50px minmax(0,1fr)}#tutor-rhythm .stylepicker button{padding:7px 9px}#tutor-rhythm .event strong{font-size:15px}#tutor-rhythm .event .event-time{font-size:13px}#tutor-rhythm .event-time span{display:inline}#tutor-rhythm .event small{font-size:13px}#tutor-rhythm .colorcircle{width:19px;height:19px}#tutor-rhythm .appearance{gap:5px}#tutor-rhythm .colorpicker button{min-height:29px;padding:2px}#tutor-rhythm .calendar-sticker{display:none}#tutor-rhythm .calendar-intro{margin-bottom:12px}#tutor-rhythm .month .event strong{font-size:13px}#tutor-rhythm .month .event .event-time{font-size:12px}#tutor-rhythm .month .event-time span{display:none}}

:is(#tutor-rhythm,.auth-screen)[data-theme=dark]{color-scheme:dark}
:is(#tutor-rhythm,.auth-screen)[data-theme=light]{color-scheme:light}
#tutor-rhythm .event strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

#tutor-rhythm .event.compact small{display:none}
#tutor-rhythm .event.compact strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
#tutor-rhythm .save-banner{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid var(--r-gold);background:var(--r-sand);padding:13px;border-radius:13px;color:var(--r-ink);margin-bottom:15px;font-size:13px}
#tutor-rhythm .save-banner span{flex:1;min-width:160px}

@media(max-width:560px){
 #tutor-rhythm .appearance{gap:8px;justify-content:space-between;padding-bottom:12px;flex-wrap:nowrap}
 #tutor-rhythm .stylepicker{gap:1px;padding:3px;border-radius:10px}
 #tutor-rhythm .stylepicker button{font-size:11px;min-height:30px;padding:6px 7px}
 #tutor-rhythm .colorpicker{gap:1px}
 #tutor-rhythm .colorpicker button{border-width:1px;min-height:25px;padding:1px}
 #tutor-rhythm .colorcircle{width:18px;height:18px;border-width:1px}
 #tutor-rhythm .theme-toggle{width:auto;min-height:38px;padding:8px 12px}
 #tutor-rhythm .top{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:17px 0}
 #tutor-rhythm .top h2{font-size:26px}
 #tutor-rhythm .top p{display:none}
 #tutor-rhythm .top button{padding:10px;min-height:40px}
 #tutor-rhythm .controls{gap:5px}
 #tutor-rhythm .calendar-scroll{max-height:62vh}
}

#tutor-rhythm .nav-primary,#tutor-rhythm .nav-more{display:contents}
#tutor-rhythm .more-toggle{display:none}
#tutor-rhythm .stylepicker{margin-bottom:8px}
@media(max-width:800px){
 #tutor-rhythm .shell{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 #tutor-rhythm[data-panel-open=true] .sidebar{display:none}
 #tutor-rhythm[data-panel-open=true] .shell{padding-bottom:0}
 #tutor-rhythm .sidebar{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:40;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;overflow:visible;gap:4px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-right:0;border-bottom:0;border-top:1px solid var(--r-line);background:var(--r-paper)}
 #tutor-rhythm .sidebar .brand{display:none}
 #tutor-rhythm .nav-primary{display:flex;flex:1;gap:2px;min-width:0}
 #tutor-rhythm .nav-primary .nav{flex:1 1 0;flex-direction:column;justify-content:center;min-height:48px;min-width:0;padding:6px 2px;font-size:11px;gap:2px}
 #tutor-rhythm .more-toggle{display:inline-flex;flex-direction:column;justify-content:center;min-height:48px;min-width:52px;padding:6px 8px;font-size:11px}
 #tutor-rhythm .nav-more{display:none;position:absolute;right:8px;bottom:calc(100% + 8px);flex-direction:column;align-items:stretch;gap:4px;min-width:220px;padding:8px;background:var(--r-paper);border:1px solid var(--r-line);border-radius:14px;box-shadow:0 8px 24px var(--r-shadow)}
 #tutor-rhythm[data-more-open=true] .nav-more{display:flex}
 #tutor-rhythm .nav-more .nav{width:100%;justify-content:flex-start;min-height:44px}
 #tutor-rhythm .sidefoot{display:block;margin:4px 0 0;padding:8px 4px 0;border-top:1px solid var(--r-line)}
 #tutor-rhythm .month{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
 #tutor-rhythm .month .weekday{display:block;font-size:11px;padding:4px 0}
 #tutor-rhythm .month .day,#tutor-rhythm .month .day.outside{display:block;min-height:72px;padding:3px}
 #tutor-rhythm .month .event{padding:3px 4px}
 #tutor-rhythm .month .event strong,#tutor-rhythm .month .event small{font-size:13px}
}

#tutor-rhythm .save-banner{position:relative;z-index:4}

#tutor-rhythm .personal-welcome{display:flex;align-items:flex-start;gap:14px;padding:20px 0 24px;margin-bottom:20px;border-bottom:1px solid var(--r-line)}
#tutor-rhythm .personal-heart{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:50%;background:var(--r-rose);color:var(--r-coral);transform:rotate(-8deg)}
#tutor-rhythm .personal-heart svg{width:23px;height:23px}
#tutor-rhythm .personal-caption{display:block;font-size:12px;color:var(--r-soft);margin-bottom:6px}
#tutor-rhythm .personal-welcome p{font-size:20px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
#tutor-rhythm .empty-start{padding:26px 0}
#tutor-rhythm .empty-start h3{font-size:21px;font-weight:650}
#tutor-rhythm .empty-start p{margin-bottom:20px;max-width:450px}
@media(max-width:560px){#tutor-rhythm .personal-welcome{gap:11px;padding:8px 0 20px}#tutor-rhythm .personal-welcome p{font-size:17px}#tutor-rhythm .personal-heart{width:38px;height:38px}}

#tutor-rhythm .drawer-scrim{position:fixed;inset:0;z-index:49;margin:0;padding:0;border:0;border-radius:0;min-height:0;background:color-mix(in srgb,#141218 48%,transparent);cursor:default}
#tutor-rhythm .drawer-scrim:hover,#tutor-rhythm .drawer-scrim:active{background:color-mix(in srgb,#141218 48%,transparent);transform:none}
#tutor-rhythm .drawer.payment-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 36px));height:auto;max-height:calc(100dvh - 36px);overflow:auto;z-index:50;margin:0;padding:28px 26px 22px;border:1px solid var(--r-line);border-radius:32px;background:var(--r-paper);box-shadow:4px 5px 0 var(--r-line)}
#tutor-rhythm .drawer.payment-dialog .drawerhead{align-items:center;margin-bottom:18px}
#tutor-rhythm .drawer.payment-dialog .close{width:40px;height:40px;min-width:40px;padding:0;border-radius:50%}
#tutor-rhythm .drawer.payment-dialog .paymentform label{margin-bottom:14px}
#tutor-rhythm .drawer.payment-dialog .paymentform input,#tutor-rhythm .drawer.payment-dialog .paymentform textarea{border-radius:16px;padding:12px 14px}
#tutor-rhythm .drawer.payment-dialog .paymentform .primary{width:100%;margin-top:4px;border-radius:18px;min-height:48px}
@media(max-width:800px){#tutor-rhythm[data-panel-open=true] .page{display:block}#tutor-rhythm .drawer.payment-dialog{width:min(420px,calc(100vw - 24px));border-radius:28px;padding:22px 18px 18px;border-top:1px solid var(--r-line);box-shadow:4px 5px 0 var(--r-line)}}
#tutor-rhythm .drawerhead{align-items:center}
#tutor-rhythm .drawerhead h2{margin:0}
#tutor-rhythm .drawerhead .small{display:block;margin-top:4px}
#tutor-rhythm .drawer .close{width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:0;border-radius:50%;background:var(--r-bg);color:var(--r-ink);box-shadow:none}
#tutor-rhythm .drawer button.primary{border-radius:999px;box-shadow:none;min-height:46px;padding:12px 20px}
#tutor-rhythm .drawer button:not(.primary):not(.close):not([role=tab]){background:transparent;border-color:transparent;box-shadow:none;color:var(--r-accent);border-radius:999px}
#tutor-rhythm .drawer button:not(.primary):not(.close):not([role=tab]):hover{background:var(--r-lilac);transform:none}
#tutor-rhythm .drawer .movebtn{width:auto;margin-top:0;color:var(--r-gold);background:transparent}
#tutor-rhythm .drawer .movebtn:hover{background:var(--r-sand)}
#tutor-rhythm .drawer .tabs{border:0;background:var(--r-bg);border-radius:999px;padding:4px;gap:4px;margin:18px 0}
#tutor-rhythm .drawer .tabs button{flex:1;border:0;border-radius:999px;padding:8px 12px;background:transparent;color:var(--r-soft)}
#tutor-rhythm .drawer .tabs button[aria-selected=true]{background:var(--r-paper);color:var(--r-ink);border:0;box-shadow:0 1px 2px var(--r-shadow)}
#tutor-rhythm .drawer input,#tutor-rhythm .drawer textarea,#tutor-rhythm .drawer select{border-radius:16px}
@media(max-width:560px){#tutor-rhythm .times strong{font-size:32px}}
@media(pointer:coarse){#tutor-rhythm button,#tutor-rhythm .top button,#tutor-rhythm .nav,#tutor-rhythm .theme-toggle,#tutor-rhythm .stylepicker button,#tutor-rhythm .colorpicker button{min-height:44px}#tutor-rhythm .drawer .close,#tutor-rhythm .drawer.payment-dialog .close{width:44px;height:44px;min-width:44px;min-height:44px}}
