:root {
    --page: #f4f7fb;
    --pane: #eef3f8;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-solid: #ffffff;
    --surface-soft: #f8fafc;
    --line: #d9e2ea;
    --line-strong: #aebfd2;
    --text: #111827;
    --muted: #667085;
    --green: #20a820;
    --green-soft: #eaf9e8;
    --blue: #1e86e5;
    --blue-soft: #e8f2ff;
    --red: #f21f2b;
    --red-dark: #c91420;
    --amber: #f0a020;
    --sidebar-width: 256px;
    --sidebar-compact: 58px;
    --ui-scale: 1;
    --app-height: 1080px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    background: var(--page);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: default;
    opacity: 0.48;
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    width: 100vw;
    height: var(--app-height);
    transform: scale(var(--ui-scale));
    transform-origin: top left;
    transition: grid-template-columns 160ms ease;
}

.app-shell.sidebar-collapsed {
    grid-template-columns: var(--sidebar-compact) minmax(0, 1fr);
}

.app-sidebar {
    position: relative;
    z-index: 20;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(174, 191, 210, 0.72);
    background-color: var(--pane);
    background-image: linear-gradient(rgba(238, 243, 248, 0.78), rgba(238, 243, 248, 0.42)), url("assets/sidebar-cows-meadow.png");
    background-position: center bottom;
    background-size: cover;
}

.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 24px;
}

.icon-button:hover {
    background: rgba(17, 24, 39, 0.08);
}

.sidebar-toggle {
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 2;
    color: #354052;
    font-size: 19px;
}

.brand {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: 34px 20px;
    align-items: center;
    gap: 0 8px;
    min-height: 104px;
    padding: 32px 18px 12px 58px;
    white-space: nowrap;
}

.brand-mark {
    width: 26px;
    height: 17px;
    background: var(--red);
    transform: skewX(-10deg);
}

.brand-name {
    align-self: end;
    font-size: 24px;
    font-weight: 800;
}

.brand-name b {
    margin-right: 3px;
    color: var(--red);
}

.brand-caption {
    grid-column: 2;
    align-self: start;
    color: var(--muted);
    font-size: 12px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.nav-button {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    min-height: 52px;
    padding: 0 10px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    color: #202833;
    background: transparent;
    text-align: left;
}

.nav-button::before {
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 2px;
    width: 3px;
    border-radius: 2px;
    background: transparent;
    content: "";
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.58);
}

.nav-button.is-active {
    background: rgba(204, 218, 228, 0.68);
}

.nav-button.is-active::before {
    background: #159ce4;
}

.nav-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
}

.nav-label {
    overflow: hidden;
    font-size: 16px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connection-card {
    display: grid;
    gap: 12px;
    margin: auto 14px 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.connection-card > div {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 9px;
    align-items: center;
}

.connection-card b,
.connection-card small {
    display: block;
}

.connection-card b {
    font-size: 14px;
}

.connection-card small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
}

.connection-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #35c878;
}

.sidebar-collapsed .brand,
.sidebar-collapsed .connection-card {
    visibility: hidden;
}

.sidebar-collapsed .side-nav {
    margin-top: 52px;
    padding: 0 4px;
}

.sidebar-collapsed .nav-button {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
}

.sidebar-collapsed .nav-label {
    display: none;
}

.app-content {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--page);
}

.global-overlay {
    position: absolute;
    top: 12px;
    right: 24px;
    left: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr) 190px;
    align-items: start;
    pointer-events: none;
}

.demo-notice {
    grid-column: 2;
    justify-self: center;
    max-width: 760px;
    padding: 7px 16px;
    border: 1px solid rgba(217, 226, 234, 0.92);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.16;
    text-align: center;
}

.clock {
    grid-column: 3;
    justify-self: end;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 18px;
    font-weight: 650;
    text-align: center;
    white-space: nowrap;
}

.workspace {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mixer-view {
    display: grid;
    grid-template-columns: 320px minmax(680px, 1fr) 500px;
    grid-template-rows: 70px minmax(462px, 2.05fr) minmax(238px, 1.05fr) minmax(128px, 0.7fr) 108px;
    gap: 12px 14px;
    min-width: 1530px;
    height: 100%;
    min-height: 1080px;
    padding: 14px 24px 12px 0;
    background-color: var(--page);
    background-image: linear-gradient(rgba(244, 247, 251, 0.12), rgba(244, 247, 251, 0.1)), url("assets/mixer-control-cows-meadow-wide.png");
    background-position: center bottom;
    background-size: cover;
}

.mixer-view.one-mixer {
    grid-template-rows: 70px minmax(520px, 2.05fr) minmax(267px, 1.05fr) 0 108px;
    height: 100%;
    min-height: 1045px;
}

.mixer-heading {
    grid-column: 1 / 4;
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.title-card,
.mode-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.title-card {
    font-size: 24px;
    font-weight: 750;
}

.mixer-number-badge {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--red);
    font-size: 18px;
    font-weight: 750;
}

.mode-card {
    color: var(--green);
    border-color: #d0f0cd;
    background: var(--green-soft);
    font-size: 15px;
    font-weight: 650;
}

.mode-card.manual {
    color: #8a5600;
    border-color: #f0d39a;
    background: #fff7e8;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.metrics-panel {
    grid-row: 2;
    grid-column: 1;
    padding: 7px 20px;
}

.equipment-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 16px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 15px;
    font-weight: 650;
}

.metric-label {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.mass-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.mass-row strong {
    font-size: 30px;
}

.mass-row span {
    font-size: 17px;
}

.capacity-text {
    margin: 0;
    font-size: 14px;
}

.mass-progress-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-top: 3px;
}

.progress {
    height: 7px;
    overflow: hidden;
    border-radius: 5px;
    background: #e8ecf3;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 180ms linear;
}

.mass-percent {
    font-size: 17px;
    font-weight: 650;
}

.quiet-button {
    min-height: 28px;
    margin-top: 3px;
    padding: 3px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    font-weight: 600;
}

.unload-mode-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    margin: 5px 0 4px;
    padding: 7px 10px;
    overflow: hidden;
    border: 2px solid var(--green);
    border-left-width: 8px;
    border-radius: 14px;
    background: #f0fbf2;
    text-align: left;
}

.unload-mode-card b,
.unload-mode-card small {
    display: block;
}

.unload-mode-card b {
    font-size: 13px;
    line-height: 1.25;
}

.unload-mode-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.unload-mode-card > span:last-child {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.metric-list {
    display: grid;
    margin-top: 1px;
}

.metric-line {
    min-height: 39px;
    padding: 2px 0;
    border-top: 1px solid var(--line);
}

.metric-line span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.metric-line strong {
    display: block;
    margin-top: 1px;
    font-size: 17px;
    font-weight: 650;
}

.mixer-photo-area {
    grid-row: 2;
    grid-column: 2;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 6px 8px;
}

.mixer-photo-frame {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
}

.mixer-photo-frame img {
    position: absolute;
    inset: 10px 16px;
    display: block;
    width: calc(100% - 32px);
    height: calc(100% - 20px);
    object-fit: contain;
    object-position: center;
}

.recipe-panel {
    grid-row: 2 / 4;
    grid-column: 3;
    display: grid;
    grid-template-rows: 54px minmax(0, 1fr);
    padding: 12px 14px;
    overflow: hidden;
    border: 2px solid var(--green);
    border-radius: 22px;
    background-color: rgba(255, 255, 255, 0.94);
    background-image: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.94)), url("assets/recipe-panel-cow-meadow.png");
    background-position: center;
    background-size: cover;
}

.mode-switch {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.mode-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border: 2px solid var(--green);
    border-radius: 14px;
    color: var(--green);
    background: #f8fafc;
    font-size: 18px;
    font-weight: 750;
}

.mode-button.active {
    color: white;
    background: var(--green);
}

.recipe-auto {
    display: grid;
    grid-template-rows: 70px auto auto auto minmax(0, 1fr) 66px;
    gap: 7px;
    min-height: 0;
}

.process-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid #cce7d0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
}

.process-card small,
.loading-card small {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.process-card strong {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    font-size: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-timer {
    color: var(--text);
    font-size: 26px;
    font-weight: 750;
    white-space: nowrap;
}

.process-timer::before {
    margin-right: 8px;
    color: var(--blue);
    content: "◷";
}

.recipe-section-label {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
}

.recipe-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
}

.step-number {
    color: #344054;
    font-size: 22px;
    font-weight: 750;
}

.step-content > label,
.composition-title {
    display: block;
    margin-bottom: 6px;
    font-size: 19px;
    font-weight: 650;
}

.select-row {
    display: grid;
    grid-template-columns: 1fr 52px;
    gap: 8px;
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid #cfd9e4;
    border-radius: 6px;
    outline: none;
    background: white;
    font-size: 18px;
}

.textarea {
    min-height: 96px;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(30, 134, 229, 0.16);
}

.square-button {
    display: grid;
    width: 52px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #64748b;
    background: #f8fafc;
    font-size: 22px;
}

.animal-grid {
    display: grid;
    grid-template-columns: 48px 120px 48px 1fr;
    gap: 10px;
    align-items: center;
}

.stepper-button {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    font-size: 26px;
}

.stepper-button.minus {
    color: var(--red);
}

.stepper-button.plus {
    color: var(--blue);
}

.portion-row {
    display: grid;
    grid-template-columns: 1fr 124px auto;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.portion-row label {
    color: var(--muted);
    font-size: 16px;
    font-weight: 650;
}

.composition-step {
    min-height: 0;
}

.composition-list {
    max-height: 150px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
}

.composition-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 42px;
    padding: 4px 8px;
}

.composition-row.is-active {
    border-radius: 8px;
    background: var(--green-soft);
}

.composition-index {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    background: var(--green-soft);
    font-size: 14px;
    font-weight: 750;
}

.composition-name {
    min-width: 0;
}

.composition-name b,
.composition-name small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.composition-name b {
    font-size: 16px;
}

.composition-name small {
    color: var(--muted);
    font-size: 13px;
}

.composition-mass {
    font-size: 17px;
    font-weight: 750;
}

.recipe-total {
    margin: 2px 0 0 40px;
    color: var(--green);
    font-size: 13px;
    font-weight: 650;
}

.activate-button {
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 16px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: var(--green);
}

.activate-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #45c945;
    font-size: 20px;
}

.activate-button strong,
.activate-button small {
    display: block;
    text-align: left;
}

.activate-button strong {
    font-size: 22px;
}

.activate-button small {
    color: #e9ffe7;
    font-size: 14px;
}

.manual-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    padding-top: 8px;
}

.manual-warning {
    padding: 14px;
    border: 1px solid #ffd399;
    border-radius: 14px;
    color: #9a5b00;
    background: #fff7e8;
    font-weight: 650;
}

.mixer-controls {
    grid-row: 3;
    grid-column: 1 / 3;
    padding: 14px 20px;
}

.controls-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 750;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr)) repeat(2, minmax(114px, 1.15fr)) minmax(220px, 2.6fr) minmax(105px, 1fr);
    gap: 10px;
    align-items: start;
}

.control-tile {
    display: flex;
    height: 94px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px;
    border: 2px solid var(--line-strong);
    border-radius: 14px;
    background: #fcfdff;
    font-weight: 650;
    text-align: center;
}

.control-tile .tile-icon {
    font-size: 25px;
    line-height: 1;
}

.control-tile small {
    color: var(--muted);
    font-size: 12px;
}

.control-tile.stop {
    color: white;
    border-color: var(--red-dark);
    background: var(--red);
    font-size: 16px;
    font-weight: 750;
}

.control-tile.active:not(.stop) {
    border-color: var(--green);
    background: var(--green-soft);
}

.loading-card {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 102px;
    padding: 10px 12px;
    border: 2px solid var(--line-strong);
    border-radius: 14px;
    background: #f8fafc;
}

.loading-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.loading-card-header small {
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.next-button {
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    font-size: 13px;
    font-weight: 650;
}

.loading-card-main {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.loading-card-main strong {
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.indicator-row {
    display: flex;
    grid-column: 5 / 7;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: -1px;
}

.status-chip {
    display: inline-flex;
    min-width: 105px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fcfdff;
    font-size: 12px;
    font-weight: 600;
}

.status-chip::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dfe8ee;
    content: "";
}

.status-chip.active::before {
    background: #62b864;
}

.other-mixer {
    grid-row: 4;
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: 330px 150px 200px 165px 140px 140px 178px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px 22px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.94);
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url("assets/mixer-2-summary-grass.png");
    background-position: center bottom;
    background-size: cover;
}

.other-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.other-title .mixer-number-badge {
    background: var(--green);
}

.other-title strong {
    font-size: 26px;
}

.other-tag,
.other-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 12px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 14px;
    font-weight: 650;
}

.other-metric small,
.other-timer small {
    display: block;
    color: var(--muted);
    font-size: 15px;
}

.other-metric strong,
.other-timer strong {
    display: block;
    overflow: hidden;
    margin-top: 8px;
    font-size: 23px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.other-link {
    justify-self: end;
    min-width: 164px;
    min-height: 82px;
    padding: 12px 18px;
    border: 2px solid var(--line-strong);
    border-radius: 16px;
    background: #fcfdff;
    font-size: 20px;
    font-weight: 650;
}

.alarm-strip {
    grid-row: 5;
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 30px;
}

.alarm-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    background: var(--green-soft);
    font-size: 23px;
}

.alarm-strip b,
.alarm-strip span {
    display: block;
}

.alarm-strip b {
    font-size: 16px;
}

.alarm-strip span {
    margin-top: 3px;
    font-size: 18px;
    font-weight: 650;
}

.page-background {
    min-width: 1180px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 20px;
    background-color: var(--page);
    background-image: linear-gradient(rgba(244, 247, 251, 0.62), rgba(244, 247, 251, 0.42)), url("assets/mixer-control-cows-meadow-wide.png");
    background-position: center bottom;
    background-size: cover;
}

.page-heading {
    padding: 16px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
}

.page-heading h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 650;
}

.page-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.recipe-page-grid {
    display: grid;
    grid-template-columns: 330px minmax(360px, 1fr) 640px;
    gap: 16px;
    height: calc(var(--app-height) - 159px);
    min-height: 760px;
    margin-top: 14px;
}

.content-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 650;
}

.recipe-list,
.ingredient-list {
    display: grid;
    gap: 8px;
    max-height: calc(var(--app-height) - 270px);
    overflow-y: auto;
    padding-right: 8px;
}

.recipe-list-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.recipe-list-panel .recipe-list {
    max-height: none;
}

.recipe-list-item,
.ingredient-list-item {
    width: 100%;
    min-height: 72px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    text-align: left;
}

.recipe-list-item:hover,
.ingredient-list-item:hover,
.recipe-list-item.selected,
.ingredient-list-item.selected {
    border: 2px solid var(--green);
    background: var(--green-soft);
}

.recipe-list-item b,
.recipe-list-item span,
.recipe-list-item small {
    display: block;
}

.recipe-list-item b {
    font-size: 18px;
}

.recipe-list-item span,
.recipe-list-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
}

.button {
    min-height: 48px;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    font-size: 18px;
    font-weight: 650;
}

.button.primary {
    color: white;
    border-color: var(--green);
    background: var(--green);
}

.button.danger {
    color: white;
    border-color: var(--red);
    background: var(--red);
}

.button.blue {
    color: white;
    border-color: var(--blue);
    background: var(--blue);
}

.button.block {
    width: 100%;
}

.panel-footer {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field > span {
    font-size: 16px;
    font-weight: 600;
}

.recipe-card-form {
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    gap: 14px;
}

.mix-time-row {
    display: grid;
    grid-template-columns: 190px auto;
    gap: 12px;
    align-items: end;
}

.form-hint {
    align-self: start;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: rgba(248, 251, 253, 0.95);
    font-size: 16px;
    line-height: 1.4;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recipe-card-buttons {
    display: grid;
    grid-template-columns: 1fr 160px 160px;
    gap: 12px;
    margin-top: auto;
}

.composition-editor-list {
    display: grid;
    gap: 8px;
    max-height: calc(var(--app-height) - 390px);
    overflow-y: auto;
}

.composition-editor {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.composition-editor > .muted {
    margin-top: -10px;
}

.composition-editor-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 90px;
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.composition-editor-row.selected {
    border: 2px solid var(--green);
    background: var(--green-soft);
}

.composition-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.new-line-panel {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}

.ingredient-page-body {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 18px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
}

.ingredient-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
}

.ingredient-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.ingredient-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.ingredient-row-actions {
    display: flex;
    gap: 14px;
}

.ingredient-edit {
    min-width: 160px;
    color: var(--blue);
    border-color: var(--blue);
    background: #f4f9ff;
}

.ingredient-delete {
    min-width: 120px;
    color: var(--red);
    border-color: var(--red);
    background: #fff7f8;
}

.ingredient-toolbar,
.filter-toolbar {
    display: grid;
    grid-template-columns: auto 360px auto 1fr;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
}

.ingredient-count {
    justify-self: end;
    align-self: center;
    color: var(--muted);
    font-weight: 650;
}

.ingredient-table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.ingredient-table th,
.ingredient-table td,
.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e4ebf1;
    text-align: left;
}

.ingredient-table th,
.data-table th {
    color: #475467;
    background: #f1f5f9;
    font-size: 15px;
    font-weight: 700;
}

.table-scroll {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.report-page,
.alarm-page {
    height: 100%;
    min-height: 0;
    padding: 28px;
    overflow: hidden;
}

.report-page {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.alarm-page {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 18px;
}

.report-filters,
.alarm-filters {
    display: grid;
    grid-template-columns: 190px 210px 210px auto auto auto;
    gap: 12px;
    align-items: end;
    margin-top: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
}

.alarm-filters {
    grid-template-columns: 190px minmax(280px, 1fr) 210px 210px 210px auto auto;
}

.report-section {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
}

.alarm-table {
    min-height: 0;
    margin-top: 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
}

.report-section h2 {
    margin: 0;
    padding: 12px 14px 8px;
    font-size: 28px;
    font-weight: 650;
}

.empty-row {
    padding: 24px !important;
    color: var(--muted);
    text-align: center !important;
}

.settings-page {
    min-width: 900px;
    height: 100%;
    min-height: 0;
    padding: 48px 56px;
    background: var(--page);
}

.settings-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.settings-page h1 {
    margin: 0;
    font-size: 44px;
}

.settings-note {
    margin: 28px 0;
    font-size: 34px;
    font-weight: 650;
    line-height: 1.2;
}

.settings-card {
    width: 560px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.settings-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 650;
}

.settings-card .select {
    width: 260px;
}

.settings-card .button {
    margin-top: 18px;
}

.settings-status {
    min-height: 20px;
    margin: 14px 0 0;
    color: var(--muted);
}

.display-board {
    display: grid;
    height: 100%;
    min-width: 900px;
    background: white;
}

.display-board.two {
    grid-template-rows: 1fr 12px 1fr;
}

.board-divider {
    background: #111;
}

.board-mixer {
    display: grid;
    grid-template-rows: 14% 26% 4px 9% 1fr;
    min-height: 0;
}

.display-board.one .board-mixer {
    grid-template-rows: 12% 31% 10px 9% 1fr;
}

.display-board.one .board-title {
    margin: 0 48px;
    font-size: 54px;
}

.display-board.one .board-ingredient {
    padding: 0 48px;
    font-size: clamp(86px, 9vw, 220px);
}

.display-board.one .board-caption {
    font-size: 44px;
}

.display-board.one .board-value {
    font-size: clamp(150px, 17vw, 360px);
}

.board-workspace {
    overflow: hidden;
}

.board-title {
    align-self: center;
    margin: 8px 34px;
    color: #111;
    font-size: 36px;
    font-weight: 750;
}

.board-ingredient {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 34px;
    overflow: hidden;
    color: #000;
    font-size: clamp(44px, 5vw, 92px);
    font-weight: 650;
    white-space: nowrap;
}

.board-line {
    background: #1a1a1a;
}

.board-caption {
    align-self: center;
    color: #111;
    font-size: 32px;
    font-weight: 650;
    text-align: center;
}

.board-value {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #000;
    background: #fff;
    font-size: clamp(92px, 13vw, 240px);
    font-weight: 750;
    white-space: nowrap;
}

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.42);
}

.modal-layer[hidden] {
    display: none;
}

.modal-dialog {
    width: min(760px, 94vw);
    max-height: calc(var(--app-height) * 0.88);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 24px 80px rgba(17, 24, 39, 0.25);
}

.modal-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.modal-dialog h2 {
    margin: 0;
    font-size: 24px;
}

.modal-body {
    max-height: calc(var(--app-height) * 0.88 - 70px);
    overflow: auto;
    padding: 18px;
}

.report-create-form {
    display: grid;
    gap: 18px;
}

.report-create-intro {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}

.report-period-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.report-period-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.report-period-option:has(input:checked) {
    border-color: #146c43;
    background: #edf8f2;
}

.report-period-option input {
    width: 18px;
    height: 18px;
    accent-color: #146c43;
}

.report-custom-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.report-custom-dates[hidden] {
    display: none;
}

.report-create-summary {
    padding: 14px 16px;
    border-left: 4px solid #146c43;
    border-radius: 4px;
    background: #f0f8f4;
    color: #263238;
}

.report-create-actions {
    margin-top: 2px;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
    min-width: 280px;
    max-width: 460px;
    padding: 14px 18px;
    border-radius: 8px;
    color: white;
    background: rgba(17, 24, 39, 0.94);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.muted {
    color: var(--muted);
}

.text-right {
    text-align: right !important;
}

@media (max-width: 1500px) {
    :root {
        --sidebar-width: 220px;
    }

    .brand {
        padding-left: 52px;
    }

    .brand-name {
        font-size: 20px;
    }

    .global-overlay {
        grid-template-columns: 330px minmax(0, 1fr) 190px;
    }

    .demo-notice {
        font-size: 17px;
    }
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: var(--sidebar-compact) minmax(0, 1fr);
    }

    .brand,
    .connection-card,
    .nav-label {
        display: none;
    }

    .side-nav {
        margin-top: 52px;
        padding: 0 4px;
    }

    .nav-button {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0;
    }
}

/* Версия 2.2 */

.side-nav {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.connection-card > .sidebar-version {
    display: block;
    padding-top: 9px;
    border-top: 1px solid var(--line);
}

.sidebar-version b {
    font-size: 12px;
}

.sidebar-version small {
    font-size: 10px;
    line-height: 1.25;
}

.process-card em {
    display: block;
    max-width: 320px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.numeric-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 6px 10px;
    color: var(--text);
    background: #f8fafc;
    font-size: 24px;
    text-align: center;
}

.recipe-total {
    margin-top: 7px;
    font-size: 19px;
    font-weight: 800;
}

.recipe-limit-warning {
    margin: 2px 0 0 40px;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
}

.activate-button:disabled {
    border: 1px solid #b9c5d1;
    background: #98a5b3;
    opacity: 0.65;
}

.mixer-controls {
    padding: 10px 16px;
}

.controls-title {
    margin-bottom: 6px;
}

.control-grid {
    position: relative;
    display: grid;
    grid-template-columns: 112px 112px 112px 130px 142px minmax(340px, 1fr);
    grid-template-rows: 82px 54px 30px;
    gap: 8px;
}

.control-tile {
    width: 100%;
    height: 82px;
    min-width: 0;
    gap: 1px;
    padding: 5px;
    border-radius: 14px;
    font-size: 14px;
}

.control-tile .tile-icon {
    font-size: 21px;
}

.control-tile small {
    font-size: 11px;
}

.control-tile.auto {
    border-width: 3px;
    border-color: var(--green);
    background: #f0fbf2;
}

.control-tile[data-action="stop"] { grid-column: 1; grid-row: 1; }
.control-tile[data-action="pause"] { grid-column: 2; grid-row: 1; }
.control-tile[data-action="clean"] { grid-column: 3; grid-row: 1; }
.control-tile[data-action="manual-unload"] { grid-column: 4; grid-row: 1; }
.control-tile[data-action="auto-unload"] { grid-column: 5; grid-row: 1; }
.control-tile[data-action="conveyor"] { grid-column: 1; grid-row: 2 / 4; height: 92px; }
.control-tile[data-action="shiber-open"] { grid-column: 2; grid-row: 2; height: 54px; }
.control-tile[data-action="shiber-close"] { grid-column: 3; grid-row: 2; height: 54px; }

.control-tile[data-action="shiber-open"] .tile-icon,
.control-tile[data-action="shiber-close"] .tile-icon {
    font-size: 18px;
}

.control-tile[data-action="shiber-open"] small,
.control-tile[data-action="shiber-close"] small {
    display: none;
}

.loading-card {
    grid-column: 6;
    grid-row: 1;
    height: 82px;
    min-width: 0;
    padding: 7px 10px;
}

.loading-card-main strong {
    font-size: 15px;
}

.unload-config {
    grid-column: 4 / 6;
    grid-row: 2;
    display: flex;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 5px 9px;
    border: 2px solid #8fa9c5;
    border-radius: 14px;
    background: white;
    font-size: 13px;
}

.unload-config label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.unload-config .input {
    width: 74px;
    min-height: 34px;
    padding: 3px 6px;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 7px;
}

.check-line input {
    width: 18px;
    height: 18px;
}

.detailed-process {
    grid-column: 6;
    grid-row: 2 / 4;
    display: grid;
    grid-template-rows: auto auto 1fr;
    height: 92px;
    min-width: 0;
    padding: 8px 12px;
    overflow: hidden;
    border: 2px solid #8fa9c5;
    border-radius: 14px;
    background: white;
}

.detailed-process small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detailed-process strong {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detailed-process span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.indicator-row {
    grid-column: 2 / 4;
    grid-row: 3;
    margin: 0;
    gap: 6px;
}

.status-chip {
    min-width: 105px;
    min-height: 28px;
    padding: 2px 7px;
    font-size: 11px;
}

.other-mixer {
    grid-template-columns: 250px 140px 215px 150px 130px 130px 175px 1fr;
    gap: 12px;
    padding: 8px 18px;
}

.other-title {
    justify-content: center;
}

.other-title strong {
    font-size: 28px;
}

.other-metric small,
.other-timer small {
    font-size: 14px;
    text-align: center;
}

.other-metric strong,
.other-timer strong {
    margin-top: 4px;
    font-size: 24px;
    text-align: center;
}

.other-link {
    min-width: 184px;
    min-height: 62px;
}

@keyframes alarm-soft-pulse {
    0%, 100% { background-color: rgba(255, 244, 245, 0.95); }
    50% { background-color: rgba(255, 184, 190, 0.96); }
}

.alarm-strip.has-alarm {
    border-color: #f36d77;
    animation: alarm-soft-pulse 1.8s ease-in-out infinite;
}

.alarm-strip.has-alarm .alarm-icon {
    color: white;
    background: var(--red);
}

.alarm-strip.has-alarm span,
.alarm-active-text,
.field-error {
    color: var(--red);
}

@keyframes board-zone-20 {
    0%, 66%, 100% { background: #fff; }
    67%, 99% { background: #dff7dc; }
}

@keyframes board-zone-10 {
    0%, 49%, 100% { background: #fff; }
    50%, 99% { background: #bfeeba; }
}

.board-value.zone-20 { animation: board-zone-20 3s steps(1) infinite; }
.board-value.zone-10 { animation: board-zone-10 2s steps(1) infinite; }
.board-value.zone-5 { background: #91df89; }

.settings-page {
    min-width: 1180px;
    padding: 24px 30px 36px;
    overflow: auto;
}

.settings-wrap.settings-wide {
    max-width: 1500px;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.settings-header h1 {
    font-size: 40px;
}

.settings-header p,
.tag-settings-header p {
    margin: 5px 0 0;
    color: var(--muted);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.settings-card {
    width: auto;
    min-width: 0;
    padding: 22px;
    border-radius: 14px;
}

.settings-card-wide {
    grid-column: 1 / 3;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 12px;
}

.password-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0;
}

.settings-check {
    font-weight: 650;
}

.tag-settings-card {
    margin-top: 16px;
}

.tag-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.tag-settings-header h2,
.tag-settings-header p {
    margin-bottom: 0;
}

.tag-table-scroll {
    max-height: 430px;
}

.tag-table code {
    color: #32465a;
    font-family: Consolas, monospace;
    font-size: 14px;
}

.priority-chip {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.priority-high { color: #a30f1c; background: #ffe3e6; }
.priority-medium { color: #885100; background: #fff0cf; }
.priority-low { color: #24649a; background: #e6f2ff; }
.tag-ok { color: var(--green); font-weight: 650; }

.help-page {
    height: 100%;
    min-width: 1100px;
    padding: 24px;
    overflow: auto;
    background: var(--page);
}

.help-heading {
    margin-bottom: 16px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 30px;
}

.help-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 190px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.help-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    object-position: left top;
    border-right: 1px solid var(--line);
}

.help-card > div {
    padding: 18px;
}

.help-card h2 {
    margin: 0 0 9px;
    font-size: 23px;
}

.help-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.numeric-keypad {
    width: 430px;
    max-width: 100%;
    margin: 0 auto;
}

.keypad-display {
    min-height: 72px;
    margin-bottom: 12px;
    padding: 10px 18px;
    overflow: hidden;
    border: 2px solid var(--blue);
    border-radius: 12px;
    background: #f8fbff;
    font-size: 38px;
    font-weight: 750;
    text-align: right;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.keypad-grid button {
    min-height: 68px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: white;
    font-size: 28px;
    font-weight: 700;
}

.keypad-grid button:hover {
    background: var(--blue-soft);
}

.keypad-grid .keypad-secondary {
    color: #475467;
    background: #eef3f8;
    font-size: 18px;
}

.keypad-actions {
    justify-content: flex-end;
    margin-top: 14px;
}

.password-dialog p {
    margin-top: 0;
}

.field-error {
    min-height: 20px;
    margin: 8px 0;
    font-weight: 650;
}

.ingredient-icon-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.icon-picker-hint {
    margin: 0 0 7px;
    font-size: 13px;
}

.ingredient-icon-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ingredient-icon-option span {
    display: grid;
    height: 76px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

.ingredient-icon-option img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.ingredient-icon-option input:checked + span {
    border-color: var(--green);
    background: var(--green-soft);
}

.alarm-filters {
    grid-template-columns: 170px minmax(230px, 1fr) 180px 180px 170px auto auto auto;
}

.tour-layer {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(17, 24, 39, 0.2);
    pointer-events: none;
}

.tour-layer[hidden] {
    display: none;
}

.tour-card {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 160;
    width: min(460px, calc(100vw - 60px));
    padding: 20px;
    border: 1px solid #e4bd47;
    border-radius: 16px;
    background: white;
    box-shadow: 0 22px 70px rgba(17, 24, 39, 0.28);
    pointer-events: auto;
}

.tour-card-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 9px;
    align-items: center;
    color: #7a5a00;
    font-size: 14px;
    font-weight: 750;
}

.tour-bulb {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #fff3bd;
}

.tour-card h2 {
    margin: 14px 0 7px;
    font-size: 25px;
}

.tour-card p {
    min-height: 68px;
    margin: 0;
    color: #475467;
    font-size: 16px;
    line-height: 1.45;
}

.tour-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 16px;
}

.tour-focus {
    position: relative !important;
    z-index: 151 !important;
    outline: 5px solid #ffd54d !important;
    outline-offset: 5px;
    box-shadow: 0 0 0 9999px rgba(17, 24, 39, 0.12), 0 0 32px rgba(255, 213, 77, 0.85) !important;
}

@media (max-width: 1500px) {
    .help-card {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .settings-form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
