/* Duenivo application UI: TEMPO (approved, design-exploration/concept-5-tempo).
   Loaded after app.css (structural base) on every authenticated and account page; scoped to body.tempo.
   Brand (locked): ink #191330, violet #5B3FD9, lime #D6F56E, lilac #F3F1FA. Space Grotesk + Instrument Sans (self-hosted, OFL). */
@font-face{font-family:'Space Grotesk';font-weight:500;font-style:normal;font-display:swap;src:url('marketing/fonts/space-grotesk-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-weight:700;font-style:normal;font-display:swap;src:url('marketing/fonts/space-grotesk-latin-700-normal.woff2') format('woff2')}
@font-face{font-family:'Instrument Sans';font-weight:400;font-style:normal;font-display:swap;src:url('marketing/fonts/instrument-sans-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Instrument Sans';font-weight:500;font-style:normal;font-display:swap;src:url('marketing/fonts/instrument-sans-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Instrument Sans';font-weight:600;font-style:normal;font-display:swap;src:url('marketing/fonts/instrument-sans-latin-600-normal.woff2') format('woff2')}

body.tempo{
  --ink:#191330;--ink-2:#2A2248;--ink-3:#3A3160;--violet:#5B3FD9;--violet-2:#4A30BF;--lilac:#F3F1FA;--lilac-2:#E7E3F6;--card:#FFFFFF;
  --text:#191330;--text-2:#4B4568;--text-3:#5F5980;--line:#E2DDF1;--lime:#D6F56E;--lime-2:#C8EA55;
  --late:#B8321F;--late-soft:#FCE7E2;--ok:#16704A;--ok-soft:#E1F4EA;--warn:#7D5300;--warn-soft:#FFF1CC;
  --display:'Space Grotesk',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;--body:'Instrument Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  margin:0;background:var(--lilac);color:var(--text);font:400 15px/1.55 var(--body);-webkit-font-smoothing:antialiased
}
.tempo .wrap{min-height:100vh;display:flex;flex-direction:column}
.tempo a{color:var(--violet);font-weight:600}
.tempo :focus-visible{outline:3px solid var(--violet);outline-offset:2px;border-radius:6px}
.tempo .tempo-top :focus-visible{outline-color:var(--lime)}
.tempo h1,.tempo h2,.tempo h3{font-family:var(--display);font-weight:700;letter-spacing:-.025em;line-height:1.12;color:var(--ink)}
.tempo h1{font-size:32px;margin:0 0 6px}
.tempo h2{font-size:19px;margin:0 0 12px}
.tempo h3{font-size:16px;margin:0 0 10px}
.tempo p{color:var(--text-2);line-height:1.6}
.tempo .muted{color:var(--text-3)}
.tempo code{font-size:13px;background:var(--lilac-2);padding:2px 6px;border-radius:6px}
.tempo .skip{position:absolute;left:-999px;top:8px;z-index:100;background:var(--lime);color:var(--ink);padding:8px 12px;border-radius:10px}
.tempo .skip:focus{left:10px}

/* ---------- Top bar + navigation ---------- */
.tempo-top{background:var(--ink);color:#fff;position:sticky;top:0;z-index:40}
.tempo-bar{display:flex;align-items:center;gap:18px;min-height:64px;padding:0 24px;max-width:1600px;margin:0 auto}
.tempo .tempo-logo{display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font:700 20px/1 var(--display);letter-spacing:-.03em;flex:none}
.tempo-nav{display:flex;align-items:center;gap:4px;min-width:0}
.tempo .tempo-nav>a,.tempo .tempo-more>summary{padding:8px 13px;border-radius:10px;color:rgba(255,255,255,.8);text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap;cursor:pointer}
.tempo .tempo-nav>a:hover,.tempo .tempo-more>summary:hover{background:var(--ink-2);color:#fff}
.tempo .tempo-nav>a[aria-current=page],.tempo .tempo-more>summary[aria-current=page]{background:var(--lime);color:var(--ink)}
.tempo-more{position:relative}
.tempo-more>summary{list-style:none;display:inline-flex;align-items:center;gap:6px}
.tempo-more>summary::-webkit-details-marker{display:none}
.tempo-more>summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.tempo .tempo-more[open]>summary{background:var(--ink-2);color:#fff}
.tempo-more-panel{position:absolute;top:calc(100% + 8px);left:0;min-width:240px;background:#fff;border-radius:16px;padding:8px;box-shadow:0 24px 50px -18px rgba(25,19,48,.45),0 0 0 1px rgba(25,19,48,.06);display:grid;gap:2px;z-index:50}
.tempo .tempo-more-panel a{color:var(--ink);text-decoration:none;padding:10px 12px;border-radius:10px;font-weight:600;font-size:14px}
.tempo .tempo-more-panel a:hover{background:var(--lilac)}
.tempo .tempo-more-panel a[aria-current=page]{background:var(--lime)}
.tempo .tempo-m-only{display:none}
.tempo-user{margin-left:auto;display:flex;align-items:center;gap:12px;min-width:0}
.tempo-org{display:grid;text-align:right;font-weight:600;font-size:13.5px;line-height:1.25;max-width:220px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tempo-org small{color:rgba(255,255,255,.72);font-weight:500;font-size:12px}
.tempo-logout{margin:0}
.tempo .tempo-btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 14px;border-radius:11px;border:1.5px solid transparent;font:700 14px/1 var(--body);cursor:pointer;text-decoration:none;white-space:nowrap}
.tempo .tempo-btn-line{background:transparent;border-color:rgba(255,255,255,.3);color:#fff}
.tempo .tempo-btn-line:hover{border-color:#fff}
.tempo .tempo-btn-lime{background:var(--lime);color:var(--ink)}
.tempo .tempo-btn-lime:hover{background:var(--lime-2)}

/* Cash-timing strip */
.tempo-strip{position:relative;display:grid;grid-template-columns:170px repeat(7,minmax(0,1fr));gap:8px;padding:10px 24px 14px;border-top:1px solid var(--ink-3);max-width:1600px;margin:0 auto}
.tempo .tempo-strip-lab{margin:0;font-size:12px;color:rgba(255,255,255,.75);line-height:1.35;align-self:center}
.tempo-strip-lab b{display:block;color:#fff;font:700 15px/1.2 var(--display)}
.tempo .tempo-cell{display:block;background:var(--ink-2);border:1.5px solid transparent;border-radius:12px;padding:8px 10px;color:#fff;text-decoration:none;min-width:0;font-weight:400}
.tempo .tempo-cell:hover{border-color:var(--ink-3);background:var(--ink-3)}
.tempo-cell small{display:block;font-size:11.5px;color:rgba(255,255,255,.75);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tempo-cell .v{display:block;font:700 15px/1.3 var(--display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tempo .tempo-cell.is-late{background:#3A1630}
.tempo-cell.is-late .v{color:#FFB4A6}
.tempo-meter{display:flex;gap:2px;height:4px;border-radius:2px;background:var(--ink-3);margin-top:6px;overflow:hidden}
.tempo-meter i{display:block;height:100%;border-radius:2px}
.tempo-meter .d{background:#8C7BEA}.is-late .tempo-meter .d{background:#FF8A75}
.tempo-meter .p{background:var(--lime)}

/* Public account pages (log in, create account, reset) */
.tempo-top-public{position:relative}
.tempo-public-nav{margin-left:auto;display:flex;align-items:center;gap:6px}
.tempo .tempo-public-nav>a:not(.tempo-btn){color:rgba(255,255,255,.82);text-decoration:none;padding:8px 12px;border-radius:10px}
.tempo .tempo-public-nav>a:not(.tempo-btn):hover{background:var(--ink-2);color:#fff}
.tempo.tempo-auth .container{width:min(560px,calc(100% - 32px));margin:48px auto}
.tempo-auth .card.narrow{max-width:none}
.tempo-auth .card h1{font-size:30px}

/* ---------- Layout ---------- */
.tempo .container{width:min(1200px,calc(100% - 48px));margin:26px auto 80px}
.tempo .container.wide{width:min(1500px,calc(100% - 48px))}
.tempo .shell{width:min(1200px,calc(100% - 48px));margin:26px auto 80px;display:block}
.tempo .footer{display:none}
.tempo .kicker,.tempo .eyebrow{font:700 12px/1 var(--display);letter-spacing:.1em;text-transform:uppercase;color:var(--violet);margin:0 0 10px}
.tempo .sub{color:var(--text-2);margin:4px 0 0}
.tempo .hd,.tempo .tm-module-head,.tempo .page-head,.tempo .pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 20px;padding:0;background:none;border:0;box-shadow:none;color:var(--ink)}
.tempo .tm-module-head p,.tempo .page-head p:not(.eyebrow),.tempo .pagehead p{margin:4px 0 0;color:var(--text-2)}
.tempo .page-head h1,.tempo .tm-module-head h1{font-size:32px}
.tempo .tm-head-actions{display:flex;gap:10px;flex-wrap:wrap}
.tempo .card{background:var(--card);border:0;border-radius:20px;padding:22px;box-shadow:none;margin-bottom:16px;min-width:0}
.tempo .card>h2:first-child,.tempo .card>.kicker:first-child+h2{margin-top:0}
.tempo .two,.tempo .twoequal{gap:16px}
.tempo .two>.card,.tempo .twoequal>.card{margin-bottom:0}
.tempo .topgap{margin-top:16px}
.tempo hr{border:0;border-top:1px solid var(--line);margin:18px 0}

/* ---------- Controls ---------- */
.tempo label{font-weight:600;font-size:13.5px;color:var(--ink);gap:6px}
.tempo input,.tempo select,.tempo textarea{min-height:44px;padding:10px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--text);font:400 15px/1.4 var(--body)}
.tempo textarea{min-height:96px}
.tempo input[type=checkbox],.tempo input[type=radio]{min-height:0;width:auto;accent-color:var(--violet)}
.tempo input:focus,.tempo select:focus,.tempo textarea:focus{outline:none;border-color:var(--violet);box-shadow:0 0 0 4px var(--lilac-2)}
/* Select: one violet chevron on the right. The shared control rule above uses the `background` shorthand, which resets
   background-repeat to `repeat` and background-position to `0 0`; setting only background-image afterwards tiled the
   chevron across the whole control (the blue/violet "zigzag"). Every background longhand is therefore set here. */
.tempo select{appearance:none;-webkit-appearance:none;padding-right:40px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235B3FD9' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;text-overflow:ellipsis}
.tempo select[multiple],.tempo select[size]:not([size="1"]){padding-right:14px;background-image:none}
.tempo select:disabled{background-color:var(--lilac);color:var(--text-2);cursor:not-allowed}
/* Windows High Contrast / forced colours drop background images: fall back to the native arrow there. */
@media (forced-colors:active){.tempo select{appearance:auto;-webkit-appearance:menulist;background-image:none;padding-right:14px}}
.tempo .btn,.tempo .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 18px;border-radius:12px;border:1.5px solid transparent;background:var(--violet);color:#fff;font:700 14.5px/1 var(--body);cursor:pointer;text-decoration:none;white-space:nowrap}
.tempo .btn:hover,.tempo .button:hover{background:var(--violet-2)}
.tempo .btn.secondary,.tempo .button.secondary{background:#fff;border-color:var(--line);color:var(--ink)}
.tempo .btn.secondary:hover,.tempo .button.secondary:hover{border-color:var(--violet);background:#fff}
.tempo .btn.tiny{min-height:32px;padding:0 10px;font-size:12.5px;border-radius:9px}
.tempo .btn:disabled{opacity:.6;cursor:progress}
.tempo .tm-full{width:100%;margin-top:14px}
.tempo form[aria-busy="true"]{opacity:.85}
.tempo details>summary{cursor:pointer;font-weight:700;color:var(--violet);padding:6px 0}
.tempo details[open]>summary{margin-bottom:8px}

/* Notices */
.tempo .notice{border-radius:14px;padding:12px 16px;margin-bottom:16px;font-weight:600;border:0}
.tempo .notice.success{background:var(--ok-soft);color:var(--ok)}
.tempo .notice.error{background:var(--late-soft);color:var(--late)}
.tempo .notice.info,.tempo .notice.warning{background:var(--warn-soft);color:var(--warn)}

/* ---------- Tables (Tempo register style) ---------- */
.tempo .tablewrap,.tempo .table-wrap{overflow:auto;background:#fff;border-radius:16px}
.tempo .card .tablewrap,.tempo .card .table-wrap{border-radius:12px}
.tempo table{width:100%;border-collapse:collapse;font-size:14px;background:transparent}
.tempo th{text-align:left;font:700 12px/1.3 var(--body);letter-spacing:.02em;color:var(--text-3);padding:10px 12px;border-bottom:1.5px solid var(--line);background:transparent;white-space:nowrap}
.tempo td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--text)}
.tempo tr:last-child td{border-bottom:0}
.tempo tbody tr:hover td,.tempo tr:hover td{background:#FBFAFE}
.tempo td form{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.tempo td select,.tempo td input{min-height:36px;padding:6px 10px;font-size:14px}
.tempo td select{padding-right:32px;background-position:right 10px center}
.tempo .pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.tempo .pagination p{margin:0;color:var(--text-2);font-size:14px}
.tempo .pagination a{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:10px;border:1.5px solid var(--line);background:#fff;text-decoration:none;color:var(--ink)}
.tempo .pagination a:hover{border-color:var(--violet)}

/* Tags / pills / badges */
.tempo .pill,.tempo .badge,.tempo .tag{display:inline-flex;align-items:center;min-height:24px;padding:2px 9px;border-radius:7px;font:700 12.5px/1.2 var(--body);white-space:nowrap;background:var(--lilac-2);color:var(--violet-2);border:0}
.tempo .tag.pri-critical,.tempo .badge.priority-critical,.tempo .badge.status-missed{background:var(--late-soft);color:var(--late)}
.tempo .tag.pri-high,.tempo .badge.priority-high,.tempo .badge.status-paused{background:var(--warn-soft);color:var(--warn)}
.tempo .tag.pri-low,.tempo .badge.priority-low,.tempo .badge.status-skipped{background:#EEECF4;color:#4B4568}
.tempo .badge.status-completed{background:var(--ok-soft);color:var(--ok)}

/* ---------- Stats ---------- */
.tempo .stat,.tempo .stats .card{background:var(--card);border:0;border-radius:20px;padding:20px;box-shadow:none;color:var(--text);text-decoration:none;font-weight:400;display:block}
.tempo .statlink:hover{transform:none;box-shadow:inset 0 0 0 1.5px var(--line)}
.tempo .stat b,.tempo .stats .card strong{display:block;font:700 26px/1.15 var(--display);letter-spacing:-.03em;margin-top:6px;color:var(--ink)}
.tempo .stat small,.tempo .stats .card span{display:block;color:var(--text-2);font-weight:600;font-size:13px}
.tempo .statlink.critical{background:var(--late-soft)}
.tempo .stats,.tempo .stats6,.tempo .three{gap:14px}
.tempo .hero-stats{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:16px;margin-bottom:16px}
.tempo .hero-stats .stat small{font-size:13px}
.tempo .hero-stats .num{display:block;font:700 36px/1.08 var(--display);letter-spacing:-.035em;margin:6px 0 2px;color:var(--ink)}
.tempo .hero-stats .num.late{color:var(--late)}
.tempo .hero-stats p{margin:6px 0 0;font-size:14px}
.tempo .stat.prime{background:var(--violet);color:#fff}
.tempo .stat.prime small,.tempo .stat.prime p,.tempo .stat.prime .num{color:#fff}
.tempo .stat.prime p{color:rgba(255,255,255,.88)}
.tempo .stat.prime:hover{box-shadow:none;background:var(--violet-2)}

/* ---------- Dashboard ("Now") ---------- */
.tempo .tm-dashboard .grid{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;align-items:start}
.tempo .tm-dashboard .grid>.card{margin-bottom:0}
.tempo .tm-dashboard .card>.sub{margin:-6px 0 14px;font-size:14px}
.tempo .week{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.tempo .day{background:var(--lilac);border-radius:14px;padding:10px;min-height:150px;min-width:0}
.tempo .day h3{font:700 13px/1.2 var(--body);color:var(--text-2);margin:0 0 8px;display:flex;justify-content:space-between;gap:6px;letter-spacing:0}
.tempo .day.today{background:var(--lilac-2);box-shadow:inset 0 0 0 2px var(--violet)}
.tempo .chip{display:block;background:#fff;border-radius:10px;padding:8px 9px;margin-bottom:6px;font-size:13px;color:var(--text);text-decoration:none;font-weight:400;box-shadow:0 1px 0 var(--line);min-width:0}
.tempo .chip:hover{box-shadow:inset 0 0 0 1.5px var(--violet)}
.tempo .chip b{display:block;font:700 14px/1.3 var(--display);color:var(--ink)}
.tempo .chip span{display:block;color:var(--text-2);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tempo .chip.late{box-shadow:inset 3px 0 0 var(--late)}
.tempo .chip.prom{box-shadow:inset 3px 0 0 #A07A0E;background:#FDFBEA}
.tempo .day-more{display:block;font-size:12.5px;font-weight:700;padding:4px 2px}
.tempo .day-empty{margin:0;font-size:12.5px;color:var(--text-3)}
.tempo .pri-list{list-style:none;margin:0;padding:0;display:grid}
.tempo .pri-list a{display:flex;justify-content:space-between;gap:12px;padding:11px 2px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--text);font-weight:400}
.tempo .pri-list li:last-child a{border-bottom:0}
.tempo .pri-list a:hover .who b{color:var(--violet)}
.tempo .pri-list .who{min-width:0}
.tempo .pri-list .who b{display:block;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tempo .pri-list .who span{font-size:13px;color:var(--text-2)}
.tempo .pri-list .amt{display:grid;justify-items:end;gap:4px;font:700 15px/1.2 var(--display);color:var(--ink);white-space:nowrap}
.tempo .empty-line{margin:0 0 4px}
.tempo .tm-action-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tempo .tm-action-list a{display:flex;justify-content:space-between;gap:10px;padding:13px 14px;border-radius:12px;background:var(--lilac);color:var(--ink);text-decoration:none}
.tempo .tm-action-list a:hover{background:var(--lilac-2)}
.tempo .tm-actions-card{margin-top:16px}

/* ---------- Follow-up board ---------- */
.tempo .board{position:relative;display:grid;grid-template-columns:repeat(5,minmax(230px,1fr));gap:12px;overflow-x:auto;padding-bottom:8px;align-items:start}
.tempo .col{background:var(--lilac-2);border-radius:18px;padding:12px;min-height:240px;min-width:0}
@media (min-width:901px){.tempo .col{max-height:calc(100vh - 140px);overflow-y:auto}}
.tempo .col h2{font-size:15px;display:flex;justify-content:space-between;align-items:center;margin:2px 4px 2px}
.tempo .col .count{font:700 12px/1 var(--body);background:#fff;color:var(--ink);border-radius:999px;padding:5px 9px}
.tempo .col-hint{font-size:12.5px;margin:0 4px 10px;color:var(--text-2)}
.tempo .col-empty{font-size:13px;margin:6px 4px;color:var(--text-3)}
.tempo .kcard{background:#fff;border-radius:14px;padding:12px;margin-bottom:8px}
.tempo .kcard.pri-critical{box-shadow:inset 3px 0 0 var(--late)}
.tempo .kcard.pri-high{box-shadow:inset 3px 0 0 #C99A1A}
.tempo .kcard b{display:block;font:700 15px/1.25 var(--display);color:var(--ink)}
.tempo .kcard .m{color:var(--text-2);font-size:12.5px;margin:2px 0 8px}
.tempo .kcard .f{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tempo .kcard .amt{font:700 16px/1.2 var(--display);color:var(--ink)}
.tempo .kcard details{border-top:1px solid var(--line);margin-top:4px;padding-top:4px}
.tempo .kcard details>summary{font-size:13px}
.tempo .kcard .form{gap:10px}
.tempo .kcard .form label{font-size:12.5px}
.tempo .kcard input,.tempo .kcard select,.tempo .kcard textarea{min-height:38px;padding:7px 10px;font-size:14px}
.tempo .kcard select{padding-right:32px;background-position:right 10px center}
.tempo .empty{background:#fff;border-radius:20px;padding:46px 22px;text-align:center}
.tempo .empty h3{font-size:22px;margin-bottom:6px}

/* Report / settings pages */
.tempo .tm-report-shell .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.tempo .tm-register-card .form{grid-template-columns:1fr auto;align-items:end}
.tempo .planbox,.tempo .schedulebox,.tempo .readiness{background:var(--lilac);border:0;border-radius:16px;padding:16px}
.tempo .mini-steps>div{background:var(--lilac);border:0;border-radius:14px}

/* ---------- Responsive ---------- */
@media (max-width:1240px){
  .tempo .tempo-org{display:none}
  .tempo .tempo-nav>a,.tempo-more>summary{padding:8px 10px}
}
@media (max-width:1100px){
  .tempo-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .tempo .tempo-strip-lab{grid-column:1/-1}
  .tempo .hero-stats{grid-template-columns:1fr 1fr}.tempo .hero-stats .prime{grid-column:1/-1}
  .tempo .tm-dashboard .grid{grid-template-columns:1fr}
  .tempo .tm-action-list{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .tempo-top{position:static}
  .tempo-bar{padding:0 14px;gap:10px;min-height:60px}
  /* Bottom navigation bar on tablets and phones, like the Tempo prototype */
  .tempo-nav{position:fixed;left:0;right:0;bottom:0;z-index:45;background:var(--ink);padding:6px 6px calc(6px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;box-shadow:0 -10px 30px -18px rgba(0,0,0,.6)}
  .tempo .tempo-nav>a.tempo-d-only{display:none}
  .tempo .tempo-m-only{display:block}
  .tempo .tempo-nav>a,.tempo .tempo-more>summary{display:flex;justify-content:center;align-items:center;min-height:46px;padding:4px 2px;font-size:12px;text-align:center;border-radius:10px;white-space:normal;line-height:1.15}
  .tempo-more>summary::after{display:none}
  .tempo-more-panel{position:fixed;left:8px;right:8px;top:auto;bottom:calc(66px + env(safe-area-inset-bottom));max-height:70vh;overflow:auto;min-width:0}
  .tempo .container,.tempo .container.wide,.tempo .shell{width:auto;margin:18px 14px 110px}
  .tempo.tempo-auth .container{width:auto;margin:28px 14px 60px}
  .tempo-strip{display:flex;overflow-x:auto;padding:8px 14px 12px;scrollbar-width:thin}
  .tempo .tempo-strip-lab{display:none}
  .tempo .tempo-cell{flex:0 0 112px}
}
@media (max-width:720px){
  .tempo h1,.tempo .page-head h1,.tempo .tm-module-head h1{font-size:26px}
  .tempo .hero-stats{grid-template-columns:1fr}
  .tempo .hero-stats .num{font-size:30px}
  .tempo .week{grid-template-columns:1fr}
  .tempo .day{min-height:0}
  .tempo .tm-action-list{grid-template-columns:1fr}
  .tempo .card{padding:16px;border-radius:16px}
  .tempo .tm-register-card .form{grid-template-columns:1fr}
  .tempo .board{grid-template-columns:repeat(5,minmax(240px,82vw))}
  .tempo .tempo-public-nav>a:first-child{display:none}
  .tempo .tempo-logo span{font-size:18px}
}
@media (max-width:380px){
  .tempo .tempo-public-nav>a:not(.tempo-btn){padding:8px 6px}
  .tempo .tempo-public-nav .tempo-btn{padding:0 10px}
}
@media (prefers-reduced-motion:reduce){.tempo *{transition:none!important;animation:none!important}}

/* Activity timeline + breadcrumbs */
.tempo .tm-crumbs{font-size:13.5px;color:var(--text-3);margin:0 0 10px}
.tempo .tm-crumbs a{font-weight:600}
.tempo .tm-timeline{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--lilac-2);display:grid;gap:14px}
.tempo .tm-timeline li{position:relative;display:grid;gap:2px}
.tempo .tm-timeline li::before{content:"";position:absolute;left:-25px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--violet);box-shadow:0 0 0 3px #fff}
.tempo .tm-timeline .tm-when{font:600 12px/1.3 var(--body);color:var(--text-3)}
.tempo .tm-timeline b{font-family:var(--display);color:var(--ink)}
.tempo .tm-timeline small{color:var(--text-2);overflow-wrap:anywhere}

/* Subscription notice in the header */
.tempo-sub-notice{background:var(--lime);color:var(--ink);font-weight:600;font-size:14px;padding:8px 24px;text-align:center}
.tempo-sub-notice a{color:var(--ink)!important}
.tempo-sub-readonly{background:#FFE1A8}
.tempo .tm-op-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;align-items:start}

/* Onboarding checklist, organisation switcher */
.tempo .tm-checklist{margin:0;padding-left:20px;display:grid;gap:6px}
.tempo .tm-checklist .is-done span:first-child{color:var(--text-3);text-decoration:line-through}
.tempo .tempo-switch>summary{color:rgba(255,255,255,.8)}
.tempo .tempo-switch .tempo-more-panel{left:auto;right:0}
.tempo .tempo-switch-btn{display:block;width:100%;text-align:left;border:0;background:none;padding:10px 12px;border-radius:10px;font:600 14px/1.3 var(--body);color:var(--ink);cursor:pointer}
.tempo .tempo-switch-btn:hover,.tempo .tempo-switch-btn[aria-current=true]{background:var(--lilac)}
.tempo .tempo-switch-btn small{color:var(--text-3);font-weight:500}
.tempo .inlineform{display:inline}
.tempo .tm-portal-logo{max-height:56px;max-width:220px;display:block;margin-bottom:12px}
/* Operator console header: more sections than the public site, so it wraps on narrow screens (public header unchanged). */
.tempo-op-bar{flex-wrap:wrap;row-gap:4px;padding-top:8px;padding-bottom:8px}
.tempo .tempo-op-nav{flex-wrap:wrap;justify-content:flex-end;row-gap:2px;min-width:0}
.tempo .tempo-op-nav>a:first-child{display:inline-block}
