@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@400..800&display=swap");

.ajllms {
    --aj-font: "Google Sans Flex", system-ui, sans-serif;
    --aj-bright: #FFD700;
    --aj-rich: #E6B800;
    --aj-soft: #F2C94C;
    --aj-deep: #C9A227;
    --aj-ink: #231d12;
    --aj-muted: #605544;
    --aj-line: #e8ddc5;
    width: 100%;
    max-width: 900px;
    margin: 24px auto;
    border: 1px solid var(--aj-line);
    border-radius: 24px;
    overflow: hidden;
    background: #fffaf0;
    color: var(--aj-ink);
    font: 16px/1.55 var(--aj-font);
    box-shadow: 0 18px 52px #2e210e16;
    text-align: left;
    overflow-wrap: anywhere;
    container-type: inline-size;
}
.ajllms, .ajllms *, .ajllms *::before, .ajllms *::after { box-sizing: border-box; }
.ajllms [hidden] { display: none !important; }
.ajllms .aj-hero {
    background: radial-gradient(ellipse at 100% 0%, #503b0e, transparent 70%), #211a0e;
    color: #fffaf0;
    padding: clamp(20px, 6cqi, 56px);
    border-bottom: 3px solid var(--aj-deep);
}
.ajllms .aj-kicker { color: var(--aj-soft); font-size: .75rem; letter-spacing: .14em; font-weight: 750; }
.ajllms .aj-kicker span { padding: 0 .2em; }
.ajllms .aj-hero h2 {
    margin: 10px 0;
    color: inherit;
    font: 750 clamp(2rem, 8cqi, 4rem)/1.08 var(--aj-font);
    letter-spacing: -.055em;
}
.ajllms .aj-hero em { color: var(--aj-bright); font-style: normal; }
.ajllms .aj-hero p { margin: 0; color: #f0e3c5; }
.ajllms .aj-workspace { padding: clamp(14px, 5cqi, 42px); }
.ajllms button, .ajllms input, .ajllms textarea {
    font: inherit;
    font-size: 16px;
    letter-spacing: normal;
    text-transform: none;
}
.ajllms button {
    cursor: pointer;
    min-height: 48px;
    color: var(--aj-ink);
    background: white;
    border: 1px solid var(--aj-line);
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 650;
    white-space: normal;
}
.ajllms button:hover { filter: brightness(.96); }
.ajllms button:disabled { cursor: wait; opacity: .65; }
.ajllms :focus-visible { outline: 2px solid #806000; outline-offset: 3px; }
.ajllms .aj-modes, .ajllms .aj-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ajllms .aj-modes button[aria-pressed="true"] { background: var(--aj-soft); border-color: var(--aj-deep); }
.ajllms label { display: block; margin: 20px 0 12px; font-weight: 650; }
.ajllms input, .ajllms textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 6px 0 0;
    padding: 12px;
    border: 1px solid #aa9877;
    border-radius: 10px;
    background: white;
    color: var(--aj-ink);
}
.ajllms textarea { resize: vertical; }
.ajllms .aj-primary { background: var(--aj-bright); color: var(--aj-ink); border-color: var(--aj-rich); }
.ajllms .aj-primary:hover { background: var(--aj-rich); }
.ajllms .aj-primary span { padding-left: .35em; }
.ajllms .aj-message { margin: 12px 0 0; color: var(--aj-muted); }
.ajllms .aj-message:empty { display: none; }
.ajllms .aj-results {
    margin-top: 24px;
    padding: clamp(12px, 3cqi, 24px);
    background: white;
    border: 1px solid var(--aj-line);
    border-radius: 16px;
}
.ajllms .aj-result-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ajllms h3 { color: var(--aj-ink); margin: 0; font: 700 1.35rem/1.25 var(--aj-font); }
.ajllms .aj-source { color: var(--aj-muted); margin: 8px 0; font-size: .9rem; }
.ajllms .aj-findings { list-style: none; padding: 0; margin: 12px 0; }
.ajllms .aj-findings li { border-top: 1px solid var(--aj-line); padding: 12px 0; margin: 0; }
.ajllms .aj-badge {
    display: inline-block;
    font-size: .76rem;
    font-weight: 750;
    padding: 3px 8px;
    border-radius: 20px;
    margin-right: 8px;
    background: #fff0b5;
    color: #5a4204;
}
.ajllms .aj-badge[data-level="Fix"] { background: #fee7e6; color: #8a2625; }
.ajllms .aj-badge[data-level="Note"] { background: #f4ece0; color: #594831; }
.ajllms .aj-findings p { margin: 4px 0 0; color: var(--aj-muted); }
.ajllms summary { cursor: pointer; font-weight: 650; min-height: 44px; padding-block: 10px; }
.ajllms pre {
    max-height: 20rem;
    overflow: auto;
    padding: 14px;
    background: #faf3e3;
    color: var(--aj-ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: .875rem/1.5 ui-monospace, monospace;
}
.ajllms footer { margin-top: 22px; font-size: .875rem; color: var(--aj-muted); }
.ajllms footer a { color: #6d5000; text-decoration: underline; }

@container (max-width: 480px) {
    .ajllms .aj-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ajllms .aj-modes button { padding-inline: 6px; font-size: .9375rem; }
    .ajllms .aj-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .ajllms .aj-result-top { align-items: stretch; flex-direction: column; }
}
@media (max-width: 480px) {
    .ajllms { margin-block: 12px; border-radius: 16px; }
}
