/* Shared workspace frame. The channel preview renders inside #view with its own channel styles. */
.dk-surface {
  --workspace-accent: #755396;
  --workspace-tint: #f0eaf7;
  --dk-text: #242439;
  --dk-muted: #625e74;
  --dk-line: #dedde9;
  --dk-violet: #694590;
  --dk-bar-height: 58px;
  min-height: 100vh;
  color: var(--dk-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: radial-gradient(ellipse at 73% 0%, #e9e6f5 0, transparent 38rem), #f4f3f9;
}
.dk-tone-trend { --workspace-accent: #945822; --workspace-tint: #fff0dc; }
.dk-tone-plan { --workspace-accent: #216d68; --workspace-tint: #e4f4ee; }
.dk-tone-write { --workspace-accent: #695189; --workspace-tint: #eee9f5; }
.dk-tone-design { --workspace-accent: #98466b; --workspace-tint: #fbe7ef; }
.dk-tone-release { --workspace-accent: #347449; --workspace-tint: #e6f3e9; }
.dk-tone-data { --workspace-accent: #465e9b; --workspace-tint: #e8edf9; }
.dk-tone-owner { --workspace-accent: #856218; --workspace-tint: #faf1d5; }

.dk-top {
  position: sticky;
  z-index: 8;
  top: 0;
  min-height: var(--dk-bar-height);
  background: #fbfaff;
  border-bottom: 1px solid #dcdbe9;
}
.dk-top-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.8vw, 52px);
  min-height: var(--dk-bar-height);
  padding: 0 clamp(14px, 2.2vw, 38px);
}
.dk-brand, .dk-directory-toggle, .dk-hot, .dk-action, .dk-queue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 4px 8px;
  background: transparent;
  color: #363248;
}
.dk-brand {
  flex: none;
  padding: 0;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 790;
  letter-spacing: -.035em;
}
.dk-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: white;
  border: 1px solid #dedbe9;
  box-shadow: 0 2px 5px #37314913;
}
.dk-brand-mark svg {display: block; width: 32px; height: 32px}
.dk-directory-toggle {display: none}
.dk-hot {
  flex: 0 1 auto;
  max-width: min(49vw, 630px);
  gap: 8px;
  border: 1px solid #e5e2ec;
  border-radius: 24px;
  padding: 4px 12px;
  min-height: 29px;
  background: white;
  color: #625b73;
  font-size: 13px;
}
.dk-hot i {width: 6px; height: 6px; flex: none; background: #b16a25; border-radius: 50%}
.dk-hot span {flex: none}
.dk-hot b {overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 530; color: #393448}
.dk-arrow {margin-left: auto; color: #797489; font-size: 14px; flex: none}
.dk-hot:hover {border-color: #ac98c2}
.dk-person {margin-left: auto; flex: none; position: relative}
.dk-person summary, .dk-activity summary {display: flex; align-items: center; list-style: none; cursor: pointer}
.dk-person summary::-webkit-details-marker, .dk-activity summary::-webkit-details-marker {display: none}
.dk-person summary {gap: 8px; padding: 4px 0; font-size: 14px}
.dk-person summary strong {overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 9em}
.dk-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #fff;
  background: #42334f;
  font-size: 14px;
  font-weight: 690;
}
.dk-caret {width: 7px; height: 7px; border-bottom: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg)}
.dk-person[open] summary .dk-caret, .dk-activity[open] summary .dk-caret {transform: rotate(225deg)}
.dk-account {
  display: grid;
  gap: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 155px;
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--dk-line);
  background: white;
  box-shadow: 0 10px 30px #34305020;
}
.dk-account small {color: var(--dk-muted)}
.dk-account button {margin-top: 3px; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--dk-line); background: #f7f5fa}

.dk-layout {display: grid; grid-template-columns: clamp(167px, 14.2vw, 236px) minmax(0, 1fr); align-items: start}
.dk-sidebar {
  position: sticky;
  top: var(--dk-bar-height);
  height: calc(100vh - var(--dk-bar-height));
  height: calc(100dvh - var(--dk-bar-height));
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cdc9d9 transparent;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #faf9fd, #f7f6fb);
  border-right: 1px solid #dfdce9;
}
.dk-sidebar nav {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 18px clamp(8px, 1.05vw, 18px) 28px;
}
.dk-sidebar .nav-group {
  display: block;
  margin: 15px 8px 3px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .055em;
  color: #676075;
  font-weight: 650;
}
.dk-sidebar .nav-group:first-child {margin-top: 0}
.dk-sidebar .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  min-height: 35px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 5px 11px;
  color: #514d64;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}
.dk-sidebar .nav-item svg {display: block; flex: none; width: 17px; height: 17px}
.dk-sidebar .module-nav-icon {display: grid; place-items: center; flex: none; width: 25px; height: 25px}
.dk-sidebar .module-nav-icon svg {width: 25px; height: 25px; fill: initial; stroke: none}
.dk-sidebar .nav-item:hover {color: #593a78; background: #efebf5}
.dk-sidebar .nav-item[aria-current="page"] {
  background: var(--workspace-tint);
  color: var(--workspace-accent);
  border-color: var(--workspace-accent);
  border-color: color-mix(in srgb, var(--workspace-accent) 25%, white);
  font-weight: 760;
}
.dk-main {width: 100%; max-width: 1800px; min-width: 0; margin: 0 auto; padding: 0 clamp(14px, 2.1vw, 42px) 48px}
.dk-main:focus:not(:focus-visible) {outline: none}
.dk-main > #view {min-width: 0}
.dk-module-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px 22px;
  padding: clamp(18px, 2vw, 33px) 0;
}
.dk-heading-main {display: flex; align-items: center; gap: clamp(12px, 1.45vw, 23px); min-width: 0}
.dk-heading-main > div:last-child {min-width: 0}
.dk-assignment {color: var(--workspace-accent); font-size: 12px; line-height: 1.5; font-weight: 690; margin-bottom: 3px}
.dk-companion {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(56px, 5.1vw, 82px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #dcd9e7;
  border-radius: 28%;
  background: linear-gradient(150deg, white 30%, var(--workspace-tint));
  box-shadow: inset 0 2px 4px white, 0 4px 14px #35324712;
  transform: rotate(-3deg);
}
.dk-companion svg {width: 84%; height: 84%}
.dk-module-heading h1 {color: #252334; font-size: clamp(29px, 2.6vw, 46px); line-height: 1.18; letter-spacing: -.048em; font-weight: 815; margin: 0}
.dk-module-heading p {color: var(--dk-muted); font-size: 14px; line-height: 1.55; margin: 6px 0 0}
.dk-heading-actions {display: flex; align-items: center; gap: 8px; flex-wrap: wrap}
.dk-action {font-size: 14px; font-weight: 650; padding: 5px 12px; background: white; border: 1px solid #d8d4e3}
.dk-action svg {width: 25px; height: 25px}
.dk-action:hover {background: #faf8fd; border-color: #ae9cbc}
.dk-action.dk-primary {color: white; border-color: #604279; background: #604279}
.dk-action.dk-primary:hover {background: #503065}
.dk-operations {display: grid; gap: 10px; margin-bottom: 15px; min-width: 0}
.dk-pulse {display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 18px; border: 1px solid var(--dk-line); border-radius: 12px; padding: 5px 15px; background: #ffffffdf}
.dk-activity {min-width: 0; flex: 1 1 225px}
.dk-activity[open] {flex-basis: 100%}
.dk-activity summary {gap: 10px; min-height: 34px; color: #4f4461; font-size: 14px; font-weight: 660}
.dk-activity-body {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 12px 0; border-top: 1px solid var(--dk-line)}
.dk-queues {display: flex; align-items: center; gap: 8px; flex-wrap: wrap}
.dk-queue {min-height: 32px; font-size: 13px; color: #514a63}
.dk-queue b {font-size: 15px; color: #554174; font-variant-numeric: tabular-nums}
.dk-queue:hover {background: #f0edf7}
.dk-card-title {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px}
.dk-card-title h2 {font-size: 16px; line-height: 1.5}
.dk-switch {display: inline-flex; gap: 2px; padding: 2px; background: #f0eef5; border-radius: 7px}
.dk-switch button {border: 0; border-radius: 5px; padding: 3px 7px; font-size: 12px; color: var(--dk-muted); background: transparent}
.dk-switch button[aria-pressed="true"] {background: white; color: #514065; box-shadow: 0 1px 3px #423f4d26}
.dk-log-list, .dk-draft-list {margin: 4px 0 0; padding: 0; list-style: none}
.dk-log-list button, .dk-draft-list button {display: flex; align-items: center; text-align: left; gap: 10px; width: 100%; border: 0; background: transparent; padding: 6px 0}
.dk-log-list li + li, .dk-draft-list li + li {border-top: 1px dashed var(--dk-line)}
.dk-log-list strong, .dk-draft-list strong {color: #393245; font-size: 14px}
.dk-log-list small, .dk-draft-list small {display: block; color: var(--dk-muted); font-size: 12px}
.dk-log-list time {flex: none; color: var(--dk-muted); font-size: 12px}
.dk-log-list button > span:first-of-type, .dk-draft-list button > span:first-of-type {min-width: 0}
.dk-log-list strong, .dk-draft-list strong, .dk-log-list small, .dk-draft-list small {display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis}
.dk-empty {padding: 12px 0; color: var(--dk-muted); font-size: 14px}

@media (max-width: 880px) {
  .dk-surface {--dk-bar-height: 54px}
  .dk-top-inner {gap: 13px}
  .dk-layout {display: block}
  .dk-directory-toggle {display: inline-flex; gap: 5px; padding: 4px 9px; border: 1px solid #dedbe7; background: white; font-size: 14px}
  .dk-directory-toggle[aria-expanded="true"] {background: #eae5f2; color: #4f3767}
  .dk-sidebar {display: none}
  .dk-directory-open .dk-sidebar {
    display: block; position: fixed; z-index: 7; inset: var(--dk-bar-height) auto auto 0;
    width: min(420px, 100%); height: auto; max-height: calc(100dvh - var(--dk-bar-height));
    background: #fbfaff; border-radius: 0 0 15px 0; border: 1px solid var(--dk-line); border-top: 0;
    box-shadow: 0 10px 26px #29213930;
  }
  .dk-sidebar nav {grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px 18px; gap: 3px 8px}
  .dk-sidebar .nav-group {grid-column: 1 / -1; margin-top: 7px}
  .dk-sidebar .nav-item {min-height: 40px}
  .dk-main {padding-inline: clamp(14px, 3.1vw, 26px)}
}
@media (max-width: 600px) {
  .dk-top-inner {gap: 9px}
  .dk-hot, .dk-person summary strong {display: none}
  .dk-brand {font-size: 15px; gap: 5px}
  .dk-brand-mark {width: 29px; height: 29px; border-radius: 9px}
  .dk-brand-mark svg {width: 25px; height: 25px}
  .dk-module-heading {gap: 10px; padding: 17px 0}
  .dk-module-heading h1 {font-size: 27px}
  .dk-companion {width: 49px}
  .dk-module-heading p {font-size: 13px; margin-top: 3px}
  .dk-heading-actions {gap: 6px}
  .dk-heading-actions .dk-action {min-height: 34px; padding: 4px 9px; font-size: 13px}
  .dk-activity-body {grid-template-columns: 1fr}
  .dk-pulse {padding: 4px 10px; gap: 2px 8px}
  .dk-activity {flex-basis: 175px}
  .dk-brand:focus-visible, .dk-directory-toggle:focus-visible {outline-offset: 1px}
}
