.shil-shell {
    --shil-blue: #1456d9;
    --shil-ink: #14213d;
    --shil-muted: #60708d;
    --shil-line: #dce6f5;
    --shil-soft: #f5f8fe;
    box-sizing: border-box;
    width: min(1120px, 100%);
    margin: 24px auto;
    overflow: hidden;
    border: 1px solid var(--shil-line);
    border-radius: 24px;
    background: #fff;
    color: var(--shil-ink);
    box-shadow: 0 18px 50px rgba(31, 67, 127, .10);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

.shil-shell *, .shil-shell *::before, .shil-shell *::after { box-sizing: border-box; }
.shil-shell__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; background: linear-gradient(135deg, #f8fbff, #edf4ff); }
.shil-shell__header h2 { margin: 5px 0 0; color: var(--shil-ink); font-size: clamp(1.25rem, 3vw, 1.8rem); }
.shil-shell__eyebrow { color: var(--shil-blue); font-size: .82rem; font-weight: 800; }
.shil-shell__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.shil-shell__meta span { padding: 7px 11px; border: 1px solid #cbdcf8; border-radius: 999px; background: #fff; color: #31517f; font-size: .8rem; }
.shil-shell__notice { padding: 12px 28px; border-block: 1px solid var(--shil-line); background: #fff; color: var(--shil-muted); }
.shil-shell__notice[data-state="error"] { background: #fff2f2; color: #a22525; }
.shil-shell__notice[data-state="completed"] { background: #effbf5; color: #13704a; }
.shil-shell__stage { min-height: 340px; padding: 28px; background: var(--shil-soft); }
.shil-shell__stage[aria-busy="true"] { opacity: .68; }
.shil-shell__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--shil-line); }
.shil-button, .shil-shell button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--shil-blue); border-radius: 12px; background: var(--shil-blue); color: #fff !important; font: inherit; font-weight: 800; text-decoration: none !important; cursor: pointer; }
.shil-button:hover, .shil-shell button:hover { filter: brightness(.95); }
.shil-button:focus-visible, .shil-shell button:focus-visible { outline: 3px solid rgba(20, 86, 217, .28); outline-offset: 2px; }
.shil-button:disabled, .shil-shell button:disabled { cursor: wait; opacity: .58; }
.shil-button--ghost { border-color: var(--shil-line); background: #fff; color: var(--shil-ink) !important; }

.shil-runtime-loading { display: grid; min-height: 284px; place-items: center; align-content: center; gap: 12px; padding: 30px; text-align: center; color: var(--shil-muted); }
.shil-runtime-loading strong { color: var(--shil-ink); font-size: 1rem; }
.shil-runtime-loading small { max-width: 560px; line-height: 1.9; }
.shil-runtime-loading__spinner { width: 38px; height: 38px; border: 4px solid rgba(37, 99, 235, .16); border-top-color: #2563eb; border-radius: 50%; animation: shil-spin .8s linear infinite; }
.shil-runtime-loading--error { color: #a22525; }
.shil-runtime-loading--error strong { color: #a22525; }
@keyframes shil-spin { to { transform: rotate(360deg); } }

.shil-placeholder { display: grid; min-height: 284px; place-items: center; align-content: center; gap: 12px; padding: 30px; text-align: center; }
.shil-placeholder__mark { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 22px; background: linear-gradient(135deg, #1456d9, #7036cf); color: #fff; font-weight: 900; box-shadow: 0 14px 28px rgba(20, 86, 217, .22); }
.shil-placeholder h3, .shil-placeholder p { margin: 0; }
.shil-placeholder p { max-width: 620px; color: var(--shil-muted); line-height: 1.9; }
.shil-placeholder__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.shil-placeholder output { min-height: 24px; color: #31517f; font-size: .9rem; }
.shil-message { max-width: 900px; margin: 20px auto; padding: 16px 20px; border-radius: 14px; background: #f4f7fc; color: #243653; }
.shil-message--error, .shil-message--locked { background: #fff2f2; color: #8b2525; }

@media (max-width: 680px) {
    .shil-shell { margin: 12px auto; border-radius: 18px; }
    .shil-shell__header { align-items: flex-start; flex-direction: column; padding: 20px; }
    .shil-shell__notice, .shil-shell__actions { padding-inline: 20px; }
    .shil-shell__stage { min-height: 300px; padding: 16px; }
    .shil-shell__actions > * { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .shil-shell *, .shil-shell *::before, .shil-shell *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

