/* EggBox Client — V1C (Build-v05) */
:root {
    --egg-bg: #fafaf7; --egg-card: #ffffff; --egg-ink: #1a1a1a; --egg-muted: #8c8678;
    --egg-accent: #9b7b23; --egg-accent-soft: #f5ecd0; --egg-accent-ink: #6f5512;
    --egg-line: #e8e2d2; --ok: #0f766e; --warn: #b65f00; --err: #b42318;
}
* { box-sizing: border-box; margin: 0; }
body { min-height: 100vh; background: var(--egg-bg); color: var(--egg-ink); font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif; padding: 24px 40px 60px; }
.top-bar { display: flex; align-items: center; justify-content: space-between; max-width: 960px; margin: 0 auto 24px; }
.brand-logo { display: block; width: min(260px, 56vw); height: auto; mix-blend-mode: multiply; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--egg-ink); color: #fff; padding: 8px 16px; font-size: 0.78rem; font-weight: 700; cursor: pointer; user-select: none; position: relative; }
.badge:hover { background: #333; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #888; }
.connect-drop { display: none; position: absolute; top: 100%; right: 0; margin-top: 8px; background: var(--egg-card); padding: 22px 24px; width: 340px; z-index: 50; border: 1px solid var(--egg-line); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.connect-drop.open { display: block; }
.drop-title { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--egg-muted); font-weight: 700; margin-bottom: 14px; }
.connect-drop input { border: 1px solid var(--egg-line); padding: 10px 12px; font-size: 0.88rem; color: var(--egg-ink); background: #fff; width: 100%; margin-bottom: 12px; }
.connect-drop input:focus { outline: none; border-color: var(--egg-accent); }
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 960px; margin: 0 auto; }
.tile { background: var(--egg-card); padding: 20px 24px; }
.tile.wide { grid-column: 1 / -1; }
.tile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tile-title { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--egg-muted); font-weight: 700; }
.small { color: var(--egg-muted); font-size: 0.8rem; }
label { font-size: 0.78rem; color: var(--egg-ink); font-weight: 600; display: block; margin-bottom: 5px; }
input, select { border: 1px solid var(--egg-line); padding: 10px 12px; font-size: 0.9rem; color: var(--egg-ink); background: #fff; width: 100%; margin-bottom: 10px; }
input[type="checkbox"] { width: auto; margin-bottom: 0; }
input:focus, select:focus { outline: none; border-color: var(--egg-accent); }
input[type="file"] { display: none; }
.file-input-area { border: 1.5px dashed var(--egg-line); padding: 22px; text-align: center; }
.link-button { background: none; border: none; color: var(--egg-accent); cursor: pointer; font-weight: 600; padding: 0; text-decoration: underline; }
.link-button:hover { color: var(--egg-accent-ink); }
.hidden { display: none; }
.file-input-area p { color: var(--egg-muted); font-size: 0.82rem; margin-bottom: 10px; }
.file-input-area label.btn { display: inline-block; width: 100%; text-align: center; margin-bottom: 2px; }
button { border: none; cursor: pointer; font-weight: 700; font-size: 0.82rem; padding: 10px 22px; }
button:hover { opacity: 0.9; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
.btn { cursor: pointer; font-weight: 700; font-size: 0.82rem; padding: 10px 22px; display: inline-block; text-align: center; }
.btn-primary { background: var(--egg-accent); color: #fff; }
.btn-primary:hover { background: #876713; }
.btn-primary:disabled { background: #bfb394; color: #fff; cursor: not-allowed; }
.btn-primary.is-ready { background: var(--ok); color: #fff; }
.btn-primary.is-ready:hover { background: #0b5e57; }
.btn-outline { background: transparent; color: var(--egg-ink); border: 1px solid var(--egg-line); }
.btn-outline:hover { background: var(--egg-accent-soft); border-color: var(--egg-accent); }
.btn-outline:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.check-row { display: flex; gap: 10px; margin-bottom: 14px; }
.check-pill { flex: 1; border: 1px solid var(--egg-line); padding: 8px 16px; font-size: 0.84rem; display: flex; align-items: center; gap: 6px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.country-info { border: 1px solid var(--egg-line); padding: 14px 16px; background: #fffef8; font-size: 0.84rem; line-height: 1.5; margin-top: 4px; }
.country-info strong { display: block; color: var(--egg-accent); font-size: 0.85rem; margin-bottom: 2px; }
.country-info ul { margin: 4px 0 0 16px; padding: 0; color: #3c3425; font-size: 0.82rem; }
.queue-count { font-size: 2rem; font-weight: 800; color: var(--egg-ink); }
.status { min-height: 24px; padding: 4px 0; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; color: var(--egg-ink); }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--egg-line); text-align: left; padding: 10px 12px; font-size: 0.84rem; vertical-align: top; }
th { color: var(--egg-muted); font-weight: 700; background: transparent; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; }
.queue-remove { padding: 4px 10px; flex-shrink: 0; margin: 0; border: 1px solid var(--egg-line); background: transparent; color: var(--egg-muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.queue-remove:hover { background: var(--egg-accent-soft); border-color: var(--egg-accent); }
.queue-remove:disabled { opacity: 0.4; cursor: not-allowed; }
.workflowSel { border: 1px solid var(--egg-line) !important; padding: 6px 10px !important; font-size: 0.8rem !important; min-width: auto !important; width: auto !important; margin-bottom: 0 !important; }
.links a { margin-right: 8px; color: var(--egg-accent); text-decoration: none; font-weight: 700; }
.support-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 38px; background: rgba(255,255,255,0.85); backdrop-filter: blur(6px); border-top: 1px solid var(--egg-line); display: flex; align-items: center; justify-content: flex-end; padding: 0 20px; z-index: 100; }
.support-link { color: var(--egg-muted); text-decoration: none; font-size: 0.78rem; font-weight: 600; }
.preflight-pass, .preflight-fail { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 0.82rem; cursor: default; position: relative; }
.preflight-pass { color: var(--ok); }
.preflight-fail { color: var(--err); }
.preflight-tip, .preflight-errors { display: none; position: absolute; bottom: 100%; left: 0; margin-bottom: 6px; background: var(--egg-ink); padding: 10px 14px; font-size: 0.76rem; font-weight: 600; z-index: 20; line-height: 1.6; white-space: nowrap; }
.preflight-errors { min-width: 260px; white-space: normal; }
.preflight-pass:hover .preflight-tip, .preflight-fail:hover .preflight-tip, .preflight-fail:hover .preflight-errors { display: block; }
.preflight-tip .pf-ok, .preflight-errors .pf-ok { color: #5ddbbc; }
.preflight-tip .pf-bad, .preflight-errors .pf-bad { color: #f48771; }
.preflight-errors span { display: block; }
@media (max-width: 860px) { .dashboard { grid-template-columns: 1fr; } .tile.wide { grid-column: 1; } .top-bar { flex-direction: column; gap: 10px; align-items: flex-start; } body { padding: 16px 16px 52px; } }
