.template-menu{position:absolute;z-index:10;display:grid;min-width:320px;gap:10px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
.template-menu form{display:flex;gap:7px}.template-menu input,.template-menu select{min-width:140px}
.project-color-form{flex:0 0 auto}.project-color-input{width:38px;height:38px;min-height:38px;padding:2px;border-radius:8px;cursor:pointer}.project-color-input::-webkit-color-swatch-wrapper{padding:1px}.project-color-input::-webkit-color-swatch{border:0;border-radius:4px}.project-color-input::-moz-color-swatch{border:0;border-radius:4px}
.view-switch{display:inline-flex;padding:3px;background:#edf2f4;border-radius:9px}.view-switch a{padding:7px 12px;color:var(--muted);border-radius:7px;font-size:.76rem;font-weight:800;text-decoration:none}.view-switch a.active{background:#fff;color:var(--navy);box-shadow:0 1px 5px rgba(7,27,42,.12)}.overview-calendar-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-4px 0 14px}.calendar-legend{display:flex;flex-wrap:wrap;gap:14px}.calendar-legend span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.72rem;font-weight:700}.legend-swatch{width:12px;height:12px;border-radius:3px;border:1px solid}.legend-swatch.available{background:#eef8fa;border-color:#75cde2;border-style:dashed}.legend-swatch.pending{background:#fff1cf;border-color:#d49b22}.legend-swatch.approved{background:#ddf5eb;border-color:#26966e}.overview-calendar{box-shadow:none}.overview-calendar-card small{overflow:hidden;color:#354e5c;font-size:.62rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.overview-calendar-card.available{background:#eef8fa;border-color:#75cde2;border-style:dashed;border-left-style:solid;opacity:.82}.overview-calendar-card.pending{background:#fff1cf;border-color:#d49b22;border-left-color:#d49b22}.overview-calendar-card.approved{background:#ddf5eb;border-color:#26966e;border-left-color:#26966e}
.calendar-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.time-grid{--half-hour-height:34px;display:grid;grid-template-columns:76px repeat(7,minmax(170px,1fr));grid-template-rows:57px calc(var(--half-hour-height)*38);min-width:1266px}
.time-corner,.grid-day-head{position:sticky;top:0;z-index:8;display:flex;align-items:center;background:var(--navy);color:#fff;border-right:1px solid rgba(255,255,255,.14);border-bottom:1px solid var(--line)}
.time-corner{left:0;z-index:9;justify-content:center;padding:8px;color:#9eb2bd;font-size:.62rem;line-height:1.2;text-align:center;text-transform:uppercase;letter-spacing:.06em}
.grid-day-head{justify-content:flex-start;gap:10px;padding:10px 12px;font-size:.75rem;text-transform:uppercase;letter-spacing:.07em}.grid-day-head strong{display:grid;width:30px;height:30px;margin-left:auto;place-items:center;border-radius:50%;font-size:1rem}.grid-day-head.today strong{background:var(--cyan);color:var(--navy)}.day-head-add{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;padding:0;color:var(--cyan);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.3);border-radius:50%;font-size:1.25rem;line-height:1;cursor:pointer;transition:background .15s,transform .15s}.day-head-add:hover,.day-head-add:focus-visible{background:var(--cyan);color:var(--navy);transform:scale(1.06)}.day-head-add:focus-visible{outline:2px solid #fff;outline-offset:2px}
.time-axis{position:sticky;left:0;z-index:7;height:calc(var(--half-hour-height)*38);background:#f7fafb;border-right:1px solid var(--line)}
.time-label{position:relative;height:var(--half-hour-height);padding:5px 8px 0 0;color:#657783;border-top:1px solid #d4e0e5;font-size:.65rem;text-align:right}.time-label:nth-child(even){color:#8b9aa2;border-top-color:#e6edef}.time-label.midnight{position:absolute;right:0;bottom:-8px;border:0}
.day-track{position:relative;height:calc(var(--half-hour-height)*38);border-right:1px solid var(--line);background-color:#fff;background-image:repeating-linear-gradient(to bottom,#d4e0e5 0,#d4e0e5 1px,transparent 1px,transparent calc(var(--half-hour-height)*2)),repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--half-hour-height) - 1px),#e6edef calc(var(--half-hour-height) - 1px),#e6edef var(--half-hour-height))}.day-track.today{background-color:#f4fbfd}
.grid-schedule-card{position:absolute;top:calc(var(--start)*var(--half-hour-height) + 2px);left:calc(var(--lane)*(100%/var(--lanes)) + 2px);width:calc(100%/var(--lanes) - 4px);height:max(30px,calc(var(--span)*var(--half-hour-height) - 4px));z-index:3;display:flex;flex-direction:column;gap:1px;overflow:hidden;padding:7px 23px 6px 8px;background:#eef8fa;background:color-mix(in srgb,var(--project) 13%,white);color:var(--ink);border:1px solid #9aabb4;border-color:color-mix(in srgb,var(--project) 55%,#9aabb4);border-left:4px solid var(--project);border-radius:6px;box-shadow:0 2px 7px rgba(7,27,42,.12);font-size:.7rem;line-height:1.25}
.grid-schedule-card strong,.grid-schedule-card span,.grid-schedule-card time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grid-schedule-card span,.grid-schedule-card time{color:#526875;font-size:.64rem}.grid-schedule-card .icon-button{position:absolute;top:2px;right:3px;padding:2px}
@media(max-width:680px){.template-menu{position:fixed;left:14px;right:14px;min-width:0}.template-menu form{flex-direction:column}.time-grid{grid-template-columns:68px repeat(7,190px)}.overview-calendar-tools{align-items:flex-start;flex-direction:column}.section-head{align-items:flex-start}.view-switch{flex:0 0 auto}}
