/* =====================================================================
   Crane Transfer – stile
   Colori dal marchio: blu #0071BB, arancio #F39200, nero #1d1d1b
   ===================================================================== */
:root {
  --blue: #0071BB;
  --blue-2: #2a9df4;
  --orange: #F39200;
  --orange-2: #ffb547;
  --ink: #14202b;
  --ink-2: #3b4a59;
  --muted: #6b7a89;
  --line: rgba(20, 32, 43, .10);
  --card: rgba(255, 255, 255, .78);
  --card-solid: #ffffff;
  --bg: #eaf2fa;
  --green: #1f9d55;
  --red: #d63a3a;
  --radius: 22px;
  --shadow: 0 20px 50px -18px rgba(0, 50, 100, .35), 0 2px 6px rgba(0, 30, 60, .06);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; margin-top: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.c { text-align: center; }
.mt { margin-top: 1rem; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- sfondo dinamico */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(1200px 800px at 10% -10%, #dbeeff 0%, transparent 60%),
              radial-gradient(900px 700px at 110% 110%, #ffe9cc 0%, transparent 60%), var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: multiply; will-change: transform; }
.b1 { width: 46vmax; height: 46vmax; background: var(--blue-2); top: -18vmax; left: -12vmax; animation: float1 22s ease-in-out infinite; }
.b2 { width: 38vmax; height: 38vmax; background: var(--orange-2); bottom: -16vmax; right: -10vmax; animation: float2 26s ease-in-out infinite; }
.b3 { width: 26vmax; height: 26vmax; background: #7cc4ff; top: 40%; left: 55%; animation: float3 30s ease-in-out infinite; opacity: .4; }
.b4 { width: 20vmax; height: 20vmax; background: #ff9f43; top: 12%; right: 18%; animation: float1 34s ease-in-out infinite reverse; opacity: .3; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vmax,6vmax) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vmax,-5vmax) scale(1.08); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) rotate(0); } 33% { transform: translate(-10vmax,4vmax) rotate(40deg); } 66% { transform: translate(6vmax,-6vmax) rotate(-30deg); } }
.bg-mark { position: absolute; right: -6vmax; top: 8vh; height: 92vh; opacity: .06; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.grain { position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px); background-size: 4px 4px; }
@media (prefers-reduced-motion: reduce) { .blob, .bg-mark { animation: none; } }

/* ---------------------------------------------------------------- header */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(16px, 3vw, 40px); background: rgba(255,255,255,.65); backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.7); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none !important; }
.brand img { height: 42px; width: auto; display: block; }
.brand-tag { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff6a00); padding: .3rem .7rem; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(243,146,0,.8); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.nav a { color: var(--ink-2); padding: .5rem .85rem; border-radius: 12px; font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(0,113,187,.08); color: var(--blue); }
.nav a.active { background: var(--ink); color: #fff; }
.nav a.nav-cta { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 8px 18px -8px rgba(0,113,187,.8); }
.nav-user { display: flex; align-items: center; gap: .4rem; margin-left: .6rem; padding-left: .8rem; border-left: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.nav-user a { padding: .3rem .5rem; font-size: .88rem; }
.nav-toggle { display: none; margin-left: auto; border: 0; background: var(--ink); color: #fff; border-radius: 10px; padding: .4rem .7rem; font-size: 1.1rem; cursor: pointer; }
.ghost-link { border: 1px solid var(--line); }
.linklike { background: none; border: 0; padding: .3rem .5rem; color: var(--blue); font: inherit; cursor: pointer; font-size: .88rem; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .topbar .nav:not(.nav-public) { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: .8rem 16px 1rem; box-shadow: var(--shadow); }
  body.nav-open .topbar .nav { display: flex; }
  .nav-user { margin: .4rem 0 0; padding: .6rem 0 0; border-left: 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .brand img { height: 34px; }
}

/* ---------------------------------------------------------------- layout */
.main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: clamp(18px, 3vw, 40px) clamp(16px, 3vw, 40px) 60px; }
.main-center { display: flex; align-items: center; justify-content: center; }
.footer { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 16px;
  color: var(--muted); font-size: .8rem; text-align: center; }
.footer img { height: 34px; opacity: .85; }

.card { background: var(--card); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 30px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head p { margin: 0; max-width: 70ch; }
.back { font-size: .9rem; display: inline-block; margin-bottom: .4rem; }
.row-gap { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- bottoni / form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: .7rem 1.25rem; border-radius: 14px; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue) 0%, #0a8be0 50%, var(--blue-2) 100%); background-size: 200% 100%;
  box-shadow: 0 10px 24px -10px rgba(0,113,187,.9); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 28px -10px rgba(0,113,187,.95); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-soft { background: rgba(0,113,187,.09); color: var(--blue); }
.btn-soft:hover { background: rgba(0,113,187,.16); }
.btn-danger { background: rgba(214,58,58,.10); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-big { width: 100%; padding: 1rem 1.4rem; font-size: 1.08rem; border-radius: 16px; }
.btn-sm { padding: .38rem .7rem; font-size: .82rem; border-radius: 10px; }

.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field.narrow { max-width: 260px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], textarea {
  width: 100%; font: inherit; color: var(--ink); background: rgba(255,255,255,.9); border: 1.5px solid rgba(20,32,43,.12);
  border-radius: 14px; padding: .75rem .95rem; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,187,.14); }
.check { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 1.2rem; font-size: .92rem; color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.hint { font-size: .85rem; color: var(--muted); margin: -.3rem 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { background: rgba(214,58,58,.09); color: var(--red); border: 1px solid rgba(214,58,58,.25); padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 500; }
.flash { background: rgba(31,157,85,.10); color: var(--green); border: 1px solid rgba(31,157,85,.25); padding: .6rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 500; }

/* ---------------------------------------------------------------- hero / upload */
.main-hero { display: flex; align-items: center; }
.hero { width: 100%; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
  background: rgba(0,113,187,.10); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 1rem; }
.grad { background: linear-gradient(100deg, var(--blue) 0%, #00a3ff 35%, var(--orange) 70%, #ff6a00 100%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin: 0 0 1.4rem; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.perks li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--ink-2); }
.perks span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #fff; box-shadow: 0 6px 14px -8px rgba(0,50,100,.4); }

.upload-card { position: relative; overflow: hidden; }
.upload-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--blue), #00a3ff, var(--orange), #ff6a00, var(--blue)); background-size: 200% 100%; animation: shine 5s linear infinite; }
.dropzone { position: relative; border: 2px dashed rgba(0,113,187,.35); border-radius: 18px; padding: 2rem 1rem; text-align: center; margin-bottom: 1.2rem;
  background: linear-gradient(180deg, rgba(0,113,187,.04), rgba(243,146,0,.04)); transition: all .25s; outline: none; }
.dropzone:focus-visible { box-shadow: 0 0 0 4px rgba(0,113,187,.18); }
.dropzone.over { border-color: var(--orange); background: rgba(243,146,0,.08); transform: scale(1.01); }
.dropzone.compact { padding: 1rem; }
.dropzone.compact .dz-ring, .dropzone.compact .dz-sub { display: none; }
.dz-ring { width: 78px; height: 78px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 0deg, var(--blue), #00a3ff, var(--orange), var(--blue)); animation: spin 8s linear infinite; padding: 4px; }
.dz-plus { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2rem; color: var(--blue); font-weight: 300; animation: spin 8s linear infinite reverse; }
.dz-title { font-weight: 700; font-size: 1.15rem; }
.dz-sub { color: var(--muted); font-size: .9rem; margin: .2rem 0 .6rem; }
.dz-buttons { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .4rem; }

.picked { margin-bottom: 1.2rem; }
.picked-head { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; margin-bottom: .4rem; color: var(--ink-2); }
.tag { background: rgba(243,146,0,.14); color: #b86b00; padding: .1rem .5rem; border-radius: 6px; font-size: .78rem; font-weight: 600; }
#pickedList { list-style: none; margin: 0; padding: 0; max-height: 210px; overflow: auto; display: grid; gap: .35rem; }
#pickedList li { display: grid; grid-template-columns: auto 1fr auto auto; gap: .6rem; align-items: center; background: #fff; border-radius: 12px; padding: .5rem .7rem; font-size: .9rem; animation: pop .25s ease; }
#pickedList .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
#pickedList .sz { color: var(--muted); font-size: .8rem; }
#pickedList .rm { border: 0; background: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; line-height: 1; }
#pickedList .rm:hover { color: var(--red); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

.step-progress, .step-done { text-align: center; padding: 1.5rem 0 .5rem; }
.ring { position: relative; width: 190px; height: 190px; margin: 0 auto 1.2rem; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: rgba(0,113,187,.12); }
.ring-fg { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset .4s ease; stroke-dasharray: 327; stroke-dashoffset: 327; }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: var(--ink); }
.ring-label small { font-size: 1.2rem; color: var(--muted); }
.ring-label { display: flex; align-items: center; justify-content: center; }
.progress-title { font-weight: 700; font-size: 1.15rem; }
.progress-sub { color: var(--muted); font-size: .9rem; margin: .3rem 0 1.4rem; min-height: 1.4em; }
.done-check { width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 3rem; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #22c06b, #1f9d55); box-shadow: 0 16px 34px -12px rgba(31,157,85,.8); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.done-check.warn { background: linear-gradient(135deg, var(--orange-2), var(--orange)); box-shadow: 0 16px 34px -12px rgba(243,146,0,.8); }
.copy-row { display: flex; gap: .5rem; margin: 1rem 0; }
.copy-row input { flex: 1; min-width: 0; font-size: .85rem; }

/* invio amministratore */
.upload-card.wide { max-width: none; }
.send-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(16px, 3vw, 36px); }
@media (max-width: 900px) { .send-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- login / download */
.auth-card { width: 100%; max-width: 440px; text-align: center; }
.auth-card form { text-align: left; margin-top: 1.2rem; }
.auth-mark { height: 64px; margin-bottom: .8rem; }
.narrow-card { max-width: 520px; }
.dl-card { width: 100%; max-width: 760px; }
.dl-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.dl-head .pill { margin-bottom: .4rem; }
.dl-icon { flex: none; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 2.2rem;
  background: linear-gradient(135deg, rgba(0,113,187,.15), rgba(243,146,0,.18)); }
.dl-file { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1.1rem 1.2rem; border-radius: 18px; background: #fff; margin: 1.2rem 0; }
.dl-file .btn-big { width: auto; }
.dl-name { font-weight: 700; font-size: 1.1rem; word-break: break-all; }
.note-box { background: #fff; border-left: 4px solid var(--orange); padding: 1rem 1.2rem; border-radius: 12px; font-size: 1.02rem; white-space: normal; word-wrap: break-word; }
.file-list summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.file-list ul, ul.files { list-style: none; padding: 0; margin: .6rem 0; max-height: 320px; overflow: auto; font-size: .88rem; }
.file-list li, ul.files li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); word-break: break-all; }
.howto { margin-top: 1.4rem; padding: 1rem 1.2rem; background: rgba(0,113,187,.06); border-radius: 14px; font-size: .92rem; }
.howto ol { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---------------------------------------------------------------- admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border-radius: 20px; padding: 1.1rem 1.3rem; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); }
.stat span { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stat small { opacity: .9; font-weight: 500; }
.s-blue { background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.s-orange { background: linear-gradient(135deg, var(--orange), #ff6a00); }
.s-dark { background: linear-gradient(135deg, #1d2733, #3b4a59); }
.s-green { background: linear-gradient(135deg, #1f9d55, #3ccf84); }

.toolbar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.search { flex: 1; min-width: 240px; max-width: 520px; }
.search input { border-radius: 999px; padding-left: 1.2rem; }
.toolbar .flash { margin: 0; }

.group { padding: 0; margin-bottom: 1rem; overflow: hidden; }
.group-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.3rem; cursor: pointer; user-select: none; }
.group-head:hover { background: rgba(255,255,255,.5); }
.group-ico { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .9rem; }
.group-ico.dom { background: linear-gradient(135deg, var(--blue), var(--blue-2)); font-size: 1.2rem; }
.group-ico.ip { background: linear-gradient(135deg, #3b4a59, #6b7a89); }
.group-title { flex: 1; min-width: 0; }
.group-title strong { display: block; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; }
.group-title small { color: var(--muted); }
.chev { transition: transform .25s; color: var(--muted); }
.group.collapsed .chev { transform: rotate(-90deg); }
.group.collapsed .group-body { display: none; }
.group-body { padding: 0 1rem 1rem; }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; vertical-align: middle; }
.b-orange { background: var(--orange); color: #fff; animation: pulse 2s infinite; }
.b-blue { background: rgba(0,113,187,.12); color: var(--blue); }
.b-grey { background: rgba(0,0,0,.08); color: var(--muted); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(243,146,0,.5); } 50% { box-shadow: 0 0 0 6px rgba(243,146,0,0); } }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: .5rem .7rem; border-bottom: 1px solid var(--line); }
.tbl th.c { text-align: center; }
.tbl td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.6); }
.tbl tr.is-new td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.tbl tr.is-off { opacity: .55; }
.fname { font-weight: 600; color: var(--ink); word-break: break-all; }
.note-snip { margin-top: .3rem; font-size: .85rem; color: var(--ink-2); font-style: italic; }
.actions { white-space: nowrap; text-align: right; }
.actions .btn, .actions form { margin: 2px; }
.ok { color: var(--green); font-weight: 800; font-size: 1.1rem; }
.no { color: #b6c0ca; font-size: 1.05rem; }
.big { font-size: 1.5rem; }
.kind { display: inline-block; min-width: 34px; text-align: center; font-size: .66rem; font-weight: 700; padding: .05rem .3rem; border-radius: 5px; margin-right: .25rem; }
.k-to { background: rgba(0,113,187,.12); color: var(--blue); }
.k-cc { background: rgba(243,146,0,.15); color: #b86b00; }
.k-bcc { background: rgba(0,0,0,.08); color: var(--ink-2); }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd8e1; border-radius: 999px; transition: .25s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(20px); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty img { height: 70px; opacity: .3; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.2rem; margin: 0; font-size: .93rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: .82rem; }
.ev-admin_download strong, .ev-client_download strong { color: var(--green); }
.ev-deleted strong, .ev-mail_error strong { color: var(--red); }
.pwd-box { margin-top: 1rem; padding: 1rem; border-radius: 14px; background: #fff4e0; }
.pwd-box code { font-size: 1.1rem; background: #fff; padding: .2rem .5rem; border-radius: 6px; }

/* tabelle responsive */
@media (max-width: 760px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: .25rem .4rem; text-align: left !important; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .actions { text-align: left; white-space: normal; }
  .group-body { padding: 0 .6rem .6rem; }
}
