/**
 * Task 2 Python menubar chrome (desktop + mobile trainer pane).
 * Activated by body.task2-python-menubar-chrome (JS).
 */

body.ege-python-task-mobile.task2-python-menubar-chrome {
--ege-task2-titlebar-btn-size: 1.9rem;
--ege-task2-titlebar-icon-size: 0.98rem;
--ege-task2-titlebar-radius: 0.48rem;
}

/* ——— Python-тренажёр: chrome из oge_task1_mobile.css (секция task16) ——— */




body.task2-python-menubar-chrome
    .python-sandbox-idle-menubar {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    min-height: 0;
    height: auto;
    padding: 0.12rem 0.38rem 0.12rem 0.42rem;
    overflow: visible;
    position: relative;
    z-index: 8;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(236, 253, 245, 0.94) 100%
    );
    border-bottom: 1px solid rgba(52, 211, 153, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 1px 0 rgba(52, 211, 153, 0.12);
}

body.task2-python-menubar-chrome
    .python-sandbox-idle-menubar__right {
    display: flex !important;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

body.task2-python-menubar-chrome
    .python-sandbox-idle-menubar__right
    > :not(#oge-python-mobile-editor-chrome):not(.oge-python-mobile-editor-chrome) {
    display: none !important;
}

/* Desktop: File/Edit уже в menubar__left — мобильный бургер не показываем */
body.task2-python-menubar-chrome:not(.task-mobile-mode)
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu {
    display: none !important;
}


body.ege-python-task-mobile.task-mobile-mode #python-sandbox-save-as-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 13000 !important;
}

body.ege-python-task-mobile.task-mobile-mode
    #python-sandbox-editor-pane
    > .oge-python-mobile-editor-chrome {
    display: none !important;
}

body.task2-python-menubar-chrome {
    --ege-task2-titlebar-btn-size: 1.9rem;
    --ege-task2-titlebar-icon-size: 0.98rem;
    --ege-task2-titlebar-radius: 0.48rem;
}

[data-theme="dark"]
    body.task2-python-menubar-chrome
    .python-sandbox-idle-menubar {
    background: linear-gradient(
      180deg,
      rgba(22, 30, 38, 0.98) 0%,
      rgba(15, 23, 32, 0.96) 100%
    );
    border-bottom-color: rgba(52, 211, 153, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 1px 0 rgba(0, 0, 0, 0.22);
}

[data-theme="light"]
    body.task2-python-menubar-chrome
    .python-sandbox-idle-menubar {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(240, 253, 250, 0.97) 100%
    );
    border-bottom-color: rgba(21, 128, 61, 0.24);
}

html[data-palette="pink"]
    body.task2-python-menubar-chrome
    .python-sandbox-idle-menubar {
    background: linear-gradient(
      180deg,
      rgba(255, 251, 254, 0.98) 0%,
      rgba(253, 242, 248, 0.95) 100%
    );
    border-bottom-color: rgba(244, 114, 182, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 1px 0 rgba(244, 114, 182, 0.12);
}

html[data-palette="pink"][data-theme="dark"]
    body.task2-python-menubar-chrome
    .python-sandbox-idle-menubar {
    background: linear-gradient(
      180deg,
      rgba(32, 18, 28, 0.98) 0%,
      rgba(24, 12, 20, 0.96) 100%
    );
    border-bottom-color: rgba(244, 114, 182, 0.24);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    border: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
    box-shadow: none;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0;
    z-index: 12;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.14rem;
    width: var(--ege-task2-titlebar-btn-size) !important;
    height: var(--ege-task2-titlebar-btn-size) !important;
    min-width: var(--ege-task2-titlebar-btn-size) !important;
    min-height: var(--ege-task2-titlebar-btn-size) !important;
    max-height: var(--ege-task2-titlebar-btn-size) !important;
    margin: 0;
    padding: 0;
    border-radius: var(--ege-task2-titlebar-radius);
    border: 1px solid rgba(52, 211, 153, 0.42);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%),
      linear-gradient(145deg, rgba(52, 211, 153, 0.18) 0%, rgba(16, 185, 129, 0.1) 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.14) inset,
      0 3px 12px rgba(52, 211, 153, 0.14);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger
    .kumir-header-burger__bar {
    display: block;
    width: 0.94rem;
    height: 0.115rem;
    border-radius: 999px;
    background: var(--oge-calc-solution-text, #a7f3d0);
    box-shadow: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__panel {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 10.25rem;
    z-index: 20;
    padding: 0.3rem 0;
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
      0 10px 28px rgba(15, 23, 42, 0.14),
      0 2px 8px rgba(52, 211, 153, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

[data-theme="dark"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__panel {
    border-color: rgba(52, 211, 153, 0.24);
    background: rgba(15, 23, 32, 0.98);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.35),
      0 2px 8px rgba(52, 211, 153, 0.1);
}

[data-theme="light"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__panel {
    border-color: rgba(21, 128, 61, 0.22);
    background: rgba(255, 255, 255, 0.99);
}

html[data-palette="pink"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__panel {
    border-color: rgba(244, 114, 182, 0.28);
    background: rgba(255, 251, 254, 0.98);
    box-shadow:
      0 10px 28px rgba(131, 24, 67, 0.12),
      0 2px 8px rgba(244, 114, 182, 0.14);
}

html[data-palette="pink"][data-theme="dark"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__panel {
    border-color: rgba(244, 114, 182, 0.3);
    background: rgba(28, 16, 24, 0.98);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.38),
      0 2px 8px rgba(244, 114, 182, 0.12);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.8rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--oge-calc-solution-text, #064e3b);
    font-family: system-ui, "Segoe UI", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

[data-theme="dark"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item {
    color: var(--oge-calc-solution-text, #d1fae5);
}

[data-theme="light"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item {
    color: #064e3b;
}

html[data-palette="pink"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item {
    color: #831843;
}

html[data-palette="pink"][data-theme="dark"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item {
    color: #fce7f3;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item:active,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item:hover {
    background: color-mix(in srgb, var(--oge-calc-solution-accent-muted, #34d399) 18%, transparent);
}

html[data-palette="pink"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item:active,
html[data-palette="pink"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item:hover {
    background: color-mix(in srgb, #f472b6 18%, transparent);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__sep {
    height: 1px;
    margin: 0.22rem 0.6rem;
    background: rgba(52, 211, 153, 0.2);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item--recent-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item-caret {
    flex: 0 0 auto;
    font-size: 0.72rem;
    opacity: 0.55;
    transition: transform 0.16s ease;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__item--recent-open
    .oge-python-mobile-file-menu__item-caret {
    transform: rotate(180deg);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__recent-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: min(38vh, 11rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(52, 211, 153, 0.14);
    background: rgba(52, 211, 153, 0.05);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__recent-list[hidden] {
    display: none !important;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__recent-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.8rem 0.45rem 1.15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--oge-calc-solution-text, #064e3b);
    font-family: system-ui, "Segoe UI", Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    white-space: nowrap;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__recent-num {
    flex: 0 0 auto;
    min-width: 1.1rem;
    opacity: 0.72;
    font-variant-numeric: tabular-nums;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__recent-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__recent-item--empty {
    opacity: 0.6;
    cursor: default;
}

[data-theme="dark"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__recent-list {
    border-top-color: rgba(52, 211, 153, 0.18);
    background: rgba(15, 23, 32, 0.45);
}

[data-theme="dark"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__recent-item {
    color: #d1fae5;
}

html[data-palette="pink"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__recent-list {
    border-top-color: rgba(244, 114, 182, 0.2);
    background: rgba(244, 114, 182, 0.06);
}

[data-theme="dark"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__sep {
    background: rgba(52, 211, 153, 0.24);
}

html[data-palette="pink"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__sep {
    background: rgba(244, 114, 182, 0.24);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger.kumir-header-burger--premium {
    display: inline-flex !important;
    border-left: none !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.14) inset,
      0 3px 12px rgba(52, 211, 153, 0.14);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
      border-color 0.14s ease,
      background 0.14s ease,
      box-shadow 0.14s ease;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger[aria-expanded="true"]
    .kumir-header-burger__bar:nth-child(1) {
    transform: translateY(0.25rem) rotate(45deg);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger[aria-expanded="true"]
    .kumir-header-burger__bar:nth-child(2) {
    opacity: 0;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger[aria-expanded="true"]
    .kumir-header-burger__bar:nth-child(3) {
    transform: translateY(-0.25rem) rotate(-45deg);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger:hover {
    border-color: rgba(52, 211, 153, 0.58);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 100%),
      linear-gradient(145deg, rgba(52, 211, 153, 0.24) 0%, rgba(16, 185, 129, 0.14) 100%);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger[aria-expanded="true"] {
    border-color: rgba(16, 185, 129, 0.62);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%),
      linear-gradient(145deg, rgba(16, 185, 129, 0.28) 0%, rgba(52, 211, 153, 0.16) 100%);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-run-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.14rem;
    min-height: var(--ege-task2-titlebar-btn-size) !important;
    height: var(--ege-task2-titlebar-btn-size) !important;
    max-height: var(--ege-task2-titlebar-btn-size) !important;
    margin: 0 !important;
    padding: 0 0.39rem !important;
    border-radius: var(--ege-task2-titlebar-radius) !important;
    border: 1px solid rgba(5, 150, 105, 0.55) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 42%),
      linear-gradient(180deg, #34d399 0%, #10b981 50%, #059669 100%) !important;
    color: #fff !important;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.6rem !important;
    line-height: 1;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      0 1px 0 rgba(4, 120, 87, 0.24),
      0 3px 10px rgba(16, 185, 129, 0.28) !important;
    white-space: nowrap;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.23rem;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar::-webkit-scrollbar {
    display: none;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-paint-solution-run {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.23rem;
    margin: 0;
    padding: 0;
    border: 0;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    [data-oge-paint-solution-visibility-toggle] {
    display: none !important;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task16-hide-solution-btn,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    [data-oge-run-paint-solution].oge-task16-show-solution-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--ege-task2-titlebar-btn-size) !important;
    height: var(--ege-task2-titlebar-btn-size) !important;
    min-width: var(--ege-task2-titlebar-btn-size) !important;
    min-height: var(--ege-task2-titlebar-btn-size) !important;
    max-height: var(--ege-task2-titlebar-btn-size) !important;
    margin: 0;
    padding: 0;
    border-radius: var(--ege-task2-titlebar-radius);
    border: 1px solid rgba(167, 139, 250, 0.48);
    background:
      linear-gradient(155deg, rgba(167, 139, 250, 0.3) 0%, rgba(45, 212, 191, 0.2) 48%, rgba(244, 114, 182, 0.12) 100%);
    color: #ddd6fe;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 0 1px rgba(45, 212, 191, 0.08),
      0 4px 16px rgba(45, 212, 191, 0.2),
      0 2px 0 rgba(15, 23, 42, 0.32);
    transition:
      transform 0.14s ease,
      box-shadow 0.14s ease,
      border-color 0.14s ease;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task16-hide-solution-btn[aria-expanded="true"] {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 0 1px rgba(244, 114, 182, 0.12),
      0 0 18px rgba(45, 212, 191, 0.28),
      0 4px 16px rgba(167, 139, 250, 0.18);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task16-hide-solution-btn[hidden],
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    [data-oge-run-paint-solution][hidden] {
    display: none !important;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task16-hide-solution-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--ege-task2-titlebar-icon-size) + 0.18rem);
    height: calc(var(--ege-task2-titlebar-icon-size) + 0.18rem);
    border-radius: 999px;
    background:
      radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28) 0%, transparent 58%),
      radial-gradient(circle at 68% 72%, rgba(45, 212, 191, 0.14) 0%, transparent 62%);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task16-hide-solution-btn__icon,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task16-hide-solution-btn__svg {
    width: var(--ege-task2-titlebar-icon-size);
    height: var(--ege-task2-titlebar-icon-size);
    filter: drop-shadow(0 1px 3px rgba(45, 212, 191, 0.42));
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task16-hide-solution-btn:not(.oge-task16-show-solution-btn)
    .oge-task16-hide-solution-btn__slash {
    opacity: 1;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task16-show-solution-btn:active,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task16-hide-solution-btn:active {
    transform: scale(0.95);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepback-btn,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stop-btn {
    height: var(--ege-task2-titlebar-btn-size) !important;
    min-height: var(--ege-task2-titlebar-btn-size) !important;
    max-height: var(--ege-task2-titlebar-btn-size) !important;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stop-btn {
    display: none !important;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn__label,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepback-btn__label {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    color: inherit;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn__svg--stop-mark {
    width: var(--ege-task2-titlebar-icon-size);
    height: var(--ege-task2-titlebar-icon-size);
    flex: 0 0 auto;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn:not(.oge-task15-solution-stepwise-btn--stop-mode)
    .oge-task15-solution-stepwise-btn__svg--stop-mark {
    display: none !important;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn__icon,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepback-btn__icon {
    width: var(--ege-task2-titlebar-icon-size);
    height: var(--ege-task2-titlebar-icon-size);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-kumir-chrome__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: var(--ege-task2-titlebar-btn-size) !important;
    height: var(--ege-task2-titlebar-btn-size) !important;
    min-width: var(--ege-task2-titlebar-btn-size) !important;
    min-height: var(--ege-task2-titlebar-btn-size) !important;
    max-height: var(--ege-task2-titlebar-btn-size) !important;
    margin: 0;
    padding: 0;
    border-radius: var(--ege-task2-titlebar-radius);
    border: 1.5px solid color-mix(in srgb, var(--oge-calc-solution-accent, #10b981) 30%, transparent);
    background: color-mix(in srgb, var(--oge-calc-solution-accent, #10b981) 10%, transparent);
    color: var(--oge-kumir-chrome-btn-text, #a7f3d0);
    box-shadow:
      0 1px 0 color-mix(in srgb, var(--oge-calc-solution-accent-deep, #047857) 35%, transparent),
      0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn {
    width: auto !important;
    min-width: calc(var(--ege-task2-titlebar-btn-size) + 1.55rem) !important;
    max-width: none !important;
    padding: 0 0.34rem 0 0.24rem !important;
    gap: 0.14rem;
    flex-direction: row;
    justify-content: center;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepback-btn {
    width: auto !important;
    min-width: calc(var(--ege-task2-titlebar-btn-size) + 1.55rem) !important;
    max-width: none !important;
    padding: 0 0.34rem 0 0.24rem !important;
    gap: 0.14rem;
    flex-direction: row;
    justify-content: center;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepback-btn:disabled {
    opacity: 0.42;
    pointer-events: none;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--stop-mode {
    color: #fff;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%) !important;
    border-color: #991b1b !important;
    box-shadow:
      0 1px 0 rgba(127, 29, 29, 0.55),
      0 1px 0 rgba(255, 255, 255, 0.1) inset !important;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--stop-mode
    .oge-task15-solution-stepwise-btn__label {
    color: #fff;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--done {
    color: #ecfdf5;
    background: linear-gradient(
      180deg,
      #34d399 0%,
      #10b981 55%,
      #059669 100%
    ) !important;
    border-color: #047857 !important;
    box-shadow:
      0 1px 0 rgba(6, 78, 59, 0.45),
      0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
    pointer-events: none;
    opacity: 0.96;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--done
    .oge-task15-solution-stepwise-btn__label {
    color: #ecfdf5;
    letter-spacing: 0.04em;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-run-btn
    .oge-kumir-solve-run-btn__icon {
    font-size: 0.67rem !important;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-kumir-chrome__btn--pause:not(:disabled) {
    color: #fff;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    border-color: #b45309;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-kumir-chrome__btn--stop:not(:disabled) {
    color: #fff;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
    border-color: #991b1b;
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-kumir-chrome__icon,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn__svg,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepback-btn__svg {
    width: var(--ege-task2-titlebar-icon-size);
    height: var(--ege-task2-titlebar-icon-size);
}

body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--idle
    .oge-task15-solution-stepwise-btn__svg--pause,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--idle
    .oge-task15-solution-stepwise-btn__svg--resume,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--running
    .oge-task15-solution-stepwise-btn__svg--stepwise,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--running
    .oge-task15-solution-stepwise-btn__svg--resume,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--paused
    .oge-task15-solution-stepwise-btn__svg--stepwise,
body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-task15-solution-stepwise-btn--paused
    .oge-task15-solution-stepwise-btn__svg--pause {
    display: none;
}

[data-theme="dark"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-solution-toolbar
    .oge-kumir-chrome__btn {
    color: var(--oge-kumir-chrome-btn-text, #d1fae5);
}

html[data-palette="pink"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger {
    border-color: rgba(244, 114, 182, 0.42);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%),
      linear-gradient(145deg, rgba(244, 114, 182, 0.18) 0%, rgba(167, 139, 250, 0.1) 100%);
}

html[data-palette="pink"]
    body.task2-python-menubar-chrome
    .oge-python-mobile-editor-chrome--in-menubar-right
    .oge-python-mobile-file-menu__burger
    .kumir-header-burger__bar {
    background: linear-gradient(90deg, #f472b6 0%, #e9d5ff 100%);
}
