/* shared/hub_components.css — the Hub design language's reusable pieces, for EVERY app
   (TASK-439, owner 2026-09-09: the Chat & Mail app "needs a redesign from ground up based on what
   we did now with other apps"). Until today these lived in hub/www/hub_design.css and could only be
   used inside the Hub; hub_design.css now keeps only what is Hub-page-specific (page frame, hero,
   dashboard grid, auth stage) and is loaded AFTER this file by hub/www/_hub_shell.php.

   Depends on the tokens in shared/hub_topbar.css (--primary, --hub-*), which must be loaded first.
   Contents: 4. CARDS (.hub-card family, .hub-anim-in) · modal (.hub-modal*) · 6. FORMS, BUTTONS,
   ALERTS, TOGGLES (.hub-field/.hub-input/.hub-select/.hub-btn/.hub-alert/.hub-toggle …).
   No app-specific rule belongs here (owner rule: one shared CSS source, no forks). */

/* ══════════════════════════════════════════════════════════════════════════════════════════
   4. CARDS — the one card family (app tiles, panels, profile cards, content cards)
   ══════════════════════════════════════════════════════════════════════════════════════════ */
.hub-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--hub-glass);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    border-radius: var(--border-radius-lg);   /* Tier-A token, 24px — shared_css_contract guard */
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--hub-shadow-1);
    padding: 22px;
    color: inherit;
    text-decoration: none;
    /* NOTE: no will-change/translateZ — a forced compositing layer breaks backdrop-filter and
       renders the card opaque grey on hover (measured before this refresh, kept as a rule). */
    transition: transform 0.35s var(--hub-ease-spring), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.hub-card--solid { background: var(--hub-glass-solid); }
.hub-card--pad-lg { padding: 30px; }
.hub-card__title {
    display: flex; align-items: center; gap: 10px;
    color: var(--primary); font-size: 1.15rem; font-weight: 800;
    margin: 0 0 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--hub-line);
}
.hub-card__title .hub-card__title-icon { font-size: 1.25rem; }
.hub-card__hint { font-size: 0.85rem; color: var(--hub-ink-soft); line-height: 1.55; margin: 0 0 18px; }

/* app tile — a .hub-card with a STRETCHED LINK: .app-card__link covers the whole card (valid
   HTML — never an <a> inside an <a>, which the parser silently splits), while the small
   interactive children (mini links, the ⋯ / ⠿ tools) sit above it on z-index 2. */
.app-card {
    height: 100%; width: 100%;
    cursor: pointer;
    overflow: hidden;
}
.app-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.app-card:has(.app-card__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.app-card .hub-card-tools, .app-card .app-card__links { position: relative; z-index: 2; }
.app-card .hub-card-tools { position: absolute; }
.app-card::before {
    /* accent ribbon: a soft line at rest, full strength on hover */
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 55%, #fff));
    opacity: 0.55; transform: scaleX(0.35); transform-origin: left;
    transition: transform 0.45s var(--hub-ease-out), opacity 0.3s;
}
.app-card:hover::before { transform: scaleX(1); opacity: 1; }
.app-card__blurb { font-size: 0.8rem; color: var(--hub-ink-soft); line-height: 1.45; margin: -6px 0 10px; }
/* live feed inside a tile: today's lessons / sessions / latest mails — scrolls, never grows the card */
.app-card__feed { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; max-height: 118px; overflow: auto; scrollbar-width: thin; position: relative; z-index: 2; }
.app-card__feed[hidden] { display: none; }
.app-card__feedrow { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline; padding: 5px 8px; border-radius: 9px; background: rgba(0, 31, 84, 0.04); font-size: 0.76rem; color: var(--hub-ink-soft); line-height: 1.3; }
.app-card__feedrow b { color: var(--hub-ink); font-weight: 700; }
.app-card__feedrow .app-card__feedtime { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--primary); white-space: nowrap; }
.app-card__feedrow.is-now { background: color-mix(in srgb, var(--card-accent) 14%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 35%, transparent); }
.app-card__feedrow.is-now .app-card__feedtime::before { content: '●'; color: #dc2626; margin-right: 4px; animation: hub-timer-pulse 1.4s ease-out infinite; border-radius: 50%; }
.app-card__feedrow.is-past { opacity: 0.55; }
.app-card__feedrow .app-card__feedsub { display: block; font-size: 0.7rem; color: var(--hub-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card__feedmore { font-size: 0.7rem; color: var(--hub-ink-muted); padding: 2px 8px; }
.stat-value.is-text { font-size: 0.86rem; font-weight: 700; text-align: right; line-height: 1.25; max-width: 60%; }
.app-card:hover:not(.disabled-card) {
    transform: translateY(-6px) scale(1.015);
    background: #fff;
    box-shadow: 0 24px 50px rgba(0, 31, 84, 0.2), 0 0 0 1px color-mix(in srgb, var(--card-accent) 30%, transparent);
}
.disabled-card { opacity: 0.6; filter: grayscale(0.6); cursor: not-allowed; }
.disabled-card:hover { transform: none !important; }

.app-card .card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 60px; flex-shrink: 0; }
.app-card .stats-grid { min-height: 0; }
.card-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    border-radius: 18px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 14%, #fff), color-mix(in srgb, var(--card-accent) 4%, #fff));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 18%, transparent);
    transition: transform 0.5s var(--hub-ease-spring), box-shadow 0.3s;
}
.app-card:hover .card-icon { transform: rotate(-8deg) scale(1.1); box-shadow: 0 10px 20px color-mix(in srgb, var(--card-accent) 25%, transparent); }
.card-title-group { min-width: 0; }
.card-title-group h2 { font-size: 1.2rem; color: var(--primary); font-weight: 800; margin: 0; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title-group p { font-size: 0.82rem; color: var(--hub-ink-soft); font-weight: 500; margin: 2px 0 0; }

.stats-grid {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: auto;
    padding: 14px 0 12px;
    border-top: 1px solid var(--hub-line);
}
.stat-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stat-label { font-size: 0.68rem; font-weight: 800; color: var(--hub-ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { font-size: 1.15rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-value.loading {
    color: transparent !important;
    min-width: 36px; height: 1.1em; border-radius: 6px;
    background: linear-gradient(90deg, rgba(0, 31, 84, 0.08) 25%, rgba(0, 31, 84, 0.16) 50%, rgba(0, 31, 84, 0.08) 75%);
    background-size: 200% 100%;
    animation: hub-shimmer 1.2s linear infinite;
}
@keyframes hub-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.stat-value.is-unknown { color: var(--hub-ink-muted); }
.stat-pill { display: inline-block; border-radius: 10px; padding: 1px 9px; font-size: 0.8rem; font-weight: 800; color: #fff; background: var(--danger); animation: hub-pop 0.45s var(--hub-ease-spring); }
.stat-pill--mail { background: var(--warning); }
.stat-pill--ok { background: var(--success); }
.app-card__note { font-size: 0.8rem; color: var(--hub-ink-soft); line-height: 1.5; margin: 0 0 8px; }
.app-card__links { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.app-card__minilink {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; color: var(--hub-ink-soft);
    background: rgba(0, 31, 84, 0.05); border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, transform 0.2s var(--hub-ease-spring);
}
.app-card__minilink:hover { background: color-mix(in srgb, var(--card-accent) 12%, #fff); color: var(--primary); transform: translateY(-1px); }

/* CTA at the bottom of every tile — never shrinks when the content above is tall */
.btn-enter {
    position: relative; overflow: hidden;
    flex-shrink: 0;
    margin-top: 12px;
    height: 42px; min-height: 42px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: var(--hub-radius-sm);
    background: var(--card-accent);
    color: #fff; font-weight: 700; font-size: 0.88rem;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--card-accent) 30%, transparent);
    transition: transform 0.25s var(--hub-ease-spring), box-shadow 0.25s;
}
.btn-enter::after {
    /* light sweep on hover */
    content: '';
    position: absolute; top: 0; bottom: 0; width: 40%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
}
.app-card:hover .btn-enter::after { animation: hub-sweep 0.7s ease-out; }
@keyframes hub-sweep { to { left: 130%; } }
.app-card:hover .btn-enter { transform: translateY(-1px); box-shadow: 0 10px 22px color-mix(in srgb, var(--card-accent) 40%, transparent); }
.disabled-card .btn-enter { background: var(--hub-ink-muted); box-shadow: none; }

/* entrance stagger — every card gets --i from its position */
.hub-anim-in { animation: hub-rise 0.6s var(--hub-ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes hub-rise {
    from { opacity: 0; transform: translateY(22px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

/* add-card gallery (modal) */
.hub-modal-backdrop {
    position: fixed; inset: 0; z-index: 800;
    background: rgba(0, 20, 60, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: hub-fade 0.2s ease both;
}
.hub-modal-backdrop[hidden] { display: none !important; }
@keyframes hub-fade { from { opacity: 0; } to { opacity: 1; } }
.hub-modal {
    width: 720px; max-width: 100%; max-height: 90vh;
    display: flex; flex-direction: column;
    background: #fff;
    border-radius: 26px;
    box-shadow: var(--hub-shadow-3);
    overflow: hidden;
    animation: hub-menu-in 0.35s var(--hub-ease-spring) both;
}
.hub-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--primary); color: #fff; }
.hub-modal__head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.hub-modal__close { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 20px; cursor: pointer; transition: background 0.15s, transform 0.3s var(--hub-ease-spring); }
.hub-modal__close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }
.hub-modal__body { padding: 20px 22px; overflow: auto; }
.hub-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hub-gallery__item {
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px; border-radius: 16px;
    border: 1px solid var(--hub-line); background: #f8fafc;
    text-align: left; cursor: pointer; font-family: inherit;
    transition: transform 0.25s var(--hub-ease-spring), box-shadow 0.2s, border-color 0.2s;
}
.hub-gallery__item:hover { transform: translateY(-3px); box-shadow: var(--hub-shadow-1); border-color: var(--accent); }
.hub-gallery__item b { color: var(--primary); font-size: 0.9rem; }
.hub-gallery__item small { color: var(--hub-ink-soft); font-size: 0.75rem; line-height: 1.4; }
.hub-gallery__icon { font-size: 1.5rem; }
.hub-gallery__empty { color: var(--hub-ink-muted); font-size: 0.9rem; padding: 10px 0; }
.hub-modal__section { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hub-ink-muted); margin: 18px 0 10px; }
.hub-modal__section:first-child { margin-top: 0; }

/* ══════════════════════════════════════════════════════════════════════════════════════════
   6. FORMS, BUTTONS, ALERTS, TOGGLES — shared by profile / account / auth pages
   ══════════════════════════════════════════════════════════════════════════════════════════ */
.hub-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hub-field { margin-bottom: 16px; text-align: left; }
.hub-field > label { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hub-ink-muted); margin-bottom: 7px; }
.hub-input, .hub-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--hub-radius-sm);
    border: 1px solid #d5dbe5;
    background: #fff;
    font-size: 0.98rem; font-family: inherit; color: var(--hub-ink);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
/* Owner 2026-10-02 (iPhone, Person verwalten → Vertragsart): text clipped at the bottom. The element rule
   `select { height: 40px }` (suite_components.css) plus 12px top/bottom padding here left a 20px content box
   for 16px text — Chrome draws it, iOS Safari clips the descenders. A select centres its text itself, so it
   gets no vertical padding; height/min-height alone size it. Inputs/textareas are unchanged. */
select.hub-input, select.hub-select { padding-top: 0; padding-bottom: 0; min-height: 44px; }
.hub-input:focus, .hub-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(253, 126, 20, 0.16);
}
.hub-input::placeholder { color: #b6bfcc; }
.hub-inputwrap { position: relative; }
.hub-inputwrap .hub-input { padding-right: 46px; }
.hub-inputwrap__btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 9px; border: none; background: none;
    cursor: pointer; font-size: 1rem; color: var(--hub-ink-muted); font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.hub-inputwrap__btn:hover { background: rgba(0, 31, 84, 0.06); color: var(--primary); }
.hub-code-input { text-align: center; font-size: 1.5rem; letter-spacing: 0.45em; font-weight: 800; color: var(--primary); }
.hub-check { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--hub-ink-soft); font-weight: 600; cursor: pointer; }
.hub-check input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

.hub-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    border-radius: var(--hub-radius-sm);
    border: 1px solid transparent;
    font-weight: 700; font-size: 0.9rem; font-family: inherit;
    cursor: pointer; text-decoration: none; line-height: 1.2;
    transition: transform 0.25s var(--hub-ease-spring), box-shadow 0.25s, background 0.2s, color 0.2s;
}
.hub-btn:hover { transform: translateY(-2px); }
.hub-btn:active { transform: translateY(0) scale(0.98); }
.hub-btn--block { width: 100%; }
.hub-btn--sm { padding: 8px 14px; font-size: 0.8rem; border-radius: 11px; }
.hub-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(0, 31, 84, 0.22); }
.hub-btn--primary:hover { background: #0a2d6e; box-shadow: 0 12px 26px rgba(0, 31, 84, 0.3); }
.hub-btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(253, 126, 20, 0.3); }
.hub-btn--accent:hover { background: #ea6c05; }
.hub-btn--ghost { background: rgba(255, 255, 255, 0.7); color: var(--hub-ink-soft); border-color: rgba(0, 31, 84, 0.12); }
.hub-btn--ghost:hover { background: #fff; color: var(--primary); box-shadow: var(--hub-shadow-1); }
.hub-btn--danger { background: rgba(220, 53, 69, 0.1); color: var(--danger); }
.hub-btn--danger:hover { background: var(--danger); color: #fff; }
.hub-btn--link { background: none; color: var(--hub-ink-soft); padding: 6px 8px; }
.hub-btn--link:hover { color: var(--primary); transform: none; }
.hub-btn.is-loading { pointer-events: none; color: transparent !important; }
.hub-btn.is-loading::after {
    content: '';
    position: absolute; width: 18px; height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
    animation: hub-spin 0.7s linear infinite;
}
.hub-btn--ghost.is-loading::after { border-color: rgba(0, 31, 84, 0.2); border-top-color: var(--primary); }
.hub-btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hub-btn-row--end { justify-content: flex-end; }

.hub-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 13px 16px;
    border-radius: var(--hub-radius-sm);
    font-size: 0.88rem; font-weight: 500; line-height: 1.45;
    margin: 0 0 18px;
    animation: hub-rise 0.4s var(--hub-ease-out) both;
}
.hub-alert--ok { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.hub-alert--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; animation: hub-rise 0.4s var(--hub-ease-out) both, hub-shake 0.5s 0.35s ease-in-out; }
.hub-alert--info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.hub-alert--warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
@keyframes hub-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}

/* toggle rows (profile → dashboard visibility) */
.hub-toggle-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.hub-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 14px;
    background: #fff; border: 1px solid var(--hub-line); border-radius: 15px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.25s var(--hub-ease-spring), box-shadow 0.2s;
}
.hub-toggle:hover { border-color: var(--accent); transform: translateX(3px); box-shadow: var(--hub-shadow-1); }
.hub-toggle input { display: none; }
.hub-toggle__info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hub-toggle__icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; background: #f1f5f9; flex-shrink: 0; }
.hub-toggle__text b { display: block; font-size: 0.9rem; color: var(--primary); }
.hub-toggle__text span { font-size: 0.74rem; color: var(--hub-ink-soft); }
.hub-switch { width: 44px; height: 24px; border-radius: 12px; background: #cbd5e1; position: relative; flex-shrink: 0; transition: background 0.3s; }
.hub-switch::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--hub-ease-spring); }
.hub-toggle input:checked + .hub-switch { background: var(--success); }
.hub-toggle input:checked + .hub-switch::after { transform: translateX(20px); }

/* key/value facts (profile hero) */
.hub-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; }
.hub-fact { font-size: 0.8rem; color: var(--hub-ink-soft); }
.hub-fact b { color: var(--primary); font-weight: 700; }
.hub-rolepill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(0, 31, 84, 0.08); color: var(--primary); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* two-column layout for form pages */
.hub-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.hub-stack { display: flex; flex-direction: column; gap: 20px; }

/* signature preview (profile) */
.hub-sigpreview img { max-width: 100%; max-height: 110px; border: 1px solid var(--hub-line); border-radius: 12px; background: #fff; padding: 8px; display: block; }
.hub-sigpreview .empty { margin: 0; font-style: italic; color: var(--hub-ink-muted); font-size: 0.9rem; }

/* overlay (signature pad / confirm) */
.hub-overlay { display: none; position: fixed; inset: 0; z-index: 60000; background: rgba(0, 20, 60, 0.5); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.hub-overlay.is-open { display: flex; animation: hub-fade 0.2s ease both; }
.hub-overlay__box { background: #fff; border-radius: 22px; padding: 26px; width: 480px; max-width: 100%; box-shadow: var(--hub-shadow-3); animation: hub-menu-in 0.3s var(--hub-ease-spring) both; }
.hub-overlay__box h3 { margin: 0 0 14px; color: var(--primary); font-size: 1.1rem; }
.hub-sigcanvas-wrap { border: 2px dashed var(--primary); border-radius: 14px; background: #fafafa; margin-bottom: 14px; }
.hub-sigcanvas-wrap canvas { width: 100%; height: 170px; touch-action: none; display: block; }


/* ── 7. Tab strip — one compact row: the tool's title + its tabs (TASK-439, owner 2026-09-09:
   "these submenus are not yet integrated"). The Zeiterfassung strip and the account pages
   (Profil · Sicherheit · Kalender-Sync · Desktop-App) share it. Links or buttons; the active one
   carries .is-active (server-rendered) or .active (toggled by a page script). Stays visible on
   mobile and wraps — unlike .hub-subnav, which the bottom drawer replaces. ───────────────── */
.hub-tabs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: -5px 0 12px; padding: 7px 10px 7px 16px; border-radius: 16px; background: var(--hub-glass); border: 1px solid rgba(255,255,255,0.65); box-shadow: var(--hub-shadow-1); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.hub-tabs__title { font-weight: 900; color: var(--primary); font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.hub-tabs__links { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.hub-tabs__link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 13px; background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.7); color: var(--hub-ink-soft); font-weight: 700; font-size: 0.84rem; text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.hub-tabs__link:hover { background: #fff; color: var(--primary); transform: translateY(-1px); box-shadow: var(--hub-shadow-1); }
.hub-tabs__link.is-active, .hub-tabs__link.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 20px rgba(0, 31, 84, 0.25); }
.hub-tabs__spacer { flex: 1; }
.hub-tabs__side { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 0.8rem; color: var(--hub-ink-muted); }
@media (max-width: 640px) { .hub-tabs { gap: 8px 12px; padding: 7px 10px; } .hub-tabs__title { font-size: 0.95rem; } .hub-tabs__link { padding: 6px 11px; font-size: 0.78rem; } }
/* TASK-644 — coarse-pointer (touch) tap-height floor. Measured 29px on iPhone 13 viewport
   (padding 7px top/bottom + line-height ~15px = 29px, no min-height set). .hub-tabs__link is
   shared by every .hub-tabs strip (Zeiterfassung's 4 pills, the account pages' Profil/Sicherheit/
   Kalender-Sync/Desktop-App strip via hub_shell_tabs() in hub/www/_hub_shell.php) — fixed here,
   not per-page, per build rule 2. Scoped to pointer:coarse so a mouse/trackpad user keeps the
   denser desktop pill; a touch user on any width gets the 44px target regardless of viewport. */
@media (pointer: coarse) { .hub-tabs__link { min-height: 44px; } }
