/* Installer-only styling. The shared look (background, .container, .btn,
   .info-box, the Cinzel logo) comes from data/css/common.css, copied in by
   build-scripts/assemble_site.py - never duplicate those rules here. */

.container {
    max-width: 480px;
}

esp-web-install-button {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

esp-web-install-button [slot="activate"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.2rem 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
}

/* .icon-btn/.icon aren't in common.css (only data/css/controls.css, which
   isn't copied into the site - see assemble_site.py's
   _copy_shared_ui_assets()), so the activate button - a download glyph, no
   label text - defines its own icon sizing here rather than pulling in the
   whole device-page stylesheet for one class. */
esp-web-install-button [slot="activate"] .icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.version-line {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.version-line a {
    color: #64b5f6;
}

.parts {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.parts h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.parts ul {
    margin: 0;
    padding-left: 1.2rem;
    font-family: 'Consolas', ui-monospace, monospace;
}

/* Required, above the install button so it can't be missed. */
.model-select {
    margin-bottom: 1rem;
}

.model-select label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.4rem;
}

.model-select select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.model-status {
    min-height: 1.2em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0.75rem 0;
}

/* A single non-intrusive label, closed by default - not a wall of offsets
   most visitors never need to see. */
.parts-drawer {
    margin-top: 1.5rem;
}

.parts-drawer summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.parts-drawer[open] summary {
    margin-bottom: 0.75rem;
}

/* Optional WiFi provisioning (#245) - same drawer chrome as .parts-drawer above, plus
   labelled text inputs styled like .model-select select. */
#wifi-provision .info-box {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
}

#wifi-provision label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.4rem;
}

#wifi-provision input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.75rem;
}

.console-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.console-controls .btn {
    flex: 1;
}

.console-log {
    height: 12rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Consolas', ui-monospace, monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-word;
}
