/* Uneltele gratuite (20 oct 2026): formulare, previzualizare și tipărire. Stilurile de bază (.ht) vin din tests.css. */
.tl { animation: tl-in .5s ease both; }
@keyframes tl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tl .tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.2rem; margin: .4rem 0 1rem; }
.tl .tl-grid .wide { grid-column: 1 / -1; }
.tl label.tl-f { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.tl label.tl-f span.hint { font-weight: 400; font-size: .8rem; }
.tl input[type=text], .tl input[type=date], .tl input[type=time], .tl input[type=number], .tl input[type=tel], .tl input[type=password], .tl select, .tl textarea {
  font: inherit; font-size: 1rem; padding: .65rem .8rem; border: 1px solid var(--divider); border-radius: 12px; background: var(--surface); color: inherit; width: 100%; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.tl input:focus, .tl select:focus, .tl textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.tl textarea { min-height: 4.4rem; resize: vertical; }
.tl .tl-row { display: grid; grid-template-columns: 2fr 1fr 1.4fr auto; gap: .6rem; align-items: end; margin-bottom: .6rem; }
.tl .tl-row.r5 { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
.tl .tl-row button.x { border: 1px solid var(--divider); background: transparent; border-radius: 10px; width: 2.4rem; height: 2.6rem; cursor: pointer; color: var(--text-soft); font-size: 1.1rem; }
.tl .tl-row button.x:hover { border-color: #c0392b; color: #c0392b; }
.tl .tl-add { display: inline-flex; align-items: center; gap: .4rem; border: 1px dashed var(--divider); background: transparent; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 500; color: var(--accent); }
.tl .tl-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tl .tl-chips button { border: 1px solid var(--divider); background: var(--surface); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; font-size: .9rem; }
.tl .tl-chips button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-weight: 600; }
.tl .tl-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--divider); margin-bottom: 1.2rem; overflow-x: auto; }
.tl .tl-tabs button { border: 0; background: transparent; padding: .6rem .9rem; cursor: pointer; font-weight: 600; color: var(--text-soft); border-bottom: 2px solid transparent; white-space: nowrap; }
.tl .tl-tabs button[aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); }
.tl .tl-big { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tl .tl-big small { font-size: 45%; font-weight: 500; color: var(--text-soft); margin-left: .3rem; }
.tl .tl-swap { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.tl .tl-swap .eq { font-size: 1.4rem; color: var(--text-soft); }
.tl .tl-drop { border: 2px dashed var(--divider); border-radius: 16px; padding: 1.6rem; text-align: center; color: var(--text-soft); cursor: pointer; transition: border-color .15s, background .15s; }
.tl .tl-drop.over, .tl .tl-drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.tl .tl-err { color: #c0392b; font-size: .92rem; margin: .4rem 0; }
.tl .tl-ok { color: var(--accent); font-size: .92rem; }
.tl details { margin: .4rem 0; } .tl summary { cursor: pointer; font-weight: 600; }
.tl .tl-badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); border: 1px solid var(--divider); border-radius: 6px; padding: .1rem .4rem; margin-left: .4rem; vertical-align: middle; }
.tl .tl-sec { margin: 1rem 0; } .tl .tl-sec h3 { margin: 0 0 .3rem; }
.tl .tl-sec .empty { color: var(--text-soft); font-style: italic; }
.tl code { font-size: .85em; background: var(--bg, #f6f6f8); padding: .05rem .35rem; border-radius: 6px; }

/* Cardurile din listă: iconița în dreapta, mare, topită în fundal (fără pătratul deschis), un singur îndemn. */
.tool-cards .tool-card { display: flex; flex-direction: column; position: relative; padding-right: 168px; min-height: 230px; overflow: hidden; }
.tool-cards .tool-card img { position: absolute; top: .4rem; right: .2rem; width: 160px; height: 160px; margin: 0; filter: drop-shadow(0 10px 18px rgba(20,40,90,.10)); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tool-cards .tool-card:hover img { transform: translateY(-4px) scale(1.04); }
.tool-cards .tool-card .kicker { margin-top: .2rem; }
.tool-cards .tool-card h2 { font-size: 1.2rem; margin: .3rem 0 .35rem; }
.tool-cards .tool-card p { font-size: .95rem; margin: 0 0 .8rem; color: var(--text-soft); }
.tool-cards .tool-card .test-chips { margin-top: auto; }
.tool-cards .tool-card .tool-go { display: inline-block; margin-top: .9rem; font-weight: 600; color: var(--accent); }
.tool-cards .tool-card:hover .tool-go { text-decoration: underline; }
@media (max-width: 640px) { .tool-cards .tool-card { padding-right: 128px; min-height: 0; } .tool-cards .tool-card img { width: 120px; height: 120px; top: .6rem; right: .2rem; } }

/* Modul „în unealtă”: pe tot ecranul, cu bară sus. */
.tl .tl-wrap { max-width: 100%; }
.tl-focus, .tl-focus body { overflow: hidden; }
.tl-focus section.tl { position: fixed; inset: 0; z-index: 1200; overflow-y: auto; -webkit-overflow-scrolling: touch; max-width: none; margin: 0; padding: 0 0 4rem; border: 0; border-radius: 0; background: var(--bg, #f4f7fb); animation: tl-open .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes tl-open { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.tl-focus section.tl .tl-wrap { max-width: 820px; margin: 0 auto; padding: 1.6rem 1.2rem 2rem; background: var(--surface); border: 1px solid var(--divider); border-radius: 22px; margin-top: 1.4rem; }
.tl .tl-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; background: color-mix(in srgb, var(--bg, #f4f7fb) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--divider); }
.tl .tl-bar .tl-brand { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: inherit; text-decoration: none; }
.tl .tl-bar .tl-title { flex: 1; font-weight: 600; font-size: .95rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .tl-bar .tl-close { border: 1px solid var(--divider); background: var(--surface); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 600; }
.tl .tl-bar .tl-close:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .tl-focus section.tl .tl-wrap { margin: .8rem; padding: 1.2rem 1rem 1.6rem; border-radius: 18px; } .tl .tl-bar { padding: .6rem .9rem; } .tl .tl-bar .tl-brand span { display: none; } }

/* Foaia tipărită: pagină albă curată, fără site în jur. */
.tl-sheet { background: #fff; color: #111; border: 1px solid var(--divider); border-radius: 12px; padding: 1.4rem; margin: 1rem 0; font-size: .95rem; line-height: 1.45; }
.tl-sheet h2, .tl-sheet h3 { color: #111; }
.tl-sheet .sh-brand, .tl .sh-brand { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: #44619E; margin: 0 0 .7rem; }
.tl-sheet .sh-brand b, .tl .sh-brand b { font-size: .95rem; letter-spacing: -.01em; color: #44619E; }
.tl-sheet .sh-brand span, .tl .sh-brand span { color: #6b7280; }
.tl-sheet .sh-brand img, .tl .sh-brand img { width: 22px; height: 22px; }
.tl .ht-brandline { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--text-soft); margin-top: .6rem; }
.tl-sheet .card .ct img { width: 14px; height: 14px; }
.tl-sheet .sh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid #44619E; padding-bottom: .5rem; margin-bottom: .9rem; }
.tl-sheet .sh-head h2 { font-size: 1.25rem; margin: 0; }
.tl-sheet .sh-head small { color: #555; }
.tl-sheet .sh-block { margin: 0 0 .8rem; } .tl-sheet .sh-block b { display: block; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: #44619E; margin-bottom: .2rem; }
.tl-sheet .sh-lines { border-bottom: 1px solid #ccc; height: 1.6rem; }
.tl-sheet table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tl-sheet th, .tl-sheet td { border: 1px solid #c9ced6; padding: .35rem .4rem; text-align: left; vertical-align: top; }
.tl-sheet th { background: #eef2f8; font-weight: 600; }
.tl-sheet td.tick { width: 2rem; text-align: center; }
.tl-sheet .sh-foot { font-size: .75rem; color: #666; margin-top: .8rem; }
.tl-sheet .cards { display: grid; grid-template-columns: repeat(2, 85.6mm); gap: 8mm; justify-content: start; }
.tl-sheet .card { width: 85.6mm; min-height: 54mm; border: 1px solid #44619E; border-radius: 3mm; padding: 4mm 5mm; box-sizing: border-box; font-size: 9pt; line-height: 1.3; page-break-inside: avoid; }
.tl-sheet .card .ct { display: flex; align-items: center; gap: 2mm; font-weight: 700; color: #44619E; font-size: 10pt; margin-bottom: 2mm; }
.tl-sheet .card .ct i { display: inline-block; width: 4mm; height: 4mm; background: #3CCFA8; border-radius: 1mm; }
.tl-sheet .card b { display: block; font-size: 7pt; text-transform: uppercase; letter-spacing: .04em; color: #44619E; margin-top: 1.5mm; }
.tl-sheet .card .cf { font-size: 6.5pt; color: #666; margin-top: 2mm; }
@media (max-width: 640px) { .tl .tl-grid { grid-template-columns: 1fr; } .tl .tl-row, .tl .tl-row.r5 { grid-template-columns: 1fr 1fr; } .tl-sheet .cards { grid-template-columns: 1fr; } .tl-sheet .card { width: 100%; } }
@media print {
  body > *:not(main), main > *:not(.ht), .ht > *:not(.tl-sheet), header, footer, nav, .mega, .guide-cta, .guide-related, .feature-hero, .guide-body, .guide-note, .breadcrumbs { display: none !important; }
  .tl-focus section.tl { position: static !important; } .tl .tl-bar { display: none !important; } .tl-focus section.tl .tl-wrap { border: 0; padding: 0; margin: 0; max-width: none; }
  main, .ht { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #fff !important; max-width: none !important; }
  .tl-sheet { border: 0; border-radius: 0; padding: 0; margin: 0; font-size: 11pt; }
  .tl-sheet .cards { grid-template-columns: repeat(2, 85.6mm); }
  @page { margin: 14mm; }
}

/* Imaginea mare din pagina uneltei: fără pătratul de fundal, topită în pagină (fondatorul, 20 oct). */
body[data-page="unelte"] .feature-visual { background: none; box-shadow: none; }
body[data-page="unelte"] .feature-visual img { filter: drop-shadow(0 18px 30px rgba(20,40,90,.14)); }
