:root {
    --bg-1: #f1f5e8;
    --bg-2: #d8f3dc;
    --panel: #ffffffee;
    --ink: #122620;
    --accent: #ff7a00;
    --accent-2: #005f73;
    --danger: #8a1c1c;
    --ok: #12502f;
    --ring: #0a9396;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 20%, #ffd6a5 0, transparent 35%),
        radial-gradient(circle at 85% 0%, #94d2bd 0, transparent 40%),
        linear-gradient(140deg, var(--bg-1), var(--bg-2));
    min-height: 100vh;
}

.page {
    width: min(960px, 92vw);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    max-width: 18ch;
}

.kicker {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    margin-bottom: 0.8rem;
}

.subtitle {
    max-width: 60ch;
    color: #29443b;
}

.link-btn {
    display: inline-block;
    margin-top: 0.6rem;
    text-decoration: none;
    color: #0a5568;
    font-weight: 700;
}

.panel,
.messages {
    border: 1px solid #d2e6d8;
    border-radius: 20px;
    background: var(--panel);
    backdrop-filter: blur(4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    padding: 1.2rem;
    margin-top: 1.3rem;
}

.pipeline-form {
    display: grid;
    gap: 0.9rem;
}

.filter-form {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field span {
    font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="file"] {
    border: 1px solid #bad9ca;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    font-size: 1rem;
    background: #f8fff8;
}

input:focus {
    outline: 2px solid var(--ring);
    outline-offset: 1px;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.ssh-grid {
    display: none;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.ssh-grid.static {
    display: grid;
}

.ssh-grid .full {
    grid-column: 1 / -1;
}

button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #ee9b00);
    color: #112;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

button.ghost {
    background: transparent;
    color: var(--accent-2);
    border: 1px solid #8ac4b7;
}

.cleanup-form {
    margin-top: 0.9rem;
}

button:hover {
    transform: translateY(-1px);
    filter: saturate(1.1);
}

.messages h2 {
    margin-top: 0;
}

.messages ul {
    margin-bottom: 0;
}

.messages.error {
    border-color: #f3caca;
    color: var(--danger);
}

.messages.success {
    border-color: #bde8c7;
    color: var(--ok);
}

.messages.info {
    border-color: #b3d5df;
    color: #16485a;
}

.url-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.url-list li {
    display: grid;
    gap: 0.2rem;
}

.url-list a {
    color: #0c5f74;
    text-decoration: none;
    word-break: break-all;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid #d7eadf;
    padding: 0.7rem;
    vertical-align: top;
}

thead th {
    background: #ecf8f0;
}

td a {
    color: #0c5f74;
    text-decoration: none;
    word-break: break-all;
}

.footer-brand {
    position:fixed;
    right: 50px;
    bottom: 50px;
    opacity: .7;
    color: #888;
}

.footer-brand .footer-brand-logo {
    height: 17px;
    width: auto;
}

@media (max-width: 720px) {
    .ssh-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding-top: 1.2rem;
    }
}
