*{box-sizing:border-box}body{margin:0;color:#06224A;background:#fff;font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button{background:white;border:1px solid #dce2eb;border-radius:8px;padding:9px 14px;color:inherit}button:hover{background:#f2f5fa}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #F06717;outline-offset:2px}.primary{background:var(--brand,#F06717);color:white;border:0;padding:12px 20px}.primary:hover{filter:brightness(.94);background:var(--brand,#F06717)}[hidden]{display:none!important}header{height:82px;display:flex;align-items:center;gap:14px;padding:0 26px;border-bottom:1px solid #e5eaf1}header h1{font-size:21px;font-weight:600;flex:1;margin:0}.brand{width:218px;display:flex;align-items:center;gap:12px;font-size:22px;letter-spacing:-.6px}.logo{display:inline-grid;place-items:center;background:#fff4ed;color:#F06717;border-radius:12px;width:42px;height:42px;font-size:28px}.nav{display:flex;gap:6px}.nav button{border:0;font-size:25px;padding:0 10px}.layout{display:grid;grid-template-columns:248px 1fr;min-height:calc(100vh - 82px)}aside{padding:25px 22px;border-right:1px solid #e5eaf1;position:relative}aside h2{font-size:11px;text-transform:uppercase;letter-spacing:1.1px;color:#8591a3;margin-top:35px}aside p{color:#64748b}.new{box-shadow:0 3px 12px #F0671720;width:100%;font-weight:600}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:10px}.scheduled{background:#F06717}.in_progress{background:#d97706}.completed{background:#059669}.cancelled{background:#94a3b8}.aside-footer{margin-top:80px;font-size:12px;color:#94a3b8}main{padding:22px;overflow:auto;background:#fbfcfe}label{display:block;font-size:12px;font-weight:600;color:#526278}input,select,textarea{width:100%;display:block;border:1px solid #dce2eb;border-radius:7px;padding:10px;background:white;color:#06224A;margin-top:6px}header select{width:105px;margin:0}.calendar-grid{display:grid;background:white;border:1px solid #e5eaf1;border-radius:12px;overflow:hidden;min-width:620px}.day{min-height:126px;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;padding:8px}.day-head{font-size:12px;color:#64748b;margin-bottom:10px;display:flex;justify-content:space-between}.today-number{background:#F06717;color:white;border-radius:50%;padding:2px 7px}.job{display:block;text-align:left;width:100%;border:0;border-left:3px solid #F06717;border-radius:5px;background:#fff4ed;padding:7px;margin:5px 0;color:#06224A;font-size:12px;overflow:hidden}.job.in_progress{background:#fffbeb;border-color:#d97706;color:#92400e}.job.completed{background:#ecfdf5;border-color:#059669;color:#065f46}.job.cancelled{background:#f1f5f9;border-color:#94a3b8;color:#64748b}.job strong,.job span{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.weekday{background:#f8fafc;text-align:center;font-size:11px;text-transform:uppercase;letter-spacing:1px;padding:12px;color:#64748b}.agenda{max-width:1000px;margin:auto}.agenda h2{font-size:15px;margin-top:25px}.agenda .job{padding:15px;font-size:14px}.empty{padding:70px;text-align:center;color:#94a3b8}.week-grid .day{min-height:430px}.time-grid{display:grid;grid-template-columns:58px 1fr;background:white;border:1px solid #e5eaf1;border-radius:12px;overflow:hidden}.hour-label{height:68px;padding:6px;color:#94a3b8;font-size:11px;border-bottom:1px solid #edf0f5}.hour-slot{min-height:68px;padding:3px 12px;border-bottom:1px solid #edf0f5}.muted{opacity:.5}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at top,#fff4ed,transparent 70%),#f8fafc}.login-card{width:400px;max-width:calc(100vw - 32px);background:white;padding:40px;border:1px solid #e5eaf1;border-radius:20px;box-shadow:0 18px 70px #1831530a}.login h1{font-size:30px;margin:16px 0 0}.login p{color:#64748b}.login label{margin-top:18px}.login .primary{width:100%;margin-top:24px}.login small{font-size:11px;color:#94a3b8}dialog{width:650px;max-width:calc(100vw - 24px);max-height:90vh;border:1px solid #e5eaf1;border-radius:16px;padding:26px;box-shadow:0 20px 90px #0002}dialog::backdrop{background:#16263c66}.dialog-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-title h2{margin:0;font-size:22px}.dialog-title button{border:0;font-size:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}textarea{min-height:70px;resize:vertical}footer{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}#login-error,#job-error{color:#b91c1c}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1e293b;color:white;padding:12px 24px;border-radius:10px;z-index:10}.notification{padding:14px 0;border-bottom:1px solid #e5eaf1}.notification button{margin-top:8px;font-size:12px}#badge{color:#F06717}@media(max-width:900px){aside{display:none}.layout{grid-template-columns:1fr}header{flex-wrap:wrap;height:auto;padding:14px;gap:10px}.brand{width:auto}header h1{font-size:16px;min-width:150px}#logout{font-size:11px}main{padding:10px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.calendar-grid{min-width:580px}}
.calendar-grid{grid-template-columns:repeat(7,1fr)}

.mobile-only{display:none}@media(max-width:900px){.mobile-only{display:block}}

/* Keep form text readable at its native size when a phone focuses a field. */
input, select, textarea {
  font-size: 16px;
  min-width: 0;
}
main { min-width: 0; }
@media (max-width: 900px) {
  input, select, textarea { min-height: 48px; }
  label { font-size: 14px; }
  button { min-height: 44px; }
  #logout { font-size: 14px; }
  header select { width: 112px; }
  .login-card { padding: 28px 24px; }
  dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 20px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .dialog-title { gap: 12px; margin-bottom: 18px; }
  .dialog-title button { min-width: 44px; flex-shrink: 0; }
  .form-grid { gap: 14px; }
  textarea { min-height: 96px; }
  footer { flex-wrap: wrap; gap: 10px; }
  footer button { flex: 1 1 140px; }
  input[type="datetime-local"] { max-width: 100%; }
  input::-webkit-date-and-time-value { text-align: left; min-height: 1.5em; }
}
/* Addresses wrap so the full appointment location remains readable. */
.job .job-address { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; margin-top: 4px; }
.status-filter{margin-top:24px}.guide-link{display:block;margin-top:16px;color:var(--brand,#F06717)}
.check{display:flex;align-items:center;gap:10px;font-weight:400;margin:8px 0}.check input{width:20px;min-height:20px;height:20px;margin:0;flex:none}
fieldset{border:1px solid #dce2eb;border-radius:8px;margin:16px 0}#key-form label{margin-top:10px}#new-key{border:1px solid #F06717;background:#fff4ed;border-radius:8px;padding:14px;margin-top:20px}#key-value{font-family:monospace}#key-error{color:#b91c1c}
#menu-backdrop{position:fixed;inset:0;width:100%;height:100%;z-index:55;background:#16263c88;border:0;border-radius:0}
@media(max-width:900px){#sidebar{display:block;position:fixed;inset:0 auto 0 0;width:min(320px,calc(100vw - 36px));height:100dvh;background:white;z-index:60;overflow-y:auto;visibility:hidden;transform:translateX(-100%);padding:18px 22px}.sidebar-open{overflow:hidden}.sidebar-open #sidebar{visibility:visible;transform:translateX(0)}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.sidebar-heading button{font-size:24px}.aside-footer{margin-top:30px}#menu{flex-shrink:0}#toast{max-width:calc(100vw - 24px);width:max-content}}

.api-guide{max-width:1000px;margin:auto;padding:28px}.api-guide pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.7 system-ui,sans-serif}.api-guide h2{margin-top:36px}
#open-team{display:block;margin:24px 0 12px}#invite-form label,#team-members label{margin-top:12px}#create-invite{margin-top:16px}#invitation-link{background:#fff4ed;border:1px solid #F06717;border-radius:8px;padding:14px;margin-top:20px}.team-member small{display:block;margin-top:8px}#team-error,#join-error{color:#b91c1c}#join-form label{margin:16px 0}
.history-entry{padding:18px 0;border-bottom:1px solid #e5eaf1}.history-entry h3{margin:0;font-size:16px}.history-meta{color:#64748b;font-size:13px}.history-entry dt{font-weight:600;margin-top:14px}.history-entry dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.history-before{color:#64748b}.history-arrow{color:var(--brand,#F06717)}#history-error{color:#b91c1c}#history-more{margin-top:20px}
#conflict-error{color:#b91c1c}#conflict-list p,#conflict-list strong{overflow-wrap:anywhere}#conflict-list{max-height:40vh;overflow-y:auto}
#zapier{max-width:640px}#zapier p,#zapier small{overflow-wrap:anywhere}#zapier-list .notification p{display:flex;flex-wrap:wrap;gap:8px}#zapier-error{color:#b91c1c}
:root{--brand:#F06717;--navy:#06224A;--orange:#F06717}
.primary{background:var(--orange);color:var(--navy);font-weight:650}
.primary:hover{background:var(--orange)}
header{border-top:4px solid var(--navy)}
.brand{width:218px;flex-shrink:0}
.header-brand-logo{display:block;width:202px;height:64px;object-fit:cover}
.login-brand-logo{display:block;width:100%;height:112px;object-fit:cover}
.login-brand-line{margin-top:4px}
.login-card{border-top:5px solid var(--navy)}
.screen-reader-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.guide-link,.api-guide a{color:var(--navy)}
.scheduled.dot{background:var(--navy)}
.job.scheduled{background:#fff4ed;border-left-color:var(--orange);color:var(--navy)}
.today-number{background:var(--navy)}
#badge{color:var(--navy)}
.new{box-shadow:0 3px 12px #F0671720}
@media(max-width:900px){.brand{width:auto}.header-brand-logo{width:160px;height:52px}.login-brand-logo{height:100px}}
/* Spacious calendar and one clear create action. */
#workspace header{height:76px;gap:12px;border-top:0;padding:0 24px}
#workspace header h1{order:3;font-size:21px}
#workspace header .nav{order:4}
#workspace header #today{order:2}
#workspace header #notify{order:5;margin-left:auto;position:relative;border:0;padding:10px}
#notify svg{display:block}
#badge{position:absolute;top:1px;right:0;font-size:10px;font-weight:700;background:#fff;border-radius:10px}
.calendar-fab{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));width:60px;height:60px;padding:0;border:0;border-radius:18px;background:var(--orange);color:var(--navy);font-size:38px;line-height:1;box-shadow:0 5px 18px #06224A28;z-index:40}
.calendar-fab:hover{background:#ff7a2c}
.calendar-fab:focus-visible{outline:3px solid var(--navy);outline-offset:4px}
#workspace main{padding-bottom:100px;background:#fff}
.calendar-view-label{margin:0 0 24px}
.menu-signout{width:100%;margin-top:16px}
.aside-footer{margin-top:36px}
@media(max-width:900px){
 #workspace header{display:grid;grid-template-columns:40px minmax(0,1fr) 54px 40px;gap:6px;height:auto;min-height:104px;padding:8px 12px 10px;border-bottom:1px solid #edf0f5}
 #workspace header #menu{grid-column:1;grid-row:1;padding:0;border:0;font-size:23px;min-width:40px}
 #workspace header .brand{grid-column:2;grid-row:1;width:auto;min-width:0}
 .header-brand-logo{width:136px;height:46px;max-width:100%}
 #workspace header #today{grid-column:3;grid-row:1;font-size:12px;padding:6px;min-height:40px}
 #workspace header #notify{grid-column:4;grid-row:1;margin:0;padding:8px;min-height:40px}
 #workspace header h1{grid-column:1/4;grid-row:2;font-size:18px;min-width:0;line-height:1.3;font-weight:600}
 #workspace header .nav{grid-column:4;grid-row:2;justify-self:end;gap:0}
 #workspace header .nav button{font-size:23px;padding:0 6px;min-width:24px;min-height:36px}
 #workspace main{padding:0 0 100px}
 .calendar-grid{border:0;border-radius:0}
 .weekday{background:#fff}
 .calendar-fab{right:18px;bottom:calc(20px + env(safe-area-inset-bottom));width:58px;height:58px}
 .sidebar-open .calendar-fab{visibility:hidden}
}

.settings-tabs{display:flex;gap:8px;margin:12px 0 20px;overflow:auto}
.settings-tabs button{flex:1;min-width:80px;white-space:nowrap}
.settings-tabs button[aria-selected="true"]{background:#06224A;color:white;border-color:#06224A}
.settings-pane:not([hidden]){display:grid;gap:12px}
.settings-pane h3,.settings-pane p{margin:0}
.settings-pane .guide-link{display:block;padding:12px;border:1px solid #dce2ea;border-radius:8px;margin:0}
.job-main{display:block;text-align:left;width:100%;background:transparent;border:0;padding:0;color:inherit;border-radius:0;font:inherit}.job-main:hover{background:transparent}.job .job-address{display:block;text-align:left;width:100%;margin-top:5px;padding:4px 0;background:transparent;border:0;color:inherit;font:inherit;text-decoration:underline;white-space:normal}.job.admin-event{background:#eff0fa;border-left-color:#6554a4;color:#403369}.map-links{display:grid;gap:12px}.map-links a{display:block;padding:14px;border:1px solid #dce2eb;border-radius:8px;color:#06224A;font-weight:600;text-decoration:none}.map-links a:hover{background:#fff4ed}

.crm-sync-badge{font-size:.75rem;opacity:.85}#editor-change-state,#calendar-refresh-state{color:#b53c00}#editor-crm-status{font-size:.9rem;color:#526279}

.calendar-actions{padding:16px;display:grid;gap:20px}.calendar-actions section{border:1px solid #dbe2ed;border-radius:12px;padding:16px}.calendar-actions h2{font-size:1.15rem}.action-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0 20px}.draft-row{border-top:1px solid #dbe2ed;padding:16px 0}.draft-row button{margin-right:8px}#saved-drafts{max-width:560px}#draft-status{color:#52637a}#repeat-options{border-top:1px solid #dbe2ed;padding-top:12px}#open-drafts{margin:8px 16px}

.all-day-strip{padding:12px;border-bottom:2px solid #cbd5e1;background:#eff6ff}.all-day-strip h2{font-size:1rem;margin:0 0 8px}.planning-table{overflow-x:auto}.planning-table table{border-collapse:collapse;width:100%;min-width:450px}.planning-table th,.planning-table td{text-align:left;padding:10px;border-bottom:1px solid #cbd5e1}.planning-warning{color:#a32300;background:#fff1eb;padding:12px;border-left:4px solid #f97316}.planning-gap{padding:10px;margin-top:8px}.planning-slots{display:flex;flex-wrap:wrap;gap:8px}.planning-slots button{flex:1 1 180px}#planning-dialog{max-width:850px}#overrun-result article{border-bottom:1px solid #cbd5e1;padding:8px}#all-day-dates[hidden],#move-all-day[hidden]{display:none} @media(pointer:fine){[draggable=true] .job-main{cursor:grab}.hour-slot[data-drop-time]:hover{background:#eff6ff}}

/* Equal week columns prevent long addresses or titles from widening one day. */
.layout{grid-template-columns:248px minmax(0,1fr)}main{min-width:0}#calendar{max-width:100%}.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-grid .day{min-width:0}.week-scroll{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border:1px solid #e5eaf1;border-radius:12px}.week-grid{grid-template-columns:repeat(7,minmax(160px,1fr));min-width:1120px;overflow:visible;border:0;border-radius:0}.week-grid .day{padding:12px;min-height:480px}.week-grid .weekday{font-size:12px;font-weight:700;position:sticky;top:0;z-index:1}.week-grid .job{padding:10px;margin:10px 0}.week-grid .job strong,.week-grid .job span{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}.week-grid .job strong{font-size:14px;line-height:1.4;margin:4px 0}.week-grid .job-address{line-height:1.4}.week-scroll-hint{padding:0 12px;color:#526278;font-size:13px}@media(max-width:900px){.layout{grid-template-columns:minmax(0,1fr)}.week-scroll{border-radius:0;border-right:0;border-left:0}.week-grid{grid-template-columns:repeat(7,minmax(260px,1fr));min-width:1820px}.week-grid .day{padding:12px;min-height:500px}.week-grid .weekday{padding:14px}.week-grid .job{font-size:13px}}

.timeline-grid{display:grid;background:white;border:1px solid #e5eaf1;border-radius:10px;overflow:hidden;grid-template-columns:58px minmax(0,1fr)}.timeline-week{grid-template-columns:58px repeat(7,minmax(160px,1fr));min-width:1178px}.timeline-heading{padding:12px 6px;text-align:center;font-weight:600;background:#f8fafc;border-bottom:1px solid #cbd5e1}.timeline-all,.timeline-all-label{padding:6px;border-bottom:2px solid #cbd5e1;background:#eff6ff;min-width:0}.timeline-all-label{font-size:11px}.timeline-axis{grid-column:1}.timeline-hour{height:68px;font-size:11px;color:#64748b;padding:2px 4px;border-bottom:1px solid #edf0f5}.timeline-track{position:relative;min-width:0;border-left:1px solid #e5eaf1}.timeline-slot{height:68px;border-bottom:1px solid #edf0f5}.timed-event{position:absolute;padding:1px 2px;min-width:0;z-index:1;overflow:hidden}.timed-event .job{height:100%;margin:0;padding:2px 4px;overflow:hidden;display:flex;flex-direction:column}.timed-event .job-main{min-height:0;overflow:hidden;flex:1;padding:2px;text-align:left}.timed-event .job strong,.timed-event .job span{white-space:normal;overflow-wrap:anywhere}.timed-event .job-address{flex:none;padding:2px 0;max-height:36px;overflow:hidden}.timed-event .job strong{line-height:1.25;font-size:13px}.timed-event .job span{font-size:11px}.timed-event:focus-within{outline:2px solid #F06717;z-index:2}.timeline-all .job{margin:3px 0}.timeline-heading.today-heading{color:#F06717}@media(max-width:900px){.timeline-week{grid-template-columns:58px repeat(7,minmax(260px,1fr));min-width:1878px}}

.timed-event .job-main{display:flex;flex-direction:column;justify-content:flex-start;gap:1px}.timed-event .job-main strong{order:-1;flex:none;margin:0}.timed-event .job-main span{flex:none;display:block}.compact-event .job-main>span:not(:first-child){display:none}.compact-event .job-main>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-event .job-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-event .job-address{white-space:nowrap;max-height:18px;margin-top:0;line-height:14px;font-size:11px;overflow:hidden;text-overflow:ellipsis}.tiny-event .job-main>span,.tiny-event .job-address{display:none}

.timed-event .job-address{min-height:0}

.address-suggestions{border:1px solid #d8e0eb;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 4px 12px #09234214;margin-top:6px;max-width:100%}.address-suggestions[hidden]{display:none}.address-suggestions [role=listbox]{max-height:250px;overflow-y:auto}.address-suggestions [role=option]{display:block;width:100%;text-align:left;background:#fff;border:0;border-radius:0;border-bottom:1px solid #e7edf4;padding:12px;color:#082344;font-size:14px;line-height:1.45;min-height:48px;white-space:normal;overflow-wrap:anywhere}.address-suggestions [role=option]:hover,.address-suggestions [aria-selected=true]{background:#edf4fc}.address-attribution{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fff}.address-attribution span{font-family:Arial,sans-serif;font-weight:400;font-size:12px;font-style:normal;letter-spacing:normal;white-space:nowrap;color:#5e5e5e}.address-attribution a{font-size:12px;color:#355577}.address-search-status{display:block;font-size:13px;font-weight:400;line-height:1.4;margin-top:4px}.address-search-status:empty{display:none}

.maps-notice{max-width:720px;margin:40px auto;padding:24px;line-height:1.7}.maps-notice h1{line-height:1.2}.maps-notice a{color:#164b83;text-decoration:underline}

/* Event editor: compact grouped rows with one persistent save action. */
#editor{width:700px;padding:0;background:#f3f5f8;border-radius:18px;overflow-y:auto;scroll-padding-top:90px}
#editor .event-editor-bar{position:sticky;top:0;z-index:4;background:#f3f5f8;border-bottom:1px solid #dce2eb;display:grid;grid-template-columns:100px minmax(0,1fr) 140px;gap:8px;padding:14px 20px;margin:0;align-items:center}
#editor .event-editor-bar h2{text-align:center;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
#editor .event-editor-bar button{font-size:15px;min-height:44px;padding:8px 10px;border-radius:9px}
#editor #close-editor{color:#526278;text-align:left;border:0;background:transparent}
#editor #save{font-size:14px;font-weight:650;white-space:normal}
#editor .event-editor-body{padding:18px 20px 24px;display:grid;gap:20px;min-width:0}
#editor .event-editor-body>p:empty,#editor #related-visits:empty,#editor #duration-suggestion:empty,#editor #draft-status:empty{display:none}
#editor .event-group{min-width:0;margin:0}
#editor .event-group h3{font-size:12px;font-weight:650;letter-spacing:.025em;color:#64748b;margin:0 0 7px 12px}
#editor .event-group-content{background:white;border:1px solid #e2e7ee;border-radius:12px;overflow:hidden}
#editor .event-group-content>label,#editor #repeat-options>label,#editor #all-day-dates>label{display:grid;grid-template-columns:155px minmax(0,1fr);gap:12px;align-items:center;padding:11px 14px;margin:0;font-size:14px;font-weight:500;color:#06224A;border-bottom:1px solid #edf0f5}
#editor .event-group-content>label:last-child{border-bottom:0}
#editor input,#editor select,#editor textarea{margin-top:0;min-height:44px;font-size:16px;border:1px solid transparent;background:#f5f7fa;padding:9px 10px;border-radius:7px;max-width:100%}
#editor input:hover,#editor select:hover,#editor textarea:hover{border-color:#dce2eb}
#editor input[type=checkbox]{width:20px;height:20px;min-height:20px;padding:0;accent-color:var(--orange)}
#editor .event-group-content>.check{display:flex;flex-direction:row-reverse;justify-content:space-between;gap:12px;min-height:58px}
#editor #event-work-section .event-group-content>label,#editor #event-notes-section .event-group-content>label,#editor #event-location-section .event-group-content>label{display:block}
#editor #event-work-section .event-field-label,#editor #event-notes-section .event-field-label,#editor #event-location-section .event-field-label{display:block;margin-bottom:8px}
#editor textarea{min-height:86px;line-height:1.5}
#editor .event-group-content>p,#editor .event-group-content>small,#editor #repeat-options>p,#editor #all-day-dates>small{display:block;padding:0 14px;margin:9px 0;font-size:12px;line-height:1.5;color:#64748b;overflow-wrap:anywhere}
#editor #repeat-options{border:0;padding:0;margin:0}
#editor #repeat-options>p{display:none}
#editor #repeat-options:has(#repeat-count-field:not([hidden]))>p{display:block}
#editor #all-day-dates{display:block}
#editor #address-verification-controls{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 12px}
#editor #address-verification-controls:has(button:not([hidden])){display:flex}
#editor #address-verification-controls:not(:has(button:not([hidden]))){display:none}
#editor #address-maps{display:block;margin:0 14px 12px;max-width:calc(100% - 28px);text-align:left;font-size:13px;overflow-wrap:anywhere}
#editor #departure-fields{padding:12px 14px;margin:0;border-top:1px solid #edf0f5}
#editor #departure-fields>.check{display:flex;flex-direction:row-reverse;justify-content:space-between;margin:0;min-height:36px;font-size:14px;color:#06224A}
#editor #travel-calculation-fields{border-top:1px solid #edf0f5;margin-top:12px;padding-top:12px;display:grid;gap:10px}
#editor #travel-calculation-fields p{margin:0;font-size:12px;color:#64748b;line-height:1.5;overflow-wrap:anywhere}
#editor #travel-calculation-fields .form-grid{grid-template-columns:1fr 1fr;gap:12px}
#editor #travel-calculation-fields input{margin-top:6px}
#editor #automatic-travel-state{display:none}
#editor #event-work-section .event-group-content>div{padding:0 14px 12px}
#editor #event-work-section button,#editor #address-verification-controls button,#editor #use-suggested-origin,#editor #estimate-departure{font-size:13px;padding:8px 10px;min-height:40px}
#editor footer{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#editor footer:not(:has(button:not([hidden]))){display:none}
#editor footer button{width:100%;min-width:0;font-size:13px;min-height:44px;overflow-wrap:anywhere}
#editor #quote-followup-editor{background:white;border:1px solid #e2e7ee;border-radius:12px;padding:14px}
#editor #job-error{padding:12px;border-radius:8px;background:#fff1f1;color:#b91c1c}
#editor #job-error:empty{display:none}
@media(max-width:600px){
 #editor{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}
 #editor .event-editor-bar{grid-template-columns:65px minmax(0,1fr) 110px;padding:10px 12px;gap:4px}
 #editor .event-editor-bar h2{font-size:16px}
 #editor .event-editor-body{padding:16px 12px 24px;gap:18px}
 #editor .event-group-content>label,#editor #repeat-options>label,#editor #all-day-dates>label{grid-template-columns:112px minmax(0,1fr);gap:8px;padding:10px 12px;font-size:13px}
 #editor .event-group-content>label:has(input[type=datetime-local]){display:block}
 #editor .event-group-content>label:has(input[type=datetime-local]) .event-field-label{display:block;margin-bottom:8px}
 #editor input[type=datetime-local]{width:100%;min-width:0;text-align:left}
 #editor #travel-calculation-fields .form-grid{grid-template-columns:1fr 1fr}
}

#editor #draft-status{font-size:12px;line-height:1.45;margin:0 4px;color:#64748b}
#editor .address-suggestions input{background:white}

#editor #travel-calculation-fields label{font-size:13px;font-weight:500;color:#06224A}
#editor #travel-calculation-fields .form-grid{align-items:end}
@media(max-width:600px){#editor .event-editor-bar{grid-template-columns:65px minmax(0,1fr) 65px}}

@media(max-width:360px){#editor .event-group-content>label:has(select),#editor #repeat-options>label:has(select){display:block}#editor .event-group-content>label:has(select) .event-field-label{display:block;margin-bottom:8px}#editor #repeat-options>label:has(select) select{margin-top:6px}}

/* Consistent calendar navigation and responsive month overview. */
.calendar-view-switcher{display:flex;gap:4px;padding:4px;background:#eff2f6;border:1px solid #e0e6ee;border-radius:11px;max-width:460px;margin:0 0 18px}
.calendar-view-switcher button{flex:1;min-width:0;min-height:44px;border:0;background:transparent;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:550;line-height:1.2}
.calendar-view-switcher button[aria-pressed=true]{background:#fff;color:var(--navy);box-shadow:0 1px 5px #06224a14;font-weight:700}
.calendar-view-switcher button:hover{background:#fff8f2}
#workspace header .nav{gap:2px}
#workspace header .nav button{min-width:44px;min-height:44px;padding:4px 10px;font-size:26px;line-height:1;border:1px solid #e2e7ee;border-radius:9px}
#workspace header .nav button:disabled{opacity:.4;cursor:default}
#workspace main #calendar-refresh-state:empty{display:none}
#workspace .calendar-grid .day-head{align-items:center;margin-bottom:6px;min-height:24px}
#workspace .calendar-grid .day-head .today-number{display:inline-grid;place-items:center;min-width:26px;min-height:26px;border-radius:50%;padding:0}
#workspace .calendar-grid .job{margin:4px 0;padding:5px 6px}
#workspace .calendar-grid .job .job-main strong{font-size:12px;margin:0;line-height:1.4}
#workspace .calendar-grid .job .job-main>span{font-size:10px}
#workspace .calendar-grid .job .job-main>span:not(:first-child),#workspace .calendar-grid .job .job-address{display:none}
#workspace .agenda{padding:0 8px}
#workspace .agenda h2{font-size:14px;color:#526278;border-bottom:1px solid #e5eaf1;padding-bottom:9px}
#workspace .agenda .job{border-radius:9px;padding:14px;margin:8px 0}
@media(max-width:900px){
 #workspace header h1{grid-column:1/3;min-width:0;margin:0;font-size:16px}
 #workspace header .nav{grid-column:3/5;justify-self:end;align-self:center;gap:2px}
 #workspace header .nav button{min-width:44px;min-height:44px;padding:4px 8px}
 .calendar-view-switcher{margin:12px 10px 14px;max-width:none}
 .calendar-view-switcher button{padding:8px 4px;font-size:12px}
 #workspace .calendar-grid{min-width:0;width:100%;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #e5eaf1}
 #workspace .calendar-grid .day{min-width:0;min-height:94px;padding:4px 2px}
 #workspace .calendar-grid .weekday{padding:9px 1px;font-size:10px;letter-spacing:0}
 #workspace .calendar-grid .day-head{justify-content:center;font-size:11px}
 #workspace .calendar-grid .job{padding:4px 2px;border-left-width:2px;font-size:10px}
 #workspace .calendar-grid .job .job-main strong{font-size:10px}
 #workspace .calendar-grid .job .job-main>span{font-size:9px}
 #workspace .week-scroll-hint{font-size:12px;margin:8px 0 12px;color:#64748b}
 #workspace .timeline-grid{border-radius:0;border-left:0;border-right:0}
}

/* Calendar AI scheduling */
#editor .event-scheduling-action{padding:12px 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}#editor .event-scheduling-action button{min-height:44px;font-size:15px;font-weight:600}#editor .event-scheduling-action small{color:#64748b;font-size:13px}#ai-scheduling-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:20px;overflow:auto}#ai-scheduling-dialog .dialog-title{gap:12px}#ai-scheduling-dialog h2{font-size:23px}#ai-scheduling-dialog input,#ai-scheduling-dialog textarea{min-width:0;font-size:16px}#ai-scheduling-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#ai-scheduling-travel-row{grid-column:1/-1}.ai-scheduling-card{padding:16px;border:1px solid #dce3ec;border-radius:14px;margin:12px 0;background:#f8fafc}.ai-scheduling-card p{margin:8px 0;overflow-wrap:anywhere}.ai-scheduling-card button{min-height:44px}.ai-scheduling-detail{font-size:13px;color:#526277;line-height:1.5}#ai-scheduling-results strong{overflow-wrap:anywhere}#ai-scheduling-dialog #ai-scheduling-status{line-height:1.5}@media(max-width:380px){#ai-scheduling-dialog .form-grid{grid-template-columns:minmax(0,1fr)}#ai-scheduling-dialog{padding:16px}}

.duration-ai-hint{display:block;margin:8px 0;color:#596b82;font-size:13px;line-height:1.5}
#duration-suggestion{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#duration-suggestion p{margin:10px 0}
#duration-suggestion ul{margin:5px 0 12px;padding-left:22px}
#duration-suggestion li{margin:5px 0}
#duration-suggestion .duration-ai-result{font-size:16px;font-weight:700;color:#08294f}
#duration-suggestion .duration-ai-heading{font-weight:600;margin-bottom:4px}
#duration-suggestion .duration-ai-detail{color:#596b82;font-size:13px}
#duration-suggestion .duration-ai-warning{color:#a63312}

#delete-event,#confirm-delete-event{color:#b42318;background:#fff1ef;border:1px solid #f4c7c1}#delete-event-dialog .dialog-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}#delete-event-error{color:#b42318}

.visit-time-row,.visit-time-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}.visit-time-row span{flex:1;min-width:130px}#timing-state p{margin:8px 0}

/* Editor work time, visit navigation and actions. */
#editor #editor-crm-status{margin:0;width:fit-content;max-width:100%;padding:5px 10px;border-radius:20px;background:#edf1f6;font-size:12px;line-height:1.4;color:#526278}
#editor #editor-crm-status[data-state=synced],#editor #editor-crm-status[data-state=shared_job]{background:#eaf5ef;color:#256448}
#editor #editor-crm-status[data-state=error]{background:#fff0ec;color:#a73b23}
#editor .event-activity-card{background:#fff;border:1px solid #e2e7ee;border-radius:13px;padding:16px;min-width:0}
#editor .event-activity-card h3{font-size:14px;font-weight:650;line-height:1.3;margin:0 0 14px;color:#526278}
#editor #job-work-panel:has(#timing-state:empty),#editor #job-visits-panel:has(#return-visit-list:empty){display:none}
#editor .work-time-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
#editor .work-time-caption{display:block;font-size:12px;line-height:1.5;color:#64748b}
#editor .work-time-total{display:block;font-size:28px;font-weight:700;letter-spacing:-.5px;line-height:1.3;margin:3px 0;color:#06224a}
#editor .work-time-badge{font-size:12px;line-height:1.4;padding:5px 9px;border-radius:16px;background:#f1f4f8;color:#526278;max-width:45%;text-align:center}
#editor .work-time-badge[data-state=active]{background:#eaf5ef;color:#256448}
#editor .work-time-badge[data-state=correction]{background:#fff3e5;color:#9b4b07}
#editor #timing-state .work-time-note{margin:12px 0 0;font-size:13px;color:#64748b;line-height:1.5}
#editor .work-visit-records{border-top:1px solid #edf0f5;margin-top:14px}
#editor .visit-time-row{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;margin:0;padding:12px 0;border-bottom:1px solid #edf0f5}
#editor .visit-time-row:last-child{border-bottom:0;padding-bottom:0}
#editor .work-visit-copy{flex:1;min-width:0}
#editor .work-visit-copy strong{display:block;font-size:14px;font-weight:600;line-height:1.4}
#editor .visit-time-row span{display:block;min-width:0;flex:unset;font-size:12px;color:#64748b;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
#editor .work-visit-correct{flex:none;font-size:12px;min-height:44px;padding:6px 9px;background:transparent;border:0;color:#426080;border-radius:8px}
#editor .work-visit-correct:hover{background:#f3f6fa}
#editor #return-visit-list{display:grid;gap:0;margin:0}
#editor #job-visits-panel{padding-bottom:4px}
#editor .scheduled-visit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-top:1px solid #edf0f5;border-radius:0;padding:12px 0;background:transparent;text-align:left;min-height:64px;width:100%;margin:0}
#editor .scheduled-visit-row:hover{background:#f8fafc}
#editor .scheduled-visit-copy{display:block;min-width:0}
#editor .scheduled-visit-copy strong{display:block;font-size:14px;font-weight:600;line-height:1.4}
#editor .scheduled-visit-copy>span{display:block;color:#64748b;font-size:13px;line-height:1.5;margin-top:3px}
#editor .scheduled-visit-end{flex:none;font-size:22px;color:#8796a9}
#editor .scheduled-visit-row[aria-current=true] .scheduled-visit-end{font-size:11px;padding:4px 8px;border-radius:12px;color:#b95313;background:#fff1e8}
#editor #event-work-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;align-items:start}
#editor .event-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
#editor .event-primary-actions:not(:has(button:not([hidden]))){display:none}
#editor .event-primary-actions button{min-height:46px;padding:10px 12px;font-size:13px;font-weight:550;line-height:1.4;height:auto}
#editor .event-primary-actions .work-primary{background:#06224a;border-color:#06224a;color:white}
#editor .event-primary-actions .work-primary:hover{background:#12365e}
#editor .event-tools{background:white;border:1px solid #e2e7ee;border-radius:12px;overflow:hidden}
#editor .event-tools:not(:has(button:not([hidden]))){display:none}
#editor .event-tools summary{cursor:pointer;min-height:46px;padding:12px 14px;font-size:13px;font-weight:550;color:#526278}
#editor .event-tools summary:focus-visible{outline:3px solid #f06717;outline-offset:-3px}
#editor .event-tool-list{display:grid;border-top:1px solid #edf0f5;padding:0 12px}
#editor .event-tool-list button{min-height:44px;margin:0;padding:11px 2px;text-align:left;border:0;border-bottom:1px solid #edf0f5;border-radius:0;background:white;font-size:13px}
#editor .event-tool-list button:last-child{border-bottom:0}
#editor .event-tool-list #delete-event{background:transparent;color:#b42318;border:0}
#editor .visit-time-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}
@media(max-width:360px){#editor .event-activity-card{padding:14px}#editor .event-primary-actions{gap:8px}#editor .event-primary-actions button{padding:10px 8px;font-size:12px}}


/* Scheduling card follows the work and visit controls. */
#editor #event-schedule-section{background:white;border:1px solid #e2e7ee;border-radius:13px;padding:16px}
#editor #event-schedule-section h3{margin:0 0 6px;font-size:14px;font-weight:650;line-height:1.3;letter-spacing:0;color:#526278}
#editor #event-schedule-section .event-group-content{border:0;border-radius:0;overflow:visible;background:transparent}
#editor #event-schedule-section .event-group-content>label,#editor #event-schedule-section #repeat-options>label,#editor #event-schedule-section #all-day-dates>label{padding:11px 0}
#editor #event-schedule-section input[type=checkbox]{accent-color:#06224a}
#editor #event-schedule-section .event-scheduling-action{padding:12px 0;gap:8px;align-items:flex-start;flex-direction:column;border-bottom:1px solid #edf0f5}
#editor #open-ai-scheduling{background:#06224a;border:1px solid #06224a;color:white;min-height:46px;padding:10px 14px;border-radius:8px;font-size:13px;font-weight:550;line-height:1.4}
#editor #open-ai-scheduling:hover{background:#12365e;border-color:#12365e}
#editor #event-schedule-section .event-scheduling-action small{color:#64748b;font-size:12px;line-height:1.5}
@media(max-width:360px){#editor #event-schedule-section{padding:14px}}

/* Optional AI actions share a secondary button style. */
#editor #open-ai-scheduling,#editor #suggest-duration,#editor #apply-duration{background:white;color:#06224a;border:1px solid #cbd6e3;min-height:46px;padding:10px 14px;border-radius:8px;font-size:13px;font-weight:550;line-height:1.4}
#editor #open-ai-scheduling:hover,#editor #suggest-duration:hover,#editor #apply-duration:hover{background:#f2f6fb;border-color:#9bafc6}
#editor #event-work-section .duration-ai-hint{margin:8px 0 0;font-size:12px;color:#64748b;line-height:1.5}

/* Customer details remain in the form when the disclosure is closed. */
#editor .customer-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;min-height:56px;padding:14px;font-size:16px;font-weight:600;color:#06224a;line-height:1.4}
#editor .customer-summary::-webkit-details-marker{display:none}
#editor .customer-summary::marker{content:''}
#editor #customer-summary-name{min-width:0;overflow-wrap:anywhere}
#editor .customer-chevron{flex:none;color:#64748b}
#editor .customer-details[open] .customer-chevron{transform:rotate(180deg)}
#editor .customer-summary:focus-visible{outline:3px solid #f06717;outline-offset:-3px;border-radius:9px}
#editor #customer-fields{border-top:1px solid #edf0f5}
#editor #customer-fields>label{display:grid;grid-template-columns:155px minmax(0,1fr);gap:12px;align-items:center;padding:11px 14px;margin:0;font-size:14px;font-weight:500;color:#06224a;border-bottom:1px solid #edf0f5}
#editor #customer-fields>label:last-child{border-bottom:0}
@media(max-width:600px){#editor #customer-fields>label{grid-template-columns:112px minmax(0,1fr);gap:8px;padding:10px 12px;font-size:13px}#editor .customer-summary{padding:12px}}
@media(max-width:360px){#editor #customer-fields>label:has(select){display:block}#editor #customer-fields>label:has(select) .event-field-label{display:block;margin-bottom:8px}}

/* CRM suggestions remain inside the customer disclosure and wrap on phones. */
.crm-customer-results{grid-column:1/-1;border:1px solid #cbd5e1;border-radius:10px;background:#fff;max-height:250px;overflow:auto;margin-top:6px;box-shadow:0 4px 12px #08234710}
.crm-customer-results[hidden],#crm-property-row[hidden]{display:none!important}
.crm-customer-results [role=option]{padding:11px 12px;border-bottom:1px solid #e2e8f0;cursor:pointer;color:#082347}
.crm-customer-results [role=option]:last-child{border-bottom:0}
.crm-customer-results [role=option]:hover,.crm-customer-results [aria-selected=true]{background:#edf3fa}
.crm-customer-results strong,.crm-customer-results span{display:block;overflow-wrap:anywhere}
.crm-customer-results strong{font-size:14px}.crm-customer-results span{font-size:12px;color:#52647b;line-height:1.5;margin-top:3px}
.crm-search-status{grid-column:1/-1;display:block;color:#52647b;font-size:12px;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}.crm-search-status:empty{display:none}

#calendar.timeline-viewport{overflow-y:auto;overscroll-behavior-y:contain;overflow-anchor:none;min-height:140px;scrollbar-gutter:stable}
#finish-duration-preview{color:#526278;font-size:13px;line-height:1.5}

/* Return-visit feedback stays visible within the booking dialog. */
#return-visit-dialog .dialog-title{align-items:flex-start;gap:12px}
#return-visit-title{overflow-wrap:anywhere}
#return-visit-form{display:grid;gap:14px}
#return-visit-form label{margin:0}
#return-visit-form .check{display:flex;align-items:flex-start;gap:10px}
#return-visit-form .check input{width:20px;height:20px;flex:0 0 20px;margin:2px 0}
#return-visit-form .primary{background:#06224a;color:#fff;font-weight:600;min-height:44px}
#return-visit-status{margin:0;color:#52647c}
#return-visit-status.form-error{padding:12px;border:1px solid #fecaca;border-radius:8px;background:#fff1f2;color:#b91c1c}
#return-visit-form[aria-busy="true"]{cursor:progress}

#editor .customer-phone-actions{display:flex;gap:8px;justify-content:flex-end;padding:0 14px 12px;border-bottom:1px solid #edf0f5}
#editor .customer-phone-actions a,#editor .customer-phone-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid #dce2eb;border-radius:8px;color:#06224a;background:#f4f7fb;text-decoration:none;font-size:14px;font-weight:600}
#editor #customer-phone{position:relative;min-width:0;touch-action:manipulation;user-select:text;-webkit-user-select:text}

.work-visit-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
#editor .work-visit-delete{border:0;color:#b42318;background:transparent;min-height:44px;padding:8px 10px;font-size:13px}
#delete-time-error{color:#b42318}
#delete-time-dialog .dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}

.graftside-mfa{box-sizing:border-box;width:min(420px,calc(100% - 32px));max-height:90dvh;overflow:auto;border:1px solid #dce3ec;border-radius:18px;padding:24px;background:#fff;color:#092546;box-shadow:0 16px 64px #0005;font:16px/1.5 system-ui,sans-serif}.graftside-mfa::backdrop{background:#09254688}.graftside-mfa .mfa-secret{white-space:pre-wrap;overflow-wrap:anywhere;user-select:all;font-size:16px}.graftside-mfa .mfa-label{display:block}.graftside-mfa .mfa-input{display:block;box-sizing:border-box;width:100%;font:inherit;padding:12px;margin:8px 0;border:1px solid #bfcbd9;border-radius:8px}.graftside-mfa .mfa-error{color:#b4261b}.graftside-mfa .mfa-actions{display:flex;gap:12px;margin-top:20px}.graftside-mfa .mfa-verify{margin-left:auto;background:#123a60;color:#fff;padding:12px 18px;border:0;border-radius:10px}.graftside-mfa button{font:inherit;min-height:44px;cursor:pointer}.graftside-mfa input[type=checkbox]{width:20px;height:20px;vertical-align:middle}.graftside-mfa [hidden]{display:none}

.suite-signin-button{background:#14375f;color:white;border:0;border-radius:10px;min-height:46px;font-weight:650}.suite-signin-hint{font-size:13px;line-height:1.5;color:#566980;margin:10px 0 16px}#login-form details{border-top:1px solid #dce4ee;padding-top:14px}#login-form summary{color:#566980;cursor:pointer;margin-bottom:12px}

/* An attached, quieter travel band keeps the appointment at its booked time. */
.timed-event.has-travel{display:flex;flex-direction:column;gap:0}
.timed-event.has-travel>.job{height:auto;min-height:0;flex:1 1 0;border-top-left-radius:0;border-top-right-radius:0}
.travel-band{display:flex;align-items:center;gap:5px;flex:0 0 var(--travel-height);height:var(--travel-height);min-height:0!important;width:100%;margin:0;padding:0 6px;border:0;border-bottom:1px solid #d6dde6;border-left:3px dotted #a9b4c3;border-radius:6px 6px 0 0;background:#edf0f5;color:#5c6a7e;text-align:left;font-size:12px;font-weight:500;line-height:16px;overflow:hidden;cursor:pointer;box-shadow:none}
.travel-band:hover{background:#e3e8ef;color:#0d284c;filter:none}
.travel-band:focus-visible{outline:2px solid #ef6b17;outline-offset:-2px}
.travel-band-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.travel-car{flex:none}
.travel-dots{display:none}
.travel-only .travel-band{border-radius:6px;flex:1 1 auto;height:100%}
.short-travel .travel-band{font-size:10px;line-height:11px;padding-top:0;padding-bottom:0}
.short-travel .travel-car{width:11px;height:11px}
.job .job-travel-summary{color:#64748b;font-size:11px;font-weight:400}
.timed-event.has-travel .job-travel-summary{display:none}
.timeline-axis{position:sticky;left:0;background:#fff;z-index:3}
.timeline-all-label{position:sticky;left:0;z-index:4}
.timeline-heading:first-child{position:sticky;left:0;z-index:5}
@media(max-width:900px){.timeline-week{grid-template-columns:58px repeat(7,minmax(160px,1fr));min-width:1178px}}

/* Current local time — GraftSide orange, anchored to the exact day/week grid. */
.timeline-now-label{
 position:absolute;right:0;z-index:8;
 transform:translateY(-50%);border-radius:5px 0 0 5px;
 background:#f06717;color:#fff;padding:2px 3px;
 font-size:10px;font-weight:700;line-height:16px;font-variant-numeric:tabular-nums;
 white-space:nowrap;pointer-events:none;box-shadow:0 0 0 1px #fff;
}
.timeline-now-line{
 position:absolute;left:0;right:0;height:2px;z-index:5;
 background:#f06717;box-shadow:0 1px 0 rgba(255,255,255,.65);
 pointer-events:none;
}
.timeline-now-line::before{
 content:"";position:absolute;left:-4px;top:-3px;
 width:8px;height:8px;border-radius:50%;background:#f06717;
}
.timeline-now-label[hidden],.timeline-now-line[hidden]{display:none!important}
