/* Área de cliente — claro e calmo: menu lateral navy, uma coisa de cada vez, o projeto como percurso.
   Independente do painel.css (o painel interno continua escuro). */
@font-face { font-family: "Clash Display"; src: url(/fonts/ClashDisplay-Variable.woff2) format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #F3F4F7; --card: #FFFFFF; --ink: #242A38; --muted: #5B6274; --line: #E1E4EB;
  --navy: #242A38;                                  /* fundo das imagens (fixo nos dois modos) */
  --strong: #242A38; --on-strong: #FFFFFF;          /* fases concluídas, botão de ficheiros */
  --side-bg: #242A38; --side-fg: #C9CDD8; --side-muted: #AEB3C0; --side-hover: rgba(255, 255, 255, .06); --side-active-bg: #FFFFFF; --side-active-fg: #242A38;
  --action: #D9233F; --action-hover: #BF1834;
  --coral: #FA3755; --orange: #FD6E4C; --gradient: linear-gradient(100deg, var(--coral), var(--orange));
  --you-bg: #FFF0EA; --you-ink: #9E3415; --busy-bg: #EAF0FF; --busy-ink: #2C4A9A;
  --ok: #1D8A66; --ok-bg: #E6F4EE; --ok-ink: #145C45; --bad: #B4233A;
  --r-lg: 20px; --r-md: 12px;
  --display: "Clash Display", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raise: 0 1px 0 var(--line), 0 12px 32px -18px rgba(36, 42, 56, .35);
}
/* Modo escuro: automático (sistema) ou escolhido na área de cliente (data-theme no <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #16181F; --card: #1E2230; --ink: #FEFEFE; --muted: #A3A9B8; --line: #2E3446;
    --strong: #FEFEFE; --on-strong: #242A38;
    --side-bg: #101218; --side-fg: #B9BECB; --side-muted: #959BAA; --side-hover: rgba(255, 255, 255, .05); --side-active-bg: #262B3A; --side-active-fg: #FFFFFF;
    --you-bg: rgba(253, 110, 76, .16); --you-ink: #FFB59E; --busy-bg: rgba(120, 150, 255, .16); --busy-ink: #BCCBFF;
    --ok: #3CC594; --ok-bg: rgba(60, 197, 148, .15); --ok-ink: #8BE3C1; --bad: #FF5A73;
    --raise: 0 1px 0 var(--line), 0 16px 36px -20px rgba(0, 0, 0, .75);
  }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #16181F; --card: #1E2230; --ink: #FEFEFE; --muted: #A3A9B8; --line: #2E3446;
  --strong: #FEFEFE; --on-strong: #242A38;
  --side-bg: #101218; --side-fg: #B9BECB; --side-muted: #959BAA; --side-hover: rgba(255, 255, 255, .05); --side-active-bg: #262B3A; --side-active-fg: #FFFFFF;
  --you-bg: rgba(253, 110, 76, .16); --you-ink: #FFB59E; --busy-bg: rgba(120, 150, 255, .16); --busy-ink: #BCCBFF;
  --ok: #3CC594; --ok-bg: rgba(60, 197, 148, .15); --ok-ink: #8BE3C1; --bad: #FF5A73;
  --raise: 0 1px 0 var(--line), 0 16px 36px -20px rgba(0, 0, 0, .75);
}
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.08; max-width: 20ch; }
h2 { font-size: 1.35rem; line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.25; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side-bg); color: #fff; padding: 1.75rem 1rem; display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 0; height: 100vh; }
.side__brand { display: block; padding: 0 .75rem; }
.side__brand img { height: 34px; width: auto; }
.side nav { display: grid; gap: .25rem; }
.side nav a { position: relative; display: flex; align-items: center; gap: .85rem; padding: .7rem .75rem; border-radius: var(--r-md); color: var(--side-fg); text-decoration: none; font-weight: 500; }
.side nav a:hover { background: var(--side-hover); color: #fff; }
.side nav a[aria-current] { background: var(--side-active-bg); color: var(--side-active-fg); font-weight: 600; }
.side nav svg { width: 20px; height: 20px; flex: none; }
.count { margin-left: auto; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--gradient); color: var(--navy); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.side__foot { margin-top: auto; padding: 0 .75rem; font-size: .88rem; color: var(--side-muted); }
.side__foot b { display: block; color: #fff; font-weight: 600; }
.side__foot form { margin-top: .6rem; }
.side__foot button { min-height: 0; background: none; border: 0; padding: 0; color: var(--side-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.side__foot button:hover { background: none; color: #fff; }
.main { padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 5vw, 4.5rem) 5rem; min-width: 0; }
.col { max-width: 820px; margin: 0 auto; }
.foot { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }

/* Cabeçalho de página */
.kicker { font-size: 1.05rem; color: var(--muted); margin: 0 0 .35rem; }
.intro { color: var(--muted); font-size: 1.05rem; max-width: 56ch; margin: .75rem 0 0; }
.back { display: inline-block; margin-bottom: 1.25rem; color: var(--muted); font-size: .95rem; }
.section { margin-top: 3.25rem; }
.section > header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section > header a { font-size: .95rem; color: var(--muted); }
.flash { margin: 0 0 1.5rem; padding: .9rem 1.15rem; border-radius: var(--r-md); background: var(--ok-bg); color: var(--ok-ink); font-weight: 500; }

/* ---------- Botões e formulários ---------- */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 0; background: var(--action); color: #fff; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover, button:hover { background: var(--action-hover); }
.btn--quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--quiet:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--small { min-height: 40px; padding: 0 1.1rem; font-size: .95rem; }
.linkbtn { background: none; color: var(--muted); min-height: 0; padding: 0; font-weight: 500; text-decoration: underline; }
.linkbtn:hover { background: none; color: var(--ink); }
.buttons { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.form { display: grid; gap: 1.1rem; }
label, .label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
label small, .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input, select, textarea { width: 100%; padding: .75rem .9rem; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 400 1rem/1.5 var(--body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(253, 110, 76, .25); }
textarea { min-height: 7.5rem; resize: vertical; }
input[type=file] { padding: .55rem; background: var(--paper); border-style: dashed; }
input[type=file]::file-selector-button { margin-right: .8rem; padding: .5rem 1rem; border: 0; border-radius: 999px; background: var(--strong); color: var(--on-strong); font: 600 .9rem var(--body); cursor: pointer; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--action); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check input { margin-top: .3rem; }
.panel { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--line); padding: 1.5rem 1.75rem; }

/* Escolha do tipo de pedido */
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; border: 0; padding: 0; margin: 0; }
.types legend { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.types label { display: block; padding: .9rem 1rem .9rem 2.6rem; position: relative; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; font-weight: 600; background: var(--card); }
.types input { position: absolute; left: 1rem; top: 1.15rem; margin: 0; }
.types small { display: block; font-weight: 400; margin-top: .15rem; }
.types label:has(input:checked) { border-color: var(--ink); background: var(--paper); }

/* ---------- Estados ---------- */
.tag { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 999px; background: var(--you-bg); color: var(--you-ink); font-size: .85rem; font-weight: 600; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.state { white-space: nowrap; font-size: .88rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; background: var(--paper); color: var(--muted); }
.state--you { background: var(--you-bg); color: var(--you-ink); }
.state--busy { background: var(--busy-bg); color: var(--busy-ink); }
.state--ok { background: var(--ok-bg); color: var(--ok-ink); }

/* ---------- Início ---------- */
.todos { display: grid; gap: 1rem; margin-top: 1.75rem; }
.todo { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--raise); overflow: hidden; display: grid; grid-template-columns: 220px 1fr; }
.todo--text { grid-template-columns: 1fr; }
.todo__img { background: var(--navy); min-height: 170px; }
.todo__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.todo__body { padding: 1.5rem 1.75rem; }
.todo h3 { font-size: 1.3rem; margin: .7rem 0 .3rem; }
.todo p { margin: 0 0 1.2rem; color: var(--muted); }
.allgood { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); max-width: 48ch; }
.shortcuts { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---------- Percurso do projeto ---------- */
.journey { background: var(--card); border-radius: var(--r-lg); padding: 1.75rem 1.75rem 1.5rem; box-shadow: 0 1px 0 var(--line); }
a.journey { display: block; text-decoration: none; }
a.journey:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.journey__top { display: flex; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; flex-wrap: wrap; }
.route { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.route::before, .route::after { content: ""; position: absolute; left: 10%; top: 15px; height: 4px; border-radius: 2px; }
.route::before { right: 10%; background: var(--line); }
.route::after { background: var(--gradient); width: var(--progress, 0%); }
.route li { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: .55rem; font-size: .92rem; color: var(--muted); }
.route .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 3px var(--line); display: grid; place-items: center; }
.route .done .dot { background: var(--strong); box-shadow: none; color: var(--on-strong); }
.route .done .dot svg { width: 16px; height: 16px; }
.route .now { color: var(--ink); font-weight: 700; }
.route .now .dot { background: var(--gradient); box-shadow: 0 0 0 7px rgba(253, 110, 76, .18); }
.here { margin: 1.75rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.here div { background: var(--paper); padding: 1rem 1.15rem; }
.here dt { font-size: .88rem; color: var(--muted); }
.here dd { margin: .15rem 0 0; font-weight: 600; }
.journey + .journey { margin-top: 1rem; }

/* ---------- O site ---------- */
.site { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.5rem; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--line); text-decoration: none; }
a.site:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(29, 138, 102, .15); flex: none; }
.pulse--bad { background: var(--bad); box-shadow: 0 0 0 6px rgba(180, 35, 58, .15); }
.pulse--wait { background: var(--muted); box-shadow: 0 0 0 6px rgba(91, 98, 116, .15); }
.site b { font-size: 1.05rem; }
.site > span:nth-child(2) span { display: block; color: var(--muted); font-size: .95rem; }
.site em { margin-left: auto; font-style: normal; font-weight: 600; white-space: nowrap; color: var(--ok); }
.site--big { padding: 1.75rem; align-items: flex-start; }
.site--big .pulse { margin-top: .55rem; }
.site--big b { display: block; margin-bottom: .35rem; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 1rem 0 0; box-shadow: 0 1px 0 var(--line); }
.facts div { background: var(--card); padding: 1.15rem 1.25rem; }
.facts dt { font-size: .88rem; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.reports { display: grid; gap: .6rem; }
.reports details { background: var(--card); border-radius: var(--r-md); box-shadow: 0 1px 0 var(--line); padding: 1rem 1.25rem; }
.reports summary { cursor: pointer; font-weight: 600; }
.reports ul { margin: .75rem 0 0; padding-left: 1.2rem; color: var(--muted); }

/* ---------- Listas (pedidos, documentos, projetos) ---------- */
.rows { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--line); list-style: none; margin: 0; padding: .35rem 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; text-decoration: none; }
.rows a:hover b { text-decoration: underline; }
.rows b { display: block; font-weight: 600; }
.rows small { color: var(--muted); font-size: .9rem; }
.rows .state { margin-left: auto; }
.rows .ext { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--paper); color: var(--you-ink); font-size: .7rem; font-weight: 800; letter-spacing: .03em; }
.empty { padding: 1.25rem 1.5rem; border: 1.5px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty p:last-child { margin: 0; }
.empty b { color: var(--ink); }

/* ---------- Aprovação ---------- */
.approval { margin-top: 2rem; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--raise); padding: 1.75rem; scroll-margin-top: 1.5rem; }
.approval h2 { font-size: 1.55rem; margin: .7rem 0 .5rem; }
.approval > p { color: var(--muted); max-width: 62ch; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.shots a { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 10; position: relative; }
.shots img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shots span { position: absolute; left: .6rem; bottom: .6rem; max-width: calc(100% - 1.2rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255, 255, 255, .94); color: #242A38; font-size: .82rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; }
.decide { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.decide > p { margin: 0 0 .75rem; font-weight: 600; font-size: 1.05rem; }
.decide-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-start; }
.decide-row > form { margin: 0; }
.decide-row details { flex: 1 1 260px; }
.decide-row summary { list-style: none; display: inline-flex; }
.decide-row summary::-webkit-details-marker { display: none; }
.decide-row details[open] summary { box-shadow: inset 0 0 0 1.5px var(--ink); }
.decide-row details .form { margin-top: 1rem; padding: 1.25rem; background: var(--paper); border-radius: var(--r-md); }

/* Ficheiros (miniaturas e etiquetas) — usados no histórico e nos pedidos */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: .75rem 0; }
.thumbs a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 1px var(--line); }
.thumbs a:hover { box-shadow: 0 0 0 2px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.files { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.file { display: inline-flex; align-items: center; gap: .7rem; padding: .5rem .9rem .5rem .5rem; border-radius: 10px; background: var(--paper); text-decoration: none; max-width: 100%; }
.file:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.file small { display: block; color: var(--muted); font-size: .78rem; }
.file > span:last-child { overflow-wrap: anywhere; }
.file__ext { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 8px; background: var(--card); color: var(--you-ink); font-size: .7rem; font-weight: 800; }

/* Linha do tempo (histórico do projeto e conversa de um pedido) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 2rem 1rem; }
.timeline > li:last-child { padding-bottom: .25rem; }
.timeline > li::before { content: ""; position: absolute; left: calc(-1.5rem - 6px); top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--muted); }
.timeline > li.mine::before { box-shadow: 0 0 0 2px var(--orange); background: var(--orange); }
.timeline time { font-size: .88rem; color: var(--muted); }
.timeline b { display: block; margin: .1rem 0 .3rem; }
.timeline .text { max-width: 62ch; }
.timeline .ok { color: var(--ok); font-weight: 600; margin: .5rem 0 0; }
.timeline .changes { color: var(--you-ink); font-weight: 600; margin: .5rem 0 0; }

/* Pedido: estado em frase */
.status { display: flex; gap: .9rem; align-items: center; margin: 1.5rem 0 2rem; padding: 1rem 1.25rem; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--line); }
.status p { margin: 0; }

/* Entrar */
.login { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 1.5rem 1rem; }
.login > * { width: min(440px, 100%); }
.login__card { width: 100%; max-width: 440px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--raise); padding: 2.25rem; }
.login__card > img { height: 44px; width: auto; margin-bottom: 1.75rem; }
.login__card h1 { font-size: 1.9rem; margin-bottom: .6rem; }
.login__card button { width: 100%; }

/* Contrato: folha branca, pronta a imprimir */
.contract { background: #fff; color: #1b1d24; border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--line); padding: clamp(1.5rem, 4vw, 3rem); line-height: 1.6; margin-top: 1.5rem; }
.contract h1 { font-size: 1.5rem; max-width: none; }
.contract h2 { font-size: 1.1rem; margin: 1.8rem 0 .5rem; }
.contract ul { padding-left: 1.2rem; }
.contract hr { border: 0; border-top: 1px solid #ddd; margin: 2.5rem 0; }
.contract table { width: 100%; border-collapse: collapse; margin: .5rem 0; font-size: .95rem; }
.contract th, .contract td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid #e6e6ea; vertical-align: top; }
.contract th { color: #555; font-weight: 600; background: #f4f4f6; }
.accept-box { margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--r-md); background: var(--paper); display: grid; gap: .9rem; }
.copy { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; word-break: break-all; }

/* ---------- Telemóvel: menu em baixo ---------- */
.mobile-out { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: auto 0 0 0; height: auto; padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)); flex-direction: row; z-index: 10; gap: 0; }
  .side__brand, .side__foot { display: none; }
  .side nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 0; }
  .side nav a { flex-direction: column; gap: .2rem; font-size: .72rem; line-height: 1.2; padding: .45rem .2rem; text-align: center; }
  .side nav a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; }
  .theme--side { display: none; }
  .count { position: absolute; top: .15rem; left: calc(50% + .35rem); margin: 0; min-width: 1.15rem; height: 1.15rem; font-size: .68rem; }
  .main { padding-bottom: 7rem; }
  .mobile-out { display: block; }
  .todo { grid-template-columns: 1fr; }
  .todo__img { min-height: 0; height: 160px; }
  .route { grid-template-columns: 1fr; gap: 1.1rem; margin-top: 1.5rem; }
  .route::before { left: 15px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; }
  .route::after { left: 15px; top: 10px; width: 4px; height: var(--progress-v, 0%); }
  .route li { grid-template-columns: 34px 1fr; justify-items: start; text-align: left; align-items: center; gap: .9rem; }
  .here, .facts { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr; }
  .site em { display: none; }
  .rows a { padding: 1rem 1.15rem; flex-wrap: wrap; }
  .rows .state { margin-left: 0; }
  .panel, .journey, .approval { padding: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .route .now .dot { animation: here 2.4s ease-in-out infinite; }
  @keyframes here { 50% { box-shadow: 0 0 0 11px rgba(253, 110, 76, .08); } }
}
@media print {
  body { background: #fff; }
  .side, .no-print, .flash, .foot { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .contract { box-shadow: none; padding: 0; }
}

/* Aspeto: automático, claro ou escuro (guardado na conta) */
.theme { display: grid; gap: .4rem; margin-top: 1rem; }
.theme span { font-size: .8rem; }
.theme div { display: inline-flex; padding: .2rem; border-radius: 999px; background: rgba(255, 255, 255, .06); width: max-content; }
.theme button { min-height: 0; padding: .3rem .7rem; border-radius: 999px; background: none; color: var(--side-muted); font: 500 .8rem var(--body); text-decoration: none; }
.theme button:hover { background: none; color: #fff; }
.theme button[aria-pressed="true"] { background: var(--side-active-bg); color: var(--side-active-fg); }
.foot .theme span { color: var(--muted); }
.foot .theme div { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.foot .theme button { color: var(--muted); }
.foot .theme button:hover { color: var(--ink); }

/* Modo Lumbra (a equipa a ver a área de um cliente) */
.as-client { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin: 0 0 1.75rem; padding: .7rem 1rem; border-radius: var(--r-md); background: var(--busy-bg); color: var(--busy-ink); font-size: .92rem; }
.as-client a { font-weight: 600; }
.login__card .rows { margin-top: 1.25rem; box-shadow: none; border: 1px solid var(--line); }

/* Barra de horas (pack) */
.meter-bar { display: block; height: 8px; border-radius: 4px; background: var(--line); margin-top: .8rem; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--gradient); border-radius: 4px; }
