Files
Skald-Circle/web/css/mobile.css
T
dguiducci 79a62c0b93
Nightly Build / build (push) Successful in 6m28s
Add update.sh, release-channel tagging, mobile settings page
install.sh / install-nightly.sh:
  - Write .release-channel file ('release' or 'nightly') for future updates
  - install.sh also writes .release-version (for update --check)

update.sh (new):
  - Reads .release-channel to determine which channel to pull from
  - Release: checks releases/LATEST vs .release-version, skips if current
  - Nightly: always downloads latest
  - Stops service before extraction, restarts after
  - Rebuilds Python venv on update

ci/package.sh:
  - Include update.sh in distribution tarball

Web / mobile:
  - Add settings-page component for mobile
  - Wire settings page into mobile-app navigation
  - Chat page: load current user (/api/auth/me) for sender identity
  - Full mobile.css redesign
  - i18n: add mobile settings strings (en/fr/it)
2026-07-20 22:31:41 +01:00

1007 lines
25 KiB
CSS

/* ── Mobile theme — warm "paper" palette, aligned with the desktop ───────────
Consumes the shared design tokens from variables.css (loaded first):
--accent*, --radius-*, --card-*, --sidebar-*, --msg-*, --placeholder-color
and the --bs-* overrides all flip with [data-bs-theme]. Only mobile-specific
derivations are declared here. */
:root {
--mobile-nav-height: 64px;
--mobile-chat-size: 58px;
--mobile-bg: var(--bs-body-bg);
--mobile-text: var(--sidebar-brand-color);
--mobile-text-soft: var(--sidebar-text);
--mobile-nav-color: var(--placeholder-color);
--mobile-nav-active: var(--accent);
/* Raised surfaces (nav bar, section headers) — the warm cream the desktop
uses for its sidebar. */
--mobile-chrome-bg: var(--sidebar-bg);
--mobile-chrome-border: var(--sidebar-divider);
/* Grouped-list well + cards. */
--mobile-list-bg: var(--bs-body-bg);
--mobile-card-bg: var(--card-bg);
--mobile-card-border: var(--card-border);
--mobile-card-shadow: var(--card-shadow);
/* Chat surfaces. */
--mobile-bubble-bg: var(--msg-assistant-bg);
--mobile-bubble-text: var(--msg-assistant-text);
/* Semantic actions. */
--mobile-ok: #3d9a63;
--mobile-danger: #c94a3c;
}
[data-bs-theme="dark"] {
--mobile-ok: #4db87a;
--mobile-danger: #e8836f;
}
body {
background: var(--mobile-bg);
color: var(--mobile-text);
color-scheme: light dark;
}
/* Account for iOS status bar overlay (black-translucent) */
#mobile-root {
padding-top: env(safe-area-inset-top);
}
/* Native shell (?native=true): the HTML bottom nav is hidden and the native
chrome owns the status bar + tab bar, so drop the web-side safe-area insets it
would otherwise double-apply. */
mobile-app[data-native] #mobile-root { padding-top: 0; }
mobile-app[data-native] .chat-page-input-area { padding-bottom: 10px; }
#mobile-root {
display: flex;
flex-direction: column;
height: 100%;
height: 100dvh;
}
.mobile-content {
flex: 1;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
/* ── Section header ───────────────────────────────────────────────────────── */
.mobile-section-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 13px 16px;
background: var(--mobile-chrome-bg);
border-bottom: 1px solid var(--mobile-chrome-border);
flex-shrink: 0;
}
.mobile-section-title {
font-size: 1.12rem;
font-weight: 700;
letter-spacing: -0.01em;
color: var(--mobile-text);
display: flex;
align-items: center;
gap: 9px;
min-width: 0;
}
.mobile-section-title > i {
color: var(--accent);
font-size: 1.05rem;
}
.mobile-alert-error {
margin: 12px 16px;
padding: 10px 14px;
background: rgba(var(--accent-rgb), 0.1);
color: var(--mobile-danger);
border: 1px solid rgba(var(--accent-rgb), 0.25);
border-radius: var(--radius-md);
font-size: 0.85rem;
}
/* Round ghost button in section headers (refresh, back, actions). */
.inbox-refresh-btn,
.chat-page-back {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
padding: 0;
border: 1px solid var(--mobile-card-border);
border-radius: 50%;
background: var(--mobile-card-bg);
color: var(--mobile-text-soft);
font-size: 1rem;
cursor: pointer;
box-shadow: var(--mobile-card-shadow);
-webkit-tap-highlight-color: transparent;
transition: transform 0.12s, color 0.12s, border-color 0.12s;
}
.inbox-refresh-btn:active,
.chat-page-back:active {
transform: scale(0.92);
color: var(--accent);
border-color: var(--accent);
}
.chat-page-back { font-size: 1.1rem; }
/* ── Empty states ─────────────────────────────────────────────────────────── */
.mobile-inbox .inbox-empty,
.mobile-projects .inbox-empty {
flex: 1;
height: auto;
padding: 40px 20px;
background: transparent;
color: var(--mobile-text-soft);
}
.inbox-empty i {
display: inline-flex;
align-items: center;
justify-content: center;
width: 72px;
height: 72px;
border-radius: 22px;
background: var(--accent-soft);
color: var(--accent);
font-size: 1.9rem;
opacity: 1;
margin-bottom: 14px;
}
.inbox-empty p {
font-size: 0.92rem;
font-weight: 500;
}
/* ── Inbox ────────────────────────────────────────────────────────────────── */
.mobile-inbox {
display: flex;
flex-direction: column;
height: 100%;
}
.mobile-inbox-list {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
background: var(--mobile-list-bg);
display: flex;
flex-direction: column;
gap: 12px;
}
.inbox-section-label {
font-size: 0.74rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.07em;
color: var(--mobile-nav-color);
display: flex;
align-items: center;
gap: 8px;
margin-top: 6px;
}
/* Warm badges inside the mobile inbox (Bootstrap defaults are too cold). */
.mobile-inbox .badge.bg-warning {
background: rgba(217, 158, 46, 0.16) !important;
color: #a5720f;
}
.mobile-inbox .badge.bg-info {
background: rgba(var(--accent-rgb), 0.12) !important;
color: var(--accent);
}
.mobile-inbox .badge.bg-danger {
background: var(--accent) !important;
}
[data-bs-theme="dark"] .mobile-inbox .badge.bg-warning {
background: rgba(234, 179, 8, 0.18) !important;
color: #e8b93e;
}
/* Inbox cards on mobile: radius from the shared scale, warm surface. */
.mobile-inbox .inbox-card {
border-radius: var(--radius-lg);
background: var(--mobile-card-bg);
border-color: var(--mobile-card-border);
box-shadow: var(--mobile-card-shadow);
}
.mobile-inbox .inbox-card-header,
.mobile-inbox .inbox-card-footer {
background: var(--bs-tertiary-bg);
}
.mobile-inbox .approval-card { border-left: 4px solid #d99e2e; }
.mobile-inbox .clarification-card { border-left: 4px solid var(--accent); }
/* ── Inbox footer buttons ─────────────────────────────────────────────────── */
.inbox-btn {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 12px;
font-size: 0.92rem;
font-weight: 600;
border-radius: var(--radius-md);
border: none;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: transform 0.12s, filter 0.12s;
}
.inbox-btn:active { transform: scale(0.97); }
.inbox-btn-approve {
background: var(--mobile-ok);
color: #fff;
}
.inbox-btn-reject {
background: transparent;
color: var(--mobile-danger);
border: 1.5px solid var(--mobile-danger);
}
/* Clarification answer send button + chips: warm accent instead of cold cyan. */
.mobile-inbox .inbox-answer-send {
background: var(--accent);
color: #fff;
border-radius: var(--radius-md);
}
.mobile-inbox .inbox-chip:hover,
.mobile-inbox .inbox-chip:active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.mobile-inbox .inbox-answer-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-ring);
}
/* ── Coming soon ──────────────────────────────────────────────────────────── */
.mobile-coming-soon {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
height: 100%;
color: var(--mobile-text-soft);
}
.mobile-coming-soon i {
display: inline-flex;
align-items: center;
justify-content: center;
width: 72px;
height: 72px;
border-radius: 22px;
background: var(--accent-soft);
color: var(--accent);
font-size: 1.9rem;
}
.mobile-coming-soon p {
margin: 0;
font-size: 0.95rem;
font-weight: 500;
}
/* ── Bottom nav ───────────────────────────────────────────────────────────── */
.mobile-nav {
display: flex;
align-items: stretch;
justify-content: space-around;
height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
background: var(--mobile-chrome-bg);
border-top: 1px solid var(--mobile-chrome-border);
padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
position: relative;
z-index: 100;
}
.mobile-nav-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
flex: 1;
cursor: pointer;
color: var(--mobile-nav-color);
font-size: 0.62rem;
font-weight: 600;
letter-spacing: 0.01em;
user-select: none;
-webkit-tap-highlight-color: transparent;
transition: color 0.15s;
}
.mobile-nav-item .nav-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 46px;
height: 28px;
border-radius: 999px;
transition: background 0.18s, color 0.18s;
}
.mobile-nav-item i {
font-size: 1.25rem;
line-height: 1;
}
.mobile-nav-item.active {
color: var(--mobile-nav-active);
}
.mobile-nav-item.active .nav-icon {
background: var(--accent-soft);
}
/* ── Center chat FAB ──────────────────────────────────────────────────────── */
.mobile-nav-item.chat-btn {
position: relative;
top: -18px;
flex: 1.15;
}
.chat-fab {
width: var(--mobile-chat-size);
height: var(--mobile-chat-size);
border-radius: 50%;
background: linear-gradient(135deg, var(--accent), var(--accent-hover));
display: flex;
align-items: center;
justify-content: center;
border: 3px solid var(--mobile-bg);
box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.4);
transition: transform 0.15s, box-shadow 0.15s;
}
.chat-fab i {
font-size: 1.45rem;
color: #fff !important;
}
.mobile-nav-item.chat-btn .nav-icon {
width: auto;
height: auto;
background: none !important;
}
.mobile-nav-item.chat-btn.active .chat-fab {
transform: scale(1.07);
box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.55);
}
.mobile-nav-item.chat-btn span {
margin-top: 4px;
color: var(--mobile-nav-color);
}
.mobile-nav-item.chat-btn.active span {
color: var(--mobile-nav-active);
}
/* ── Chat page ────────────────────────────────────────────────────────────── */
.chat-page {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
background: var(--mobile-bg);
}
.chat-page-header-actions {
display: flex;
align-items: center;
gap: 8px;
}
/* Warm ghost style for the header action buttons (new session). */
.chat-page-header-actions .btn-outline-secondary,
.chat-page-attach-btn.btn-outline-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
padding: 0;
border: 1px solid var(--mobile-card-border);
border-radius: 50%;
background: var(--mobile-card-bg);
color: var(--mobile-text-soft);
box-shadow: var(--mobile-card-shadow);
}
.chat-page-header-actions .btn-outline-secondary:active,
.chat-page-attach-btn.btn-outline-secondary:active {
color: var(--accent);
border-color: var(--accent);
transform: scale(0.92);
}
.chat-page-messages {
flex: 1;
min-height: 0;
overflow-y: auto;
/* Clip horizontally: wide content (code blocks, tables, diffs) scrolls inside
its own bubble box, so the message list itself never pans sideways. Without
this, `overflow-y: auto` makes the unset x-axis compute to `auto` too. */
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
padding: 14px 14px;
display: flex;
flex-direction: column;
gap: 8px;
}
/* Wider bubbles on narrow screens */
.chat-page .copilot-msg {
max-width: 88%;
/* Allow the bubble to shrink below its content's intrinsic width so inner
scroll containers (code/diff/table) collapse and scroll internally instead
of widening the bubble past the viewport. */
min-width: 0;
font-size: 0.95rem;
border-radius: 1.15rem;
}
.chat-page .copilot-msg.assistant {
background: var(--mobile-bubble-bg);
color: var(--mobile-bubble-text);
border-bottom-left-radius: 0.25rem;
}
.chat-page .copilot-msg.user {
border-bottom-right-radius: 0.25rem;
}
/* ── Chat hero (empty state) ──────────────────────────────────────────────── */
.chat-page-hero {
margin: auto;
width: 100%;
max-width: 420px;
padding: 2rem 0.75rem;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.chat-page-hero-logo {
width: 84px;
height: 84px;
border-radius: 24px;
box-shadow: var(--mobile-card-shadow);
}
.chat-page-hero-title {
font-size: 1.45rem;
font-weight: 700;
letter-spacing: -0.01em;
color: var(--mobile-text);
margin: 1rem 0 0.25rem;
}
.chat-page-hero-sub {
color: var(--mobile-nav-color);
font-size: 0.95rem;
margin: 0 0 1.5rem;
}
.chat-page-suggestions {
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
text-align: left;
}
.chat-page-suggestion {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
border: 1px solid var(--mobile-card-border);
background: var(--mobile-card-bg);
color: var(--mobile-text);
border-radius: var(--radius-lg);
padding: 12px 14px;
font-size: 0.92rem;
font-weight: 500;
cursor: pointer;
box-shadow: var(--mobile-card-shadow);
-webkit-tap-highlight-color: transparent;
transition: border-color 0.15s, transform 0.12s;
}
.chat-page-suggestion i {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: 10px;
background: var(--accent-soft);
color: var(--accent);
font-size: 0.95rem;
flex-shrink: 0;
}
.chat-page-suggestion:active {
border-color: var(--accent);
transform: scale(0.98);
}
/* ── Composer ─────────────────────────────────────────────────────────────── */
.chat-page-input-area {
padding: 10px 12px;
padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
border-top: 1px solid var(--mobile-chrome-border);
background: var(--mobile-chrome-bg);
flex-shrink: 0;
}
/* Unified composer: a single card wrapping the textarea and the toolbar below
it, mirroring the desktop copilot (.copilot-composer). */
.chat-page-composer {
display: flex;
flex-direction: column;
border: 1px solid var(--mobile-card-border);
border-radius: var(--radius-lg);
background: var(--mobile-card-bg);
box-shadow: var(--mobile-card-shadow);
transition: border-color 0.15s, box-shadow 0.15s;
}
.chat-page-composer:focus-within {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-ring);
}
.chat-page-textarea {
display: block;
width: 100%;
box-sizing: border-box;
resize: none;
border: none;
outline: none;
background: transparent;
color: var(--mobile-text);
font-size: 1rem;
line-height: 1.45;
padding: 13px 14px 6px;
min-height: 46px;
max-height: 120px;
overflow-y: auto;
}
.chat-page-textarea::placeholder {
color: var(--placeholder-color);
}
/* ── Composer toolbar (below the textarea) ────────────────────────────────── */
.chat-page-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.4rem;
padding: 6px 8px;
}
.chat-page-toolbar-left,
.chat-page-toolbar-right {
display: flex;
align-items: center;
gap: 6px;
}
/* Model selector — a native <select> styled as a warm pill, opening the
OS-native picker for the best touch ergonomics. */
.chat-page-model-pill {
appearance: none;
-webkit-appearance: none;
max-width: 150px;
padding: 6px 26px 6px 12px;
border: 1px solid var(--mobile-card-border);
border-radius: 999px;
background-color: var(--bs-tertiary-bg);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%23a89a85'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 9px center;
font-size: 0.78rem;
font-weight: 600;
color: var(--mobile-text-soft);
cursor: pointer;
}
.chat-page-model-pill:focus,
.chat-page-model-pill:hover {
border-color: var(--accent);
}
/* ── Mic + send buttons ───────────────────────────────────────────────────── */
.chat-page-mic-btn,
.chat-page-send {
width: 40px;
height: 40px;
border: none;
border-radius: 50%;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 1rem;
color: #fff;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: transform 0.12s, filter 0.12s;
}
.chat-page-mic-btn {
background: var(--accent);
}
.chat-page-send {
background: var(--accent);
}
.chat-page-mic-btn:active,
.chat-page-send:active { transform: scale(0.92); }
.chat-page-send:disabled {
opacity: 0.5;
}
.chat-page-send--stop {
background: var(--mobile-danger);
}
.chat-page-mic-btn--recording {
background: var(--mobile-danger);
animation: chat-page-pulse 1s ease-in-out infinite;
}
@keyframes chat-page-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.65; }
}
/* MCP dropdown opens upward on mobile */
.chat-page-gear-dropdown {
bottom: 100%;
top: auto;
margin-bottom: 6px;
}
/* ── Projects ─────────────────────────────────────────────────────────────── */
.mobile-projects {
display: flex;
flex-direction: column;
height: 100%;
}
.mobile-projects-list {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
background: var(--mobile-list-bg);
display: flex;
flex-direction: column;
gap: 12px;
}
.project-card {
display: flex;
align-items: center;
gap: 14px;
padding: 14px;
border: 1px solid var(--mobile-card-border);
border-radius: var(--radius-lg);
background: var(--mobile-card-bg);
box-shadow: var(--mobile-card-shadow);
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: transform 0.12s ease, border-color 0.12s, box-shadow 0.12s;
}
.project-card:active {
transform: scale(0.985);
border-color: var(--accent);
}
/* Rounded gradient "app icon" tile — the main visual anchor for each card. */
.project-card-icon {
flex-shrink: 0;
width: 46px;
height: 46px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
color: #fff;
background: linear-gradient(135deg, var(--accent), var(--accent-hover));
box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.35);
}
.project-card-main {
flex: 1;
min-width: 0;
}
.project-card-name {
font-size: 1rem;
font-weight: 650;
line-height: 1.25;
color: var(--mobile-text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.project-card-desc {
margin-top: 3px;
font-size: 0.82rem;
line-height: 1.35;
color: var(--mobile-text-soft);
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.project-card-chevron {
color: var(--mobile-nav-color);
font-size: 0.95rem;
flex-shrink: 0;
}
/* ── File viewer (mobile) ─────────────────────────────────────────────────── */
/* Full-height column: fixed header + scrollable body. The body content classes
(.fv-md / .fv-code / .fv-pdf / .fv-image-wrap / .fv-state / ...) come from the
shared css/file-viewer.css, loaded by mobile.html. */
.mobile-file-viewer {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
}
/* Let the title (and its filename child) shrink so the ellipsis kicks in. */
.mobile-file-viewer .mobile-section-title {
flex: 1 1 auto;
min-width: 0;
}
.mobile-file-viewer .fv-body {
flex: 1;
min-height: 0;
background: var(--mobile-bg);
}
/* Filename: monospace, single line with ellipsis, leaving room for the back
button. Full path is on the element's title attribute. */
.fv-mobile-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-size: 0.9rem;
font-weight: 500;
/* Ellipsise the start so a long filename keeps its tail (extension) visible;
`<bdi>` around the name preserves left-to-right order. */
direction: rtl;
text-align: left;
}
.mobile-file-viewer .fv-header-actions {
display: flex;
align-items: center;
gap: 8px;
}
/* ── Settings ─────────────────────────────────────────────────────────────── */
.mobile-settings {
display: flex;
flex-direction: column;
height: 100%;
}
.mobile-settings-scroll {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
background: var(--mobile-list-bg);
display: flex;
flex-direction: column;
gap: 16px;
}
.settings-card {
border: 1px solid var(--mobile-card-border);
border-radius: var(--radius-lg);
background: var(--mobile-card-bg);
box-shadow: var(--mobile-card-shadow);
overflow: hidden;
}
.settings-profile {
display: flex;
align-items: center;
gap: 14px;
padding: 16px;
}
.settings-avatar {
width: 52px;
height: 52px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.3rem;
font-weight: 700;
color: #fff;
flex-shrink: 0;
}
.settings-profile-name {
font-size: 1.05rem;
font-weight: 650;
color: var(--mobile-text);
line-height: 1.25;
}
.settings-profile-sub {
font-size: 0.82rem;
color: var(--mobile-text-soft);
margin-top: 2px;
}
.settings-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 13px 16px;
}
.settings-row + .settings-row {
border-top: 1px solid var(--mobile-card-border);
}
.settings-row-label {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.92rem;
font-weight: 500;
color: var(--mobile-text);
}
.settings-row-label i {
color: var(--accent);
font-size: 1rem;
}
/* Segmented theme control. */
.settings-segment {
display: flex;
border: 1px solid var(--mobile-card-border);
border-radius: 999px;
background: var(--bs-tertiary-bg);
padding: 3px;
gap: 2px;
}
.settings-segment button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 30px;
border: none;
border-radius: 999px;
background: transparent;
color: var(--mobile-text-soft);
font-size: 0.85rem;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: background 0.15s, color 0.15s;
}
.settings-segment button.active {
background: var(--accent);
color: #fff;
}
/* Language select — same pill language as the chat model selector. */
.settings-lang-select {
appearance: none;
-webkit-appearance: none;
padding: 6px 26px 6px 12px;
border: 1px solid var(--mobile-card-border);
border-radius: 999px;
background-color: var(--bs-tertiary-bg);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%23a89a85'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 9px center;
font-size: 0.82rem;
font-weight: 600;
color: var(--mobile-text-soft);
cursor: pointer;
}
.settings-logout {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 14px;
border: 1px solid rgba(var(--accent-rgb), 0.35);
border-radius: var(--radius-lg);
background: var(--mobile-card-bg);
color: var(--mobile-danger);
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
box-shadow: var(--mobile-card-shadow);
-webkit-tap-highlight-color: transparent;
transition: transform 0.12s;
}
.settings-logout:active { transform: scale(0.98); }
.settings-version {
text-align: center;
font-size: 0.75rem;
color: var(--mobile-nav-color);
}