/* Scoped institutional palette: blue ink, warm paper and gold. */
.s7-socius { font: 16px/1.5 Arial, sans-serif; color: #172c46; text-align: left; }
.s7-socius *, .s7-socius *::before, .s7-socius *::after { box-sizing: border-box; }
.s7-socius [hidden] { display: none !important; }
.s7-socius button, .s7-socius select, .s7-socius textarea { font: inherit; }
.s7-socius button { min-height: 44px; padding: .5rem .85rem; border: 1px solid #164a88; border-radius: .65rem; background: #164a88; color: white; cursor: pointer; }
.s7-socius button:disabled { opacity: .65; cursor: wait; }
.s7-socius :is(button, a, textarea, select, [tabindex]):focus-visible { outline: 3px solid #b45d00; outline-offset: 3px; }
.s7-socius a { color: #124780; text-decoration: underline; overflow-wrap: anywhere; }
.s7-socius p { margin: .35rem 0 .65rem; }
.s7-socius h2, .s7-socius h3 { color: inherit; margin: 0 0 .5rem; line-height: 1.2; }
.s7-socius h3 { font-size: 1.1rem; }
.s7-socius .s7-launcher { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 1030; border-radius: 3rem; border: 2px solid #e7a349; box-shadow: 0 4px 18px #172c463d; width: 64px; height: 64px; padding: 4px; display: grid; place-items: center; background: #fffdf7; }
.s7-launcher img { display: block; width: 52px; height: 52px; object-fit: contain; }
.s7-panel { display: flex; flex-direction: column; background: #fffdf7; border: 1px solid #c8b98e; border-radius: 1rem; overflow: auto; box-shadow: 0 16px 50px #13273e33; }
.s7-socius[data-mode=widget] .s7-panel { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 1030; width: min(420px, calc(100vw - 2rem)); height: min(680px, calc(100dvh - 7rem)); }
.s7-heading { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; background: #164a88; color: white; gap: .75rem; }
.s7-heading h2 { font: bold 1.8rem/1.1 'Ancizar Serif', Georgia, serif; }
.s7-heading p { margin: 0; font-size: .85rem; }
.s7-heading button { border-color: #f3e3a4; min-width: 44px; font-size: 1.5rem; }
.s7-source, .s7-form { padding: .75rem 1rem; }
.s7-source { background: #f3e3a4; }
.s7-socius label { display: block; font-size: .9rem; font-weight: bold; margin-bottom: .3rem; }
.s7-socius select, .s7-socius textarea { display: block; width: 100%; padding: .55rem; border: 1px solid #66758a; border-radius: .5rem; color: #172c46; background: white; }
.s7-socius textarea { resize: vertical; max-height: 160px; }
.s7-history { flex: 1; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; }
.s7-intro h3 { font: bold 1.5rem/1.2 'Ancizar Serif', Georgia, serif; }
.s7-intro button { display: block; background: white; color: #164a88; margin-top: .5rem; width: 100%; text-align: left; }
.s7-message { background: white; border: 1px solid #d1d9e1; border-left: 3px solid #e7a349; border-radius: .6rem; padding: .8rem; margin-top: .85rem; overflow-wrap: anywhere; }
.s7-message p { white-space: pre-wrap; }
.s7-message ul { padding-left: 1.2rem; }
.s7-message li + li { margin-top: .8rem; }
.s7-message a { display: block; margin-top: .3rem; }
.s7-meta { font-size: .8rem; color: #43546b; }
.s7-notice { padding: .6rem; background: #fff0c8; color: #614006; border-radius: .4rem; }
.s7-form { border-top: 1px solid #d1d9e1; }
.s7-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.s7-status { font-size: .85rem; margin-bottom: 0 !important; }
.s7-bottom { font-size: .8rem; padding: .5rem 1rem .8rem; background: #f3f5f7; }
.s7-bottom p { margin-bottom: .3rem; }
.s7-socius-page { width: min(960px, 100%); margin: 2rem auto; padding: 0 1rem; flex: 1; }
.s7-socius[data-mode=full] .s7-panel { height: min(950px, 90dvh); min-height: 600px; }
@media (max-width: 575px) {
    .s7-socius[data-mode=widget] .s7-panel { right: .5rem; width: calc(100vw - 1rem); bottom: calc(4.5rem + env(safe-area-inset-bottom)); height: calc(100dvh - 5.5rem - env(safe-area-inset-bottom)); }
    .s7-heading { padding: .6rem .8rem; }
    .s7-heading h2 { font-size: 1.5rem; }
    .s7-source, .s7-form { padding: .5rem .8rem; }
    .s7-socius-page { margin: 1rem auto; padding: 0 .5rem; }
}
