@import url('/fonts.css');
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#29352e;background:#f7f8f5;font-synthesis:none;--ink:#29352e;--muted:#647168;--line:#e2e7df;--green:#37654a;--soft:#e7efe6;--white:#fff}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #769a81;outline-offset:3px}button{border:1px solid var(--line);background:white;color:var(--ink);padding:11px 16px;border-radius:10px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px}button:hover{background:#f2f5ef}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#2c523c}button.ghost{background:transparent;border-color:transparent;color:var(--muted)}button.danger{color:#a33d40;background:#fff6f5;border-color:#efcecc}button.small{font-size:12px;padding:7px 10px;min-height:34px}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.25;letter-spacing:-1.2px;font-weight:650}h2{font-size:23px;letter-spacing:-.6px;font-weight:650}h3{font-size:16px}p{line-height:1.65}small,.muted{color:var(--muted)}.icon{width:19px;height:19px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand{display:flex;gap:11px;align-items:center;font-weight:700;font-size:19px;letter-spacing:-.6px}.brand img{width:40px;height:40px}.brand small{display:block;font-size:10px;letter-spacing:1.5px;font-weight:500;margin-top:3px;text-transform:uppercase}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column;z-index:10}.sidebar .brand{padding:0 7px;margin-bottom:49px}.navlabel{font-size:10px;letter-spacing:1.6px;color:#849084;padding:0 14px;margin-bottom:14px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{border:0;justify-content:flex-start;background:transparent;color:var(--muted);padding:14px}.nav button.active{background:#eaf0e6;color:#34583d}.nav .count{margin-left:auto;padding:2px 6px;border-radius:5px;background:#dbe6d5;font-size:10px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:22px}.profile{display:flex;align-items:center;gap:9px;margin-bottom:14px;min-width:0}.avatar{background:#eee9e1;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0}.profile strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;max-width:140px}.profile small{font-size:10px}.main{margin-left:238px;min-height:100vh;padding:0 42px 50px}.topbar{height:79px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.topbar .time-zone{display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#709a65}.page{max-width:1150px;margin:0 auto}.pagehead{padding:33px 0 28px;display:flex;align-items:center;justify-content:space-between;gap:15px}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:1.7px;color:#6a806b;margin-bottom:9px;font-weight:650}.pagehead p{font-size:13px;color:var(--muted);margin-top:10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:19px 22px;display:flex;justify-content:space-between;align-items:center}.stat small{display:block;font-size:12px;margin-bottom:8px}.stat strong{font-size:26px;font-weight:550;letter-spacing:-.8px}.stat-icon{height:40px;width:40px;border-radius:12px;display:grid;place-items:center;background:#f2f4ed;color:#6d8461}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.calendar-top{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-top h2{font-size:18px}.calendar-top p{font-size:11px;color:var(--muted);margin-top:5px}.calendar-nav{display:flex;gap:6px}.calendar-nav button{min-height:34px;padding:7px 11px;font-size:11px}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;padding:0 24px 24px}.day{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:15px 13px;min-height:123px;border:1px solid transparent;border-radius:11px;font-weight:400;position:relative}.day.d1{background:#faf1f1}.day.d2{background:#fcf3ea}.day.d3{background:#faf7e9}.day.d4{background:#eef5eb}.day.d5{background:#edf3f8}.day.d6{background:#f2eef8}.day.d0{background:#ecf6f3}.day span{font-size:10px;font-weight:600;letter-spacing:.2px}.day b{font-size:27px;font-weight:550;line-height:1}.day small{font-size:10px;color:#65716b;white-space:nowrap}.day.selected{border-color:#657b60;box-shadow:0 0 0 1px #657b60;background:#e4eddd}.day.today:after{content:'';width:5px;height:5px;position:absolute;right:12px;top:17px;border-radius:50%;background:#64845c}.day-list{border-top:1px solid var(--line);padding:24px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.section-head h3{font-size:16px}.section-head small{display:block;font-size:11px;margin-top:5px}.pill{border-radius:20px;background:#f0f3ed;font-size:10px;padding:5px 9px;color:#6b7a64}.appointment{display:flex;align-items:flex-start;gap:18px;padding:19px 0;border-top:1px solid #edf0e9}.appointment:first-of-type{border-top:0}.appt-time{min-width:62px;padding-top:4px;font-size:19px;letter-spacing:-.5px;font-weight:550}.appt-time small{display:block;font-size:10px;letter-spacing:0;margin-top:4px;font-weight:400}.appt-info{flex:1;min-width:0;padding-left:17px;border-left:3px solid #dce8d6}.appt-info h3{font-size:14px;overflow-wrap:anywhere;margin:4px 0 6px}.appt-info p{font-size:11px;color:var(--muted)}.appt-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:290px}.status{font-size:10px;padding:5px 9px;border-radius:5px;background:#f4f0e4;color:#736543;display:inline-flex;gap:5px;align-items:center;margin-right:5px}.status.confirmed{background:#e9f1e5;color:#496b3e}.status.done{background:#e9eff4;color:#4c6680}.status.cancelled{background:#f6e9e8;color:#945957}.status-select{font-size:11px;max-width:115px;padding:7px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);min-height:34px}.note{font-size:11px;color:var(--muted);margin-top:18px;display:flex;align-items:center;gap:7px}.empty{text-align:center;padding:44px 16px 36px;color:var(--muted)}.empty .empty-icon{height:60px;width:60px;border-radius:20px;background:#f1f5ed;display:grid;place-items:center;margin:0 auto 18px;color:#809475}.empty h3{color:#4b5d4a;font-weight:600;margin-bottom:7px}.empty p{font-size:12px;max-width:320px;margin:0 auto 20px}.toolbar{display:flex;gap:12px;margin-bottom:22px}.search{width:100%;max-width:390px}.patient-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.patient-card{padding:23px}.patient-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}.patient-card p{font-size:12px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.patient-card footer{display:flex;gap:6px;justify-content:flex-end;margin-top:20px}.settings{max-width:760px}.settings .panel{padding:27px;margin-bottom:20px}.settings h3{margin-bottom:19px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;font-size:12px;font-weight:550}.field input,.field select,.field textarea,input.search{border:1px solid #dce3d8;border-radius:9px;padding:12px;background:#fff;width:100%;color:var(--ink);min-height:44px}.field textarea{resize:vertical;min-height:85px}.field small{font-weight:400;font-size:11px;line-height:1.5}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.check{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.5;margin-bottom:15px}.check input{accent-color:var(--green);width:17px;height:17px}.days-check{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.days-check label{font-size:12px;background:#f3f6ef;padding:10px;border-radius:7px;display:flex;gap:5px}.days-check input{accent-color:var(--green)}.info-box{background:#f2f5ee;border:1px solid #e4eadf;border-radius:9px;padding:13px 15px;font-size:12px;line-height:1.6;color:#62705e;margin:12px 0 20px}.error{background:#fff0ee;border:1px solid #efcfca;color:#9d4944;border-radius:9px;padding:12px;font-size:12px;line-height:1.5;margin-bottom:17px}.success{background:#edf5e8;border:1px solid #d6e6c9;color:#496b3e;border-radius:9px;padding:12px;font-size:12px;line-height:1.6;margin-bottom:17px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#eaf0e5;padding:60px 13%;display:flex;flex-direction:column;justify-content:space-between;position:relative}.auth-story h1{font-size:46px;letter-spacing:-1.8px;line-height:1.2;max-width:390px;margin-top:60px;font-weight:500}.auth-story h1 em{font-style:normal;color:#72816a}.auth-story p{max-width:330px;margin-top:23px;font-size:14px;color:#60715a}.story-calendar{display:flex;gap:8px;margin:44px 0}.story-calendar span{background:#f7f8f1;border:1px solid #dce4d4;flex:1;border-radius:12px;padding:16px 4px;text-align:center;font-size:10px;max-width:70px}.story-calendar b{display:block;font-size:22px;margin-top:12px;font-weight:500}.story-calendar span:nth-child(3){background:#d5e2cb;transform:translateY(-8px);border-color:#93a586}.auth-story footer{font-size:11px;color:#6d7b64}.auth-form{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:45px}.auth-form>div{width:100%;max-width:360px}.auth-form h2{font-size:27px;margin-bottom:10px}.auth-form .subtitle{color:var(--muted);font-size:13px;margin-bottom:27px}.auth-form .primary{width:100%;margin-top:6px}.auth-links{margin-top:18px;display:flex;flex-wrap:wrap;justify-content:center;gap:4px}.auth-links button{font-size:12px;min-height:34px;padding:6px 8px}.auth-foot{font-size:10px;color:#809078;text-align:center;margin-top:32px;line-height:1.7}.loading{display:grid;place-items:center;min-height:100vh;font-size:14px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:18px;padding:27px;width:calc(100% - 30px);max-width:490px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 90px #29352e22;color:var(--ink)}dialog::backdrop{background:#24312655;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.modal-head h2{font-size:21px}.modal-head button{padding:5px;min-height:30px;border:0}.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:23px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-weight:500;color:var(--muted);background:#f8faf6}td,th{padding:16px;border-bottom:1px solid var(--line)}td strong{display:block;font-size:13px}td small{font-size:11px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#2f4635;color:#fff;padding:13px 22px;border-radius:11px;font-size:13px;z-index:99;max-width:90vw;box-shadow:0 7px 25px #23372822;display:none}#toast.visible{display:block}.hidden{display:none!important}.mobile-brand{display:none}.fullwidth{width:100%}.inline-link{font-size:12px}.hint{font-size:11px;color:var(--muted);line-height:1.6;margin-top:10px}.admin-note{margin-bottom:22px}.reminder-date{font-size:12px;color:var(--muted);margin-bottom:14px}.privacy{margin-top:32px;font-size:11px;color:var(--muted)}@media(min-width:1500px){.main{padding-left:60px;padding-right:60px}.pagehead{padding-top:45px}.calendar-top{padding-top:28px}}@media(max-width:1150px){.sidebar{width:205px;padding:30px 16px}.main{margin-left:205px;padding:0 25px 40px}.brand{font-size:17px}.week{gap:6px;padding:0 16px 20px}.day{padding:14px 9px}.day small{font-size:9px}.appt-actions{max-width:210px}}@media(max-width:800px){.sidebar{width:80px;padding:25px 12px}.sidebar .brand{padding:0;margin:0 8px 40px}.brand div,.sidebar .navlabel,.nav button span,.sidebar-bottom .profile,.sidebar-bottom button span{display:none}.nav button{justify-content:center;padding:14px}.sidebar-bottom .ghost{width:100%}.main{margin-left:80px;padding:0 20px 35px}.auth-story{padding:40px 12%}.auth-story h1{font-size:34px}.auth-form{padding:30px}.patient-grid{grid-template-columns:1fr}.pagehead h1{font-size:28px}}@media(max-width:600px){.sidebar{inset:auto 0 0 0;width:100%;height:73px;padding:5px 9px max(5px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);background:#fffffff5;backdrop-filter:blur(12px)}.sidebar .brand,.sidebar-bottom,.navlabel{display:none}.nav{flex-direction:row;gap:3px;justify-content:space-around}.nav button{padding:8px 5px;gap:4px;flex:1;flex-direction:column;border-radius:9px;min-width:0}.nav button span{display:block;font-size:9px;font-weight:550}.nav button .count{display:none}.main{margin-left:0;padding:0 16px 100px}.topbar{height:65px}.topbar>span{display:none}.topbar .time-zone{font-size:10px}.mobile-brand{display:flex;gap:8px;align-items:center;font-size:15px;font-weight:700}.mobile-brand img{width:31px;height:31px}.pagehead{padding:26px 0 22px;align-items:flex-start}.pagehead h1{font-size:27px}.pagehead p{font-size:12px;max-width:220px;line-height:1.5}.pagehead button{font-size:11px;padding:10px;min-height:39px;margin-top:20px}.pagehead button .icon{width:16px}.eyebrow{font-size:9px}.stats{gap:7px;margin-bottom:20px}.stat{padding:12px 10px;border-radius:11px}.stat small{font-size:9px;margin-bottom:7px}.stat strong{font-size:22px}.stat-icon{display:none}.panel{border-radius:13px}.calendar-top{padding:18px 13px}.calendar-top h2{font-size:15px}.calendar-top p{font-size:10px}.calendar-nav{gap:3px}.calendar-nav button{padding:6px 8px;min-height:32px}.week{padding:0 9px 16px;gap:4px}.day{padding:12px 3px;min-height:97px;align-items:center;gap:11px;border-radius:8px}.day span{font-size:9px}.day b{font-size:22px}.day small{font-size:8px}.day.today:after{right:5px;top:5px;width:3px;height:3px}.day-list{padding:19px 14px}.section-head{margin-bottom:15px}.section-head h3{font-size:14px}.section-head button{font-size:10px;padding:6px}.appointment{gap:9px;flex-wrap:wrap;padding:17px 0}.appt-time{min-width:48px;font-size:17px}.appt-info{padding-left:10px}.appt-info h3{font-size:13px}.appt-actions{max-width:none;width:100%;justify-content:flex-start;padding-left:60px;gap:5px}.appt-actions button{font-size:10px;padding:6px 8px;min-height:31px}.status-select{font-size:10px;min-height:31px}.note{font-size:10px;align-items:flex-start}.auth{display:block}.auth-story{display:none}.auth-form{min-height:100vh;padding:35px 27px}.auth-form:before{content:'Agenda Fisio';font-size:19px;font-weight:700;margin-bottom:42px;color:#41634a}.settings .panel{padding:20px}.field-row{gap:10px}.pagehead .muted{max-width:none}.patient-card{padding:20px}dialog{padding:21px;max-height:92vh}.modal-head h2{font-size:20px}.modal-footer button{font-size:12px}#toast{bottom:90px;width:max-content;text-align:center}.toolbar{margin-bottom:17px}}

/* v0.1.1: independent weekday times and indicators below the agenda. */
.calendar-stats{margin-top:22px;margin-bottom:0}.cancelled-list{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.cancelled-list summary{cursor:pointer;font-size:12px;color:var(--muted)}.days-check{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.weekday-slot{border:1px solid var(--line);border-radius:8px;padding:9px;background:#f7f9f4}.weekday-slot label{padding:3px;background:transparent}.weekday-slot input[type="time"]{width:100%;min-width:0;min-height:40px;border:1px solid #dce3d8;border-radius:7px;padding:7px;background:white;color:var(--ink);margin-top:7px}.weekday-slot label input{width:16px;height:16px}
