/* dashboard.autocomputing.host — the hosting account landing screen.
   Palette lifted from autocomputing.host.css: #44465E slate, #FFEC64 accent,
   #EEEEEE paper, #1D070E ink. Afacad for text, JetBrains Mono for identifiers. */

:root {
    --slate:      #44465E;
    --slate-deep: #33344a;
    --slate-line: #565877;
    --accent:     #FFEC64;
    --accent-dim: #AAA348;
    --paper:      #EEEEEE;
    --ink:        #1D070E;
    --danger:     #AA3333;
    --radius:     10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--slate);
    color: var(--paper);
    font-family: 'Afacad', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.86em; }

.dash-boot {
    margin: auto;
    padding: 40px;
    color: var(--paper);
    opacity: 0.75;
    font-size: 19px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.dash-boot-title { font-size: 26px; font-weight: 700; opacity: 1; }
.dash-boot-sub   { font-size: 17px; opacity: 0.8; margin-bottom: 8px; }

/* ---- header ---- */
.dash-header {
    background: var(--slate-deep);
    border-bottom: 1px solid var(--slate-line);
}
.dash-header-in {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.dash-brand {
    display: flex; align-items: center; gap: 9px;
    color: var(--paper); text-decoration: none;
    font-weight: 700; font-size: 20px; letter-spacing: 0.2px;
}
.dash-brand-mark { color: var(--accent); font-size: 15px; }
.dash-nav { display: flex; align-items: center; gap: 16px; }
.dash-who { opacity: 0.8; font-size: 15px; }
.dash-link-btn {
    background: none; border: none; cursor: pointer;
    color: var(--accent); font-family: inherit; font-size: 15px;
    padding: 4px 2px; border-bottom: 1px solid transparent;
}
.dash-link-btn:hover { border-bottom-color: var(--accent); }

/* ---- layout ---- */
.dash-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 34px 24px 56px; }
.dash-title { font-size: 34px; font-weight: 700; line-height: 1.15; }
.dash-sub { opacity: 0.75; margin-top: 4px; margin-bottom: 26px; }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

/* ---- cards ---- */
.dash-card {
    background: var(--slate-deep);
    border: 1px solid var(--slate-line);
    border-radius: var(--radius);
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
}
.dash-card-wide { grid-column: 1 / -1; }
.dash-card-op { border-color: var(--accent-dim); }

.dash-card-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.dash-card-head h2 { font-size: 20px; font-weight: 700; }

.dash-badge {
    margin-left: auto;
    font-size: 12.5px; letter-spacing: 0.4px; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(238,238,238,0.12); border: 1px solid var(--slate-line);
}
.dash-badge-ok     { background: rgba(255,236,100,0.15); border-color: var(--accent-dim); color: var(--accent); }
.dash-badge-off    { background: rgba(170,51,51,0.18);  border-color: var(--danger); }
.dash-badge-op     { margin-left: auto; color: var(--accent); border-color: var(--accent-dim); }

.dash-body { opacity: 0.85; margin-bottom: 16px; }
.dash-empty { opacity: 0.8; margin-bottom: 14px; }

/* ---- fact lists ---- */
.dash-facts { margin-bottom: 16px; }
.dash-facts > div {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 7px 0; border-bottom: 1px solid rgba(238,238,238,0.09);
}
.dash-facts > div:last-child { border-bottom: none; }
.dash-facts dt { opacity: 0.65; }
.dash-facts dd { text-align: right; word-break: break-word; }

/* ---- disk meter ---- */
.dash-meter-wrap { margin-bottom: 18px; }
.dash-meter-top { display: flex; justify-content: space-between; font-size: 15px; opacity: 0.8; margin-bottom: 6px; }
.dash-meter { height: 8px; background: rgba(238,238,238,0.13); border-radius: 999px; overflow: hidden; }
.dash-meter-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.4s ease; }
.dash-meter-fill.is-high { background: var(--danger); }

/* ---- buttons ---- */
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.dash-btn {
    display: inline-block;
    padding: 9px 16px; border-radius: 7px;
    border: 1px solid var(--slate-line);
    background: rgba(238,238,238,0.07);
    color: var(--paper); text-decoration: none;
    font-family: inherit; font-size: 16px; cursor: pointer;
}
.dash-btn:hover { background: rgba(238,238,238,0.14); }
.dash-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.dash-btn-primary:hover { background: #ffe93f; }
.dash-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.dash-btn:disabled:hover { background: rgba(238,238,238,0.07); }
.dash-btn-primary:disabled:hover { background: var(--accent); }

.dash-fine { font-size: 14.5px; opacity: 0.6; margin-top: 10px; }

/* ---- messages ---- */
.dash-msg {
    padding: 11px 15px; border-radius: 8px; margin-bottom: 18px;
    border: 1px solid var(--slate-line); background: rgba(238,238,238,0.07);
}
.dash-msg.is-error { border-color: var(--danger); background: rgba(170,51,51,0.16); }

/* ---- operator form ---- */
.dash-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; align-items: end; }
.dash-form label { display: flex; flex-direction: column; gap: 5px; font-size: 15px; opacity: 0.9; }
.dash-form input[type=text], .dash-form input[type=email] {
    padding: 9px 11px; border-radius: 7px;
    border: 1px solid var(--slate-line);
    background: rgba(0,0,0,0.22); color: var(--paper);
    font-family: 'JetBrains Mono', monospace; font-size: 14.5px;
}
.dash-form input:focus { outline: 2px solid var(--accent-dim); outline-offset: 1px; }
.dash-check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.dash-check input { width: 16px; height: 16px; }

.dash-result {
    margin-top: 16px; padding: 14px 16px; border-radius: 8px;
    border: 1px solid var(--accent-dim); background: rgba(255,236,100,0.10);
    font-family: 'JetBrains Mono', monospace; font-size: 14px;
    word-break: break-all; white-space: pre-wrap;
}

/* ---- footer ---- */
.dash-footer {
    border-top: 1px solid var(--slate-line);
    padding: 18px 24px;
    text-align: center; font-size: 14.5px; opacity: 0.55;
}

@media (max-width: 620px) {
    .dash-title { font-size: 28px; }
    .dash-facts > div { flex-direction: column; gap: 2px; }
    .dash-facts dd { text-align: left; }
}
