.tt-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 9px;flex-wrap:wrap}
.tt-caption{font-size:11px;font-weight:650;color:#60714f;font-variant-numeric:tabular-nums}
.tt-legend{display:flex;flex-wrap:wrap;gap:7px 13px}
.tt-legend-item{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#747e69}
.tt-legend-item:before{content:"";width:7px;height:7px;border-radius:2px;background:var(--event-line)}
.tt-hint{max-width:850px;font-size:10px;line-height:1.9;color:#859077;margin-bottom:13px}
.tt-viewport{max-height:620px;overflow:auto;overscroll-behavior:contain;border:1px solid #d7decc;border-radius:10px;background:#fffef9;scrollbar-width:thin;scrollbar-color:#c9d0bc #f4f5eb}
.tt-surface{display:grid;grid-template-columns:60px minmax(0,1fr);padding:17px 12px 18px 0}
.tt-axis{position:sticky;left:0;background:#fffef9;z-index:5;border-right:1px solid #dbe1d0}
.tt-tick{position:absolute;right:10px;transform:translateY(-50%);font-size:9px;font-weight:450;color:#a1a88f;font-variant-numeric:tabular-nums;line-height:16px;background:#fffef9}
.tt-tick.is-hour{font-size:11px;font-weight:700;color:#738264}
.tt-canvas{position:relative;isolation:isolate;border-bottom:1px solid #dfe4d5}
.tt-empty-slot{position:absolute;left:0;width:100%;border:0;border-top:1px dashed #e6e9df;border-radius:0;background:transparent;text-align:right;padding:8px 11px;color:#9ba58c;font-size:10px;display:flex;align-items:flex-start;justify-content:flex-end}
.tt-empty-slot.is-hour{border-top:1px solid #dfe4d5}
.tt-empty-slot>span{opacity:0;transition:opacity .15s;background:#f0f4e8;border-radius:4px;padding:2px 6px}
.tt-empty-slot:hover,.tt-empty-slot:focus-visible{background:#f2f5eb}
.tt-empty-slot:hover>span,.tt-empty-slot:focus-visible>span{opacity:1}
.tt-empty-slot:focus-visible{outline:2px solid #a1b08c;outline-offset:-2px;z-index:1}
.tt-event,.tt-legend-item{--event-bg:#eef0e7;--event-line:#899779;--event-ink:#60734f}
[data-kind="escape"].tt-event,[data-kind="escape"].tt-legend-item{--event-bg:#e4eddd;--event-line:#78926b;--event-ink:#44643a}
[data-kind="crime"].tt-event,[data-kind="crime"].tt-legend-item{--event-bg:#e9e6ed;--event-line:#a193ad;--event-ink:#756381}
[data-kind="meal"].tt-event,[data-kind="meal"].tt-legend-item{--event-bg:#f8e6d7;--event-line:#d99567;--event-ink:#96613c}
[data-kind="cafe"].tt-event,[data-kind="cafe"].tt-legend-item{--event-bg:#f1e9d6;--event-line:#baa06c;--event-ink:#897240}
[data-kind="travel"].tt-event,[data-kind="travel"].tt-legend-item{--event-bg:#e4eced;--event-line:#8da7ad;--event-ink:#617d83}
[data-kind="activity"].tt-event,[data-kind="activity"].tt-legend-item{--event-bg:#f0e8e0;--event-line:#b39a85;--event-ink:#876a53}
.tt-event{position:absolute;z-index:2;background:var(--event-bg);border:1px solid color-mix(in srgb,var(--event-line) 45%,white);border-left:4px solid var(--event-line);border-radius:6px;min-height:2px;box-shadow:0 2px 3px #3c492a04;transition:box-shadow .15s}
.tt-event:hover,.tt-event:focus-within{z-index:6;box-shadow:0 3px 9px #35412a16}
.tt-event-main{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;width:100%;height:100%;border:0;border-radius:4px;background:transparent;color:var(--event-ink);padding:10px 12px;overflow:hidden;line-height:1.4}
.tt-event-kind{font-size:8px;letter-spacing:.3px;opacity:.8}
.tt-event-title{font-size:13px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}
.tt-event-time{font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;opacity:.85}
.tt-event-location{font-size:9px;opacity:.7;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:4px}
.tt-event.is-movable .tt-event-main{padding-right:31px}
.tt-event.is-compact .tt-event-main{padding:5px 10px;gap:1px;justify-content:center}
.tt-event.is-compact.is-movable .tt-event-main{padding-right:30px}
.tt-event.is-compact .tt-event-kind,.tt-event.is-compact .tt-event-location{display:none}
.tt-event.is-compact .tt-event-title{font-size:11px}
.tt-event.is-compact .tt-event-time{font-size:9px}
.tt-event.is-tiny .tt-event-main{padding:0 5px;flex-direction:row;gap:5px;align-items:center;justify-content:flex-start;overflow:visible;min-height:14px;position:relative;top:-2px}
.tt-event.is-tiny .tt-event-title{font-size:9px;line-height:12px;background:var(--event-bg);border-radius:2px;padding:0 2px;max-width:70%}
.tt-event.is-tiny .tt-event-time{font-size:8px;line-height:12px;background:var(--event-bg);padding-right:2px}
.tt-move,.tt-resize{position:absolute;border:0;color:var(--event-ink);background:transparent;touch-action:none;user-select:none;-webkit-user-select:none;z-index:2}
.tt-move{right:2px;top:2px;width:25px;height:25px;padding:0;font-size:17px;line-height:25px;cursor:grab;opacity:.65;border-radius:4px}
.tt-move:hover,.tt-move:focus-visible{background:#ffffff73;opacity:1}
.tt-resize{left:20%;width:60%;bottom:-1px;height:9px;padding:0;cursor:ns-resize;border-radius:4px}
.tt-resize:after{content:"";display:block;width:26px;height:2px;background:var(--event-line);border-radius:3px;margin:3px auto;opacity:.55}
.tt-resize:hover:after,.tt-resize:focus-visible:after{opacity:1;height:3px}
.tt-event.is-tiny .tt-move{top:-4px;height:18px;line-height:18px;font-size:13px;width:20px;right:0;background:var(--event-bg)}
.tt-event.is-tiny .tt-resize{left:4px;width:19px;bottom:-3px}
.tt-event.is-tiny .tt-resize:after{width:15px}
.tt-event.is-dragging{z-index:8;box-shadow:0 5px 16px #3c492a30;opacity:.92;outline:2px solid var(--event-line);outline-offset:1px}
.tt-event.is-dragging .tt-move{cursor:grabbing}
.tt-is-saving .tt-event{opacity:.72}
.tt-gaps,.tt-short-events{display:flex;gap:7px 9px;flex-wrap:wrap;align-items:center;margin-top:12px}
.tt-strip-label{font-size:10px;color:#8b947e;margin-right:3px}
.tt-gap,.tt-short-item{font-size:10px;line-height:1.5;background:#f8f9f1;border:1px solid #dbe3cf;color:#748564;padding:5px 8px;border-radius:5px;font-variant-numeric:tabular-nums}
.tt-gap:hover,.tt-short-item:hover{background:#edf3e3;border-color:#afbf9c}
.tt-short-item{background:#fffdf7}
.tt-more-gaps{font-size:10px;color:#8f9981}
.tt-status{font-size:11px;color:#9a7747;margin-top:9px;line-height:1.7}
.tt-status:empty{display:none}
@media(max-width:720px){.tt-viewport{max-height:540px}.tt-toolbar{gap:8px}.tt-legend{gap:5px 11px}.tt-hint{font-size:9px}.tt-surface{grid-template-columns:49px minmax(0,1fr);padding-right:8px}.tt-tick{right:7px;font-size:8px}.tt-tick.is-hour{font-size:10px}.tt-event-main{padding:8px}.tt-event-title{font-size:12px}.tt-event-location{font-size:8px}.tt-event-time{font-size:9px}.tt-empty-slot>span{font-size:9px}.tt-caption{font-size:10px}}
@media(prefers-reduced-motion:reduce){.tt-empty-slot>span,.tt-event{transition:none}}
.tt-range-form{margin:16px 0;padding:15px 17px;border:1px solid #d7decc;border-radius:10px;background:#f8faf3}
.tt-range-heading strong{font-size:12px;color:#526544}
.tt-range-heading p{margin:5px 0 12px;font-size:11px;line-height:1.7;color:#78836c}
.tt-range-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.tt-range-controls label{display:grid;gap:5px;font-size:10px;color:#748068}
.tt-range-controls input{width:145px;min-height:38px;font-size:13px;font-variant-numeric:tabular-nums}
.tt-range-controls button{min-height:38px}
.tt-range-status{margin-top:9px;font-size:11px;line-height:1.7;color:#85734f}
.tt-range-status:empty{display:none}
@media(max-width:480px){.tt-range-form{padding:12px}.tt-range-controls{gap:9px}.tt-range-controls label{flex:1;min-width:110px}.tt-range-controls input{width:100%}.tt-range-controls button{flex:1;white-space:nowrap}}
.tt-event.is-tentative{border-style:dashed;border-width:2px;box-shadow:none}
.tt-event.is-tentative .tt-event-kind{font-weight:700}
.schedule-card.is-tentative{border-style:dashed}

/* Fit the full shared range on screen; detailed mode retains drag handles. */
.tt-view-controls{display:flex;gap:3px;padding:3px;background:#e5eadc;border:1px solid #d2dbc6;border-radius:7px}
.tt-view-controls>button{font-size:11px;min-height:34px;padding:6px 11px;border:0;border-radius:5px;color:#6e7e5f;background:transparent;white-space:nowrap}
.tt-view-controls>button[aria-pressed="true"]{background:#fffef9;color:#425b34;box-shadow:0 1px 3px #3c492a12;font-weight:700}
.tt-view-controls>button:focus-visible{outline:2px solid #748b5c;outline-offset:1px}
.tt-overview .tt-viewport{max-height:none;overflow:hidden;overscroll-behavior:auto}
.tt-overview .tt-surface{grid-template-columns:47px minmax(0,1fr);padding:12px 4px 12px 0;min-width:0}
.tt-overview .tt-tick{right:6px;font-size:9px}
.tt-overview .tt-event{border-radius:4px;border-left-width:3px;min-height:1px}
.tt-overview .tt-event-main,.tt-overview .tt-event.is-compact .tt-event-main{padding:2px 4px;gap:1px;justify-content:center}
.tt-overview .tt-event-kind,.tt-overview .tt-event-location{display:none}
.tt-overview .tt-event-title{font-size:11px;line-height:14px}
.tt-overview .tt-event-time{font-size:9px;line-height:12px}
.tt-overview .tt-event.is-tiny .tt-event-main{position:static;min-height:0;height:100%;overflow:hidden;flex-direction:column;align-items:flex-start;justify-content:center;padding:0 3px}
.tt-overview .tt-event.is-tiny .tt-event-title{max-width:100%;font-size:10px;line-height:10px;padding:0}
.tt-overview .tt-event.is-tiny .tt-event-time{display:none}
.tt-overview .tt-event.is-micro .tt-event-main{opacity:0}
.tt-overview .tt-empty-slot{padding:0;overflow:hidden}
.tt-overview .tt-empty-slot>span{font-size:9px;padding:1px 3px}
.tt-overview .tt-legend{gap:4px 10px}
.tt-overview .tt-hint{margin-bottom:8px}
@media(max-width:720px){.tt-view-controls{margin-left:auto}.tt-toolbar{margin-top:12px}.tt-overview .tt-legend{width:100%}.tt-overview .tt-event-main{padding:2px 3px}.tt-overview .tt-event.is-tentative{border-width:1px 1px 1px 3px}}
