/* An interruption only when an action is blocked; no persistent space UI. */
.aiw-space {
  box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  margin: auto; padding: 26px; overflow: auto; border: 0; border-radius: 16px;
  background: var(--aiw-surface, #fffdf9); color: var(--aiw-ink, #302b27);
  box-shadow: 0 22px 70px rgb(19 27 25 / .22); font-family: inherit; text-align: left;
}
.aiw-space::backdrop { background: var(--aiw-backdrop, rgb(17 25 23 / .4)); }
.aiw-space__head { display: flex; align-items: center; justify-content: space-between; margin: -6px -6px 12px 0; }
.aiw-space__mark { display: flex; align-items: center; color: var(--aiw-accent-ink, #24675e); }
.aiw-space svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.aiw-space__close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--aiw-muted, #746e67); cursor: pointer; }
.aiw-space__close svg { width: 18px; height: 18px; }
.aiw-space h2 { margin: 0; color: inherit; font-size: 21px; font-weight: 650; line-height: 1.45; text-wrap: balance; }
.aiw-space__description { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--aiw-muted, #746e67); }
.aiw-space__body:empty { display: none; }
.aiw-space__member { margin: 18px 0 0; color: var(--aiw-accent-ink, #24675e); font-size: 13px; line-height: 1.7; }
.aiw-space__aside { margin: 12px 0 0; color: var(--aiw-muted, #746e67); font-size: 12px; line-height: 1.8; }
.aiw-space__actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.aiw-space__button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--aiw-line-strong, #d5d8d1); border-radius: 10px; background: transparent; color: var(--aiw-ink, #302b27); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.aiw-space__button svg { width: 16px; height: 16px; }
.aiw-space__button--primary { border-color: transparent; background: var(--aiw-accent, #287769); color: var(--aiw-on-accent, #fff); }
.aiw-space__button--danger { border-color: transparent; background: #a63f34; color: #fff; }
.aiw-space__close:hover, .aiw-space__button:not(.aiw-space__button--primary):not(.aiw-space__button--danger):hover { background: var(--aiw-surface-2, #f1f2ed); }
.aiw-space__button--primary:hover { background: var(--aiw-accent-ink, #24675e); }
.aiw-space__button--danger:hover { background: #87372f; }
.aiw-space__button:disabled { opacity: .48; cursor: not-allowed; }
.aiw-space :is(button, a, input):focus-visible { outline: 2px solid var(--aiw-accent, #287769); outline-offset: 4px; }
.aiw-space__status { margin: 14px 0 0; color: var(--aiw-muted, #746e67); font-size: 13px; line-height: 1.75; }
.aiw-space__status:empty { display: none; }
.aiw-space__status[data-error="true"] { color: var(--aiw-danger, #ad4436); }
.aiw-space__summary { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-block: 14px; border-block: 1px solid var(--aiw-line, #e4e5de); font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.aiw-space__summary strong { font-size: 15px; font-weight: 600; }
.aiw-space__summary span { color: var(--aiw-muted, #746e67); }
.aiw-space__consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--aiw-ink, #302b27); font-size: 13px; line-height: 1.8; cursor: pointer; }
.aiw-space__consent input { width: 17px; height: 17px; margin: 3px 0 0; flex: none; accent-color: #a63f34; }
.aiw-space__working { height: 3px; margin-top: 22px; overflow: hidden; border-radius: 2px; background: var(--aiw-line, #e4e5de); }
.aiw-space__working::after { content: ''; display: block; width: 32%; height: 100%; background: var(--aiw-accent, #287769); animation: aiw-space-work 1.2s ease-in-out infinite alternate; }
@keyframes aiw-space-work { to { transform: translateX(210%); } }
@media (prefers-reduced-motion: no-preference) { .aiw-space[open] { animation: aiw-space-enter 170ms cubic-bezier(.16,1,.3,1); } @keyframes aiw-space-enter { from { transform: translateY(8px); } to { transform: translateY(0); } } }
@media (prefers-reduced-motion: reduce) { .aiw-space__working::after { animation: none; width: 65%; } .aiw-space__button { transition: none; } }
@media (max-width: 380px) { .aiw-space { padding: 22px 20px; } .aiw-space h2 { font-size: 19px; } .aiw-space__actions { gap: 8px; } .aiw-space__button { padding-inline: 10px; font-size: 12px; } }
