/* A calm, useful home for saved items and work in progress. */
#activity-screen.workspace-screen {
  padding: 0;
  background: radial-gradient(ellipse at 100% 0, rgba(97, 78, 213, .2), transparent 40%), linear-gradient(155deg, #08142c 0%, #0b1732 48%, #111935 100%);
  overflow-y: auto;
  overflow-x: hidden;
  isolation: isolate;
}
.workspace-shell {
  --ws-ink: #f4f6ff;
  --ws-muted: #a8b5d2;
  --ws-line: rgba(156, 181, 235, .14);
  width: min(100%, 1020px);
  margin-inline: auto;
  padding: 30px 20px calc(115px + env(safe-area-inset-bottom));
  color: var(--ws-ink);
  text-align: start;
  line-height: 1.7;
}
.workspace-shell *, .workspace-dialog * { box-sizing: border-box; }
.workspace-shell button, .workspace-dialog button { cursor: pointer; }
.workspace-shell button:focus-visible, .workspace-shell input:focus-visible, .workspace-dialog button:focus-visible {
  outline: 3px solid #8fc8ff;
  outline-offset: 3px;
}
.workspace-shell button:disabled, .workspace-dialog button:disabled { opacity: .55; cursor: wait; }
.workspace-header { margin-block-end: 25px; }
.workspace-header-top { display: flex; align-items: center; justify-content: space-between; margin-block-end: 22px; }
.workspace-emblem {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px;
  color: #d8dfff; background: linear-gradient(135deg, rgba(112, 106, 247, .29), rgba(58, 132, 229, .17));
  border: 1px solid rgba(167, 174, 255, .23); box-shadow: 0 9px 26px rgba(0, 0, 0, .12);
}
.workspace-emblem svg { width: 25px; height: 25px; }
.workspace-account-badge { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #c4cfea; background: rgba(141, 163, 214, .07); border: 1px solid var(--ws-line); border-radius: 999px; padding: 5px 10px; }
.workspace-account-badge svg { width: 13px; height: 13px; color: #9ac7ff; }
.workspace-kicker { margin: 0 0 7px; font-size: 10px; letter-spacing: .08em; font-weight: 700; color: #95b9f1; }
.workspace-shell h1 { margin: 0; font-size: clamp(26px, 5vw, 38px); letter-spacing: -.025em; line-height: 1.4; font-weight: 700; color: #f6f7ff; }
.workspace-subtitle { font-size: 13px; color: var(--ws-muted); margin: 8px 0 21px; max-width: 44rem; }
.workspace-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 18px; overflow: hidden; background: rgba(125, 150, 212, .065); border: 1px solid var(--ws-line); }
.workspace-stat { display: flex; flex-direction: column; padding: 13px 7px 14px; align-items: center; text-align: center; gap: 1px; }
.workspace-stat + .workspace-stat { border-inline-start: 1px solid var(--ws-line); }
.workspace-stat strong { font-size: 23px; font-weight: 700; line-height: 1.45; color: #e5ebff; font-variant-numeric: tabular-nums; }
.workspace-stat span { font-size: 10px; color: var(--ws-muted); }
.workspace-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 5px; border-radius: 14px; background: rgba(0, 6, 21, .3); border: 1px solid rgba(154, 178, 230, .12); margin-block-end: 15px; }
.workspace-tab { padding: 9px 5px; background: none; border: 0; border-radius: 10px; color: #a8b6d7; font-size: 12px; line-height: 1.6; font-weight: 600; transition: background .15s, color .15s; }
.workspace-tab[aria-selected="true"] { background: linear-gradient(135deg, rgba(87, 115, 215, .49), rgba(111, 85, 192, .38)); color: #f6f7ff; box-shadow: 0 3px 8px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(211, 222, 255, .12); }
.workspace-search { display: flex; align-items: center; gap: 10px; background: rgba(15, 31, 61, .7); border: 1px solid var(--ws-line); border-radius: 14px; padding: 0 13px; color: #9bb3db; min-height: 47px; margin-block-end: 23px; }
.workspace-search > svg { width: 18px; height: 18px; flex-shrink: 0; }
.workspace-search:focus-within { border-color: #699ee6; box-shadow: 0 0 0 3px rgba(81, 144, 229, .1); }
.workspace-search-input { min-width: 0; width: 100%; border: 0; outline: none; padding: 12px 0; background: transparent; color: #f2f5ff; font-size: 12px; }
.workspace-search-input::placeholder { color: #92a4c5; opacity: 1; }
.workspace-search-input:focus-visible { outline: none; }
.workspace-section { margin-block: 0 29px; }
.workspace-section-heading { display: flex; align-items: center; gap: 12px; margin-block-end: 12px; }
.workspace-section-heading h2 { margin: 0; font-size: 17px; font-weight: 600; color: #eef2ff; line-height: 1.6; flex: 1; }
.workspace-section-intro { margin: -7px 0 13px; color: #9caccb; font-size: 11px; }
.workspace-text-button { font-size: 11px; padding: 5px 0; line-height: 1.6; border: 0; background: none; color: #a4c7ff; font-weight: 600; white-space: nowrap; }
.workspace-text-button:hover { color: #d8e6ff; }
.workspace-collections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.workspace-collection { min-width: 0; display: flex; align-items: center; gap: 10px; text-align: start; padding: 13px 11px; border-radius: 16px; background: linear-gradient(140deg, rgba(39, 61, 106, .43), rgba(29, 43, 78, .4)); border: 1px solid var(--ws-line); color: #f0f4ff; transition: transform .15s, border-color .15s; }
.workspace-collection:hover { border-color: rgba(149, 181, 246, .42); transform: translateY(-1px); }
.workspace-collection-icon { display: grid; place-items: center; width: 35px; height: 37px; border-radius: 11px; color: #a4c8ff; background: rgba(120, 153, 232, .09); flex-shrink: 0; }
.workspace-collection-icon svg { width: 19px; height: 19px; }
.workspace-collection-body { display: flex; flex-direction: column; min-width: 0; }
.workspace-collection-body strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.5; }
.workspace-collection-body > span { font-size: 10px; color: #9caccb; line-height: 1.7; margin-block-start: 2px; }
.workspace-collection-arrow { width: 14px; height: 14px; color: #798db2; flex-shrink: 0; margin-inline-start: auto; }
.workspace-shell[dir="ltr"] .workspace-collection-arrow { transform: rotate(180deg); }
.workspace-collection:last-child { grid-column: 1 / -1; }
.workspace-list { display: grid; gap: 10px; }
.workspace-card { display: flex; align-items: center; border: 1px solid var(--ws-line); background: linear-gradient(120deg, rgba(27, 48, 84, .6), rgba(25, 37, 69, .45)); border-radius: 16px; min-width: 0; overflow: hidden; }
.workspace-card:focus-within { border-color: rgba(151, 187, 250, .6); }
.workspace-card-main { display: flex; gap: 12px; align-items: center; text-align: start; flex: 1; min-width: 0; border: 0; background: none; padding: 14px 13px; color: var(--ws-ink); }
.workspace-item-icon { width: 19px; height: 19px; flex-shrink: 0; color: #9ebff4; }
.workspace-item-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.workspace-item-category { color: #8aa8d5; font-size: 9px; line-height: 1.6; margin-block-end: 2px; }
.workspace-item-title { font-size: 13px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.workspace-item-description { font-size: 11px; color: #b4c1da; line-height: 1.65; margin-block-start: 3px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.workspace-item-meta { color: #8094b8; font-size: 9px; line-height: 1.8; margin-block-start: 5px; overflow-wrap: anywhere; }
.workspace-item-arrow { width: 15px; height: 15px; flex-shrink: 0; color: #8299c2; }
.workspace-shell[dir="rtl"] .workspace-item-arrow { transform: scaleX(-1); }
.workspace-remove { display: grid; place-items: center; width: 38px; min-height: 44px; align-self: center; flex-shrink: 0; border: 0; border-inline-start: 1px solid var(--ws-line); background: none; color: #8fa6cd; margin-inline-end: 7px; }
.workspace-remove svg { width: 17px; height: 17px; }
.workspace-remove:hover { color: #e7c2cf; }
.workspace-quick-actions { display: grid; gap: 8px; }
.workspace-quick-action { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid rgba(122, 150, 216, .13); border-radius: 13px; text-align: start; color: #c7d6f2; background: rgba(42, 63, 105, .16); font-size: 12px; }
.workspace-quick-action > svg:first-child { width: 17px; height: 17px; color: #a4baf7; }
.workspace-quick-action span { flex: 1; }
.workspace-quick-action:hover { border-color: rgba(122, 150, 216, .4); background: rgba(65, 84, 137, .23); }
.workspace-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -6px 0 22px; }
.workspace-filter { border: 1px solid rgba(145, 169, 222, .17); border-radius: 999px; padding: 6px 11px; background: rgba(32, 47, 83, .45); font-size: 11px; color: #a6b7d9; line-height: 1.6; }
.workspace-filter[aria-pressed="true"] { border-color: rgba(135, 161, 246, .55); background: rgba(89, 100, 189, .3); color: #edf1ff; }
.workspace-result-count { display: grid; place-items: center; font-size: 10px; color: #a8b9dd; background: rgba(142, 167, 221, .09); border-radius: 999px; min-width: 24px; padding: 1px 5px; }
.workspace-clear { color: #c1a9bf; font-size: 10px; }
.workspace-empty { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 29px 17px; border: 1px dashed rgba(151, 174, 225, .22); border-radius: 18px; background: rgba(24, 43, 80, .24); }
.workspace-empty-icon { width: 29px; height: 29px; color: #a0b4ea; margin-block-end: 13px; }
.workspace-empty h3 { margin: 0 0 7px; font-size: 16px; font-weight: 600; color: #d9e3fa; line-height: 1.65; }
.workspace-empty p { font-size: 11px; color: #9fafd0; max-width: 27rem; margin: 0 0 18px; line-height: 1.9; }
.workspace-primary, .workspace-secondary { border: 1px solid rgba(154, 181, 249, .25); border-radius: 11px; padding: 9px 16px; min-height: 42px; color: #f2f5ff; background: linear-gradient(115deg, #4d67c1, #6454ad); font-size: 11px; font-weight: 600; }
.workspace-secondary { background: rgba(124, 147, 199, .08); color: #c4cee5; border-color: rgba(154, 181, 249, .15); }
.workspace-status { font-size: 11px; color: #a4dacb; margin: 14px 0 0; min-height: 0; }
.workspace-status:empty { margin: 0; }
.workspace-status.is-error { color: #f5b9c9; }
.workspace-account-note { margin: 22px 0 0; font-size: 10px; color: #879bbe; text-align: center; }
.workspace-dialog { position: fixed; inset: 0; z-index: 150; display: grid; align-items: center; justify-items: center; padding: 22px; background: rgba(1, 6, 21, .77); backdrop-filter: blur(7px); }
.workspace-dialog-panel { width: min(100%, 420px); max-height: calc(100dvh - 44px); overflow-y: auto; border: 1px solid rgba(156, 174, 232, .25); border-radius: 23px; background: linear-gradient(145deg, #192b50, #151c38); padding: 25px; text-align: start; color: #eef2ff; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.workspace-dialog-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: #c5bcf0; background: rgba(140, 117, 209, .15); margin-block-end: 18px; }
.workspace-dialog-mark svg { width: 21px; height: 21px; }
.workspace-dialog h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.6; }
.workspace-dialog p { font-size: 12px; color: #b6c3dd; line-height: 1.9; margin: 0 0 22px; }
.workspace-dialog-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.workspace-dialog-actions button { flex: 1; }
@media (min-width: 700px) {
  .workspace-shell { padding: 42px 35px 125px; }
  .workspace-header { margin-block-end: 28px; }
  .workspace-stats { max-width: 600px; }
  .workspace-stat { padding: 16px 12px; }
  .workspace-stat span { font-size: 12px; }
  .workspace-tabs { max-width: 520px; }
  .workspace-collections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-collection { padding: 17px; }
  .workspace-collection:last-child { grid-column: auto; }
  .workspace-collection-body strong { font-size: 14px; }
  .workspace-collection-body > span { font-size: 11px; }
  .workspace-quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-item-title { font-size: 14px; }
  .workspace-search-input, .workspace-tab { font-size: 13px; }
}
@media (max-width: 350px) {
  .workspace-shell { padding-inline: 15px; }
  .workspace-collections { grid-template-columns: minmax(0, 1fr); }
  .workspace-stat span { font-size: 9px; }
  .workspace-section-heading { gap: 7px; }
  .workspace-section-heading h2 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-shell *, .workspace-dialog * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
