/* JEMAI · stile comune delle app QR Code, Text Counter e Unit Converter (si appoggia a /assets/site.css) */
.tl-hero { padding-top: 124px; padding-bottom: 20px; }
.tl-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 940px; }
.tl-wrap { padding: 8px 0 var(--sec); }
.tl-app { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.tl-app.wide-side { grid-template-columns: minmax(0, 1fr) 440px; }
.tl-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tl-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tl-card { padding: 20px; border: 1px solid var(--line2); border-radius: var(--r3); background: var(--bg2); min-width: 0; }
.tl-card.flat { padding: 16px; }
.tl-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.05rem; font-weight: 600; color: var(--ivory); letter-spacing: -.01em; }
.tl-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: .74rem; color: var(--red2); background: rgba(255,61,71,.1); border: 1px solid rgba(255,61,71,.28); flex: none; }
.tl-h .tl-hr { margin-left: auto; font-family: var(--mono); font-size: .7rem; font-weight: 400; color: var(--text3); }
.tl-sub { margin: 18px 0 8px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); display: flex; align-items: center; gap: 8px; }
.tl-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tl-sub:first-child { margin-top: 0; }
.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tl-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-grid .span2 { grid-column: 1 / -1; }
.tl-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tl-f > label, .tl-lab { font-size: .8rem; font-weight: 500; color: #c4cad3; }
.tl-f > label i, .tl-lab i { font-style: normal; color: var(--text3); font-weight: 400; }
.tl-in, .tl-app select, .tl-app textarea, #cmpApp textarea { width: 100%; padding: 10px 12px; font-size: .92rem; color: var(--ivory); background: var(--bg); border: 1px solid var(--line2); border-radius: 9px; outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
#cmpApp textarea, .tl-app textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.tl-in::placeholder, .tl-app textarea::placeholder, #cmpApp textarea::placeholder { color: var(--text3); }
.tl-in:hover, .tl-app select:hover, .tl-app textarea:hover { border-color: rgba(255,255,255,.22); }
.tl-in:focus, .tl-app select:focus, .tl-app textarea:focus, #cmpApp textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(86,200,255,.15); }
.tl-in.bad { border-color: var(--amber); }
.tl-app select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239299a5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 13px; }
.tl-app select option { background: #111318; }
.tl-hint { font-size: .76rem; color: var(--text3); line-height: 1.45; }
.tl-hint.warn { color: var(--amber); }
.tl-check { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--text); cursor: pointer; user-select: none; }
.tl-check input { accent-color: var(--red); width: 16px; height: 16px; }
/* segmentati e chip */
.tl-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line2); border-radius: 11px; background: var(--bg); }
.tl-seg button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text2); font-size: .84rem; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.tl-seg button:hover { color: var(--ivory); }
.tl-seg button.on, .tl-seg button[aria-pressed="true"] { background: var(--bg3); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -2px 0 var(--red); }
.tl-seg button svg { width: 16px; height: 16px; flex: none; }
.tl-seg.full { display: flex; } .tl-seg.full button { flex: 1; justify-content: center; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); color: var(--text2); font-size: .86rem; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.tl-chip svg { width: 16px; height: 16px; flex: none; }
.tl-chip:hover { color: var(--ivory); border-color: rgba(255,255,255,.24); }
.tl-chip.on, .tl-chip[aria-selected="true"] { color: var(--ivory); border-color: var(--red2); background: rgba(227,6,19,.12); box-shadow: 0 0 0 3px rgba(227,6,19,.12); }
.tl-chip.on svg, .tl-chip[aria-selected="true"] svg { color: var(--red2); }
/* colori */
.tl-color { display: flex; align-items: center; gap: 8px; }
.tl-color input[type=color] { width: 44px; height: 40px; flex: none; padding: 3px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); cursor: pointer; }
.tl-color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .tl-color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 6px; } .tl-color input[type=color]::-moz-color-swatch { border: 0; border-radius: 6px; }
.tl-color .tl-in { font-family: var(--mono); text-transform: uppercase; font-size: .84rem; }
.tl-range { display: grid; grid-template-columns: 1fr 64px; gap: 10px; align-items: center; }
.tl-range input { accent-color: var(--red); width: 100%; }
.tl-range output { font-family: var(--mono); font-size: .78rem; color: var(--text); text-align: right; }
/* pulsanti */
.tl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 9px; border: 1px solid var(--line2); background: transparent; color: var(--ivory); font-family: var(--mono); font-size: .8rem; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.tl-btn:hover { background: var(--bg3); border-color: rgba(255,255,255,.26); }
.tl-btn:active { transform: translateY(1px); }
.tl-btn svg { width: 16px; height: 16px; flex: none; }
.tl-btn.red { background: var(--red); border-color: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 26px -12px rgba(227,6,19,.8); }
.tl-btn.red:hover { background: #f2121f; }
.tl-btn.sm { padding: 7px 11px; font-size: .74rem; }
.tl-btn:disabled { opacity: .4; cursor: not-allowed; }
.tl-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tl-btns.b3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-btns .wide { grid-column: 1 / -1; }
/* file */
.tl-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.015); cursor: pointer; transition: border-color .15s, background .15s; }
.tl-drop:hover, .tl-drop.over { border-color: var(--red2); background: rgba(227,6,19,.06); }
.tl-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tl-drop .tl-di { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--red2); background: rgba(255,61,71,.1); border: 1px solid rgba(255,61,71,.25); flex: none; }
.tl-drop strong { display: block; color: var(--ivory); font-size: .92rem; font-weight: 600; }
.tl-drop span { font-size: .78rem; color: var(--text2); }
/* statistiche */
.tl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tl-stat { padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); min-width: 0; }
.tl-stat b { display: block; font-size: 1.45rem; font-weight: 600; color: var(--ivory); letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-stat span { display: block; margin-top: 3px; font-size: .74rem; color: var(--text2); }
.tl-stat.hl { border-color: rgba(255,61,71,.35); background: linear-gradient(150deg, rgba(227,6,19,.1), transparent 60%), var(--bg); }
.tl-stat.wide { grid-column: 1 / -1; }
.tl-list { display: flex; flex-direction: column; gap: 0; }
.tl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.tl-row:last-child { border-bottom: 0; }
.tl-row span { color: var(--text2); min-width: 0; }
.tl-row b { color: var(--ivory); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.tl-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.tl-bar i { display: block; height: 100%; border-radius: 6px; background: var(--green); transition: width .25s var(--ease); }
.tl-bar i.mid { background: var(--amber); } .tl-bar i.over { background: var(--red2); }
.tl-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 11px; font-size: .82rem; line-height: 1.5; color: var(--text); border: 1px solid var(--line2); background: rgba(255,255,255,.02); }
.tl-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.tl-note.ok { border-color: rgba(61,220,151,.32); background: rgba(61,220,151,.06); } .tl-note.ok svg { color: var(--green); }
.tl-note.warn { border-color: rgba(255,181,71,.35); background: rgba(255,181,71,.06); } .tl-note.warn svg { color: var(--amber); }
.tl-note.bad { border-color: rgba(255,61,71,.38); background: rgba(255,61,71,.07); } .tl-note.bad svg { color: var(--red2); }
.tl-note.info svg { color: var(--cyan); }
/* avviso dopo il download */
.tl-toast { position: fixed; right: 18px; bottom: 18px; z-index: 1600; width: min(430px, calc(100% - 28px)); padding: 14px 16px; background: rgba(14,16,20,.97); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.85); transform: translateY(14px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.tl-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.tl-toast-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--text2); font-size: 18px; cursor: pointer; }
.tl-toast-x:hover { background: var(--bg3); color: var(--ivory); }
.tl-toast-m { display: flex; gap: 10px; align-items: flex-start; padding-right: 26px; color: var(--ivory); font-size: .9rem; line-height: 1.45; }
.tl-ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,220,151,.15); color: var(--green); flex: none; }
.tl-toast-f { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.tl-toast-f > span { color: var(--text2); font-size: .82rem; } .tl-toast-f b { color: var(--ivory); font-weight: 600; }
.tl-toast .soc { padding: 7px 12px 7px 9px; font-size: .82rem; } .tl-toast .soc .soc-ic { width: 17px; height: 17px; }
@media (max-width: 1060px) { .tl-app, .tl-app.wide-side { grid-template-columns: minmax(0, 1fr); } .tl-side { position: static; } }
@media (max-width: 600px) {
  .tl-hero { padding-top: 104px; }
  .tl-card { padding: 16px; }
  .tl-grid, .tl-grid.g3 { grid-template-columns: minmax(0, 1fr); }
  .tl-btns.b3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-toast { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tl-toast, .tl-bar i { transition: none; } }

/* ═════════ QR Code ═════════ */
.qr-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.qr-types .tl-chip { flex-direction: column; gap: 6px; padding: 11px 6px; font-size: .78rem; text-align: center; justify-content: center; }
.qr-types .tl-chip svg { width: 20px; height: 20px; }
.qr-fields[hidden] { display: none; }
.qr-presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.qr-preset { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1px solid var(--line2); border-radius: 11px; background: var(--bg); color: var(--text2); font-size: .72rem; cursor: pointer; transition: border-color .15s, color .15s; }
.qr-preset:hover { border-color: rgba(255,255,255,.26); color: var(--ivory); }
.qr-preset svg { width: 38px; height: 38px; border-radius: 6px; }
.qr-prev { position: relative; display: grid; place-items: center; padding: 22px; border-radius: 12px; background: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.3px) 0 0 / 16px 16px, #07080a; border: 1px solid var(--line); min-height: 300px; }
.qr-prev svg { width: 100%; max-width: 320px; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.qr-prev .qr-empty { color: var(--text3); font-size: .86rem; text-align: center; }
.qr-prev.checker svg { background: conic-gradient(#e9ecf0 25%, #fff 0 50%, #e9ecf0 0 75%, #fff 0) 0 0 / 16px 16px; border-radius: 4px; }
.qr-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qr-meta span { font-family: var(--mono); font-size: .68rem; color: var(--text2); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 9px; }
.qr-payload { margin-top: 10px; font-family: var(--mono); font-size: .72rem; color: var(--text3); word-break: break-all; max-height: 64px; overflow: auto; }
.qr-logo { display: flex; gap: 12px; align-items: center; }
.qr-logo-prev { width: 64px; height: 64px; flex: none; border-radius: 12px; border: 1px dashed var(--line2); display: grid; place-items: center; overflow: hidden; color: var(--text3); font-size: .7rem; text-align: center; padding: 6px; }
.qr-logo-prev.has { background: #fff; border-style: solid; }
.qr-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 600px) { .qr-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } .qr-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); } .qr-prev { min-height: 240px; } }

/* ═════════ Text Counter ═════════ */
.tc-editor { position: relative; }
.tc-editor textarea { min-height: 360px; font-size: .98rem; line-height: 1.65; padding: 16px; }
.tc-editor.over textarea { border-color: var(--red2); background: rgba(227,6,19,.04); }
.tc-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tc-bar .tl-sp { flex: 1; }
.tc-file { display: none; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 10px; font-size: .8rem; color: var(--text2); }
.tc-file.show { display: flex; } .tc-file b { color: var(--ivory); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-file svg { width: 16px; height: 16px; color: var(--red2); flex: none; }
.tc-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.tc-limits.one { grid-template-columns: minmax(0, 1fr); }
.tc-limit { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; }
.tc-limit div { display: flex; justify-content: space-between; gap: 8px; color: var(--text2); }
.tc-limit div b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.tc-limit.over div b { color: var(--red2); }
.tc-kw { display: flex; flex-direction: column; gap: 7px; }
.tc-kw div { display: grid; grid-template-columns: minmax(0, 1fr) 46px 52px; gap: 10px; align-items: center; font-size: .84rem; }
.tc-kw div span { color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-kw div em { font-style: normal; color: var(--text2); text-align: right; font-family: var(--mono); font-size: .74rem; }
.tc-read { display: flex; align-items: center; gap: 14px; }
.tc-gauge { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--green)) calc(var(--v, 0) * 1%), rgba(255,255,255,.07) 0); position: relative; }
.tc-gauge::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg2); }
.tc-gauge b { position: relative; font-size: 1.05rem; color: var(--ivory); font-variant-numeric: tabular-nums; }
.tc-read strong { display: block; color: var(--ivory); font-size: .95rem; }
.tc-read span { font-size: .78rem; color: var(--text2); line-height: 1.45; }
.tc-long { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tc-long li { padding: 9px 11px; border-left: 2px solid var(--amber); background: rgba(255,181,71,.05); border-radius: 0 9px 9px 0; font-size: .82rem; color: var(--text); line-height: 1.5; }
.tc-long li em { display: block; font-style: normal; font-family: var(--mono); font-size: .68rem; color: var(--amber); margin-bottom: 2px; }
@media (max-width: 600px) { .tc-limits { grid-template-columns: minmax(0, 1fr); } .tc-editor textarea { min-height: 260px; } }

/* ═════════ Unit Converter ═════════ */
.uc-tabs { margin-bottom: 16px; }
.uc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.uc-cats .tl-chip { justify-content: flex-start; padding: 10px 11px; font-size: .82rem; }
.uc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.uc-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.uc-box .tl-in.big { font-size: 1.5rem; font-weight: 600; padding: 12px 14px; font-variant-numeric: tabular-nums; }
.uc-out { font-size: 1.5rem; font-weight: 600; padding: 12px 14px; border-radius: 9px; border: 1px solid rgba(255,61,71,.35); background: linear-gradient(150deg, rgba(227,6,19,.12), transparent 60%), var(--bg); color: var(--ivory); min-height: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: copy; }
.uc-swap { width: 44px; height: 44px; margin-bottom: 52px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); color: var(--ivory); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, transform .2s var(--ease); }
.uc-swap:hover { border-color: var(--red2); transform: rotate(180deg); }
.uc-swap svg { width: 18px; height: 18px; }
.uc-formula { margin-top: 12px; font-family: var(--mono); font-size: .78rem; color: var(--text2); }
.uc-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.uc-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.uc-table td:first-child { color: var(--text2); }
.uc-table td:last-child { text-align: right; color: var(--ivory); font-variant-numeric: tabular-nums; word-break: break-all; }
.uc-table tr.on td { background: rgba(227,6,19,.08); } .uc-table tr { cursor: pointer; } .uc-table tr:hover td { background: rgba(255,255,255,.025); }
.uc-shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.uc-shapes .tl-chip { flex-direction: column; gap: 6px; padding: 12px 6px; font-size: .78rem; text-align: center; }
.uc-shapes .tl-chip svg { width: 34px; height: 34px; }
.uc-fig { display: grid; place-items: center; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.3px) 0 0 / 16px 16px, #07080a; color: var(--text2); }
.uc-fig svg { width: 100%; max-width: 230px; height: auto; }
.uc-big { font-size: 2rem; font-weight: 600; color: var(--ivory); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; word-break: break-all; }
.uc-big small { font-size: .9rem; color: var(--text2); font-weight: 400; margin-left: 6px; }
@media (max-width: 600px) { .uc-row { grid-template-columns: minmax(0, 1fr); } .uc-swap { margin: 0 auto; transform: rotate(90deg); } .uc-swap:hover { transform: rotate(270deg); } }

/* ═════════ calcolatori (IVA, sconto, margine, markup, inflazione, carburante) ═════════ */
.tl-row.ok b { color: var(--green); } .tl-row.bad b { color: var(--red2); }
.tl-row.hl { border-top: 1px solid var(--line2); } .tl-row.hl span { color: var(--ivory); font-weight: 500; } .tl-row.hl b { font-size: 1.05rem; font-weight: 600; }
.tl-cur { width: auto !important; min-width: 96px; padding: 6px 30px 6px 10px !important; font-size: .8rem !important; margin-left: auto; }
.mg-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 14px; background: rgba(255,255,255,.06); }
.mg-bar i { background: #475467; } .mg-bar b { background: var(--green); }
.mg-leg { display: flex; justify-content: space-between; margin-top: 6px; font-size: .74rem; color: var(--text2); }
.mg-leg i, .mg-leg b { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: #475467; vertical-align: 0; } .mg-leg b { background: var(--green); }
.in-pct { position: relative; } .in-pct .tl-in { padding-right: 30px; } .in-pct i { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--text3); font-size: .85rem; pointer-events: none; }
#inYears { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.in-sent { margin: 0 0 8px; font-size: .9rem; color: var(--text2); line-height: 1.5; } .in-sent b { color: var(--ivory); font-weight: 600; }
#inChart svg { width: 100%; height: auto; margin-top: 12px; } #inChart .ch-t { fill: var(--text3); font-size: 10px; font-family: var(--mono); }
.tl-pane[hidden] { display: none !important; }
/* ═════════ Date Calculator ═════════ */
.dt-days { display: flex; flex-wrap: wrap; gap: 6px; } .dt-days .tl-chip { min-width: 52px; justify-content: center; padding: 8px 10px; }
.dt-days .tl-chip[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
.tl-in[type=date] { color-scheme: dark; }
/* ═════════ Text Compare ═════════ */
.cmp-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cmp-pane { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cmp-pane .tc-bar { margin: 0; }
.cmp-pane textarea { min-height: 260px; font-size: .9rem; }
.cmp-pane.over textarea { border-color: var(--red2); background: rgba(227,6,19,.04); }
.cmp-info { font-size: .76rem; color: var(--text2); min-height: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cmp-info b { color: var(--ivory); font-weight: 500; }
.cmp-tag { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; font-family: var(--mono); font-size: .76rem; font-weight: 600; background: rgba(255,61,71,.12); color: var(--red2); border: 1px solid rgba(255,61,71,.3); }
.cmp-tag.b { background: rgba(61,220,151,.12); color: var(--green); border-color: rgba(61,220,151,.3); }
#cmpOut { max-height: 72vh; overflow: auto; border-radius: 12px; border: 1px solid var(--line); background: #fbfbfc; color: #17202a; padding: 16px; scroll-behavior: smooth; }
.cmp-empty { color: #667085; margin: 0; font-size: .9rem; }
.cmp-inline { white-space: pre-wrap; word-wrap: break-word; font-size: .92rem; line-height: 1.7; }
#cmpOut ins { background: #d9f7e8; color: #0f5c3f; text-decoration: none; border-radius: 3px; padding: 0 1px; }
#cmpOut del { background: #fde4e6; color: #9b0a12; border-radius: 3px; padding: 0 1px; }
#cmpOut .cur, #cmpOut tr.cur td { outline: 2px solid #1a8fd6; outline-offset: 1px; }
.cmp-side { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .84rem; line-height: 1.55; }
.cmp-side th { position: sticky; top: -16px; background: #eef0f3; color: #344054; text-align: left; padding: 8px; font-weight: 600; font-size: .8rem; }
.cmp-side td { padding: 3px 8px; border-bottom: 1px solid #eef0f3; vertical-align: top; white-space: pre-wrap; word-wrap: break-word; }
.cmp-side td.ln { width: 44px; color: #98a2b3; text-align: right; font-family: var(--mono); font-size: .72rem; user-select: none; }
.cmp-side td.m { background: #fff5f5; } .cmp-side td.p { background: #f3fcf7; } .cmp-side td.x { background: #f4f5f7; }
.cmp-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
#cmpNav { display: flex; align-items: center; gap: 8px; } #cmpNav[hidden] { display: none; }
@media (max-width: 760px) { .cmp-panes { grid-template-columns: minmax(0, 1fr); } .cmp-pane textarea { min-height: 180px; } .cmp-side td.ln { width: 30px; } }
.tl-in.big { font-size: 1.45rem; font-weight: 600; padding: 12px 14px; font-variant-numeric: tabular-nums; }
/* ═════════ esportazione risultati ═════════ */
.tl-export { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tl-export-h { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
#ciChart svg { width: 100%; height: auto; margin-top: 14px; } #ciChart .ch-t { fill: var(--text3); font-size: 10px; font-family: var(--mono); }
.ci-scroll { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.ci-table { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.ci-table th { position: sticky; top: 0; background: #12151b; color: var(--text2); font-family: var(--mono); font-weight: 500; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px; text-align: right; }
.ci-table th:first-child, .ci-table td:first-child { text-align: left; }
.ci-table td { padding: 7px 8px; border-top: 1px solid var(--line); text-align: right; color: var(--text); }
.ci-table td:last-child { color: var(--ivory); font-weight: 500; }
.tl-exp-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; } .tl-exp-f .tl-in { padding: 8px 10px; font-size: .84rem; } .tl-exp-f label { font-size: .74rem; }
@media (max-width: 420px) { .tl-exp-f { grid-template-columns: minmax(0, 1fr); } }
/* ═════════ le app stanno nello schermo (computer) ═════════ */
@media (min-width: 1061px) and (min-height: 620px) {
  .tl-hero { padding-top: 92px; padding-bottom: 10px; }
  .tl-hero .eyebrow, .tl-hero .pa-badges { display: none; }
  .tl-hero .breadcrumb { margin-bottom: 8px; }
  .tl-hero h1 { font-size: clamp(1.7rem, 2.5vw, 2.3rem); margin-bottom: 6px; }
  .tl-hero .lead { font-size: .98rem; line-height: 1.5; margin: 0; }
  .tl-wrap { padding-top: 6px !important; }
  .tl-wrap .tl-app { align-items: start; }
  .tl-wrap .tl-app > .tl-col, .tl-wrap .tl-app > .tl-side { max-height: var(--tlh, max(460px, calc(100vh - 92px))); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2a2f39 transparent; padding-right: 4px; }
  .tl-wrap .tl-app > .tl-side { position: sticky; top: 80px; }
  .tl-wrap .tl-app > .tl-col::-webkit-scrollbar, .tl-wrap .tl-app > .tl-side::-webkit-scrollbar { width: 8px; }
  .tl-wrap .tl-app > .tl-col::-webkit-scrollbar-thumb, .tl-wrap .tl-app > .tl-side::-webkit-scrollbar-thumb { background: #262b34; border-radius: 8px; }
  .tl-card { padding: 16px 18px; } .tl-col, .tl-side { gap: 12px; }
  .tl-h { margin-bottom: 10px; }
  .tl-in, .tl-app select { padding: 8px 11px; }
}
@media (min-width: 1061px) and (max-height: 800px) { .tl-hero .lead { display: none; } .tl-hero h1 { margin-bottom: 0; } .cmp-pane textarea { min-height: 170px; } }
@media (min-width: 1061px) and (min-height: 620px) { .cmp-pane textarea { min-height: 200px; } }
