/* Workspace additions reuse account controls, colors, typography and spacing. */
.acc-main .ws-section { min-width: 0; }
.acc-main .ws-section .dash-head { flex-wrap: wrap; gap: 12px; }
.acc-main .ws-section h3 { font-size: 16px; font-weight: 650; line-height: 1.5; letter-spacing: -.01em; }
.acc-main .ws-section h4 { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.5; }
.acc-main .ws-section .acc-desc { margin-top: 8px; }
.acc-main .ws-section :is(.acc-notice, .acc-error) { margin-top: 16px; }
.acc-main .ws-template-list { list-style: none; margin: 20px 0 0; padding: 0; }
.acc-main .ws-template { padding-block: 20px; border-top: 1px solid var(--hairline-soft); }
.acc-main .ws-template:first-child { border-top-color: var(--hairline); }
.acc-main .ws-template-copy { min-width: 0; }
.acc-main .ws-template-heading { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.acc-main .ws-template-heading h3 { margin: 0; overflow-wrap: anywhere; }
.acc-main .ws-scope { color: var(--gray-dark); font-size: 12px; line-height: 1.5; }
.acc-main .ws-template-subject { margin-top: 9px; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.acc-main .ws-template-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-block: 6px; max-width: 74ch; color: var(--gray-dark); font-size: 13px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.acc-main .ws-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.acc-main .ws-readonly { margin-left: 4px; }
.acc-main .ws-editor { margin-bottom: 20px; padding: 22px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--bg-alt); }
.acc-main .ws-editor h3 { margin-top: 0; margin-bottom: 18px; }
.acc-main .ws-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.acc-main .ws-full { grid-column: 1 / -1; }
.acc-main .ws-form .acc-desc { margin: 0; }
.acc-main .ws-form .ws-actions { margin-top: 0; }
.acc-main .ws-section textarea { width: 100%; min-height: 180px; padding: 12px; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.6; resize: vertical; caret-color: var(--blue-text); }
.acc-main .ws-section textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.acc-main .ws-inline-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.acc-main .ws-inline-form > .acc-field:first-child { flex: 1 1 250px; }
.acc-main .ws-inline-form > .acc-field { flex: 0 1 250px; }
.acc-main .ws-team-picker { margin-top: 24px; max-width: 420px; }
.acc-main .ws-subheading { display: flex; align-items: baseline; gap: 12px; margin-top: 28px; }
.acc-main .ws-members-table { min-width: 560px; }
.acc-main .ws-members-table td { vertical-align: middle; }
.acc-main .ws-members-table td:first-child { width: 48%; overflow-wrap: anywhere; }
.acc-main .ws-members-table .acc-to { display: block; margin-top: 4px; }
.acc-main .ws-member-actions { white-space: nowrap; }
.acc-main .ws-member-actions :is(select, button) { margin-right: 8px; }
.acc-main .ws-member-actions .acc-select { min-height: 44px; font-size: 13px; }
.acc-main .ws-invite-editor { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.acc-main .ws-invite-list { padding: 0; margin: 16px 0 0; list-style: none; }
.acc-main .ws-invite-list > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-top: 1px solid var(--hairline-soft); }
.acc-main .ws-invite-list strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.acc-main .ws-invite-list .acc-status { margin-top: 4px; overflow-wrap: anywhere; }
.acc-main .ws-invite-list .ws-actions { margin-top: 0; flex: none; }
.acc-main .ws-no-invites { margin-top: 20px; }
.acc-main .ws-team-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.acc-main .ws-loading { padding-block: 24px; color: var(--gray-dark); font-size: 13px; }
.acc-main .ws-loading span { display: block; width: 100%; max-width: 650px; height: 12px; margin-top: 14px; border-radius: 4px; background: var(--bg-alt); }
.acc-main .ws-loading span:last-child { width: 60%; }
.acc-main .ws-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .acc-main .ws-editor { padding: 16px; border-radius: 12px; }
  .acc-main .ws-form { grid-template-columns: minmax(0, 1fr); }
  .acc-main .ws-section textarea { font-size: 16px; }
  .acc-main .ws-inline-form > .acc-field { flex-basis: 100%; }
  .acc-main .ws-inline-form > button { width: 100%; }
  .acc-main .ws-team-picker { max-width: none; }
  .acc-main .ws-invite-list > li { align-items: flex-start; flex-direction: column; gap: 10px; }
  .acc-main .ws-template-heading { gap: 4px 10px; }
  .acc-main .ws-template-heading .ws-scope { flex-basis: 100%; }
}

.acc-main .ws-template-full { margin-top: 10px; }
.acc-main .ws-template-full > summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 10px; color: var(--blue-text); font-size: 13px; cursor: pointer; }
.acc-main .ws-template-full > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.acc-main .ws-template-full > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.acc-main .ws-template-full-content { padding: 12px 14px; background: var(--bg-alt); border-radius: 8px; }
.acc-main .ws-template-full-content .ws-template-subject { margin-top: 0; }
.acc-main .ws-template-full-body { max-height: 320px; overflow: auto; margin-top: 8px; color: var(--gray-dark); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.acc-main .ws-template-full-body:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.acc-main .ws-conflict { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); font-size: 13px; line-height: 1.6; }
.acc-main .ws-conflict p { max-width: 72ch; }

/* Only fields inset into the editor use its minimum inner radius. */
.acc-main .ws-editor :is(textarea, .acc-search, .acc-select) { border-radius: 4px; }
@supports (corner-shape: superellipse(1.25)) {
  .acc-main .ws-editor, .acc-main .ws-editor :is(textarea, .acc-search, .acc-select),
  .acc-main .ws-template-full-content { corner-shape: superellipse(1.25); }
}
