/* Profi standalone — shared light treatment for imported builds. Night Circuit overrides these tokens in its bundled stylesheet. */
.profi-standalone { --profi-bg: #fffdf8; --profi-ink: #1e2d31; --profi-soft: #607277; --profi-line: rgba(21,94,99,.18); --profi-accent: #155e63; --profi-action: #d5654c; --profi-glow: rgba(21,94,99,.18); position: fixed; right: 24px; bottom: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: "DM Sans", system-ui, sans-serif; }
.profi-standalone-launcher { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 7px 16px 7px 8px; border: 1px solid var(--profi-accent); border-radius: 999px; color: var(--profi-ink); background: var(--profi-bg); box-shadow: 0 13px 28px rgba(24,49,48,.15), 0 0 20px var(--profi-glow); cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease; }
.profi-standalone-launcher:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(24,49,48,.18), 0 0 28px var(--profi-glow); }
.profi-standalone-launcher:active { transform: scale(.97); }
.profi-standalone-orb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fffdf8; background: var(--profi-accent); font-size: 1.15rem; }
.profi-standalone-label { display: grid; gap: 1px; text-align: left; }
.profi-standalone-label strong { font-family: Fraunces, Georgia, serif; font-size: .95rem; }
.profi-standalone-label small { color: var(--profi-soft); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.profi-standalone-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--profi-action); box-shadow: 0 0 8px rgba(213,101,76,.6); }
.profi-standalone-panel { width: min(380px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 110px)); display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; border: 1px solid var(--profi-line); border-radius: 18px; color: var(--profi-ink); background: var(--profi-bg); box-shadow: 0 24px 55px rgba(24,49,48,.22); animation: profi-standalone-in 180ms ease-out both; }
.profi-standalone-head { display: flex; justify-content: space-between; gap: 14px; padding: 19px 20px 15px; border-bottom: 1px solid var(--profi-line); }
.profi-standalone-kicker { color: var(--profi-action); font-size: .62rem; font-weight: 700; letter-spacing: .1em; }
.profi-standalone-head h2 { margin: 7px 0 4px; font-family: Fraunces, Georgia, serif; font-size: 1.3rem; }
.profi-standalone-head p { margin: 0; color: var(--profi-soft); font-size: .76rem; line-height: 1.45; }
.profi-standalone-close { width: 28px; height: 28px; border: 1px solid var(--profi-line); border-radius: 7px; color: var(--profi-soft); background: transparent; cursor: pointer; font-size: 1.1rem; }
.profi-standalone-close:hover { color: var(--profi-action); }
.profi-standalone-messages { display: flex; flex-direction: column; gap: 11px; min-height: 150px; max-height: 320px; padding: 17px 20px; overflow-y: auto; }
.profi-standalone-message { max-width: 88%; padding: 10px 12px; border: 1px solid var(--profi-line); border-radius: 12px 12px 12px 3px; background: rgba(21,94,99,.05); }
.profi-standalone-message--student { align-self: flex-end; border-color: rgba(213,101,76,.28); border-radius: 12px 12px 3px 12px; background: rgba(213,101,76,.08); }
.profi-standalone-message--loading { opacity: .75; }
.profi-standalone-message-label { display: block; margin-bottom: 4px; color: var(--profi-accent); font-size: .58rem; font-weight: 700; letter-spacing: .11em; }
.profi-standalone-message--student .profi-standalone-message-label { color: var(--profi-action); }
.profi-standalone-message p { margin: 0; font-size: .78rem; line-height: 1.52; }
.profi-standalone-form { display: flex; gap: 8px; padding: 12px 20px 10px; border-top: 1px solid var(--profi-line); }
.profi-standalone-form input { min-width: 0; flex: 1; padding: 11px 12px; border: 1px solid var(--profi-line); border-radius: 10px; outline: none; color: var(--profi-ink); background: transparent; font: inherit; font-size: .78rem; }
.profi-standalone-form input:focus { border-color: var(--profi-accent); box-shadow: 0 0 13px var(--profi-glow); }
.profi-standalone-form button { display: grid; flex: 0 0 42px; place-items: center; border: 0; border-radius: 10px; color: #fffdf8; background: var(--profi-accent); cursor: pointer; font-size: 1rem; }
.profi-standalone-form button:disabled { cursor: not-allowed; opacity: .42; }
.profi-standalone-note { padding: 0 20px 15px; color: var(--profi-soft); font-size: .62rem; }
@keyframes profi-standalone-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 600px) { .profi-standalone { right: 14px; bottom: 14px; left: 14px; } .profi-standalone-launcher { align-self: flex-end; } .profi-standalone-panel { width: 100%; max-height: calc(100vh - 90px); } .profi-standalone-messages { max-height: 270px; } }
@media (prefers-reduced-motion: reduce) { .profi-standalone-panel { animation: none; } .profi-standalone-launcher { transition: none; } }
