/* Governance Research Center AI — the app's own pages, on top of the site's stylesheet. */
.app-main { padding-top: 48px; padding-bottom: 72px; }
.panel { max-width: 560px; }
.panel.wide { max-width: 720px; }
.panel h1, .chat-head h1, .page-head h1 { font: 600 clamp(32px, 4vw, 46px)/1.05 var(--font-display); letter-spacing: -.03em; margin: 12px 0 14px; }
.form { display: grid; gap: 8px; margin-top: 18px; }
.form label { font: 500 14px/1.3 var(--font-ui); margin-top: 8px; }
.form input[type=email], .form input[type=text], .form select, .form textarea {
  font: 400 16px/1.4 var(--font-ui); padding: 11px 12px; border: 1px solid #D6D6CF; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus, .ask-row textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form [aria-invalid=true] { border-color: var(--accent-2); }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form .btn { justify-self: start; margin-top: 12px; }
.field-error { color: var(--accent-2); font: 400 13px/1.3 var(--font-ui); margin: 0; }
.notice { font: 400 15px/1.5 var(--font-ui); background: var(--accent-soft); color: var(--accent); padding: 10px 14px; border-radius: var(--radius); }
.notice.error { background: #FCEBE7; color: #A23218; }
.aside { font: 400 14px/1.5 var(--font-ui); color: var(--muted); margin-top: 24px; }
.inline { display: inline; margin: 0; }
.link-button { font: inherit; color: var(--ink); opacity: .8; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.link-button:hover { opacity: 1; color: var(--accent); }

/* Chat */
.chat-main { max-width: 860px; padding-top: 36px; padding-bottom: 40px; }
.conversation { display: grid; gap: 18px; margin: 24px 0; }
.turn.question { justify-self: end; max-width: 80%; background: var(--surface-2); border-radius: 10px 10px 2px 10px; padding: 10px 14px; font: 400 16px/1.5 var(--font-ui); }
.turn.question p { margin: 0; }
.turn.answer { border-top: 1px solid var(--line); padding-top: 14px; }
.answer-text { font: 400 17.5px/1.65 var(--font-text); }
.answer-text p { margin: 0 0 12px; }
.thinking { color: var(--muted); font-style: italic; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
a.cite { font: 600 11px/1 var(--font-ui); text-decoration: none; background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 2px 4px; margin: 0 1px; vertical-align: 2px; }
.answer-sources { margin-top: 10px; }
.answer-sources ol { margin: 8px 0 0; padding-left: 1.4em; font: 400 13.5px/1.5 var(--font-ui); color: var(--muted); }
.answer-sources li a { color: var(--ink); }
.answer-sources li.cited::marker { color: var(--accent-2); font-weight: 700; }
.answer-sources li:not(.cited) { opacity: .65; }
.ask-form { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 14px 0 6px; }
.ask-form .mode { display: flex; gap: 16px; font: 500 13.5px/1 var(--font-ui); margin-bottom: 10px; border: 0; background: none; padding: 0; }
.ask-row { display: flex; gap: 10px; align-items: stretch; }
.ask-row textarea { flex: 1; font: 400 16px/1.45 var(--font-ui); padding: 10px 12px; border: 1px solid #D6D6CF; border-radius: 6px; resize: vertical; }

/* Administration */
.admin-section { margin-top: 32px; }
.admin-section h2 { font: 600 22px/1.2 var(--font-display); letter-spacing: -.02em; }
.admin-section h2 .n { color: var(--muted); font-weight: 400; }
table.accounts { width: 100%; border-collapse: collapse; font: 400 14px/1.45 var(--font-ui); }
table.accounts th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--rule); padding: 8px 10px 8px 0; }
table.accounts td { border-bottom: 1px solid var(--line); padding: 12px 10px 12px 0; vertical-align: top; }
table.accounts .motivation { max-width: 320px; }
table.accounts .actions { display: flex; gap: 6px; flex-wrap: wrap; }
table.accounts form { margin: 0; }
