.pwa-remember-device { display:flex; gap:8px; align-items:flex-start; color:rgba(255,255,255,.8); font-size:12px; line-height:1.5; margin:10px 0; }
.pwa-remember-device[hidden] { display:none; }
.pwa-remember-device small { display:block; color:rgba(255,255,255,.55); }
.pwa-remember-device input { width:18px; height:18px; margin-top:1px; accent-color:var(--ci-trust,#3186d9); }
.lcms-mobile-back[hidden] { display:none !important; }
.lcms-mobile-back { flex:none; border:0; background:transparent; color:inherit; width:40px; height:44px; font-size:32px; cursor:pointer; }
.pwa-sidebar-settings { width:100%; border:0; background:transparent; text-align:left; font:inherit; }
@media (min-width:761px) {
  #topbar .pwa-settings-button { width:auto;flex:none;height:26px;padding:2px 8px;white-space:nowrap;font-family:inherit;font-size:11px;font-weight:500;line-height:1.4;color:rgba(255,255,255,.8);background:transparent;border:1px solid rgba(255,255,255,.15);border-radius:5px;cursor:pointer; }
  #topbar .pwa-settings-button:hover { background:rgba(255,255,255,.08);color:#fff; }
}
@media (max-width:760px) {
  html.lcms-phone body { min-height:100dvh; }
  html.lcms-phone #topbar { padding-top:env(safe-area-inset-top,0px); min-height:calc(56px + env(safe-area-inset-top,0px)); height:auto !important; }
  html.lcms-phone .main { padding-bottom:env(safe-area-inset-bottom,0px); }
  html.lcms-phone .drawer { width:min(100vw,520px); max-width:100vw; max-height:var(--lcms-viewport-height,100dvh); padding-bottom:env(safe-area-inset-bottom,0px); }
  html.lcms-phone .login-screen { min-height:var(--lcms-viewport-height,100dvh) !important; padding:calc(20px + env(safe-area-inset-top,0px)) 16px calc(20px + env(safe-area-inset-bottom,0px)); }
  html.lcms-phone input:not([type=checkbox]):not([type=radio]):not([type=file]),
  html.lcms-phone textarea,html.lcms-phone select { font-size:16px !important; }
  html.lcms-phone button,html.lcms-phone .btn-primary,html.lcms-phone .btn-ghost { touch-action:manipulation; }
  html.lcms-phone .login-card button,html.lcms-phone .drawer button { min-height:44px; }
  html.lcms-phone .pwa-settings-button { min-width:56px; min-height:40px; white-space:nowrap; font-size:11px; }
  html.lcms-phone input[type=file] { max-width:100%; }
  html.lcms-phone .aia-detail-modal { max-height:calc(var(--lcms-viewport-height,100dvh) - 24px); }
  html.lcms-phone .aia-table { min-width:0; width:100%; table-layout:auto; }
  html.lcms-phone .aia-table thead { display:none; }
  html.lcms-phone .aia-table td.aia-mobile-cell { padding:0; white-space:normal; }
  html.lcms-phone .aia-mobile-card { padding:12px; content-visibility:auto; contain-intrinsic-size:auto 250px; }
  html.lcms-phone .aia-mobile-card-head { display:flex; align-items:center; gap:12px; }
  html.lcms-phone .aia-mobile-select { display:flex; align-items:center; gap:8px; min-height:40px; }
  html.lcms-phone .aia-mobile-card h2 { margin:8px 0 4px; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
  html.lcms-phone .aia-mobile-part { margin:0; font-size:12px; color:var(--text3); overflow-wrap:anywhere; }
  html.lcms-phone .aia-mobile-card dl { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0; }
  html.lcms-phone .aia-mobile-card dt { font-size:11px; color:var(--text3); }
  html.lcms-phone .aia-mobile-card dd { margin:4px 0 0; font-size:14px; }
  html.lcms-phone .aia-mobile-note { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text2); font-size:12px; }
  html.lcms-phone .aia-mobile-card .aia-actions button { min-height:44px; min-width:88px; font-size:13px; }
  html.lcms-phone .al-photo-modal img { max-width:96vw; max-height:calc(var(--lcms-viewport-height,100dvh) - 64px); }
  html.lcms-phone body.lcms-material-mobile-active .mlm-heading,
  html.lcms-phone body.lcms-material-mobile-active .mqr-heading { height:calc(48px + env(safe-area-inset-top,0px)); min-height:calc(48px + env(safe-area-inset-top,0px)); flex-basis:calc(48px + env(safe-area-inset-top,0px)); padding-top:calc(2px + env(safe-area-inset-top,0px)) !important; }
}
/* Phone chrome uses one quiet header, contextual account settings and a primary
   navigation bar. The desktop tab workspace remains available on larger screens. */
.lcms-mobile-more,.lcms-mobile-bottom-nav { display:none; }
.lcms-account-dialog { display:none; }
@media (max-width:760px) {
  html.lcms-phone {
    --nav-h:calc(94px + env(safe-area-inset-top,0px));
    --lcms-bottom-h:calc(50px + env(safe-area-inset-bottom,0px));
    --phone-bg:#0a1220;--phone-surface:#111e30;--phone-line:#25354b;--phone-ink:#edf3fc;--phone-muted:#9aaec5;
    background:var(--phone-surface);
  }
  html.lcms-phone[data-theme="light"] { --phone-bg:#f3f6fa;--phone-surface:#fff;--phone-line:#e3e9f1;--phone-ink:#132b46;--phone-muted:#65788e; }
  html.lcms-phone body { background:var(--phone-bg); }
  html.lcms-phone #topbar {
    display:grid !important;grid-template-columns:44px minmax(0,1fr) auto !important;grid-template-rows:48px 40px;
    gap:0 4px !important;height:var(--nav-h) !important;min-height:var(--nav-h) !important;
    padding:calc(2px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 4px max(12px,env(safe-area-inset-left,0px)) !important;
    background:var(--phone-surface) !important;color:var(--phone-ink);border:0;border-bottom:1px solid var(--phone-line);
    box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transition:none;
  }
  html.lcms-phone #topbar > .lcms-mobile-back { grid-column:1;grid-row:1;width:44px;height:44px;padding:0;margin:0;color:var(--phone-ink);font-family:system-ui,sans-serif;position:static; }
  html.lcms-phone #topbar > .logo-group { grid-column:2;grid-row:1;min-width:0;max-width:100%;gap:8px !important;overflow:hidden; }
  html.lcms-phone #topbar .logo-group::before { content:'';width:32px;height:14px;flex:none;background:url('/brand/innospace-symbol-color.png') center/contain no-repeat; }
  html.lcms-phone #topbar .logo-group img,html.lcms-phone #topbar .logo-divider { display:none !important; }
  html.lcms-phone #topbar .logo-name { color:var(--phone-ink) !important;font:800 17px/1.2 system-ui,sans-serif !important;letter-spacing:.2px; }
  html.lcms-phone #topbar > .topbar-right { grid-column:3;grid-row:1;min-width:0;max-width:100%;gap:4px !important;position:static; }
  html.lcms-phone #topbar .topbar-right > div:has(#lang-select),
  html.lcms-phone #topbar .pwa-settings-button,html.lcms-phone #topbar #logout-btn,
  html.lcms-phone #topbar .d-day-chip,html.lcms-phone #topbar #theme-toggle { display:none !important; }
  html.lcms-phone #topbar .user-chip { padding:0 !important;gap:0;flex:none; }
  html.lcms-phone #topbar .topbar-icon-btn,html.lcms-phone #topbar .lcms-mobile-more {
    display:inline-flex;align-items:center;justify-content:center;width:44px !important;min-width:44px;height:44px !important;min-height:44px;
    padding:0 !important;color:var(--phone-ink);background:transparent;border:0;border-radius:12px;cursor:pointer;
  }
  html.lcms-phone #topbar .topbar-icon-btn svg { width:22px;height:22px; }
  html.lcms-phone #topbar button:focus-visible,html.lcms-phone .lcms-mobile-bottom-nav button:focus-visible { outline:2px solid #0083ca;outline-offset:-3px; }
  html.lcms-phone #topbar #project-selector { grid-column:1/-1;grid-row:2;min-width:0;width:100%;height:40px;max-height:40px;padding:0;margin:0;border:0;overflow:visible;background:var(--phone-bg);border-radius:10px; }
  html.lcms-phone #topbar #project-selector .project-selector-label,html.lcms-phone #topbar #proj-status-dot { display:none !important; }
  html.lcms-phone #topbar #project-select { width:100%;min-width:0;max-width:100% !important;height:40px !important;padding:0 34px 0 12px !important;border:0;background-color:transparent;color:var(--phone-ink);font-size:16px !important;font-weight:600;text-overflow:ellipsis;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2365788e' stroke-width='1.7'/%3E%3C/svg%3E");
  }
  html.lcms-phone #topbar #project-select option { background:var(--phone-surface);color:var(--phone-ink); }
  html.lcms-phone #topbar:has(> .lcms-mobile-back[hidden]) { grid-template-columns:minmax(0,1fr) auto !important; }
  html.lcms-phone #topbar:has(> .lcms-mobile-back[hidden]) > .logo-group { grid-column:1; }
  html.lcms-phone #topbar:has(> .lcms-mobile-back[hidden]) > .topbar-right { grid-column:2; }
  html.lcms-phone body.proj-collapsed { --nav-h:calc(54px + env(safe-area-inset-top,0px)) !important; }
  html.lcms-phone body.proj-collapsed #topbar { grid-template-rows:48px 0;padding-top:calc(2px + env(safe-area-inset-top,0px)) !important; }
  html.lcms-phone body.proj-collapsed #project-selector { overflow:hidden; }
  /* The bottom navigation owns the home-indicator inset. Keep the scrollable
     workspace flush with it instead of reserving the same space twice. */
  html.lcms-phone #layout { height:calc(100dvh - var(--nav-h) - var(--lcms-bottom-h));padding-bottom:0;transition:none;background:var(--phone-bg); }
  html.lcms-phone .tab-bar-wrap { display:none !important; }
  html.lcms-phone .main { padding:14px 14px 0 !important;background:var(--phone-bg); }
  html.lcms-phone .drawer:not(.open) { visibility:hidden;pointer-events:none; }
  html.lcms-phone .drawer.open { visibility:visible;pointer-events:auto; }
  html.lcms-phone .page-fixed-header { border-bottom-color:var(--phone-line); }
  html.lcms-phone .page-title,html.lcms-phone .page-fixed-header h2 { font-size:19px !important;letter-spacing:-.5px;line-height:1.4; }
  html.lcms-phone .page-favorite-btn { width:32px;height:32px;min-width:32px;padding:5px;border:0;background:transparent; }
  html.lcms-phone .sidebar { top:var(--nav-h);bottom:var(--lcms-bottom-h);width:min(310px,85vw) !important;border-radius:0 18px 18px 0; }
  html.lcms-phone .sidebar:not(.mobile-open) { visibility:hidden;pointer-events:none;box-shadow:none; }
  html.lcms-phone .sidebar.mobile-open { visibility:visible;pointer-events:auto;box-shadow:6px 0 32px rgba(9,26,46,.18); }
  html.lcms-phone .sidebar-overlay { bottom:var(--lcms-bottom-h);backdrop-filter:none;background:rgba(9,26,46,.35); }
  html.lcms-phone .lcms-mobile-bottom-nav {
    display:flex;align-items:stretch;position:fixed;z-index:310;left:0;right:0;bottom:0;height:var(--lcms-bottom-h);
    padding:2px max(8px,env(safe-area-inset-right,0px)) calc(2px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
    background:var(--phone-surface);border-top:1px solid var(--phone-line);box-shadow:none;
  }
  html.lcms-phone .lcms-mobile-bottom-nav[hidden] { display:none; }
  html.lcms-phone .lcms-mobile-bottom-nav button { flex:1;min-width:0;min-height:44px;border:0;border-radius:8px;background:transparent;color:var(--phone-muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-family:inherit;font-weight:600;font-size:11px;line-height:1.2;touch-action:manipulation; }
  html.lcms-phone .lcms-mobile-bottom-nav button[hidden] { display:none; }
  html.lcms-phone .lcms-mobile-bottom-nav button.is-active { color:var(--ci-trust);background:var(--blue-bg); }
  html.lcms-phone .lcms-mobile-bottom-nav button svg { width:20px;height:20px; }
  html.lcms-phone #lcms-pwa-notice,html.lcms-phone #lcms-pwa-entry {
    bottom:calc(var(--lcms-bottom-h) + 12px);right:16px;transform:none;
    width:calc(100vw - 32px);max-width:440px;padding:12px 14px;font-size:12px;line-height:1.5;
  }
  html.lcms-phone .lcms-account-dialog[open] { display:block;position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:85dvh;overflow:auto;padding:0 20px calc(20px + env(safe-area-inset-bottom,0px));border:0;border-radius:24px 24px 0 0;color:var(--phone-ink);background:var(--phone-surface);box-shadow:0 -8px 40px rgba(9,26,46,.18); }
  html.lcms-phone .lcms-account-dialog::backdrop { background:rgba(9,26,46,.4); }
  html.lcms-phone .lcms-account-head { display:flex;align-items:center;justify-content:space-between;padding:24px 0 16px;border-bottom:1px solid var(--phone-line); }
  html.lcms-phone .lcms-account-head p { color:var(--ci-trust);font-size:11px;font-weight:800;letter-spacing:1.5px;margin-bottom:4px; }
  html.lcms-phone .lcms-account-head h2 { font-size:20px;line-height:1.4; }
  html.lcms-phone .lcms-account-head button { width:44px;height:44px;border:0;background:var(--phone-bg);border-radius:50%;color:var(--phone-muted);font-size:26px; }
  html.lcms-phone .lcms-account-actions { padding-top:8px;display:grid; }
  html.lcms-phone .lcms-account-actions button,html.lcms-phone .lcms-account-actions label { display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;padding:8px 0;border:0;border-bottom:1px solid var(--phone-line);background:transparent;color:var(--phone-ink);font-family:inherit;font-weight:600;font-size:15px;line-height:1.5;text-align:left; }
  html.lcms-phone .lcms-account-actions button span { color:var(--phone-muted);font-size:23px; }
  html.lcms-phone .lcms-account-actions select { width:120px;height:40px;padding:0 10px;border:1px solid var(--phone-line);border-radius:8px;background:var(--phone-bg);color:var(--phone-ink); }
  html.lcms-phone .lcms-account-actions button.lcms-account-logout { color:var(--red);margin-top:8px;border:0; }
  html.lcms-phone.lcms-keyboard-open { --lcms-bottom-h:0px; }
  html.lcms-phone.lcms-keyboard-open .lcms-mobile-bottom-nav,
  html.lcms-phone body.auth-mode .lcms-mobile-bottom-nav,
  html.lcms-phone body.auth-mode #topbar,
  html.lcms-phone body.lcms-material-mobile-active #topbar,
  html.lcms-phone body.lcms-material-mobile-active .lcms-mobile-bottom-nav { display:none !important; }
}
@media print { .lcms-mobile-bottom-nav,.lcms-mobile-more,.lcms-account-dialog { display:none !important; } }
