.nova-mobile-nav,
.nova-mobile-model { display: none; }

@media (max-width: 700px) {
  :root {
    --mobile-bg: var(--bg);
    --mobile-header: var(--panel);
    --mobile-nav: var(--panel);
    --mobile-raised: var(--panel2);
    --mobile-composer: var(--composer, var(--panel));
    --mobile-composer-line: var(--line);
    --mobile-sheet: var(--panel);
    --mobile-sheet-line: var(--line);
    --mobile-row: var(--panel2);
    --mobile-field: var(--bg);
    --mobile-placeholder: var(--muted);
  }
  :root:not([data-theme="light"]) {
    --bg: #07111f;
    --panel: #0e1d30;
    --panel2: #14283e;
    --line: #28435d;
    --ink: #edf5ff;
    --muted: #93a9bf;
    --cyan: #72e6fb;
    --violet: #a18bff;
    --green: #8ae8b5;
    --mobile-bg: #07111f;
    --mobile-header: #0a1829;
    --mobile-nav: #0b1829;
    --mobile-raised: #14283e;
    --mobile-composer: #0c1c2e;
    --mobile-composer-line: #43708d;
    --mobile-sheet: linear-gradient(145deg, #112238, #0b192b);
    --mobile-sheet-line: #35516d;
    --mobile-row: #11263c;
    --mobile-field: #081627;
    --mobile-placeholder: #7f97af;
  }
  html, body {
    width: 100%;
    height: 100%;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none;
  }
  body {
    background: var(--mobile-bg) !important;
    color: var(--ink);
    font: 14px Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  body::before, body::after { display: none !important; }
  *, *::before, *::after { box-sizing: border-box; }
  button, input, textarea, select { font-family: inherit; }
  button:focus-visible, a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
  }
  .shell {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    height: calc(100dvh - 70px - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--mobile-bg) !important;
    box-shadow: none !important;
    overflow: hidden;
  }
  .topbar {
    position: relative !important;
    display: flex !important;
    flex: none !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px !important;
    width: 100%;
    height: calc(66px + env(safe-area-inset-top)) !important;
    min-height: calc(66px + env(safe-area-inset-top)) !important;
    padding: max(10px, env(safe-area-inset-top)) 14px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: var(--mobile-header) !important;
    box-shadow: none !important;
    z-index: 2;
  }
  .topbar .brand {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    order: 0;
    gap: 7px !important;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--ink) !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .13em;
  }
  .topbar .brand img, .topbar .brand .mark {
    display: block !important;
    width: 29px !important;
    height: 29px !important;
    min-width: 29px;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
  }
  .topbar .brand .mark {
    font-size: 0 !important;
    background: url("./assets/nova-favicon.svg") center / contain no-repeat !important;
  }
  .topbar .mark::before, .topbar .mark::after,
  .topbar .brand em, .topbar .top-status,
  .topbar .nova-space-switcher, .topbar .top-controls,
  .topbar .mobile-workspace-nav, .topbar .layout-reset-notice,
  .topbar .theme-label { display: none !important; }
  .topbar .top-actions {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    order: 2;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .topbar .icon, .topbar .theme-toggle,
  .nova-mobile-sheet > header button,
  dialog > header .icon, dialog form > header .icon,
  .settings-header > button {
    display: grid !important;
    place-items: center;
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0;
    padding: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: 50% !important;
    background: var(--mobile-raised) !important;
    color: var(--muted) !important;
    box-shadow: none !important;
  }
  .topbar svg, .nova-mobile-nav svg, .nova-mobile-sheet svg,
  .composer svg {
    display: block;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  button svg { pointer-events: none; }
  .topbar .icon svg, .topbar .theme-toggle svg { width: 17px !important; height: 17px !important; }
  .nova-mobile-model {
    display: flex;
    align-items: center;
    order: 1;
    flex: 0 1 auto;
    gap: 6px;
    min-width: 0;
    max-width: 160px;
    margin: 0;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--mobile-raised);
    color: var(--ink);
    font-size: 11px;
    line-height: normal;
    box-shadow: none;
  }
  .nova-mobile-model span, .nova-mobile-model .mobile-label,
  .nova-mobile-model-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nova-mobile-model svg { width: 13px; height: 13px; color: var(--cyan); }
  .grid {
    display: flex !important;
    flex: 1 1 0 !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .grid > .rail, .grid > .inspector,
  .main .toolbar, .main .quick,
  .chat-panel-resize-handle, .composer-resize-handle { display: none !important; }
  .grid > .main {
    position: relative !important;
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--mobile-bg) !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  .grid > .main::before, .grid > .main::after { display: none !important; }
  .main .hero {
    position: relative !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }
  .orbit-adapted-frame {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    background: transparent;
    pointer-events: none;
  }
  .main .conversation {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 20px 15px !important;
    overflow: auto !important;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
  }
  .conversation pre { max-width: 100%; overflow: auto; }
  .conversation img, .conversation iframe { max-width: 100%; }
  .main .composer-dock {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .main #composer {
    position: relative;
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 12px 12px !important;
    padding: 12px !important;
    border: 1px solid var(--mobile-composer-line) !important;
    border-radius: 19px !important;
    background: var(--mobile-composer) !important;
    box-shadow: 0 0 20px #72e6fb08 !important;
  }
  #composer #task {
    display: block;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    background: none !important;
    color: var(--ink);
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    resize: none !important;
    overflow-y: auto;
  }
  #task::placeholder { color: var(--mobile-placeholder); }
  .main .composer-row {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px !important;
    min-height: 34px;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .composer-left, .composer-right { display: contents !important; }
  #composer #contextBtn, #composer #dictationBtn, #composer #run {
    display: grid !important;
    place-items: center;
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: 50% !important;
    background: var(--mobile-raised) !important;
    color: var(--muted) !important;
    box-shadow: none !important;
  }
  #composer #contextBtn { order: 0; }
  #composer #dictationBtn { order: 1; }
  #composer #run {
    order: 3;
    margin-left: auto !important;
    border: 0 !important;
    background: linear-gradient(135deg, #72e6fb, #a18bff) !important;
    color: #07111f !important;
  }
  #composer #contextBtn svg, #composer #dictationBtn svg { width: 17px !important; height: 17px !important; }
  #composer #run svg { width: 18px !important; height: 18px !important; }
  #composerAttachments { order: 4; flex: 1 0 100%; min-width: 0; max-width: 100%; }
  #composer #voiceModeBtn,
  .composer-hint, .composer-service { display: none !important; }
  #composer #skillBtn { display: flex !important; }
  #skillsPopover {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-height: min(65dvh, 520px);
    overflow: auto;
    z-index: 100 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 55px #0007 !important;
  }
  #skillsPopover .quick-skill-list { max-height: 40dvh; }
  .main .smart-progress { display: none !important; }
  .main .smart-progress-copy { display: none !important; }
  .main .smartTrack { height: 4px !important; margin: 0 !important; }
  .nova-mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 6px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--mobile-nav);
  }
  .nova-mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--muted);
    font-size: 9px;
    line-height: normal;
    box-shadow: none;
  }
  .nova-mobile-nav button:is(.active, [aria-current="page"], [aria-pressed="true"]) { color: var(--cyan); }
  .nova-mobile-nav svg { width: 19px; height: 19px; }
  .nova-mobile-nav .active svg { filter: drop-shadow(0 0 7px #72e6fb55); }

  .nova-mobile-sheet, dialog.dialog, dialog.workspace-dialog {
    position: fixed !important;
    inset: auto 0 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 86dvh !important;
    margin: auto auto 0 !important;
    padding: 0 !important;
    border: 1px solid var(--mobile-sheet-line) !important;
    border-bottom: 0 !important;
    border-radius: 25px 25px 0 0 !important;
    background: var(--mobile-sheet) !important;
    color: var(--ink) !important;
    box-shadow: 0 -20px 60px #0005 !important;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .nova-mobile-sheet[open] { display: flex; flex-direction: column; overflow: hidden; }
  .nova-mobile-sheet::backdrop, dialog.dialog::backdrop, dialog.workspace-dialog::backdrop {
    background: #020814b8;
    backdrop-filter: blur(6px);
  }
  .nova-mobile-sheet::before, dialog.dialog::before, dialog.workspace-dialog::before {
    content: "";
    display: block;
    flex: none;
    height: 4px;
    min-height: 4px;
    width: 34px;
    margin: 9px auto 0;
    border: 0;
    border-radius: 4px;
    background: #516b82;
  }
  .nova-mobile-sheet > .handle, .nova-mobile-sheet > .nova-mobile-sheet-handle { display: none; }
  .nova-mobile-sheet > header,
  dialog.dialog > header, dialog.dialog > form > header,
  dialog.workspace-dialog > header, #settings .settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    gap: 10px;
    margin: 0 !important;
    padding: 17px 18px 14px !important;
    border-bottom: 1px solid var(--line);
    background: transparent !important;
  }
  .nova-mobile-sheet h2, dialog.dialog header h2,
  dialog.workspace-dialog header h3, #settings .settings-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.2;
    letter-spacing: -.025em;
  }
  .nova-mobile-sheet > header small, #settings .settings-lead {
    display: block;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px !important;
    line-height: 1.5;
  }
  .nova-mobile-sheet > header button svg { width: 17px; height: 17px; }
  .nova-mobile-sheet-body {
    min-width: 0;
    min-height: 0;
    padding: 17px 18px calc(24px + env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
  }
  .nova-mobile-sheet-body p, dialog .muted, dialog .dialog-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
  }
  .nova-mobile-menu-item, .nova-mobile-model-list > button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0 0 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--mobile-row);
    color: var(--ink);
    text-align: left;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: none;
  }
  .nova-mobile-menu-item > svg { width: 19px; height: 19px; color: var(--cyan); }
  .nova-mobile-menu-item > span { flex: 1; min-width: 0; }
  .nova-mobile-menu-item strong { display: block; font-size: 12px; font-weight: 600; }
  .nova-mobile-menu-item small, .nova-mobile-model-list small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
  }
  .nova-mobile-menu-item > small { margin: 0; flex: 0 1 auto; }
  .nova-mobile-model-list > button:is(.selected, [aria-selected="true"]),
  .nova-mobile-menu-item:is(.selected, [aria-pressed="true"]) {
    border-color: var(--cyan);
    background: color-mix(in srgb, var(--mobile-row) 85%, var(--cyan));
  }
  .nova-mobile-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .nova-mobile-more-grid .nova-mobile-menu-item { flex-direction: column; align-items: flex-start; gap: 9px; margin: 0; padding: 17px 13px; border-radius: 13px; }
  .nova-mobile-sheet-body .workspace-panel {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .nova-mobile-sheet-body .panel-body { padding: 0 !important; overflow: visible !important; }
  .nova-mobile-sheet-body .panel-drag-handle,
  .nova-mobile-sheet-body .panel-reset,
  .nova-mobile-sheet-body .panel-resize-handle { display: none !important; }
  .nova-mobile-sheet-body #processPane { min-height: 0 !important; }
  .nova-mobile-sheet-body .sidebar-panel { width: 100%; padding: 0; }
  .nova-mobile-sheet-body .top-controls { display: flex; flex-wrap: wrap; gap: 13px; width: 100%; }
  .nova-mobile-sheet-body .top-controls label { display: block; width: 100%; }
  .nova-mobile-sheet-body .manual-model-slot {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .nova-mobile-sheet-body .manual-model-slot:not([hidden]) { display: block !important; }
  .nova-mobile-sheet-body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
  dialog.dialog :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea),
  dialog.workspace-dialog :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 11px 12px !important;
    border: 1px solid var(--mobile-sheet-line) !important;
    border-radius: 10px !important;
    background: var(--mobile-field) !important;
    color: var(--ink) !important;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: none;
  }
  .nova-mobile-sheet-body textarea, dialog textarea { min-height: 110px; resize: vertical; }
  .nova-mobile-sheet-body label, dialog .dialog-body > label,
  dialog.workspace-dialog > label, #settings .settings-content label:not(.setting-row) {
    display: block;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
  }
  .nova-mobile-sheet-body label > small { display: block; margin-bottom: 6px; }
  .nova-mobile-sheet-body .primary, .nova-mobile-sheet-body .secondary,
  dialog .primary, dialog .secondary, dialog .ghost, dialog .danger {
    min-width: 0;
    padding: 12px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
  }
  .nova-mobile-sheet-body .primary, dialog .primary {
    border: 0;
    background: linear-gradient(120deg, #72e6fb, #a8bdff);
    color: #081625;
  }
  .nova-mobile-sheet-body .secondary, dialog .secondary, dialog .ghost {
    border: 1px solid var(--line);
    background: var(--mobile-raised);
    color: var(--ink);
  }
  .nova-mobile-model-effort, .nova-mobile-effort { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 9px; }
  .nova-mobile-model-effort button, .nova-mobile-effort button {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--mobile-raised);
    color: var(--ink);
    font-size: 11px;
  }
  .nova-mobile-effort button[aria-pressed="true"], .nova-mobile-model-effort .selected { border-color: var(--cyan); color: var(--cyan); }
  :root:not([data-theme="light"]) #settings {
    --bg: #07111f;
    --panel: #0e1d30;
    --panel2: #14283e;
    --line: #28435d;
    --ink: #edf5ff;
    --muted: #93a9bf;
    --cyan: #72e6fb;
    --violet: #a18bff;
  }
  #settings .settings-shell {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
    background: transparent;
  }
  #settings .settings-nav {
    display: flex !important;
    flex-wrap: wrap;
    flex: none;
    gap: 6px;
    padding: 14px 18px 0 !important;
    border: 0;
    background: transparent;
  }
  #settings .settings-nav-caption, #settings .settings-header .eyebrow { display: none; }
  #settings .settings-nav button {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    gap: 6px;
    margin: 0;
    padding: 8px !important;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--mobile-raised);
    color: var(--muted);
    font-size: 11px !important;
  }
  #settings .settings-nav button.active { border-color: var(--cyan); color: var(--cyan); }
  #settings .settings-main { min-width: 0; min-height: 0; overflow: visible; background: transparent; }
  #settings .settings-content { padding: 17px 18px 24px !important; overflow: visible; }
  #settings .settings-content > section { min-width: 0; }
  #settings .setting-row { gap: 12px; }
  #settings .setting-actions, #settings .export-actions { gap: 8px; flex-wrap: wrap; }
  #settings .export-actions button { min-width: 0; flex-basis: 100%; }
  dialog .dialog-body { min-width: 0; padding: 17px 18px 24px !important; }
  dialog footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)) !important; }
  dialog footer > button { flex: 1 1 auto; }
  dialog.workspace-dialog > :is(p, label, textarea, #filesMount) { margin: 14px 18px; max-width: calc(100% - 36px) !important; }
  dialog.workspace-dialog > textarea { width: calc(100% - 36px) !important; }
  dialog.workspace-dialog > button { margin: 0 18px 12px; max-width: calc(100% - 36px); }
  dialog.workspace-dialog > header > button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--mobile-raised);
    color: var(--muted);
    font-size: 22px;
  }
  dialog :is(pre, .file-preview-content, .code-view-source) { max-width: 100%; overflow: auto; }
  dialog.preview .frame { height: 55dvh; min-height: 0; }
  .composer-popover, .plus-popover {
    max-width: calc(100vw - 48px) !important;
    max-height: 55dvh;
    overflow: auto;
  }
  .storage-alert { position: fixed; z-index: 50; top: 66px; left: 12px; right: 12px; max-width: calc(100% - 24px); }
  [hidden], .nova-mobile-sheet[hidden], dialog[hidden],
  .nova-mobile-sheet-body [hidden], .main [hidden], .topbar [hidden] { display: none !important; }
  dialog:not([open]) { display: none !important; }
}

.nova-mobile-logo,.nova-mobile-composer-note,.nova-mobile-idle{display:none}
@media(max-width:700px){
.topbar .brand .mark{display:none!important}.topbar .brand .nova-mobile-logo{display:block!important}
.topbar .top-controls{display:none!important}.topbar .top-actions{width:auto!important;min-width:0!important;max-width:76px!important}
.nova-mobile-model{flex:0 1 160px!important;min-width:90px!important}.topbar .brand{flex:0 0 auto!important}
.nova-mobile-idle{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:6px;color:var(--muted);font-size:10px}.nova-mobile-idle i{width:5px;height:5px;border-radius:50%;background:var(--green)}
.nova-mobile-composer-note{display:block;order:2;font-size:9px!important;color:var(--muted);margin:0 3px 0 auto!important}
.nova-mobile-pills{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.nova-mobile-pill{border:1px solid var(--line);border-radius:8px;background:var(--mobile-raised);padding:8px;font-size:11px;color:var(--ink)}.nova-mobile-pill.selected{border-color:var(--cyan);color:var(--cyan)}
.nova-mobile-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.nova-mobile-more-grid .nova-mobile-menu-item{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:17px 13px;margin:0;border-radius:13px}.nova-mobile-more-grid svg{color:var(--cyan)}
.nova-mobile-close span{display:none}.nova-mobile-close{width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--mobile-raised);color:var(--muted);display:grid;place-items:center}
.nova-mobile-search{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);margin-bottom:14px;font-size:12px}
.nova-mobile-primary{display:flex;width:100%;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:11px;font-size:12px;font-weight:600;background:linear-gradient(120deg,#72e6fb,#a8bdff);color:#081625}
.nova-mobile-primary svg{display:block;flex:0 0 16px;width:16px!important;height:16px!important;max-width:16px;max-height:16px}
.nova-mobile-primary>span{flex:0 1 auto;min-width:0;white-space:normal}
.nova-mobile-sheet-body>.nova-mobile-primary{min-height:42px;height:auto;border:0;line-height:1.4}
}

.nova-mobile-theme-icon{display:none}
@media(max-width:700px){
  .topbar .brand{height:29px!important;min-height:29px!important;line-height:normal!important}
  .nova-mobile-model{flex:0 1 auto!important;min-width:0!important}
  .topbar .theme-icon{display:none!important}
  .topbar .nova-mobile-theme-icon{display:block}
  .nova-mobile-theme-icon svg{width:17px!important;height:17px!important}
  #composer #task{display:inline-block!important;font-family:inherit!important;vertical-align:baseline}
  #composer #run{margin-left:0!important}
  .nova-mobile-idle i{box-shadow:0 0 9px #8ae8b555}
  .nova-mobile-sheet>.nova-mobile-handle{display:none}
  .nova-mobile-sheet>header small:empty{display:none}
  .nova-mobile-sheet>header h2{line-height:normal!important}
  .nova-mobile-sheet>header small{line-height:normal!important}
  .nova-mobile-sheet-body p{margin:0 0 14px}
  .nova-mobile-section-label{font-size:9px!important;color:#7893ac!important;letter-spacing:.12em;text-transform:uppercase;margin:18px 0 9px!important}
  .nova-mobile-sheet-body>.nova-mobile-primary{margin-bottom:14px}
  .nova-mobile-tip{background:#72e6fb08;border:1px solid #72e6fb22;border-radius:10px;padding:11px;font-size:10px;color:var(--muted);line-height:1.65;margin-top:13px}
  .nova-mobile-build{font-size:8px;color:var(--muted);text-align:center;padding:7px 0 0}
  .nova-mobile-menu-item{line-height:normal;font-weight:400}
  .nova-mobile-menu-item.selected{border-color:#72e6fb88;background:#17374b}
  .nova-mobile-end{flex:none!important;margin:0!important;color:var(--cyan)!important}
  .nova-mobile-search{background:var(--mobile-field);border-color:var(--mobile-sheet-line);line-height:normal}
  .nova-mobile-more-grid .nova-mobile-menu-item{background:#10243a;display:grid;justify-items:start;line-height:normal}
  .nova-mobile-more-grid svg{width:20px;height:20px}
  .nova-mobile-sheet-body .nova-project-heading,.nova-mobile-sheet-body #newChat{display:none!important}
  .nova-mobile-sheet-body .sidebar-panel{display:block!important}
  .nova-mobile-sheet-body .recent{max-height:none;margin:18px 0 0;display:grid;gap:8px}
  .nova-mobile-sheet-body .recent>span{font-size:12px;color:var(--muted)}
  .nova-mobile-sheet-body .recent>button{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--mobile-row);color:var(--ink);text-align:left}
  .nova-mobile-sheet-body [data-settings-pane]{display:block!important}
  .nova-mobile-sheet-body .settings-section-head{display:none}
  .nova-mobile-sheet-body .settings-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
  .nova-mobile-sheet-body .settings-inline-actions button{flex:1}
  .nova-mobile-sheet-body .setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--mobile-row)}
  .nova-mobile-sheet-body .setting-row small{display:block;margin-top:4px;font-size:10px}
  .nova-mobile-sheet-body .setting-row strong{font-size:12px;color:var(--ink)}
  .nova-mobile-sheet-body .setting-row input{flex:none}
  .nova-mobile-sheet-body .theme-setting>small{display:none}
  .nova-mobile-sheet-body .export-actions{display:grid;gap:8px}
  .nova-mobile-sheet-body .export-actions button{min-width:0;width:100%}
  .nova-mobile-sheet-body #plusToolList{display:grid;gap:8px}
  .nova-mobile-sheet-body #plusToolList button{white-space:normal;width:100%}
  .nova-mobile-sheet-body .composer-popover-actions{display:flex;gap:8px}
  .nova-mobile-sheet-body .composer-popover-actions button{flex:1}
  :root[data-theme="light"] .nova-mobile-menu-item.selected{background:var(--panel2);border-color:var(--cyan)}
  :root[data-theme="light"] .nova-mobile-more-grid .nova-mobile-menu-item{background:var(--panel2)}
}

@media (min-width:701px) and (max-width:760px){
  .topbar #settingsBtn{position:relative;background-image:none!important;font-size:0!important;}
  .topbar #settingsBtn::before,.topbar #settingsBtn::after{display:none!important;content:none!important;}
  .topbar #settingsBtn svg{display:block!important;width:17px!important;height:17px!important;margin:0!important;}
}

@media(max-width:700px){
  .topbar #settingsBtn{border-radius:50%!important;background-image:none!important;font-size:0!important;}
  .topbar #settingsBtn::before,.topbar #settingsBtn::after{display:none!important;content:none!important;}
  .topbar #settingsBtn svg{display:block!important;width:17px!important;height:17px!important;margin:0!important;}
 .nova-mobile-theme-swatch{flex:0 0 32px!important;width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#061322 45%,#72e6fb);border:1px solid var(--line)}
 .nova-mobile-theme-swatch.light{background:linear-gradient(135deg,#f4f7fa 45%,#507cae)}
 .nova-mobile-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:9px}
 .nova-mobile-two button{width:100%;font-weight:600}
 .nova-mobile-sheet-body>#loadModels{display:flex;justify-content:center;align-items:center;width:100%;padding:12px;border:0;border-radius:11px;font-size:12px;font-weight:600;background:linear-gradient(120deg,#72e6fb,#a8bdff);color:#081625}
 .nova-mobile-advanced{margin-top:13px;font-size:11px;color:var(--muted)}
 .nova-mobile-advanced summary{padding:11px;border:1px solid var(--line);border-radius:10px;cursor:pointer;margin-bottom:13px}
 .nova-mobile-sheet-body .settings-inline-actions:empty{display:none}
 .nova-mobile-sheet-body .panel-head{display:none!important}
 .nova-mobile-sheet-body .theme-setting{font-size:12px}
}

/* Light mobile theme: keep the single inline SVG, remove the duplicate button artwork. */
@media(max-width:700px){
  :root[data-theme="light"] .topbar #settingsBtn{background-image:none!important;background-color:var(--mobile-raised)!important;}
  :root[data-theme="light"] .topbar #settingsBtn::before,
  :root[data-theme="light"] .topbar #settingsBtn::after{display:none!important;content:none!important;background:none!important;}
  :root[data-theme="light"] .topbar #settingsBtn svg{display:block!important;opacity:1!important;}
  :root[data-theme="light"] .topbar #settingsBtn{font-size:0!important;}
  :root[data-theme="light"] .topbar #settingsBtn>svg:not(:first-child){display:none!important;}
}
@media(max-width:700px){
 .main .conversation:not([hidden]){display:flex!important;flex-direction:column;gap:15px}
 .conversation .chat-message{flex:none;max-width:94%;margin:0;font-size:13px;line-height:1.65}
 .conversation .chat-message.user{align-self:flex-end;padding:10px 13px;border-radius:15px 15px 4px 15px;background:#18354c;border:1px solid #315470;color:var(--ink)}
 .conversation .chat-message.user .message-author{display:none}
 .conversation .chat-message.assistant{align-self:flex-start;padding:0 5px;border:0;background:none;box-shadow:none}
 .conversation .message-author{font-size:9px;color:var(--cyan);margin-bottom:7px;font-weight:700;letter-spacing:.1em}
 .conversation .message-actions{display:flex;gap:5px;justify-content:flex-end;margin-top:8px}
 .conversation .message-action{display:grid;place-items:center;width:28px;height:28px;min-width:28px;min-height:28px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted)}
 .conversation .message-action svg{width:14px;height:14px}
 .conversation .user .message-action[aria-label="��������� ������"]{order:1}
 .conversation .user .message-action-danger{order:2}
 .conversation .user .message-action[aria-label="���������� ���������"]{order:3}
 :root[data-theme="light"] .conversation .chat-message.user{background:var(--panel2);border-color:var(--line)}
 .nova-mobile-sheet-body .panel-chrome{display:none!important}
}
@media(max-width:700px){
 .nova-mobile-sheet-body #chatRecent{grid-template-columns:minmax(0,1fr) 36px;gap:8px;align-items:center}
 .nova-mobile-sheet-body #chatRecent>.recent-actions{display:grid!important;place-items:center;width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;opacity:1!important;pointer-events:auto!important;font-size:22px!important;border:1px solid var(--line)!important;border-radius:9px!important}
 .nova-mobile-sheet-body #projectRecent .recent-actions{display:grid!important;place-items:center;opacity:1!important;pointer-events:auto!important;width:34px!important;min-height:34px!important;margin:0!important;padding:0!important;font-size:20px!important}
 .chat-context-menu{position:fixed!important;inset:auto 12px 12px!important;width:calc(100vw - 24px)!important;max-width:none!important;max-height:80dvh!important;margin:0!important;pointer-events:auto!important}
 #projectActionsDialog .dialog-actions{display:grid;gap:8px}
}

/* Mobile final single-source settings icon: inline SVG only. */
@media(max-width:700px){
 .topbar #settingsBtn{background-image:none!important;font-size:0!important;}
 .topbar #settingsBtn::before,.topbar #settingsBtn::after{display:none!important;content:none!important;}
 .topbar #settingsBtn svg{display:block!important;width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.55!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
}

@media(max-width:700px){
  .topbar #settingsBtn:hover{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 14 4l.8 2.1 2 .8 2.1-.8 1.1 1.6-1.2 1.9.7 2 2 .9v2l-2 .9-.7 2 1.2 1.9-1.1 1.6-2.1-.8-2 .8-.8 2.1-2 .5-1.2-1.9-2-.8-2.1.8-1.1-1.6 1.2-1.9-.7-2-2-.9v-2l2-.9.7-2-1.2-1.9 1.1-1.6 2.1.8 2-.8L12 3.5Z'/%3E%3Ccircle cx='12' cy='13' r='3.2'/%3E%3C/svg%3E")!important;
    background-color:#172f50!important;background-repeat:no-repeat!important;background-position:center!important;background-size:17px 17px!important;border-color:#172f50!important;box-shadow:none!important;
  }
}

/* FINAL MOBILE SETTINGS BUTTON: inline SVG only. */
@media(max-width:700px){
 .topbar #settingsBtn{background-image:none!important;}
 .topbar #settingsBtn::before,.topbar #settingsBtn::after{content:none!important;display:none!important;}
 .topbar #settingsBtn>svg{display:block!important;visibility:visible!important;opacity:1!important;width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.55!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
 .topbar #settingsBtn:hover{background-image:none!important;background-color:#172f50!important;color:#fff!important;border-color:#172f50!important;box-shadow:none!important;}
}
