html,
body {
    height: 100%;
    margin: 0;
    background: #000;
    color: #e8e8e8;
    font-family: Roboto, "Segoe UI", sans-serif;
}

.play-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    overflow: auto;
}

.play-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #0099e0;
    background: #000;
}

.play-title {
    color: #0099e0;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.play-title:hover {
    color: #00bfff;
}

.play-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bbb;
    font-size: 0.92rem;
}

.play-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.play-dot.on {
    background: #3dd68c;
}

.play-dot.wait {
    background: #D4AF37;
}

.play-dot.off {
    background: #ff4444;
}

.play-age {
    color: #ff4444;
    font-weight: 700;
    margin-left: auto;
}

.play-bar button,
.play-bar select,
.play-send {
    background: #000;
    color: #fff;
    border: 1px solid #0099e0;
    border-radius: 2px;
    padding: 6px 10px;
    font: inherit;
    cursor: pointer;
}

.play-bar button:hover,
.play-send:hover,
.play-bar button[aria-pressed="true"] {
    background: #0099e0;
    color: #000;
}

.play-bar select {
    cursor: pointer;
}

.play-term {
    flex: 1;
    min-height: 140px;
    padding: 6px 8px 0;
    background: #000;
    overflow: hidden;
    position: relative;
}

.play-term .xterm {
    height: 100%;
}

.play-hidden {
    display: none;
    margin: 0;
    padding: 4px 12px 0;
    color: #D4AF37;
    font-size: 0.9rem;
}

.play-hidden.show {
    display: block;
}

.play-dock {
    position: relative;
    z-index: 2;
    background: #000;
    border-top: 1px solid #1c1c1c;
}

.play-dock.is-secret .play-chips button,
.play-dock.is-secret .play-pad button {
    opacity: 0.35;
    pointer-events: none;
}

.play-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px 0;
}

.play-chips button,
.play-pad button {
    background: #0a0a0a;
    color: #e8e8e8;
    border: 1px solid #0099e0;
    border-radius: 999px;
    padding: 4px 10px;
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}

.play-chips button:hover,
.play-pad button:hover {
    background: #0099e0;
    color: #000;
}

.play-chips button.play-chip-hot {
    border-color: #ff6b6b;
    color: #ffb4b4;
}

.play-chips button.play-chip-hot:hover {
    background: #ff4444;
    color: #fff;
}

.play-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.play-pad {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    gap: 4px;
    flex: 0 0 auto;
}

.play-pad button {
    height: 28px;
    padding: 0;
    border-radius: 6px;
    font-size: 0.72rem;
}

.play-compose {
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 0;
    padding: 0;
    background: #000;
}

.play-compose input {
    flex: 1;
    min-width: 0;
    background: #050505;
    color: #fff;
    border: 1px solid #333;
    border-radius: 2px;
    padding: 10px 12px;
    font-size: 16px;
    font-family: Consolas, "Courier New", monospace;
}

.play-compose input:focus {
    border-color: #0099e0;
    outline: none;
}

.play-compose input.play-mask {
    -webkit-text-security: disc;
}

.play-hint,
.play-alias-help {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 12px 8px;
    color: #8a8a8a;
    font-size: 0.82rem;
}

.play-aliases {
    display: none;
    position: relative;
    z-index: 2;
    padding: 0 12px 12px;
    background: #000;
}

.play-aliases.open {
    display: block;
}

.play-aliases button {
    background: #000;
    color: #fff;
    border: 1px solid #0099e0;
    border-radius: 2px;
    padding: 6px 10px;
    font: inherit;
    cursor: pointer;
}

.play-aliases button:hover {
    background: #0099e0;
    color: #000;
}

.play-aliases textarea {
    width: 100%;
    min-height: 96px;
    box-sizing: border-box;
    margin: 6px 0;
    background: #050505;
    color: #ddd;
    border: 1px solid #333;
    padding: 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
}

.play-aliases textarea:focus {
    border-color: #0099e0;
    outline: none;
}

.play-client-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.play-client-row label {
    color: #bbb;
}

.play-client-row select,
.play-client-grid input {
    background: #050505;
    color: #ddd;
    border: 1px solid #333;
    border-radius: 2px;
    padding: 6px 8px;
    font: inherit;
    font-size: 14px;
}

.play-client-row select:focus,
.play-client-grid input:focus {
    border-color: #0099e0;
    outline: none;
}

.play-client-grid {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 280px);
    gap: 6px 8px;
    margin: 8px 0;
}

.play-client-grid label {
    align-self: center;
    color: #bbb;
}

@media (max-width: 720px) {
    .play-age {
        margin-left: 0;
        width: 100%;
    }

    .play-entry {
        flex-wrap: wrap;
    }

    .play-compose {
        flex-basis: 100%;
    }
}
