:root {
    --inmo-green: #4F6A3F;
    --inmo-green-soft: #6E8B58;
    --inmo-gold: #C8B58A;
    --inmo-ink: #1A1A1A;
    --inmo-sand: #F4F1EA;
    --inmo-gray: #9CA3AF;
    --muted-ink: rgba(26, 26, 26, 0.62);
    --soft-white: rgba(255, 255, 255, 0.96);
    --line: rgba(26, 26, 26, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--inmo-sand);
    color: var(--inmo-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.topbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0 28px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--inmo-green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

h2 {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.status {
    border: 1px solid var(--inmo-gold);
    color: var(--inmo-green);
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--soft-white);
    font-weight: 650;
}

.workspace {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 22px;
    align-items: start;
}

.panel,
.empty {
    background: var(--soft-white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.06);
}

.setup-panel {
    grid-column: 1 / -1;
}

.setup-panel li {
    margin-bottom: 8px;
    color: var(--muted-ink);
    line-height: 1.5;
}

code {
    background: var(--inmo-sand);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 5px;
}

.form-panel {
    position: sticky;
    top: 20px;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted-ink);
    font-size: 0.92rem;
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--inmo-ink);
    padding: 10px 12px;
    font: inherit;
}

input,
select {
    min-height: 44px;
}

textarea {
    min-height: 130px;
    line-height: 1.5;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--inmo-green);
    outline: 3px solid rgba(79, 106, 63, 0.16);
}

button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: var(--inmo-green);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

button:hover {
    background: var(--inmo-green-soft);
}

.results {
    display: grid;
    gap: 18px;
}

.notice {
    border-left: 3px solid var(--inmo-green);
    background: var(--soft-white);
    border-radius: 6px;
    color: var(--inmo-green);
    font-weight: 700;
    padding: 12px 14px;
}

.panel-heading {
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.panel-heading h2 {
    margin-bottom: 0;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.seo-grid div {
    border-left: 3px solid var(--inmo-gold);
    background: var(--inmo-sand);
    border-radius: 6px;
    padding: 12px;
    font-size: 0.92rem;
}

.seo-grid span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted-ink);
    font-size: 0.78rem;
    font-weight: 750;
}

.article-section {
    margin-bottom: 18px;
}

.article-section p,
.mini-card p,
.prompt p,
.empty p {
    color: var(--muted-ink);
    line-height: 1.58;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mini-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.mini-card strong,
.mini-card span {
    display: block;
}

.mini-card span {
    margin: 4px 0 10px;
    color: var(--inmo-green);
    font-size: 0.86rem;
    font-weight: 700;
}

.prompt {
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
    margin-top: 16px;
}

.knowledge-form {
    display: grid;
}

.knowledge-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.knowledge-list div {
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
}

.knowledge-list span {
    color: var(--muted-ink);
    font-size: 0.88rem;
}

.prompt:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 860px) {
    .topbar,
    .workspace {
        display: block;
    }

    .status {
        display: inline-block;
        margin-top: 16px;
    }

    .form-panel {
        position: static;
        margin-bottom: 18px;
    }

    .seo-grid,
    .cards {
        grid-template-columns: 1fr;
    }
}
