body.mobile {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

body.mobile .mobile-only-btn {
    display: inline-flex !important;
}

body.mobile .non-admin-tab {
    display: none !important;
}

body.mobile #app {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    padding-bottom: 56px;
}

body.mobile #topNav {
    height: 48px;
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 200;
}

body.mobile .nav-left {
    max-width: none;
    width: auto;
    flex: 1;
}

body.mobile .nav-title {
    font-size: 13px;
}

body.mobile .nav-tabs {
    display: none !important;
}

body.mobile .world-clocks {
    display: none !important;
}

body.mobile .nav-right {
    display: none !important;
}

body.mobile .mob-header-actions {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.mob-header-actions {
    display: none !important;
}

.mob-header-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    border-radius: 6px;
}

.mob-header-btn:active {
    background: var(--bg-tertiary);
}

.mob-bottom-nav {
    display: none;
}

body.mobile .mob-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 200;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}

body.mobile .mob-bottom-nav button {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 2px 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 500;
    position: relative;
}

body.mobile .mob-bottom-nav button .qa-notif-badge,
body.mobile .mob-bottom-nav button .qa-admin-badge,
body.mobile .mob-bottom-nav button .risks-notif-badge {
    position: static;
    margin-top: 1px;
    min-width: 14px;
    height: 14px;
    font-size: 8px;
}

body.mobile .mob-bottom-nav button .mob-ico {
    font-size: 20px;
    line-height: 1;
}

body.mobile .mob-bottom-nav button.active {
    color: var(--accent);
}

.mob-search-overlay {
    display: none;
}

body.mobile .mob-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 300;
    flex-direction: column;
}

body.mobile .mob-search-overlay.visible {
    display: flex;
}

.mob-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mob-search-bar input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.mob-search-bar input:focus {
    border-color: var(--accent);
}

.mob-search-bar button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    padding: 8px;
    white-space: nowrap;
}

.mob-search-results {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mob-search-results .search-item {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.mob-menu-overlay {
    display: none;
}

body.mobile .mob-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 290;
}

body.mobile .mob-menu-overlay.visible {
    display: block;
}

.mob-menu-panel {
    display: none;
}

body.mobile .mob-menu-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 295;
    transition: right 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

body.mobile .mob-menu-panel.visible {
    right: 0;
}

.mob-menu-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mob-menu-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.mob-menu-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

.mob-menu-clocks {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mob-clock {
    text-align: center;
}

.mob-clock-city {
    font-size: 9px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mob-clock-date {
    font-size: 9px;
    color: var(--text-muted);
}

.mob-clock-time {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.mob-menu-section {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.mob-menu-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mob-menu-btn {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 2px;
}

.mob-menu-btn .qa-notif-badge,
.mob-menu-btn .qa-admin-badge,
.mob-menu-btn .risks-notif-badge {
    position: static;
    margin-left: auto;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
}

.mob-menu-btn:active {
    background: var(--bg-tertiary);
}

.mob-menu-btn.danger {
    color: var(--danger);
}

body.mobile #marketTicker {
    height: 22px;
}

body.mobile .ticker-label { font-size: 9px; }
body.mobile .ticker-price { font-size: 10px; }
body.mobile .ticker-change { font-size: 9px; }

body.mobile .tab-content {
    overflow: visible;
}

body.mobile .tab-content.active {
    display: flex;
    flex-direction: column;
}

body.mobile #tabMap {
    height: calc(100vh - 128px);
    height: calc(100dvh - 128px);
    min-height: 0;
    overflow: hidden;
}

body.mobile #tabMap:not(.active) {
    display: block !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
    width: 100vw;
    pointer-events: none;
}

body.mobile #mapContainer {
    position: relative;
    width: 100%;
    height: 100%;
}

body.mobile .map-legend {
    position: absolute;
    bottom: auto;
    top: 8px;
    left: 8px;
    right: auto;
    width: auto;
    max-width: 85vw;
    transform: none;
    transform-origin: top left;
    z-index: 10;
    font-size: 9px;
    padding: 6px 8px;
}

body.mobile .map-legend .legend-header {
    touch-action: none;
}

body.mobile .map-legend.collapsed {
    max-width: 90px;
}

body.mobile .legend-header-title { font-size: 10px; }

body.mobile .floating-panel {
    min-width: 200px;
    max-width: 85vw;
    max-height: 60vh;
    z-index: 15;
}

body.mobile .floating-panel .fp-header {
    touch-action: none;
    padding: 8px 10px;
}

body.mobile .intel-feed {
    position: absolute !important;
    left: 4px !important;
    right: auto !important;
    top: auto !important;
    width: calc(100% - 8px) !important;
    max-width: 92vw;
    max-height: 35vh;
    transform: none !important;
    resize: none;
    z-index: 12;
}

body.mobile .intel-feed .intel-feed-header {
    touch-action: none;
}

body.mobile .intel-feed.collapsed {
    max-height: 38px;
}

body.mobile .intel-feed-item-title {
    font-size: 12px;
}

body.mobile .country-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 56px;
    width: 100%;
    max-height: none;
    min-width: unset;
    border-radius: 0;
    z-index: 250;
    direction: ltr;
    resize: none;
    animation: mobileSlideUp 0.25s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.mobile .country-overlay .overlay-header,
body.mobile .country-overlay .overlay-tabs {
    flex-shrink: 0;
}

body.mobile .country-overlay .overlay-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

body.mobile .country-overlay > * {
    direction: ltr;
}

@keyframes mobileSlideUp {
    from { transform: translateY(30%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

body.mobile .overlay-header {
    padding: 10px 12px 8px;
}

body.mobile .overlay-header h2 {
    font-size: 16px;
}

body.mobile .overlay-tabs {
    padding: 6px 8px;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.mobile .overlay-tab {
    padding: 5px 8px;
    font-size: 11px;
    flex-shrink: 0;
}

body.mobile .overlay-body {
    padding: 10px 12px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.mobile .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

body.mobile .stat-card {
    padding: 8px;
}

body.mobile .stat-value {
    font-size: 15px;
}

body.mobile .stat-label {
    font-size: 10px;
}

body.mobile .prod-metric-row {
    font-size: 11px;
}

body.mobile .prod-chart-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.mobile .map-data-attribution {
    font-size: 8px;
    bottom: 2px;
    right: 4px;
}

body.mobile .data-viz-container {
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
}

body.mobile .data-sidebar {
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 12px;
    overflow: visible;
    flex-shrink: 0;
}

body.mobile .data-sidebar.mob-collapsed .metrics-list,
body.mobile .data-sidebar.mob-collapsed .selected-metrics,
body.mobile .data-sidebar.mob-collapsed .metric-filters,
body.mobile .data-sidebar.mob-collapsed .metric-search,
body.mobile .data-sidebar.mob-collapsed .dataset-legend {
    display: none;
}

body.mobile .data-sidebar h3 {
    font-size: 13px;
    margin-bottom: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.mobile .data-sidebar h3::after {
    content: '▾';
    font-size: 14px;
    color: var(--text-muted);
}

body.mobile .data-sidebar.mob-collapsed h3::after {
    content: '▸';
}

body.mobile .data-sidebar.mob-collapsed h3 {
    margin-bottom: 0;
}

body.mobile .data-sidebar .dataset-legend {
    padding: 4px 8px;
    margin-bottom: 6px;
    font-size: 10px;
}

body.mobile .data-sidebar .dataset-abbr {
    font-size: 10px;
}

body.mobile .data-sidebar .metric-search {
    padding: 7px 10px;
    font-size: 13px;
    margin-bottom: 6px;
}

body.mobile .data-sidebar .metric-filters {
    margin-bottom: 6px;
}

body.mobile .data-sidebar .metrics-list {
    max-height: 180px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 0;
}

body.mobile .data-sidebar .selected-metrics {
    padding-top: 6px;
}

body.mobile .data-sidebar .selected-metrics h4 {
    font-size: 11px;
    margin-bottom: 4px;
}

body.mobile .data-main {
    overflow: visible;
    flex-shrink: 0;
}

body.mobile .chart-controls {
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    align-items: flex-start;
}

body.mobile .date-range {
    flex-wrap: wrap;
    gap: 4px;
}

body.mobile .range-btn {
    padding: 6px 10px;
    font-size: 12px;
}

body.mobile .date-input {
    margin-left: 0;
    margin-top: 4px;
}

body.mobile .chart-area {
    min-height: 280px;
    height: 300px;
    padding: 4px;
    flex-shrink: 0;
}

body.mobile .chart-actions {
    padding: 0 8px 8px;
}

body.mobile .data-table-area {
    max-height: 300px;
    padding: 0 8px 8px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

body.mobile .data-table-area th,
body.mobile .data-table-area td {
    padding: 4px 6px;
    font-size: 11px;
}

body.mobile .plot-btn {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
}

body.mobile .briefs-container {
    flex-direction: column;
    overflow: visible;
}

body.mobile .briefs-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    overflow: visible;
}

body.mobile .briefs-sidebar.mob-collapsed .brief-type-filters,
body.mobile .briefs-sidebar.mob-collapsed .metric-search,
body.mobile .briefs-sidebar.mob-collapsed .briefs-vert-filters {
    display: none;
}

body.mobile .briefs-sidebar h3 {
    font-size: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.mobile .briefs-sidebar h3::after {
    content: '▾';
    font-size: 14px;
    color: var(--text-muted);
}

body.mobile .briefs-sidebar.mob-collapsed h3::after {
    content: '▸';
}

body.mobile .briefs-sidebar.mob-collapsed h3 {
    margin-bottom: 0;
}

body.mobile .briefs-main {
    padding: 10px;
    overflow: visible;
}

body.mobile .brief-card {
    padding: 10px;
}

body.mobile #tabBriefs .brief-card-header .vert-badge {
    width: auto;
    max-width: 75px;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.mobile #tabBriefs .brief-card-type {
    font-size: 9px;
}

body.mobile #tabBriefs .brief-card-date {
    width: auto;
    font-size: 10px;
}

body.mobile .brief-detail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 56px;
    width: 100%;
    z-index: 250;
    border-left: none;
    border-radius: 0;
    padding: 14px;
    padding-top: 48px;
}

body.mobile .brief-detail.hidden {
    display: none;
}

body.mobile .brief-detail-header {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 260;
}

body.mobile .pagination {
    flex-wrap: wrap;
    padding: 8px 0;
}

body.mobile .page-btn {
    padding: 6px 10px;
    font-size: 12px;
}

body.mobile .users-container {
    padding: 12px 10px;
}

body.mobile .users-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

body.mobile .users-header h2 {
    font-size: 16px;
}

body.mobile #usersTableWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 0 10px;
}

body.mobile .users-table {
    font-size: 11px;
    min-width: 640px;
}

body.mobile .users-table th,
body.mobile .users-table td {
    padding: 8px 6px;
    font-size: 11px;
    white-space: nowrap;
}

body.mobile .modal {
    padding-bottom: 56px;
}

body.mobile .modal-content {
    width: 94%;
    max-width: none;
    max-height: 85vh;
    max-height: 85dvh;
    padding: 16px;
    border-radius: 10px;
}

body.mobile .modal-header h2 {
    font-size: 16px;
    padding-right: 36px;
}

body.mobile .modal-body {
    font-size: 13px;
    line-height: 1.6;
}

body.mobile .brief-body {
    font-size: 13px;
    line-height: 1.6;
}

body.mobile .login-container {
    padding: 32px 24px;
    width: 100%;
    max-width: 92vw;
    border-radius: 12px;
}

body.mobile .login-container .logo h1 {
    font-size: 22px;
}

body.mobile .login-container .logo p {
    font-size: 12px;
}

body.mobile .search-dropdown {
    display: none !important;
}

body.mobile .polymarket-card {
    padding: 10px;
}

body.mobile .odds-bar {
    height: 28px;
}

body.mobile .infra-detail-row {
    flex-direction: column;
    gap: 2px;
}

body.mobile .infra-value {
    text-align: left;
    max-width: 100%;
}

body.mobile .briefs-vert-filters {
    gap: 4px;
}

body.mobile .vert-filter-btn {
    padding: 3px 8px;
    font-size: 10px;
}

body.mobile .type-filter-btn {
    padding: 5px 10px;
    font-size: 11px;
}

body.mobile .user-form-toggles {
    flex-direction: column;
    gap: 10px;
}

body.mobile .country-hover-popup .maplibregl-popup-content {
    font-size: 12px !important;
    padding: 8px 10px !important;
}

body.mobile .pipeline-popup .maplibregl-popup-content {
    max-width: 260px !important;
}

body.mobile .brief-countries {
    gap: 3px;
}

body.mobile .country-tag {
    padding: 2px 8px;
    font-size: 10px;
}

body.mobile .selected-chip {
    font-size: 10px;
    padding: 2px 6px;
}

body.mobile .metric-search {
    font-size: 14px;
    padding: 10px 12px;
}

body.mobile .metrics-list-item {
    padding: 8px;
    font-size: 12px;
}

body.mobile .filter-btn {
    padding: 5px 10px;
    font-size: 11px;
}

body.mobile #tabCalendar {
    overflow: visible;
    padding: 0;
}

body.mobile .cal-header {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

body.mobile .cal-header h2 {
    font-size: 16px;
}

body.mobile .cal-subtitle {
    font-size: 11px;
}

body.mobile .cal-controls {
    flex-wrap: wrap;
    gap: 6px;
}

body.mobile .cal-export-btn {
    font-size: 11px;
    padding: 5px 10px;
}

body.mobile .cal-event-card {
    padding: 10px;
}

body.mobile .cal-event-title {
    font-size: 13px;
}

body.mobile .cal-event-date {
    font-size: 11px;
}

body.mobile .cal-event-desc {
    font-size: 12px;
}

body.mobile .cal-month-grid {
    font-size: 11px;
}

body.mobile #tabQa {
    overflow: visible;
    padding: 0;
}

body.mobile .qa-container {
    padding: 12px;
}

body.mobile .qa-header h2 {
    font-size: 16px;
}

body.mobile .qa-form textarea {
    font-size: 14px;
}

body.mobile .qa-card {
    padding: 10px;
}

body.mobile #tabIntel {
    overflow: visible;
    padding: 0;
}

body.mobile .intel-admin-container {
    padding: 12px;
}

body.mobile .intel-admin-container h2 {
    font-size: 16px;
}

body.mobile .intel-section-title {
    font-size: 14px;
}

body.mobile .intel-admin-table {
    font-size: 11px;
    min-width: 600px;
}

body.mobile .intel-admin-table th,
body.mobile .intel-admin-table td {
    padding: 6px;
    font-size: 11px;
}

body.mobile .intel-table-wrap,
body.mobile .kv-table-wrap,
body.mobile .qa-admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.mobile .intel-modal-overlay .intel-modal {
    width: 94%;
    max-width: none;
    max-height: 85vh;
    max-height: 85dvh;
    padding: 16px;
}

body.mobile .intel-modal-overlay .intel-modal-box {
    width: 94%;
    max-width: none;
    max-height: 85vh;
    max-height: 85dvh;
    padding: 16px;
}

body.mobile .intel-modal-box textarea {
    font-size: 14px;
}

body.mobile .intel-modal-box .intel-form-label {
    font-size: 12px;
}

body.mobile .intel-modal-box .intel-submit-btn {
    min-height: 40px;
    font-size: 14px;
}

body.mobile #tabRisks {
    overflow: visible;
    padding: 0;
}

body.mobile .risks-container {
    padding: 14px 12px;
}

body.mobile .risks-header {
    margin-bottom: 14px;
}

body.mobile .risks-header h2 {
    font-size: 18px;
}

body.mobile .risks-subtitle {
    font-size: 12px;
}

body.mobile .risks-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

body.mobile .risks-section {
    padding: 12px;
    border-radius: 8px;
}

body.mobile .risks-section-title {
    font-size: 13px;
    margin-bottom: 10px;
}

body.mobile .risks-search {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
}

body.mobile .risks-list {
    max-height: none;
    overflow-y: visible;
}

body.mobile .risks-intel-card {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

body.mobile .risks-trend-card {
    padding: 10px;
    flex-wrap: wrap;
    gap: 4px;
}

body.mobile .risks-trend-country {
    font-size: 13px;
}

body.mobile .risks-trend-level {
    font-size: 11px;
}

body.mobile .risks-trend-date {
    font-size: 10px;
}

body.mobile .intel-panel-title {
    font-size: 13px;
}

body.mobile .intel-panel-badge {
    font-size: 9px;
}

body.mobile .intel-panel-country {
    font-size: 9px;
}

body.mobile .intel-panel-date {
    font-size: 9px;
}

body.mobile .intel-mark-all-read {
    font-size: 10px;
    padding: 3px 8px;
}

body.mobile .mob-tab-locked {
    opacity: 0.35;
    pointer-events: none;
}

body.mobile .polymarket-card {
    margin-bottom: 10px;
}

body.mobile .qa-published-controls {
    flex-direction: column;
    gap: 6px;
}

body.mobile .qa-published-search {
    width: 100%;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
}

body.mobile .qa-published-sort {
    width: 100%;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
}

body.mobile .qa-pagination {
    gap: 6px;
    margin-top: 14px;
}

body.mobile .qa-pagination button {
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 8px;
    min-height: 40px;
}

body.mobile .qa-pagination .qa-page-info {
    font-size: 12px;
}

body.mobile .qa-answer-block {
    padding: 10px;
    margin-top: 8px;
}

body.mobile .qa-answer-text {
    font-size: 13px;
    line-height: 1.5;
}

body.mobile .qa-answer-label {
    font-size: 11px;
}

body.mobile .qa-answer-meta {
    font-size: 11px;
}

body.mobile .qa-question-text {
    font-size: 14px;
}

body.mobile .qa-section-title {
    font-size: 15px;
}

body.mobile .overlay-title-row {
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

body.mobile .overlay-admin-btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    min-height: 32px;
}

body.mobile .kv-inline-edit,
body.mobile .intel-inline-edit {
    font-size: 16px;
    padding: 4px 8px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.mobile .risk-trend-clickable {
    padding: 4px 8px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

body.mobile .risk-edit-modal {
    width: 92vw !important;
    max-width: 92vw !important;
}

body.mobile .risk-edit-header {
    padding: 12px 14px;
    font-size: 15px;
}

body.mobile .risk-edit-body {
    padding: 14px;
}

body.mobile .risk-edit-footer {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
}

body.mobile .risk-edit-footer button {
    min-height: 40px;
    font-size: 14px;
}

body.mobile .risk-edit-label {
    font-size: 12px;
}

body.mobile .kv-edit-textarea {
    font-size: 14px;
    padding: 12px;
}

body.mobile .kv-edit-input {
    font-size: 14px;
    padding: 10px 12px;
    min-height: 40px;
}

body.mobile .risk-scale-btn {
    min-width: 32px;
    min-height: 36px;
    font-size: 14px;
}

body.mobile .risk-trend-btn {
    min-height: 36px;
    font-size: 13px;
    padding: 6px 12px;
}

body.mobile .risk-edit-section[style*="flex"] {
    flex-direction: column;
    gap: 10px !important;
}

body.mobile .risk-edit-section[style*="flex"] > div[style*="width:100px"] {
    width: 100% !important;
}

body.mobile .legend-risk-filter {
    padding: 4px 6px;
    min-height: 28px;
    display: flex;
    align-items: center;
}

body.mobile .tts-btn {
    padding: 6px 10px;
    font-size: 11px;
}

body.mobile .modal-header > div {
    flex-shrink: 0;
}

body.mobile .theme-picker {
    gap: 6px;
}

body.mobile .theme-option {
    padding: 6px 8px;
    min-width: 64px;
}

body.mobile .theme-option-label {
    font-size: 9px;
}

body.mobile .theme-swatch span {
    width: 10px;
}

body.mobile #userSettingsModal .modal-box {
    max-width: 95vw;
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
}
