/* P1: features ported from Pendulum — e-mail channel in notification settings, password reset on the login screen. */
.notif-grid { display: grid; margin-top: 6px; }
.ng-h, .ng-r { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px 84px; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.ng-h { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 0; }
.ng-h span:not(:first-child), .ng-r span[role="cell"]:not(:first-child) { justify-self: center; }
.ng-r:last-child { border-bottom: 0; }
@media (max-width: 520px) { .ng-h, .ng-r { grid-template-columns: minmax(0, 1fr) 58px 58px 58px; font-size: 14px; } .ng-h { font-size: 11px; } }
.login-link { background: none; border: 0; padding: 4px 0; color: var(--primary, var(--accent)); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.login-ok { padding: 12px 14px; border-radius: var(--r, 10px); background: var(--success-soft); color: var(--success); font-size: 14px; }
.p-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r, 10px); background: var(--surface-2); margin: 4px 0 14px; font-size: 14px; line-height: 1.5; }
.p-note > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--muted); }
.p-note.ok { background: var(--success-soft); } .p-note.ok > svg { color: var(--success); }
.p-note.warn { background: var(--warning-soft); } .p-note.warn > svg { color: var(--warning); }
.p-note.danger { background: var(--danger-soft); } .p-note.danger > svg { color: var(--danger); }
/* two-factor login */
.tfa-steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.55; } .tfa-steps li { margin-bottom: 6px; }
.tfa-qr-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tfa-qr { width: 180px; height: 180px; flex: none; background: #fff; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.tfa-qr svg { width: 100%; height: 100%; display: block; }
.tfa-secret { display: inline-block; margin-top: 6px; font-size: 15px; letter-spacing: .04em; word-break: break-all; user-select: all; }
.tfa-confirm { display: grid; gap: 10px; max-width: 320px; }
.tfa-code-inp { font-size: 22px; letter-spacing: .18em; font-variant-numeric: tabular-nums; text-align: center; }
.tfa-codes { margin: 12px 0; }
.tfa-code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 10px 0 12px; padding-left: 22px; font-size: 15px; }
.tfa-saved { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; font-size: 14px; cursor: pointer; }
.tfa-saved input { width: 18px; height: 18px; }
/* integrations */
.int-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; } .int-head h3 { margin: 0 0 2px; }
.int-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: var(--muted); }
.int-logo.g { background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.int-logo.f { background: #00a3e0; } .int-logo.m { background: #d97757; }
.int-sub { margin: 16px 0 4px; font-size: 14px; }
.toggle-row .sq { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
/* school timetable */
.tt-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.tt-item:last-child { border-bottom: 0; } .tt-name { margin-right: 4px; }
.cal-ev.mt.school, .ag-it.mt.school { background: color-mix(in srgb, #64748b 16%, var(--surface)); border-left-color: #64748b; }
/* clients */
.pr-group-h { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 10px; } .pr-group-h h2 { font-size: 17px; margin: 0; }
.cl-tbl tr[data-c] { cursor: pointer; } .cl-tbl tr[data-c]:hover td { background: var(--surface-2); }
.cl-projects { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .cl-projects a { display: inline-flex; gap: 8px; align-items: center; }
.cl-projects .sq { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
#pr-group.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
/* roles matrix */
.rm-tbl { table-layout: fixed; width: 100%; min-width: 560px; }
.rm-tbl td, .rm-tbl th { text-align: center; white-space: normal; overflow-wrap: normal; word-break: normal; max-width: none; min-width: 0; }
.rm-tbl td:first-child, .rm-tbl th:first-child { text-align: left; width: 38%; min-width: 0; max-width: none; }
.rm-yes { display: inline-flex; justify-content: center; }
.rm-tbl .rm-g td { background: var(--surface-2); font-weight: 600; font-size: 13px; text-align: left; }
.rm-yes svg { width: 18px; height: 18px; color: var(--success); } .rm-no { color: var(--muted); }
.rm-tbl .rm-me { background: color-mix(in srgb, var(--primary) 8%, transparent); }
/* firms */
.firm-list { list-style: none; padding: 0; margin: 4px 0 0; }
.firm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.firm-row:last-child { border-bottom: 0; }
.firm-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.firm-ic svg { width: 18px; height: 18px; } .firm-row.on .firm-ic { background: var(--primary-soft); color: var(--primary); }
.firm-name { flex: 1; min-width: 0; display: grid; } .firm-name b, .firm-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-firm { font-size: 13px; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-firm::before { content: '·'; margin-right: 6px; }
.login-lang { margin-top: 18px; align-self: center; }
.search-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* longer English placeholder stays on one line */
@media (max-width: 480px) { :root #my-seg .seg button { padding: 0 8px; gap: 4px; } }
/* narrow phones (checked at 360 px in cs and en) */
.row > .btn, .row > .pill, .chips.scroll > *, .seg > button { flex-shrink: 0; } /* a squeezed button cut its label ("Nový náv…") instead of leaving room */
.tmr-clock { white-space: nowrap; }
.tm-crumbs > a:not([data-parent]) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* project and list names overlapped */
@media (max-width: 560px) {
  .set-card .row:has(> select), .b3-form-row .row:has(> input) { flex-wrap: wrap; }
  .b3-form-row .row > input.grow { flex-basis: 100%; }
  .set-card .row > label { flex: none; }
}
@media (max-width: 400px) { /* the clock no longer wraps: the pill drops its dot so the 44 px icons still fit */
  :root[data-skin] .topbar .tmr { padding: 0 9px; } :root[data-skin] .topbar .tmr-dot { display: none; }
  .topbar:has(.tmr:not(.hidden)) .tb-title { display: none; } /* with a running clock only a sliver of the title was left */
}
.iq-back { display: inline-flex; align-items: center; gap: 2px; } .iq-back svg { width: 14px; height: 14px; flex: none; } /* the chevron had no size and rendered huge */
:where(svg.ic) { width: 1.15em; height: 1.15em; } /* icons without a size from their context were drawn 300 px wide (feedback hint, timer panel) */
.modal-f .btn { white-space: normal; text-align: center; line-height: 1.2; } /* long English labels stay inside the button */
