/* 1.11.15: Orodja – merilnik hrupa, preizkus sluha, sekcija »Preverite sami« */
.ps-theme .ps-btn-primary { background: var(--ps-link, #0b7fae); color: #fff; border: 2px solid var(--ps-link, #0b7fae); }
.ps-theme .ps-btn-primary:hover { filter: brightness(1.08); color: #fff; }
.ps-theme .ps-btn-primary:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.ps-theme .ps-btn-primary.is-on { background: #fdecea; color: #c0392b; border-color: #f3b4ab; }

/* Sekcija na naslovnici */
.ps-tools { background: linear-gradient(180deg, #eaf6fb, #fff); padding: 64px 0; scroll-margin-top: 80px; }
.ps-theme .ps-tools h2.ps-h2 { margin: 0 0 6px; }
.ps-tools-sub { text-align: center; color: var(--ps-muted, #5d6b78); margin: 0 0 26px; font-size: 17px; }
.ps-tools-cards { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.ps-theme .ps-tools-card { flex: 1 1 320px; max-width: 540px; background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 4px 20px rgba(20,40,60,.07); display: flex; gap: 18px; align-items: center; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; text-decoration: none; }
.ps-theme .ps-tools-card:hover, .ps-theme .ps-tools-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(20,40,60,.12); }
.ps-tools-ic { width: 80px; height: 80px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 36px; background: #eaf6fb; }
.ps-tools-card b { display: block; font-size: 20px; color: var(--ps-heading); margin-bottom: 4px; line-height: 1.3; }
.ps-tools-p { display: block; margin: 0 0 12px; color: var(--ps-muted, #5d6b78); font-size: 15px; line-height: 1.5; }
.ps-tools-card .ps-btn { pointer-events: none; }
@media (max-width: 600px) {
	.ps-tools { padding: 44px 0; }
	.ps-tools-ic { width: 60px; height: 60px; font-size: 28px; }
	.ps-theme .ps-tools-card { padding: 16px; gap: 14px; }
	.ps-tools-card b { font-size: 18px; }
}

/* Pas na podstraneh čepkov */
.ps-tools-strip { padding: 26px 0; }
.ps-tools-strip-in { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: #fff6e5; border-radius: 18px; padding: 20px 26px; }
.ps-tools-strip-ic { font-size: 40px; line-height: 1; }
.ps-tools-strip-t { flex: 1 1 260px; }
.ps-tools-strip-t b { display: block; font-size: 19px; color: var(--ps-heading); }
.ps-tools-strip-t p { margin: 4px 0 0; color: var(--ps-muted, #5d6b78); }

/* Okno */
.ps-tl-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(15,25,32,.6); display: flex; align-items: flex-start; justify-content: center; padding: 28px 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ps-tl-modal[hidden] { display: none; }
html.ps-tl-open, html.ps-tl-open body { overflow: hidden; }
.ps-tl-box { position: relative; background: #fff; border-radius: 18px; max-width: 720px; width: 100%; padding: 26px 24px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); margin: auto 0; }
.ps-theme .ps-tl-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #eef3f6; color: var(--ps-heading); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.ps-theme .ps-tl-x:hover { background: #dde6eb; }
.ps-tl-inline { background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 2px 14px rgba(0,0,0,.06); margin: 20px 0; }

/* Skupno */
.ps-tl { color: var(--ps-heading); font-size: 15px; line-height: 1.5; text-align: left; }
.ps-tl-safe div { width: 100%; }
.ps-tl div::before, .ps-tl div::after, .ps-tools div::before, .ps-tools div::after, .ps-tools-strip div::before, .ps-tools-strip div::after { content: none; display: none; }
.ps-theme .ps-tl-h { font-size: 22px; margin: 0 40px 4px 0; line-height: 1.3; color: var(--ps-heading); }
.ps-tl-h small { font-size: 14px; color: var(--ps-muted, #5d6b78); font-weight: 400; }
.ps-tl-sub { color: var(--ps-muted, #5d6b78); margin: 0 0 16px; }
.ps-tl-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.ps-tl-btns .ps-btn { margin: 0; }
.ps-tl-disc { font-size: 12.5px; color: var(--ps-muted, #5d6b78); border-top: 1px solid #e3e9ee; padding-top: 10px; margin: 18px 0 0; }
.ps-tl-warn, .ps-tl-ok, .ps-tl-info { display: flex; gap: 12px; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.ps-tl-warn { background: #fff6e5; border-left: 4px solid #e39a12; }
.ps-tl-ok { background: #e9f7ef; border-left: 4px solid #2e9d5b; }
.ps-tl-info { display: block; background: #eaf6fb; border-left: 4px solid var(--ps-link, #0b7fae); }
.ps-tl-warn > span, .ps-tl-ok > span { font-size: 22px; line-height: 1.1; }

/* Merilnik */
.ps-tl-mrow { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ps-tl-gauge { width: 220px; flex: none; margin: 0 auto; }
.ps-tl-gauge svg { width: 100%; height: 130px; display: block; }
.ps-tl-arc { transition: stroke-dashoffset .15s linear; }
.ps-tl-gv { text-align: center; }
.ps-tl-gv b { font-size: 40px; line-height: 1.1; display: block; }
.ps-tl-gv span { font-size: 12px; color: var(--ps-muted, #5d6b78); }
.ps-tl-mres { flex: 1 1 260px; min-width: 0; }
.ps-tl-lvl { font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.ps-tl-safe { background: #f3f7fa; border-radius: 12px; padding: 10px 14px; }
.ps-tl-safe div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.ps-tl-safe b { white-space: nowrap; }
.ps-tl-err { color: #c0392b; font-weight: 600; margin: 10px 0 0; }

/* Preizkus sluha */
.ps-tl-steps { display: flex; gap: 3px; margin: 0 40px 16px 0; }
.ps-tl-steps i { flex: 1; height: 5px; border-radius: 3px; background: #dde4ea; }
.ps-tl-steps i.on { background: var(--ps-link, #0b7fae); }
.ps-tl-how { margin: 0 0 6px; padding-left: 22px; }
.ps-tl-how li { margin: 4px 0; }
.ps-tl-vol { display: flex; gap: 14px; align-items: center; background: #f3f7fa; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.ps-tl-vb { display: flex; gap: 4px; align-items: flex-end; height: 34px; flex: none; }
.ps-tl-vb i { width: 9px; border-radius: 2px; background: #d6dde4; transition: background .2s; }
.ps-tl-vol.is-on .ps-tl-vb i:nth-child(-n+5) { background: #2e9d5b; }
.ps-tl-vol small { color: var(--ps-muted, #5d6b78); font-size: 13px; }
.ps-tl-chk { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.ps-tl-chk input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.ps-tl-note { font-size: 13px; color: var(--ps-muted, #5d6b78); margin: 6px 0 0; }
.ps-tl-lr { display: flex; gap: 10px; margin-top: 12px; }
.ps-tl-lr .ps-btn { flex: 1; margin: 0; }
.ps-tl-bad { color: #c0392b; font-weight: 600; margin: 10px 0 0; }
.ps-tl-lock { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f3f7fa; border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.ps-theme .ps-tl-lock .ps-btn { padding: 6px 14px; font-size: 13px; min-height: 0; }
.ps-tl-ear { display: inline-block; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #eaf6fb; color: var(--ps-link, #0b7fae); margin-bottom: 8px; }
.ps-tl-pulse { width: 64px; height: 64px; border-radius: 50%; background: var(--ps-link, #0b7fae); margin: 8px auto 12px; opacity: .25; animation: ps-tl-pl 1s ease-in-out 3; }
@keyframes ps-tl-pl { 50% { opacity: .9; transform: scale(1.12); } }
.ps-tl-tw { overflow-x: auto; }
.ps-tl-aud { width: 100%; border-collapse: collapse; margin: 8px 0 10px; font-size: 14px; }
.ps-tl-aud th, .ps-tl-aud td { border-bottom: 1px solid #e3e9ee; padding: 7px 6px; text-align: center; white-space: nowrap; }
.ps-tl-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: middle; }
.ps-tl-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ps-muted, #5d6b78); margin: 0 0 12px; }
@media (max-width: 600px) {
	.ps-tl-modal { padding: 0; }
	.ps-tl-box { border-radius: 0; min-height: 100%; padding: 20px 16px; }
	.ps-theme .ps-tl-h { font-size: 20px; }
	.ps-tl-btns .ps-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .ps-tl-pulse { animation: none; } }
/* 1.11.16: obvestilo pred dovoljenjem za mikrofon */
.ps-tl-perm { margin: 12px 0 2px; padding: 14px 16px; border-radius: 12px; background: #eaf6fb; border-left: 4px solid var(--ps-link, #0b7fae); animation: ps-tl-in .2s ease; }
.ps-tl-perm[hidden], .ps-tl-off[hidden], .ps-tl-err[hidden], .ps-theme .ps-tl-mic[hidden] { display: none; }
.ps-tl-perm b { font-size: 16px; }
.ps-tl-perm p { margin: 6px 0 0; font-size: 14.5px; }
.ps-tl-permb { font-weight: 600; }
.ps-tl-off { margin: 10px 0 0; color: var(--ps-muted, #5d6b78); font-size: 14px; }
@keyframes ps-tl-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* 1.11.21: pomoč, ko mikrofon ne deluje */
.ps-tl-help { margin: 16px 0 0; padding: 16px 18px; border-radius: 12px; background: #fff6e5; border-left: 4px solid #e39a12; animation: ps-tl-in .2s ease; }
.ps-tl-help[hidden] { display: none; }
.ps-tl-hh { display: block; font-size: 17px; line-height: 1.35; }
.ps-tl-help p { margin: 6px 0 0; font-size: 14.5px; }
.ps-tl-hhow { margin: 12px 0 0; }
.ps-tl-hhow > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; background: #fff; border: 1px solid #f0d9ae; border-radius: 10px; padding: 10px 12px; }
.ps-tl-hhow > summary::-webkit-details-marker { display: none; }
.ps-tl-hhow > summary::after { content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ps-link, #0b7fae); color: #fff; display: grid; place-items: center; font-size: 20px; line-height: 1; font-weight: 600; }
.ps-tl-hhow[open] > summary::after { content: '−'; }
.ps-tl-help .ps-tl-hs { background: #fff; border-radius: 8px; padding: 9px 12px; margin-top: 6px; }
.ps-tl-hmore { margin: 8px 0 0; font-size: 14px; }
.ps-tl-hmore summary { cursor: pointer; color: var(--ps-link, #0b7fae); font-weight: 600; }
/* 1.11.23: »Slišim na obeh ušesih« */
.ps-tl-bothh { margin-top: 12px; }
.ps-tl-bothh[hidden] { display: none; }
.ps-tl-bothh .ps-tl-how { margin: 6px 0 0; }
/* 1.11.24: ena slušalka naenkrat */
.ps-tl-pick { display: flex; gap: 12px; align-items: flex-start; border: 2px solid #d6dde4; border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; cursor: pointer; }
.ps-tl-pick:has(input:checked) { border-color: var(--ps-link, #0b7fae); background: #f2f9fc; }
.ps-tl-pick input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.ps-tl-pick b { display: block; font-size: 16px; }
.ps-tl-pick small { display: block; color: var(--ps-muted, #5d6b78); font-size: 14px; margin-top: 2px; }
.ps-tl-pic { font-size: 44px; text-align: center; margin: 10px 0 6px; line-height: 1.2; }
.ps-tl-c { text-align: center; }
.ps-tl-bothh .ps-tl-btns { margin-top: 10px; }
