.xw-global-task-host {
  --xwt-blue: #1769ff;
  --xwt-ink: #162033;
  --xwt-muted: #69758a;
  position: fixed;
  z-index: 60;
  left: 12px;
  bottom: 10px;
  width: calc(var(--sidebar, 16.75rem) - 24px);
  display: none;
  align-items: center;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.authed .xw-global-task-host { display: flex; }
body.authed .sidebar { padding-bottom: 64px; }

.xw-global-task-entry {
  position: relative;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #253044;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.xw-global-task-entry:hover,
.xw-global-task-entry.is-open {
  border-color: transparent;
  color: var(--xwt-blue);
  background: #edf4ff;
  box-shadow: none;
}
.xw-global-task-entry:focus-visible { outline: 3px solid rgba(23, 105, 255, .24); outline-offset: 2px; }
.xw-global-task-entry-icon { color: #667085; text-align: center; font-size: 15px; }
.xw-global-task-entry:hover .xw-global-task-entry-icon,
.xw-global-task-entry.is-open .xw-global-task-entry-icon { color: var(--xwt-blue); }
.xw-global-task-entry-label { min-width: 0; font-weight: 600; }
.xw-global-task-entry-arrow { justify-self: end; color: #9aa4b5; font-size: 11px; }
.xw-global-task-entry-badges {
  min-height: 15px;
  justify-self: start;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  background: transparent;
}
.xw-global-task-entry-count {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
.xw-global-task-entry-count b { color: inherit; font: inherit; }
.xw-global-task-entry-count i { display: none; }
.xw-global-task-entry-count.is-task { color: #e18400; background: #fff0d7; }
.xw-global-task-entry-count.is-collaboration { color: #1769ff; background: #e9f1ff; }
.xw-global-task-entry-divider { display: none; }

.xw-global-task-popover {
  position: absolute;
  left: calc(100% + 10px);
  right: auto;
  top: auto;
  bottom: 0;
  width: min(380px, calc(100vw - 112px));
  max-height: min(560px, calc(100vh - 40px));
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(22, 32, 51, .16);
  transform: translateX(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

@media (max-width: 55rem) {
  body.authed .sidebar { padding-bottom: 1rem; }
  .xw-global-task-host {
    left: auto;
    right: 12px;
    top: auto;
    bottom: 86px;
    width: 52px;
    transform: none;
  }
  .xw-global-task-entry {
    width: 52px;
    min-height: 52px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 55, 88, .18);
  }
  .xw-global-task-entry-label,
  .xw-global-task-entry-arrow { display: none; }
  .xw-global-task-entry-badges {
    position: absolute;
    top: -5px;
    right: -7px;
    min-height: 15px;
    padding: 0;
    gap: 2px;
    border: 0;
    background: transparent;
  }
  .xw-global-task-entry-count {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }
  .xw-global-task-popover {
    left: auto;
    right: calc(100% + 12px);
    top: auto;
    bottom: 0;
    transform: translateX(10px);
  }
  .xw-global-task-host[data-open="1"] .xw-global-task-popover {
    transform: translateX(0);
  }
}

.xw-global-task-host[data-open="1"] .xw-global-task-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.xw-global-task-head {
  padding: 14px 15px 11px;
  border-bottom: 1px solid #edf1f6;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.xw-global-task-title-row,
.xw-global-task-tabs,
.xw-global-task-item-top,
.xw-global-task-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xw-global-task-title-row strong { color: var(--xwt-ink); font-size: 15px; }
.xw-global-task-title-row span { color: var(--xwt-muted); font-size: 12px; }
.xw-global-task-pin {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: #738098;
  background: #f3f6fa;
  cursor: pointer;
}
.xw-global-task-pin:hover { color: var(--xwt-blue); background: #eaf1ff; }

.xw-global-task-tabs {
  justify-content: flex-start;
  margin-top: 10px;
}

.xw-global-task-tab {
  padding: 6px 11px;
  border: 1px solid #e1e7f0;
  border-radius: 9px;
  color: #5f6a7c;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.xw-global-task-tab.is-active { color: var(--xwt-blue); border-color: #bed2ff; background: #edf4ff; font-weight: 700; }

.xw-global-task-list {
  max-height: min(470px, calc(100vh - 220px));
  padding: 10px;
  overflow: auto;
  scrollbar-width: thin;
}

.xw-global-task-item {
  width: 100%;
  margin: 0 0 9px;
  padding: 13px;
  border: 1px solid #e5eaf2;
  border-radius: 13px;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.xw-global-task-item:hover { border-color: #aac5ff; box-shadow: 0 8px 20px rgba(47, 94, 173, .1); transform: translateY(-1px); }
.xw-global-task-item:focus-visible { outline: 3px solid rgba(23, 105, 255, .2); outline-offset: 1px; }
.xw-global-task-item:last-child { margin-bottom: 0; }
.xw-global-task-item-title { min-width: 0; color: var(--xwt-ink); font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-global-task-status { flex: none; padding: 4px 8px; border-radius: 999px; color: #647084; background: #eef2f7; font-size: 11px; }
.xw-global-task-status.is-running { color: #135bd4; background: #e7f0ff; }
.xw-global-task-status.is-success { color: #087d65; background: #e4f7f1; }
.xw-global-task-status.is-failed { color: #b42318; background: #ffebe9; }
.xw-global-task-product { margin-top: 6px; color: #536077; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-global-task-stage { margin-top: 8px; color: #69758a; font-size: 12px; }
.xw-global-task-track { position: relative; height: 5px; margin-top: 9px; overflow: hidden; border-radius: 5px; background: #e9edf4; }
.xw-global-task-track > span { display: block; height: 100%; width: 12%; border-radius: inherit; background: var(--xwt-blue); }
.xw-global-task-item[data-status="running"] .xw-global-task-track > span,
.xw-global-task-item[data-status="queued"] .xw-global-task-track > span {
  width: 38%;
  animation: xw-task-indeterminate 1.45s ease-in-out infinite;
}
.xw-global-task-item[data-status="success"] .xw-global-task-track > span { width: 100%; background: #0a9b78; }
.xw-global-task-item[data-status="failed"] .xw-global-task-track > span,
.xw-global-task-item[data-status="interrupted"] .xw-global-task-track > span { width: 100%; background: #e44f42; }
.xw-global-task-item-foot { margin-top: 8px; color: #8993a4; font-size: 11px; }
.xw-global-task-open { color: var(--xwt-blue); font-weight: 700; }

.xw-global-task-empty { padding: 34px 20px; color: #7a8598; text-align: center; font-size: 13px; line-height: 1.7; }
.xw-global-task-empty i { display: block; margin-bottom: 12px; color: #b7c4d8; font-size: 28px; }

@keyframes xw-task-indeterminate {
  from { transform: translateX(-120%); }
  to { transform: translateX(330%); }
}

@media (max-width: 760px) {
  .xw-global-task-host { left: auto; top: auto; right: 12px; bottom: 86px; transform: none; }
  .xw-global-task-popover { position: fixed; left: auto; right: 12px; top: auto; bottom: 80px; width: calc(100vw - 24px); max-height: min(620px, calc(100vh - 120px)); transform: translateY(10px); }
  .xw-global-task-host[data-open="1"] .xw-global-task-popover { transform: translateY(0); }
}

/* Monochrome global task dock */
.xw-live-task-dock-host {
  --xw-dock-ink: #181818;
  --xw-dock-muted: #777;
  --xw-dock-line: #dedede;
  position: fixed;
  z-index: 175;
  right: 18px;
  bottom: clamp(118px, 18vh, 220px);
  width: 218px;
  color: var(--xw-dock-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: width .16s ease, opacity .16s ease;
}

.xw-live-task-dock-host[hidden] { display: none !important; }
.xw-live-task-dock-host.is-idle,
.xw-live-task-dock-host.is-idle.has-custom-position {
  left: auto !important;
  right: 0 !important;
  width: 10px;
}
.xw-live-task-dock-host.is-dragging { cursor: grabbing; opacity: .9; }

.xw-live-task-capsule,
.xw-live-task-idle {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.xw-live-task-capsule {
  width: 218px;
  min-height: 84px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border: 1px solid #202020;
  border-radius: 999px;
  color: var(--xw-dock-ink);
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .07);
  font: inherit;
  text-align: left;
}

.xw-live-task-idle {
  width: 10px;
  height: 42px;
  display: block;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: #202020;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transition: width .14s ease, background .14s ease;
}

.xw-live-task-capsule:hover,
.xw-live-task-dock-host.is-open .xw-live-task-capsule { background: #f7f7f7; }
.xw-live-task-idle:hover,
.xw-live-task-idle:focus-visible { width: 14px; background: #000; }
.xw-live-task-dock-host.is-dragging .xw-live-task-capsule,
.xw-live-task-dock-host.is-dragging .xw-live-task-idle { cursor: grabbing; }

.xw-live-task-core {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border-radius: 50%;
  color: #1c1c1c;
  background: #f0f0f0;
  line-height: 1;
}
.xw-live-task-core i { color: #666; font-size: 12px; }
.xw-live-task-core b { font-size: 14px; font-weight: 750; }

.xw-live-task-mini-list { min-width: 0; display: grid; gap: 5px; }
.xw-live-task-mini-lane {
  min-width: 0;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px;
}
.xw-live-task-mini-index {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #171717;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.xw-live-task-mini-track,
.xw-live-task-row-progress > i {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #dfdfdf;
}
.xw-live-task-mini-track { height: 6px; }
.xw-live-task-mini-track > span,
.xw-live-task-row-progress > i > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #181818;
  transition: width .3s ease;
}
.xw-live-task-mini-value { color: #4d4d4d; font-size: 12px; font-style: normal; font-weight: 650; text-align: right; }
.xw-live-task-mini-lane[data-status="queued"] .xw-live-task-mini-index { color: #333; background: #d8d8d8; }
.xw-live-task-mini-lane[data-status="queued"] .xw-live-task-mini-track > span { background: #888; }

.xw-live-task-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(400px, calc(100vw - 24px));
  max-height: min(430px, calc(100vh - 170px));
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  border: 1px solid #dedede;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .17);
  transform: translateY(8px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.xw-live-task-dock-host.list-below .xw-live-task-list {
  top: calc(100% + 12px);
  bottom: auto;
  transform: translateY(-8px) scale(.98);
  transform-origin: right top;
}
.xw-live-task-list.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.xw-live-task-list > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 14px; border-bottom: 1px solid #ececec; }
.xw-live-task-list > header > div { min-width: 0; }
.xw-live-task-list > header strong { display: block; color: #181818; font-size: 18px; }
.xw-live-task-list > header span { display: block; margin-top: 4px; overflow: hidden; color: #737373; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.xw-live-task-list > header b { flex: none; padding: 5px 9px; border: 1px solid #dedede; border-radius: 999px; color: #333; background: #f4f4f4; font-size: 12px; }
.xw-live-task-list > div { max-height: var(--xw-dock-list-max-height, 340px); padding: 8px; overflow: auto; }
.xw-live-task-list > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px 10px 16px; border-top: 1px solid #ececec; color: #8a8a8a; background: #f7f7f7; font-size: 9px; }
.xw-live-task-list > footer button { border: 0; color: #333; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }

.xw-live-task-row {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: default;
}
.xw-live-task-row + .xw-live-task-row { margin-top: 3px; }
.xw-live-task-row:hover { background: #f6f6f6; }
.xw-live-task-row-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #202020; background: #f0f0f0; font-size: 13px; }
.xw-live-task-row[data-status="queued"] .xw-live-task-row-icon { color: #666; background: #f2f2f2; }
.xw-live-task-row[data-status="success"] .xw-live-task-row-icon { color: #fff; background: #202020; }
.xw-live-task-row[data-status="failed"] .xw-live-task-row-icon,
.xw-live-task-row[data-status="interrupted"] .xw-live-task-row-icon { border: 1px solid #202020; color: #202020; background: #fff; }
.xw-live-task-row-copy { min-width: 0; display: grid; gap: 6px; }
.xw-live-task-row-title { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xw-live-task-row-title strong,
.xw-live-task-row-copy > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-live-task-row-title strong { color: #202020; font-size: 14px; }
.xw-live-task-row-title em { flex: none; color: #555; font-size: 12px; font-style: normal; }
.xw-live-task-row-copy > small { color: #737373; font-size: 12px; }
.xw-live-task-row-progress { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; gap: 9px; }
.xw-live-task-row-progress > i { height: 6px; }
.xw-live-task-row-progress > b { color: #4d4d4d; font-size: 12px; font-weight: 700; text-align: right; }
.xw-live-task-row > .fa-chevron-right { color: #aaa; font-size: 9px; }

@media (max-width: 760px) {
  .xw-live-task-dock-host,
  .xw-live-task-dock-host.has-custom-position {
    left: auto !important;
    right: 12px !important;
    top: auto !important;
    bottom: 142px !important;
    width: 218px;
    transform: none !important;
  }
  .xw-live-task-dock-host.is-idle { right: 0 !important; width: 10px !important; }
  .xw-live-task-capsule { touch-action: manipulation; }
  .xw-live-task-idle { touch-action: manipulation; }
  .xw-live-task-list { position: fixed; right: 12px; left: 12px; bottom: 226px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .xw-live-task-dock-host,
  .xw-live-task-list,
  .xw-live-task-mini-track > span,
  .xw-live-task-row-progress > i > span { transition: none; }
}

/* Team work center */
.xw-task-center-page,
.xw-team-modal-host { font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
.xw-center-backdrop,
.xw-team-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .42); backdrop-filter: blur(2px); }
.xw-task-center-page { position: fixed; inset: 0; z-index: 190; visibility: hidden; pointer-events: none; }
.xw-task-center-page[data-open="1"] { visibility: visible; pointer-events: auto; }
.xw-center-panel { position: absolute; inset: 28px 32px 28px calc(var(--sidebar, 16.75rem) + 28px); display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; border: 1px solid #e1e7f0; border-radius: 18px; background: #f7f9fc; box-shadow: 0 24px 70px rgba(15, 23, 42, .22); }
.xw-center-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 15px; background: #fff; }
.xw-center-panel > header h1 { margin: 0; color: #162033; font-size: 24px; }
.xw-center-panel > header p { margin: 5px 0 0; color: #748096; font-size: 13px; }
.xw-center-panel > header button,
.xw-team-modal > header > button { width: 36px; height: 36px; border: 0; border-radius: 10px; color: #64748b; background: #f2f5f9; cursor: pointer; }
.xw-center-panel > nav { display: flex; gap: 4px; padding: 0 26px; border-bottom: 1px solid #e7ebf2; background: #fff; }
.xw-center-panel > nav button { position: relative; padding: 13px 18px; border: 0; color: #667085; background: transparent; font: inherit; cursor: pointer; }
.xw-center-panel > nav button.is-active { color: #1769ff; font-weight: 700; }
.xw-center-panel > nav button.is-active::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 3px; border-radius: 3px 3px 0 0; background: #1769ff; content: ""; }
.xw-center-panel > nav b { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; margin-left: 4px; padding: 0 5px; border-radius: 9px; color: #1769ff; background: #e9f1ff; font-size: 10px; }
.xw-center-panel > nav b.is-task { color: #d97706; background: #fff1d6; }
.xw-center-panel > main { padding: 22px 26px 30px; overflow: auto; }

.xw-center-table-wrap { overflow: auto; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.xw-center-table { width: 100%; border-collapse: collapse; color: #334155; font-size: 13px; }
.xw-center-table th { padding: 13px 15px; color: #67748a; background: #f8fafc; text-align: left; font-weight: 600; white-space: nowrap; }
.xw-center-table td { padding: 15px; border-top: 1px solid #edf1f5; vertical-align: middle; }
.xw-center-table td strong { color: #1e293b; }
.xw-center-table td small { display: block; max-width: 280px; margin-top: 4px; color: #8a96a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-link-btn { padding: 7px 11px; border: 1px solid #c9dafd; border-radius: 8px; color: #1769ff; background: #f3f7ff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; white-space: nowrap; }
.xw-link-btn:hover { border-color: #1769ff; background: #eaf1ff; }
.xw-task-template-delete { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #fecaca; border-radius: 8px; color: #b42318; background: #fff7f7; cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; white-space: nowrap; }
.xw-task-template-delete:hover { border-color: #f87171; background: #feecec; }
.xw-task-template-delete:disabled { opacity: .55; cursor: wait; }
.xw-state { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #536174; background: #eef2f6; font-size: 11px; white-space: nowrap; }
.xw-state.按时完成 { color: #08775f; background: #e3f7f0; }
.xw-state.逾期补交 { color: #a15c00; background: #fff0d8; }
.xw-state.未完成 { color: #b42318; background: #ffebe9; }
.xw-state.待交付 { color: #135bd4; background: #e7f0ff; }
.xw-state.进行中 { color: #1769ff; background: #eaf1ff; }

.xw-task-module { min-height: 100%; }
.xw-task-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.xw-task-subtabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #dfe6ef; border-radius: 11px; background: #fff; }
.xw-task-subtabs button { min-height: 34px; padding: 6px 16px; border: 0; border-radius: 8px; color: #667085; background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; }
.xw-task-subtabs button.is-active { color: #1769ff; background: #edf4ff; }
.xw-task-settings-button { min-height: 36px; padding: 7px 12px; border: 1px solid #d8e1ed; border-radius: 9px; color: #5f6c80; background: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; white-space: nowrap; }
.xw-task-settings-button i { margin-right: 5px; color: #7b8ca7; }
.xw-task-settings-button:hover,
.xw-task-settings-button.is-active { border-color: #b8cdf8; color: #1769ff; background: #f2f7ff; }
.xw-task-overview { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid #e2e8f0; border-radius: 11px; color: #6f7c90; background: #fff; font-size: 11px; }
.xw-task-overview span { white-space: nowrap; }
.xw-task-overview strong { margin-left: 4px; color: #263247; font-size: 14px; }
.xw-task-overview em { margin-left: auto; color: #8d99aa; font-style: normal; }
.xw-task-table td:nth-child(3) strong { color: #1769ff; font-size: 14px; }
.xw-task-empty-value { color: #a0a9b7; }
.xw-task-supplement { padding: 5px 2px; border: 0; color: #7d899b; background: transparent; cursor: pointer; font: inherit; font-size: 11px; }
.xw-task-supplement:hover { color: #1769ff; text-decoration: underline; }
.xw-auto-source-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: #08775f; background: #e8f7f2; font-size: 10px; white-space: nowrap; }
.xw-week-range { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: #8390a3; font-size: 11px; }
.xw-week-range strong { color: #475569; font-size: 12px; }
.xw-week-range em { margin-left: auto; color: #8f9aab; font-style: normal; }
.xw-auto-delivery-note { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; color: #607086; background: #f4f8ff; font-size: 11px; }
.xw-auto-delivery-note i { color: #1769ff; }
.xw-auto-delivery-note strong { margin-left: auto; color: #1769ff; font-size: 13px; }
.xw-auto-delivery-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff; }
.xw-auto-delivery-list > .xw-auto-delivery-item { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; box-sizing: border-box; padding: 11px 12px; border: 0; border-bottom: 1px solid #edf1f5; color: inherit; background: #fff; text-align: left; font: inherit; }
.xw-auto-delivery-list > button.xw-auto-delivery-item { grid-template-columns: 24px minmax(0, 1fr) auto 18px; cursor: pointer; transition: background .16s ease, box-shadow .16s ease; }
.xw-auto-delivery-list > .xw-auto-delivery-item:last-child { border-bottom: 0; }
.xw-auto-delivery-list > button.xw-auto-delivery-item:hover { background: #f5f8ff; box-shadow: inset 3px 0 0 #1769ff; }
.xw-auto-delivery-list > button.xw-auto-delivery-item:focus-visible { position: relative; z-index: 1; outline: 2px solid #75a2ff; outline-offset: -2px; }
.xw-auto-delivery-list > .xw-auto-delivery-item > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; color: #5f6d82; background: #eef2f7; font-size: 9px; font-weight: 700; }
.xw-auto-delivery-list .xw-auto-delivery-item strong,
.xw-auto-delivery-list .xw-auto-delivery-item small { display: block; }
.xw-auto-delivery-list .xw-auto-delivery-item strong { overflow: hidden; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.xw-auto-delivery-list .xw-auto-delivery-item small { margin-top: 3px; color: #8a95a6; font-size: 9px; }
.xw-auto-delivery-list .xw-auto-delivery-item time { color: #7a8799; font-size: 10px; white-space: nowrap; }
.xw-auto-delivery-open { color: #97a5b9; font-size: 10px; transition: color .16s ease, transform .16s ease; }
.xw-auto-delivery-list > button.xw-auto-delivery-item:hover strong,
.xw-auto-delivery-list > button.xw-auto-delivery-item:hover .xw-auto-delivery-open { color: #1769ff; }
.xw-auto-delivery-list > button.xw-auto-delivery-item:hover .xw-auto-delivery-open { transform: translateX(2px); }
.xw-week-delivery-list { display: grid; gap: 10px; }
.xw-week-delivery-day { padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff; }
.xw-week-delivery-day.is-clickable { cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.xw-week-delivery-day.is-clickable:hover { border-color: #8fb4ff; background: #f8fbff; box-shadow: 0 5px 14px rgba(23, 105, 255, .08); transform: translateY(-1px); }
.xw-week-delivery-day.is-clickable:focus-visible { outline: 2px solid rgba(23, 105, 255, .3); outline-offset: 2px; }
.xw-week-delivery-day > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.xw-week-delivery-day > header strong,
.xw-week-delivery-day > header small { display: block; }
.xw-week-delivery-day > header strong { color: #334155; font-size: 12px; }
.xw-week-delivery-day > header small { margin-top: 2px; color: #8a95a6; font-size: 9px; }
.xw-week-delivery-progress { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: #667085; font-size: 10px; }
.xw-week-delivery-progress b { color: #1769ff; font-size: 13px; }
.xw-week-delivery-progress span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-week-delivery-items { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.xw-week-delivery-items span,
.xw-week-delivery-items button { max-width: 190px; padding: 4px 7px; overflow: hidden; border: 0; border-radius: 6px; color: #536174; background: #f2f5f9; font: inherit; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.xw-week-delivery-items button { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.xw-week-delivery-items button:hover { color: #1769ff; background: #eaf1ff; }
.xw-week-delivery-items button .fa-chevron-right { margin-right: 0; color: #8aa3d4; font-size: 7px; }
.xw-week-delivery-items i { margin-right: 4px; color: #8aa3d4; }

.xw-center-empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #8390a3; text-align: center; }
.xw-center-empty i { margin-bottom: 4px; color: #b8c5d7; font-size: 36px; }
.xw-center-empty strong { color: #475569; font-size: 15px; }
.xw-center-empty span { font-size: 13px; }
.xw-center-empty.is-compact { min-height: 170px; border: 1px dashed #dbe3ed; border-radius: 14px; background: #fff; }
.xw-system-task-section { margin-top: 20px; }
.xw-system-task-section h3 { margin: 0 0 10px; color: #344054; font-size: 14px; }
.xw-system-task-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; }
.xw-system-task-list > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 15px; border: 0; border-bottom: 1px solid #edf1f5; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.xw-system-task-list > button:last-child { border-bottom: 0; }
.xw-system-task-list strong,
.xw-system-task-list small { display: block; }
.xw-system-task-list strong { color: #273247; font-size: 13px; }
.xw-system-task-list small { margin-top: 4px; color: #8490a2; font-size: 11px; }
.xw-system-task-list em { padding: 4px 8px; border-radius: 999px; color: #647084; background: #eef2f7; font-size: 10px; font-style: normal; white-space: nowrap; }
.xw-system-task-list em.running { color: #135bd4; background: #e7f0ff; }
.xw-system-task-list em.success { color: #087d65; background: #e4f7f1; }
.xw-system-task-list em.failed { color: #b42318; background: #ffebe9; }
.xw-section-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.xw-section-action h3 { margin: 0; color: #1e293b; }
.xw-section-action p { margin: 4px 0 0; color: #7b8798; font-size: 13px; }
.xw-btn { padding: 9px 15px; border: 1px solid #d6deea; border-radius: 9px; color: #475569; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; }
.xw-btn.primary { border-color: #1769ff; color: #fff; background: #1769ff; }
.xw-btn:disabled { opacity: .55; cursor: wait; }

.xw-collab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 15px; }
.xw-collab-grid article { padding: 17px; border: 1px solid #e1e7f0; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(30, 64, 120, .04); }
.xw-collab-product { display: flex; align-items: center; gap: 11px; }
.xw-collab-product img,
.xw-collab-product > span { width: 48px; height: 48px; flex: none; display: grid; place-items: center; object-fit: contain; border: 1px solid #e7ebf2; border-radius: 10px; background: #f8fafc; }
.xw-collab-product strong { display: block; color: #1e293b; font-size: 14px; }
.xw-collab-product small { display: block; margin-top: 4px; color: #8490a2; }
.xw-collab-grid article > p { margin: 14px 0 9px; color: #657187; font-size: 12px; }
.xw-module-tags { min-height: 52px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.xw-module-tags span { padding: 4px 8px; border-radius: 999px; color: #315fba; background: #edf4ff; font-size: 11px; }
.xw-development-collab-section + .xw-development-collab-section { margin-top: 24px; }
.xw-collab-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.xw-collab-section-head h3 { margin: 0; color: #1e293b; font-size: 14px; }
.xw-collab-section-head p { margin: 4px 0 0; color: #8490a2; font-size: 11px; }
.xw-collab-section-head > span { padding: 5px 9px; border-radius: 999px; color: #c2410c; background: #fff7ed; font-size: 11px; }
.xw-development-task-card.is-done { background: #fbfefc; }
.xw-development-task-meta { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.xw-development-task-meta span { padding: 4px 8px; border-radius: 999px; color: #315fba; background: #edf4ff; font-size: 11px; }
.xw-development-task-meta strong { color: #344054; font-size: 12px; }
.xw-development-task-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xw-development-task-footer > div { display: flex; align-items: center; gap: 7px; }
.xw-collab-task-state { padding: 5px 9px; border: 1px solid; border-radius: 999px; font-size: 11px; font-weight: 700; }
.xw-collab-task-state.pending { color: #c2410c; border-color: #fed7aa; background: #fff7ed; }
.xw-collab-task-state.done { color: #067647; border-color: #bbf7d0; background: #ecfdf3; }

/* Task center collaboration — product master/detail workspace */
#xwTaskCenterPage {
  --xwt-blue: #1769ff;
  --xwt-blue-soft: #edf4ff;
  --xwt-ink: #162033;
  --xwt-muted: #748096;
  --xwt-line: #e1e7f0;
  --xwt-canvas: #f7f9fc;
}
#xwTaskCenterPage .xw-center-panel > main[data-xw-center-view="collaboration"] { padding: 12px 18px 18px; overflow: hidden; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workspace {
  width: 100%; height: 100%; min-height: 0; display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); overflow: hidden;
  border: 1px solid var(--xwt-line); border-radius: 15px; background: #fff; box-shadow: 0 7px 24px rgba(24, 50, 92, .055);
}
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workspace.is-empty { grid-template-columns: 17.5rem minmax(0, 1fr); }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-pane {
  min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-right: 1px solid var(--xwt-line); background: #fbfcfe;
}
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-scope-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 14px; padding: 4px; border: 1px solid #e4eaf3; border-radius: 10px; background: #f2f5fa;
}
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-scope-tabs button {
  min-width: 0; height: 32px; padding: 0 6px; overflow: hidden; border: 0; border-radius: 7px; color: #6f7c90; background: transparent; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap;
}
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-scope-tabs button:hover { color: #315fba; background: rgba(255, 255, 255, .7); }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-scope-tabs button.is-active { color: var(--xwt-blue); background: #fff; box-shadow: 0 1px 5px rgba(49, 80, 133, .12); }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-list { min-height: 0; padding: 0 10px 12px; overflow: auto; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-item {
  position: relative; width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 5px; padding: 10px;
  border: 1px solid transparent; border-radius: 10px; color: inherit; background: transparent; text-align: left; cursor: pointer; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-item:hover { border-color: #d8e4f8; background: #f4f8ff; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-item.is-active { border-color: #bdd3ff; background: #edf4ff; box-shadow: inset 3px 0 0 var(--xwt-blue); }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workspace-image {
  width: 46px; height: 46px; display: grid; place-items: center; object-fit: contain; border: 1px solid #e4eaf2; border-radius: 9px; color: #7393d5; background: #fff;
}
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workspace-image.large { width: 62px; height: 62px; border-radius: 12px; font-size: 18px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-copy { min-width: 0; display: grid; gap: 3px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-copy > strong { overflow: hidden; color: #263247; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-copy > small { overflow: hidden; color: #8994a6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-copy > span { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; margin-top: 3px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-copy > span b { color: #6d7a8f; font-size: 9px; font-weight: 600; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-copy > span i,
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-overall-progress > i { height: 4px; display: block; overflow: hidden; border-radius: 999px; background: #dfe7f2; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-copy > span i em,
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-overall-progress > i em { height: 100%; display: block; border-radius: inherit; background: var(--xwt-blue); }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-item > mark { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: #1769ff; background: #fff; font-size: 9px; font-weight: 800; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-pane > footer { padding: 10px 14px; border-top: 1px solid #e8edf4; color: #8a95a6; background: #fff; font-size: 10px; }

#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-pane { min-width: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; background: #fff; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-head {
  min-width: 0; display: grid; grid-template-columns: minmax(15rem, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #e8edf4;
}
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-product { min-width: 0; display: flex; align-items: center; gap: 12px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-product > div { min-width: 0; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-product > div > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-product > div > span strong { overflow: hidden; color: var(--xwt-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-product > div > span em { flex: none; padding: 3px 7px; border-radius: 999px; color: #1769ff; background: #edf4ff; font-size: 9px; font-style: normal; font-weight: 700; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-product > div > small { display: block; margin-top: 4px; color: #8a95a7; font-size: 10px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-overall-progress { display: grid; grid-template-columns: auto minmax(5.5rem, 8rem) auto; align-items: center; gap: 8px; margin-top: 9px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-overall-progress b,
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-overall-progress span { color: #68758a; font-size: 9px; font-weight: 650; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-members { display: grid; gap: 6px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-members > small { color: #8a95a6; font-size: 9px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-avatar-stack { display: inline-flex; align-items: center; padding-left: 6px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-person-avatar {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; margin-left: -6px; border: 2px solid #fff; border-radius: 999px; color: #3368c7; background: #e6efff; font-size: 9px; font-style: normal; font-weight: 750;
}
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-person-avatar:nth-child(2n) { color: #7b4fc4; background: #f0eaff; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-person-avatar:nth-child(3n) { color: #08775f; background: #e3f7f0; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-person-avatar.more { color: #677489; background: #eef2f7; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workbench-button { min-height: 38px; padding: 8px 13px; border-color: var(--xwt-blue); color: #fff; background: var(--xwt-blue); white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workbench-button:hover { background: #075be4; }

#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-head,
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-row { display: grid; grid-template-columns: minmax(12rem, 1.3fr) minmax(9rem, .85fr) minmax(6rem, .55fr) minmax(7.5rem, .7fr) minmax(7rem, .65fr) minmax(5.5rem, auto); align-items: center; gap: 14px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-head { padding: 10px 20px; border-bottom: 1px solid #e8edf4; color: #8490a2; background: #f8fafc; font-size: 10px; font-weight: 650; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-list { min-height: 0; overflow: auto; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-row { min-height: 72px; padding: 11px 20px; border-bottom: 1px solid #edf1f5; transition: background .15s ease; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-row:last-child { border-bottom: 0; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-row:hover { background: #fbfdff; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-name { min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 10px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-name > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 999px; color: #5b6a80; background: #eef2f7; font-size: 9px; font-weight: 750; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-name > div { min-width: 0; display: grid; gap: 3px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-name strong { color: #263247; font-size: 12px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-name small { overflow: hidden; color: #8a95a6; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-people { min-width: 0; display: flex; align-items: center; gap: 8px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-people .xw-collab-person-avatar { width: 24px; height: 24px; font-size: 8px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-people > span:last-child { overflow: hidden; color: #4f5c70; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-status i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-status.done { color: #08775f; background: #e5f7f1; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-status.progress { color: #1769ff; background: #eaf1ff; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-status.pending { color: #a45b00; background: #fff2dd; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-status.draft { color: #69768a; background: #eef2f6; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due { min-width: 0; display: grid; gap: 2px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due strong { color: #4d5a6f; font-size: 10px; font-weight: 650; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due small { color: #8a95a6; font-size: 9px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due.overdue strong,
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due.overdue small { color: #b42318; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due.today strong,
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due.today small { color: #b05c00; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due.done strong,
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due.done small { color: #08775f; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-completer { min-width: 0; display: flex; align-items: center; gap: 7px; color: #4f5c70; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-completer > span:last-child { min-width: 0; display: grid; gap: 1px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-completer strong { overflow: hidden; color: #334155; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-completer small { color: #8a95a6; font-size: 8px; white-space: nowrap; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-completer > em { color: #a0a9b7; font-size: 11px; font-style: normal; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-completer-avatar { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 999px; color: #08775f; background: #e3f7f0; font-size: 8px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-completer.system .xw-collab-completer-avatar { color: #64748b; background: #eef2f7; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-actions .xw-link-btn { padding: 6px 10px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-complete-icon { min-width: 72px; height: 29px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #ff6b1a; border-radius: 8px; color: #fff; background: #ff6b1a; box-shadow: 0 3px 8px rgba(255, 107, 26, .2); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-complete-icon:hover:not(:disabled) { border-color: #ea580c; background: #ea580c; box-shadow: 0 4px 10px rgba(234, 88, 12, .24); transform: translateY(-1px); }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-complete-icon:focus-visible { outline: 2px solid rgba(255, 107, 26, .35); outline-offset: 2px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-complete-icon:disabled { opacity: .62; cursor: not-allowed; box-shadow: none; transform: none; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-foot { padding: 9px 20px; border-top: 1px solid #e8edf4; color: #95a0b0; background: #fbfcfe; text-align: center; font-size: 9px; }
#xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-foot i { margin-right: 5px; color: #7393d5; }

@media (max-width: 1180px) {
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workspace { grid-template-columns: 15rem minmax(0, 1fr); }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workspace.is-empty { grid-template-columns: 15rem minmax(0, 1fr); }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-head { grid-template-columns: minmax(14rem, 1fr) auto; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-members { display: none; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-head,
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-row { grid-template-columns: minmax(10rem, 1.3fr) minmax(8rem, .8fr) minmax(5.5rem, .55fr) minmax(6.5rem, .65fr) minmax(6rem, .6fr) auto; gap: 10px; }
}
@media (max-width: 820px) {
  #xwTaskCenterPage .xw-center-panel > main[data-xw-center-view="collaboration"] { padding: 10px; overflow: auto; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workspace,
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workspace.is-empty { height: auto; min-height: 0; grid-template-columns: 1fr; overflow: visible; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-product-pane { max-height: 15rem; border-right: 0; border-bottom: 1px solid var(--xwt-line); }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-pane { overflow: visible; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-head { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-head { display: none; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-list { overflow: visible; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-foot { display: none; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-row { grid-template-columns: minmax(9rem, 1fr) auto; gap: 9px 12px; padding: 13px 14px; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-people,
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-due,
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-completer { grid-column: 1; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-actions { grid-column: 2; grid-row: 2 / span 3; }
}
@media (max-width: 520px) {
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-head { grid-template-columns: 1fr; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-workbench-button { width: 100%; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-detail-product .xw-collab-workspace-image.large { width: 52px; height: 52px; }
  #xwTaskCenterPage [data-xw-center-view="collaboration"] .xw-collab-stage-row { grid-template-columns: 1fr auto; }
}

.xw-stats-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: #748096; font-size: 12px; }
.xw-stats-toolbar > div { padding: 3px; border: 1px solid #dfe6ef; border-radius: 10px; background: #fff; }
.xw-stats-toolbar button { padding: 7px 15px; border: 0; border-radius: 7px; color: #667085; background: transparent; cursor: pointer; }
.xw-stats-toolbar button.is-active { color: #1769ff; background: #eaf1ff; font-weight: 700; }
.xw-stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.xw-stat-cards article { min-height: 105px; padding: 16px; border: 1px solid #e1e7f0; border-radius: 13px; background: #fff; }
.xw-stat-cards span { display: block; color: #758196; font-size: 12px; }
.xw-stat-cards strong { display: block; margin-top: 12px; color: #14213a; font-size: 25px; }
.xw-stat-cards small { display: block; margin-top: 3px; color: #8b96a7; font-size: 10px; }

.xw-team-modal-host { position: fixed; inset: 0; z-index: 240; }
.xw-team-modal { position: absolute; top: 50%; left: 50%; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; transform: translate(-50%, -50%); border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(15, 23, 42, .28); }
.xw-team-modal > header { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px 14px; border-bottom: 1px solid #edf1f5; }
.xw-team-modal > header h2 { margin: 0; color: #172033; font-size: 19px; }
.xw-team-modal > header p { margin: 4px 0 0; color: #7c8799; font-size: 12px; }
.xw-team-modal-body { padding: 19px 21px; overflow: auto; }
.xw-team-modal > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 21px 17px; border-top: 1px solid #edf1f5; }
.xw-team-field { display: grid; gap: 7px; margin-bottom: 15px; color: #465267; font-size: 13px; font-weight: 650; }
.xw-team-field input,
.xw-team-field select,
.xw-team-field textarea { width: 100%; min-height: 40px; box-sizing: border-box; padding: 9px 11px; border: 1px solid #dbe2ec; border-radius: 9px; outline: 0; color: #253044; background: #fff; font: inherit; font-weight: 400; }
.xw-team-field textarea { min-height: 78px; resize: vertical; }
.xw-team-field input:focus,
.xw-team-field select:focus,
.xw-team-field textarea:focus { border-color: #75a2ff; box-shadow: 0 0 0 3px rgba(23, 105, 255, .1); }
.xw-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xw-template-assignee-field { gap: 9px; }
.xw-template-assignee-head { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.xw-template-assignee-head > small { padding: 3px 8px; border-radius: 999px; color: #2563eb; background: #edf4ff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.xw-template-assignee-list { max-height: 108px; gap: 6px; padding: 1px; }
.xw-template-assignee-list .xw-share-member-card { min-height: 44px; grid-template-columns: 26px minmax(0, 1fr) 18px; gap: 7px; padding: 5px 7px; border-radius: 8px; }
.xw-template-assignee-list .xw-share-person-avatar { width: 26px; height: 26px; font-size: 10px; }
.xw-template-assignee-list .xw-share-member-copy strong { font-size: 11px; }
.xw-template-assignee-list .xw-share-member-copy small { font-size: 9px; }
.xw-template-assignee-list .xw-share-member-check { width: 16px; height: 16px; border-radius: 5px; }
.xw-template-assignee-hint { color: #8792a4; font-size: 11px; font-weight: 400; }
.xw-task-validity-field { gap: 9px; }
.xw-task-validity-options { display: inline-flex; width: fit-content; padding: 3px; border: 1px solid #dbe2ec; border-radius: 10px; background: #f4f6f9; }
.xw-task-validity-options label { cursor: pointer; }
.xw-task-validity-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.xw-task-validity-options span { min-height: 30px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 7px; color: #68758a; font-size: 12px; font-weight: 650; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.xw-task-validity-options label.is-selected span,
.xw-task-validity-options label:has(input:checked) span { color: #1769ff; background: #fff; box-shadow: 0 1px 4px rgba(35, 58, 93, .12); }
.xw-task-validity-dates { margin-top: 1px; }
.xw-task-validity-dates .xw-team-field { margin-bottom: 0; }
.xw-task-validity-dates .xw-team-field[hidden] { display: none; }
.xw-task-validity-hint { color: #7c8799; font-size: 11px; font-weight: 400; }

/* Task-first center */
.xw-task-toolbar-copy { display: grid; gap: 3px; }
.xw-task-toolbar-copy strong { color: #273247; font-size: 14px; }
.xw-task-toolbar-copy span { color: #8792a4; font-size: 11px; }
.xw-task-browser { min-height: 470px; display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: 14px; }
.xw-task-name-pane,
.xw-task-detail-pane { min-width: 0; overflow: hidden; border: 1px solid #e1e7f0; border-radius: 14px; background: #fff; }
.xw-task-name-pane { position: sticky; top: 0; z-index: 2; height: min(520px, calc(100vh - 250px)); display: grid; align-self: start; grid-template-rows: auto minmax(0, 1fr); }
.xw-task-name-pane > header { padding: 15px 14px 11px; border-bottom: 1px solid #edf1f5; }
.xw-task-name-pane > header > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xw-task-name-pane > header strong { color: #263247; font-size: 13px; }
.xw-task-name-pane > header span { padding: 3px 7px; border-radius: 999px; color: #1769ff; background: #edf4ff; font-size: 10px; }
.xw-task-name-pane > header small { display: block; margin-top: 5px; color: #8b96a8; font-size: 10px; }
.xw-task-name-list { display: grid; align-content: start; gap: 6px; padding: 8px; overflow: auto; }
.xw-task-name-item { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 10px; border: 1px solid transparent; border-radius: 10px; color: inherit; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.xw-task-name-item:hover { background: #f7f9fc; }
.xw-task-name-item.is-active { border-color: #c7d8ff; background: #edf4ff; box-shadow: inset 3px 0 0 #1769ff; }
.xw-task-name-icon { width: 34px; height: 34px; display: grid; grid-row: 1 / span 2; place-items: center; border-radius: 10px; color: #3970d8; background: #eaf2ff; font-size: 12px; }
.xw-task-name-copy { min-width: 0; display: grid; gap: 3px; }
.xw-task-name-copy strong,
.xw-task-name-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-task-name-copy strong { color: #2a364a; font-size: 12px; }
.xw-task-name-copy small { color: #8792a4; font-size: 9px; }
.xw-task-name-status { grid-column: 2; display: inline-flex; align-items: center; gap: 5px; color: #7c8799; font-size: 9px; }
.xw-task-name-status i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.xw-task-name-status.done { color: #08775f; }
.xw-task-name-status.done i { background: #14a37f; }
.xw-task-name-status.partial { color: #a15c00; }
.xw-task-name-status.partial i { background: #f59e0b; }
.xw-task-name-status.pending { color: #135bd4; }
.xw-task-name-status.pending i { background: #4f86ea; }
.xw-task-name-empty { padding: 30px 12px; color: #8b96a8; font-size: 12px; text-align: center; }
.xw-task-setting-actions { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.xw-task-detail-pane { padding: 16px; }
.xw-task-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.xw-task-detail-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.xw-task-detail-empty-actions { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.xw-section-action-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.xw-task-detail-head > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.xw-task-detail-head h3 { margin: 0; overflow: hidden; color: #1f2b3e; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.xw-task-detail-head p { margin: 3px 0 0; color: #8490a2; font-size: 10px; }
.xw-task-detail-icon { width: 38px; height: 38px; display: grid; flex: none; place-items: center; border-radius: 11px; color: #1769ff; background: #edf4ff; font-size: 14px; }
.xw-task-detail-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 13px; padding: 11px 0 13px; border-bottom: 1px solid #edf1f5; color: #6d7a8e; font-size: 10px; }
.xw-task-detail-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.xw-task-detail-meta i { color: #8499bf; }
.xw-task-period-tabs { margin-top: 13px; }
.xw-task-detail-content { margin-top: 14px; }
.xw-task-focus-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 13px; padding: 15px; border: 1px solid #e2e8f0; border-radius: 13px; background: #fbfcff; }
.xw-progress-ring { --xw-progress: 0; width: 78px; height: 78px; display: grid; flex: none; place-items: center; border-radius: 50%; background: conic-gradient(#1769ff calc(var(--xw-progress) * 1%), #e7edf6 0); }
.xw-progress-ring > div { width: 60px; height: 60px; display: grid; place-content: center; border-radius: 50%; background: #fff; text-align: center; }
.xw-progress-ring strong,
.xw-progress-ring span { display: block; }
.xw-progress-ring strong { color: #1769ff; font-size: 16px; }
.xw-progress-ring span { margin-top: 2px; color: #8994a5; font-size: 9px; }
.xw-progress-ring.is-large { width: 94px; height: 94px; }
.xw-progress-ring.is-large > div { width: 72px; height: 72px; }
.xw-task-focus-copy { min-width: 0; display: grid; gap: 5px; }
.xw-task-focus-copy small { color: #7c8799; font-size: 10px; }
.xw-task-focus-copy strong { color: #253044; font-size: 16px; }
.xw-task-focus-copy span { color: #8a95a6; font-size: 9px; }
.xw-task-focus-copy span i { margin-right: 4px; color: #6e91d2; }
.xw-task-focus-metrics { display: flex; align-items: stretch; gap: 8px; }
.xw-task-focus-metrics > span { min-width: 76px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 7px; padding: 9px 10px; border-radius: 10px; background: #fff; }
.xw-task-focus-metrics i { grid-row: 1 / span 2; color: #6f91cf; }
.xw-task-focus-metrics b { color: #2e3a4f; font-size: 13px; }
.xw-task-focus-metrics small { color: #8b96a8; font-size: 9px; }

.xw-period-summary { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(120px, 1fr)); gap: 10px; margin-bottom: 13px; }
.xw-period-rate-card,
.xw-period-metric { min-height: 105px; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.xw-period-rate-card > div:last-child,
.xw-period-metric > div { min-width: 0; display: grid; gap: 3px; }
.xw-period-rate-card small,
.xw-period-rate-card span,
.xw-period-metric small,
.xw-period-metric span { color: #8792a4; font-size: 9px; }
.xw-period-rate-card > div:last-child > strong,
.xw-period-metric strong { color: #273247; font-size: 15px; }
.xw-period-metric > i { width: 32px; height: 32px; display: grid; flex: none; place-items: center; border-radius: 10px; color: #3970d8; background: #edf4ff; }
.xw-period-track,
.xw-member-progress { margin-top: 13px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; }
.xw-period-track > header,
.xw-member-progress > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.xw-period-track > header strong,
.xw-period-track > header span,
.xw-member-progress > header strong,
.xw-member-progress > header span { display: block; }
.xw-period-track > header strong,
.xw-member-progress > header strong { color: #334155; font-size: 12px; }
.xw-period-track > header > div > span,
.xw-member-progress > header span { margin-top: 3px; color: #8a95a6; font-size: 9px; }
.xw-period-legend { display: flex; flex-wrap: wrap; gap: 8px; color: #7c8799; font-size: 9px; }
.xw-period-legend span { display: inline-flex; align-items: center; gap: 4px; }
.xw-period-legend i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.xw-period-legend .done i { background: #14a37f; }
.xw-period-legend .partial i { background: #f59e0b; }
.xw-period-legend .missed i { background: #e45858; }
.xw-period-weekdays,
.xw-period-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.xw-period-weekdays { margin-bottom: 6px; color: #8a95a6; font-size: 9px; text-align: center; }
.xw-period-day-spacer { min-height: 62px; }
.xw-period-day { min-width: 0; min-height: 70px; display: grid; place-items: center; gap: 4px; padding: 7px 4px; border: 1px solid #e7ebf2; border-radius: 10px; color: #667085; background: #fff; cursor: pointer; font: inherit; }
.xw-period-day:hover:not(:disabled) { border-color: #abc4f7; background: #f7faff; }
.xw-period-day:disabled { cursor: default; opacity: .55; }
.xw-period-day small,
.xw-period-day strong { font-size: 9px; }
.xw-period-day > span { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #d7dee8; border-radius: 50%; color: #95a1b2; font-size: 8px; }
.xw-period-day.done > span { border-color: #14a37f; color: #fff; background: #14a37f; }
.xw-period-day.partial > span { border-color: #f59e0b; color: #fff; background: #f59e0b; }
.xw-period-day.missed > span { border-color: #e45858; color: #e45858; }
.xw-period-day.is-today { border-color: #8db2ff; background: #f2f7ff; }
.xw-period-track.is-month { padding: 12px 14px 14px; }
.xw-period-track.is-month > header { margin-bottom: 10px; }
.xw-period-track.is-month .xw-period-days,
.xw-period-track.is-month .xw-period-weekdays { width: 100%; max-width: 900px; margin-right: auto; margin-left: auto; }
.xw-period-track.is-month .xw-period-days { gap: 4px; }
.xw-period-track.is-month .xw-period-day { min-height: 52px; padding: 4px 2px 3px; border-radius: 8px; }
.xw-period-track.is-month .xw-period-day > span { width: 20px; height: 20px; margin: 2px 0; }
.xw-period-track.is-month .xw-period-day-spacer { min-height: 52px; }
.xw-member-progress { display: grid; gap: 0; }
.xw-member-progress-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 42px auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #edf1f5; }
.xw-member-progress-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #3970d8; background: #eaf2ff; font-size: 11px; }
.xw-member-progress-copy { min-width: 0; display: grid; gap: 6px; }
.xw-member-progress-copy > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xw-member-progress-copy strong { color: #334155; font-size: 11px; }
.xw-member-progress-copy span { color: #8a95a6; font-size: 9px; }
.xw-member-progress-bar { height: 6px; overflow: hidden; border-radius: 999px; background: #e8edf4; }
.xw-member-progress-bar i { display: block; height: 100%; border-radius: inherit; background: #1769ff; }
.xw-member-progress-row > b { color: #1769ff; font-size: 11px; text-align: right; }

@media (max-width: 1180px) {
  .xw-period-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xw-task-focus-summary { grid-template-columns: auto minmax(0, 1fr); }
  .xw-task-focus-metrics { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .xw-task-browser { grid-template-columns: 1fr; }
  .xw-task-name-pane { position: static; height: auto; max-height: 250px; }
  .xw-task-name-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xw-period-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .xw-task-name-list,
  .xw-period-summary { grid-template-columns: 1fr; }
  .xw-task-detail-pane { padding: 12px; }
  .xw-task-detail-head { align-items: flex-start; }
  .xw-task-focus-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .xw-task-focus-metrics { width: 100%; grid-column: auto; }
  .xw-task-focus-metrics > span { flex: 1 1 0; }
  .xw-period-day { min-height: 60px; }
  .xw-member-progress-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .xw-member-progress-row > b { display: none; }
}
.xw-share-modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 14px; border: 1px solid #dfe6ef; border-radius: 11px; }
.xw-share-modules legend { padding: 0 6px; color: #465267; font-size: 13px; font-weight: 700; }
.xw-share-modules label { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-radius: 8px; color: #536074; background: #f7f9fc; font-size: 13px; }
.xw-share-modules label.is-all { grid-column: 1 / -1; color: #1769ff; background: #edf4ff; font-weight: 700; }
.xw-share-modules input { accent-color: #1769ff; }
.xw-existing-shares { display: grid; gap: 6px; margin-top: 14px; padding: 12px; border-radius: 10px; color: #6b778b; background: #f7f9fc; font-size: 12px; }
.xw-existing-shares strong { color: #445065; }

/* Team collaboration manager */
.xw-team-modal-host.is-share-dialog .xw-team-modal { width: min(760px, calc(100vw - 32px)); max-height: min(800px, calc(100vh - 40px)); border-radius: 18px; }
.xw-share-dialog-head { padding: 18px 22px 15px !important; }
.xw-share-heading { align-items: center; display: flex; gap: 12px; min-width: 0; }
.xw-share-heading-icon { align-items: center; background: #eaf2ff; border-radius: 11px; color: #2563eb; display: inline-flex; flex: 0 0 auto; font-size: 16px; height: 38px; justify-content: center; width: 38px; }
.xw-share-heading > div { min-width: 0; }
.xw-share-heading p { max-width: 610px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-share-workspace { display: grid; gap: 18px; padding: 18px 22px 22px; background: #f8fafd; }
.xw-share-section { padding: 16px; border: 1px solid #e3e9f2; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(29, 59, 110, .035); }
.xw-share-section-head { align-items: center; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.xw-share-section-head > div { align-items: center; display: flex; gap: 8px; min-width: 0; }
.xw-share-section-head strong { color: #253044; font-size: 14px; }
.xw-share-section-head small { color: #8993a5; font-size: 11px; font-weight: 400; }
.xw-share-section-head > b { padding: 4px 8px; border-radius: 999px; color: #2563eb; background: #edf4ff; font-size: 11px; white-space: nowrap; }
.xw-share-step { align-items: center; background: #2563eb; border-radius: 999px; color: #fff; display: inline-flex; flex: 0 0 auto; font-size: 10px; font-weight: 800; height: 20px; justify-content: center; width: 20px; }
.xw-share-search { align-items: center; display: flex; gap: 8px; margin-bottom: 11px; padding: 0 11px; border: 1px solid #dbe3ee; border-radius: 9px; color: #8793a5; background: #fff; }
.xw-share-search:focus-within { border-color: #8eb4ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .09); }
.xw-share-search input { min-width: 0; width: 100%; height: 38px; padding: 0; border: 0; outline: 0; color: #28364c; background: transparent; font: inherit; font-size: 12px; }
.xw-share-member-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 178px; overflow: auto; }
.xw-share-member-card { align-items: center; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 9px; min-height: 54px; padding: 7px 9px; border: 1px solid #e3e8f0; border-radius: 10px; background: #fbfcfe; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.xw-share-member-card:hover { border-color: #c7d8f5; background: #f6f9ff; }
.xw-share-member-card.is-selected,
.xw-share-member-card:has(input:checked) { border-color: #9bbcff; background: #f1f6ff; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .06); }
.xw-share-member-card[hidden] { display: none; }
.xw-share-member-card > input,
.xw-share-stage-option > input { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; opacity: 0 !important; pointer-events: none !important; }
.xw-share-person-avatar { align-items: center; background: #eaf2ff; border-radius: 999px; color: #3970d8; display: inline-flex; flex: 0 0 auto; font-size: 12px; height: 32px; justify-content: center; width: 32px; }
.xw-share-member-copy { display: grid; gap: 2px; min-width: 0; }
.xw-share-member-copy strong { color: #2e3a4f; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-share-member-copy small { color: #8490a3; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-share-member-check { align-items: center; border: 1px solid #cbd5e1; border-radius: 6px; color: transparent; display: inline-flex; font-size: 9px; height: 18px; justify-content: center; width: 18px; }
.xw-share-member-card.is-selected .xw-share-member-check,
.xw-share-member-card:has(input:checked) .xw-share-member-check { border-color: #2563eb; color: #fff; background: #2563eb; }
.xw-share-empty-members { align-items: center; color: #8993a5; display: flex; flex-direction: column; gap: 5px; grid-column: 1 / -1; padding: 20px; text-align: center; }
.xw-share-empty-members i { color: #8ba8dc; font-size: 22px; }
.xw-share-empty-members strong { color: #536074; font-size: 12px; }
.xw-share-empty-members span { font-size: 11px; }
.xw-share-assignment-list { display: grid; gap: 9px; }
.xw-share-assignment-empty { align-items: center; color: #8894a6; display: flex; flex-direction: column; gap: 5px; min-height: 108px; justify-content: center; border: 1px dashed #d7dfeb; border-radius: 11px; background: #fafcff; text-align: center; }
.xw-share-assignment-empty > span { align-items: center; background: #edf4ff; border-radius: 999px; color: #4c7dd8; display: inline-flex; height: 34px; justify-content: center; width: 34px; }
.xw-share-assignment-empty strong { color: #4c586b; font-size: 12px; }
.xw-share-assignment-empty small { font-size: 10px; }
.xw-share-assignment-card { padding: 10px 11px 11px; border: 1px solid #e2e8f1; border-radius: 11px; background: #fbfcfe; }
.xw-share-assignment-person { align-items: center; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 9px; }
.xw-share-assignment-person .xw-share-person-avatar { font-size: 10px; height: 28px; width: 28px; }
.xw-share-assignment-person > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.xw-share-assignment-person strong { color: #2c384c; font-size: 12px; }
.xw-share-assignment-person small { color: #8792a4; font-size: 9px; }
.xw-share-assignment-person > b { color: #54709d; font-size: 10px; font-weight: 650; }
.xw-share-stage-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.xw-share-stage-option { align-items: center; cursor: pointer; display: flex; gap: 5px; justify-content: center; min-width: 0; min-height: 32px; padding: 4px 5px; border: 1px solid #e1e7ef; border-radius: 7px; color: #667287; background: #fff; font-size: 10px; }
.xw-share-stage-option:hover { border-color: #bfd0ef; background: #f7faff; }
.xw-share-stage-option:has(input:checked) { border-color: #b5cbf7; color: #285fae; background: #edf4ff; }
.xw-share-stage-option > span { align-items: center; border: 1px solid #c9d2df; border-radius: 4px; color: transparent; display: inline-flex; flex: 0 0 auto; font-size: 7px; height: 13px; justify-content: center; width: 13px; }
.xw-share-stage-option:has(input:checked) > span { border-color: #3975df; color: #fff; background: #3975df; }
.xw-share-stage-option em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-share-stage-option.is-all { font-weight: 700; }
.xw-team-modal > footer.xw-share-dialog-footer { align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; padding: 12px 22px; }
.xw-share-dialog-footer > span { color: #7d899b; font-size: 10px; }
.xw-share-dialog-footer > span i { color: #4d7fd5; margin-right: 5px; }
.xw-share-dialog-footer > div { display: flex; gap: 8px; }
.xw-share-dialog-footer .xw-btn { min-height: 36px; padding: 7px 14px; }
.xw-team-modal-host.is-share-dialog .xw-btn:disabled { cursor: not-allowed; }
.xw-delivery-target { margin-bottom: 14px; padding: 12px; border-radius: 10px; color: #50617c; background: #edf4ff; font-size: 13px; }
.xw-notice-tabs { display: flex; gap: 5px; padding: 10px 21px; border-bottom: 1px solid #edf1f5; }
.xw-notice-tabs button { padding: 6px 10px; border: 0; border-radius: 8px; color: #6c7789; background: transparent; }
.xw-notice-tabs button.is-active { color: #1769ff; background: #edf4ff; }
.xw-notice-list { padding-top: 10px; }
.xw-notice-list > button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px 4px; border: 0; border-bottom: 1px solid #edf1f5; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.xw-notice-list > button > i { color: #1769ff; }
.xw-notice-list strong,
.xw-notice-list small { display: block; }
.xw-notice-list strong { color: #273247; font-size: 13px; }
.xw-notice-list small { margin-top: 5px; color: #7f8a9b; font-size: 11px; }
.xw-notice-list em { color: #1769ff; font-size: 11px; font-style: normal; white-space: nowrap; }
.xw-notice-bell { position: relative; }
.xw-notice-bell b { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 3px; border: 2px solid #fff; border-radius: 9px; color: #fff; background: #f04438; font-size: 9px; line-height: 1; }

@media (max-width: 980px) {
  .xw-center-panel { inset: 16px; }
  .xw-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .xw-notice-label { display: none; }
  .xw-task-overview { gap: 12px; overflow-x: auto; }
  .xw-task-overview em { display: none; }
}
@media (max-width: 640px) {
  .xw-center-panel > header,
  .xw-center-panel > main { padding-right: 15px; padding-left: 15px; }
  .xw-center-panel > nav { padding: 0 10px; overflow-x: auto; }
  .xw-center-panel > nav button { padding: 12px 10px; white-space: nowrap; }
  .xw-task-toolbar { align-items: stretch; flex-direction: column; }
  .xw-task-subtabs { width: 100%; }
  .xw-task-subtabs button { flex: 1 1 0; }
  .xw-task-settings-button { align-self: flex-end; }
  .xw-task-overview { margin-right: -15px; margin-left: -15px; padding-right: 15px; padding-left: 15px; border-right: 0; border-left: 0; border-radius: 0; }
  .xw-week-range { align-items: flex-start; flex-direction: column; gap: 3px; }
  .xw-week-range em { margin-left: 0; }
  .xw-auto-delivery-list > .xw-auto-delivery-item { grid-template-columns: 22px minmax(0, 1fr); }
  .xw-auto-delivery-list > button.xw-auto-delivery-item { grid-template-columns: 22px minmax(0, 1fr) 18px; }
  .xw-auto-delivery-list .xw-auto-delivery-item time { grid-column: 2; }
  .xw-auto-delivery-list .xw-auto-delivery-open { grid-column: 3; grid-row: 1 / span 2; }
  .xw-stat-cards { grid-template-columns: 1fr 1fr; }
  .xw-field-grid,
  .xw-share-modules { grid-template-columns: 1fr; }
  .xw-share-modules label.is-all { grid-column: auto; }
  .xw-share-workspace { padding: 14px; }
  .xw-share-section { padding: 13px; }
  .xw-share-member-list { grid-template-columns: 1fr; }
  .xw-share-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xw-team-modal > footer.xw-share-dialog-footer { align-items: stretch; flex-direction: column; }
  .xw-share-dialog-footer > div { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .xw-global-task-popover,
  .xw-global-task-item,
  .xw-global-task-entry,
  .xw-live-task-list,
  .xw-live-task-row,
  .xw-live-task-mini { transition: none; }
  .xw-global-task-item[data-status="running"] .xw-global-task-track > span,
  .xw-global-task-item[data-status="queued"] .xw-global-task-track > span { animation: none; width: 55%; }
  .xw-live-task-progress > span { animation: none !important; }
}


/* Daily/weekly task periods and acceptance-based development progress. */
.xw-state.待验证 { color: #b45309; background: #fff1d6; }
.xw-state.部分完成 { color: #7c3aed; background: #f3e8ff; }
.xw-period-day.waiting span { color: #b45309; background: #fff1d6; }
.xw-period-legend .waiting i { background: #f59e0b; }
.xw-team-field[hidden] { display: none !important; }


/* Unified team task notifications. System update notices remain separate. */
.xw-notice-tabs { flex-wrap: wrap; }
.xw-notice-list > button:hover { background: #f8fbff; }
.xw-notice-list > button.xw-notice-task > i { color: #7c3aed; }
.xw-notice-list > button.xw-notice-collaboration > i { color: #1769ff; }
.xw-notice-list > button.xw-notice-completed > i { color: #059669; }

.xw-team-modal-host.is-notifications .xw-team-modal { grid-template-rows: auto auto minmax(0, 1fr); }
.xw-team-modal-host.is-notifications .xw-notice-list { min-height: 0; overflow: auto; }
.xw-notice-kind { display: inline-flex !important; align-items: center; margin-right: 7px; padding: 2px 6px; border-radius: 999px; font-size: 9px; font-weight: 700; line-height: 1.4; vertical-align: 1px; }
.xw-notice-kind.is-task { color: #6d28d9; background: #f3e8ff; }
.xw-notice-kind.is-collaboration { color: #1d4ed8; background: #eaf2ff; }
.xw-notice-kind.is-completed { color: #047857; background: #e6f7f0; }
.xw-notice-tabs button:focus-visible,
.xw-notice-list > button:focus-visible { outline: 2px solid #1769ff; outline-offset: -2px; }


/* Transparent notification center UI · 2026-07-23 */
.xw-team-modal-host.is-notifications .xw-team-modal {
  width: min(1080px, calc(100vw - 40px));
  height: min(680px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 18px;
}
.xw-notice-modal-head { min-height: 76px; padding: 16px 22px 14px !important; }
.xw-notice-modal-head h2 { font-size: 22px !important; letter-spacing: -.02em; }
.xw-notice-modal-head p { margin-top: 5px !important; font-size: 12px !important; }
.xw-notice-system-link { padding: 0; border: 0; color: #1769ff; background: transparent; font: inherit; cursor: pointer; }
.xw-notice-system-link:hover { text-decoration: underline; }
.xw-notice-workspace { min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.xw-notice-master { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid #dfe8f6; background: #f5f8ff; }
.xw-notice-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 14px 12px 11px; border-bottom: 1px solid #dfe8f6; background: #f5f8ff; flex-wrap: nowrap; }
.xw-notice-tabs button { min-width: 0; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 5px; border: 0; border-radius: 9px; color: #667085; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.xw-notice-tabs button b { min-width: 16px; height: 16px; display: inline-grid; place-items: center; padding: 0 4px; border-radius: 999px; color: #1769ff; background: #e7f0ff; font-size: 9px; line-height: 1; }
.xw-notice-tabs button.is-active { color: #1769ff; background: #fff; box-shadow: 0 1px 3px rgba(23, 105, 255, .10); }
.xw-notice-tabs button.is-active b { color: #fff; background: #1769ff; }
.xw-notice-master-list { min-height: 0; overflow: auto; padding: 6px 12px 18px; scrollbar-width: thin; }
.xw-notice-date-group { display: grid; gap: 2px; }
.xw-notice-date-group > h4 { margin: 15px 8px 7px; color: #7d899b; font-size: 11px; font-weight: 650; }
.xw-notice-row { position: relative; width: 100%; min-height: 62px; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 10px 10px 11px; border: 0; border-radius: 9px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.xw-notice-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 3px; background: transparent; }
.xw-notice-row:hover { background: #f7faff; }
.xw-notice-row.is-selected { background: #e7f0ff; }
.xw-notice-row.is-selected::before { background: transparent; }
.xw-notice-unread-dot { width: 7px; height: 7px; border-radius: 999px; background: transparent; }
.xw-notice-row.is-unread .xw-notice-unread-dot { background: #1769ff; box-shadow: 0 0 0 2px rgba(23, 105, 255, .10); }
.xw-notice-row:not(.is-unread) .xw-notice-unread-dot { background: transparent; box-shadow: none; }
.xw-notice-row-copy { min-width: 0; display: grid; gap: 4px; }
.xw-notice-row-copy strong { overflow: hidden; color: #667085; font-size: 12px; font-weight: 500; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.xw-notice-row.is-unread .xw-notice-row-copy strong { color: #172033; font-weight: 750; }
.xw-notice-row-copy small { overflow: hidden; color: #8490a3; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.xw-notice-row > time { align-self: start; padding-top: 3px; color: #8490a3; font-size: 10px; white-space: nowrap; }
.xw-notice-empty,
.xw-notice-detail-empty { min-height: 240px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: #8b96a7; text-align: center; }
.xw-notice-empty i,
.xw-notice-detail-empty i { color: #8eace0; font-size: 24px; }
.xw-notice-empty strong,
.xw-notice-detail-empty strong { color: #566276; font-size: 13px; }
.xw-notice-detail-empty span { font-size: 11px; }
.xw-notice-detail { min-width: 0; min-height: 0; overflow: hidden; padding: 0; background: #fff; scrollbar-width: thin; }
.xw-notice-detail-card { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 20px 24px 18px; }
.xw-notice-mobile-back { display: none; }
.xw-notice-detail-head { padding-bottom: 17px; }
.xw-notice-detail-head > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.xw-notice-detail-head h3 { min-width: 0; margin: 0; overflow: hidden; color: #172033; font-size: 20px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.xw-notice-detail-head > p { margin: 8px 0 0; color: #718096; font-size: 12px; line-height: 1.65; }
.xw-notice-detail-kind { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; color: #1769ff; background: #eaf2ff; font-size: 10px; font-weight: 750; }
.xw-notice-detail-kind.is-delivery { color: #047857; background: #e8f8f1; }
.xw-notice-detail-kind.is-task { color: #6d28d9; background: #f3e8ff; }
.xw-notice-detail-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 12px 8px; border: 1px solid #e4eaf2; border-radius: 12px; background: #fbfcfe; }
.xw-notice-detail-meta > div { min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 7px; padding: 2px 11px; border-right: 1px solid #e7ecf3; }
.xw-notice-detail-meta > div:last-child { border-right: 0; }
.xw-notice-detail-meta > div > i { color: #7083a0; font-size: 13px; text-align: center; }
.xw-notice-detail-meta > div > span { min-width: 0; display: grid; gap: 2px; }
.xw-notice-detail-meta small { color: #8792a4; font-size: 9px; }
.xw-notice-detail-meta strong { overflow: hidden; color: #334155; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.xw-notice-detail-meta strong.is-green { color: #059669; }
.xw-notice-detail-meta strong.is-blue { color: #1769ff; }
.xw-notice-timeline { min-height: 0; flex: 1 1 auto; overflow: auto; padding: 16px 3px 10px 0; scrollbar-width: thin; }
.xw-notice-timeline > h4 { margin: 0 0 16px; color: #344054; font-size: 13px; }
.xw-notice-timeline > div { position: relative; display: grid; }
.xw-notice-timeline > div::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 17px; width: 1px; background: #cfe0ff; }
.xw-notice-timeline-row { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 0 0 20px; }
.xw-notice-timeline-row:last-child { padding-bottom: 2px; }
.xw-notice-timeline-icon { z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: #1769ff; background: #eaf2ff; font-size: 12px; }
.xw-notice-timeline-row.is-green .xw-notice-timeline-icon { color: #059669; background: #e6f7f0; }
.xw-notice-timeline-row > div { min-width: 0; padding-top: 2px; }
.xw-notice-timeline-row header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.xw-notice-timeline-row header strong { color: #273247; font-size: 13px; }
.xw-notice-timeline-row header span,
.xw-notice-timeline-row header time { color: #7f8b9d; font-size: 10px; }
.xw-notice-timeline-row header time { white-space: nowrap; }
.xw-notice-timeline-row p { margin: 7px 0 0; color: #66758b; font-size: 11px; line-height: 1.6; }
.xw-notice-timeline-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xw-notice-timeline-chips span { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border: 1px solid #dde6f2; border-radius: 7px; color: #53647e; background: #fff; font-size: 10px; }
.xw-notice-results { margin-top: 14px; }
.xw-notice-results > h4 { margin: 0 0 7px; color: #344054; font-size: 12px; }
.xw-notice-results > div { display: grid; gap: 6px; }
.xw-notice-results article { min-height: 46px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid #dde6f2; border-radius: 9px; background: #f9fbff; }
.xw-notice-result-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #1769ff; background: #e7f0ff; font-size: 11px; }
.xw-notice-results article > div { min-width: 0; display: grid; gap: 2px; }
.xw-notice-results article strong { overflow: hidden; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.xw-notice-results article small { overflow: hidden; color: #8490a3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.xw-notice-results article button { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 7px; color: #1769ff; background: #edf4ff; font-size: 10px; font-weight: 700; cursor: pointer; }
.xw-notice-results article button:hover { background: #dfeaff; }
.xw-notice-detail-foot { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding-top: 13px; border-top: 1px solid #e7ecf3; }
.xw-notice-detail-foot > div { display: grid; gap: 4px; }
.xw-notice-detail-foot strong { color: #344054; font-size: 12px; }
.xw-notice-detail-foot span { color: #8792a4; font-size: 10px; }
.xw-notice-detail-actions { display: flex !important; align-items: center; justify-content: flex-end; gap: 8px !important; }
.xw-notice-detail-foot .xw-btn { min-width: 108px; min-height: 38px; padding: 8px 15px; white-space: nowrap; }
.xw-notice-list { display: none !important; }
.xw-notice-kind.is-delivery { color: #047857; background: #e6f7f0; }
.xw-notice-tabs button:focus-visible,
.xw-notice-row:focus-visible,
.xw-notice-detail-foot button:focus-visible,
.xw-notice-results button:focus-visible { outline: 2px solid #1769ff; outline-offset: 2px; }

@media (max-width: 900px) {
  .xw-team-modal-host.is-notifications .xw-team-modal { top: 0; left: 0; width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; transform: none; }
  .xw-notice-modal-head { min-height: 72px; padding: 15px 16px 13px !important; }
  .xw-notice-workspace { display: block; height: 100%; overflow: hidden; }
  .xw-notice-workspace:not(.is-detail-open) .xw-notice-detail { display: none; }
  .xw-notice-workspace.is-detail-open .xw-notice-master { display: none; }
  .xw-notice-master { height: 100%; border-right: 0; border-bottom: 0; }
  .xw-notice-tabs { position: sticky; top: 0; z-index: 2; padding: 10px; background: #f5f8ff; }
  .xw-notice-tabs button { min-height: 44px; }
  .xw-notice-master-list { max-height: none; overflow: auto; padding: 4px 8px 18px; }
  .xw-notice-detail { height: 100%; overflow: auto; }
  .xw-notice-detail-card { height: auto; min-height: 100%; padding: 14px 16px 18px; }
  .xw-notice-timeline { flex: 0 0 auto; overflow: visible; }
  .xw-notice-mobile-back { width: max-content; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 7px 0; border: 0; color: #1769ff; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
  .xw-notice-detail-head > div { align-items: flex-start; flex-direction: column; gap: 7px; }
  .xw-notice-detail-head h3 { width: 100%; font-size: 17px; white-space: normal; }
  .xw-notice-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xw-notice-detail-meta > div:nth-child(2) { border-right: 0; }
  .xw-notice-detail-meta > div:nth-child(-n + 2) { padding-bottom: 8px; border-bottom: 1px solid #e7ecf3; }
  .xw-notice-detail-meta > div:nth-child(n + 3) { padding-top: 8px; }
  .xw-notice-timeline-row header { grid-template-columns: 1fr auto; gap: 4px 8px; }
  .xw-notice-timeline-row header span { grid-column: 1; }
  .xw-notice-timeline-row header time { grid-column: 2; grid-row: 1; }
  .xw-notice-detail-foot { align-items: stretch; flex-direction: column; }
  .xw-notice-detail-actions { width: 100%; display: grid !important; grid-template-columns: 1fr 1fr; }
  .xw-notice-detail-foot .xw-btn { width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
  .xw-notice-detail-meta { grid-template-columns: 1fr; }
  .xw-notice-detail-meta > div { padding: 8px 9px; border-right: 0; border-bottom: 1px solid #e7ecf3; }
  .xw-notice-detail-meta > div:last-child { border-bottom: 0; }
  .xw-notice-detail-meta > div:nth-child(-n + 2),
  .xw-notice-detail-meta > div:nth-child(n + 3) { padding: 8px 9px; }
}


/* notice-paper-ui-v6 */
.xw-team-modal-host.is-notifications .xw-team-modal { position: fixed; width: min(1080px, calc(100vw - 40px)); height: min(620px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); grid-template-rows: minmax(0, 1fr); overflow: hidden; border: 1px solid #111827; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .24); }
.xw-notice-floating-close { position: absolute; z-index: 12; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; color: #111827; background: #fff; font-size: 17px; cursor: pointer; }
.xw-notice-floating-close:hover { border-color: #111827; background: #f8fafc; }
.xw-notice-floating-close:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.xw-notice-workspace { height: 100%; grid-template-columns: 330px minmax(0, 1fr); background: #fff; }
.xw-notice-master { border-right: 1px solid #111827; background: #fff; }
.xw-notice-tabs { min-height: 62px; padding: 0 16px; border-bottom: 1px solid #111827; background: #fff; }
.xw-notice-tabs button { position: relative; min-width: 0; min-height: 62px; padding: 0 8px; border: 0; border-radius: 0; color: #334155; background: transparent; font-weight: 600; }
.xw-notice-tabs button:hover { color: #111827; background: transparent; }
.xw-notice-tabs button.is-active { color: #ea580c; background: transparent; box-shadow: none; }
.xw-notice-tabs button.is-active::after { content: ""; position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; background: #ea580c; }
.xw-notice-tabs button b { color: inherit; background: transparent; font-size: 11px; }
.xw-notice-master-list { padding: 0 12px 16px; background: #fff; }
.xw-notice-date-group { gap: 0; }
.xw-notice-date-group > h4 { margin: 0; padding: 14px 4px 8px; border-bottom: 1px solid #e5e7eb; color: #64748b; font-size: 11px; }
.xw-notice-row { min-height: 72px; padding: 12px 8px; border: 0; border-bottom: 1px solid #d9dee7; border-radius: 0; background: #fff; }
.xw-notice-row:hover { background: #f8fafc; }
.xw-notice-row.is-selected { border-radius: 4px; background: #f8fafc; box-shadow: inset 0 0 0 1px #111827; }
.xw-notice-row-copy strong { color: #111827; font-size: 12px; line-height: 1.45; }
.xw-notice-row-copy small { color: #475569; font-size: 10px; line-height: 1.45; }
.xw-notice-row time { color: #64748b; font-size: 10px; }
.xw-notice-row.is-unread .xw-notice-row-copy strong { font-weight: 800; }
.xw-notice-unread-dot { width: 7px; height: 7px; background: #2563eb; }
.xw-notice-detail { background: #fff; }
.xw-notice-detail-card { padding: 22px 26px 16px; background: #fff; }
.xw-notice-detail-head { padding-right: 42px; }
.xw-notice-detail-head > div { gap: 0; }
.xw-notice-detail-kind { display: none; }
.xw-notice-detail-head h3 { color: #111827; font-size: 20px; font-weight: 750; }
.xw-notice-detail-head p { color: #475569; }
.xw-notice-detail-meta { border: 1px solid #111827; border-radius: 3px; background: #fff; box-shadow: none; }
.xw-notice-detail-meta > div { border-right-color: #111827; }
.xw-notice-detail-meta small { color: #64748b; }
.xw-notice-detail-meta strong { color: #111827; }
.xw-notice-timeline { padding-top: 14px; }
.xw-notice-timeline > h4 { color: #111827; }
.xw-notice-timeline > div::before { background: #111827; }
.xw-notice-timeline-icon { border: 1px solid #111827; color: #111827; background: #fff; }
.xw-notice-timeline-row.is-green .xw-notice-timeline-icon { border-color: #111827; color: #111827; background: #fff; }
.xw-notice-timeline-row header strong { color: #111827; }
.xw-notice-timeline-row header span, .xw-notice-timeline-row header time, .xw-notice-timeline-row p { color: #475569; }
.xw-notice-timeline-chips span { border-color: #111827; border-radius: 3px; color: #111827; background: #fff; }
.xw-notice-timeline-results { display: grid; gap: 7px; margin-top: 9px; }
.xw-notice-timeline-result { min-height: 52px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #111827; border-radius: 3px; background: #fff; }
.xw-notice-timeline-result .xw-notice-result-icon { width: 30px; height: 30px; border: 1px solid #111827; border-radius: 3px; color: #111827; background: #fff; }
.xw-notice-timeline-result > div { min-width: 0; display: grid; gap: 2px; }
.xw-notice-timeline-result strong { overflow: hidden; color: #111827; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.xw-notice-timeline-result small { overflow: hidden; color: #64748b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.xw-notice-timeline-result button { min-height: 30px; padding: 4px 7px; border: 0; color: #ea580c; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.xw-notice-timeline-result button:hover { color: #c2410c; text-decoration: underline; }
.xw-notice-results { display: none; }
.xw-notice-detail-foot { border-top-color: #111827; }
.xw-notice-detail-foot .xw-btn { min-height: 38px; border: 1px solid #111827; border-radius: 3px; color: #111827; background: #fff; box-shadow: none; }
.xw-notice-detail-foot .xw-btn:hover { color: #ea580c; border-color: #111827; background: #fff; }
.xw-notice-detail-foot .xw-btn.primary { color: #ea580c; border-color: #111827; background: #fff; }
.xw-notice-detail-foot .xw-btn.primary:hover { color: #c2410c; background: #fff; }
.xw-notice-mobile-back { color: #111827; }

@media (max-width: 900px) {
  .xw-team-modal-host.is-notifications .xw-team-modal { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .xw-notice-floating-close { top: 10px; right: 10px; }
  .xw-notice-tabs { padding-right: 52px; background: #fff; }
  .xw-notice-master { border-right: 0; }
  .xw-notice-master-list { background: #fff; }
  .xw-notice-detail-card { padding-top: 16px; }
  .xw-notice-detail-head { padding-right: 42px; }
  .xw-notice-detail-meta > div:nth-child(-n + 2) { border-bottom-color: #111827; }
}


/* task-center-header-compact-v9 */
.xw-center-panel > header {
  min-height: 0;
  padding: 11px 20px 7px;
}
.xw-center-panel > header h1 {
  font-size: 21px;
  line-height: 1.25;
}
.xw-center-panel > header p {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
}
.xw-center-panel > header button {
  width: 36px;
  height: 36px;
}
.xw-center-panel > nav {
  min-height: 0;
  padding: 0 20px;
}
.xw-center-panel > nav button {
  padding: 9px 16px;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .xw-center-panel > header { padding: 10px 15px 6px; }
  .xw-center-panel > nav { padding: 0 10px; }
  .xw-center-panel > nav button { padding: 8px 10px; }
}

/* notification-center-soft-ui-v1 · 2026-08-11
   Refresh only the notification surface; task and collaboration behavior stay unchanged. */
.xw-team-modal-host.is-notifications {
  --xw-notice-ink: #172033;
  --xw-notice-muted: #667085;
  --xw-notice-faint: #8a94a6;
  --xw-notice-line: rgba(15, 23, 42, .09);
  --xw-notice-panel: #f6f7f9;
  --xw-notice-blue: #0a72ff;
  --xw-notice-blue-soft: #eaf3ff;
  --xw-notice-green: #079455;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.xw-team-modal-host.is-notifications .xw-team-modal-backdrop {
  background: rgba(27, 31, 39, .34);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
}
.xw-team-modal-host.is-notifications .xw-team-modal {
  width: min(1180px, calc(100vw - 48px));
  height: min(720px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .24), 0 2px 8px rgba(15, 23, 42, .08);
}
.xw-notice-floating-close {
  top: 17px;
  right: 17px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #3f4755;
  background: rgba(241, 243, 246, .92);
  font-size: 14px;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.xw-notice-floating-close:hover {
  border: 0;
  color: #111827;
  background: #e7eaf0;
  transform: scale(1.04);
}
.xw-notice-floating-close:focus-visible,
.xw-notice-tabs button:focus-visible,
.xw-notice-row:focus-visible,
.xw-notice-detail-foot button:focus-visible,
.xw-notice-results button:focus-visible,
.xw-notice-timeline-result button:focus-visible {
  outline: 3px solid rgba(10, 114, 255, .28);
  outline-offset: 2px;
}
.xw-notice-workspace {
  height: 100%;
  grid-template-columns: 348px minmax(0, 1fr);
  background: rgba(255, 255, 255, .98);
}
.xw-notice-master {
  border-right: 1px solid var(--xw-notice-line);
  background: var(--xw-notice-panel);
}
.xw-notice-tabs {
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--xw-notice-line);
  background: rgba(246, 247, 249, .92);
}
.xw-notice-tabs button {
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  color: #6c7584;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.xw-notice-tabs button:hover {
  color: var(--xw-notice-ink);
  background: rgba(255, 255, 255, .72);
}
.xw-notice-tabs button.is-active {
  color: var(--xw-notice-ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .11), 0 0 0 1px rgba(15, 23, 42, .035);
}
.xw-notice-tabs button.is-active::after { display: none; }
.xw-notice-tabs button b,
.xw-notice-tabs button.is-active b {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  color: #fff;
  background: var(--xw-notice-blue);
  font-size: 9px;
}
.xw-notice-master-list {
  padding: 8px 10px 18px;
  background: transparent;
}
.xw-notice-date-group { gap: 5px; }
.xw-notice-date-group > h4 {
  margin: 0;
  padding: 14px 8px 7px;
  border: 0;
  color: #838c9b;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .01em;
}
.xw-notice-row {
  min-height: 72px;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 9px;
  margin: 2px 0;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.xw-notice-row:hover {
  border-color: rgba(15, 23, 42, .055);
  background: rgba(255, 255, 255, .72);
}
.xw-notice-row.is-selected {
  border-color: rgba(10, 114, 255, .20);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(25, 48, 85, .08), 0 1px 3px rgba(15, 23, 42, .045);
}
.xw-notice-unread-dot {
  width: 7px;
  height: 7px;
  background: transparent;
}
.xw-notice-row.is-unread .xw-notice-unread-dot {
  background: var(--xw-notice-blue);
  box-shadow: 0 0 0 3px rgba(10, 114, 255, .10);
}
.xw-notice-row-copy { gap: 5px; }
.xw-notice-row-copy strong {
  color: #414b5a;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.45;
}
.xw-notice-row.is-unread .xw-notice-row-copy strong {
  color: var(--xw-notice-ink);
  font-weight: 720;
}
.xw-notice-row-copy small,
.xw-notice-row time {
  color: #8a94a4;
  font-size: 10px;
}
.xw-notice-detail { background: #fff; }
.xw-notice-detail-card {
  padding: 28px 30px 20px;
  background: #fff;
}
.xw-notice-detail-head {
  padding: 0 48px 20px 0;
}
.xw-notice-detail-head > div {
  align-items: center;
  gap: 10px;
}
.xw-notice-detail-kind {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #2366b1;
  background: var(--xw-notice-blue-soft);
  font-size: 10px;
  font-weight: 720;
}
.xw-notice-detail-kind.is-delivery {
  color: #067647;
  background: #eaf8f1;
}
.xw-notice-detail-kind.is-task {
  color: #6b4ec4;
  background: #f1edff;
}
.xw-notice-detail-head h3 {
  color: var(--xw-notice-ink);
  font-size: 22px;
  font-weight: 730;
  line-height: 1.32;
  letter-spacing: -.018em;
}
.xw-notice-detail-head p {
  margin-top: 9px;
  color: var(--xw-notice-muted);
  font-size: 12px;
  line-height: 1.65;
}
.xw-notice-detail-meta {
  padding: 13px 8px;
  border: 1px solid var(--xw-notice-line);
  border-radius: 15px;
  background: #fafbfc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.xw-notice-detail-meta > div {
  padding: 3px 13px;
  border-right-color: var(--xw-notice-line);
}
.xw-notice-detail-meta > div > i {
  color: #74839a;
  font-size: 13px;
}
.xw-notice-detail-meta small {
  color: #8a94a4;
  font-size: 9px;
}
.xw-notice-detail-meta strong {
  color: #344054;
  font-size: 11px;
}
.xw-notice-detail-meta strong.is-green { color: var(--xw-notice-green); }
.xw-notice-detail-meta strong.is-blue { color: var(--xw-notice-blue); }
.xw-notice-timeline {
  padding: 19px 4px 12px 0;
}
.xw-notice-timeline > h4 {
  margin-bottom: 18px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}
.xw-notice-timeline > div::before {
  left: 17px;
  background: #dbe5f2;
}
.xw-notice-timeline-row {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  padding-bottom: 21px;
}
.xw-notice-timeline-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(10, 114, 255, .15);
  border-radius: 999px;
  color: var(--xw-notice-blue);
  background: #fff;
  box-shadow: 0 2px 7px rgba(34, 80, 140, .10);
}
.xw-notice-timeline-row.is-green .xw-notice-timeline-icon {
  border-color: rgba(7, 148, 85, .18);
  color: var(--xw-notice-green);
  background: #fff;
}
.xw-notice-timeline-row header {
  gap: 12px;
}
.xw-notice-timeline-row header strong {
  color: #2c3748;
  font-size: 12px;
}
.xw-notice-timeline-row header span,
.xw-notice-timeline-row header time,
.xw-notice-timeline-row p {
  color: #7a8799;
}
.xw-notice-timeline-row p {
  margin-top: 6px;
  line-height: 1.55;
}
.xw-notice-timeline-chips span {
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid var(--xw-notice-line);
  border-radius: 8px;
  color: #53647a;
  background: #f8fafc;
}
.xw-notice-timeline-results {
  gap: 8px;
  margin-top: 10px;
}
.xw-notice-timeline-result {
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--xw-notice-line);
  border-radius: 13px;
  background: #fafbfc;
}
.xw-notice-timeline-result .xw-notice-result-icon {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: #53647a;
  background: #eef1f5;
}
.xw-notice-timeline-result strong { color: #344054; }
.xw-notice-timeline-result small { color: #8a94a4; }
.xw-notice-timeline-result button {
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--xw-notice-blue);
  background: transparent;
}
.xw-notice-timeline-result button:hover {
  color: #0059cc;
  background: var(--xw-notice-blue-soft);
  text-decoration: none;
}
.xw-notice-detail-foot {
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--xw-notice-line);
}
.xw-notice-detail-actions { gap: 9px !important; }
.xw-notice-detail-foot .xw-btn {
  min-width: 112px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 10px;
  color: #344054;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
}
.xw-notice-detail-foot .xw-btn:hover {
  color: #1f2937;
  border-color: rgba(15, 23, 42, .18);
  background: #f7f8fa;
}
.xw-notice-detail-foot .xw-btn.primary {
  color: #fff;
  border-color: var(--xw-notice-blue);
  background: var(--xw-notice-blue);
  box-shadow: 0 6px 16px rgba(10, 114, 255, .18);
}
.xw-notice-detail-foot .xw-btn.primary:hover {
  color: #fff;
  border-color: #0064e6;
  background: #0064e6;
}
.xw-notice-mobile-back {
  color: var(--xw-notice-blue);
}

@media (max-width: 900px) {
  .xw-team-modal-host.is-notifications .xw-team-modal {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    transform: none;
  }
  .xw-notice-floating-close { top: 12px; right: 12px; }
  .xw-notice-tabs {
    padding: 10px 54px 10px 10px;
    background: rgba(246, 247, 249, .96);
  }
  .xw-notice-master { border-right: 0; }
  .xw-notice-master-list { padding: 4px 8px 18px; }
  .xw-notice-detail-card { padding: 18px 16px 20px; }
  .xw-notice-detail-head { padding-right: 42px; }
  .xw-notice-detail-head h3 { font-size: 18px; white-space: normal; }
  .xw-notice-detail-meta > div:nth-child(-n + 2) { border-bottom-color: var(--xw-notice-line); }
  .xw-notice-detail-actions { display: grid !important; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .xw-notice-floating-close,
  .xw-notice-tabs button,
  .xw-notice-row { transition: none; }
}

/* notification-center-structural-ui-v1 · 2026-08-11
   Production notification shell aligned to the approved notification-center prototype. */
.xw-team-modal-host.is-notifications {
  --xw-notice-accent: #c64a1b;
  --xw-notice-accent-soft: rgba(198, 74, 27, .10);
  --xw-notice-text: #1d1d1f;
  --xw-notice-secondary: #6e6e73;
  --xw-notice-tertiary: #85858b;
  --xw-notice-separator: rgba(60, 60, 67, .14);
  --xw-notice-sidebar: rgba(246, 247, 249, .97);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.xw-team-modal-host.is-notifications .xw-team-modal-backdrop {
  background: rgba(75, 81, 90, .48);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.xw-team-modal-host.is-notifications .xw-team-modal {
  width: min(1400px, calc(100vw - 48px));
  height: min(785px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(60, 60, 67, .23);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 80px rgba(28, 32, 38, .24);
}
.xw-notice-workspace {
  height: 100%;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  background: rgba(255, 255, 255, .98);
}
.xw-notice-master {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border-right: 1px solid var(--xw-notice-separator);
  background: var(--xw-notice-sidebar);
}
.xw-notice-center-head {
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
}
.xw-notice-center-head p {
  margin: 0 0 6px;
  color: var(--xw-notice-secondary);
  font-size: 12px;
  letter-spacing: .04em;
}
.xw-notice-center-head h2 {
  margin: 0;
  color: var(--xw-notice-text);
  font-size: 25px;
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.xw-notice-center-head > span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--xw-notice-secondary);
  background: rgba(118, 118, 128, .08);
  font-size: 11px;
  font-weight: 560;
}
.xw-notice-center-head > span.is-unread {
  color: var(--xw-notice-accent);
  background: var(--xw-notice-accent-soft);
}
.xw-notice-tabs {
  min-height: 46px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  margin: 0 14px 12px;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: #f0f0f2;
}
.xw-notice-tabs button {
  min-height: 36px;
  padding: 6px 5px;
  border: 0;
  border-radius: 8px;
  color: var(--xw-notice-secondary);
  background: transparent;
  font-size: 12px;
  font-weight: 520;
  box-shadow: none;
}
.xw-notice-tabs button:hover { color: var(--xw-notice-text); background: rgba(255, 255, 255, .58); }
.xw-notice-tabs button.is-active {
  color: var(--xw-notice-text);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 7px rgba(0, 0, 0, .05);
}
.xw-notice-tabs button b,
.xw-notice-tabs button.is-active b {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  color: var(--xw-notice-accent);
  background: var(--xw-notice-accent-soft);
  font-size: 9px;
}
.xw-notice-master-list { padding: 0 10px 16px; background: transparent; }
.xw-notice-date-group { gap: 4px; }
.xw-notice-date-group > h4 {
  margin: 0;
  padding: 13px 9px 7px;
  color: var(--xw-notice-secondary);
  font-size: 11px;
  font-weight: 560;
}
.xw-notice-row {
  min-height: 88px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}
.xw-notice-row:hover { border: 0; background: rgba(118, 118, 128, .07); }
.xw-notice-row.is-selected {
  border: 0;
  background: var(--xw-notice-accent-soft);
  box-shadow: none;
}
.xw-notice-row-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 9px;
  color: var(--xw-notice-secondary);
  background: #ececef;
  font-size: 12px;
}
.xw-notice-row.is-selected .xw-notice-row-icon { color: var(--xw-notice-accent); background: #fff; }
.xw-notice-row-copy { gap: 4px; }
.xw-notice-row-source {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--xw-notice-secondary);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xw-notice-row-source .xw-notice-unread-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--xw-notice-accent);
  box-shadow: none;
}
.xw-notice-row-copy strong,
.xw-notice-row.is-unread .xw-notice-row-copy strong {
  color: var(--xw-notice-text);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.45;
}
.xw-notice-row-copy small,
.xw-notice-row time { color: var(--xw-notice-tertiary); font-size: 10px; }
.xw-notice-row time { padding-top: 2px; }
.xw-notice-empty { min-height: 280px; padding: 28px; }
.xw-notice-empty span { color: var(--xw-notice-secondary); font-size: 11px; }
.xw-notice-empty button {
  min-height: 34px;
  margin-top: 8px;
  padding: 7px 13px;
  border: 1px solid var(--xw-notice-separator);
  border-radius: 9px;
  color: var(--xw-notice-accent);
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}
.xw-notice-detail { background: #fff; }
.xw-notice-detail-card { padding: 28px 34px 20px; }
.xw-notice-floating-close {
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #3a3a3c;
  background: #f2f2f4;
  font-size: 14px;
}
.xw-notice-floating-close:hover { border: 0; color: #111; background: #e7e7ea; transform: none; }
.xw-notice-detail-head { padding: 0 52px 22px 0; }
.xw-notice-detail-head > .xw-notice-detail-heading {
  display: block;
  min-width: 0;
}
.xw-notice-detail-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}
.xw-notice-detail-kind {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--xw-notice-secondary);
  background: #f0f0f2;
  font-size: 10px;
  font-weight: 560;
}
.xw-notice-detail-kind.is-task { color: #1769b0; background: rgba(40, 120, 208, .10); }
.xw-notice-detail-kind.is-collaboration { color: #1769b0; background: rgba(40, 120, 208, .10); }
.xw-notice-detail-kind.is-delivery { color: #17834b; background: rgba(23, 131, 75, .10); }
.xw-notice-detail-kind.is-system { color: var(--xw-notice-accent); background: var(--xw-notice-accent-soft); }
.xw-notice-detail-head h3 {
  margin: 0;
  overflow: visible;
  color: var(--xw-notice-text);
  font-size: 25px;
  font-weight: 620;
  line-height: 1.32;
  letter-spacing: -.022em;
  text-overflow: initial;
  white-space: normal;
}
.xw-notice-detail-head .xw-notice-detail-heading > p {
  margin: 8px 0 0;
  color: var(--xw-notice-secondary);
  font-size: 13px;
  line-height: 1.65;
}
.xw-notice-detail-meta {
  padding: 15px 10px;
  border: 0;
  border-radius: 15px;
  background: #f5f5f7;
  box-shadow: none;
}
.xw-notice-detail-meta > div { padding: 3px 15px; border-right: 1px solid var(--xw-notice-separator); }
.xw-notice-detail-meta > div > i { color: var(--xw-notice-tertiary); }
.xw-notice-detail-meta small { color: var(--xw-notice-tertiary); font-size: 10px; }
.xw-notice-detail-meta strong { color: var(--xw-notice-text); font-size: 12px; font-weight: 560; }
.xw-notice-timeline { padding: 24px 0 14px; }
.xw-notice-timeline > h4 { margin-bottom: 20px; color: var(--xw-notice-text); font-size: 13px; font-weight: 560; }
.xw-notice-timeline > div::before { background: rgba(40, 120, 208, .18); }
.xw-notice-timeline-row { gap: 14px; padding-bottom: 24px; }
.xw-notice-timeline-icon {
  border: 1px solid rgba(40, 120, 208, .20);
  color: #1769b0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(40, 120, 208, .10);
}
.xw-notice-timeline-row.is-green .xw-notice-timeline-icon {
  border-color: rgba(23, 131, 75, .20);
  color: #17834b;
  background: #fff;
}
.xw-notice-timeline-row header strong { color: var(--xw-notice-text); font-size: 13px; font-weight: 560; }
.xw-notice-timeline-row header span,
.xw-notice-timeline-row header time,
.xw-notice-timeline-row p { color: var(--xw-notice-secondary); }
.xw-notice-timeline-result { border: 0; border-radius: 13px; background: #f5f5f7; }
.xw-notice-timeline-result button { color: var(--xw-notice-accent); }
.xw-notice-timeline-result button:hover { color: #a73e16; background: var(--xw-notice-accent-soft); }
.xw-notice-detail-foot {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--xw-notice-separator);
}
.xw-notice-footer-state {
  min-width: 0;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: var(--xw-notice-secondary);
}
.xw-notice-footer-state i { flex: 0 0 auto; color: var(--xw-notice-tertiary); font-size: 13px; }
.xw-notice-footer-state span { color: var(--xw-notice-secondary); font-size: 11px; }
.xw-notice-detail-foot .xw-btn {
  min-width: 120px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--xw-notice-separator);
  border-radius: 11px;
  color: var(--xw-notice-text);
  background: #fff;
  box-shadow: none;
  font-weight: 560;
}
.xw-notice-detail-foot .xw-btn:hover { border-color: rgba(60, 60, 67, .25); background: #f7f7f8; }
.xw-notice-detail-foot .xw-btn.primary,
.xw-notice-detail-foot .xw-btn.primary:hover {
  color: #fff;
  border-color: var(--xw-notice-accent);
  background: var(--xw-notice-accent);
  box-shadow: none;
}
.xw-notice-tabs button:focus-visible,
.xw-notice-row:focus-visible,
.xw-notice-floating-close:focus-visible,
.xw-notice-detail-foot button:focus-visible,
.xw-notice-empty button:focus-visible {
  outline: 3px solid rgba(198, 74, 27, .24);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .xw-team-modal-host.is-notifications .xw-team-modal { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .xw-notice-workspace { display: block; }
  .xw-notice-master { grid-template-rows: auto auto minmax(0, 1fr); }
  .xw-notice-center-head { min-height: 96px; padding: 18px 16px 12px; }
  .xw-notice-center-head h2 { font-size: 22px; }
  .xw-notice-tabs { margin: 0 10px 10px; padding: 3px; }
  .xw-notice-tabs button { min-height: 40px; }
  .xw-notice-detail-card { padding: 18px 16px 20px; }
  .xw-notice-detail-head { padding-right: 42px; }
  .xw-notice-detail-head h3 { font-size: 20px; }
  .xw-notice-detail-foot { align-items: stretch; flex-direction: column; }
  .xw-notice-footer-state { min-height: 24px; }
}

@media (max-width: 520px) {
  .xw-notice-center-head > span { max-width: 108px; white-space: normal; text-align: center; }
  .xw-notice-tabs button { font-size: 11px; }
  .xw-notice-tabs button b { display: none; }
  .xw-notice-row { min-height: 82px; }
}

/* notification-daily-anchor-v2 · 2026-08-13 */
.xw-notice-row-copy strong {
  color: #3a3a3c;
  font-weight: 400;
}
.xw-notice-row.is-unread .xw-notice-row-copy strong {
  color: var(--xw-notice-text);
  font-weight: 650;
}
.xw-notice-cycle {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 24px 0 14px;
  scrollbar-width: thin;
}
.xw-notice-cycle > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.xw-notice-cycle > header h4 {
  margin: 0;
  color: var(--xw-notice-text);
  font-size: 14px;
  font-weight: 620;
}
.xw-notice-cycle > header strong {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--xw-notice-text);
  font-size: 14px;
  font-weight: 520;
}
.xw-notice-cycle > header strong b {
  color: #0868c9;
  font-size: 19px;
  font-weight: 650;
}
.xw-notice-cycle > header strong span { font-weight: 520; }
.xw-notice-cycle-body { position: relative; min-width: 620px; }
.xw-notice-cycle-track {
  position: relative;
  min-height: 70px;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: start;
}
.xw-notice-cycle-track::before,
.xw-notice-cycle-track::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(100% / 28);
  height: 1px;
  pointer-events: none;
}
.xw-notice-cycle-track::before {
  right: calc(100% / 28);
  background: #c8cbd2;
}
.xw-notice-cycle-track::after {
  width: calc(var(--xw-cycle-anchor) - (100% / 28));
  background: #0868c9;
}
.xw-notice-cycle-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 62px;
  display: grid;
  grid-template-rows: 30px auto;
  justify-items: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: var(--xw-notice-tertiary);
  background: transparent;
  font: inherit;
  cursor: default;
}
.xw-notice-cycle-node[data-xw-notice-period-id] { cursor: pointer; }
.xw-notice-cycle-node:disabled { opacity: 1; }
.xw-notice-cycle-node[data-xw-notice-period-id]:hover .xw-notice-cycle-mark { transform: scale(1.08); }
.xw-notice-cycle-node:focus-visible { outline: 0; }
.xw-notice-cycle-node:focus-visible .xw-notice-cycle-mark { box-shadow: 0 0 0 4px rgba(8, 104, 201, .18); }
.xw-notice-cycle-mark {
  display: grid;
  place-items: center;
  align-self: center;
  border: 1.5px solid #c8cbd2;
  border-radius: 50%;
  color: #fff;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease;
}
.xw-notice-cycle-node.is-done .xw-notice-cycle-mark {
  width: 22px;
  height: 22px;
  border-color: #0868c9;
  background: #0868c9;
  font-size: 9px;
}
.xw-notice-cycle-node.is-done .xw-notice-cycle-mark i { line-height: 1; }
.xw-notice-cycle-node.is-selected .xw-notice-cycle-mark {
  width: 25px;
  height: 25px;
  box-shadow: 0 0 0 7px rgba(8, 104, 201, .12);
}
.xw-notice-cycle-node.is-selected::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 50%;
  width: 1px;
  height: 50px;
  background: rgba(8, 104, 201, .24);
  pointer-events: none;
}
.xw-notice-cycle-node.is-today .xw-notice-cycle-mark {
  width: 20px;
  height: 20px;
  border: 2px solid #0868c9;
  background: #fff;
}
.xw-notice-cycle-node.is-pending .xw-notice-cycle-mark {
  width: 12px;
  height: 12px;
  border-color: #b9bec8;
}
.xw-notice-cycle-node.is-missed .xw-notice-cycle-mark {
  width: 16px;
  height: 16px;
  border-color: #d95b2a;
  background: #fff;
}
.xw-notice-cycle-node small {
  align-self: start;
  color: var(--xw-notice-secondary);
  font-size: 11px;
  font-weight: 460;
  line-height: 1.25;
  white-space: nowrap;
}
.xw-notice-cycle-node.is-today small { color: #0868c9; font-weight: 620; }
.xw-notice-cycle-detail {
  position: relative;
  margin-top: 8px;
  padding-top: 23px;
  border-top: 1px solid rgba(8, 104, 201, .24);
}
.xw-notice-cycle-detail::before {
  content: "";
  position: absolute;
  top: -5px;
  left: var(--xw-cycle-anchor);
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(8, 104, 201, .24);
  border-left: 1px solid rgba(8, 104, 201, .24);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}
.xw-notice-cycle-detail > h4 {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 15px;
  color: var(--xw-notice-text);
  font-size: 16px;
  font-weight: 620;
}
.xw-notice-cycle-detail > h4 time { color: #0868c9; font-weight: 650; }
.xw-notice-cycle-results { display: grid; gap: 8px; }
.xw-notice-cycle-result {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid #e1e2e6;
  border-radius: 13px;
  background: #fff;
}
.xw-notice-cycle-result-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #606a78;
  background: #f2f2f4;
  font-size: 13px;
}
.xw-notice-cycle-result > div { min-width: 0; display: grid; gap: 3px; }
.xw-notice-cycle-result strong {
  overflow: hidden;
  color: var(--xw-notice-text);
  font-size: 14px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xw-notice-cycle-result small {
  overflow: hidden;
  color: var(--xw-notice-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xw-notice-cycle-result-state {
  color: var(--xw-notice-secondary);
  font-size: 12px;
  white-space: nowrap;
}
.xw-notice-cycle-result button {
  min-height: 36px;
  padding: 7px 4px;
  border: 0;
  color: var(--xw-notice-accent);
  background: transparent;
  font-size: 12px;
  font-weight: 620;
  cursor: pointer;
  white-space: nowrap;
}
.xw-notice-cycle-result button:hover { color: #a73e16; text-decoration: underline; }
.xw-notice-cycle-result button:focus-visible { outline: 3px solid rgba(198, 74, 27, .24); outline-offset: 2px; }
.xw-notice-cycle-result-empty {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e1e2e6;
  border-radius: 13px;
  color: var(--xw-notice-secondary);
  font-size: 12px;
}

@media (max-width: 900px) {
  .xw-notice-cycle { flex: 0 0 auto; overflow: visible; }
  .xw-notice-cycle-body { min-width: 580px; }
}

@media (max-width: 680px) {
  .xw-notice-cycle { overflow-x: auto; overflow-y: visible; padding-bottom: 20px; }
  .xw-notice-cycle-result { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .xw-notice-cycle-result-state { grid-column: 2; font-size: 11px; }
  .xw-notice-cycle-result button { grid-column: 3; grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .xw-notice-cycle-mark { transition: none; }
}
