/* 08-extras.css — Text changes, initials, customer card, tour, micro-animations, time machine, live activity.
   Part of the portal stylesheet; index.html loads the parts in order (01 to 12), so the cascade is
   the same as one file. */

/* Tekstwijzigingen: doorgestreept verdwijnt, gemarkeerd komt erbij */
.text-changes-body { display: grid; gap: 12px; }
.tx-file { display: grid; gap: 8px; }
.tx-path { display: flex; align-items: center; gap: 6px; margin: 0; }
.tx-path svg { width: 14px; height: 14px; }
.tx-line { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); line-height: 1.7; }
.tx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tx-pair > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.tx-pair p { margin: 4px 0 0; line-height: 1.7; }
.tx-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.tx-del { background: var(--danger-bg); color: var(--danger); text-decoration: line-through; text-decoration-thickness: 1.5px; border-radius: 3px; padding: 0 2px; }
.tx-add { background: var(--ok-bg); color: var(--ok); text-decoration: none; border-radius: 3px; padding: 0 2px; font-weight: 600; }
@media (max-width: 720px) { .tx-pair { grid-template-columns: 1fr; } }


/* Klantkaart in Pakketbeheer */
.customer-hero { display: grid; gap: 18px; }
.customer-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.customer-hero-name { flex: 1 1 200px; min-width: 0; }
.customer-hero-name h2 { margin: 0; font-size: 22px; }
.customer-hero-name p { margin: 2px 0 0; }
.customer-hero-contact { display: grid; gap: 6px; font-size: 13px; }
.customer-hero-contact > * { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.customer-hero-contact svg { width: 15px; height: 15px; color: var(--muted); }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.hero-stat { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.hero-stat-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.hero-stat-label svg { width: 14px; height: 14px; }
.hero-stat strong { font-size: 20px; }
.hero-activity h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.hero-activity h3 svg { width: 16px; height: 16px; }
.activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.activity-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.activity-list li .muted { margin-left: auto; }
.details-card > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.details-card > summary svg { width: 16px; height: 16px; }
.details-card[open] > summary { margin-bottom: 14px; }

/* Rondleiding */
.tour-layer { position: fixed; inset: 0; z-index: 400; }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(10, 12, 16, 0.55); outline: 2px solid var(--brand-primary); transition: all 0.25s ease; pointer-events: none; }
.tour-layer:has(.tour-spot[hidden]) { background: rgba(10, 12, 16, 0.55); }
.tour-bubble { position: fixed; width: min(360px, calc(100vw - 32px)); padding: 16px; display: grid; gap: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-float); animation: pop-in 0.2s ease-out both; }
.tour-bubble p { margin: 0; color: var(--muted); line-height: 1.5; }
.tour-head { display: flex; align-items: center; gap: 10px; }
.tour-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.tour-icon svg { width: 16px; height: 16px; }
.tour-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tour-dots { display: inline-flex; gap: 5px; }
.tour-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background 0.2s, transform 0.2s; }
.tour-dot-active { background: var(--brand-primary); transform: scale(1.25); }
.tour-buttons { display: flex; gap: 6px; margin-left: auto; }

/* Micro-animaties */
.btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 0.05s; }
.chip { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.toast { animation: toast-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.inbox-panel:not([hidden]), dialog[open] { animation: pop-in 0.18s ease-out both; }
.view:not(.view-settled) > * { animation: rise-in 0.3s ease-out both; }
.view:not(.view-settled) > :nth-child(2) { animation-delay: 0.04s; } .view:not(.view-settled) > :nth-child(3) { animation-delay: 0.08s; }
.view:not(.view-settled) > :nth-child(4) { animation-delay: 0.12s; } .view:not(.view-settled) > :nth-child(5) { animation-delay: 0.16s; }
.view:not(.view-settled) > :nth-child(n+6) { animation-delay: 0.2s; }
.badge-changed { animation: badge-pop 0.7s ease-out; }
.meter span { transition: width 0.6s ease-out; }
.celebrate { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; pointer-events: none; animation: celebrate-fade 1.4s ease-in-out both; }
.celebrate svg { width: 96px; height: 96px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25)); }
.celebrate-circle { fill: var(--surface); stroke: var(--ok); stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw 0.45s ease-out forwards; }
.celebrate-tick { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.3s 0.4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes celebrate-fade { 0% { opacity: 0; transform: scale(0.8); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes badge-pop { 0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); } 30% { transform: scale(1.12); } 100% { transform: scale(1); box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled), .toast, .inbox-panel:not([hidden]), dialog[open], .view > *, .badge-changed, .tour-bubble, .tour-spot, .meter span, .celebrate { animation: none !important; transition: none !important; transform: none !important; }
}

/* ---------- Tijdmachine ---------- */
.tm-stage { position: relative; aspect-ratio: 960 / 640; max-height: 560px; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 18px 40px -20px rgba(16, 24, 40, 0.35); }
.tm-layer, .tm-now { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tm-layer { opacity: 0; transition: opacity 0.45s ease; }
.tm-layer.tm-visible { opacity: 1; }
.tm-now { opacity: 0; }
.tm-comparing .tm-now { opacity: 1; }
.tm-split-handle, .tm-split-range { display: none; }
.tm-comparing .tm-split-handle { display: grid; position: absolute; top: 0; bottom: 0; width: 0; place-items: center; border-left: 2px solid #ffffff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); pointer-events: none; z-index: 2; }
.tm-comparing .tm-split-handle svg { width: 30px; height: 30px; padding: 6px; margin-left: -1px; border-radius: 50%; background: #ffffff; color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.tm-comparing .tm-split-range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.tm-caption { position: absolute; left: 14px; bottom: 14px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: fit-content; max-width: calc(100% - 28px); padding: 10px 14px; border-radius: 12px; color: #ffffff;
  background: rgba(18, 20, 26, 0.55); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.tm-caption a, .tm-caption span { display: inline-flex; align-items: center; gap: 6px; color: #ffffff; }
.tm-caption a { text-decoration: underline; text-underline-offset: 3px; }
.tm-caption svg { width: 15px; height: 15px; }
.tm-counter { position: absolute; top: 12px; right: 12px; z-index: 4; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #ffffff; background: rgba(18, 20, 26, 0.5); backdrop-filter: blur(10px); }
.tm-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.tm-track { position: relative; flex: 1 1 260px; min-width: 0; padding-top: 6px; }
.tm-range { width: 100%; margin: 0; accent-color: var(--brand-primary); position: relative; z-index: 1; }
.tm-ticks { position: absolute; left: 8px; right: 8px; top: 2px; height: 8px; pointer-events: none; }
.tm-tick { position: absolute; top: 0; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--line); }
.tm-tick-change { background: var(--brand-primary); height: 10px; top: -1px; }
.tm-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
@media (max-width: 720px) {
  .tm-stage { aspect-ratio: 4 / 3; }
  .tm-caption { left: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: 12px; padding: 6px 10px; gap: 2px 8px; }
  .tm-caption a span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  /* Buttons on one row, the slider full width below. */
  .tm-track { order: 10; flex-basis: 100%; }
  .tm-controls .chip { margin-left: auto; }
}

/* ---------- Live activiteit ---------- */
.activity-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.activity-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: live-dot 2s ease-out infinite; }
.activity-stamp { font-weight: 500; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--space-3); }
.act-tile { --act: var(--line); position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 22px -14px rgba(16, 24, 40, 0.25); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.act-tile:hover { transform: translateY(-2px); }
.act-shot { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--surface-2); }
.act-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.act-shot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 12, 16, 0.35)); z-index: 1; }
.act-shot-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.act-shot-empty svg { width: 28px; height: 28px; }
.act-chip { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #ffffff; background: color-mix(in srgb, var(--act) 78%, rgba(10, 12, 16, 0.4)); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.25); }
.act-chip svg { width: 13px; height: 13px; }
.act-body { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-2) var(--space-3) var(--space-3); }
.act-title { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.act-names { display: grid; min-width: 0; }
.act-name { font-weight: 800; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-request { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-problem { --act: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 25%, transparent), 0 12px 30px -14px color-mix(in srgb, var(--danger) 55%, transparent); }
.act-working { --act: var(--info); border-color: color-mix(in srgb, var(--info) 45%, var(--line)); animation: act-glow 2.4s ease-in-out infinite; }
.act-attention { --act: #c27c0e; border-color: color-mix(in srgb, #c27c0e 45%, var(--line)); }
.act-waiting { --act: #7a5bb5; }
.act-live { --act: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.act-idle { --act: #6b7280; }
.act-idle .act-shot img { filter: saturate(0.6); }
.act-scan { position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--info) 30%, transparent) 50%, transparent 70%); background-size: 250% 100%; animation: act-scan 2.2s linear infinite; mix-blend-mode: screen; }
@keyframes act-glow { 0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--info) 20%, transparent), 0 10px 26px -14px color-mix(in srgb, var(--info) 45%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--info) 18%, transparent), 0 16px 36px -12px color-mix(in srgb, var(--info) 60%, transparent); } }
/* A tile whose state just changed lights up once in its new colour. */
.act-changed { animation: act-changed 1.4s ease-out; }
.act-working.act-changed { animation: act-changed 1.4s ease-out, act-glow 2.4s ease-in-out 1.4s infinite; }
@keyframes act-changed { 0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--act) 60%, transparent); }
  18% { transform: scale(1.025); } 100% { transform: scale(1); box-shadow: 0 0 0 14px transparent; } }
@keyframes act-scan { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* The tiles on the start screen: uptime, last backup and Sitebewaking at a glance. */
.act-vitals { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
.act-vital { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.act-vital svg { width: 12px; height: 12px; }
.act-vital-ok { background: var(--ok-bg); color: var(--ok); }
.act-vital-warn, .act-vital-warning { background: var(--warn-bg); color: var(--warn); }
.act-vital-error { background: var(--danger-bg); color: var(--danger); }

/* Uptime and the last 30 days of a website (components/site-history.js). */
.sh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sh-stat { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sh-stat-label { color: var(--muted); font-size: 12px; }
.sh-stat strong { font-size: 22px; font-weight: 850; }
.sh-ok strong { color: var(--ok); }
.sh-warn strong { color: var(--warn); }
.sh-error strong { color: var(--danger); }
.sh-spark .sparkline { width: 110px; height: 24px; }
.sh-last { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; }
.sh-last svg { width: 13px; height: 13px; }
.sh-lanes { display: grid; gap: 6px; }
.sh-lane { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px; }
.sh-lane-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.sh-lane-label svg { width: 14px; height: 14px; }
.sh-cells { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.sh-cell { position: relative; display: grid; place-items: center; height: 24px; border-radius: 5px; background: var(--meter-track); font-size: 10px; font-weight: 800; }
.sh-up.sh-ok { background: color-mix(in srgb, var(--ok) 70%, transparent); }
.sh-up.sh-warn { background: color-mix(in srgb, var(--warn) 65%, transparent); }
.sh-up.sh-error { background: var(--danger); }
.sh-speed { align-items: end; overflow: hidden; }
.sh-bar { width: 100%; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--info) 55%, transparent); }
.sh-dot { width: 10px; height: 10px; border-radius: 50%; }
.sh-dot.sh-ok { background: var(--ok); }
.sh-dot.sh-error { background: var(--danger); }
.sh-count { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--primary); color: #ffffff; }
.sh-score.sh-ok { color: var(--ok); }
.sh-score.sh-warn { color: var(--warn); }
.sh-score.sh-error { color: var(--danger); }
.sh-axis { display: flex; justify-content: space-between; margin-left: 160px; color: var(--muted); font-size: 11px; }
.sh-table { margin-top: 12px; }
.sh-table summary { cursor: pointer; color: var(--primary); font-weight: 650; font-size: 13px; }
@media (max-width: 760px) {
  .sh-lane { grid-template-columns: 1fr; gap: 4px; }
  .sh-cells { gap: 2px; }
  .sh-cell { height: 18px; font-size: 0; }
  .sh-axis { margin-left: 0; }
}

/* Request rows (components/request-cards.js): picture before/after, title, status and the four steps.
   Compact, so a list shows two to three times as many requests; two columns on a wide screen. */
.request-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: var(--space-2); }
.request-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 136px; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); transition: box-shadow 0.18s ease, border-color 0.18s ease; }
.request-card:hover { border-color: color-mix(in srgb, var(--primary) 24%, var(--line)); box-shadow: 0 10px 24px -16px rgba(80, 35, 25, 0.35); }
.rc-shot { position: relative; display: block; height: 46px; overflow: hidden; border-radius: 8px; background: var(--meter-track); }
.rc-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.25s ease; }
.rc-before { opacity: 0; }
.rc-has-before:hover .rc-before, .rc-has-before:focus-visible .rc-before { opacity: 1; }
.rc-tag { position: absolute; left: 3px; bottom: 3px; padding: 0 5px; border-radius: 999px; background: rgba(18, 20, 26, 0.6); color: #ffffff; font-size: 9px; font-weight: 800; }
.rc-tag-before, .rc-has-before:hover .rc-tag-after, .rc-has-before:focus-visible .rc-tag-after { display: none; }
.rc-has-before:hover .rc-tag-before, .rc-has-before:focus-visible .rc-tag-before { display: inline; }
/* Without a picture: a small icon, no large empty block. */
.rc-shot-empty { display: grid; place-items: center; width: 36px; height: 36px; justify-self: center; border-radius: 50%; color: var(--muted); }
.rc-shot-empty svg { width: 18px; height: 18px; }
.rc-body { display: grid; gap: 2px; min-width: 0; }
.rc-meta { margin: 0; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-title { overflow: hidden; color: var(--ink); font-weight: 750; line-height: 1.3; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.rc-title:hover { color: var(--primary); }
.rc-status { display: flex; justify-content: flex-end; }
.rc-progress { display: grid; gap: 3px; width: 100%; }
.rc-progress ol { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; margin: 0; padding: 0; list-style: none; }
.rc-step { height: 5px; border-radius: 999px; background: var(--meter-track); }
.rc-done { background: var(--ok); }
.rc-current { background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 35%, var(--meter-track))); background-size: 200% 100%; animation: rc-flow 1.6s linear infinite; }
.rc-stopped { background: var(--danger); }
.rc-progress-label { color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Narrow: title next to the picture, status and steps on a second line. */
@media (max-width: 760px) {
  .request-card { grid-template-columns: 56px auto minmax(64px, 1fr); grid-template-areas: "shot body body" "shot status steps"; row-gap: var(--space-1); column-gap: var(--space-2); }
  .rc-shot { grid-area: shot; height: 40px; }
  .rc-body { grid-area: body; }
  .rc-status { grid-area: status; justify-content: flex-start; }
  .rc-progress { grid-area: steps; }
}
@keyframes rc-flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .rc-current { animation: none; }
  .request-card, .rc-shot img { transition: none; }
}

/* Bestanden: everything sent with requests for one website (views/project-files.js). */
.files-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 14px; }
.files-search { max-width: 280px; }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.files-tile { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.files-tile.chosen { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.files-check { position: absolute; top: 8px; left: 8px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); cursor: pointer; }
.files-check input { margin: 0; }
.files-picture { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--meter-track); }
.files-picture img { width: 100%; height: 100%; object-fit: cover; }
.files-icon svg { width: 34px; height: 34px; color: var(--muted); }
.files-body { display: grid; gap: 3px; align-content: start; padding: 10px 12px 12px; min-width: 0; }
.files-name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.files-request, .files-download { display: inline-flex; align-items: center; gap: 5px; min-width: 0; text-decoration: none; }
.files-request span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-request svg, .files-download svg { width: 13px; height: 13px; flex: 0 0 auto; }
.files-actions { position: sticky; bottom: 0; justify-content: flex-end; gap: 12px; margin-top: 14px; padding: 10px 0 2px; background: linear-gradient(transparent, var(--surface) 30%); }

/* Signed-in devices on the account page */
.session-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.session-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, rgba(0, 0, 0, 0.08)); border-radius: 12px; }
.session-item > svg, .session-item > i { flex: none; width: 20px; height: 20px; opacity: 0.7; }
.session-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.session-text .badge { margin-left: 8px; }

/* Request page: test version and the checks in the test environment */
.checks-panel > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.checks-panel > summary .muted { font-weight: 500; }
.check-self { display: flex; gap: 8px; align-items: center; }
.check-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; }
.check-item > svg, .check-item > i { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.check-item .badge { margin-left: 8px; }
.check-item .check-where { display: block; }
.check-error > svg, .check-error > i { color: var(--danger, #b42318); }
.check-warning > svg, .check-warning > i { color: var(--warn, #b54708); }
.badge.badge-warning { color: var(--warn, #b54708); }
.test-mails h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 16px 0 4px; }
.test-mail { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-top: 6px; }
.test-mail > summary { cursor: pointer; }
.mail-text { white-space: pre-wrap; word-break: break-word; font-size: 13px; margin: 6px 0 0; max-height: 320px; overflow: auto; }
.check-ok > svg, .check-ok > i { color: var(--ok, #206b30); }
.test-scenarios h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 16px 0 4px; }
.sp-scenarios { margin-top: 8px; }
