
.log-entry-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.log-line-no,
.log-tag,
.log-meta {
  color: #9fb4df;
  font-size: 11px;
}

.log-level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(159, 180, 223, 0.24);
  color: #b9c9ea;
  background: rgba(159, 180, 223, 0.1);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.log-level-info {
  border-color: rgba(143, 217, 255, 0.28);
  color: #a8dff8;
  background: rgba(72, 166, 214, 0.13);
}

.log-level-warning {
  border-color: rgba(250, 204, 21, 0.38);
  color: #fde68a;
  background: rgba(202, 138, 4, 0.2);
}

.log-level-error {
  border-color: rgba(248, 113, 113, 0.44);
  color: #fecaca;
  background: rgba(185, 28, 28, 0.24);
}

.log-level-debug {
  border-color: rgba(196, 181, 253, 0.34);
  color: #ddd6fe;
  background: rgba(109, 40, 217, 0.18);
}

.log-message-inline {
  color: #edf2ff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.log-message-block {
  color: #edf2ff;
  line-height: 1.75;
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.log-entry.auto-cleanup-log-entry {
  cursor: pointer;
  outline: none;
}

.log-entry.auto-cleanup-log-entry .log-entry-shell {
  border-radius: 10px;
  padding: 4px 6px;
  margin: -4px -6px;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.log-entry.auto-cleanup-log-entry:hover .log-entry-shell,
.log-entry.auto-cleanup-log-entry:focus-visible .log-entry-shell {
  background: rgba(219, 230, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(186, 208, 255, 0.16);
}

.auto-cleanup-inline-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.auto-cleanup-summary-label {
  color: #edf2ff;
  font-weight: 800;
}

.auto-cleanup-inline-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(159, 180, 223, 0.24);
  background: rgba(159, 180, 223, 0.1);
  color: #dbe6ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.auto-cleanup-inline-chip.is-success {
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(22, 163, 74, 0.18);
  color: #bbf7d0;
}

.auto-cleanup-inline-chip.is-error {
  border-color: rgba(248, 113, 113, 0.46);
  background: rgba(185, 28, 28, 0.24);
  color: #fecaca;
}

.auto-cleanup-inline-chip.is-muted {
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(14, 116, 144, 0.18);
  color: #bae6fd;
}

.log-entry-media-column {
  width: 56px;
  min-height: 44px;
  display: grid;
  place-items: center;
  align-self: stretch;
}

.log-entry.has-poster-media .log-entry-shell {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
}

.log-entry.has-poster-media .log-entry-media-column {
  width: 64px;
  min-height: 78px;
  align-self: start;
  place-items: start center;
}

.log-entry:not(.has-client-icon):not(.has-poster-media) .log-entry-shell {
  grid-template-columns: minmax(0, 1fr);
}

.log-entry-poster-media {
  width: 48px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(186, 208, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(117, 152, 255, 0.08) 100%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 12px 26px rgba(8, 20, 52, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.log-entry-poster-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.log-tag.probe {
  color: #78d9c7;
  font-weight: 700;
}

.log-tag.subscription-transfer {
  color: #8fd9ff;
  font-weight: 700;
}

.log-entry-detail {
  display: grid;
  gap: 4px;
  margin-left: 68px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(219, 230, 255, 0.08);
}

.log-entry-detail-label {
  color: #9fb4df;
  font-size: 11px;
}

.log-entry-detail-text {
  color: #edf2ff;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.log-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.log-toolbar-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 16px;
}

.log-toolbar-side {
  min-width: 240px;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.detail-sections {
  display: grid;
  gap: 16px;
}

.sync-op-help-list,
.sync-op-help-notes {
  display: grid;
  gap: 12px;
}

.sync-op-help-item,
.sync-op-help-note {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e8edf5;
  background: #ffffff;
}

.sync-op-help-item {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
}

.sync-op-help-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf4ff;
  color: #0b63ce;
  font-size: 13px;
  font-weight: 700;
}

.sync-op-help-copy {
  display: grid;
  gap: 4px;
}

.sync-op-help-copy strong {
  font-size: 14px;
  color: var(--semi-color-text-0);
}

.sync-op-help-copy p,
.sync-op-help-note {
  margin: 0;
  color: var(--semi-color-text-1);
  line-height: 1.7;
}

.disclaimer-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.disclaimer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: none;
  transform: none;
  transition: none;
}

.disclaimer-backdrop:hover {
  background: rgba(15, 23, 42, 0.56);
  box-shadow: none;
  transform: none;
}

.disclaimer-card {
  position: relative;
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(206, 216, 231, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 253, 0.98) 100%);
  box-shadow:
    0 34px 84px rgba(15, 23, 42, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.42);
}

.disclaimer-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(220, 228, 239, 0.92);
  background:
    radial-gradient(circle at top right, rgba(0, 100, 250, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.disclaimer-head h2 {
  margin: 0;
  color: var(--semi-color-text-0);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.disclaimer-head .workspace-copy {
  color: var(--semi-color-text-1);
}

.disclaimer-body {
  overflow: auto;
  padding: 22px 24px;
  display: grid;
  gap: 14px;
  line-height: 1.8;
  color: var(--semi-color-text-0);
  background: rgba(248, 250, 252, 0.92);
}

.disclaimer-body p {
  margin: 0;
}

.disclaimer-footer-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 100, 250, 0.08);
  color: #154596;
  font-size: 13px;
  font-weight: 600;
}

.disclaimer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(220, 228, 239, 0.92);
  background: #fff;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  contain: layout style paint;
}

body.auto-cleanup-log-modal-open {
  overflow: hidden;
}

.auto-cleanup-log-modal {
  z-index: 1900;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-color: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.46);
  box-shadow: none;
  transform: none;
  transition: none;
}

.detail-modal-backdrop:hover {
  border-color: transparent;
  background: rgba(15, 23, 42, 0.46);
  box-shadow: none;
  transform: none;
}

.detail-modal-card {
  position: relative;
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 20px;
  border: 1px solid var(--semi-color-border);
  background: #fff;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  contain: layout paint;
  backface-visibility: hidden;
}

.sync-root-details-modal {
  z-index: 48;
}

.sync-root-details-modal .detail-modal-card {
  width: min(720px, calc(100vw - 48px));
  max-height: min(82vh, calc(100vh - 48px));
}

.sync-root-details-modal .detail-modal-body {
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.sync-root-details-modal .detail-sections {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.sync-root-details-modal .card-section {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.confirm-modal {
  z-index: 52;
}

.confirm-modal .detail-modal-card {
  width: min(620px, calc(100vw - 48px));
  max-height: min(78vh, calc(100vh - 48px));
}

.confirm-modal .detail-modal-head {
  position: relative;
  display: block;
  padding-right: 76px;
}

.confirm-modal .detail-modal-actions {
  position: absolute;
  top: 18px;
  right: 20px;
  justify-content: flex-end;
}

.detail-modal-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 18px 20px;
  padding-right: 76px;
  border-bottom: 1px solid var(--semi-color-border);
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.detail-modal-actions {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-modal-title {
  display: grid;
  gap: 6px;
}

.detail-modal-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.detail-modal-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding: 20px;
  background: #f8fafc;
  contain: layout paint;
  backface-visibility: hidden;
}

body.modal-open .dock,
body.modal-open .mobile-dock-bar-shell,
body.modal-open .mobile-dock-drawer {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sync-root-details-list {
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sync-root-details-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sync-root-detail-item {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e7edf5;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sync-root-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sync-root-detail-order {
  font-size: 12px;
  font-weight: 600;
  color: var(--semi-color-text-2);
}

.sync-root-detail-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sync-root-detail-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sync-root-detail-meta-label {
  font-size: 12px;
  color: var(--semi-color-text-2);
}

.sync-root-detail-meta-value {
  font-size: 13px;
  color: var(--semi-color-text-0);
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sync-root-detail-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sync-root-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--semi-color-border);
  background: #fff;
}

.auto-cleanup-log-modal .detail-modal-card {
  width: min(860px, calc(100vw - 48px));
  max-height: min(86vh, calc(100vh - 48px));
  border-radius: 18px;
}

.auto-cleanup-log-modal .detail-modal-head {
  align-items: center;
  padding-right: 20px;
}

.auto-cleanup-log-modal .detail-modal-actions {
  position: static;
  margin-left: auto;
}

.auto-cleanup-log-modal .detail-modal-actions .auto-cleanup-inline-chip {
  border-color: #dbe3ee;
  background: #fff;
  color: #334155;
}

.auto-cleanup-log-modal .detail-modal-actions .auto-cleanup-inline-chip.is-success {
  border-color: rgba(34, 197, 94, 0.42);
  background: #ecfdf3;
  color: #15803d;
}

.auto-cleanup-log-modal .detail-modal-actions .auto-cleanup-inline-chip.is-error {
  border-color: rgba(248, 113, 113, 0.44);
  background: #fef2f2;
  color: #b91c1c;
}

.auto-cleanup-log-modal .detail-modal-actions .auto-cleanup-inline-chip.is-muted {
  border-color: rgba(14, 165, 233, 0.34);
  background: #eff6ff;
  color: #0369a1;
}

.auto-cleanup-log-modal .detail-modal-body {
  overflow: hidden;
}

.auto-cleanup-detail-body {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.auto-cleanup-detail-overview {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--semi-color-text-2);
  font-size: 12px;
  font-weight: 700;
}

.auto-cleanup-detail-overview span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #e4eaf3;
  background: #fff;
}

.auto-cleanup-detail-section {
  min-height: 0;
}

.auto-cleanup-detail-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.auto-cleanup-detail-divider::before,
.auto-cleanup-detail-divider::after {
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.58));
  content: "";
}

.auto-cleanup-detail-divider::after {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.58), rgba(148, 163, 184, 0));
}

.auto-cleanup-detail-divider span {
  flex: 0 0 auto;
  padding: 3px 10px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.auto-cleanup-detail-divider.is-success {
  color: #15803d;
}

.auto-cleanup-detail-divider.is-success span {
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(180deg, #f7fff9 0%, #ecfdf3 100%);
}

.auto-cleanup-detail-divider.is-error {
  color: #b91c1c;
}

.auto-cleanup-detail-divider.is-error span {
  border-color: rgba(248, 113, 113, 0.34);
  background: linear-gradient(180deg, #fff8f8 0%, #fef2f2 100%);
}

.auto-cleanup-account-list {
  display: grid;
  gap: 8px;
  max-height: min(34vh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.auto-cleanup-account-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.auto-cleanup-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6edf5;
  border-left-width: 4px;
  background: #fff;
}

.auto-cleanup-account-row.is-success {
  border-left-color: #22c55e;
}

.auto-cleanup-account-row.is-error {
  border-left-color: #ef4444;
}

.auto-cleanup-account-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.auto-cleanup-account-main strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.auto-cleanup-account-main span {
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.auto-cleanup-row-status {
  flex: 0 0 auto;
  max-width: min(260px, 42vw);
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.auto-cleanup-account-row.is-success .auto-cleanup-row-status {
  background: #ecfdf3;
  color: #15803d;
}

.auto-cleanup-account-row.is-error .auto-cleanup-row-status {
  background: #fef2f2;
  color: #b91c1c;
}

.auto-cleanup-empty-detail {
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
}

.modal-close-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.dock-wrap {
  position: relative;
  top: 0;
  align-self: stretch;
}

.dock {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 20px;
  border: 1px solid var(--dock-shell-border);
  background: var(--dock-shell-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--dock-shell-shadow);
  padding: 16px 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
}

.dock > * {
  position: relative;
  z-index: 1;
}

.dock::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(135deg, rgba(0, 100, 250, 0.03), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.dock::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(0, 100, 250, 0.08), transparent 72%);
  filter: blur(22px);
  opacity: 0.82;
  pointer-events: none;
  z-index: 0;
}

.dock-ambient {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.dock-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.56;
}

.dock-ambient-glow-top {
  width: 148px;
  height: 148px;
  top: -34px;
  right: -26px;
  background: radial-gradient(circle, rgba(255, 107, 136, 0.22) 0%, rgba(255, 107, 136, 0.08) 38%, transparent 72%);
}

.dock-ambient-glow-bottom {
  width: 132px;
  height: 132px;
  bottom: 112px;
  left: -48px;
  background: radial-gradient(circle, rgba(242, 197, 123, 0.18) 0%, rgba(242, 197, 123, 0.06) 42%, transparent 72%);
}

.dock-ambient-streak {
  position: absolute;
  left: 20px;
  top: 92px;
  bottom: 86px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 145, 163, 0) 0%, rgba(255, 145, 163, 0.88) 18%, rgba(133, 17, 45, 0.86) 86%, rgba(133, 17, 45, 0) 100%);
  box-shadow: 0 0 18px rgba(217, 58, 88, 0.2);
  opacity: 0.9;
}

.dock-ambient-streak::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 14px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px 999px 85% 85%;
  background: linear-gradient(180deg, rgba(255, 118, 145, 0.88) 0%, rgba(121, 14, 38, 0.92) 100%);
  box-shadow: 0 10px 18px rgba(121, 14, 38, 0.26);
}

.dock-head {
  display: grid;
  gap: 4px;
  padding: 0 6px 10px;
  border-bottom: 1px solid var(--dock-divider);
}

.dock-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dock-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.dock-role-crown {
  position: absolute;
  top: -6px;
  left: calc(var(--dock-brand-size) - 19px);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #9a5b00;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 251, 232, 0.98) 0%, rgba(255, 234, 163, 0.95) 42%, rgba(250, 204, 21, 0.92) 100%);
  border: 1px solid rgba(214, 158, 46, 0.52);
  box-shadow:
    0 6px 14px rgba(214, 158, 46, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.9);
  transform: rotate(22deg);
  transform-origin: 50% 70%;
  z-index: 2;
  transition:
    left 220ms cubic-bezier(0.22, 1, 0.36, 1),
    top 220ms cubic-bezier(0.22, 1, 0.36, 1),
    width 220ms cubic-bezier(0.22, 1, 0.36, 1),
    height 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shell.role-admin .dock-role-crown {
  display: inline-flex;
}

.dock-role-crown svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-brand-mark {
  width: var(--dock-brand-size);
  height: var(--dock-brand-size);
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: var(--dock-brand-size);
  border-radius: 16px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #05070d;
  border: 1px solid rgba(190, 23, 52, 0.22);
  box-shadow: 0 12px 24px rgba(10, 12, 18, 0.18);
  transition:
    width 220ms cubic-bezier(0.22, 1, 0.36, 1),
    height 220ms cubic-bezier(0.22, 1, 0.36, 1),
    flex-basis 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shell.license-valid .dock-brand-mark {
  border-color: rgba(245, 190, 78, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 242, 184, 0.78),
    0 0 14px rgba(245, 190, 78, 0.58),
    0 0 28px rgba(245, 190, 78, 0.22);
}

.dock-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dock-head-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dock-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--semi-color-text-2);
}

.dock-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--dock-text-primary);
}

.dock-nav {
  min-height: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  align-items: start;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 2px;
}

.dock-section-label {
  display: grid;
  grid-template-columns: minmax(10px, 1fr) auto minmax(10px, 1fr);
  align-items: center;
  gap: 8px;
  margin: 2px 6px -2px;
  color: var(--dock-text-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
}

.dock-section-label::before,
.dock-section-label::after {
  content: "";
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(208, 218, 235, 0), var(--dock-divider));
}

.dock-section-label::after {
  background: linear-gradient(90deg, var(--dock-divider), rgba(208, 218, 235, 0));
}

.dock-section-label span {
  white-space: nowrap;
}

.dock-section-label + .dock-group {
  margin-top: -4px;
}

.dock-foot {
  display: grid;
  gap: 10px;
  align-content: end;
  padding: 12px 6px 0;
  border-top: 1px solid var(--dock-divider);
}

.dock-system-info {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(115, 134, 178, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 247, 255, 0.92) 100%);
  color: #335c9b;
  box-shadow: 0 10px 24px rgba(104, 124, 165, 0.08);
}

.dock-system-info:hover {
  border-color: rgba(72, 103, 170, 0.28);
  color: #244b86;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 245, 255, 0.96) 100%);
}

.dock-system-info.update {
  border-color: rgba(22, 163, 74, 0.22);
  color: #18884b;
  background: linear-gradient(180deg, rgba(242, 252, 246, 0.98) 0%, rgba(235, 249, 241, 0.94) 100%);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.1);
}

.dock-system-info-icon,
.dock-system-info-update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dock-system-info-icon {
  width: 18px;
  height: 18px;
}

.dock-system-info-update {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #16a34a;
}

.dock-system-info-label {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #21304d;
}

.dock-system-info.update .dock-system-info-label {
  color: #166534;
}

.dock-system-info svg,
.system-info-upgrade-icon svg,
.system-info-upgrade-inline svg,
.system-info-wiki-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-info-modal .detail-modal-card {
  width: min(440px, calc(100vw - 32px));
  max-height: min(78vh, calc(100vh - 32px));
}

.system-info-panel {
  display: grid;
  gap: 12px;
}

.system-info-list {
  display: grid;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.system-info-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 13px 15px;
}

.system-info-row + .system-info-row {
  border-top: 1px solid #eef2f7;
}

.system-info-label {
  font-size: 12px;
  font-weight: 700;
  color: #6d7d9d;
}

.system-info-value {
  min-width: 0;
  color: #21304d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.system-info-version-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.system-info-upgrade-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #16a34a;
}

.system-info-upgrade,
.system-info-wiki-link,
.system-info-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
}

.system-info-upgrade {
  border: 1px solid rgba(22, 163, 74, 0.2);
  background: rgba(236, 253, 245, 0.86);
  color: #166534;
  font-weight: 700;
}

.system-info-upgrade-icon,
.system-info-wiki-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.system-info-wiki-link {
  justify-content: flex-end;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #335c9b;
  font-weight: 700;
  text-decoration: none;
}

.system-info-wiki-link:hover {
  color: #244b86;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.system-info-wiki-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.system-info-note {
  margin: 0;
  background: rgba(248, 250, 252, 0.96);
  color: #6d7d9d;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .system-info-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

.dock-logout {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(245, 63, 63, 0.18);
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.96) 0%, rgba(255, 242, 242, 0.92) 100%);
  color: #d1242f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  box-shadow: 0 10px 22px rgba(245, 63, 63, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dock-logout:hover {
  background: linear-gradient(180deg, rgba(255, 242, 242, 0.98) 0%, rgba(255, 233, 233, 0.94) 100%);
  border-color: rgba(245, 63, 63, 0.28);
  box-shadow: 0 12px 24px rgba(245, 63, 63, 0.1);
}

.dock-logout:focus-visible {
  outline: 2px solid rgba(0, 100, 250, 0.22);
  outline-offset: 2px;
}

.dock-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dock-logout-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dock-logout-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-group {
  display: grid;
  gap: 8px;
  align-content: start;
  align-items: start;
}

.dock-group::before {
  display: none;
}

.dock-group-head {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 6px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.dock-group-head:hover {
  background: rgba(237, 245, 255, 0.72);
  box-shadow: none;
  transform: none;
}

.dock-group-head:focus-visible {
  outline: 2px solid rgba(0, 100, 250, 0.22);
  outline-offset: 2px;
}

.dock-group-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--semi-color-text-1);
  background: var(--semi-color-bg-2);
  border: 1px solid var(--semi-color-border);
}

.dock-group.active .dock-group-icon {
  color: var(--semi-color-primary);
  background: #edf5ff;
  border-color: #cfe3ff;
}

.dock-group-caret {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dock-text-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(208, 218, 235, 0.72);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dock-group-caret svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-group.active .dock-group-caret,
.dock-group-head:hover .dock-group-caret {
  color: var(--semi-color-primary);
  border-color: #cfe3ff;
  background: #ffffff;
}

.dock-group.collapsed .dock-group-caret {
  transform: rotate(-90deg);
}

.dock-group-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dock-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dock-text-primary);
}

.dock-group-note {
  font-size: 12px;
  color: #73829a;
  font-weight: 500;
}

.dock-group-items {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  align-items: start;
  padding-left: 16px;
}

.dock-group.collapsed .dock-group-items {
  display: none;
}

.dock-group-items::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, #dfe5ee 0%, #eef2f7 100%);
}

.dock-subitem {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  min-height: 56px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 254, 0.9) 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  color: var(--semi-color-text-1);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(29, 33, 41, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.dock-subitem::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: #dfe5ee;
  transform: translateY(-50%);
}

.dock-subitem::after {
  display: none;
}

.dock-subitem-glow {
  display: none;
}

.dock-subitem-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--semi-color-bg-2);
  border: 1px solid var(--semi-color-border);
  box-shadow: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.dock-subitem:hover {
  border-color: #d7e4ff;
  background: #f8fbff;
  box-shadow: 0 12px 22px rgba(0, 100, 250, 0.08);
}

.dock-subitem.active {
  border-color: #cfe3ff;
  background: #edf5ff;
  color: var(--semi-color-primary);
  box-shadow: var(--dock-active-shadow);
}

.dock-subitem.active::before {
  background: #91b8ff;
}

.dock-subitem-icon svg,
.dock-group-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.dock-subitem-copy {
  min-width: 0;
  display: grid;
  gap: 0;
}

.dock-subitem-text-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dock-subitem-text {
  font-size: 15px;
  font-weight: 700;
  color: currentColor;
}

.dock-subitem-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #d7e4ff;
  background: #f7fbff;
  color: #2a62d5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dock-subitem.active .dock-subitem-icon {
  color: var(--semi-color-primary);
  background: #ffffff;
  border-color: #cfe3ff;
  box-shadow: 0 8px 16px rgba(0, 100, 250, 0.08);
}

.dock-subitem.active .dock-subitem-tag {
  border-color: #b9d6ff;
  background: #ffffff;
  color: #2a62d5;
}

.mobile-dock {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: none;
  pointer-events: none;
}

.mobile-dock-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mobile-dock.drawer-open .mobile-dock-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-dock-bar {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  width: min(calc(100vw - 24px), var(--mobile-dock-max-width));
  transform: translateX(-50%);
  pointer-events: auto;
}

.mobile-dock-bar:has(> .mobile-dock-bar-shell > .mobile-dock-tab:nth-child(2):last-child) {
  width: min(calc(100vw - 24px), 232px);
}

.mobile-dock-bar-shell {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--mobile-dock-columns, 4), minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--mobile-dock-border);
  background: var(--mobile-dock-bg);
  box-shadow: var(--mobile-dock-shadow);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  overflow: hidden;
}

.mobile-dock.drawer-open .mobile-dock-bar-shell {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mobile-dock-bar-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  border: 1px solid var(--mobile-dock-highlight);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 48%, transparent 100%);
  pointer-events: none;
}

.mobile-dock-bar-shell::after {
  display: none;
}

.mobile-dock-tab,
.mobile-dock-drawer-close,
.mobile-menu-primary,
.mobile-menu-item,
.mobile-menu-logout {
  outline: none;
}

.mobile-dock-tab:focus-visible,
.mobile-dock-drawer-close:focus-visible,
.mobile-menu-primary:focus-visible,
.mobile-menu-item:focus-visible,
.mobile-menu-logout:focus-visible {
  outline: 2px solid rgba(173, 202, 255, 0.84);
  outline-offset: 2px;
}

.mobile-dock-tab {
  position: relative;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 6px 4px 5px;
  color: var(--mobile-dock-text);
  box-shadow: none;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mobile-dock-tab:hover {
  transform: translateY(-1px);
  color: var(--mobile-dock-text-strong);
  background: rgba(255, 255, 255, 0.26);
}

.mobile-dock-tab.active {
  color: var(--mobile-dock-accent);
  background: rgba(219, 232, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 1px 0 rgba(255, 255, 255, 0.16);
}

.mobile-dock-tab-icon,
.mobile-menu-primary-icon,
.mobile-menu-group-icon,
.mobile-menu-item-icon,
.mobile-menu-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-dock-tab-icon {
  width: 24px;
  height: 24px;
}

.mobile-dock-tab-icon svg,
.mobile-menu-primary-icon svg,
.mobile-menu-group-icon svg,
.mobile-menu-item-icon svg,
.mobile-menu-logout-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-dock-tab-icon svg {
  stroke-width: 1.85;
}

.dock-icon-more svg {
  stroke: none;
  fill: currentColor;
}

.mobile-dock-tab-more .dock-icon-more svg {
  transform: rotate(90deg) scale(0.88);
  transform-origin: center;
}

.mobile-dock-tab-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.mobile-dock-drawer {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
  width: min(calc(100vw - 16px), calc(var(--mobile-dock-max-width) + 34px));
  max-height: min(74vh, 720px);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border-radius: 30px;
  border: 1px solid var(--mobile-dock-border);
  background: var(--mobile-dock-bg-strong);
  box-shadow: var(--mobile-dock-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform-origin: bottom center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  overflow: hidden;
  transition: transform 220ms ease, opacity 220ms ease;
}

.mobile-dock.drawer-open .mobile-dock-drawer {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-dock-drawer::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 22%, transparent 46%),
    radial-gradient(circle at top right, rgba(160, 188, 255, 0.12), transparent 30%);
  pointer-events: none;
}

.mobile-dock-drawer-handle {
  width: 42px;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.mobile-dock-drawer-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-dock-drawer-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mobile-dock-drawer-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mobile-dock-muted);
}

.mobile-dock-drawer-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--mobile-dock-text-strong);
}
