:root {
    --bg: #f4f5f7;
    --panel: #fff;
    --ink: #111820;
    --muted: #6e7781;
    --line: #e3e6e8;
    --lime: #c9f45a;
    --lime-dark: #8dbb1d;
    --nav: #111820;
    --blue: #5d8eff;
    --green: #32bd76;
    --red: #f06a61;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg)
}

button, input, textarea {
    font: inherit
}

button {
    cursor: pointer
}

.hidden {
    display: none !important
}

.eyebrow {
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: .18em;
    color: #82904f;
    text-transform: uppercase
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--lime);
    color: #111820;
    font-weight: 950;
    border-radius: 8px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12)
}

.brand-mark.large {
    width: 54px;
    height: 54px;
    font-size: 23px;
    border-radius: 12px
}

.auth-view {
    min-height: 100vh;
    display: grid;
    grid-template-columns:minmax(480px, 1.25fr) minmax(430px, .75fr);
    background: #111820
}

.auth-brand {
    position: relative;
    overflow: hidden;
    padding: 9vh 8vw;
    color: white;
    background: radial-gradient(circle at 15% 80%, rgba(201, 244, 90, .12), transparent 28%), #111820
}

.auth-brand:after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -120px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(201, 244, 90, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(201, 244, 90, .025), 0 0 0 120px rgba(201, 244, 90, .02)
}

.auth-brand .eyebrow {
    margin-top: 11vh;
    color: var(--lime)
}

.auth-brand h1 {
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.03;
    letter-spacing: -.055em;
    margin: 22px 0
}

.auth-brand h1 span {
    color: var(--lime)
}

.auth-brand > p {
    max-width: 620px;
    color: #aeb6bd;
    font-size: 17px;
    line-height: 1.8
}

.feature-row {
    position: absolute;
    left: 8vw;
    right: 5vw;
    bottom: 8vh;
    z-index: 2;
    display: flex;
    gap: 38px
}

.feature-row > div {
    display: grid;
    grid-template-columns:18px auto;
    column-gap: 8px;
    row-gap: 4px;
    align-items: center
}

.feature-row i {
    grid-row: span 2;
    color: var(--lime);
    font-style: normal
}

.feature-row strong {
    font-size: 13px
}

.feature-row span {
    font-size: 11px;
    color: #737f88
}

.auth-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent 20%, black)
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 40px;
    background: #f3f5f0
}

.auth-card {
    width: min(400px, 100%)
}

.mobile-brand {
    display: none
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #d9ddd5;
    margin-bottom: 42px
}

.auth-tabs button {
    flex: 1;
    border: 0;
    background: none;
    padding: 14px;
    color: #8b948a;
    border-bottom: 2px solid transparent
}

.auth-tabs button.active {
    color: #151c17;
    border-color: #151c17;
    font-weight: 750
}

.form-heading h2 {
    font-size: 30px;
    letter-spacing: -.03em;
    margin: 0 0 8px
}

.form-heading p {
    color: var(--muted);
    margin: 0 0 32px
}

.auth-form {
    display: grid;
    gap: 20px
}

.auth-form label, .project-form > label, .form-grid label {
    display: grid;
    gap: 8px;
    font-size: 12px;
    font-weight: 720
}

.auth-form input, .project-form input, .project-form select {
    width: 100%;
    border: 1px solid #d7ddd5;
    border-radius: 8px;
    background: white;
    padding: 13px 14px;
    outline: none;
    transition: .2s
}

.auth-form input:focus, .project-form input:focus, .project-form select:focus {
    border-color: #91b936;
    box-shadow: 0 0 0 3px rgba(201, 244, 90, .25)
}

.primary-button {
    border: 0;
    border-radius: 8px;
    background: var(--nav);
    color: white;
    padding: 12px 17px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px
}

.primary-button:hover {
    background: #26303a
}

.primary-button.full {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
    padding: 14px 17px
}

.primary-button.full i {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    background: var(--lime);
    color: #17200b;
    font-style: normal
}

.primary-button.compact {
    font-size: 12px;
    padding: 9px 13px
}

.terms {
    text-align: center;
    color: #929a91;
    font-size: 10px;
    margin-top: 25px
}

.toast {
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 22px;
    transform: translate(-50%, -20px);
    padding: 11px 16px;
    border-radius: 8px;
    background: #182129;
    color: white;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    font-size: 13px
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

.toast.error {
    background: #a83e38
}

.app-view {
    min-height: 100vh
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 232px;
    padding: 22px 16px;
    background: var(--nav);
    color: #dce1e5;
    display: flex;
    flex-direction: column;
    z-index: 10
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    color: white;
    text-decoration: none;
    padding: 0 8px;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -.02em
}

.sidebar nav {
    display: grid;
    gap: 5px
}

.nav-caption {
    font-size: 9px;
    color: #59636d;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 19px 12px 8px
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #89949e;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 13px
}

.sidebar nav a:hover {
    color: white;
    background: #1a242d
}

.sidebar nav a.active {
    background: #26302e;
    color: white
}

.sidebar nav a.active i {
    color: var(--lime)
}

.sidebar nav a i {
    font-style: normal;
    font-size: 16px;
    width: 18px
}

.sidebar nav a b {
    margin-left: auto;
    border-radius: 10px;
    background: #2b3640;
    color: #89949e;
    padding: 2px 7px;
    font-size: 9px
}

.worker-card {
    margin-top: auto;
    border: 1px solid #29343e;
    background: #171f27;
    padding: 12px;
    border-radius: 8px
}

.worker-head {
    display: flex;
    justify-content: space-between;
    font-size: 10px
}

.worker-head span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #d7dee3
}

.worker-head b {
    color: #7ca632
}

.worker-card p {
    color: #68747e;
    font-size: 9px;
    line-height: 1.5;
    margin: 7px 0 0
}

.pulse-dot {
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    background: var(--lime) !important;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(201, 244, 90, .12);
    animation: pulse 2s infinite
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 7px rgba(201, 244, 90, 0)
    }
}

.user-block {
    display: grid;
    grid-template-columns:32px 1fr auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    border: 0;
    border-top: 1px solid #27313a;
    background: none;
    color: white;
    text-align: left;
    margin-top: 13px;
    padding: 15px 7px 4px
}

.user-block > span:first-child {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #38434c;
    font-size: 11px
}

.user-block > span:nth-child(2) {
    display: grid;
    min-width: 0
}

.user-block b {
    font-size: 11px
}

.user-block small {
    font-size: 8px;
    color: #69757f;
    overflow: hidden;
    text-overflow: ellipsis
}

.user-block i {
    color: #69757f
}

.logout-button {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 67px;
    border: 1px solid #34404a;
    background: #202a33;
    color: #dce1e5;
    border-radius: 7px;
    padding: 10px
}

.main {
    margin-left: 232px;
    min-height: 100vh
}

.topbar {
    height: 65px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 8;
    font-size: 11px
}

.breadcrumb {
    color: #8d959c
}

.slash {
    padding: 0 10px;
    color: #c2c7ca
}

.top-actions, .connection {
    display: flex;
    align-items: center;
    gap: 16px
}

.connection {
    color: #6e7880
}

.connection i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #70bd38;
    box-shadow: 0 0 0 3px #e1f2d5
}

.page {
    padding: 38px 4vw 60px;
    max-width: 1500px;
    margin: auto
}

.welcome-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px
}

.welcome-row h1 {
    font-size: 31px;
    letter-spacing: -.04em;
    margin: 5px 0 6px
}

.welcome-row > div > p:last-child {
    color: var(--muted);
    font-size: 13px;
    margin: 0
}

.ghost-button, .danger-button, .back-button {
    border: 1px solid var(--line);
    background: white;
    border-radius: 7px;
    padding: 9px 12px;
    color: #65707a;
    font-size: 11px
}

.ghost-button:hover, .back-button:hover {
    color: #151c22;
    border-color: #bbc1c5
}

.stats-grid {
    display: grid;
    grid-template-columns:1.25fr repeat(3, 1fr);
    gap: 14px
}

.stat-card {
    position: relative;
    min-height: 150px;
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden
}

.stat-card.accent {
    background: var(--nav);
    color: white;
    border-color: var(--nav)
}

.stat-card > p {
    font-size: 11px;
    color: #7e8790;
    margin: 0 0 17px
}

.stat-card.accent > p {
    color: #8d999f
}

.stat-card > strong {
    display: block;
    font-size: 29px;
    letter-spacing: -.04em
}

.stat-card > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #929aa1;
    font-size: 9px;
    margin-top: 10px
}

.stat-icon {
    position: absolute;
    right: 18px;
    top: 17px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 7px;
    background: #f1f3f4;
    color: #66717a
}

.stat-icon.blue {
    background: #edf2ff;
    color: #5d8eff
}

.stat-icon.green {
    background: #e8f8ef;
    color: #31a66b
}

.stat-icon.neutral {
    background: #f1f3f4
}

.stat-card.accent .stat-icon {
    background: #273139;
    color: var(--lime)
}

.sparkbars {
    position: absolute;
    right: 12px;
    bottom: 0;
    height: 72px;
    width: 48%;
    display: flex;
    align-items: end;
    gap: 5px;
    opacity: .8
}

.sparkbars i {
    flex: 1;
    background: linear-gradient(var(--lime), rgba(201, 244, 90, .05));
    border-radius: 2px 2px 0 0
}

.sparkbars i:nth-child(1) {
    height: 24%
}

.sparkbars i:nth-child(2) {
    height: 42%
}

.sparkbars i:nth-child(3) {
    height: 31%
}

.sparkbars i:nth-child(4) {
    height: 60%
}

.sparkbars i:nth-child(5) {
    height: 48%
}

.sparkbars i:nth-child(6) {
    height: 79%
}

.sparkbars i:nth-child(7) {
    height: 92%
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 34px 0 14px
}

.section-head h2 {
    font-size: 16px;
    margin: 0 0 5px
}

.section-head p {
    font-size: 10px;
    color: #90989f;
    margin: 0
}

.section-head a {
    color: #6d777e;
    text-decoration: none;
    font-size: 10px
}

.section-head a span {
    color: #94bb35;
    padding-left: 6px
}

.project-list {
    display: grid;
    gap: 8px
}

.project-row {
    display: grid;
    grid-template-columns:minmax(240px, 1.6fr) 1fr 120px 110px 28px;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: .18s
}

.project-row:hover {
    border-color: #c8ced1;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(25, 35, 43, .05)
}

.project-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}

.project-symbol {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: #f0f3ec;
    color: #91b52e;
    font-family: var(--mono);
    font-weight: 800
}

.project-main > div {
    min-width: 0
}

.project-main b {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.project-main span {
    display: block;
    font-family: var(--mono);
    font-size: 8px;
    color: #8b949b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.project-stage span, .project-time span {
    display: block;
    color: #939ba2;
    font-size: 8px;
    margin-bottom: 4px
}

.project-stage b, .project-time b {
    font-size: 9px
}

.project-stage .mini-progress {
    height: 3px;
    background: #edf0f1;
    margin-top: 7px;
    border-radius: 3px;
    overflow: hidden
}

.mini-progress i {
    display: block;
    height: 100%;
    background: var(--lime-dark)
}

.status-badge {
    justify-self: start;
    border-radius: 20px;
    padding: 5px 9px;
    font-size: 8px;
    font-weight: 800;
    background: #edf0f2;
    color: #68737b
}

.status-badge.running, .status-badge.queued {
    background: #eff6db;
    color: #6e941d
}

.status-badge.completed {
    background: #e7f7ee;
    color: #258655
}

.status-badge.failed, .status-badge.cancelled {
    background: #fcebea;
    color: #b64d46
}

.row-arrow {
    color: #adb4b9
}

.empty-state {
    border: 1px dashed #cfd4d6;
    border-radius: 9px;
    padding: 48px;
    text-align: center;
    background: rgba(255, 255, 255, .45)
}

.empty-state i {
    display: block;
    font-style: normal;
    color: #a6c64d;
    font-size: 30px
}

.empty-state b {
    display: block;
    margin: 12px 0 7px
}

.empty-state span {
    color: #8d969d;
    font-size: 11px
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0 11px;
    width: 300px;
    color: #89929a
}

.search-box input {
    border: 0;
    outline: 0;
    padding: 10px 0;
    width: 100%;
    font-size: 11px
}

.filter-pills {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: #e9ecee;
    border-radius: 7px
}

.filter-pills button {
    border: 0;
    background: none;
    border-radius: 5px;
    padding: 7px 12px;
    color: #7c858d;
    font-size: 9px
}

.filter-pills button.active {
    background: white;
    color: #1b2329;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06)
}

.usage-hero {
    background: var(--nav);
    color: white;
    min-height: 190px;
    border-radius: 10px;
    padding: 30px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: radial-gradient(circle at 80% 120%, rgba(201, 244, 90, .13), transparent 35%)
}

.usage-hero > div:first-child:not(.usage-hero-head) {
    display: grid
}

.usage-hero span {
    font-size: 11px;
    color: #8e9aa3
}

.usage-hero strong {
    font-size: 48px;
    letter-spacing: -.05em;
    margin-top: 10px
}

.usage-hero small {
    font-size: 9px;
    color: var(--lime);
    letter-spacing: .15em
}

.usage-ring {
    width: 110px;
    height: 110px;
    border: 8px solid #28343c;
    border-top-color: var(--lime);
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center
}

.usage-ring span {
    color: white;
    font-size: 22px;
    font-weight: 800
}

.usage-ring small {
    color: #82909a
}

.usage-hero {
    display: grid;
    gap: 24px;
    padding: 26px 30px
}

.usage-hero > .usage-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.usage-hero-head h2 {
    margin: 4px 0 5px;
    font-size: 24px;
    letter-spacing: -.03em
}

.usage-hero-head p {
    margin: 0;
    color: #87939c;
    font-size: 10px
}

.usage-hero .usage-ring {
    width: 72px;
    height: 72px;
    border-width: 6px;
    flex: 0 0 auto
}

.usage-hero .usage-ring span {
    font-size: 17px
}

.account-meters {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px
}

.quota-meter {
    display: grid;
    gap: 11px;
    border: 1px solid #34414a;
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
    padding: 18px
}

.quota-meter > div:first-child, .quota-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.quota-meter > div:first-child span {
    color: #a2adb4;
    font-size: 10px;
    font-weight: 700
}

.quota-meter > div:first-child b {
    color: white;
    font: 750 18px var(--mono)
}

.quota-values strong {
    margin: 0;
    color: var(--lime);
    font: 800 12px var(--mono);
    letter-spacing: 0
}

.quota-values small {
    color: #7f8c95;
    letter-spacing: 0;
    text-align: right
}

.quota-track {
    height: 7px;
    border-radius: 999px;
    background: #28343c;
    overflow: hidden
}

.quota-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a8d930, var(--lime));
    transition: width .35s ease
}

.quota-meter.cost .quota-track i {
    background: linear-gradient(90deg, #5d8eff, #87aaff)
}

.quota-meter > p {
    margin: 0;
    color: #7f8c95;
    font-size: 9px
}

.quota-meter.near-limit .quota-track i,
.quota-meter.exceeded .quota-track i {
    background: linear-gradient(90deg, #f2a44e, #f06a61)
}

.quota-meter.exceeded {
    border-color: rgba(240, 106, 97, .55)
}

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

    .usage-hero {
        padding: 22px 18px
    }
}

.usage-table {
    border: 1px solid var(--line);
    background: white;
    border-radius: 9px;
    overflow: hidden
}

.usage-line {
    display: grid;
    grid-template-columns:1fr 110px 110px 100px 100px;
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid #edf0f1;
    align-items: center;
    font-size: 10px
}

.usage-line:last-child {
    border: 0
}

.usage-line b {
    font-size: 11px
}

.usage-line span {
    color: #89929a
}

.usage-line em {
    color: #5777bf;
    font: 700 10px var(--mono);
    font-style: normal;
    text-align: right
}

.back-button {
    margin-bottom: 22px;
    background: transparent
}

.detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 12px
}

.detail-head h1 {
    font-size: 27px;
    margin: 0;
    letter-spacing: -.035em
}

.detail-head a {
    display: block;
    color: #7f8990;
    font-family: var(--mono);
    font-size: 9px;
    margin-top: 8px;
    text-decoration: none
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.danger-button {
    color: #b34c46;
    border-color: #efcfcc
}

.token-chip {
    border: 1px solid var(--line);
    background: white;
    border-radius: 7px;
    padding: 8px 12px;
    display: flex;
    gap: 12px;
    font-size: 10px
}

.token-chip span {
    color: #89929a
}

.detail-meta {
    display: grid;
    grid-template-columns:180px 1fr 180px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    margin: 23px 0 14px
}

.detail-meta > div {
    display: grid;
    gap: 5px;
    padding: 12px 16px;
    border-right: 1px solid var(--line);
    min-width: 0
}

.detail-meta > div:last-child {
    border: 0
}

.detail-meta span {
    font-size: 8px;
    color: #90989f
}

.detail-meta b {
    font-family: var(--mono);
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.console-shell {
    border-radius: 10px;
    background: #0f161c;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(18, 28, 35, .12)
}

.console-top {
    height: 43px;
    display: grid;
    grid-template-columns:1fr auto 1fr;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid #202a32;
    color: #78858e;
    font-family: var(--mono);
    font-size: 8px
}

.traffic {
    display: flex;
    gap: 6px
}

.traffic i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ec6b62
}

.traffic i:nth-child(2) {
    background: #ddb34b
}

.traffic i:nth-child(3) {
    background: #76bd56
}

.console-top > span {
    display: flex;
    gap: 9px;
    align-items: center
}

.console-top button {
    justify-self: end;
    border: 0;
    background: none;
    color: #68747d;
    font-size: 8px
}

.event-stream {
    height: 440px;
    overflow: auto;
    padding: 17px 20px;
    font-family: var(--mono);
    scrollbar-color: #34414a transparent
}

.console-empty {
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    color: #55616a
}

.console-empty i {
    font-size: 35px;
    color: #8eac42;
    font-style: normal
}

.console-empty b {
    font-family: var(--sans);
    font-size: 11px;
    color: #79858e;
    margin: 9px
}

.console-empty span {
    font-family: var(--sans);
    font-size: 9px
}

.event-line {
    position: relative;
    display: grid;
    grid-template-columns:72px 70px 1fr;
    gap: 10px;
    padding: 7px 0;
    color: #aab4bc;
    font-size: 9px;
    line-height: 1.6;
    border-left: 1px solid #263139;
    padding-left: 15px;
    margin-left: 3px
}

.event-line:before {
    content: "";
    position: absolute;
    left: -3px;
    top: 13px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #50606b
}

.event-line time {
    color: #4e5b65
}

.event-line b {
    color: #c5f25c;
    font-weight: 500
}

.event-line.error b {
    color: #f07b72
}

.event-line.done b {
    color: #59c78c
}

.event-line.output, .event-line.input {
    display: block;
    margin: 7px 0 7px 3px;
    border: 0;
    background: #151f26;
    border-radius: 5px;
    padding: 10px 12px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #bcc6cc
}

.event-line.output b, .event-line.input b {
    display: block;
    color: #82a9ff;
    margin-bottom: 5px
}

.event-line.input b {
    color: #c5f25c
}

.chat-box {
    border-top: 1px solid #263139;
    padding: 12px;
    background: #131c23
}

.chat-box textarea {
    display: block;
    width: 100%;
    max-height: 120px;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: #dbe2e6;
    padding: 4px 5px;
    font-family: var(--sans);
    font-size: 11px
}

.chat-box > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 9px
}

.chat-box span {
    color: #52606a;
    font-size: 8px
}

.chat-box kbd {
    border: 1px solid #34414a;
    border-radius: 3px;
    padding: 1px 3px;
    font-family: var(--mono)
}

.chat-box button {
    border: 0;
    background: var(--lime);
    color: #16200d;
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 9px;
    font-weight: 800
}

.chat-box button i {
    font-style: normal;
    margin-left: 5px
}

dialog {
    border: 0;
    border-radius: 12px;
    padding: 0;
    width: min(600px, calc(100vw - 30px));
    box-shadow: 0 30px 80px rgba(10, 18, 23, .28)
}

dialog::backdrop {
    background: rgba(12, 20, 26, .62);
    backdrop-filter: blur(3px)
}

.project-form {
    padding: 27px;
    display: grid;
    gap: 18px
}

.dialog-head {
    display: flex;
    justify-content: space-between
}

.dialog-head h2 {
    margin: 5px 0 6px;
    font-size: 24px
}

.dialog-head span {
    font-size: 10px;
    color: #838c93
}

.dialog-head button {
    align-self: start;
    border: 0;
    background: #f0f2f3;
    color: #7b858d;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 20px
}

.project-form small {
    font-size: 8px;
    color: #969da2;
    font-weight: 400
}

.form-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.goal-selector > span {
    display: block;
    font-size: 11px;
    font-weight: 720;
    margin-bottom: 8px
}

.goal-selector {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 8px
}

.goal-selector > span {
    grid-column: 1/-1
}

.goal-selector label {
    display: grid;
    grid-template-columns:20px 1fr;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px
}

.goal-selector label:has(input:checked) {
    border-color: #a8cb4a;
    background: #f8fce9
}

.goal-selector input {
    grid-row: span 2;
    width: auto
}

.goal-selector b {
    font-size: 10px
}

.goal-selector small {
    margin-top: 4px
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--line);
    margin: 3px -27px -27px;
    padding: 16px 27px;
    background: #f8f9f9
}

@media (max-width: 1000px) {
    .auth-view {
        grid-template-columns:1fr
    }

    .auth-brand {
        display: none
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px
    }

    .stats-grid {
        grid-template-columns:1fr 1fr
    }

    .project-row {
        grid-template-columns:1.5fr 1fr 100px 28px
    }

    .project-time {
        display: none
    }
}

@media (max-width: 720px) {
    .sidebar {
        width: 64px;
        padding: 17px 9px
    }

    .sidebar .logo span, .sidebar .nav-caption, .sidebar nav a span, .sidebar nav a b, .worker-card, .user-block > span:nth-child(2), .user-block i {
        display: none
    }

    .sidebar .logo {
        padding: 0;
        margin-bottom: 32px
    }

    .sidebar nav a {
        justify-content: center;
        padding: 11px
    }

    .sidebar nav a i {
        width: auto
    }

    .user-block {
        display: flex;
        justify-content: center
    }

    .main {
        margin-left: 64px
    }

    .topbar {
        padding: 0 15px
    }

    .connection {
        display: none
    }

    .page {
        padding: 25px 16px 45px
    }

    .stats-grid {
        grid-template-columns:1fr
    }

    .welcome-row {
        align-items: flex-start
    }

    .welcome-row .ghost-button {
        display: none
    }

    .project-row {
        grid-template-columns:1fr 86px 20px
    }

    .project-stage {
        display: none
    }

    .filter-bar {
        display: grid
    }

    .search-box {
        width: 100%
    }

    .filter-pills {
        overflow: auto
    }

    .detail-head {
        display: grid;
        gap: 15px
    }

    .detail-meta {
        grid-template-columns:1fr
    }

    .detail-meta > div {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .console-top {
        grid-template-columns:1fr auto
    }

    .console-top > span {
        display: none
    }

    .event-line {
        grid-template-columns:55px 54px 1fr
    }

    .form-grid, .goal-selector {
        grid-template-columns:1fr
    }

    .goal-selector > span {
        grid-column: auto
    }

    .usage-line {
        grid-template-columns:1fr 72px 86px
    }

    .usage-line > *:nth-child(2), .usage-line > *:nth-child(3) {
        display: none
    }
}

/* Administrator console */
.admin-stats {
    margin-bottom: 22px
}

.admin-stats .stat-card {
    min-height: 145px
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px
}

.admin-table-shell {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    overflow: auto
}

.admin-table {
    min-width: 1040px
}

.admin-tr {
    display: grid;
    grid-template-columns:minmax(190px, 1.35fr) minmax(130px, .9fr) minmax(130px, .8fr) minmax(125px, .8fr) minmax(150px, .9fr) minmax(190px, 1.1fr);
    align-items: center;
    min-height: 68px;
    border-bottom: 1px solid var(--line)
}

.admin-tr:last-child {
    border-bottom: 0
}

.admin-tr > span {
    min-width: 0;
    padding: 12px 14px;
    color: #58626b;
    font-size: 11px;
    overflow-wrap: anywhere
}

.admin-tr > span > b, .admin-tr > span > small {
    display: block
}

.admin-tr > span > b {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 11px
}

.admin-tr > span > small {
    color: #90989f;
    font-size: 9px;
    line-height: 1.45
}

.admin-th {
    min-height: 42px;
    background: #f8f9fa
}

.admin-th > span {
    color: #8a929a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase
}

.admin-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: #edf0f2;
    color: #69747d;
    padding: 4px 7px;
    font: 700 8px var(--mono);
    font-style: normal
}

.admin-badge.ok {
    background: #e8f7ee;
    color: #258655
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px
}

.admin-actions button {
    border: 1px solid #dfe3e6;
    border-radius: 5px;
    background: #fff;
    color: #58626b;
    padding: 5px 7px;
    font-size: 8px;
    font-weight: 750
}

.admin-actions button:hover {
    border-color: #aeb7bd;
    color: var(--ink)
}

.admin-actions .danger-text {
    color: #ba4f49
}

.admin-empty {
    padding: 56px;
    color: var(--muted);
    text-align: center
}

.admin-settings {
    display: grid;
    gap: 22px;
    max-width: 720px;
    padding: 28px
}

.admin-settings h3 {
    margin: 0 0 6px;
    font-size: 20px
}

.admin-settings p {
    margin: 0;
    color: var(--muted);
    font-size: 11px
}

.admin-settings > .form-grid label {
    display: grid;
    gap: 8px;
    color: #4e5961;
    font-size: 10px;
    font-weight: 720
}

.admin-settings input[type="number"] {
    width: 100%;
    border: 1px solid #d7ddd5;
    border-radius: 8px;
    padding: 12px 13px;
    outline: 0
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px
}

.settings-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--lime-dark)
}

.settings-toggle b, .settings-toggle small {
    display: block
}

.settings-toggle b {
    margin-bottom: 3px;
    font-size: 11px
}

.settings-toggle small {
    color: var(--muted);
    font-size: 9px
}

.admin-dialog {
    width: min(680px, calc(100vw - 30px));
    max-height: calc(100vh - 30px);
    border: 0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 28px 80px rgba(5, 12, 18, .28)
}

.admin-dialog::backdrop {
    background: rgba(7, 13, 18, .62);
    backdrop-filter: blur(3px)
}

.admin-dialog .project-form {
    max-height: calc(100vh - 30px);
    overflow: auto
}

.admin-checks {
    display: flex;
    gap: 24px;
    padding: 4px 0
}

.admin-checks label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #59646d;
    font-size: 10px;
    font-weight: 700
}

.admin-checks input {
    width: auto;
    margin: 0;
    accent-color: var(--lime-dark)
}

@media (max-width: 720px) {
    .admin-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .admin-toolbar .filter-pills {
        overflow-x: auto
    }
}

.detail-actions {
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap
}

/* Detail interactions and live planning dock */
#detail-page {
    padding-bottom: 156px
}

.detail-overview {
    margin: 23px 0 14px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    overflow: hidden
}

.collapsible-trigger {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    color: var(--ink)
}

.collapsible-trigger > span {
    display: grid;
    grid-template-columns:24px auto;
    align-items: center;
    column-gap: 8px
}

.collapsible-trigger > span > i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f5e7;
    color: #8baa35;
    font-style: normal
}

.collapsible-trigger b {
    font-size: 11px
}

.collapsible-trigger small {
    font-size: 8px;
    color: #939ba2;
    margin-top: 2px
}

.collapse-chevron {
    font-style: normal;
    color: #818b92;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1)
}

.collapsible-section.is-open .collapse-chevron {
    transform: rotate(180deg)
}

.collapsible-body {
    display: grid;
    grid-template-rows:0fr;
    transition: grid-template-rows .32s cubic-bezier(.2, .8, .2, 1)
}

.collapsible-section.is-open .collapsible-body {
    grid-template-rows:1fr
}

.collapsible-inner {
    min-height: 0;
    overflow: hidden
}

.detail-overview .detail-meta {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0
}

.event-line {
    display: block;
    padding: 0;
    margin: 6px 0 6px 3px;
    border: 1px solid transparent;
    border-left: 1px solid #263139;
    border-radius: 6px;
    transition: background .2s, border-color .2s, transform .2s;
    outline: 0
}

.event-line.is-expandable {
    cursor: pointer
}

.event-line.is-expandable:hover, .event-line.is-expandable:focus-visible {
    background: #141e25;
    border-color: #26343d
}

.event-line:before {
    top: 15px
}

.event-summary {
    min-height: 34px;
    display: grid;
    grid-template-columns:72px 70px minmax(0, 1fr) 16px;
    gap: 10px;
    align-items: center;
    padding: 7px 10px 7px 15px
}

.event-summary time {
    color: #4e5b65
}

.event-summary b {
    color: #c5f25c;
    font-weight: 500
}

.event-summary span {
    color: #8f9aa2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.event-summary > i {
    justify-self: end;
    color: #59666f;
    font-style: normal;
    transition: transform .25s
}

.event-summary .event-state {
    color: #36434c
}

.event-line.is-open .event-summary > i {
    transform: rotate(180deg)
}

.event-content {
    display: grid;
    grid-template-rows:0fr;
    opacity: .35;
    transition: grid-template-rows .3s cubic-bezier(.2, .8, .2, 1), opacity .25s
}

.event-content > div {
    min-height: 0;
    overflow: hidden;
    color: #aab4bc;
    padding: 0 12px 0 167px
}

.event-content small {
    display: block;
    margin: 2px 0 7px;
    color: #52616b;
    font-size: 7px;
    letter-spacing: .12em
}

.event-content pre {
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #27343c;
    border-radius: 5px;
    background: #111a20;
    color: #bdc7cd;
    font: inherit;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 360px;
    overflow: auto
}

.event-line.is-open .event-content {
    grid-template-rows:1fr;
    opacity: 1
}

.event-line.is-open .event-content > div {
    padding-bottom: 12px
}

.event-line.output .event-summary b {
    color: #82a9ff
}

.event-line.input .event-summary b {
    color: #c5f25c
}

.event-line.error .event-summary b {
    color: #f07b72
}

.event-line.done .event-summary b {
    color: #59c78c
}

.event-line.done:before {
    background: #59c78c
}

.event-line.error:before {
    background: #f07b72
}

.event-line.start:before {
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(201, 244, 90, .08)
}

.detail-overview .detail-meta {
    grid-template-columns:160px minmax(240px, 1fr) 150px 150px
}

.runtime-meta b.is-live {
    color: #719a1d
}

.runtime-meta b.is-live:after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 7px;
    border-radius: 50%;
    background: var(--lime-dark);
    animation: pulse 1.8s infinite
}

.planning-dock {
    position: fixed;
    z-index: 20;
    left: calc(232px + 4vw);
    right: 4vw;
    bottom: 18px;
    max-width: calc(1500px - 8vw);
    margin: auto;
    border: 1px solid #303c45;
    border-radius: 12px;
    background: rgba(15, 22, 28, .96);
    color: #dbe3e8;
    box-shadow: 0 18px 55px rgba(10, 18, 24, .28);
    backdrop-filter: blur(16px);
    overflow: hidden;
    animation: dock-in .42s cubic-bezier(.2, .8, .2, 1)
}

@keyframes dock-in {
    from {
        opacity: 0;
        transform: translateY(18px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.planning-toggle {
    width: 100%;
    height: 58px;
    padding: 0 17px;
    border: 0;
    background: transparent;
    color: inherit;
    display: grid;
    grid-template-columns:150px minmax(180px, 1fr) 45px 20px;
    gap: 18px;
    align-items: center;
    text-align: left
}

.planning-brand {
    display: flex;
    align-items: center;
    gap: 8px
}

.planning-brand b {
    font-size: 11px;
    letter-spacing: .04em
}

.planning-brand small {
    border: 1px solid #33414a;
    border-radius: 10px;
    padding: 2px 7px;
    color: #7d8a93;
    font-size: 8px
}

.planning-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(201, 244, 90, .09);
    animation: pulse 2s infinite
}

.planning-current {
    display: grid;
    gap: 3px;
    min-width: 0
}

.planning-current small {
    font-size: 7px;
    color: #66747d;
    letter-spacing: .08em
}

.planning-current b {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.planning-percent {
    justify-self: end;
    color: var(--lime);
    font-family: var(--mono);
    font-size: 10px
}

.planning-chevron {
    font-style: normal;
    color: #71808a;
    transition: transform .3s
}

.planning-dock.is-open .planning-chevron {
    transform: rotate(180deg)
}

.planning-body {
    display: grid;
    grid-template-rows:0fr;
    transition: grid-template-rows .34s cubic-bezier(.2, .8, .2, 1)
}

.planning-dock.is-open .planning-body {
    grid-template-rows:1fr
}

.planning-inner {
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid #26323a
}

.planning-progress {
    height: 2px;
    background: #253139
}

.planning-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8dbb1d, var(--lime));
    transition: width .5s cubic-bezier(.2, .8, .2, 1)
}

.planning-tasks {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    padding: 17px 18px 14px;
    gap: 8px
}

.planning-task {
    position: relative;
    display: grid;
    grid-template-columns:25px 1fr;
    gap: 8px;
    align-items: start;
    padding: 8px;
    border-radius: 7px
}

.planning-task > i {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid #36434c;
    border-radius: 50%;
    font-style: normal;
    font-family: var(--mono);
    font-size: 8px;
    color: #66747d
}

.planning-task > span {
    display: grid;
    gap: 4px
}

.planning-task b {
    font-size: 9px;
    color: #7f8b94
}

.planning-task small {
    font-size: 7px;
    color: #53616a;
    line-height: 1.4
}

.planning-task em {
    grid-column: 2;
    font-style: normal;
    font-size: 7px;
    color: #56646d
}

.planning-task.done > i {
    border-color: #527e43;
    background: #213727;
    color: #70cb7d
}

.planning-task.done b {
    color: #9daaa2
}

.planning-task.done em {
    color: #60956b
}

.planning-task.running {
    background: #1a252c
}

.planning-task.running > i {
    border-color: var(--lime);
    color: #c9f45a;
    box-shadow: 0 0 0 4px rgba(201, 244, 90, .07);
    animation: pulse 1.8s infinite
}

.planning-task.running b {
    color: #eef2f3
}

.planning-task.running em {
    color: var(--lime)
}

.planning-task.failed > i {
    border-color: #f06a61;
    background: #3b2425;
    color: #f58b84
}

.planning-task.failed b, .planning-task.failed em {
    color: #f07b72
}

.planning-now {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 18px 16px;
    padding: 10px 12px;
    border: 1px solid #27343c;
    border-radius: 7px;
    background: #121b21
}

.planning-now > span {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    font-family: var(--mono);
    font-size: 7px;
    color: #66747d;
    letter-spacing: .08em
}

.planning-now > span i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime)
}

.planning-now p {
    margin: 0;
    color: #9eabb3;
    font-family: var(--mono);
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.planning-dock.is-terminal .planning-live-dot, .planning-dock.is-terminal .planning-now > span i {
    animation: none;
    background: #5fc482
}

.planning-dock.is-failed .planning-live-dot, .planning-dock.is-failed .planning-now > span i {
    background: #f06a61
}

.planning-dock.is-failed .planning-percent {
    color: #f07b72
}

.page:not(.hidden) {
    animation: page-enter .3s ease-out
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(5px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.primary-button, .ghost-button, .danger-button, .back-button {
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s
}

.primary-button:hover, .ghost-button:hover, .danger-button:hover {
    transform: translateY(-1px)
}

.primary-button:active, .ghost-button:active, .danger-button:active {
    transform: translateY(0)
}

.status-badge.running:before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.8s infinite
}

.mini-progress i {
    position: relative;
    overflow: hidden
}

.status-badge.running ~ * .mini-progress i:after, .project-row:has(.status-badge.running) .mini-progress i:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
    transform: translateX(-100%);
    animation: progress-shine 1.8s infinite
}

@keyframes progress-shine {
    to {
        transform: translateX(100%)
    }
}

@media (max-width: 720px) {
    #detail-page {
        padding-bottom: 140px
    }

    .planning-dock {
        left: 76px;
        right: 12px;
        bottom: 10px
    }

    .planning-toggle {
        grid-template-columns:110px minmax(0, 1fr) 18px;
        padding: 0 12px;
        gap: 8px
    }

    .planning-percent {
        display: none
    }

    .planning-current small {
        display: none
    }

    .planning-tasks {
        grid-template-columns:1fr 1fr;
        padding: 10px
    }

    .planning-task small {
        display: none
    }

    .planning-now {
        margin: 0 10px 10px
    }

    .detail-overview .detail-meta {
        grid-template-columns:1fr
    }

    .event-summary {
        grid-template-columns:52px 62px minmax(0, 1fr) 15px;
        gap: 6px;
        padding-left: 10px
    }

    .event-content > div {
        padding-left: 10px
    }

    .event-line.is-open .event-content > div {
        padding: 0 10px 11px
    }

    .detail-actions {
        justify-content: flex-start
    }
}

@media (min-width: 721px) and (max-width: 1000px) {
    .detail-overview .detail-meta {
        grid-template-columns:1fr 1fr
    }

    .detail-meta > div:nth-child(2) {
        border-right: 0
    }

    .detail-meta > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line)
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

/* SSH credential onboarding */
#project-dialog {
    width: min(680px, calc(100vw - 30px));
    max-height: calc(100vh - 30px)
}

#project-dialog .project-form {
    max-height: calc(100vh - 30px);
    overflow: auto
}

.ssh-credential-card {
    border: 1px solid #dce6bd;
    border-radius: 9px;
    background: #fbfdef;
    padding: 13px 14px
}

.ssh-credential-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.ssh-credential-head > span, .ssh-connect-block label > span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 750
}

.ssh-credential-head i, .ssh-connect-block label > span i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #26302e;
    color: var(--lime);
    font: 700 9px var(--mono);
    font-style: normal
}

.ssh-credential-head em {
    font: 400 8px var(--mono);
    color: #82904f;
    white-space: nowrap
}

.ssh-credential-card > p {
    margin: 8px 0 10px;
    color: #727c68;
    font-size: 9px;
    line-height: 1.55
}

.copy-field {
    display: grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items: stretch;
    border: 1px solid #dce3cf;
    border-radius: 7px;
    background: #fff;
    overflow: hidden
}

.copy-field code {
    display: block;
    padding: 9px 10px;
    color: #55604d;
    font: 8px/1.5 var(--mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.copy-field button {
    border: 0;
    border-left: 1px solid #dce3cf;
    background: #f5f8ed;
    color: #6e852c;
    padding: 0 11px;
    font-size: 8px;
    font-weight: 750
}

.copy-field button:hover {
    background: #edf4da
}

.ssh-credential-card details {
    margin-top: 9px
}

.ssh-credential-card summary {
    cursor: pointer;
    color: #68745b;
    font-size: 9px;
    font-weight: 700
}

.ssh-credential-card summary span {
    color: #9aa28f;
    font-weight: 400;
    margin-left: 5px
}

.copy-field.command {
    margin-top: 8px
}

.copy-field.command code {
    white-space: normal;
    max-height: 58px;
    overflow: auto;
    word-break: break-all
}

.ssh-connect-block {
    display: grid;
    gap: 7px
}

.ssh-connect-block label {
    display: grid;
    gap: 8px
}

.ssh-input-row {
    display: grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap: 8px
}

.ssh-input-row .ghost-button {
    padding: 0 14px;
    font-size: 10px;
    font-weight: 750;
    color: #52606a
}

.ssh-input-row button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none
}

.ssh-test-status {
    border-radius: 6px;
    background: #f2f4f4;
    color: #7b858c;
    padding: 8px 10px;
    font-size: 9px;
    line-height: 1.45
}

.ssh-test-status.testing {
    background: #f1f5e7;
    color: #71862f
}

.ssh-test-status.success {
    background: #eaf7ef;
    color: #258655
}

.ssh-test-status.error {
    background: #fcebea;
    color: #a94842
}

@media (max-width: 720px) {
    .ssh-credential-head {
        align-items: flex-start;
        flex-direction: column
    }

    .ssh-input-row {
        grid-template-columns:1fr
    }

    .ssh-input-row .ghost-button {
        padding: 10px
    }

    .copy-field code {
        white-space: normal;
        word-break: break-all;
        max-height: 62px;
        overflow: auto
    }
}
