#dgcloud-widget {
    margin: 0 auto;
    font-family: inherit;
}

#dg-login-view {
    max-width: 480px;
    margin: 0 auto;
}

#dgcloud-widget input[type="email"],
#dgcloud-widget input[type="password"] {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

#dgcloud-widget button {
    cursor: pointer;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    background: #17342c;
    color: #fff;
    font-size: 14px;
}

#dgcloud-widget button:hover {
    background: #0f6e56;
}

.dg-error {
    color: #b3261e;
    font-size: 13px;
    min-height: 18px;
    margin-top: 8px;
}

.dg-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dg-session-info {
    font-size: 12px;
    color: #5f5e5a;
}

.dg-session-info.dg-warning {
    color: #b3261e;
    font-weight: 600;
}

#dg-device-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#dg-device-list li {
    margin-bottom: 8px;
}

.dg-device-btn {
    width: 100%;
    text-align: left;
    background: #f1f5f2;
    color: #17342c;
}

.dg-device-btn:hover {
    background: #dceee4;
}

#dg-viewer-view {
    max-width: 900px;
    margin: 0 auto;
}

#dg-back-btn {
    background: transparent;
    color: #17342c;
    padding: 8px 0;
    margin-bottom: 10px;
}

#dg-back-btn:hover {
    background: transparent;
    text-decoration: underline;
}

/* Desktop: iframe largo, altezza generosa e fissa */
#dg-iframe {
    width: 100%;
    height: 600px !important;
    border: 0;
    border-radius: 6px;
    display: block;
}

/* Smartphone: iframe verticale, altezza proporzionata alla larghezza */
@media (max-width: 600px) {
    #dg-iframe {
        height: auto;
        aspect-ratio: 9 / 16;
    }
}
