/* Dental-EMT Web 0.7.49: mobile forms and collection actions */
#modal.login-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
.login-dialog #form{display:flex;flex-direction:column;gap:16px}
.login-dialog .dialoghead{gap:12px;align-items:center}
.login-dialog .dialoghead h2{margin:0;min-width:0}
.login-dialog #fields .confirmation{display:flex;align-items:center;gap:12px;margin:18px 0 0}
.login-dialog #fields .confirmation input{flex:0 0 24px;width:24px;height:24px;margin:0}
.login-dialog #error:empty{display:none}
.login-dialog #submit{width:100%;margin:0;min-height:48px}
#loginActions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:4px}
#loginActions button{margin:0;min-height:48px;padding:12px;white-space:normal;overflow-wrap:anywhere}
#loginActions #resendBtn{grid-column:1/-1}
#loginActions #loginAppearance{grid-column:1/-1;background:transparent;text-decoration:underline}
.collection-card{position:relative;display:flex;align-items:stretch;gap:12px;flex-wrap:wrap}
.collection-card .collection-open{position:relative;flex:1 1 220px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;background:transparent;color:inherit;padding:12px 32px 12px 0;margin:0;min-width:0;border:0;border-radius:8px;white-space:normal}
.collection-open strong{font-size:1.18em;overflow-wrap:anywhere}
.collection-open small{overflow-wrap:anywhere}
.collection-arrow{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:1.6em}
.collection-card>button:not(.collection-open){align-self:center;margin:0;min-height:44px}
.collection-open:focus-visible{outline:3px solid #0084a5;outline-offset:4px}
.gallery-item{display:flex;flex-direction:column;gap:8px;min-width:0}
.gallery-item .photocard{width:100%;flex:1;margin:0}
.gallery-item>.danger{margin:0;min-height:44px}
.topic-management-row{display:flex;flex-direction:column;gap:10px;padding:16px 0;border-bottom:1px solid #a5bfc7}
.topic-management-row strong{overflow-wrap:anywhere}
.management-actions{display:flex;flex-wrap:wrap;gap:10px}
.management-actions button{margin:0;min-height:44px;flex:1}
@media(max-width:380px){#loginActions{grid-template-columns:1fr}.login-dialog .dialoghead h2{font-size:1.3rem}}
/* Direct, swipeable navigation for all signed-in roles. */
#tabs.admin-nav,#tabs.member-nav{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
#tabs.admin-nav button:nth-child(n),#tabs.member-nav button:nth-child(n){flex:0 0 88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:88px;min-height:64px;padding:8px 5px;font-size:12px;scroll-snap-align:start;white-space:nowrap}
#tabs .nav-label{white-space:nowrap}
.directory-entry[hidden]{display:none}

/* Push dialog: fixed-size checkboxes and aligned, wrapping text. */
.push-settings>p{line-height:1.5;margin:0 0 20px}
.push-settings .checks{display:grid;gap:16px;margin:0 0 22px}
.push-settings .checks label{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:12px;margin:0;line-height:1.4;text-align:left}
.push-settings .checks input[type="checkbox"]{width:24px;height:24px;min-width:24px;max-width:24px;flex-shrink:0;margin:2px 0 0;padding:0;align-self:start;accent-color:var(--blue,#006e9b)}
.push-consent-description{display:block;font-weight:400;margin-top:5px;line-height:1.45}
.push-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 20px}
.push-actions button{min-height:48px;margin:0;padding:12px 10px;white-space:normal;overflow-wrap:anywhere}
.push-actions #pushSystem{grid-column:1/-1}
.push-settings .push-server-status{font-size:.9em;line-height:1.4;margin-bottom:8px}
@media(max-width:360px){.push-actions{grid-template-columns:1fr}}
/* 0.7.51: quieter footer, direct news previews, full-window media. */
#tabs.public-nav,#tabs.admin-nav,#tabs.member-nav{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom));gap:6px}
#tabs.public-nav button:nth-child(n),#tabs.admin-nav button:nth-child(n),#tabs.member-nav button:nth-child(n){height:46px;min-height:46px;padding:4px 5px;gap:3px;border-radius:8px;font-size:11px}
#tabs .nav-icon{width:17px;height:17px}
.news-preview[role="button"]{position:relative;cursor:pointer;overflow:hidden;border-radius:12px}
.news-preview[role="button"]:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.news-preview canvas{display:block;max-width:100%;height:auto!important;margin:auto}
.pdf-page-count{display:block;padding:8px 12px;background:#e9f2f6;color:#173744;font-size:.85em}
#modal.media-dialog{width:100%;height:100%;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:12px;border-radius:0;overflow:hidden}
.media-dialog #form{height:100%;display:flex;flex-direction:column;gap:8px;min-height:0}
.media-dialog .dialoghead{position:static;flex:0 0 auto;padding:0;gap:12px}
.media-dialog .dialoghead h2{font-size:1rem;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-dialog #fields{flex:1;min-height:0;display:flex}
.media-dialog #error:empty{display:none}
#mediaHost{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.media-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 0 10px;font-size:14px}
.media-toolbar button{min-width:44px;min-height:44px;padding:6px;margin:0}
.media-pagination{display:flex;align-items:center;gap:8px;margin-left:auto}
.media-pagination[hidden]{display:none}
.media-stage{flex:1;min-height:0;overflow:auto;background:#18232b;padding:12px;overscroll-behavior:contain}
.media-stage canvas{display:block;margin:0 auto;background:white}
.media-stage .fullscreen-image{display:block;max-width:none;margin:auto;min-height:0}
[data-theme="dark"] .media-dialog .dialoghead{background:transparent}

/* Center navigation when it fits; auto margins collapse on narrow screens. */
#tabs.public-nav,#tabs.admin-nav,#tabs.member-nav{display:flex;justify-content:flex-start}
#tabs.public-nav>button:first-child,#tabs.admin-nav>button:first-child,#tabs.member-nav>button:first-child{margin-left:auto}
#tabs.public-nav>button:last-child,#tabs.admin-nav>button:last-child,#tabs.member-nav>button:last-child{margin-right:auto}

/* 0.7.55: focused image viewer */
#modal.media-dialog.image-dialog{padding:0;background:#101419;color:#f4f6f8}
.image-dialog #form{position:relative;gap:0}
.image-dialog .dialoghead{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;margin:0;padding:8px 12px;background:linear-gradient(#101419e6,transparent)}
.image-dialog .dialoghead h2{font-size:14px;font-weight:500;color:#f4f6f8}
.image-dialog #close{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:#242b34dd;color:white;font-size:22px}
.image-dialog #fields{height:100%;width:100%}
.image-dialog #mediaHost{position:relative;height:100%}
.image-dialog .media-stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:60px 0 72px;background:#101419}
.image-dialog .media-stage .fullscreen-image{flex:none;margin:auto;max-height:100%;object-fit:contain;border-radius:0}
.image-dialog .media-stage.is-zoomed{display:block}
.image-dialog .media-toolbar{position:absolute;bottom:calc(14px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:3;flex-wrap:nowrap;gap:12px;padding:4px 6px;border-radius:28px;background:#242b34e8;color:#f4f6f8;box-shadow:0 2px 12px #0004}
.image-dialog .media-toolbar button{width:44px;height:44px;min-height:44px;border-radius:50%;background:transparent;color:white;font-size:22px}
.image-dialog .media-toolbar button:disabled{opacity:.35}
.image-dialog [data-scale]{min-width:45px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}

/* 0.7.61: alarm navigation button is visually separated from regular app areas.
   Swipe/scroll navigation remains unchanged. */
#tabs button[data-tab="alarms"]{background:#d32f2f;color:#fff}
#tabs button[data-tab="alarms"].active,#tabs button[data-tab="alarms"]:active{background:#b71c1c;color:#fff}

/* 0.7.62: chat image previews and touch-friendly media zoom. */
.chat-attachment{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:10px;border:1px solid var(--line,#dce6ea);border-radius:12px;background:var(--card,#fff)}
.chat-image-attachment{padding:8px}
.chat-image-preview{display:block;width:100%;max-width:360px;min-height:120px;margin:0;padding:0;overflow:hidden;border:0;border-radius:10px;background:#e9f2f6;color:#173744;text-align:center}
.chat-image-preview img{display:block;width:100%;height:auto;max-height:320px;object-fit:cover}
.chat-image-preview>span{display:flex;align-items:center;justify-content:center;min-height:120px;padding:14px;font-size:13px}
.chat-attachment-meta{display:flex;flex-direction:column;gap:4px;min-width:0}
.chat-attachment-meta strong{overflow-wrap:anywhere}
.chat-attachment-meta small{font-size:12px}
.chat-attachment-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.chat-attachment-actions button{margin:0;min-height:40px}
.chat-file-icon{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:10px;background:#e9f2f6;color:#173744;font-weight:700;font-size:13px}
.image-dialog .media-stage{touch-action:none}
.image-dialog .media-stage.is-zoomed{cursor:grab}
.image-dialog .media-stage.is-zoomed:active{cursor:grabbing}
[data-theme="dark"] .chat-attachment{background:#1b2a34;border-color:#526b79;color:#e3edf2}
[data-theme="dark"] .chat-image-preview,[data-theme="dark"] .chat-file-icon{background:#263b48;color:#e3edf2}

/* 0.7.62: topic-aware monthly team calendar with the existing list retained below. */
.team-calendar{margin:12px 0 22px;border:1px solid var(--line,#dce6ea);border-radius:14px;overflow:hidden;background:var(--card,#fff)}
.calendar-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:10px;border-bottom:1px solid var(--line,#dce6ea)}
.calendar-controls h3{margin:0;text-align:center;text-transform:capitalize;overflow-wrap:anywhere}
.calendar-controls button{margin:0;min-width:44px;min-height:42px}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-weekdays{border-bottom:1px solid var(--line,#dce6ea);background:#e9f2f6}
.calendar-weekdays span{padding:7px 2px;text-align:center;font-size:12px;font-weight:700}
.calendar-day{position:relative;min-width:0;min-height:92px;padding:5px;border-right:1px solid var(--line,#dce6ea);border-bottom:1px solid var(--line,#dce6ea);overflow:hidden}
.calendar-day:nth-child(7n){border-right:0}
.calendar-day-empty{background:#f5f8f9}
.calendar-day-number{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;margin-bottom:4px;border-radius:50%;font-size:12px;font-weight:700}
.calendar-today .calendar-day-number{background:var(--blue,#006e9b);color:#fff}
.calendar-event-chip{display:flex;width:100%;min-width:0;min-height:0;margin:2px 0;padding:3px 4px;gap:3px;align-items:center;border:0;border-radius:5px;background:#dceff6;color:#173744;text-align:left;font-size:10px;line-height:1.15;white-space:nowrap;overflow:hidden}
.calendar-event-chip:hover,.calendar-event-chip:focus-visible{background:#c7e7f2;outline:2px solid var(--blue,#006e9b);outline-offset:1px}
.calendar-event-time{flex:0 0 auto;font-variant-numeric:tabular-nums;font-weight:700}
.calendar-event-title{min-width:0;overflow:hidden;text-overflow:ellipsis}
.calendar-more{display:block;margin-top:3px;font-size:10px;font-weight:700;color:#526b79}
.calendar-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}
.calendar-list-head h3{margin:0}
.calendar-list-head span{font-size:13px;color:#526b79}
.calendar-event-highlight{outline:3px solid var(--blue,#006e9b);outline-offset:3px;transition:outline-color .2s}
[data-theme="dark"] .team-calendar{background:#1b2a34;border-color:#526b79}
[data-theme="dark"] .calendar-controls,[data-theme="dark"] .calendar-weekdays{border-color:#526b79}
[data-theme="dark"] .calendar-weekdays,[data-theme="dark"] .calendar-day-empty{background:#263b48;color:#e3edf2}
[data-theme="dark"] .calendar-day{border-color:#526b79}
[data-theme="dark"] .calendar-event-chip{background:#154b61;color:#e3edf2}
[data-theme="dark"] .calendar-event-chip:hover,[data-theme="dark"] .calendar-event-chip:focus-visible{background:#1a5e78}
[data-theme="dark"] .calendar-more,[data-theme="dark"] .calendar-list-head span{color:#a9c1cc}
@media(max-width:649px){
 .calendar-controls{grid-template-columns:44px minmax(0,1fr) 44px}.calendar-controls #calendarToday{grid-column:1/-1;width:100%}
 .calendar-controls h3{font-size:17px}
 .calendar-day{min-height:72px;padding:3px 2px}
 .calendar-day-number{width:22px;height:22px;font-size:11px;margin-bottom:2px}
 .calendar-event-chip{padding:3px 2px;font-size:9px}.calendar-event-time{display:none}
 .calendar-more{font-size:9px}.calendar-list-head{align-items:flex-start;flex-direction:column;gap:3px}
 .chat-image-preview{max-width:none}
}


/* 0.7.63: image-first gallery, multi-select and swipeable fullscreen viewer. */
.gallerygrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px}
.gallery-item{position:relative;display:block;min-width:0;aspect-ratio:1/1}
.gallery-item .photocard{position:relative;display:block;width:100%;height:100%;min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-radius:12px;background:#dce6ea}
.gallery-item .photocard img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-item .photocard:focus-visible{outline:3px solid var(--blue,#006e9b);outline-offset:3px}
.gallery-select-mark{position:absolute;right:8px;top:8px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#fff;color:#006e9b;font-weight:800;box-shadow:0 1px 7px #0005;opacity:0;transform:scale(.75);transition:.15s}
.gallery-item.is-selected .photocard{outline:4px solid var(--blue,#006e9b);outline-offset:-4px}
.gallery-item.is-selected .gallery-select-mark{opacity:1;transform:scale(1)}
.gallery-selection-bar{position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#e9f2f6;box-shadow:0 2px 10px #0002}
.gallery-selection-bar[hidden]{display:none}
.gallery-selection-bar>div{display:flex;gap:8px;flex-wrap:wrap}
.gallery-selection-bar button{margin:0;min-height:42px}
#modal.gallery-viewer-dialog{width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#0d1116;color:#fff;overflow:hidden}
.gallery-viewer-dialog #form{position:relative;width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:column;gap:0}
.gallery-viewer-dialog .dialoghead{position:absolute;top:env(safe-area-inset-top);right:0;z-index:15;background:transparent;padding:8px}
.gallery-viewer-dialog .dialoghead h2{display:none}
.gallery-viewer-dialog #close{width:44px;height:44px;min-height:44px;margin:0;padding:0;border-radius:50%;background:#1c2732dd;color:#fff;font-size:22px}
.gallery-viewer-dialog #fields{width:100%;height:100%;min-height:0;padding:0}
.gallery-viewer-dialog #error{display:none}
.gallery-viewer{position:relative;width:100%;height:100%;overflow:hidden;background:#0d1116;touch-action:pan-y}
.gallery-viewer-stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:calc(54px + env(safe-area-inset-top)) 0 calc(70px + env(safe-area-inset-bottom));overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.gallery-viewer-stage p{color:#dbe7ee}
.gallery-viewer-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;-webkit-user-drag:none;user-select:none}
.gallery-viewer-counter{position:absolute;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:12;padding:6px 10px;border-radius:16px;background:#1c2732cc;color:#fff;font-size:13px;font-variant-numeric:tabular-nums}
.gallery-viewer-nav{position:absolute;top:50%;z-index:12;transform:translateY(-50%);width:48px;height:48px;min-height:48px;margin:0;padding:0;border-radius:50%;background:#1c2732aa;color:#fff;font-size:30px}
.gallery-viewer-nav.prev{left:12px}.gallery-viewer-nav.next{right:12px}.gallery-viewer-nav:disabled{opacity:.18}
.gallery-viewer-actions{position:absolute;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));z-index:14;display:flex;gap:10px;transform:translate(-50%,18px);padding:7px;border-radius:28px;background:#1c2732e8;box-shadow:0 3px 18px #0007;opacity:0;pointer-events:none;transition:.18s ease}
.gallery-viewer.show-actions .gallery-viewer-actions{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.gallery-viewer-actions button{min-height:44px;margin:0;padding:9px 14px;border-radius:22px;white-space:nowrap}
[data-theme="dark"] .gallery-selection-bar{background:#263b48;color:#e3edf2}
@media(max-width:700px){.gallery-viewer-nav{display:none}.gallerygrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.gallery-item .photocard{border-radius:8px}}
@media(max-width:380px){.gallerygrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.gallery-selection-bar{align-items:flex-start;flex-direction:column}.gallery-selection-bar>div{width:100%}.gallery-selection-bar button{flex:1}}

/* Dental-EMT UI update 12.10.2026: responsive desktop, image-only zoom, logo home */
.dental-brand-home{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 auto;color:inherit;text-decoration:none;cursor:pointer;border-radius:9px}
.dental-brand-home img{display:block;width:48px;height:48px;object-fit:contain;flex:none}
.dental-brand-text{display:block;min-width:0}
.dental-brand-text strong{display:block;font-size:20px;line-height:1.2;overflow-wrap:normal}
.dental-brand-text small{display:block}
.dental-brand-home:focus-visible{outline:2px solid var(--blue,#006e9b);outline-offset:3px}
.gallery-viewer-stage{touch-action:none!important}
.gallery-viewer-image{transition:none;will-change:transform;user-select:none;-webkit-user-select:none}
.gallery-viewer-stage.is-zoomed{cursor:grab}
.gallery-viewer-stage.is-zoomed:active{cursor:grabbing}
@media(max-width:649px){
 .dental-brand-home{gap:6px;min-width:0}
 .dental-brand-home img{width:38px;height:38px}
 .dental-brand-text strong{font-size:clamp(12px,3.8vw,16px);white-space:normal;overflow-wrap:normal}
 .dental-brand-text small{font-size:12px;margin-top:4px}
}
@media(min-width:1100px){
 :root{--dental-nav-width:216px}
 body>header{position:sticky;top:0;z-index:20;padding:12px 25px;min-height:78px}
 main{width:auto;max-width:none!important;margin:0 0 0 var(--dental-nav-width)!important;padding:25px clamp(25px,3vw,55px) 48px!important}
 #tabs.public-nav,#tabs.admin-nav,#tabs.member-nav{position:fixed;inset:78px auto 0 0;width:var(--dental-nav-width);height:calc(100dvh - 78px);z-index:19;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:5px!important;overflow-x:hidden;overflow-y:auto;grid-template-columns:none!important;padding:16px 10px!important;border-right:1px solid #dce6ea;box-shadow:none}
 #tabs.public-nav>button,#tabs.admin-nav>button,#tabs.member-nav>button{display:flex!important;flex:0 0 auto!important;grid-column:auto!important;width:100%!important;max-width:none!important;min-height:43px!important;margin:0!important;padding:8px 12px!important;gap:10px!important;align-items:center;justify-content:flex-start!important;text-align:left}
 #tabs .nav-label{display:inline!important;font-size:14px}
 #tabs .nav-icon{width:20px;height:20px;flex:none}
 #tabs button[data-tab="alarms"]{margin-top:6px!important}
 body[data-active-tab="news"] main>.hero,body[data-active-tab="news"] main>#topics,body[data-active-tab="news"] main>#content{max-width:850px;margin-left:auto;margin-right:auto}
 body[data-active-tab="mail"] .mail-container,body[data-active-tab="mail"] .member-mail{max-width:100%}
 .gallerygrid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
 .emt-mail-scroll{max-width:1100px}
}


/* 12.10.2026 – Desktop navigation: guarantee horizontal, fully visible labels.
   Override older #tabs.* button:nth-child(n) mobile-navigation rules. */
@media (min-width:1100px){
  #tabs.public-nav>button:nth-child(n),
  #tabs.admin-nav>button:nth-child(n),
  #tabs.member-nav>button:nth-child(n){
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    flex:0 0 46px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:46px!important;
    min-height:46px!important;
    max-height:none!important;
    margin:0!important;
    padding:8px 33px 8px 14px!important;
    gap:12px!important;
    border-radius:9px!important;
    font-size:14px!important;
    line-height:1.3!important;
    text-align:left!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  #tabs.public-nav>button:nth-child(n)>.nav-icon,
  #tabs.admin-nav>button:nth-child(n)>.nav-icon,
  #tabs.member-nav>button:nth-child(n)>.nav-icon{
    display:block!important;
    width:19px!important;
    height:19px!important;
    flex:0 0 19px!important;
  }
  #tabs.public-nav>button:nth-child(n)>.nav-label,
  #tabs.admin-nav>button:nth-child(n)>.nav-label,
  #tabs.member-nav>button:nth-child(n)>.nav-label{
    display:block!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    font-size:14px!important;
    line-height:1.3!important;
    text-align:left!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #tabs.public-nav>button:nth-child(n)>.nav-badge,
  #tabs.admin-nav>button:nth-child(n)>.nav-badge,
  #tabs.member-nav>button:nth-child(n)>.nav-badge{
    position:absolute!important;
    top:50%!important;
    right:7px!important;
    transform:translateY(-50%)!important;
    margin:0!important;
    line-height:1!important;
  }
}


/* 12.10.2026 – True black/graphite palette, selected by app preference only. */
html[data-theme="dark"]{
 color-scheme:dark!important;background:#0d0d0d!important;color:#ededed!important;
 --bg:#0d0d0d;--fg:#ededed;--dental-surface:#171717;--dental-border:#353535;
}
html[data-theme="dark"] body,
html[data-theme="dark"] main{background:#0d0d0d!important;color:#ededed!important}
html[data-theme="dark"] :is(header,footer,#tabs,dialog,.dialoghead,.card,.empty,.photocard,.gallery-selection-bar,.team-calendar,.chat-attachment,.chat-image-preview,.chat-file-icon){
 background:#171717!important;color:#ededed!important;border-color:#353535!important;
}
html[data-theme="dark"] :is(.message,.chat-attachment,.calendar-weekdays,.calendar-day-empty,.mail-bulk,.qualification-fields,.emt-notification-dialog){
 background:#202020!important;color:#ededed!important;border-color:#404040!important;
}
html[data-theme="dark"] :is(.message.mine,.reply-preview,.message-quote,.menu-quote,.calendar-event-chip,.tag,.topic-add){
 background:#292929!important;color:#ededed!important;border-color:#464646!important;
}
html[data-theme="dark"] :is(input,textarea,select){background:#202020!important;color:#f0f0f0!important;border-color:#484848!important}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#aaa!important}
html[data-theme="dark"] button:not(.primary):not(.danger):not(.active){background:#292929!important;color:#ededed!important;border-color:#464646!important}
html[data-theme="dark"] :is(.active,.primary){background:#236782!important;color:#fff!important}
html[data-theme="dark"] :is(.danger,.alarmcard button.danger,#tabs button[data-tab="alarms"]){background:#ba2525!important;color:#fff!important}
html[data-theme="dark"] :is(small,.muted,.mail-page-count,.mail-swipe-hint){color:#a9a9a9!important}
html[data-theme="dark"] :is(.empty strong,.nav-label){color:#ededed!important}
html[data-theme="dark"] :is(.hero,.photocard img,.chat-link-card,.news-preview){background:#171717!important;border-color:#353535!important}
html[data-theme="dark"] :is(.gallery-viewer,.gallery-viewer-stage,#modal.gallery-viewer-dialog){background:#050505!important}
html[data-theme="dark"] #tabs button:not(.active):not([data-tab="alarms"]){background:#171717!important;color:#ededed!important}
html[data-theme="dark"] #tabs button.active:not([data-tab="alarms"]){background:#303030!important;color:#fff!important;box-shadow:inset 3px 0 0 #2494b8}
html[data-theme="dark"] #emt-notification-dialog{background:#171717!important;color:#ededed!important}
html[data-theme="dark"] #emt-notification-trigger .emt-notification-badge{border-color:#171717!important}
html[data-theme="dark"] .nav-badge{border-color:#171717!important}
html[data-theme="dark"] .emt-mail-fullscreen .emt-mail-head,
html[data-theme="dark"] .emt-mail-fullscreen .emt-mail-actions{background:#171717!important;color:#ededed!important}
html[data-theme="dark"] .emt-mail-fullscreen .emt-mail-actions button{background:transparent!important}
/* Keep real e-mail HTML content and images untouched (sender formatting is authoritative). */
