:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#20372f;background:#f5f6f2;font-size:15px;--green:#164b3b;--muted:#66766e;--line:#e2e7df}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,.button{min-height:44px;border:1px solid var(--line);border-radius:10px;background:white;padding:10px 16px;cursor:pointer;color:inherit;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:hover,.button:hover{background:#edf2eb}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#25644e}.danger{color:#a13b30}.quiet{background:transparent}input,select,textarea{min-height:44px;border:1px solid #cdd8ce;border-radius:8px;background:white;padding:10px;max-width:100%;color:inherit}input[type=checkbox]{min-height:22px;width:22px;accent-color:var(--green)}textarea{width:100%;resize:vertical}label{display:grid;gap:7px}label.check{display:flex;align-items:center;gap:10px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;margin-bottom:10px}h2{font-size:21px}h3{font-size:16px}p{line-height:1.7}.muted,small{color:var(--muted)}small{font-size:12px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:2px;color:var(--green);font-weight:700;margin-bottom:12px}header{background:#fff;border-bottom:1px solid var(--line);padding:18px max(24px,calc((100vw - 1240px)/2));display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{font-size:21px;font-weight:750}.brand span{background:var(--green);color:white;border-radius:8px;padding:6px 9px;margin-right:10px}header small{display:block;margin-top:6px}nav{display:flex;gap:8px;margin:24px 0}nav button.active{background:var(--green);color:white}.wrap{max-width:1240px;margin:auto;padding:0 24px 48px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0}.hero p{margin-bottom:0}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:22px;margin-bottom:18px}.callout{background:#edf3ec;border-color:#d3dfcc}.warning{background:#fff5e3;color:#85541c;border:1px solid #efdbb6}.error{background:#fff0ed;color:#923c2e;border:1px solid #efcbc1}.success{color:#28744d;background:#e9f4e9}.tag{display:inline-block;border-radius:6px;padding:4px 7px;font-size:11px;background:#f0f2ed;margin-right:4px}.tag.amber{background:#fff0cc;color:#8c5b20}.tag.green{background:#e7f2e6;color:#28613d}.stats{display:flex;gap:28px;margin:20px 0}.stats strong{font-size:25px;display:block}.stats small{display:block;margin-top:4px}.days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.day{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:12px}.day.weekend{border-top:3px solid #82a48b}.day h3{margin:0}.day .daydate{font-size:12px;font-weight:400;margin-left:8px;color:var(--muted)}.day .people{line-height:1.9;font-size:13px}.period{font-size:11px;font-weight:700;color:var(--muted);margin-bottom:6px}.day button{margin-top:auto}.empty{padding:36px 15px;text-align:center;color:var(--muted)}.list{display:grid;gap:10px}.list-item{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.list-item p{margin:8px 0;font-size:14px}.team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.avatar{width:38px;height:38px;background:#e8efe5;border-radius:50%;display:grid;place-items:center;font-weight:700}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form{display:grid;gap:18px}.formfooter{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px;margin-top:12px}.availability{display:grid;gap:8px}.availrow{display:grid;grid-template-columns:75px 1fr 16px 1fr;gap:8px;align-items:center}.availrow label{display:flex;gap:6px;align-items:center}.needrow{display:grid;grid-template-columns:60px repeat(4,1fr);gap:8px;align-items:center;font-size:12px}.needrow input{width:100%;padding:8px}dialog{border:1px solid var(--line);border-radius:18px;max-width:650px;width:calc(100% - 32px);padding:26px;max-height:88dvh;overflow:auto;box-shadow:0 24px 80px #122c2326}dialog::backdrop{background:#152e2655;backdrop-filter:blur(3px)}.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.dialoghead h2{margin:0}.inline-error{padding:12px;border-radius:8px;line-height:1.5}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#163e30;color:white;border-radius:12px;padding:13px 22px;max-width:90%;z-index:5;display:none}#toast.show{display:block}.login{max-width:480px;margin:10vh auto;padding:32px}.login h1{margin:24px 0 12px}.login .form{margin:24px 0}.demo{font-size:12px;padding:14px;background:#f1f4ed;border-radius:10px;line-height:1.8;overflow-wrap:anywhere}footer{font-size:12px;color:var(--muted);margin-top:28px;line-height:1.8}a{color:var(--green)}:focus-visible{outline:3px solid #78a996;outline-offset:3px}.loading{padding:40px}.table{width:100%;border-collapse:collapse;font-size:13px}.table td,.table th{padding:12px 8px;text-align:left;border-bottom:1px solid var(--line)}.timeline{border-left:2px solid #d3dfcc;padding-left:20px}.timeline p{font-size:13px}.scroll{overflow-x:auto}.request-note{white-space:pre-wrap;overflow-wrap:anywhere}.strip{padding:12px 18px;border-radius:10px;margin-bottom:18px}.shift-time{font-size:25px;font-weight:650}.own-shifts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:1000px){.days{grid-template-columns:repeat(3,1fr)}.team{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){header{padding:14px 18px}.brand{font-size:17px}header .identity{display:none}.wrap{padding:0 16px 100px}.hero{display:block;padding:22px 0}.hero h1{font-size:27px}.hero .row{margin-top:20px}.days,.team,.own-shifts{grid-template-columns:1fr}.day{padding:18px}.day .people{font-size:14px}nav{position:fixed;bottom:0;left:0;right:0;margin:0;padding:10px 10px max(10px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);z-index:3;justify-content:space-around;gap:3px}nav button{font-size:12px;padding:9px 12px;border:0;min-width:64px}.grid2{grid-template-columns:1fr}.stats{gap:20px}.stats strong{font-size:23px}.panel{padding:18px}.login{margin:5vh 16px;padding:24px}dialog{padding:20px}.availrow{grid-template-columns:65px 1fr 10px 1fr;gap:5px}.availrow .time-select{width:100%;padding:6px;font-size:13px}.needrow{gap:4px;grid-template-columns:36px repeat(4,1fr)}.needrow input{font-size:13px;padding:5px}.formfooter{position:sticky;bottom:-20px;background:#fff;padding-bottom:10px}#toast{bottom:86px}.shift-time{font-size:23px}.row.mobile-stack{align-items:stretch;flex-direction:column}}
@media(min-width:701px) and (max-width:850px){.days{grid-template-columns:repeat(2,1fr)}}
@media print{header,nav,button,.hero .row,footer{display:none}.wrap{padding:0}.days{grid-template-columns:repeat(3,1fr)}.day{break-inside:avoid}body{background:white}}

/* Compact weekly workspace: schedule first, explanations on demand. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.weekbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:24px 0 12px}.schedule-info{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.schedule-info .tag{font-size:12px;margin:0}.schedule-info button{padding:8px 12px}.schedule-tools>button,.schedule-menu>summary{background:transparent}.schedule-menu{position:relative}.schedule-menu>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;padding:10px 14px}.schedule-menu>summary::-webkit-details-marker{display:none}.schedule-menu-items{position:absolute;right:0;top:calc(100% + 6px);min-width:150px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 20px #20372f12;padding:6px;display:grid;gap:4px;z-index:2}.schedule-menu-items button{border:0;justify-content:flex-start}.issue-link{color:#85541c;background:#fff5e3;border-color:#efdbb6}.day-empty{color:var(--muted);text-align:center;padding:22px 0;margin:0}.hero{padding:16px 0}.hero h1{font-size:24px;letter-spacing:0;margin-bottom:0}.hero p{margin-top:8px}.dev-info{margin-top:24px;color:var(--muted);font-size:12px}.dev-info summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.dev-info p{max-width:600px}.brand{white-space:nowrap}.schedule-actions .primary:last-child{background:white;color:var(--green)}.schedule-actions .primary:last-child:hover{background:#edf2eb}
@media(max-width:700px){.weekbar{align-items:center;margin:18px 0 10px;gap:8px}.weekbar select{width:135px;padding:8px;font-size:13px}.schedule-actions{gap:6px}.schedule-actions button{padding:8px 10px;font-size:13px}.schedule-info{gap:8px;margin-bottom:14px}.schedule-info>.row{gap:6px}.schedule-tools{width:100%;justify-content:flex-end}.schedule-info button{font-size:12px;padding:8px 10px}.hero .row{margin-top:12px}nav button{font-size:14px}.days{gap:12px}.day{gap:10px}}

/* Keep the whole week visible; details stay in the day dialog. */
header{padding:8px 24px}.workspace-brand{display:flex;align-items:center;gap:14px}.workspace-brand small{margin:0}.workspace-top{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.workspace-top nav{margin:12px 0;flex-shrink:0}.workspace-top .weekbar{flex:1;margin:12px 0;min-width:290px}.schedule-workspace{max-width:none;padding-bottom:16px}.schedule-info{margin-bottom:12px}.day-summary{display:none}.day .people{display:flex;flex-wrap:wrap;gap:2px 7px;line-height:1.65}.day .people>span{white-space:nowrap}.days{gap:10px}.day{padding:12px;gap:10px}.day-group{min-height:60px}.day .daydate{margin-left:5px}.day-heading{gap:6px}.day h3{font-size:15px}.schedule-workspace .day .tag{font-size:10px;margin:0}.schedule-workspace .day button{width:100%}
@media(min-width:1000px){.days{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:999px){.days{grid-template-columns:repeat(4,minmax(0,1fr))}.day{gap:6px;padding:10px}.day-group{min-height:48px}.day .people{font-size:12px}}
@media(max-width:700px){header{padding:8px 16px}.workspace-brand{display:block}.workspace-brand small{margin-top:6px;max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-top{display:block}.workspace-top nav{margin:0}.workspace-top .weekbar{margin:12px 0 6px;min-width:0}.schedule-workspace{padding-bottom:80px}.schedule-workspace .schedule-info{gap:4px;margin-bottom:8px}.schedule-workspace .schedule-tools{gap:6px}.schedule-workspace .days{gap:6px}.schedule-workspace .day{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:3px 12px;padding:8px 12px;border-radius:10px}.schedule-workspace .day.weekend{border-top:1px solid #82a48b;border-left:3px solid #82a48b}.schedule-workspace .day-heading{grid-column:1;grid-row:1;justify-content:flex-start;gap:8px}.schedule-workspace .day-summary{display:block;grid-column:1;grid-row:2;color:var(--muted);font-size:12px}.schedule-workspace .day-group,.schedule-workspace .day-empty{display:none}.schedule-workspace .day button{grid-column:2;grid-row:1 / 3;align-self:center;min-width:60px;margin:0;padding:8px 12px}.schedule-workspace .day .tag{padding:2px 5px}.schedule-workspace .day .daydate{font-size:12px;margin-left:8px}}
@media print{.workspace-top,.schedule-info{display:none}.day-summary{display:none}.days{grid-template-columns:repeat(7,minmax(0,1fr))}.day-group{display:block!important}.day-empty{display:block!important}}

/* Direct editing without adding controls to every name. */
.schedule-workspace .day .person-button{width:auto;min-width:0;min-height:26px;margin:0;padding:1px 3px;border:0;border-radius:5px;background:transparent;font-size:13px;line-height:1.65;white-space:nowrap}
.schedule-workspace .day .person-button:hover,.schedule-workspace .day .person-button:focus-visible{background:#e7f2e6;color:var(--green)}
.day .people{gap:1px 3px;margin-left:-3px}
#toast.show{display:flex;align-items:center;gap:16px}
#toast button{background:transparent;color:white;border-color:#ffffff55;min-height:36px;padding:6px 12px;white-space:nowrap}
.day-dialog{max-width:720px;padding:0 20px 16px}
.day-dialog .dialoghead{position:sticky;top:0;background:white;z-index:1;margin:0;padding:16px 0 12px}
.day-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.day-dialog-toolbar button{padding:8px 14px}
.day-shifts{gap:6px}
.shift-row{display:grid;grid-template-columns:minmax(90px,1fr) auto auto;align-items:center;gap:18px;padding:9px 12px}
.shift-row small{display:block;margin-top:3px}
.shift-row-time{font-variant-numeric:tabular-nums;font-size:14px;white-space:nowrap}
.shift-row .row{flex-wrap:nowrap;gap:6px}
.shift-row button{padding:8px 12px}
.day-dialog .formfooter{position:sticky;bottom:-16px;background:white;padding:12px 0 0;margin-top:12px}
.shift-context{margin:0;color:var(--muted);font-size:13px}
.shift-remove{border-top:1px solid var(--line);padding-top:12px}
@media(max-width:700px){.day-dialog{padding:0 12px 12px}.day-dialog .dialoghead{padding-top:12px}.shift-row{gap:7px;padding:8px}.shift-row button{padding:8px;font-size:13px}.shift-row-time{font-size:12px}.shift-row .row{gap:4px}.day-dialog .formfooter{bottom:-12px}#toast{padding:10px 14px}}
@media print{.schedule-workspace .day .person-button{display:inline;padding:0;color:inherit}.schedule-menu,.day>button{display:none}}
@media(max-width:700px){.shift-row{grid-template-columns:minmax(0,1fr) auto;gap:3px 10px}.shift-row>div:first-child{grid-column:1;grid-row:1}.shift-row-time{grid-column:1;grid-row:2}.shift-row>.row{grid-column:2;grid-row:1 / 3}.shift-row small{display:inline;margin-left:6px}}
/* Configurable needs stay in one compact dialog; special requirements are optional. */
dialog.settings-dialog{max-width:1100px;padding:22px}.settings-dialog .dialoghead{margin-bottom:16px}.settings-dialog .form{gap:10px}.role-editor summary,.period-extra summary{cursor:pointer;color:var(--muted);font-size:13px}.role-fields{display:flex;flex-wrap:wrap;gap:10px;padding-top:12px}.role-fields input{width:140px}.role-fields button{padding:8px;min-height:40px}.requirements-scroll{overflow-x:auto}.requirements-table{width:100%;min-width:930px;border-collapse:collapse;font-size:13px}.requirements-table th{text-align:center;color:var(--muted);font-weight:500;padding:8px 4px}.requirements-table th:nth-child(-n+3){text-align:left}.requirements-table td{padding:6px 4px;vertical-align:middle}.requirements-table input,.requirements-table select{width:100%;padding:7px;min-height:40px}.requirements-table td:first-child{width:110px}.requirements-table td:nth-child(2){width:110px}.requirements-table input[type=number]{width:49px;text-align:center;padding:6px 2px}.requirements-table .period-times{display:flex;align-items:center;gap:3px;min-width:212px}.requirements-table .time-select{width:103px;padding:6px 3px}.requirements-table td:last-child button{padding:6px 9px;min-height:40px;font-size:12px}.requirements-table .period-extra td{padding:0 5px 8px;border-bottom:1px solid var(--line);width:auto}.period-extra summary{font-size:11px;padding:2px 0 4px}.period-extra .row{padding:8px 0}.period-extra label{font-size:12px}.period-extra input[type=text],.period-extra input:not([type]){width:220px}.period-extra input[type=number]{width:85px}.skill-tags{border:1px solid var(--line);border-radius:10px;padding:12px}.skill-tags legend{font-size:13px;color:var(--muted)}.settings-dialog .formfooter{position:sticky;bottom:-22px;background:white;margin-top:0;padding-top:12px;padding-bottom:0;z-index:1}.period{overflow-wrap:anywhere}
@media(max-width:700px){dialog.settings-dialog{padding:16px}.settings-dialog .formfooter{bottom:-16px}.settings-dialog .row.between small{font-size:11px}.settings-dialog .role-fields{display:grid}.skill-tags .row{gap:12px}.requirements-scroll{border:1px solid var(--line);border-radius:8px;padding:4px}}

.time-select{font-variant-numeric:tabular-nums;width:100%;min-width:0}

.employee-note{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Employee details and all seven days share one desktop view. */
dialog.employee-dialog{max-width:900px;padding:20px;max-height:calc(100dvh - 32px)}
.employee-dialog .dialoghead{margin-bottom:16px}
.employee-dialog .dialoghead h2{font-size:19px}
.employee-dialog .form{gap:0}
.employee-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(340px,1.2fr);gap:28px}
.employee-details{display:grid;align-content:start;gap:14px;min-width:0}
.employee-details .grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.employee-details label{font-size:13px;gap:5px}
.employee-details input,.employee-details select{width:100%;min-width:0}
.employee-details details{font-size:12px;color:var(--muted)}
.employee-details summary{cursor:pointer;min-height:32px;line-height:32px}
.employee-details .skill-tags{margin:0;padding:8px 10px;min-width:0}
.employee-details .skill-tags label{min-height:44px}
.employee-times{min-width:0;border-left:1px solid var(--line);padding-left:24px}
.employee-times h3{font-size:14px;margin:0 0 12px}
.employee-times .availability{gap:6px}
.employee-times .availrow{grid-template-columns:64px minmax(0,1fr) 10px minmax(0,1fr);gap:6px;font-size:13px}
.employee-times .availrow label{min-height:44px;cursor:pointer}
.employee-times .time-select{padding:8px;font-size:14px}
.employee-dialog .formfooter{position:sticky;bottom:-20px;background:white;margin:16px 0 0;padding:12px 0 0;z-index:1}
.employee-dialog [data-error]:empty{display:none}
@media(max-width:700px){
 dialog.employee-dialog{width:calc(100% - 16px);padding:12px;max-height:calc(100dvh - 16px)}
 .employee-dialog .dialoghead{margin-bottom:10px}
 .employee-dialog .dialoghead h2{font-size:17px}
 .employee-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 .employee-details{gap:8px}
 .employee-details .grid2{gap:10px}
 .employee-details label{gap:3px}
 .employee-details details{order:1}
 .employee-times{border-left:0;padding-left:0}
 .employee-times h3{margin-bottom:6px}
 .employee-times .availability{gap:2px}
 .employee-dialog .formfooter{bottom:-12px;margin-top:10px;padding-top:10px;padding-bottom:0}
}

/* On phones, edit one requirement at a time without sideways scrolling. */
.period-mobile-heading{display:none}
@media(max-width:700px){
 .settings-dialog .requirements-scroll{border:0;padding:0;overflow:visible}
 .settings-dialog .requirements-table{display:block;min-width:0;width:100%}
 .requirements-table thead{display:none}
 .requirements-table .period-block{display:block;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;padding:6px}
 .requirements-table .period-mobile-heading{display:block}
 .requirements-table .period-mobile-heading td{display:block;width:auto;padding:0}
 .period-mobile-heading button{width:100%;text-align:left;justify-content:space-between;background:transparent;border:0;padding:8px;min-height:54px}
 .period-mobile-heading strong{display:block;font-size:14px}
 .period-mobile-heading small{display:block;margin-top:4px;font-size:12px}
 .period-mobile-heading button::after{content:'−';font-size:20px}
 .period-collapsed .period-mobile-heading button::after{content:'+'}
 .requirements-table tr[data-period-id]{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:4px}
 .requirements-table tr[data-period-id]>td{display:block;width:auto;padding:0;min-width:0}
 .requirements-table tr[data-period-id]>td:nth-child(1){grid-column:span 4}
 .requirements-table tr[data-period-id]>td:nth-child(2){grid-column:span 3}
 .requirements-table tr[data-period-id]>td:nth-child(3),.requirements-table tr[data-period-id]>td:last-child{grid-column:1 / -1}
 .requirements-table td[data-day]::before{content:attr(data-day);display:block;text-align:center;color:var(--muted);font-size:12px;margin:6px 0}
 .requirements-table input,.requirements-table select{min-height:44px;font-size:14px}
 .requirements-table input[type=number]{width:100%;padding:6px 0}
 .requirements-table tr[data-period-id]>.period-times{display:flex;min-width:0;width:100%;gap:8px}
 .requirements-table .period-times select{flex:1;width:0;padding:8px}
 .requirements-table td:last-child button{width:100%;min-height:44px}
 .requirements-table .period-extra{display:block;padding:6px 4px 0}
 .requirements-table .period-extra td{display:block;padding:0;border:0}
 .period-extra summary,.role-editor summary{min-height:44px;line-height:44px}
 .requirements-table .period-collapsed tr[data-period-id],.requirements-table .period-collapsed .period-extra{display:none}
}

.availrow label{white-space:nowrap;cursor:pointer}
.availrow input[type=checkbox]{margin:0;flex-shrink:0}
@media(max-width:700px){
 #availability{padding:14px;gap:10px}
 #availability .availability{gap:3px}
 #availability .availrow label{min-height:44px;font-size:13px}
 #availability>label{font-size:13px;gap:5px}
 #availability [data-error]:empty{display:none}
}

.live-updates:empty{display:none}
.live-updates{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:8px;margin:0 0 8px}
.live-updates button{min-height:36px;padding:6px 12px}
#access-result:empty{display:none}
#access-result{display:grid;gap:10px;overflow-wrap:anywhere}
#access-url{width:100%;min-width:0;font-size:13px}
#account button[type=submit]{width:100%}
.login{max-width:440px}
.login input{width:100%;min-width:0}
@media(max-width:700px){#account .row{gap:8px}.team .list-item>.row:last-child{flex-wrap:nowrap}}

.password-entry{display:grid;gap:7px}.password-control{position:relative}.password-control input{width:100%;min-width:0;padding-right:66px}.password-control .password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);min-height:40px;min-width:52px;padding:6px 8px;border:0;background:transparent;color:var(--green);font-size:13px}
