.fp-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.fp-head h1{font-size:25px;margin:0 0 5px}.fp-head p{margin:0;color:#667085}.fp-tabs,.fp-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.fp-toolbar{padding:16px;background:white;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:12px}.fp-toolbar label{display:flex;align-items:center;gap:7px;font-size:13px}.fp-toolbar .input,.fp-toolbar .select{width:auto;min-height:36px}.fp-caption{padding:5px 0 13px;color:#64748b;font-size:13px}.fp-scroll{overflow:auto;border:1px solid #d8e0ec;border-radius:12px;background:white;max-height:70vh}.fp-timeline{width:calc(180px + var(--fp-width));min-width:100%;position:relative}.fp-times,.fp-row{display:flex}.fp-times{position:sticky;top:0;z-index:5;height:48px;background:#f1f5f9;font-size:12px;color:#475569}.fp-name{position:sticky;left:0;width:180px;min-width:180px;box-sizing:border-box;padding:15px;background:#fff;border-right:1px solid #d8e0ec;z-index:4;display:flex;flex-direction:column;justify-content:center;font-size:13px;overflow:hidden}.fp-times .fp-name{background:#eaf0f8;font-weight:700}.fp-name span{font-size:11px;color:#94a3b8}.fp-row{min-height:78px;border-top:1px solid #e2e8f0}.fp-track,.fp-hour-track{position:relative;width:var(--fp-width);min-width:var(--fp-width)}.fp-track{height:78px;touch-action:none;background-image:linear-gradient(to right,#e8edf5 1px,transparent 1px);background-size:var(--fp-step) 100%;user-select:none}.fp-row:nth-child(even) .fp-track{background-color:#fbfcfe}.fp-hour{position:absolute;top:0;height:48px;border-left:1px solid #d8e0ec;padding:15px 6px;box-sizing:border-box}.fp-block{position:absolute;top:12px;height:52px;border-radius:7px;box-shadow:0 2px 4px #0f172a20;box-sizing:border-box;padding:7px 10px;color:white;overflow:hidden;cursor:grab;touch-action:none;font-size:12px;min-width:3px;text-shadow:0 1px 2px #0008}.fp-block strong,.fp-block>span:not(.fp-handle){display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fp-block>span:not(.fp-handle){font-size:11px;opacity:.95;margin-top:3px}.fp-block:focus-visible{outline:3px solid #111827;outline-offset:2px}.fp-handle{position:absolute;top:0;bottom:0;width:7px;cursor:ew-resize;background:#ffffff20}.fp-left{left:0}.fp-right{right:0}.fp-ghost{position:absolute;top:8px;height:60px;z-index:6;border:2px dashed #2563eb;background:#dbeafecc;border-radius:7px;padding:15px 8px;box-sizing:border-box;color:#1e40af;font-size:12px;pointer-events:none}.fp-dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:8px}.fp-modal{max-width:600px!important;max-height:90vh;overflow:auto}.fp-customer-detail{background:#f1f5f9;border-radius:8px;padding:10px;color:#475569;font-size:13px}.free-mode #primary-nav{display:none}.free-mode .shell{display:block}.free-mode #content,.free-mode .content{width:100%;max-width:none}.free-mode .view-panel:not(#view-free){display:none!important}#view-free{width:100%;min-width:0}.fp-tabs button{white-space:nowrap}@media(max-width:800px){.fp-head{flex-direction:column}.fp-name{width:130px;min-width:130px}.fp-timeline{width:calc(130px + var(--fp-width))}.fp-toolbar{padding:10px;gap:8px}.fp-toolbar label{font-size:12px}.fp-modal{width:95vw}.fp-head h1{font-size:22px}}

.free-mode .shell{max-width:1700px;width:100%;padding:18px 20px;box-sizing:border-box}.free-mode .nav-swipe-hint{display:none}

.fp-readonly .fp-block{cursor:pointer}

.fp-week-range{font-size:17px;line-height:1.5;margin:14px 0 2px}
.fp-week{width:100%;min-width:calc(180px + var(--fp-days)*156px);table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}
.fp-week th,.fp-week td{padding:10px;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;vertical-align:top;text-align:left;background:#fff}
.fp-week thead th{position:sticky;top:0;z-index:5;background:#edf2f9;font-size:12px;padding:15px 10px}
.fp-week th:first-child{position:sticky;left:0;width:160px;z-index:4;overflow-wrap:anywhere}
.fp-week thead th:first-child{z-index:6}
.fp-week th>span{display:block;margin-top:5px;font-size:11px;color:#64748b}
.fp-week td{height:98px}
.fp-week td.fp-weekend,.fp-week th.fp-weekend{background:#fffbed}
.fp-week .fp-week-today{box-shadow:inset 0 -3px #2563eb}
.fp-week-card{display:block;width:100%;box-sizing:border-box;min-height:56px;border:0;border-radius:7px;padding:7px 8px;text-align:left;margin:0 0 7px;cursor:grab;line-height:1.4}
.fp-week-card>span{display:block;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.fp-week-card>strong{display:block;font-size:12px;overflow-wrap:anywhere;white-space:normal;margin-top:3px}
.fp-week-card:focus-visible,.fp-week-add:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.fp-week-add{display:block;width:100%;padding:2px 8px;background:transparent;border:1px dashed #cbd5e1;border-radius:5px;color:#64748b;font-size:18px;min-height:28px}
.fp-week td.fp-week-drop{background:#dbeafe;outline:2px dashed #2563eb;outline-offset:-3px}
.fp-print-users{display:grid;gap:9px;max-height:32vh;overflow:auto;border:1px solid #d8e0ec;border-radius:8px;padding:12px}
.fp-print-users label{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}

/* The personal plan is a vertical agenda with no horizontal timeline or time filter. */
.free-mode.role-user .shell{max-width:760px}
.fp-readonly{max-width:720px;margin-inline:auto}
.fp-readonly .fp-head{gap:12px;margin-bottom:18px}
.fp-readonly .fp-head p{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.fp-readonly .fp-head h1{font-size:25px;line-height:1.2}
.fp-readonly .fp-tabs [data-fp-action="day"]{display:none}
.fp-readonly button{min-height:44px}
.fp-own-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px}
.fp-own-date{min-width:0;display:flex;align-items:stretch}
.fp-own-date .input{display:block;min-width:0;width:100%;max-width:100%;min-height:44px;font-size:16px;line-height:1.25;text-align:center;-webkit-appearance:none;appearance:none}
.fp-date-arrow{min-width:44px;padding:0!important;font-size:28px;line-height:1}
.fp-own-nav-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fp-own-nav-actions button{font-size:14px;padding:9px 10px}
.fp-own-day{padding:21px 2px 14px}
.fp-own-day h2{font-size:17px;line-height:1.45;margin:0 0 4px;overflow-wrap:anywhere}
.fp-own-day p{font-size:13px;margin:0;color:#667085;overflow-wrap:anywhere}
.fp-agenda{display:grid;gap:14px;list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid #dbe3f0}
.fp-agenda li{min-width:0;position:relative}
.fp-agenda li:before{content:"";width:10px;height:10px;background:#64748b;border:3px solid #f5f7fb;border-radius:50%;position:absolute;left:-21px;top:26px}
.fp-agenda-card{display:grid;gap:10px;text-align:left;width:100%;min-width:0;padding:17px 18px;border:1px solid #dce4ef;border-left:5px solid var(--fp-customer-color,#2563eb);border-radius:12px;background:#fff;color:#182230;box-shadow:0 2px 5px #10182805;touch-action:pan-y}
.fp-agenda-card:hover{border-top-color:#94a3b8;border-right-color:#94a3b8;border-bottom-color:#94a3b8;background:#fafcff}
.fp-agenda-card:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.fp-agenda-time{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:17px;line-height:1.4;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fp-agenda-customer{font-size:17px;line-height:1.45;overflow-wrap:anywhere;white-space:normal}
.fp-agenda-open{font-size:13px;color:#475569;line-height:1.4}
.fp-own-empty{padding:24px 18px;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;line-height:1.55}
.fp-own-empty strong{font-size:16px}.fp-own-empty p{margin:8px 0 0;font-size:14px;color:#667085}
.fp-own-hint{font-size:13px;line-height:1.5;color:#475569;margin:20px 2px 8px}.fp-own-live{line-height:1.5;margin:0 2px;font-size:12px}
.fp-own-details{display:grid;gap:6px;margin:10px 0 4px;min-width:0}
.fp-own-details dt{font-size:12px;font-weight:650;color:#667085;margin-top:10px}
.fp-own-details dd{font-size:16px;line-height:1.5;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.fp-modal:has(.fp-own-details) .icon-button{min-height:44px;min-width:44px;font-size:24px}
@media(max-width:600px){
 .free-mode.role-user .shell{padding:16px max(12px,env(safe-area-inset-right)) 24px max(12px,env(safe-area-inset-left))}
 .fp-readonly .fp-head{align-items:stretch;gap:10px}
 .fp-readonly .fp-tabs{justify-content:flex-end}
 .fp-readonly .fp-tabs button{font-size:13px;padding:8px 12px}
 .fp-readonly .fp-head h1{font-size:24px}
 .fp-own-nav{padding:10px;gap:7px}
 .fp-agenda-card{padding:16px 14px}
 .fp-modal:has(.fp-own-details){width:100%!important;max-width:100%!important;max-height:calc(100dvh - 32px);padding:16px}
 .free-mode.role-user .topbar .brand{flex-wrap:wrap;align-items:center}
 .free-mode.role-user .topbar-right{flex:1;min-width:0;flex-wrap:wrap;align-items:center}
 .free-mode.role-user .topbar-right .user{overflow-wrap:anywhere;flex:1}
 .free-mode.role-user .topbar select,.free-mode.role-user #logout{min-height:44px;min-width:44px;font-size:16px}
}
