#ZAPPOYLiveHamburger {
    position: fixed;
    top: 72px;
    left: 18px;
    z-index: 100000;
    width: 44px;
    height: 44px;
    border: 1px solid #c49a45;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 5px 20px #00000018;
}

#ZAPPOYLiveDeviceMenu {
    position: fixed;
    top: 122px;
    left: 18px;
    z-index: 99999;
    width: 270px;
    max-height: 70vh;
    overflow: auto;
    display: none;
    background: #fff;
    border: 1px solid #d9bd7b;
    border-radius: 14px;
    box-shadow: 0 12px 40px #00000020;
    padding: 10px;
}

#ZAPPOYLiveDeviceMenu.open {
    display: block;
}

.zappoy-live-menu-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 8px;
}

.zappoy-device-item {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 10px;
    text-align: left;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.zappoy-device-item:hover,
.zappoy-device-item.active {
    background: #f7f0e2;
}

.zappoy-device-item small {
    opacity: .55;
}

#ZAPPOYLiveSurface {
    max-width: 850px;
    margin: 110px auto 40px;
    padding: 0 18px;
    box-sizing: border-box;
}

.zappoy-live-device-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
}

.zappoy-live-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(190px, 1fr)
    );
    gap: 16px;
}

.zappoy-live-capability {
    position: relative;
    min-height: 130px;
    padding: 14px;
    border: 1px solid #d9bd7b;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px #00000010;
    box-sizing: border-box;
}

.zappoy-cap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.zappoy-cap-title {
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.zappoy-cap-more {
    border: 0;
    background: transparent;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.zappoy-cap-body {
    margin-top: 18px;
}

.zappoy-control-button,
.zappoy-enum-button {
    border: 1px solid #c49a45;
    border-radius: 10px;
    background: #fff;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
}

.zappoy-control-button.on,
.zappoy-enum-button.active {
    background: #c49a45;
    color: #fff;
}

.zappoy-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.zappoy-stepper.vertical {
    flex-direction: column;
}

.zappoy-stepper button {
    width: 44px;
    height: 44px;
    border: 1px solid #c49a45;
    border-radius: 10px;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
}

.zappoy-stepper .zappoy-value {
    min-width: 55px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
}

.zappoy-live-slider {
    width: 100%;
}

.zappoy-live-progress {
    width: 100%;
}

.zappoy-live-value {
    text-align: center;
    margin-top: 7px;
    font-weight: 700;
}

.zappoy-enum-group {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.zappoy-enum-group.vertical {
    flex-direction: column;
}

.zappoy-live-select,
.zappoy-live-text {
    width: 100%;
    box-sizing: border-box;
    padding: 9px;
    border: 1px solid #c49a45;
    border-radius: 9px;
    background: #fff;
}

.zappoy-live-readonly {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 11px;
}

.zappoy-live-message,
.zappoy-live-error {
    padding: 18px;
    border: 1px solid #d9bd7b;
    border-radius: 12px;
    background: #fff;
}

.zappoy-live-error {
    color: #a40000;
}

.zappoy-button-menu {
    position: fixed;
    z-index: 100001;
    width: 190px;
    background: #fff;
    border: 1px solid #d9bd7b;
    border-radius: 11px;
    box-shadow: 0 10px 35px #00000020;
    padding: 6px;
}

.zappoy-button-menu button {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 10px;
    border-radius: 7px;
    cursor: pointer;
}

.zappoy-button-menu button:hover {
    background: #f7f0e2;
}

#ZAPPOYTimerDialog {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00000035;
    padding: 18px;
}

.zappoy-timer-card {
    width: min(360px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px #00000030;
}

.zappoy-timer-card h3 {
    margin-top: 0;
}

.zappoy-timer-card label {
    display: block;
    margin: 10px 0 5px;
    font-size: 12px;
    font-weight: 700;
}

.zappoy-timer-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px;
    border: 1px solid #c49a45;
    border-radius: 8px;
}

.zappoy-timer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.zappoy-timer-actions button {
    border: 1px solid #c49a45;
    border-radius: 9px;
    background: #fff;
    padding: 9px 14px;
    cursor: pointer;
}

.zappoy-timer-badge {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 600px) {
    #ZAPPOYLiveSurface {
        margin-top: 100px;
        padding: 0 10px;
    }

    .zappoy-live-grid {
        grid-template-columns: 1fr;
    }

    #ZAPPOYLiveDeviceMenu {
        left: 10px;
        width: calc(100vw - 20px);
    }
}
