/* DMTT identity: blue gear, white field, red lettering, green flag accent. */
:root{font-family:Segoe UI,Arial,sans-serif;--navy:#123e59;--blue:#12699a;--muted:#607887;--line:#dbe7ed;--red:#cf3041;--lime:#12699a;color:var(--navy);background:#eef4f7}
body{background:radial-gradient(ellipse at 85% 5%,#dceef6 0,transparent 48%),#f1f6f8;min-height:100vh}
.demo{background:#fff;border-top:4px solid var(--blue);border-bottom:1px solid var(--line);padding:12px 32px;font-size:.68rem;letter-spacing:.075em;color:#47687d}
#connection{letter-spacing:0;font-weight:500}
.brand{letter-spacing:.035em;color:#145c84;gap:14px}.brand-logo{width:64px;height:64px;object-fit:contain;border-radius:50%;flex-shrink:0;background:white}.brand small{font-size:.6rem;letter-spacing:.1em;color:#58798d}
.layout{min-height:calc(100vh - 46px);grid-template-columns:260px minmax(0,1fr)}aside{border-top:0;padding:30px 22px;background:#fff}.signed-in{background:#f0f6f9;border-radius:14px;padding:16px;border-left:3px solid var(--blue)}.signed-in .note{margin:6px 0 0}.sidebar-note{color:#607887}.sidebar-note:before{content:'';display:block;width:38px;height:4px;background:var(--red);border-radius:4px;margin-bottom:18px}
nav button{border-radius:10px;color:#4c6b80}nav button.active{background:#e6f1f8;color:#115982;box-shadow:inset 3px 0 var(--blue)}nav button:hover:not(.active){background:#f3f7fa;color:#145c84}
main{margin:0 auto}h1{letter-spacing:-.035em;font-weight:750}h2{letter-spacing:-.02em}.heading{margin:32px 0 26px}header{border-bottom-color:#d8e5ed}.tag{background:#e4eff6;color:#266484}.card{border-radius:18px;border-color:#dbe7ee;box-shadow:0 4px 18px #18476805}.hero{background:linear-gradient(115deg,#105c89,#1985b4);border-radius:20px;border-top:4px solid #cf3041}.hero p,.hero .eyebrow{color:#e1f1f9}.hero:after{content:'';position:absolute;width:230px;height:230px;border:36px solid #ffffff0a;border-radius:50%;right:-80px;top:-90px;pointer-events:none}
.btn,.btn.lime{background:var(--blue);border-color:var(--blue);color:#fff;border-radius:10px}.btn:hover:not(:disabled){background:#0d527b;border-color:#0d527b}.btn.light{background:#fff;color:#195e84;border-color:#cddfe9}.btn.light:hover:not(:disabled){background:#edf5fa;border-color:#8fb5cd}.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #75b6db;outline-offset:3px}.btn:disabled{opacity:.5}
.field{font-weight:600;color:#35566d}.field input,.field textarea,select{background:#fbfdfe;border-color:#ccdee8;border-radius:10px;min-height:46px;color:#173f59}.field input::placeholder{color:#8295a3;font-weight:400}.field input:focus{background:#fff}.text-button{color:#146d9e}.slot:hover:not(:disabled){border-color:#4e98c1;background:#edf7fc}.slot strong{color:#155f87}.hour.free{background:#e5f3fb;border-color:#8dbfda;color:#155b83}.hour.booked,.hour.occupied{background:#f1ebee;color:#7d4f5e}.badge.green,.finished{background:#e9f4ef;color:#276b4b}.finished{border-color:#bcd8c9}.plan-item{border-radius:12px}.notice{background:#fff4df;color:#7d5618}.datebox{background:#e8f3fa;color:#17668f}.date-label{flex-wrap:wrap}.table-wrap th{background:#f4f8fb;color:#4c6e84}.error{color:#b51f36}#toast{background:#123e59;line-height:1.5}
.auth{display:grid;grid-template-columns:1.1fr 1fr;max-width:1080px;margin:7vh auto;padding:0;border:1px solid #cfdee7;border-radius:26px;overflow:hidden;background:white;box-shadow:0 24px 70px #14486612;min-height:620px}
.auth-story{background:linear-gradient(145deg,#eef7fb 0%,#e1eff6 100%);padding:42px;display:flex;flex-direction:column;position:relative;overflow:hidden;border-right:1px solid #d6e5ee}
.auth-story:after{content:'';position:absolute;width:420px;height:420px;border-radius:50%;border:45px solid #12699a08;right:-250px;bottom:-150px;pointer-events:none}
.auth-story .brand{font-size:1.8rem}.auth-story .brand-logo{width:80px;height:80px;box-shadow:0 3px 14px #12496712}.auth-message{margin:52px 0 38px;position:relative;z-index:1}.eyebrow{font-size:.65rem;font-weight:750;letter-spacing:.15em;color:#317ba2}.auth-message h1{font-size:2.65rem;line-height:1.13;letter-spacing:-.045em;margin:18px 0 22px;color:#134766}.red-dot{color:var(--red)}.auth-message p{color:#496f86;font-size:.95rem;line-height:1.8}.auth-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.auth-tags span{border:1px solid #bcd7e6;background:#f6fbff99;border-radius:30px;padding:7px 12px;font-size:.72rem;color:#226387;font-weight:600}
.auth-address{display:flex;align-items:center;gap:12px;margin-top:auto;font-size:.75rem;line-height:1.7;color:#315d78;z-index:1}.auth-address small{display:block;color:#597a8f}.location-mark{font-size:1.6rem;color:var(--red)}
.auth-form.card{border:0;border-radius:0;margin:0;padding:64px 46px 34px;display:flex;flex-direction:column;box-shadow:none}.auth-form .heading{margin:18px 0 32px}.auth-form h1{font-size:1.8rem;letter-spacing:-.035em}.auth-form .sub{font-size:.875rem}.auth-form .field{font-size:.8rem;gap:10px;margin-bottom:22px}.auth-form input{padding:14px;min-height:50px}.auth-form .btn{width:100%;display:flex;justify-content:space-between;align-items:center;padding:15px 18px;margin-top:6px;box-shadow:0 5px 12px #12699a20}.auth-form .btn span{font-size:1.25rem}.auth-help{font-size:.75rem;line-height:1.85;color:#6b8090;margin:24px 0 34px}.auth-signature{margin-top:auto;border-top:1px solid #e0e9ef;padding-top:24px;font-size:.65rem;color:#718795;display:flex;align-items:center;gap:8px}.auth-signature span{display:block;width:7px;height:7px;border-radius:50%;background:#318566}
@media(max-width:1100px){.auth{margin:40px 24px;max-width:calc(100% - 48px)}.auth-story{padding:32px}.auth-form.card{padding:54px 32px 30px}.auth-message h1{font-size:2.35rem}}
@media(max-width:720px){.demo{padding:9px 16px;font-size:.58rem;gap:14px}.demo>span:first-child{max-width:60%}.layout{display:block}aside{padding:18px 16px;gap:16px}.brand-logo{width:52px;height:52px}.signed-in{padding:12px 14px}.signed-in strong{font-size:.875rem}nav{padding-bottom:3px}.auth{display:flex;flex-direction:column;margin:20px 16px;max-width:calc(100% - 32px);border-radius:20px;min-height:0}.auth-story{padding:24px;border-right:0;border-bottom:1px solid #d6e5ee}.auth-story .brand{font-size:1.5rem}.auth-story .brand-logo{width:64px;height:64px}.auth-message{margin:25px 0 0}.auth-message h1{font-size:1.7rem;margin:12px 0}.auth-message h1 br{display:none}.auth-message h1 br:after{content:' '}.auth-message p{font-size:.8rem;margin:0}.auth-message p br{display:none}.auth-tags{margin-top:16px}.auth-address{display:none}.auth-form.card{padding:28px 24px}.auth-form h1{font-size:1.6rem}.auth-form .heading{margin:14px 0 24px}.auth-help{margin:18px 0 24px}.auth-form .field{margin-bottom:18px}.auth-signature{padding-top:18px}.plan-item{gap:12px}.hero h2{font-size:1.5rem}}
.new-student-fields{grid-column:1/-1;border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.new-student-fields legend{font-size:.8rem;font-weight:600;color:#607887;margin-bottom:16px}.new-student-fields[hidden]{display:none}@media(max-width:720px){.new-student-fields{grid-template-columns:1fr}}
.person-name-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px;min-width:0;border:0;margin:0;padding:0}.person-name-fields legend{font-size:.8rem;font-weight:600;color:#607887;margin-bottom:16px}.person-name-fields .legacy-name{grid-column:1/-1;margin:0 0 16px}@media(max-width:720px){.person-name-fields{grid-template-columns:1fr}}

/* Weekly planner: horizontally scrollable on phones, legible names and statuses. */
.week-table { min-width: 1000px; width: 100%; table-layout: fixed; }
.week-table th:first-child { width: 65px; }
.week-table th, .week-table td { padding: 8px; white-space: normal; vertical-align: top; }
.week-table .btn { width: 100%; min-height: 58px; display: block; white-space: normal; padding: 10px 6px; }
.week-table .btn small { display: block; margin-top: 5px; font-weight: 400; }
.week-table .week-free { background: #edf8f1; border-color: #a8d9bb; }
.week-table .week-booked { background: #e8f3fc; border-color: #8bbddd; }
.week-table .week-closed { color: #74838c; background: #f7f9fa; }
.notice pre { white-space: pre-wrap; overflow-wrap: anywhere; }
