/* Timeline On Phones (17 October). Everything here is scoped to html.soyl-phone-tl, which
   soyl-phone-timeline.js sets on phones only; computers never match it. */
#phone-tl{display:none}
html.soyl-phone-tl #phone-tl{display:block;--ptl-ink:#242423;--ptl-muted:#6b6b67;--ptl-line:#e6e6e0;--ptl-axis:#242423;--ptl-paper:#fafaf7;--ptl-card:#fffefb;--ptl-aqua:#91d9c1;--ptl-orange:#d06f56}
html.soyl-phone-tl #phone-tl,.ptl-headbar{--ptl-ink:#242423;--ptl-muted:#6b6b67;--ptl-line:#e6e6e0;--ptl-axis:#242423;--ptl-paper:#fafaf7;--ptl-card:#fffefb;--ptl-aqua:#91d9c1;--ptl-orange:#d06f56}
html[data-theme="dark"].soyl-phone-tl #phone-tl{--ptl-ink:#efe9e2;--ptl-muted:#b3aca4;--ptl-line:#3a4244;--ptl-axis:#efe9e2;--ptl-paper:#171b1d;--ptl-card:#283032}
/* The phone view replaces the page's own timeline box, with the heart too (Nicolas, 18 October: no combined view box). */
html.soyl-phone-tl #main .canvas-workspace,html.soyl-phone-tl #timeline-density-controls,html.soyl-phone-tl #hidden-timelines,html.soyl-phone-tl #feeling-graphs,html.soyl-phone-tl #density-detail{display:none!important}
html.soyl-phone-tl #main .canvas-area{padding:14px 16px 8px}
/* The top row (18 October): Names On/Off and + Event at the left, the heart and Vertical / Horizontal at the right;
   the timeline chips on the row below. No title: each event carries its own. */
.ptl-top{display:flex;align-items:center;gap:8px;min-height:40px}
/* Names, Split / Collapse, + Event, the heart and Vertical / Horizontal always share one line (Nicolas, 19 October). */
.ptl-lead{display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0}
.ptl-tools{display:flex;align-items:center;gap:8px;flex:none;margin-left:auto}
.ptl-icon{display:grid;place-items:center;width:42px;height:40px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--ptl-card);color:var(--ptl-ink)}
.ptl-new,.ptl-new:hover{flex:none;height:40px;padding:0 12px;border:1px solid var(--ptl-orange);border-radius:10px;background:var(--ptl-orange);color:#fff;font-size:15px;font-weight:700;white-space:nowrap}
.ptl-icon.on{background:var(--ptl-aqua);border-color:var(--ptl-aqua);color:#242423}
.ptl-stage{position:relative;margin-top:8px}
.ptl-scroll{position:relative;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-y}
.ptl-scroll::-webkit-scrollbar{display:none}
.ptl-body{position:relative;width:100%}
.ptl-lines{position:absolute;left:0;top:0;pointer-events:none}
.ptl-grid{stroke:var(--ptl-line);stroke-width:1}
.ptl-axis{stroke:var(--ptl-axis);stroke-width:2}
.ptl-axis.future{stroke:#9b9b94;stroke-width:1.6;stroke-dasharray:5 6}
.ptl-today{stroke:var(--ptl-orange);stroke-width:1.8;stroke-dasharray:7 6}
.ptl-year{position:absolute;left:0;transform:translateY(-50%);font-size:13px;color:var(--ptl-muted)}
.ptl-density{fill:var(--ptl-ink)}
.ptl-split{stroke:var(--ptl-line);stroke-width:1.5;stroke-dasharray:3 4}
.ptl-locked{display:inline-flex;vertical-align:-1px;margin-right:4px;color:var(--ptl-muted);font-style:normal}
.ptl-horizon{position:absolute;font-size:13px;color:var(--ptl-muted)}
.ptl-dot{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;padding:0;border:0;border-radius:50%;background:transparent}
.ptl-dot:after{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px var(--ptl-paper)}
/* The heart: each dot shows the feelings, Then on the left half and Now on the right, ringed in the timeline's colour. */
.ptl-dot.feel:after{inset:5px;background:linear-gradient(90deg,var(--then) 50%,var(--now) 50%);box-shadow:0 0 0 2px var(--c),0 0 0 4px var(--ptl-paper)}
.ptl-dot.nofeel:after{inset:9px;opacity:.45}
/* A session's draft moment (31 October): an empty dot with a dotted outline until the client submits it. */
.ptl-dot.draft:after{inset:6px;background:var(--ptl-paper);border:2.5px dotted var(--c)}
.ptl-scroll.feel .ptl-label span,.ptl-scroll.feel .ptl-hlabel{opacity:.9}
.ptl-dot:hover,.ptl-label:hover{background:transparent}
.ptl-label{position:absolute;display:block;padding:0;border:0;border-radius:6px;background:transparent;text-align:left;color:var(--ptl-ink);line-height:1.25}
.ptl-label b{display:block;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ptl-label b,.ptl-label span{width:fit-content;max-width:100%;background:var(--ptl-paper)}
.ptl-label span{display:block;margin-top:2px;font-size:13px;color:var(--ptl-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Tap A Dot (P2): the picked event and the box sliding up from the bottom edge. */
.ptl-dot.picked:after{inset:4px;box-shadow:0 0 0 3px var(--ptl-paper),0 0 0 7px rgba(36,36,35,.14)}
.ptl-label.picked b{font-weight:800}
.ptl-sheet-layer{position:fixed;inset:0;z-index:60;pointer-events:none}
.ptl-sheet-layer.open{pointer-events:auto}
.ptl-sheet{position:absolute;left:8px;right:8px;bottom:8px;padding:10px 16px calc(16px + env(safe-area-inset-bottom));border:1px solid #deded9;border-radius:18px;background:#fffefb;color:#242423;box-shadow:0 -8px 30px rgba(0,0,0,.14);transform:translateY(calc(100% + 24px));transition:transform .26s cubic-bezier(.2,.8,.3,1)}
.ptl-sheet-layer.open .ptl-sheet{transform:none}
.ptl-grip{width:40px;height:5px;margin:0 auto 10px;border-radius:3px;background:#d6d6cf}
.ptl-sheet-head{display:flex;align-items:center;gap:12px}
.ptl-sheet-lock{flex:none;display:grid;place-items:center;width:44px;height:44px;margin-left:auto;padding:0;border:1px solid #deded9;border-radius:12px;background:#fffefb;color:#242423}
.ptl-sheet-lock.on{border-color:#242423;background:#242423;color:#fff}
.ptl-sheet-feel{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 14px}
.ptl-sheet-feel span{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px;border:1px solid #deded9;border-radius:10px;font-size:16px;font-weight:600}
.ptl-sheet-feel i{width:14px;height:14px;border-radius:50%}
.ptl-sheet-feel small{font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#6b6b67}
.ptl-sheet-feel em{font-size:15px;color:#6b6b67}
.ptl-sheet-dot{flex:none;width:16px;height:16px;border-radius:50%}
.ptl-sheet h3{margin:0;min-width:0;font:700 21px/1.25 Arial,Helvetica,sans-serif;overflow-wrap:anywhere}
.ptl-sheet-meta{margin:8px 0 14px;font-size:15px;line-height:1.4;color:#6b6b67}
.ptl-sheet-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ptl-sheet-buttons button{height:48px;padding:0 12px;border-radius:12px;font-size:16px;font-weight:600}
.ptl-sheet-close{border:1px solid #deded9;background:#fffefb;color:#242423}
.ptl-sheet-open,.ptl-sheet-open:hover{border:1px solid #91d9c1;background:#91d9c1;color:#242423}
.ptl-sheet-close:hover{background:#f2f2ee}
html[data-theme="dark"] .ptl-sheet{background:#283032;border-color:#3d4648;color:#efe9e2}
html[data-theme="dark"] .ptl-sheet-meta{color:#b3aca4}
html[data-theme="dark"] .ptl-sheet-close,html[data-theme="dark"] .ptl-sheet-lock:not(.on),html[data-theme="dark"] .ptl-sheet-feel span{background:#283032;border-color:#3d4648;color:#efe9e2}
html[data-theme="dark"] .ptl-sheet-lock.on{background:#efe9e2!important;border-color:#efe9e2!important;color:#242423!important}
html[data-theme="dark"] .ptl-sheet-feel small,html[data-theme="dark"] .ptl-sheet-feel em{color:#b3aca4}
html[data-theme="dark"] #phone-tl .ptl-new{background:#d06f56!important;border-color:#d06f56!important;color:#fff!important}
@media(prefers-reduced-motion:reduce){.ptl-sheet{transition:none}}
.ptl-sheet-layer:not(.open) .ptl-sheet{visibility:hidden;transition:transform .26s cubic-bezier(.2,.8,.3,1),visibility 0s .26s}
/* Two Side By Side (P3): timeline chips, lane names that swap, Names On/Off. */
.ptl-chiprow{display:flex;align-items:center;gap:8px;margin:8px -16px 0}
.ptl-chips{flex:1;min-width:0;display:flex;gap:8px;padding:2px 16px;overflow-x:auto;scrollbar-width:none}
.ptl-chips::-webkit-scrollbar{display:none}
.ptl-chip{flex:none;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ptl-muted);font-size:16px;white-space:nowrap}
.ptl-chip i{width:11px;height:11px;border-radius:50%}
.ptl-chip.on{background:var(--ptl-card);color:var(--ptl-ink);font-weight:700;border-color:#cfcfc8}
.ptl-chip.ptl-names{padding:0 11px;font-size:15px}
.ptl-chip.ptl-names.on{background:var(--ptl-aqua);border-color:var(--ptl-aqua);color:#242423}
.ptl-lanes{position:sticky;top:0;z-index:3;height:34px;background:var(--ptl-paper)}
html:not([data-theme="dark"]) .ptl-lanes{background:var(--paper,#fafaf7)}
.ptl-lane-cell{position:absolute;top:0;height:34px;min-width:0;display:flex;align-items:center;padding-left:4px}
.ptl-lane-name{max-width:100%;height:32px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.ptl-lane-name:hover{background:transparent}
.ptl-lane-name.lifted{position:relative;z-index:4;background:var(--ptl-card);border-color:#cfcfc8;box-shadow:0 6px 18px rgba(0,0,0,.16)}
.ptl-scroll.two .ptl-label b{font-size:15px}
.ptl-scroll.two .ptl-label span{font-size:12px}
/* Crowded names get smaller (Nicolas, 19 October), down to an 8 px title with no date. */
.ptl-scroll .ptl-label.s1 b{font-size:12px}.ptl-scroll .ptl-label.s1 span{font-size:10px;margin-top:1px}
.ptl-scroll .ptl-label.s2{line-height:1.1}.ptl-scroll .ptl-label.s2 b{font-size:10px}.ptl-scroll .ptl-label.s2 span{font-size:8px;margin-top:0}
.ptl-scroll .ptl-label.s3{line-height:1.2}.ptl-scroll .ptl-label.s3 b{font-size:8px}.ptl-scroll .ptl-label.s3 span{display:none}
/* Sideways (P4): the Vertical / Horizontal / Lock switch and the left-to-right timeline. */
.ptl-switch{display:flex;flex:none;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--ptl-card)}
.ptl-switch button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:0;background:transparent;color:var(--ptl-ink)}
.ptl-switch button+button{border-left:1px solid var(--line)}
.ptl-switch button[aria-pressed="true"]{background:var(--ptl-aqua);color:#242423}
.ptl-top{flex-wrap:wrap}
.ptl-top .ptl-chiprow{order:3;flex:1 0 calc(100% + 32px);min-width:0;margin-top:4px}
.ptl-scroll.horizontal{overflow:auto;touch-action:pan-x}
.ptl-hwrap{position:relative}
/* Sideways each name sits at the left edge, level with its line (Nicolas, 19 October), and stays there while scrolled. */
.ptl-hnames{position:sticky;left:0;z-index:3;background:var(--ptl-paper)}
html:not([data-theme="dark"]) .ptl-hnames{background:var(--paper,#fafaf7)}
html[data-theme="dark"] #phone-tl .ptl-hnames{background:var(--ptl-bg-dark,#171b1d)}
.ptl-hbody{position:absolute;left:0;top:0}
.ptl-hname{position:absolute;height:26px;padding:0 6px;font-size:14px;background:var(--ptl-paper)}
html:not([data-theme="dark"]) .ptl-hname{background:var(--paper,#fafaf7)}
.ptl-hyear{position:absolute;transform:translateX(-50%);font-size:13px;color:var(--ptl-muted)}
.ptl-hhorizon{position:absolute;font-size:13px;color:var(--ptl-muted);white-space:nowrap}
.ptl-hlabel{position:absolute;transform:translateY(-50%);height:22px;padding:0 2px;border:0;border-radius:6px;background:transparent;color:var(--ptl-ink);font-size:15px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ptl-hlabel:hover{background:transparent}
.ptl-hlabel.picked{font-weight:800}
/* Sideways phone: one row for the title, chips and switch; the page scrolls like an upright phone. */
html.soyl-phone-tl.soyl-phone-land body{height:auto;overflow:visible}
html.soyl-phone-tl.soyl-phone-land main{display:flex;flex-direction:column;height:auto;min-height:0}
html.soyl-phone-tl.soyl-phone-land #main .canvas-area{overflow:visible;padding:8px 16px 4px}
html.soyl-phone-tl.soyl-phone-land #main .sidebar{height:auto;max-height:none;position:static}
html.soyl-phone-land .ptl-top{flex-wrap:nowrap;gap:12px}
html.soyl-phone-land .ptl-top .ptl-lead{flex:none}
html.soyl-phone-land .ptl-top .ptl-chiprow{order:2;flex:1 1 auto;margin:0;min-width:0}
html.soyl-phone-land .ptl-top .ptl-chips{padding:2px 0}
html.soyl-phone-land .ptl-top .ptl-tools{order:3;margin-left:0}
html.soyl-phone-land .ptl-stage{margin-top:6px}
/* Dark appearance: the app's dark button style must not paint boxes behind the names, nor hide the aqua. */
html[data-theme="dark"] #phone-tl .ptl-dot,html[data-theme="dark"] #phone-tl .ptl-label,html[data-theme="dark"] #phone-tl .ptl-hlabel,html[data-theme="dark"] #phone-tl .ptl-lane-name:not(.lifted):not(.on){background:transparent!important;border-color:transparent!important;box-shadow:none}
html[data-theme="dark"] #phone-tl .ptl-label,html[data-theme="dark"] #phone-tl .ptl-hlabel{color:var(--ptl-ink)!important}
html[data-theme="dark"] #phone-tl .ptl-chip.ptl-names.on,html[data-theme="dark"] #phone-tl .ptl-icon.on,html[data-theme="dark"] #phone-tl .ptl-switch button[aria-pressed="true"],html[data-theme="dark"] .ptl-sheet-open{background:#91d9c1!important;border-color:#91d9c1!important;color:#242423!important}
html[data-theme="dark"] #phone-tl .ptl-lanes{background:linear-gradient(to right,var(--ptl-bg-dark,#171b1d) 78%,transparent)}
html[data-theme="dark"] #phone-tl .ptl-lanes{background:var(--ptl-bg-dark,#171b1d)}
/* Full-screen panels (18 October): Search, Timelines, Guide, the bin, A.I. and timeline settings cover the screen;
   the cross at the top right closes them. */
html.soyl-phone-tl body.ptl-full{overflow:hidden}
html.soyl-phone-tl body.ptl-full #panel.sidebar{position:fixed!important;inset:0!important;z-index:80;display:block!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:58px 16px calc(24px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;overscroll-behavior:contain;border:0!important;border-radius:0!important;box-shadow:none!important;background:var(--paper,#fafaf7)!important}
html.soyl-phone-tl.soyl-phone-land body.ptl-full #panel.sidebar{padding-top:16px!important;padding-right:68px!important}
html.soyl-phone-tl body.tl-panel-closed #panel.sidebar{display:none!important}
#ptl-panel-x{display:none}
html.soyl-phone-tl body.ptl-full.ptl-full-editor #panel#panel.sidebar{padding-top:calc(16px + env(safe-area-inset-top))!important;padding-right:16px!important}
html.soyl-phone-tl body.ptl-full-editor #ptl-panel-x{display:none!important}
html.soyl-phone-tl body.ptl-full #ptl-panel-x{position:fixed;top:calc(10px + env(safe-area-inset-top));right:12px;z-index:81;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #deded9;border-radius:10px;background:#fffefb;color:#242423}
html[data-theme="dark"].soyl-phone-tl body.ptl-full #ptl-panel-x{background:#283032!important;border-color:#3d4648!important;color:#efe9e2!important}
/* One row of header icons on an upright phone (18 October): + Event moved into the timeline's own top row. */
html.soyl-phone-tl header.atelier-brand-header #add-event{display:none!important}
@media (max-width:600px){
html.soyl-phone-tl header.atelier-brand-header{--hb:min(34px,calc((100vw - 20px - 33px) / 12));flex-wrap:nowrap!important;gap:3px!important;align-items:center}
html.soyl-phone-tl header.atelier-brand-header .brand,html.soyl-phone-tl header.atelier-brand-header .brand-title-row,html.soyl-phone-tl header.atelier-brand-header .header-identity{flex:none!important;width:auto!important;gap:3px!important;margin:0!important}
/* Home and the timeline (Nicolas, 20 October): the page icons on the left, the rest pushed to the right edge, the space between kept for the session button. */
html.soyl-phone-tl header.atelier-brand-header .header-actions{flex:none!important;width:auto!important;flex-wrap:nowrap!important;gap:3px!important;margin:0 0 0 auto!important}
html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header :is(#atelier-home-button,#story-chat,#atelier-account,#account-signout,#header-listen,#header-beta,#trash,#ai-events,#manage-timelines,#guide,#search-events,#timeline-settings){width:var(--hb)!important;min-width:0!important;flex:0 0 var(--hb)!important;height:34px!important;padding:0!important}
html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header :is(#atelier-home-button,#story-chat,#atelier-account,#account-signout,#header-listen,#header-beta,#trash,#ai-events,#manage-timelines,#guide,#search-events,#timeline-settings) svg{width:min(20px,calc(var(--hb) - 8px));height:min(20px,calc(var(--hb) - 8px))}
html.soyl-phone-tl header.atelier-brand-header #ai-events{font-size:12px!important;letter-spacing:0}
}
/* Smooth zoom (18 October): while pinching, everything slides along time from the point between the fingers
   (--o) by the stretch (--ps); the lines are stretched by the drawing itself and keep their thickness. */
.ptl-lines path{vector-effect:non-scaling-stroke}
.ptl-scroll.pinching .ptl-lines{transform-origin:0 0;will-change:transform}
.ptl-scroll.pinch-y .ptl-body>:is(.ptl-dot,.ptl-label,.ptl-horizon){transform:translateY(calc((var(--y) - var(--o)) * (var(--ps) - 1) * 1px))}
.ptl-scroll.pinch-y .ptl-body>.ptl-year{transform:translateY(calc((var(--y) - var(--o)) * (var(--ps) - 1) * 1px - 50%))}
.ptl-scroll.pinch-x .ptl-body>:is(.ptl-dot,.ptl-hhorizon){transform:translateX(calc((var(--x) - var(--o)) * (var(--ps) - 1) * 1px))}
.ptl-scroll.pinch-x .ptl-body>.ptl-hlabel{transform:translate(calc((var(--x) - var(--o)) * (var(--ps) - 1) * 1px),-50%)}
.ptl-scroll.pinch-x .ptl-body>.ptl-hyear{transform:translateX(calc((var(--x) - var(--o)) * (var(--ps) - 1) * 1px - 50%))}
/* Nicolas, 19 October: the line is dotted before birth, back to the parents' date, with a small end mark;
   Today is a thin continuous line; while pinching, the names' connecting strokes wait for the fingers to lift;
   swiping the bottom box down moves only the box. */
.ptl-axis.before{stroke:#9b9b94;stroke-width:1.6;stroke-dasharray:2 5;stroke-linecap:round}
.ptl-axis-end{stroke:#9b9b94;stroke-width:1.6;stroke-linecap:round}
.ptl-today{stroke-width:1;stroke-dasharray:none}
.ptl-scroll.pinching .ptl-conn{opacity:0}
.ptl-sheet{touch-action:none;overscroll-behavior:contain}
/* Hold an event, then slide (18 October): it lifts and follows the finger; the date it will land on shows beside it. */
.ptl-dot,.ptl-label,.ptl-hlabel{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.ptl-dot.moving{z-index:5}
.ptl-dot.moving:after{inset:3px;box-shadow:0 0 0 3px var(--ptl-paper),0 4px 14px rgba(0,0,0,.25)}
.ptl-label.moving,.ptl-hlabel.moving{z-index:5;opacity:.85}
.ptl-bubble{position:fixed;z-index:90;padding:6px 10px;border-radius:10px;background:#242423;color:#fff;font:700 14px/1.2 Arial,Helvetica,sans-serif;pointer-events:none;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.ptl-bubble[hidden]{display:none}
.ptl-body.windowed{overflow:hidden}
/* Deep zoom (19 October): the date of the place in view, while zoomed to days or hours. */
.ptl-when{position:absolute;z-index:5;top:6px;right:0;padding:4px 10px;border:1px solid var(--line);border-radius:10px;background:var(--ptl-card);color:var(--ptl-ink);font-size:13px;font-weight:700;pointer-events:none}
.ptl-scroll.pinching~.ptl-when{opacity:0}
/* Many timelines side by side (Nicolas, 19 October): each lane's name sits just above the start of its line, in a
   box: the name is the lane's handle (hold, then drag). The names stay at the top of the screen once the start
   has scrolled away. Split / Collapse sits between Names and + Event. */
.ptl-lanes{position:sticky;top:0;z-index:3;height:36px;background:transparent!important;pointer-events:none}
.ptl-lane-cell{position:absolute;top:0;height:36px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;padding:0;pointer-events:none}
.ptl-lane-cell>*{pointer-events:auto}
.ptl-lanes .ptl-lane-name{height:30px}
.ptl-lanes .ptl-lane-name,.ptl-hname.boxed{background:var(--ptl-paper);padding:0 8px;border-color:#cfcfc8;cursor:grab}
html:not([data-theme="dark"]) .ptl-lanes .ptl-lane-name,html:not([data-theme="dark"]) .ptl-hname.boxed{background:var(--paper,#fafaf7)}
html[data-theme="dark"] #phone-tl .ptl-lanes .ptl-lane-name,html[data-theme="dark"] #phone-tl .ptl-hname.boxed{border-color:rgba(255,255,255,.28)!important}
html[data-theme="dark"] #phone-tl .ptl-hname:not(.on){background:var(--ptl-bg-dark,#171b1d)!important}
.ptl-chip.over{border-style:dashed;opacity:.7}
.ptl-combine:disabled{opacity:.35}
/* One row on a phone with Split / Collapse added: slightly narrower buttons and gaps. */
@media(max-width:600px){.ptl-top{gap:6px}.ptl-lead{gap:6px}.ptl-tools{gap:6px}.ptl-icon{width:38px}.ptl-switch button{width:38px}.ptl-chip.ptl-names{padding:0 9px}.ptl-new,.ptl-new:hover{padding:0 10px}}
.ptl-lead>.ptl-names,.ptl-lead>.ptl-new{min-width:0;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:380px){.ptl-top,.ptl-lead,.ptl-tools{gap:4px}.ptl-chip.ptl-names{padding:0 7px;font-size:14px}.ptl-new,.ptl-new:hover{padding:0 8px;font-size:14px}.ptl-icon,.ptl-switch button{width:36px}}
@media(max-width:350px){.ptl-top,.ptl-lead,.ptl-tools{gap:3px}.ptl-chip.ptl-names{padding:0 5px;font-size:13px}.ptl-new,.ptl-new:hover{padding:0 6px;font-size:13px}.ptl-icon,.ptl-switch button{width:32px}}

/* A timeline whose names show (Nicolas, 19 October): its small name box fills with its colour. */
#phone-tl .ptl-lane-name.on{background:var(--c)!important;border-color:var(--c)!important;color:#fff!important}
/* Sideways (Nicolas, 19 October): All, Split / Collapse, + Event, the heart and Vertical / Horizontal sit in the page
   header between its own icons; the row below holds only the timeline chips. */
.ptl-headbar{display:flex;align-items:center;justify-content:center;gap:4px;flex:1 1 auto;min-width:0;margin:0 8px}
.ptl-headbar .ptl-lead,.ptl-headbar .ptl-tools{display:flex;align-items:center;gap:4px;flex:none;margin:0}
.ptl-headbar :is(.ptl-chip,.ptl-new,.ptl-icon,.ptl-switch){height:40px}
.ptl-top.headed .ptl-chiprow{order:1;flex:1 1 100%}
.ptl-headbar .ptl-icon,.ptl-headbar .ptl-switch button{width:38px}
.ptl-headbar .ptl-chip.ptl-names{padding:0 10px}
.ptl-headbar .ptl-new,.ptl-headbar .ptl-new:hover{padding:0 10px}
/* The header's own button styles must not reach the timeline's buttons placed in it. */
header.atelier-brand-header .ptl-headbar button{box-shadow:none!important;font-family:inherit!important;margin:0!important}
header.atelier-brand-header .ptl-headbar .ptl-chip.ptl-names{background:var(--ptl-card)!important;border:1px solid var(--line)!important;color:var(--ptl-ink)!important;font-size:15px!important;font-weight:700!important;height:40px!important;border-radius:10px!important}
header.atelier-brand-header .ptl-headbar .ptl-chip.ptl-names.on{background:var(--ptl-aqua)!important;border-color:var(--ptl-aqua)!important;color:#242423!important}
header.atelier-brand-header .ptl-headbar .ptl-new{background:var(--ptl-orange)!important;border:1px solid var(--ptl-orange)!important;color:#fff!important;font-size:15px!important;font-weight:700!important;height:40px!important;border-radius:10px!important}
header.atelier-brand-header .ptl-headbar .ptl-icon{background:var(--ptl-card)!important;border:1px solid var(--line)!important;color:var(--ptl-ink)!important;width:38px!important;height:40px!important;border-radius:10px!important;padding:0!important}
header.atelier-brand-header .ptl-headbar .ptl-icon.on{background:var(--ptl-aqua)!important;border-color:var(--ptl-aqua)!important;color:#242423!important}
header.atelier-brand-header .ptl-headbar .ptl-switch{background:var(--ptl-card)!important;border:1px solid var(--line)!important;border-radius:10px!important}
header.atelier-brand-header .ptl-headbar .ptl-switch button{background:transparent!important;border:0!important;border-radius:0!important;color:var(--ptl-ink)!important;width:38px!important;height:38px!important;padding:0!important}
header.atelier-brand-header .ptl-headbar .ptl-switch button+button{border-left:1px solid var(--line)!important}
header.atelier-brand-header .ptl-headbar .ptl-switch button[aria-pressed="true"]{background:var(--ptl-aqua)!important;color:#242423!important}
html[data-theme="dark"] header.atelier-brand-header .ptl-headbar :is(.ptl-chip.ptl-names:not(.on),.ptl-icon:not(.on),.ptl-switch){background:#283032!important;border-color:#3d4648!important;color:#efe9e2!important}
html[data-theme="dark"] header.atelier-brand-header .ptl-headbar .ptl-switch button:not([aria-pressed="true"]){color:#efe9e2!important}
/* Dark: a timeline's small name keeps its box when its names are off (Nicolas, 19 October). */
html[data-theme="dark"] #phone-tl :is(.ptl-lanes .ptl-lane-name,.ptl-hname.boxed):not(.on){background:var(--ptl-bg-dark,#171b1d)!important;border-color:rgba(255,255,255,.32)!important}
/* Upright, on the timeline (Nicolas, 19 October): the page icons from Home to the cog start at the header's left edge,
   the timeline's own icons end at its right edge. */
html.soyl-phone-tl:not(.soyl-phone-land) body header.atelier-brand-header>.brand,
html.soyl-phone-tl:not(.soyl-phone-land) body header.atelier-brand-header .brand-title-row{justify-content:flex-start!important}
html.soyl-phone-tl:not(.soyl-phone-land) body header.atelier-brand-header>.header-actions{justify-content:flex-end!important}
/* Timelines panel on phones (Design Review, 22 October): a timeline's name keeps its width; the moment count gives way. */
@media (max-width:600px){
  .timeline-item .row>.title-button{flex:0 1 auto;min-width:min-content}
  .timeline-item .row>.help{flex:0 100 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
}
/* Two groups in the timeline's header on an upright phone (Nicolas, 22 October): Menu and Timeline Tools share the
   first row; the open group's icons fill a second row under them; the closed group's icons are hidden. */
@media (max-width:600px){
  html.soyl-phone-tl body:has(header.ph-groups){overflow-anchor:none}
  /* The page ends where the fitted timeline ends, whatever the header's height. */
  html.soyl-phone-tl body:has(header.ph-groups) main{min-height:0!important}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups{flex-wrap:wrap!important;row-gap:8px!important}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group{order:-5!important;flex:1 1 calc(50% - 2px)!important;position:relative;display:flex;align-items:center;justify-content:center;gap:10px;height:51px;margin:0;padding:0 8px;border:1px solid #deded9;border-radius:10px;background:#fffdf9;color:#242423;font:600 17px/1 inherit;box-shadow:none;cursor:pointer}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group[data-group="pages"]{order:-6!important}
  /* One header row (Nicolas, 4 November: no two big rows, no row for the level alone): Menu and Timeline Tools share
     the width; the level pill (its figure and arrow) sits at the end of the same row and opens its row below. */
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group{flex:1 1 calc(50% - 43px)!important;min-width:0!important;gap:6px!important;padding:0 4px!important;font-size:15px!important}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group svg{width:22px;height:22px;flex:none}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group span{white-space:nowrap;overflow:hidden;text-overflow:clip}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>#lv-btn{order:-4!important;position:static!important;transform:none!important;flex:0 0 70px;width:70px;box-sizing:border-box;justify-content:center;height:51px!important;padding:0 4px!important;gap:4px!important;margin:0!important;font-size:0!important}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>#lv-btn .lv-ic{width:28px;height:28px}
  /* An open group looks like the open level pill: aqua tint and aqua line, light and dark (Design Review, 4 November). */
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group[aria-pressed="true"]{background:#e4f5ef!important;border-color:#6fbfa6!important;color:#1f3d35!important}
  html[data-theme="dark"].soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group[aria-pressed="true"]{background:#24403a!important;border-color:#3d6b5e!important;color:#f3eee6!important}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group[aria-pressed="true"]{background:#242423;border-color:#242423;color:#fffdf9}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group .ph-group-dot{position:absolute;top:-4px;right:-4px;width:12px;height:12px;border-radius:50%;background:#d6452f;border:2px solid #fff;box-sizing:border-box}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group .ph-group-dot[hidden]{display:none}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups:not(.ph-open-pages) .header-identity>:is(:not(.ph-group),#atelier-account),
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups:not(.ph-open-tools) .header-actions>:is(:not(.ph-group),#ai-events){display:none!important}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups :is(.header-identity,.header-actions)>:is(button,a):not(#header-call){min-width:44px!important}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups .header-actions>#ai-events{font-size:18px!important}
  /* Design Review (22 October): the open row's icons get the closed buttons' off-white fill and soft border in light,
     and every red dot is one 10 px dot in the same top-right corner. */
  html:not([data-theme="dark"]).soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups :is(.header-identity,.header-actions)>:is(button,a):not(#header-call):not(#ai-events):not([aria-pressed="true"]):not(.active){background:#fffdf9!important;border:1px solid #deded9!important}
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups :is(.header-identity,.header-actions)>:is(button,a) :is(.header-dot,.chat-badge,.nav-dot,.ai-dot):not([hidden]):not(.hidden),
  html.soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group .ph-group-dot{position:absolute!important;top:5px!important;right:5px!important;left:auto!important;bottom:auto!important;width:10px!important;height:10px!important;min-width:0!important;padding:0!important;border-radius:50%!important;border:0!important;background:#d6452f!important;font-size:0!important;transform:none!important}
  html[data-theme="dark"].soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group{background:#283032;border-color:#3d4648;color:#efe9e2}
  html[data-theme="dark"].soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group[aria-pressed="true"]{background:#efe9e2;border-color:#efe9e2;color:#1f1e1d}
  html[data-theme="dark"].soyl-phone-tl body header.atelier-brand-header.atelier-brand-header.ph-groups>.ph-group .ph-group-dot{border-color:#1f1e1d}
}
/* The toolbar (Nicolas, 22 October): Split / Collapse, + Timelines, + Event (taking the room left), the heart and the
   direction in one row, the timelines' names alone in the row below; every button 42 px tall with the soft border. */
#phone-tl .ptl-top :is(.ptl-icon,.ptl-new,.ptl-chip){height:42px;box-sizing:border-box}
#phone-tl .ptl-top .ptl-switch button{height:40px}
#phone-tl .ptl-top .ptl-icon{border:1px solid var(--line);background:var(--ptl-card)}
#phone-tl .ptl-top .ptl-icon.on{background:var(--ptl-aqua);border-color:var(--ptl-aqua)}
#phone-tl .ptl-add{width:auto!important;padding:0 10px;display:inline-flex;align-items:center;gap:3px;flex:none}
#phone-tl .ptl-lead>.ptl-new{flex:1 1 auto}
#phone-tl .ptl-chip{border-color:var(--line)}
/* The Show All line at the top of the Timelines list on a phone. */
#panel .ptl-showall{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;margin:0 0 4px;padding:0 14px;border:1px solid #deded9!important;border-radius:10px;background:#fffdf9!important;color:#242423!important;font-size:16px;font-weight:700;text-align:left;cursor:pointer}
.ptl-showall i{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:#fffdf9}
.ptl-showall[aria-pressed="true"] i{background:#91d9c1;border-color:#91d9c1;color:#1f3d35}
html[data-theme="dark"] #panel .ptl-showall{background:#283032!important;border-color:#3d4648!important;color:#efe9e2!important}
html[data-theme="dark"] .ptl-showall i{background:#1f1e1d;border-color:#3d4648}
html[data-theme="dark"] .ptl-showall[aria-pressed="true"] i{background:#91d9c1;border-color:#91d9c1;color:#1f3d35}
/* One close button on a full-screen panel (Design Review, 22 October): the large × at the top right stays; the
   panel's own small × beside its title goes (the editor keeps its own, as it has no large one). */
html.soyl-phone-tl body.ptl-full:not(.ptl-full-editor) #panel :is(#close-timelines,#close-guide,#close-trash){display:none!important}
/* The media preview (Nicolas, 31 October): the eye beside Open Event; a view mode, so both navigation rows step
   aside and the preview drops down in their place, a third of the screen; Full View gives it the whole screen. */
.ptl-sheet-buttons.with-eye{grid-template-columns:1fr 1fr 48px}
.ptl-sheet-eye{display:grid;place-items:center;width:48px;padding:0!important;border:1px solid #deded9;background:#fffefb;color:#242423}
.ptl-sheet-eye[hidden]{display:none}
.ptl-sheet-eye.on{border-color:#91d9c1;background:#91d9c133}
html[data-theme="dark"] .ptl-sheet-eye:not(.on){background:#283032;border-color:#3d4648;color:#efe9e2}
html[data-theme="dark"] .ptl-sheet-eye.on{background:#91d9c133;border-color:#91d9c1;color:#efe9e2}
body.ptl-viewing{--ptl-pv-h:36vh}
body.ptl-viewing header.atelier-brand-header,body.ptl-viewing #phone-tl .ptl-top,body.ptl-viewing #ptl-panel-x{display:none!important}
body.ptl-viewing #phone-tl{padding-top:calc(var(--ptl-pv-h) + env(safe-area-inset-top))}
body.ptl-viewing #phone-tl .ptl-stage{margin-top:0}
.ptl-preview{position:fixed;left:0;right:0;top:0;z-index:61;height:calc(var(--ptl-pv-h) + env(safe-area-inset-top));padding:calc(8px + env(safe-area-inset-top)) 0 8px;box-sizing:border-box;background:#fafaf7;border-bottom:1px solid #e6e6e0;animation:ptl-pv-drop .26s cubic-bezier(.2,.8,.3,1)}
.ptl-preview.full{z-index:1000;height:100%;padding-bottom:calc(8px + env(safe-area-inset-bottom));border:0}
@keyframes ptl-pv-drop{from{transform:translateY(-100%)}to{transform:none}}
@media(prefers-reduced-motion:reduce){.ptl-preview{animation:none}}
.ptl-pv-strip{display:flex;gap:8px;height:100%;padding:0 8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.ptl-pv-strip::-webkit-scrollbar{display:none}
.ptl-pv-item{flex:none;display:flex;align-items:center;justify-content:center;height:100%;margin:0;border-radius:12px;overflow:hidden;scroll-snap-align:center;background:#efefea}
.ptl-pv-item img{display:block;height:100%;width:auto;max-width:calc(100vw - 16px);object-fit:cover}
.ptl-preview.full .ptl-pv-item{width:calc(100vw - 16px);background:transparent}
.ptl-preview.full .ptl-pv-item img{width:100%;height:100%;object-fit:contain}
.ptl-pv-item video,.ptl-pv-item iframe{display:block;width:calc(100vw - 48px);height:100%;border:0;background:#000}
.ptl-preview.full .ptl-pv-item :is(video,iframe){width:100%}
.ptl-pv-voice{display:flex;flex-direction:column;justify-content:center;gap:10px;width:calc(100vw - 64px);height:100%;padding:0 16px;box-sizing:border-box;font-size:15px}
.ptl-pv-voice audio{width:100%}
.ptl-pv-item>a{padding:0 16px;font-size:15px;color:inherit}
.ptl-pv-wait{display:grid;place-items:center;width:58vw;height:100%;padding:0 12px;box-sizing:border-box;font-size:13px;color:#6b6b67;text-align:center}
.ptl-pv-wait.failed{color:#d06f56}
.ptl-pv-drive{flex:none;align-self:center;max-width:70vw;min-height:48px;padding:0 16px;border:1px dashed #deded9;border-radius:12px;background:transparent;color:#242423;font-size:15px}
.ptl-pv-full{position:absolute;top:calc(14px + env(safe-area-inset-top));right:14px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #deded9;border-radius:50%;background:#fffefb;color:#242423}
.ptl-pv-dots{position:absolute;left:0;right:0;bottom:calc(14px + env(safe-area-inset-bottom) * 0);display:flex;justify-content:center;gap:6px;pointer-events:none}
.ptl-pv-dots i{width:7px;height:7px;border-radius:50%;background:#fffefb99;box-shadow:0 0 0 1px #24242333}
.ptl-pv-dots i.on{background:#fffefb;box-shadow:0 0 0 1px #24242366}
.ptl-preview.full .ptl-pv-dots{bottom:calc(18px + env(safe-area-inset-bottom))}
html[data-theme="dark"] .ptl-pv-full{background:#283032;border-color:#3d4648;color:#efe9e2}
html[data-theme="dark"] .ptl-preview{background:#171b1d;border-color:#3a4244}
html[data-theme="dark"] .ptl-pv-item{background:#283032}
html[data-theme="dark"] .ptl-pv-wait{color:#b3aca4}
html[data-theme="dark"] .ptl-pv-drive{border-color:#3d4648;color:#efe9e2}
.ptl-preview.full .ptl-pv-dots i{background:#24242333;box-shadow:none}
.ptl-preview.full .ptl-pv-dots i.on{background:#242423}
html[data-theme="dark"] .ptl-preview.full .ptl-pv-dots i{background:#efe9e244}
html[data-theme="dark"] .ptl-preview.full .ptl-pv-dots i.on{background:#efe9e2}
