html { zoom: .8; }
.recipe-use-shell { min-height: 125vh; }
.recipe-use-page {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
    padding: 29px 22px 30px;
    position: relative;
    overflow-x: auto;
}
.recipe-use-period {
    min-width: 90px;
    height: 35px;
    display: grid;
    place-items: center;
    margin-left: 14px;
    border-radius: 20px;
    background: #173c78;
    color: white;
    font-size: 12px;
    font-weight: 700;
}
.recipe-use-period.day { background: #ffd000; color: #222; }
.recipe-library {
    min-width: 1040px;
    border: 1px solid #25482d;
    background: #e8ffe8;
}
.recipe-use-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 18px;
    border-bottom: 1px solid #afd5b4;
    background: rgba(255,255,255,.44);
}
.recipe-use-header h1 { margin: 0; font-size: 20px; }
.recipe-use-header p { margin: 4px 0 0; color: #506c55; font-size: 12px; }
.recipe-use-header > strong { color: #276333; font-size: 13px; }
.recipe-table-wrap { width: 100%; overflow-x: auto; }
.recipe-select-table {
    width: 100%;
    min-width: 1500px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #111;
    font-size: 12px;
}
.recipe-select-table th,
.recipe-select-table td {
    height: 34px;
    padding: 7px 12px;
    border-right: 1px solid #b5d8bb;
    border-bottom: 1px solid #b5d8bb;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recipe-select-table th {
    height: 36px;
    background: #a3ecad;
    color: #173c20;
    font-weight: 700;
}
.recipe-select-table th:first-child,
.recipe-select-table td:first-child {
    width: 115px;
    font-weight: 700;
}
.recipe-select-table th:nth-child(n+12),
.recipe-select-table td:nth-child(n+12) { width: 130px; }
.recipe-select-table tbody tr {
    background: #f2fff3;
    cursor: pointer;
    outline: none;
}
.recipe-select-table tbody tr:nth-child(even) { background: #d9f7dd; }
.recipe-select-table tbody tr:hover,
.recipe-select-table tbody tr:focus-visible { background: #c1f0c8; }
.recipe-select-table tbody tr.selected {
    background: #89e29a;
    box-shadow: inset 4px 0 #087d35;
}
.recipe-select-table tbody tr.invalid { color: #667268; }
.recipe-select-table tbody tr.invalid:hover,
.recipe-select-table tbody tr.invalid:focus-visible { background: #f7efce; }
.recipe-use-empty {
    height: 120px !important;
    color: #4d6852;
    font-size: 16px;
    text-align: center !important;
}
.recipe-target-grid {
    min-width: 1500px;
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
}
.recipe-target-card {
    min-height: 270px;
    padding: 0 22px 20px;
    border: 1px solid #bfd7c3;
    background: #fff;
    text-align: center;
}
.recipe-target-climate { grid-column: 1; }
.recipe-target-card h2 {
    margin: 0 -22px 22px;
    padding: 14px;
    background: #cff5d3;
    font-size: 25px;
}
.recipe-target-waiting {
    min-height: 145px;
    display: grid;
    place-items: center;
    color: #778078;
    font-size: 16px;
}
.recipe-target-waiting.ready-to-send { min-height: 77px; }
.recipe-target-waiting[hidden],
.recipe-target-controls[hidden],
.recipe-target-selection[hidden] { display: none; }
.recipe-target-selection {
    display: block;
    border: 1px solid #111;
    background: #efffef;
    color: #050505;
    text-align: left;
}
.recipe-state-header {
    min-height: 54px;
    display: grid;
    grid-template-columns: 1fr auto 122px;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    background: #050505;
    color: #fff;
    font-size: 19px;
}
.recipe-state-header strong { font-size: 21px; }
.recipe-target-card .recipe-state-header output {
    min-height: 34px;
    display: grid;
    place-items: center;
    padding: 3px 8px;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    margin-top: 0;
}
.recipe-state-body { padding: 17px 12px 18px; }
.recipe-state-row {
    display: grid;
    grid-template-columns: repeat(4, 78px);
    gap: 16px;
    margin-bottom: 17px;
}
.recipe-state-row.columns-4,
.recipe-state-row.columns-3 { grid-template-columns: repeat(4, 78px); }
.recipe-state-metric strong,
.recipe-state-time > strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}
.recipe-target-card .recipe-state-metric output,
.recipe-target-card .recipe-state-time-values output {
    width: 78px;
    min-width: 0;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-top: 0;
}
.recipe-state-time-row {
    display: grid;
    grid-template-columns: 132px 160px;
    gap: 18px;
}
.recipe-state-time-values {
    display: grid;
    grid-template-columns: 44px 8px 44px;
    align-items: center;
}
.recipe-target-card .recipe-state-time-values output {
    width: 44px;
    min-width: 0;
}
.recipe-state-time-values span {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1;
}
.recipe-target-card button {
    width: 100%;
    height: 43px;
    margin-top: 18px;
    border: 1px solid #397c20;
    border-radius: 5px;
    background: #7ed321;
    box-shadow: inset 0 -4px rgba(0,0,0,.14);
    font-weight: 700;
    cursor: pointer;
}
.recipe-target-card button:disabled { background: #ccd3cc; border-color: #aeb7af; cursor: not-allowed; opacity: .75; }
.recipe-target-card button.pending { background: #ffd04d; cursor: wait; }
.recipe-target-card code { display: block; margin-top: 13px; color: #54685a; font-size: 11px; }
.recipe-target-card output { min-height: 18px; display: block; margin-top: 11px; color: #237333; font-size: 12px; }
.recipe-target-card output.error { color: #aa2020; }
.recipe-use-data-status {
    position: fixed;
    right: 18px;
    bottom: 14px;
    z-index: 10;
    padding: 7px 12px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 700;
}
.recipe-use-data-status.waiting { background: #fff1bd; color: #815a00; }
.recipe-use-data-status.online { background: #d9f7d2; color: #18702a; }
.recipe-use-data-status.offline { background: #ffe0e0; color: #a41d1d; }
@media (max-width: 900px) {
    .recipe-use-page { padding: 16px; }
    .recipe-use-period { display: none; }
    .recipe-library { min-width: 860px; }
    .recipe-target-grid { min-width: 1500px; }
    .recipe-target-grid { gap: 18px; }
}
