:root {
    --bg: #f4efe6;
    --panel: #fffaf1;
    --panel-strong: #efe1c9;
    --text: #1c1a17;
    --muted: #6d6457;
    --line: #d7c8ad;
    --accent: #135d66;
    --accent-2: #ef8354;
    --success: #2f7d4a;
    --shadow: 0 18px 40px rgba(46, 35, 20, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(239, 131, 84, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(19, 93, 102, 0.14), transparent 24%),
        linear-gradient(180deg, #faf4ea 0%, #f2ebdf 100%);
}

.app-shell {
    width: min(1100px, calc(100% - 24px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.hero {
    padding: 16px 4px 8px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.hero h1,
.section-head h2 {
    margin: 0;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(30px, 6vw, 54px);
    max-width: 680px;
}

.hero-copy {
    margin: 14px 0 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

.panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: color-mix(in srgb, var(--panel) 92%, white 8%);
    box-shadow: var(--shadow);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffefb;
    color: var(--text);
    font-size: 15px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.btn {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    background: var(--panel-strong);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.status-bar,
.meta-bar,
.plugin-notice {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--muted);
    line-height: 1.45;
    white-space: pre-wrap;
}

.plugin-ready {
    border: 1px solid rgba(47, 125, 74, 0.18);
    color: var(--success);
    background: rgba(47, 125, 74, 0.08);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.count-pill {
    min-width: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    text-align: center;
    background: var(--panel-strong);
    font-weight: 700;
}

.jobs-list {
    display: grid;
    gap: 12px;
}

.job-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.job-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.job-title {
    margin: 0;
    font-size: 18px;
}

.job-company {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.job-source {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(19, 93, 102, 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.job-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 131, 84, 0.12);
    color: var(--text);
    font-size: 12px;
}

.job-summary {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.job-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: var(--accent-2);
    font-weight: 700;
}

.job-link.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.plugin-host {
    min-height: 20px;
}

.empty-state {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 640px) {
    .panel {
        padding: 16px;
        border-radius: 20px;
    }

    .job-top {
        flex-direction: column;
    }

    .action-row,
    .job-actions {
        flex-direction: column;
    }

    .btn,
    .job-link {
        width: 100%;
    }
}
