/* Refinements shared by desktop, tablet and mobile; loaded after the legacy theme. */
:root { --lipad-action: #087ba8; --lipad-slate: #586b7d; --lipad-line: #dfe6ed; }
html { scroll-padding-top: 5rem; }
body { -webkit-text-size-adjust: 100%; }
::selection { color: #17364a; background: #ccecf8; }
:focus-visible { outline: 3px solid var(--lipad-action); outline-offset: 3px; }
input, textarea { caret-color: var(--lipad-action); }
input::placeholder, textarea::placeholder { color: #687787 !important; opacity: 1; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
.skip-link { position: fixed; top: .75rem; left: 1rem; z-index: 2200; padding: .8rem 1rem; color: #fff; background: #17364a; border-radius: .5rem; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); color: #fff; }
.layout-page, .content-wrapper, .navbar-nav-right, .page-heading > div { min-width: 0; }
.content-wrapper > main.container-p-y { padding: 0; }
.content-wrapper { min-height: calc(100dvh - 4.55rem); }
.admin-page { max-width: 1440px; margin-inline: auto; padding: clamp(1.5rem, 3vw, 3rem); }
.admin-page h1, .chat-workspace-header h1 { overflow-wrap: anywhere; text-wrap: balance; }
.admin-page p { max-width: 70ch; }
.page-heading { align-items: center; gap: 1.5rem; }
.page-heading p { margin-top: .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: .25rem; }
.btn-primary, .btn-login { color: #fff; background: var(--lipad-action); border-color: var(--lipad-action); box-shadow: none; }
.btn-primary:hover, .btn-primary:focus, .btn-login:hover, .btn-login:focus { color: #fff; background: #066487; border-color: #066487; }
.btn-outline-primary { color: var(--lipad-action); border-color: var(--lipad-action); }
.btn-outline-secondary { color: #4f6274; border-color: #b6c3cf; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.menu-open { display: grid; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; color: #344b60; }
.layout-menu .menu-link { min-height: 48px; }
.navbar-text { max-width: 20rem; overflow-wrap: anywhere; }
.data-card, .discussion-card, .responsive-list, .dashboard-action, .dashboard-hero { box-shadow: none; }
.dashboard-hero { min-height: 0; padding: 0 0 2rem; background: transparent; border: 0; border-bottom: 1px solid var(--lipad-line); border-radius: 0; }
.dashboard-hero img { width: 5rem; margin: 0; }
.dashboard-actions { gap: 0; overflow: hidden; background: #fff; border: 1px solid var(--lipad-line); border-radius: 14px; }
.dashboard-action { min-height: 6rem; border: 0; border-radius: 0; background: transparent; }
.dashboard-action + .dashboard-action { border-left: 1px solid var(--lipad-line); }
.dashboard-action:hover { transform: none; background: #f0f7fb; box-shadow: none; }
.dashboard-stats { gap: 0; margin-top: 1.75rem; }
.dashboard-stats article { border: 0; border-radius: 0; background: transparent; }
.dashboard-stats span, .list-cell small, .form-text, .check-card small, .participant-list small, .sidebar-section-label, .discussion-summary dt { color: #607183; }
.dashboard-stats strong, time { font-variant-numeric: tabular-nums; }
.form-page { max-width: 1120px; }
.form-page .form-control, .login-card .form-control, .form-select { min-height: 46px; font-size: 1rem; }
.form-label, .modal .form-label { color: #344b60; }
.form-card { background: #fff; border: 1px solid var(--lipad-line); border-radius: 14px; }
.form-section-title { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--lipad-line); }
.check-card { min-height: 48px; }
.check-card:has(input:checked), .tag-check:has(input:checked) { background: #edf8fc; border-color: var(--lipad-action); }
.check-card input, .tag-check input, .participant-choice-list input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--lipad-action); }
.tag-check { display: inline-flex; align-items: center; min-height: 44px; border-radius: .6rem; }
.list-cell { overflow-wrap: anywhere; }
.status-badge.active { color: #286a36; background: #eaf5ed; }
.status-badge.inactive { color: #9b4138; background: #fcefeb; }
.empty-state { background: #fff; border-radius: 14px; color: #586b7d; }
.discussion-filter-panel { background: #fff; border: 1px solid var(--lipad-line); border-radius: 14px; overflow: hidden; }
.discussion-filter-panel summary { min-height: 52px; }
.discussion-filter-panel .form-card { border: 0; border-radius: 0; }
.login-shell { min-height: 100dvh; }
.login-brand { background: #edf3f7; }
.login-card { border: 0; box-shadow: none; }
.login-card > .login-footer { margin-bottom: 0; color: #607183; }
.field-validation-error { display: block; margin-top: .35rem; color: #ad342d; }
.chat-workspace-page .layout-page { height: 100dvh; }
.chat-sidebar-content { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a9bfcc transparent; }
.chat-workspace .chat-messages { margin-top: 0; background: #f7f9fb; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a9bfcc transparent; }
.chat-workspace .chat-message { overflow-wrap: anywhere; border: 0; background: #fff; }
.chat-workspace .chat-message.mine { background: #086e99; border-color: #086e99; }
.chat-workspace .chat-meta { flex-wrap: wrap; padding-right: 1.75rem; }
.chat-workspace .chat-meta time { opacity: 1; color: #607183; }
.chat-workspace .mine .chat-meta time { color: #d7edf7; }
.chat-workspace .mine .chat-mention { color: #fff; text-decoration: underline; }
.quote-message { width: 32px; height: 32px; }
.quoted-message, .quote-preview { border-left-width: 1px; }
.chat-workspace-header > div { min-width: 0; }
.chat-workspace-header > a { flex-shrink: 0; }
.chat-load-older { min-height: 40px; margin-bottom: .5rem; }
.quote-preview > div, .participant-list li > span:last-child { min-width: 0; }
.quote-preview p { max-width: 100%; }
.attach-image-options label, .attach-image-options button { min-height: 44px; display: flex; align-items: center; }
.poll-option { min-height: 44px; align-items: center; }
.poll-option span { overflow-wrap: anywhere; }
@media (min-width: 701px) and (max-width: 1100px) {
 .responsive-list--users .responsive-list-header, .responsive-list--users .responsive-list-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 4.5rem 5rem auto; gap: .65rem; }
 .responsive-list--discussions .responsive-list-header, .responsive-list--discussions .responsive-list-row { grid-template-columns: 4rem minmax(0, 1.7fr) minmax(0, 1fr) 7rem auto; gap: .65rem; }
 .list-actions { flex-wrap: wrap; }
}
@media (max-width: 860px) {
 .login-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
 .login-brand { padding: 1rem 1.5rem; background: #fff; }
 .login-brand-identity, .login-brand-identity .login-wordmark { height: 3rem; }
 .login-panel { align-items: start; padding: 1.5rem 1rem; }
 .login-card { padding: 1rem; }
 .login-mark { display: none; }
 .login-card h2 { font-size: 1.65rem; }
}
@media (max-width: 700px) {
 .layout-navbar { height: 4rem; padding-inline: .75rem !important; }
 .layout-navbar .layout-menu-toggle { display: flex; flex-direction: row; gap: .35rem; min-width: 0; margin-right: .5rem !important; }
 .mobile-page-title { max-width: 35vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: var(--lipad-ink); }
 .navbar-text { max-width: 26vw; margin-right: .5rem !important; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
 .navbar-text i { display: none; }
 .content-wrapper { min-height: calc(100dvh - 4rem); }
 .admin-page { padding: 1.5rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
 .admin-page h1 { font-size: 1.75rem; }
 .page-heading { align-items: stretch; gap: 1rem; margin-bottom: 1.25rem; }
 .page-heading > .btn { align-self: flex-start; }
 .page-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
 .page-actions .btn { padding-inline: .6rem; font-size: .85rem; }
 .dashboard-hero { gap: .75rem; padding: 0 0 1.5rem; }
 .dashboard-hero img { display: none; }
 .dashboard-action { min-height: 5.5rem; padding: 1rem; }
 .dashboard-action + .dashboard-action { border-left: 0; border-top: 1px solid var(--lipad-line); }
 .dashboard-stats article { padding: .9rem .35rem; }
 .dashboard-stats span { font-size: .8rem; }
 .responsive-list { border: 1px solid var(--lipad-line); box-shadow: none; }
 .responsive-list-row + .responsive-list-row { border-top: 1px solid var(--lipad-line); }
 .responsive-list-row { gap: .85rem; padding: 1rem; }
 .list-cell::before { color: #607183; letter-spacing: .03em; font-weight: 600; }
 .list-cell > .status-badge, .list-cell > .role-badge { justify-self: start; }
 .list-identity::before { display: none; }
 .list-identity { grid-row: 1; }
 .list-identity strong { font-size: 1rem; }
 .list-identity small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
 .responsive-list--groups .list-cell:first-child, .responsive-list--groups .list-cell:nth-child(2) { grid-column: 1 / -1; }
 .responsive-list--groups .list-cell strong { white-space: normal; }
 .list-actions { padding-top: .25rem; gap: .5rem; }
 .form-card { padding: 1.1rem; }
 .checkbox-grid, .group-selection { grid-template-columns: minmax(0, 1fr); }
 .form-actions { flex-direction: column; }
 .form-actions .btn-primary { order: -1; }
 .discussion-filter-panel { border: 1px solid var(--lipad-line); background: #fff; }
 .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
 .filter-grid > div { min-width: 0; }
 .filter-grid .form-label { font-size: .8rem; }
 .filter-grid .form-control, .filter-grid .form-select { width: 100%; min-width: 0; font-size: 1rem; padding-inline: .5rem; }
 .filter-actions { grid-column: 1 / -1; }
 .chat-workspace-header h1 { max-width: none; white-space: normal; font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
 .chat-workspace-header { padding: .65rem 1rem; gap: .5rem; }
 .details-toggle { min-height: 44px; padding-block: .6rem; }
 .chat-workspace .chat-messages { padding: .85rem; gap: .75rem; }
 .chat-workspace .chat-message { max-width: 92%; }
 .chat-composer { padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px)); box-shadow: none; }
 .composer-row .form-control { font-size: 1rem; }
 .composer-row .btn { min-width: 44px; padding-inline: .65rem; }
 .quote-message { width: 36px; height: 36px; }
 .chat-workspace .chat-meta { padding-right: 2rem; }
 .chat-sidebar-content { max-height: 40dvh; }
 .modal-dialog { margin: .75rem; }
 .modal-footer { flex-wrap: wrap; }
 .modal-footer .btn { flex: 1 1 auto; }
 .ios-notification-guide { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Vendor headings reference an unavailable font: inherit the installed UI stack. */
h1, h2, h3, h4, h5, h6 { font-family: inherit; }
.form-label { text-transform: none; }
.login-card .form-control:focus, .form-page .form-control:focus { border-color: var(--lipad-action); box-shadow: 0 0 0 3px #087ba81f; }
