/* The agents' everyday home. Calm paper, lively little desks, useful detail one click away. */
.ws-shell, #modal .ws-settings-card, #modal .ws-event-detail {
  --ws-paper: #fffefa;
  --ws-muted: #6c706a;
  --ws-line: #e8e5dc;
  --ws-ink: #303530;
  color: var(--ws-ink);
  padding-top: 5px;
}
.ws-shell :is(h1,h2,h3,p) { overflow-wrap: anywhere; }
.ws-shell :is(button,a,input,select,summary):focus-visible,
#modal :is(.ws-event-detail,.ws-details-grid) :is(button,a,input,select):focus-visible {
  outline: 3px solid #8b7bb0;
  outline-offset: 4px;
}
.ws-shell :is(button,.button) { min-height: 44px; }
.ws-shell .button { font-size: 12px; }
.ws-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 18px; }
.ws-top > div:first-child { min-width: 0; }
.ws-top h1 { margin: 0 0 3px; font-size: 24px; letter-spacing: -.8px; }
.ws-top p { margin: 0; color: var(--ws-muted); font-size: 12px; }
.ws-top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; flex: none; }
.ws-nav { display: flex; align-items: center; gap: 5px; padding: 5px; margin: 0 0 29px; border-radius: 15px; background: #f0eee8; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.ws-nav button { display: inline-flex; justify-content: center; align-items: center; flex: none; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #666b62; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ws-nav button:hover { background: #faf8f2; color: #303530; }
.ws-nav button.active { color: #303530; background: #fffefa; border-color: #e6e2d8; box-shadow: 0 2px 5px #4b433207; }
.ws-nav button > span { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 2px 5px; border-radius: 6px; background: #e6dfed; color: #75648a; font-size: 10px; }
.ws-nav button > svg { width: 15px; height: 15px; }

/* The first view is a small workplace, not a wall of reporting widgets. */
.ws-welcome { position: relative; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(310px,1fr); align-items: center; gap: 32px; padding: 29px 36px 26px; min-height: 245px; margin-bottom: 23px; background: #f6f1e7; border: 1px solid #ede6d9; border-radius: 29px; isolation: isolate; }
.ws-welcome-copy { min-width: 0; max-width: 530px; }
.ws-welcome .eyebrow { color: #81765e; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 11px; }
.ws-welcome :is(h1,h2) { font-size: clamp(31px,3.3vw,42px); letter-spacing: -1.6px; line-height: 1.12; margin-bottom: 13px; }
.ws-welcome-copy > p { color: #6d7066; max-width: 380px; font-size: 14px; line-height: 1.65; margin-bottom: 0; }
.ws-welcome-copy .actions { justify-content: flex-start; margin-top: 19px; }
.ws-team-scene { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-height: 190px; padding: 25px 5px 16px; isolation: isolate; }
.ws-team-scene::before { content: ''; position: absolute; z-index: -2; width: min(345px,100%); height: 166px; top: 4px; left: 50%; transform: translateX(-50%); border-radius: 46% 54% 32% 33%; background: #ebe4ef; }
.ws-team-scene::after { content: ''; position: absolute; z-index: -1; width: 42px; height: 42px; top: 15px; right: 30px; border-radius: 50%; background: #eac998; box-shadow: 0 0 0 9px #f1dbb980; }
.ws-team-bot { position: relative; display: flex; flex-direction: column; align-items: center; width: 115px; min-height: 127px; flex: 0 1 115px; padding-top: 4px; }
.ws-team-bot:nth-child(2) { margin-bottom: 20px; z-index: -1; }
.ws-team-bot:nth-child(3) { margin-bottom: 5px; }
.ws-team-bot .bot-face, .ws-team-bot .bot-face.small, .ws-team-bot .bot-face.large { width: 66px; height: 66px; border-radius: 23px; gap: 11px; box-shadow: inset 0 2px 3px #ffffffbf, inset -3px -5px 8px #64774a18, 2px 5px 0 #6459430b; }
.ws-team-bot .bot-face i { width: 5px; height: 10px; }
.ws-team-bot:nth-child(even) .bot-face { transform: rotate(7deg); }
.ws-team-bot:nth-child(even) .bot-face i { transform: rotate(-7deg); }
.ws-team-bot > strong, .ws-team-bot > span:not(.ws-prop):not(.ws-desk), .ws-team-bot > small { position: relative; display: block; z-index: 2; width: fit-content; max-width: 94px; padding: 4px 9px; margin: 23px 0 0; border: 1px solid #e0d4bc; border-bottom-width: 3px; border-radius: 5px; background: #f6ead1; color: #7a6850; font-size: 10px; line-height: 1.2; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-team-bot .ws-prop { position: absolute; z-index: 4; width: 32px; height: 29px; top: 50px; left: 3px; display: grid; place-items: center; color: #766288; background: #d9cae6; border-radius: 8px; box-shadow: 1px 3px 0 #bfaecb; transform: rotate(-11deg); }
.ws-team-bot:nth-child(2) .ws-prop { color: #7a653b; background: #eed39e; box-shadow: 1px 3px 0 #d2b786; transform: rotate(12deg); left: auto; right: 2px; }
.ws-team-bot:nth-child(3) .ws-prop { color: #5b7590; background: #bad3eb; box-shadow: 1px 3px 0 #9bb8d3; }
.ws-prop svg { width: 17px; height: 17px; }
.ws-desk { position: absolute; top: 76px; left: 0; right: 0; z-index: 3; height: 12px; border-radius: 6px; background: linear-gradient(#e9d7b9,#decaab); box-shadow: inset 0 1px 1px #fff9e9, 0 4px 0 #c5b090; }
.ws-desk::before, .ws-desk::after { content: ''; position: absolute; top: 13px; width: 7px; height: 32px; border-radius: 0 0 4px 4px; background: #cbb797; }
.ws-desk::before { left: 13px; transform: rotate(4deg); }
.ws-desk::after { right: 13px; transform: rotate(-4deg); }

.ws-pulse { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0 0 32px; }
.ws-pulse-item { --pulse-bg: #edf1e4; --pulse-ink: #647750; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; min-width: 0; min-height: 92px; padding: 18px; border: 1px solid #e7e7df; border-radius: 19px; background: #fffefa; text-align: left; }
.ws-pulse-item[data-kind="phone"] { --pulse-bg: #f0eaf6; --pulse-ink: #857197; }
.ws-pulse-item[data-kind="card"] { --pulse-bg: #fcf0e3; --pulse-ink: #967048; }
.ws-pulse-item[data-kind="wallet"] { --pulse-bg: #eaf1f8; --pulse-ink: #63809a; }
.ws-pulse-item > svg, .ws-pulse-item > .ws-pulse-icon { flex: none; width: 40px; height: 40px; padding: 11px; border-radius: 13px; background: var(--pulse-bg); color: var(--pulse-ink); }
.ws-pulse-item > .ws-pulse-icon { display: grid; place-items: center; }
.ws-pulse-icon svg { width: 18px; height: 18px; }
.ws-pulse-item strong { display: block; color: #343a32; font-size: 25px; line-height: 1.15; letter-spacing: -.8px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ws-pulse-item span { display: block; color: #6f746b; font-size: 11px; }
.ws-pulse-item > span:not(.ws-pulse-icon):not(.ws-event-icon) { flex: 1; }
.ws-pulse-item > strong { flex: 1; }
.ws-pulse-item > span:last-child:only-of-type { min-width: 70px; }
.ws-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; }
.ws-section-head h2 { font-size: 23px; letter-spacing: -.7px; margin: 0; }
.ws-section-head p { font-size: 12px; color: var(--ws-muted); margin: 5px 0 0; }
.ws-section-head > button, .ws-section-head > .button { flex: none; }
.ws-columns { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,1fr); gap: 26px; align-items: start; margin-bottom: 34px; }
.ws-columns > *, .ws-side { min-width: 0; }
.ws-side > section + section { margin-top: 23px; }
.ws-feed { overflow: hidden; border: 1px solid var(--ws-line); border-radius: 21px; background: var(--ws-paper); }
.ws-event { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 87px; padding: 16px 19px; border: 0; border-bottom: 1px solid #eeece5; background: transparent; color: #3d433b; text-align: left; transition: background .15s ease; }
.ws-event:last-child { border-bottom: 0; }
button.ws-event:hover { background: #f8f6ef; }
.ws-event-icon { flex: none; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 14px; background: #edf1e4; color: #6f8456; transform: rotate(-4deg); }
.ws-event-icon[data-kind="phone"] { background: #eee6f5; color: #88739f; transform: rotate(4deg); }
.ws-event-icon[data-kind="card"] { background: #faebdc; color: #a47c54; }
.ws-event-icon[data-kind="wallet"] { background: #e4edf7; color: #6e8aa9; transform: rotate(4deg); }
.ws-event-icon[data-kind="connection"], .ws-event-icon[data-kind="agent"], .ws-event-icon[data-kind="workspace"] { background: #f0ebe0; color: #8a7c5f; }
.ws-event-icon svg { width: 18px; height: 18px; }
.ws-event-copy { display: block; flex: 1; min-width: 0; }
.ws-event-copy strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.ws-event-copy span { display: block; color: #74796f; font-size: 11px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.ws-event > time { flex: none; color: #85877e; font-size: 10px; white-space: nowrap; }
.ws-event-amount { flex: none; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ws-day-label { margin: 23px 0 10px; color: #7c8076; font-size: 11px; font-weight: 500; }
.ws-day-label:first-child { margin-top: 0; }
.ws-agent-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-bottom: 30px; }
.ws-agent-card { min-width: 0; padding: 22px 20px 18px; border: 1px solid var(--ws-line); border-radius: 22px; background: var(--ws-paper); transition: box-shadow .2s ease, border-color .2s ease; }
.ws-agent-card:hover { border-color: #d9d8cb; box-shadow: 0 7px 19px #49472e06; }
.ws-agent-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ws-agent-head > div:not(.bot-face) { flex: 1; min-width: 0; }
.ws-agent-head h3, .ws-agent-head strong { display: block; margin: 0 0 4px; font-size: 18px; font-weight: 500; letter-spacing: -.4px; overflow-wrap: anywhere; }
.ws-agent-head p { margin: 0; color: #747a6e; font-size: 11px; }
.ws-agent-head .bot-face { width: 47px; height: 47px; border-radius: 17px; }
.ws-agent-head > button { min-width: 44px; border: 0; background: #f4f2ec; border-radius: 12px; }
.ws-agent-head button.ws-agent-name { padding: 0; min-height: 44px; text-align: left; border: 0; background: transparent; font-size: 18px; letter-spacing: -.4px; font-weight: 500; }
.ws-agent-latest { min-height: 63px; margin: 18px 0 14px; padding-top: 15px; border-top: 1px solid #eeece5; }
.ws-agent-latest p, p.ws-agent-latest { color: #6d7367; font-size: 12px; line-height: 1.6; }
.ws-agent-latest > p { margin: 0; }
.ws-agent-latest time { display: block; color: #85897e; font-size: 10px; margin-top: 5px; }
.ws-tool-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ws-tool-strip button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 45px; min-height: 44px; padding: 10px; border: 1px solid #dce5cf; border-radius: 12px; background: #edf2e4; color: #6a8053; font-size: 11px; }
.ws-tool-strip button[data-kind="phone"] { background: #f0eaf6; border-color: #e2d8ee; color: #826b9b; }
.ws-tool-strip button[data-kind="card"] { background: #fcf0e3; border-color: #eddfcd; color: #9b7750; }
.ws-tool-strip button[data-kind="wallet"] { background: #eaf1f8; border-color: #d9e5f0; color: #6785a1; }
.ws-tool-strip button.off { color: #969990; background: #f7f6f1; border-color: #e7e5dd; border-style: dashed; }
.ws-tool-strip button.blocked::after { content: ''; position: absolute; width: 7px; height: 7px; top: 7px; right: 7px; border-radius: 50%; background: #b47b4e; box-shadow: 0 0 0 2px #fffdfa; }
.ws-tool-strip button:hover { filter: brightness(.98); border-color: currentColor; }
.ws-tool-strip button svg { width: 17px; height: 17px; }
.ws-attention { display: flex; align-items: center; gap: 13px; padding: 19px; border: 1px solid #e9d9c8; border-radius: 19px; background: #faf0e5; margin-bottom: 12px; }
.ws-attention > svg { flex: none; width: 20px; height: 20px; color: #a17b55; }
.ws-attention-copy { min-width: 0; flex: 1; }
.ws-attention-copy strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.45; }
.ws-attention-copy p, .ws-attention-copy > span { display: block; color: #8a775f; font-size: 11px; line-height: 1.6; margin: 5px 0 0; }
.ws-attention > .button { flex: none; background: #fffaf3; border-color: #e9d8c1; color: #8c6a43; }
.ws-side .ws-attention { flex-wrap: wrap; }
.ws-side .ws-attention > .button { margin-left: auto; }
.ws-quiet { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 245px; padding: 30px 24px; border: 1px dashed #dcdcd0; border-radius: 21px; background: #faf9f3; text-align: center; }
.ws-quiet .bot-face { margin: 0 0 18px; --face: #d9d1e6; }
.ws-quiet > strong { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.ws-quiet p { max-width: 340px; color: #74796e; font-size: 12px; line-height: 1.65; margin: 0 0 18px; }
.ws-quiet > :last-child { margin-bottom: 0; }
.ws-draft { display: flex; align-items: center; gap: 13px; padding: 17px 19px; margin: 17px 0 26px; border: 1px dashed #d8d0e3; border-radius: 18px; background: #f6f2f8; }
.ws-draft > div:not(.bot-face) { min-width: 0; flex: 1; }
.ws-draft strong { display: block; font-size: 13px; font-weight: 500; }
.ws-draft p { font-size: 11px; color: #82788f; margin: 4px 0 0; }
.ws-draft > .button { flex: none; }
.ws-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0 0 23px; }
.ws-filters .field { margin: 0; min-width: 135px; flex: 0 1 190px; color: #6b7265; }
.ws-filters .field:first-child { flex-grow: 1; }
.ws-filters > input { flex: 1 1 210px; }
.ws-filters > select { width: auto; min-width: 135px; }
.ws-filters input, .ws-filters select { height: 45px; background: #fffefa; font-size: 12px; }
.ws-filters .field > span { font-size: 11px; }

/* Shared money and precise per-agent information. */
.ws-money-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; margin: 0 0 30px; }
.ws-money-card { position: relative; min-width: 0; padding: 26px; border: 1px solid #eddfce; border-radius: 24px; background: #fcf1e5; overflow: hidden; }
.ws-money-card[data-kind="wallet"] { border-color: #dbe6f0; background: #eaf1f8; }
.ws-money-card > h2 { font-size: 19px; margin-bottom: 5px; letter-spacing: -.5px; }
.ws-money-card > p { color: #81735f; font-size: 12px; margin-bottom: 20px; max-width: 340px; }
.ws-money-card[data-kind="wallet"] > p { color: #6b8093; }
.ws-money-card .amount, .ws-money-card > strong { display: block; font-size: 36px; font-weight: 500; letter-spacing: -1.1px; line-height: 1.2; font-variant-numeric: tabular-nums; margin: 21px 0 8px; }
.ws-money-card .amount > small { font-size: 13px; letter-spacing: 0; }
.ws-money-card .actions { justify-content: flex-start; margin-top: 21px; gap: 9px; }
.ws-money-card .ws-money-note { font-size: 11px; line-height: 1.6; margin-bottom: 0; }
.ws-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--ws-line); border-radius: 19px; background: var(--ws-paper); scrollbar-width: thin; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ws-table thead th { text-align: left; padding: 15px 18px; color: #7c8175; font-size: 10px; font-weight: 500; border-bottom: 1px solid var(--ws-line); background: #f7f6f0; white-space: nowrap; }
.ws-table td { padding: 17px 18px; border-bottom: 1px solid #eeece5; vertical-align: middle; font-variant-numeric: tabular-nums; }
.ws-table tr:last-child td { border-bottom: 0; }
.ws-table td small { display: block; color: #7f8578; font-size: 10px; margin-top: 3px; }
.ws-table td > strong { font-weight: 500; }
.ws-table .ws-agent-head { min-width: 150px; }
.ws-table .ws-agent-head .bot-face { width: 35px; height: 35px; border-radius: 12px; gap: 6px; }
.ws-table .ws-agent-head .bot-face i { width: 3px; height: 6px; }
.ws-table .ws-agent-head strong, .ws-table .ws-agent-head h3 { font-size: 13px; }
.ws-table .ws-agent-head p { font-size: 10px; }
.ws-table .button { white-space: nowrap; }
.ws-table td:last-child { text-align: right; }

/* Settings can be denser, with stable navigation and clear ownership of each control. */
.ws-settings-layout { display: grid; grid-template-columns: 195px minmax(0,1fr); gap: 31px; align-items: start; }
.ws-settings-nav { display: grid; gap: 6px; position: sticky; top: 20px; }
.ws-settings-nav button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 12px 15px; border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: left; font-size: 12px; color: #74796d; }
.ws-settings-nav button:hover { background: #f0eee6; color: #414b3e; }
.ws-settings-nav button.active, .ws-settings-nav button[aria-current="page"] { border-color: #e3dce9; background: #efe9f4; color: #79638b; }
.ws-settings-nav svg { width: 16px; height: 16px; }
.ws-settings-body { min-width: 0; }
.ws-settings-card { min-width: 0; padding: 29px; margin-bottom: 20px; border: 1px solid var(--ws-line); border-radius: 22px; background: var(--ws-paper); }
.ws-settings-card h2 { font-size: 22px; margin-bottom: 8px; letter-spacing: -.7px; }
.ws-settings-card h3 { margin: 23px 0 10px; font-size: 15px; }
.ws-settings-card > p { max-width: 560px; color: #74796d; font-size: 12px; line-height: 1.7; margin-bottom: 24px; }
.ws-settings-card > :last-child { margin-bottom: 0; }
.ws-settings-row { display: flex; align-items: center; gap: 18px; padding: 17px 0; border-bottom: 1px solid #eeece5; min-width: 0; }
.ws-settings-row:last-child { border-bottom: 0; }
.ws-settings-row > div { flex: 1; min-width: 0; }
.ws-settings-row :is(strong,label) { display: block; font-size: 13px; font-weight: 500; }
.ws-settings-row p, .ws-settings-row small { display: block; margin: 4px 0 0; color: #777d70; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.ws-settings-row > span { font-size: 12px; color: #64705e; overflow-wrap: anywhere; }
.ws-settings-row > :is(.button,button) { flex: none; }
.ws-settings-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.ws-settings-form .field { margin-bottom: 0; }
.ws-settings-form .ws-full { grid-column: 1 / -1; }
.ws-settings-form .actions { margin-top: 4px; }
.ws-settings-form :is(input,select,textarea) { background: #fffefa; }
.ws-settings-note { padding: 14px 16px; border-radius: 13px; background: #f3f0e8; color: #83765f; font-size: 11px; line-height: 1.7; margin: 17px 0; }
.ws-settings-note p { margin: 0; }
.ws-toggle, label.ws-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 59px; padding: 13px 0; border-bottom: 1px solid #eeece5; font-size: 13px; cursor: pointer; }
.ws-toggle:last-child, label.ws-switch:last-child { border-bottom: 0; }
.ws-toggle > :first-child, label.ws-switch > :first-child { min-width: 0; }
.ws-toggle strong, label.ws-switch strong { display: block; font-size: 13px; font-weight: 500; }
.ws-toggle small, label.ws-switch small { display: block; margin-top: 4px; color: #7d8276; font-size: 11px; line-height: 1.6; }
.ws-toggle input[type="checkbox"], .ws-switch input[type="checkbox"], input.ws-switch[type="checkbox"] { appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border: 1px solid #d6d7ce; border-radius: 20px; background: #e7e6df; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.ws-toggle input[type="checkbox"]::after, .ws-switch input[type="checkbox"]::after, input.ws-switch[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fffefa; box-shadow: 0 1px 3px #393b2722; transition: transform .15s ease; }
.ws-toggle input[type="checkbox"]:checked, .ws-switch input[type="checkbox"]:checked, input.ws-switch[type="checkbox"]:checked { border-color: #7c926b; background: #829972; }
.ws-toggle input[type="checkbox"]:checked::after, .ws-switch input[type="checkbox"]:checked::after, input.ws-switch[type="checkbox"]:checked::after { transform: translateX(16px); }
.ws-toggle:has(input:disabled), label.ws-switch:has(input:disabled) { opacity: .6; cursor: default; }
.ws-danger { padding: 25px 28px; border: 1px solid #e8d7ca; border-radius: 20px; background: #fcf7f2; margin-top: 25px; }
.ws-danger h2 { font-size: 19px; color: #8a634c; }
.ws-danger p { color: #8c7d6d; font-size: 12px; line-height: 1.65; }
.ws-danger .button, .ws-shell .button.danger { color: #925e49; border-color: #dec6b6; background: #fffaf4; }
.ws-danger .button:hover { background: #f5e5da; }
.ws-detail-head { display: flex; align-items: center; gap: 19px; margin: 0 0 28px; }
.ws-detail-head > div:not(.bot-face) { flex: 1; min-width: 0; }
.ws-detail-head h1 { font-size: 36px; letter-spacing: -1.3px; margin: 0 0 8px; }
.ws-detail-head p { margin: 0; color: #747b6c; font-size: 12px; }
.ws-detail-head > .button { flex: none; }
.ws-details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.ws-details-grid > .panel { margin: 0; }
.ws-details-grid .panel h2 { font-size: 19px; }
.ws-details-grid .panel .amount { font-size: 27px; }
.ws-event-detail { padding-top: 10px; }
.ws-event-detail > .ws-event-icon { width: 57px; height: 57px; border-radius: 19px; margin: 0 0 22px; }
.ws-event-detail > .ws-event-icon svg { width: 23px; height: 23px; }
.ws-event-detail > p { color: #757b6e; font-size: 13px; line-height: 1.75; }
.ws-event-detail dl { margin: 22px 0 0; }
.ws-detail-line { display: flex; justify-content: space-between; gap: 22px; padding: 13px 0; border-bottom: 1px solid #eae8df; font-size: 12px; }
.ws-detail-line:last-child { border-bottom: 0; }
.ws-detail-line dt { color: #7b8075; flex: 0 0 110px; }
.ws-detail-line dd { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.ws-status-pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; min-height: 23px; padding: 4px 8px; border: 1px solid #e2e7d7; border-radius: 7px; background: #edf2e5; color: #60794b; font-size: 10px; line-height: 1.25; white-space: normal; font-weight: 500; }
.ws-status-pill::before { content: ''; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; opacity: .75; }
.ws-status-pill.paused, .ws-status-pill.workspace-paused { color: #94734b; background: #f9efdf; border-color: #e9dcc6; }
.ws-status-pill.disconnected { color: #858579; background: #f0efe9; border-color: #e2e1d9; }
.ws-sample-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 17px; margin: 0 0 24px; border: 1px solid #e0d6e8; border-radius: 14px; background: #f0eaf5; color: #7c678f; font-size: 12px; }
.ws-sample-bar > span { min-width: 0; }
.ws-sample-bar strong { font-weight: 500; }
.ws-sample-bar button { border: 1px solid #d8cbe3; background: #fff9ff; color: #7c678f; min-height: 36px; padding: 7px 12px; border-radius: 9px; font-size: 11px; white-space: nowrap; }
.ws-sample-bar button:hover { background: #e5dcef; }

/* Components shared by the overview, agent directory and workspace settings. */
.ws-top h1 { display: flex; align-items: center; gap: 11px; }
.ws-top h1::before { content: ''; flex: none; width: 18px; height: 18px; border: 1px solid #7b7b6620; border-radius: 6px; background: var(--workspace-color,#d3e3b5); transform: rotate(-8deg); box-shadow: inset 0 1px 2px #fff8, 1px 2px 0 #726d5114; }
.ws-top .eyebrow { margin-bottom: 8px; font-size: 9px; color: #838677; }
.ws-welcome-copy > .button { margin-top: 18px; }
.ws-pulse-item > .ws-event-icon { flex: 0 0 39px; min-width: 39px; width: 39px; height: 39px; display: grid; place-items: center; }
.ws-pulse-item > div { min-width: 0; }
.ws-pulse-item span small { color: #8a8f81; font-size: 10px; }
.ws-attention-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-bottom: 30px; }
.ws-attention-list > .ws-attention { margin-bottom: 0; }
.ws-attention-list > .ws-attention:only-child { grid-column: 1/-1; }
.ws-feed .ws-day-label { padding: 11px 19px; margin: 0; border-bottom: 1px solid #eeece5; color: #8b8372; background: #f6f3eb; font-size: 10px; }
.ws-crew-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #e8e6dc; background: transparent; color: var(--ws-ink); text-align: left; }
.ws-crew-row:hover { background: #f4f1e9; border-radius: 12px; }
.ws-crew-row .bot-face { width: 44px; height: 44px; border-radius: 16px; gap: 8px; }
.ws-crew-row .bot-face i { width: 4px; height: 8px; }
.ws-crew-row > span:not(.ws-status-pill) { flex: 1; min-width: 0; }
.ws-crew-row strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.ws-crew-row small { display: block; color: #7c8273; font-size: 11px; margin-top: 3px; }
.ws-pocket { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 21px; margin-top: 24px; background: #f7f0e3; border: 1px solid #eadeca; border-radius: 19px; }
.ws-pocket > span { color: #938163; font-size: 11px; flex: 1; }
.ws-pocket > strong { color: #806849; font-size: 21px; letter-spacing: -.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ws-pocket > .button { margin: 3px 0 -7px -9px; color: #897150; min-height: 44px; padding-left: 9px; }
.ws-agent-head h2 { font-size: 18px; margin: 0 0 3px; }
.ws-agent-head h2 .button { min-height: 44px; padding: 2px 0; font-size: 18px; font-weight: 500; letter-spacing: -.4px; color: #394034; text-decoration: none; text-align: left; justify-content: flex-start; overflow-wrap: anywhere; }
.ws-agent-head h2 .button:hover { text-decoration: underline; text-underline-offset: 4px; }
.ws-agent-head > div > span { color: #828779; font-size: 10px; }
.ws-agent-head > .ws-status-pill { flex: none; max-width: 99px; font-size: 9px; }
.ws-agent-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
.ws-agent-bottom > span { color: #84897a; font-size: 10px; }
.ws-agent-bottom .button { min-height: 44px; padding: 9px 7px; font-size: 11px; }
.ws-draft > div { display: flex; align-items: center; gap: 15px; }
.ws-draft .bot-face { width: 39px; height: 39px; border-radius: 14px; gap: 6px; }
.ws-draft .bot-face i { width: 4px; height: 7px; }
.ws-draft > div > span { color: #857691; font-size: 11px; line-height: 1.7; }
.ws-draft strong { color: #6e5b7d; }
.ws-example-link { text-align: center; margin: 17px 0 0; }
.ws-example-link .button { color: #8b78a0; }
.ws-subnav { display: flex; align-items: center; gap: 8px; margin: 0 0 23px; border-bottom: 1px solid var(--ws-line); padding-bottom: 13px; overflow-x: auto; scrollbar-width: thin; }
.ws-subnav .button { flex: none; font-size: 12px; }
.ws-subnav .button.active { background: #f0eaf5; color: #7b658f; border-color: #dfd5e8; }
.ws-request-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.ws-request-actions > .button { flex: 1; }
.ws-event-detail > .button { margin-top: 25px; }
.ws-money-card > .ws-event-icon { float: right; width: 48px; height: 48px; border-radius: 16px; margin: 0 0 10px 15px; }
.ws-money-card > span:not(.ws-event-icon) { display: block; font-size: 12px; color: #88765c; margin-top: 4px; }
.ws-money-card[data-kind="wallet"] > span:not(.ws-event-icon) { color: #6d8299; }
.ws-money-card > .ws-money-amount { margin: 20px 0 17px; }
.ws-money-amount small { font-size: 16px; letter-spacing: 0; color: #788da3; }
.ws-money-card > small { display: block; margin-top: 18px; color: #978468; font-size: 11px; }
.ws-money-card[data-kind="wallet"] > small { color: #7b8ea3; }
.ws-money-card > .button { margin-top: 2px; }
.ws-money-card > p { margin-bottom: 24px; }
.ws-table-wrap + .ws-section-head, .ws-shell > .ws-feed + .ws-section-head, .ws-shell > .ws-quiet + .ws-section-head, .ws-shell > .ws-settings-note + .ws-section-head { margin-top: 30px; }
.ws-table tbody th { text-align: left; padding: 17px 18px; border-bottom: 1px solid #eeece5; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ws-table tbody tr:last-child th { border-bottom: 0; }
.ws-settings-row > div > span { display: block; font-size: 11px; color: #808675; margin-bottom: 6px; }
.ws-settings-row > div > strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.ws-settings-row > div > strong .badge { margin-left: 4px; vertical-align: middle; }
.ws-settings-row > div > strong > span { font-weight: 400; color: #7c8272; }
.ws-settings-card > h2 + .ws-settings-form { margin-top: 26px; }
.ws-settings-save { display: flex; justify-content: flex-end; margin-top: 22px; }
.ws-settings-form .ws-settings-save { margin-top: 4px; }
label.ws-switch + .field { max-width: 220px; margin: 14px 0 6px; }
.ws-color-options { display: flex; flex-wrap: wrap; gap: 11px; padding: 0; margin: 7px 0 0; border: 0; }
.ws-color-options legend { margin-bottom: 11px; padding: 0; color: #617058; font-size: 12px; font-weight: 500; }
.ws-color-options label { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 11px; background: #fffefa; border: 1px solid #e5e3d8; border-radius: 12px; cursor: pointer; font-size: 11px; color: #7d8273; }
.ws-color-options label:has(input:checked) { border-color: #9d9c84; color: #4d5747; background: #f5f4eb; box-shadow: 0 0 0 1px #9d9c8415; }
.ws-color-options label:hover { border-color: #bbbca7; }
.ws-color-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ws-color-options label:has(input:focus-visible) { outline: 3px solid #8b7bb0; outline-offset: 4px; }
.ws-color-options input + span { display: block; width: 22px; height: 22px; border-radius: 8px; background: var(--swatch,#d3e3b5); box-shadow: inset 0 1px 2px #fff9, inset 0 -1px 2px #77775018; }
.ws-color-options input:checked + span::after { content: '✓'; display: grid; place-items: center; height: 100%; font-size: 12px; color: #43533a; }

@media (max-width: 900px) {
  .ws-welcome { grid-template-columns: minmax(0,1.1fr) minmax(240px,1fr); gap: 20px; padding: 29px; }
  .ws-welcome :is(h1,h2) { font-size: 34px; }
  .ws-team-scene { padding-left: 0; padding-right: 0; }
  .ws-team-bot { flex-basis: 95px; width: 95px; }
  .ws-pulse { gap: 10px; }
  .ws-attention-list { grid-template-columns: 1fr; }
  .ws-pulse-item > .ws-event-icon { flex-basis: 32px; min-width: 32px; width: 32px; height: 32px; border-radius: 11px; }
  .ws-pulse-item > .ws-event-icon svg { width: 16px; height: 16px; }
  .ws-pulse-item { padding: 15px 13px; gap: 7px; }
  .ws-pulse-item > svg, .ws-pulse-item > .ws-pulse-icon { width: 34px; height: 34px; padding: 8px; }
  .ws-pulse-item strong { font-size: 22px; }
  .ws-columns { grid-template-columns: minmax(0,1.45fr) minmax(225px,1fr); gap: 18px; }
  .ws-agent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ws-settings-layout { grid-template-columns: 165px minmax(0,1fr); gap: 20px; }
  .ws-settings-card { padding: 24px; }
  .ws-settings-form { grid-template-columns: 1fr; gap: 17px; }
  .ws-event { gap: 10px; padding: 15px; }
  .ws-event > time { font-size: 9px; }
  .ws-money-card { padding: 22px; }
}
@media (max-width: 600px) {
  .ws-top { align-items: flex-start; gap: 15px; margin-bottom: 18px; }
  .ws-top h1 { font-size: 21px; }
  .ws-top-actions { gap: 7px; }
  .ws-top-actions .button { padding: 10px 12px; font-size: 11px; }
  .ws-top-actions .button svg { width: 15px; height: 15px; }
  .ws-crew-row { padding-left: 2px; padding-right: 2px; }
  .ws-agent-head > .ws-status-pill { max-width: 108px; }
  .ws-pulse-item > .ws-event-icon { flex-basis: 35px; min-width: 35px; width: 35px; height: 35px; }
  .ws-subnav .button { font-size: 11px; padding: 9px 12px; }
  .ws-color-options { gap: 9px; }
  .ws-color-options label { flex: 1 1 calc(50% - 9px); }
  .ws-table tbody th { padding: 15px; }
  .ws-nav { width: 100%; margin-bottom: 23px; gap: 2px; padding: 4px; border-radius: 13px; }
  .ws-nav button { padding: 10px 13px; font-size: 11px; flex: 1 0 auto; }
  .ws-nav button svg { display: none; }
  .ws-welcome { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 26px 24px 13px; border-radius: 25px; }
  .ws-welcome :is(h1,h2) { max-width: 340px; font-size: 34px; letter-spacing: -1.2px; }
  .ws-welcome-copy > p { font-size: 13px; line-height: 1.6; max-width: 330px; }
  .ws-team-scene { min-height: 177px; padding-top: 25px; padding-bottom: 11px; max-width: 330px; width: 100%; margin: 11px auto 0; }
  .ws-team-scene::before { height: 153px; }
  .ws-team-scene::after { width: 33px; height: 33px; right: 34px; top: 12px; }
  .ws-team-bot { flex-basis: 100px; width: 100px; }
  .ws-pulse { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 26px; }
  .ws-pulse-item { min-height: 86px; padding: 15px; gap: 11px; }
  .ws-pulse-item strong { font-size: 23px; }
  .ws-section-head { gap: 12px; margin-bottom: 14px; }
  .ws-section-head h2 { font-size: 21px; }
  .ws-section-head .button { padding: 9px 10px; font-size: 11px; }
  .ws-columns { grid-template-columns: 1fr; gap: 25px; margin-bottom: 26px; }
  .ws-side .ws-attention { flex-wrap: nowrap; }
  .ws-event { padding: 16px; }
  .ws-event-icon { width: 36px; height: 36px; border-radius: 12px; }
  .ws-event-copy strong { font-size: 12px; }
  .ws-event > time { font-size: 9px; max-width: 48px; white-space: normal; text-align: right; }
  .ws-event-amount { font-size: 11px; }
  .ws-agent-grid { grid-template-columns: 1fr; gap: 14px; }
  .ws-agent-card { padding: 20px; }
  .ws-agent-latest { min-height: 0; }
  .ws-tool-strip { gap: 10px; }
  .ws-tool-strip button { min-width: 49px; }
  .ws-attention { padding: 16px; gap: 10px; }
  .ws-draft { flex-wrap: wrap; gap: 11px; padding: 16px; }
  .ws-draft > .button { margin-left: auto; }
  .ws-filters { gap: 12px; }
  .ws-filters .field { flex: 1 1 135px; }
  .ws-filters .field:first-child { flex-basis: 100%; }
  .ws-filters > input { flex-basis: 100%; }
  .ws-filters > select { flex: 1; }
  .ws-money-grid { grid-template-columns: 1fr; gap: 15px; }
  .ws-money-card { padding: 23px; }
  .ws-table td { padding: 15px; }
  .ws-table thead th { padding: 13px 15px; }
  .ws-settings-layout { grid-template-columns: 1fr; gap: 20px; }
  .ws-settings-nav { display: flex; position: static; overflow-x: auto; gap: 5px; padding: 0 0 5px; scrollbar-width: thin; }
  .ws-settings-nav button { flex: 0 0 auto; width: auto; padding: 11px 13px; font-size: 11px; white-space: nowrap; }
  .ws-settings-nav button svg { display: none; }
  .ws-settings-card { padding: 22px; border-radius: 20px; }
  .ws-settings-card h2 { font-size: 21px; }
  .ws-settings-row { gap: 13px; flex-wrap: wrap; }
  .ws-settings-row > div { flex-basis: 160px; }
  .ws-settings-row > .button { padding: 9px 12px; font-size: 11px; margin-left: auto; }
  .ws-settings-row > span { font-size: 11px; }
  .ws-toggle, label.ws-switch { gap: 16px; }
  .ws-settings-note { padding: 13px 15px; }
  .ws-danger { padding: 22px; }
  .ws-detail-head { gap: 15px; flex-wrap: wrap; }
  .ws-detail-head h1 { font-size: 30px; }
  .ws-detail-head .bot-face { width: 59px; height: 59px; border-radius: 21px; }
  .ws-detail-head > .button { margin-left: auto; }
  .ws-details-grid { grid-template-columns: 1fr; }
  .ws-sample-bar { gap: 12px; padding: 11px 14px; font-size: 11px; }
  .ws-sample-bar button { min-height: 44px; }
  .ws-detail-line { gap: 15px; }
  .ws-detail-line dt { flex-basis: 90px; }
}
@media (max-width: 390px) {
  .ws-top { flex-wrap: wrap; }
  .ws-top-actions { margin-left: auto; }
  .ws-nav button { padding: 10px 11px; }
  .ws-nav button > span { min-width: 17px; height: 17px; font-size: 9px; }
  .ws-welcome { padding: 23px 19px 10px; }
  .ws-welcome :is(h1,h2) { font-size: 30px; }
  .ws-team-bot { flex-basis: 88px; width: 88px; }
  .ws-team-bot .bot-face, .ws-team-bot .bot-face.small, .ws-team-bot .bot-face.large { width: 59px; height: 59px; border-radius: 20px; }
  .ws-team-bot .ws-prop { left: 0; top: 48px; width: 28px; height: 26px; }
  .ws-pulse-item { padding: 13px 11px; gap: 8px; }
  .ws-pulse-item strong { font-size: 21px; }
  .ws-pulse-item span { font-size: 10px; }
  .ws-pulse-item > svg, .ws-pulse-item > .ws-pulse-icon { width: 31px; height: 31px; padding: 7px; }
  .ws-event { padding: 14px 12px; gap: 9px; }
  .ws-event-icon { width: 31px; height: 31px; border-radius: 10px; }
  .ws-event-icon svg { width: 15px; height: 15px; }
  .ws-event > time { max-width: 40px; }
  .ws-side .ws-attention { flex-wrap: wrap; }
  .ws-attention > .button { margin-left: auto; }
  .ws-settings-card { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-shell *, .ws-shell *::before, .ws-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
