/* Portal styles. Lives in a file, not an inline <style> block: the CSP
   added with the XSS fix has no style-src of its own, so it falls back to
   default-src 'self' and the browser refuses inline styles exactly the way
   it refuses inline <script>. An inline block here renders the portal as
   unstyled Times New Roman with a CSP violation in the console. */
:root { color-scheme: light dark; }
body { font-family: system-ui, sans-serif; max-width: 32rem; margin: 3rem auto; padding: 0 1rem; line-height: 1.5; }
h1 { font-size: 1.25rem; }
.card { border: 1px solid #8884; border-radius: 0.5rem; padding: 1rem; margin: 1rem 0; }
.row { display: flex; justify-content: space-between; gap: 1rem; margin: 0.25rem 0; }
button, a.button { display: inline-block; padding: 0.5rem 0.9rem; margin: 0.25rem 0.25rem 0.25rem 0; border-radius: 0.4rem; border: 1px solid #8888; background: transparent; cursor: pointer; text-decoration: none; color: inherit; font-size: 0.95rem; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.flash { padding: 0.6rem 0.8rem; border-radius: 0.4rem; margin-bottom: 1rem; }
.flash.ok { background: #2ecc7122; border: 1px solid #2ecc71; }
.flash.err { background: #e74c3c22; border: 1px solid #e74c3c; }
.muted { opacity: 0.7; font-size: 0.9rem; }
ul.intents { list-style: none; padding: 0; margin: 0; }
ul.intents li { padding: 0.35rem 0; border-bottom: 1px solid #8882; font-size: 0.9rem; }

/* VPS-49: edit-your-agent form + own-calls list. */
fieldset { border: 1px solid #8884; border-radius: 0.5rem; padding: 0.8rem 0.8rem 1rem; margin: 0 0 1rem; }
legend { padding: 0 0.4rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
label { display: block; font-size: 0.85rem; margin: 0.6rem 0 0.3rem; }
input, textarea, select { width: 100%; font: inherit; padding: 0.45rem 0.5rem; border-radius: 0.4rem; border: 1px solid #8888; background: transparent; color: inherit; }
textarea { min-height: 4.5rem; resize: vertical; }
textarea.minh110 { min-height: 110px; }
.btn.primary { font-weight: 600; }
.err { color: #e74c3c; font-size: 0.8rem; margin-top: 0.2rem; min-height: 1rem; }
.kv { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid #8882; font-size: 0.85rem; }
.mt6 { margin-top: 0.4rem; }
.intents label { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.2rem 0.8rem 0.2rem 0; font-size: 0.85rem; }
.intents input[type="checkbox"] { width: auto; }
ul.intents a { color: inherit; }
