#efwc-widget {
    --efwc-ink: #171c25;
    --efwc-accent: #a63412;
    position: fixed;
    z-index: 10000;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    display: grid;
    justify-items: end;
    gap: 12px;
    font: 15px/1.45 system-ui, sans-serif;
    color: var(--efwc-ink);
}
#efwc-widget *, #efwc-widget *::before, #efwc-widget *::after { box-sizing: border-box; }
#efwc-widget button, #efwc-widget input { font: inherit; }
#efwc-widget button { cursor: pointer; }
#efwc-widget button:disabled { opacity: .55; cursor: wait; }
#efwc-widget :focus-visible { outline: 3px solid #e87736; outline-offset: 2px; }
#efwc-widget .efwc-launcher, #efwc-widget form button {
    border: 0;
    border-radius: 12px;
    background: var(--efwc-accent);
    color: white;
    padding: 10px 14px;
    font-weight: 700;
}
#efwc-widget .efwc-launcher { border-radius: 40px; box-shadow: 0 8px 28px #151b2940; }
#efwc-panel {
    grid-row: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    width: min(390px, calc(100vw - 44px));
    height: min(530px, calc(100dvh - 150px - env(safe-area-inset-bottom, 0px)));
    border: 1px solid #d8dbe0;
    border-radius: 18px;
    background: white;
    box-shadow: 0 18px 55px #151b2940;
    overflow: hidden;
}
#efwc-panel[hidden] { display: none; }
#efwc-panel header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--efwc-ink); color: white; }
#efwc-panel header strong, #efwc-panel header span { display: block; }
#efwc-panel header span { color: #d4d8df; font-size: 12px; }
#efwc-panel .efwc-close { padding: 2px 8px; border: 0; background: transparent; color: white; font-size: 25px; }
#efwc-panel .efwc-log { overflow: auto; padding: 14px; overscroll-behavior: contain; }
#efwc-panel .efwc-message { width: fit-content; max-width: 94%; margin: 0 0 9px; padding: 9px 12px; border-radius: 12px; background: #f1f2f5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--efwc-ink); }
#efwc-panel .efwc-user { margin-left: auto; background: var(--efwc-accent); color: white; }
#efwc-panel .efwc-pending { color: #4f5866; }
#efwc-panel .efwc-sources { margin: 0 0 12px; padding-left: 22px; font-size: 13px; overflow-wrap: anywhere; }
#efwc-panel nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
#efwc-panel a { color: #8f2c10; text-decoration: underline; text-underline-offset: 2px; }
#efwc-panel nav a { padding: 4px 9px; border: 1px solid #d8dbe0; border-radius: 20px; font-size: 13px; }
#efwc-panel form { display: flex; gap: 8px; padding: 4px 12px; margin: 0; }
#efwc-panel input { flex: 1; width: 0; min-width: 0; padding: 9px; border: 1px solid #a7adb8; border-radius: 10px; background: white; color: var(--efwc-ink); font-size: 16px; }
#efwc-panel small { display: block; padding: 5px 12px 10px; font-size: 11px; color: #4f5866; }
#efwc-panel .efwc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
