
.tg-poster-card-meta {
  color: var(--semi-color-text-1);
  font-size: 13px;
  font-weight: 600;
}

.tg-subscribed-card-body .tg-poster-card-meta {
  min-height: 1.4em;
}

.tg-subscribed-grid .tg-poster-card-meta,
.tg-completed-card .tg-poster-card-meta,
.tg-task-editor-copy span {
  color: var(--semi-color-text-1);
}

.tg-subscribed-card-status-row,
.tg-subscribed-card-resource-row {
  gap: 5px;
}

.tg-subscribed-card-status-row .status-pill,
.tg-subscribed-card-resource-row .status-pill {
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.tg-subscribed-card-status-row {
  min-height: 24px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
}

.tg-subscribed-card-status-bar > .tg-match-detail-shell,
.tg-subscribed-card-overlay-actions > .tg-match-detail-shell {
  position: relative;
}

.tg-match-detail-shell.is-open {
  z-index: 12;
}

.tg-subscribed-card-resource-row .status-pill {
  max-width: 100%;
  min-height: auto;
  padding: 8px 12px;
  line-height: 1.55;
  white-space: normal;
  align-items: flex-start;
  text-align: left;
}

.tg-match-detail-shell {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.tg-match-detail-trigger {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #bfd7ff;
  background: linear-gradient(180deg, #fafdff 0%, #edf5ff 100%);
  color: #0b63ce;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tg-match-detail-trigger:hover {
  color: #084ea5;
  border-color: #9cc4ff;
  background: linear-gradient(180deg, #f5faff 0%, #e3efff 100%);
}

.tg-match-detail-trigger-label-short {
  display: none;
}

.tg-inline-icon-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0b63ce;
  flex: 0 0 26px;
  transform: none;
  appearance: none;
  -webkit-appearance: none;
  transition: color 160ms ease;
}

.tg-inline-icon-trigger.is-good {
  color: #16934f;
}

.tg-inline-icon-trigger.is-warn {
  color: #b06a00;
}

.tg-inline-icon-trigger.is-bad {
  color: #cf1322;
}

.tg-inline-icon-trigger:hover {
  color: #084ea5;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.tg-inline-icon-trigger.is-good:hover {
  color: #117642;
}

.tg-inline-icon-trigger.is-warn:hover {
  color: #8e5500;
}

.tg-inline-icon-trigger.is-bad:hover {
  color: #a8071a;
}

.tg-inline-icon-trigger-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
}

.tg-inline-icon-trigger-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-inline-detail-popover {
  left: 0;
  right: auto;
  transform-origin: top left;
  width: fit-content;
  min-width: 0;
  max-width: min(260px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 14px;
}

.tg-inline-detail-popover::before {
  left: 7px;
  right: auto;
}

.tg-match-detail-popover {
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 8;
  width: min(320px, calc(100vw - 32px));
  max-width: calc(100% - 2px);
  max-height: none;
  overflow: visible;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(206, 222, 248, 0.96);
  background:
    radial-gradient(circle at 80% 0, rgba(180, 211, 255, 0.24) 0%, rgba(180, 211, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(28, 52, 84, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
}

.tg-match-detail-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--tg-popover-arrow-x, 24px);
  right: auto;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(206, 222, 248, 0.96);
  border-left: 1px solid rgba(206, 222, 248, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.98) 100%);
  transform: rotate(45deg);
}

.tg-match-detail-popover[data-placement="left"]::before {
  top: var(--tg-popover-arrow-y, 24px);
  left: auto;
  right: -7px;
  transform: translateY(-50%) rotate(135deg);
}

.tg-match-detail-popover[data-placement="right"]::before {
  top: var(--tg-popover-arrow-y, 24px);
  left: -7px;
  right: auto;
  transform: translateY(-50%) rotate(-45deg);
}

.tg-match-detail-popover[data-placement="top"]::before {
  top: auto;
  bottom: -7px;
  left: var(--tg-popover-arrow-x, 24px);
  right: auto;
  transform: rotate(225deg);
}

.tg-match-detail-popover[data-placement="bottom"]::before {
  top: -7px;
  bottom: auto;
  left: var(--tg-popover-arrow-x, 24px);
  right: auto;
  transform: rotate(45deg);
}

.tg-match-detail-shell.is-open .tg-match-detail-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tg-match-detail-popover strong {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--semi-color-text-2);
}

.tg-match-detail-popover p {
  margin: 0;
  color: var(--semi-color-text-0);
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tg-match-detail-list {
  display: grid;
  gap: 8px;
}

.tg-match-detail-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.tg-match-detail-label {
  color: var(--semi-color-text-2);
  font-size: 12px;
  line-height: 1.5;
}

.tg-match-detail-value {
  color: var(--semi-color-text-0);
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tg-subscribed-card-info {
  display: grid;
  gap: 6px;
  color: var(--semi-color-text-1);
  font-size: 13px;
}

.tg-subscribed-card-info > span {
  display: grid;
  gap: 2px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tg-subscribed-card-completed .tg-subscribed-card-info > span {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.tg-card-info-label {
  margin: 0;
  color: var(--semi-color-text-2);
  font-style: normal;
  font-weight: 700;
}

.tg-subscribed-card-completed .tg-card-info-label {
  white-space: nowrap;
}

.tg-card-info-value {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 3.1em;
}

.tg-poster-card-body p,
.tg-subscribed-card-body p {
  margin: 0;
  color: var(--semi-color-text-1);
  font-size: 12px;
  line-height: 1.6;
  min-height: 3.2em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tg-poster-card-overview {
  display: block !important;
  height: 4.8em;
  min-height: 4.8em !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
  overflow-wrap: anywhere;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-line-clamp: unset !important;
}

.tg-poster-card-overview::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.tg-subscribed-grid .tg-subscribed-card-body p {
  color: var(--semi-color-text-1);
}

.tg-subscribed-card-completed .tg-subscribed-card-body {
  gap: 8px;
}

.tg-subscribed-card-completed .tg-subscribed-card-body p {
  min-height: 6.4em;
  -webkit-line-clamp: 4;
}

.tg-poster-card-actions,
.tg-subscribed-card-actions,
.tg-completed-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tg-poster-card-actions > button,
.tg-subscribed-card-actions > button,
.tg-completed-card-actions > button {
  flex: 1 1 auto;
}

.tg-subscribed-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
}

.tg-subscribed-card-actions > button {
  flex: none;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 6px;
  border-radius: 12px;
  font-size: clamp(11px, 0.86vw, 13px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-subscribed-card-actions-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-poster-card-actions > button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 14px;
}

.tg-poster-action-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tg-poster-action-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.tg-poster-action-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tg-completed-list {
  display: grid;
  gap: 16px;
}

.tg-completed-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid #e7edf6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.tg-completed-card-media {
  width: 100%;
}

.tg-completed-card-body {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.tg-completed-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tg-completed-card-info {
  display: grid;
  gap: 8px;
  color: var(--semi-color-text-1);
  line-height: 1.65;
}

.tg-task-editor-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tg-task-editor-poster {
  max-width: 132px;
}

.tg-task-editor-copy {
  display: grid;
  gap: 8px;
}

.tg-task-editor-copy strong {
  font-size: 22px;
  line-height: 1.25;
}

.emby-users-table-shell {
  gap: 16px;
}

.emby-users-table-head,
.emby-user-table-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.05fr)
    minmax(94px, 0.5fr)
    minmax(170px, 1.05fr)
    minmax(148px, 0.9fr)
    minmax(64px, 0.45fr)
    minmax(102px, 0.6fr)
    minmax(220px, auto);
  gap: 14px;
  align-items: center;
}

.emby-users-table-head {
  padding: 0 24px;
  color: #8f9aaa;
  font-size: 13px;
  font-weight: 700;
}

.emby-users-table-head > span {
  justify-self: center;
  text-align: center;
}

.emby-users-table-body {
  display: grid;
  gap: 12px;
}

.emby-user-table-row {
  min-width: 0;
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid #edf0f5;
  background: #fff;
}

.emby-user-table-row.is-concurrent {
  border-color: #ffd6d1;
  background: #fffafa;
}

.emby-user-table-row.is-disabled {
  border-color: #f1d6d6;
  background: #fffafa;
}

.emby-user-table-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.emby-user-table-primary {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.emby-user-table-primary strong,
.emby-target-binding-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--semi-color-text-0);
}

.emby-user-table-primary span,
.emby-target-binding-main span,
.emby-target-binding-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--semi-color-text-2);
  font-size: 12px;
}

.emby-target-account-trigger {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 9px 12px;
  border: 1px solid #cfe2ff;
  background: #f5f9ff;
  color: var(--semi-color-primary);
}

.emby-target-account-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emby-target-account-trigger:hover {
  border-color: #9ac0ff;
  background: #edf5ff;
}

.emby-user-table-time,
.emby-user-table-count {
  color: var(--semi-color-text-0);
  font-weight: 600;
}

.emby-user-table-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emby-user-table-actions {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.emby-user-table-actions button {
  min-width: 68px;
}

@media (min-width: 901px) and (max-width: 1500px) {
  .emby-users-table-head,
  .emby-user-table-row {
    grid-template-columns:
      minmax(108px, 0.85fr)
      minmax(76px, 0.45fr)
      minmax(120px, 0.88fr)
      minmax(118px, 0.78fr)
      minmax(44px, 0.34fr)
      minmax(78px, 0.44fr)
      minmax(154px, auto);
    gap: 10px;
  }

  .emby-users-table-head {
    padding: 0 16px;
    font-size: 12px;
  }

  .emby-user-table-row {
    padding: 12px 16px;
  }

  .emby-target-account-trigger {
    padding: 8px 10px;
  }

  .emby-user-table-actions {
    gap: 6px;
  }

  .emby-user-table-actions button {
    min-width: 0;
    padding: 0 10px;
  }
}

.emby-user-state-pills {
  justify-content: flex-start;
}

.emby-target-binding-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.emby-target-binding-stack {
  grid-template-columns: 1fr;
}

.emby-target-binding-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: rgba(249, 251, 254, 0.82);
}

.emby-target-binding-group-head,
.emby-target-binding-row,
.emby-target-binding-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emby-target-binding-group-head {
  justify-content: space-between;
  min-height: 34px;
}

.emby-target-binding-group-body {
  display: grid;
  gap: 10px;
}

.emby-target-binding-row {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #edf0f5;
}

.emby-target-binding-main {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.emby-target-binding-pills {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.emby-target-binding-meta {
  width: 100%;
  justify-content: flex-start;
}

.emby-target-account-modal-body {
  display: grid;
  gap: 14px;
}

.detail-modal-card:has(.emby-target-account-modal-body) {
  width: min(720px, calc(100vw - 48px));
  max-height: min(82vh, calc(100vh - 48px));
}

.emby-target-account-list-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: rgba(249, 251, 254, 0.82);
}

.emby-target-account-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fff;
}

.emby-target-account-list-main {
  flex: 1 1 180px;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.emby-target-account-list-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--semi-color-text-0);
}

.emby-target-account-list-pills {
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
}

.emby-target-tg-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.96);
  color: #2563eb;
  cursor: default;
}

.emby-target-auto-qr-icon {
  border-color: rgba(20, 184, 166, 0.32);
  background: rgba(240, 253, 250, 0.96);
  color: #0f766e;
}

.emby-target-tg-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emby-target-tg-icon:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.emby-target-tg-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483000;
  display: grid;
  width: max-content;
  max-width: min(260px, calc(100vw - 48px));
  gap: 1px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(38, 99, 255, 0.16);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.98);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.13);
  color: #35507a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  word-break: break-word;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.emby-target-tg-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: var(--emby-target-tooltip-arrow-left, 14px);
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(38, 99, 255, 0.16);
  border-bottom: 1px solid rgba(38, 99, 255, 0.16);
  background: rgba(248, 251, 255, 0.98);
  transform: rotate(45deg);
}

.emby-target-tg-tooltip.is-below::after {
  top: -5px;
  bottom: auto;
  border-top: 1px solid rgba(38, 99, 255, 0.16);
  border-left: 1px solid rgba(38, 99, 255, 0.16);
  border-right: 0;
  border-bottom: 0;
}

.emby-target-tg-tooltip-line {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emby-target-tg-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.emby-target-empty {
  padding: 14px;
}

@media (max-width: 640px) {
  .detail-modal-card:has(.emby-target-account-modal-body) {
    width: calc(100vw - 24px);
    max-height: calc(100vh - var(--mobile-dock-modal-clearance, 0px) - 24px);
  }

  .emby-target-tg-tooltip {
    max-width: min(230px, calc(100vw - 32px));
  }
}

.sync-item-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: auto;
  min-width: 0;
  overflow: visible;
}

.cookie-pool-list {
  display: grid;
  gap: 16px;
}

.cookie-pool-list[hidden] {
  display: none !important;
}

.cookie-pool-tabs {
  flex: 0 0 auto;
}

.cookie-pool-card.is-over-limit {
  border-color: #ffd6d1;
  box-shadow: inset 0 0 0 1px rgba(207, 19, 34, 0.06);
}

.cookie-pool-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cookie-pool-title-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cookie-pool-title-copy .panel-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-pool-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cookie-pool-title-line h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-pool-check-mark {
  flex: 0 0 24px;
}

.cookie-pool-check-button {
  flex: 0 0 auto;
}

.cookie-pool-avatar {
  width: 42px;
  height: 42px;
}

.cookie-pool-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.cookie-pool-chart-wrap,
.cookie-pool-alert-box {
  min-width: 0;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: rgba(249, 251, 254, 0.95);
  padding: 14px;
}

.cookie-pool-alert-box {
  display: grid;
  gap: 12px;
}

.cookie-pool-chart {
  display: block;
  width: 100%;
  height: 140px;
}

.cookie-pool-chart-area {
  fill: rgba(37, 99, 235, 0.08);
  stroke: none;
}

.cookie-pool-chart-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-pool-chart-label {
  fill: #607087;
  font-size: 12px;
}

.cookie-pool-chart-label-end {
  text-anchor: end;
}

.cookie-pool-chart-empty {
  min-height: 112px;
}

.cookie-pool-province-usage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.cookie-pool-province-line-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: rgba(249, 251, 254, 0.95);
}

.cookie-pool-province-line-chart {
  display: block;
  width: 100%;
  height: 240px;
}

.cookie-pool-province-chart-grid-line {
  stroke: #e5edf7;
  stroke-width: 1;
}

.cookie-pool-province-line-total,
.cookie-pool-province-line-series {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-pool-province-line-total {
  stroke: #111827;
  stroke-width: 3.2;
}

.cookie-pool-province-line-series {
  stroke-width: 2;
  opacity: 0.86;
}

.cookie-pool-province-usage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-pool-province-usage-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #edf0f5;
  border-radius: 999px;
  background: #fff;
  color: var(--semi-color-text-1);
  font-size: 12px;
  font-weight: 700;
}

.cookie-pool-province-usage-legend-item i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}

.cookie-pool-province-usage-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  height: clamp(320px, 58vh, 580px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cookie-pool-province-usage-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cookie-pool-province-usage-row {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: rgba(249, 251, 254, 0.95);
}

.cookie-pool-province-usage-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.cookie-pool-province-usage-copy strong,
.cookie-pool-province-usage-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-pool-province-usage-copy span {
  color: var(--semi-color-text-2);
  font-size: 12px;
}

.cookie-pool-province-usage-meta {
  min-width: 0;
  overflow: hidden;
  color: var(--semi-color-text-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-pool-account-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.cookie-pool-account-usage-row {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fff;
}

.cookie-pool-account-usage-row strong,
.cookie-pool-account-usage-row span,
.cookie-pool-account-usage-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-pool-account-usage-row span {
  color: var(--semi-color-text-0);
  font-size: 13px;
  font-weight: 700;
}

.cookie-pool-account-usage-row small {
  color: var(--semi-color-text-2);
  font-size: 12px;
}

.cookie-pool-tab-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.view-mount[data-view="cookiePool"].cookie-pool-stats-active {
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
}

.cookie-pool-window-tabs {
  flex: 0 0 auto;
}

.cookie-pool-stats-dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: stretch;
  min-height: 0;
  height: 100%;
}

.cookie-pool-stats-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.cookie-pool-stats-empty {
  min-height: 280px;
  height: 100%;
}

.cookie-pool-region-pie-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 0;
  height: 100%;
}

.cookie-pool-region-pie-chart {
  display: block;
  width: 100%;
  max-width: min(320px, 46vh);
  aspect-ratio: 1;
}

.cookie-pool-region-pie-track,
.cookie-pool-region-pie-segment {
  fill: none;
  stroke-width: 34;
}

.cookie-pool-region-pie-track {
  stroke: #edf0f5;
}

.cookie-pool-region-pie-segment {
  stroke-dasharray: var(--pie-length) var(--pie-gap);
  stroke-dashoffset: var(--pie-offset);
  animation: cookie-pool-region-pie-sweep 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--pie-delay, 0ms);
  cursor: pointer;
  transition: stroke-width 160ms ease, filter 160ms ease;
}

.cookie-pool-region-pie-segment:hover {
  filter: brightness(1.06);
  stroke-width: 38;
}

@keyframes cookie-pool-region-pie-sweep {
  from {
    stroke-dasharray: 0 var(--pie-circumference);
  }
  to {
    stroke-dasharray: var(--pie-length) var(--pie-gap);
  }
}

.cookie-pool-region-pie-total {
  fill: var(--semi-color-text-0);
  font-size: 30px;
  font-weight: 800;
  text-anchor: middle;
}

.cookie-pool-region-pie-caption {
  fill: var(--semi-color-text-2);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
}

.cookie-pool-region-pie-legend {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.cookie-pool-region-pie-legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: rgba(249, 251, 254, 0.95);
}

.cookie-pool-region-pie-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.cookie-pool-region-pie-legend-item strong,
.cookie-pool-region-pie-legend-item span,
.cookie-pool-region-pie-legend-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-pool-region-pie-legend-item span {
  color: var(--semi-color-text-0);
  font-size: 13px;
  font-weight: 800;
}

.cookie-pool-region-pie-legend-item small {
  color: var(--semi-color-text-2);
  font-size: 12px;
  font-weight: 700;
}

.cookie-pool-account-line-card {
  min-height: 0;
}

.cookie-pool-account-line-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.cookie-pool-account-line-chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.cookie-pool-account-line-hit,
.cookie-pool-account-line-series {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-pool-account-line-hit {
  stroke-width: 16;
  opacity: 0;
  pointer-events: stroke;
  cursor: pointer;
}

.cookie-pool-account-line-series {
  stroke-width: 3.2;
  pointer-events: stroke;
  transition: stroke-width 160ms ease, filter 160ms ease;
}

.cookie-pool-account-line-hit:hover + .cookie-pool-account-line-series,
.cookie-pool-account-line-series:hover {
  filter: brightness(1.08);
  stroke-width: 4.4;
}

.cookie-pool-account-line-point {
  fill: transparent;
  stroke: var(--point-color);
  stroke-width: 0;
  cursor: pointer;
  pointer-events: all;
}

.cookie-pool-account-line-point:hover {
  fill: var(--point-color);
  fill-opacity: 0.18;
  stroke-width: 2;
}

.cookie-pool-chart-axis-label {
  fill: #8a96a8;
  font-size: 14px;
  font-weight: 700;
  text-anchor: end;
}

.cookie-pool-account-line-chart .cookie-pool-chart-label {
  font-size: 14px;
  font-weight: 700;
}

.cookie-pool-account-line-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-pool-region-pie-segment {
    animation: none;
  }
}

@media (max-width: 1536px) {
  .view-mount[data-view="cookiePool"].cookie-pool-stats-active {
    grid-template-rows: none;
    align-content: start;
    min-height: 0;
  }

  .cookie-pool-stats-dashboard,
  .cookie-pool-province-usage-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-height: 0;
    height: auto;
  }

  .cookie-pool-stats-card {
    display: block;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .cookie-pool-region-pie-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    margin-top: 16px;
    min-height: 0;
    height: auto;
  }

  .cookie-pool-region-pie-chart {
    flex: 0 0 240px;
    align-self: center;
    width: 240px;
    height: 240px;
    max-width: 100%;
  }

  .cookie-pool-region-pie-legend {
    max-height: none;
    overflow: visible;
  }

  .cookie-pool-account-line-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    min-height: 0;
    height: auto;
  }

  .cookie-pool-account-line-chart {
    flex: 0 0 300px;
    height: 300px;
    min-height: 0;
  }

  .cookie-pool-province-line-chart {
    height: 210px;
  }

  .cookie-pool-province-usage-grid {
    height: clamp(260px, 48vh, 360px);
  }
}

@media (max-width: 1200px) {
  .view-mount[data-view="cookiePool"].cookie-pool-stats-active {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding-bottom: calc(var(--mobile-dock-modal-clearance, 124px) + 32px);
    scroll-padding-bottom: calc(var(--mobile-dock-modal-clearance, 124px) + 32px);
  }

  .view-mount[data-view="cookiePool"].cookie-pool-stats-active .page-toolbar,
  .view-mount[data-view="cookiePool"].cookie-pool-stats-active [data-cookie-pool-stats-dashboard] {
    flex: 0 0 auto;
  }

  .cookie-pool-region-pie-chart {
    flex-basis: 220px;
    width: 220px;
    height: 220px;
  }

  .cookie-pool-account-line-chart {
    flex-basis: 260px;
    height: 260px;
  }

  .cookie-pool-province-line-chart {
    height: 210px;
  }
}

.cookie-pool-user-list {
  display: grid;
  gap: 10px;
}

.cookie-pool-user-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, auto) minmax(160px, 0.75fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fff;
}

.cookie-pool-user-item > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cookie-pool-user-item strong,
.cookie-pool-user-item span,
.cookie-pool-user-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-pool-user-item span,
.cookie-pool-user-time {
  color: var(--semi-color-text-2);
  font-size: 12px;
}

.library-action-shell {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: auto;
  min-width: 0;
  overflow: visible;
}

.library-action-shell.is-open {
  z-index: 24;
}

.library-action-trigger {
  min-width: 96px;
  min-height: 42px;
  padding: 0 10px 0 14px;
  gap: 8px;
  border-radius: 999px;
  border-color: rgba(255, 189, 152, 0.96);
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.98) 0%, rgba(255, 240, 231, 0.98) 100%);
  color: var(--rose-spa-primary-strong);
  box-shadow: 0 8px 22px rgba(255, 136, 72, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.library-action-trigger:hover {
  color: #a84712;
  border-color: var(--rose-spa-border-strong);
  background: linear-gradient(180deg, #fffaf6 0%, #fff0e7 100%);
}

.library-action-trigger[aria-expanded="true"] {
  color: #a84712;
  border-color: var(--rose-spa-border-strong);
  background: linear-gradient(180deg, #fffaf6 0%, #fff0e7 100%);
  box-shadow: 0 10px 24px rgba(255, 136, 72, 0.14);
}

.library-action-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 235, 224, 0.98);
  color: currentColor;
}

.library-action-trigger-icon svg {
  display: block;
  width: 12px;
  height: 12px;
}

.library-action-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(720px, calc(100vw - 24px));
  padding: 12px 12px 14px;
  border-radius: 26px 26px 20px 20px;
  border: 1px solid rgba(255, 218, 201, 0.96);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 211, 191, 0.28) 0%, rgba(255, 211, 191, 0) 58%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.98) 0%, rgba(255, 247, 241, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(113, 70, 42, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
}

.library-action-popover::before {
  content: "";
  position: absolute;
  inset: 8px 12px auto;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(255, 136, 72, 0.14) 0%, rgba(255, 136, 72, 0) 72%);
  pointer-events: none;
}

.library-action-popover::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(255, 218, 201, 0.96);
  border-bottom: 1px solid rgba(255, 218, 201, 0.96);
  border-radius: 0 0 8px 0;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.98) 0%, rgba(255, 247, 241, 0.98) 100%);
  transform: rotate(45deg);
}

.library-action-shell.is-open .library-action-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: library-action-popover-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.library-action-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.library-action-btn {
  width: auto;
  min-width: 88px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

.library-action-btn-wide {
  min-height: 44px;
}

.list-shell-shares .list-head,
.list-shell-shares .list-item {
  grid-template-columns: fit-content(192px) minmax(0, 1fr) auto;
}

.list-shell-shares .list-metrics {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.share-category-card {
  align-items: start;
}

.share-item-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
  width: auto;
  min-width: 0;
}

.share-item-actions > button {
  flex: 0 0 auto;
  width: auto;
  min-width: 52px;
}

.share-link-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.share-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e3f6;
  background: #f5f8fe;
  color: #2f476b;
  font-size: 12px;
  font-weight: 600;
}

.share-link-chip-note {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #5f7089;
  font-weight: 500;
}

.share-link-chip-muted {
  border-style: dashed;
  background: #fbfcff;
  color: #5f7089;
}

.share-tree-shell {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e7edf8;
}

.share-tree-source-head,
.share-link-editor-row,
.share-link-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.share-tree-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}

.share-link-editor-shell {
  display: grid;
  gap: 12px;
}

.share-link-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.share-tree-toolbar-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
}

.share-tree-track-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.share-tree-track-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-tree-track-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.share-tree-track-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-tree-track-legend .share-tree-track-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.share-tree-track-legend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #36517d;
  font-weight: 700;
}

.share-tree-track-legend-note {
  min-width: 180px;
}

.share-tree-search-input {
  width: min(360px, 100%);
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d8e2f2;
  background: #fff;
}

.share-link-search-input {
  width: min(360px, 100%);
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d8e2f2;
  background: #fff;
}

.share-link-summary-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e8edf6;
  background: #fbfcff;
}

.share-link-summary-head {
  display: grid;
  gap: 4px;
}

.share-link-summary-head strong {
  font-size: 14px;
  color: var(--semi-color-text-0);
}

.share-link-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- 多 source tab 布局 --- */
.share-tree-tabs-wrap {
  display: grid;
  gap: 0;
}

.share-tree-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 16px 0;
  border-bottom: 1.5px solid #e6ecf7;
  background: #f4f7ff;
  border-radius: 16px 16px 0 0;
  overflow-x: auto;
}

.share-tree-tab {
  display: block;
  flex-shrink: 0;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 8px 8px 0 0;
  border: 1.5px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #6b7a9e;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.share-tree-tab:hover {
  background: #e8eeff;
  color: #3c6cf0;
}

.share-tree-tab.is-active {
  background: #fff;
  color: #3c6cf0;
  border-color: #e6ecf7;
  border-bottom-color: #fff;
  position: relative;
  bottom: -1.5px;
  z-index: 1;
  font-weight: 600;
}

.share-tree-tab-panel {
  border: 1.5px solid #e6ecf7;
  border-top: none;
  border-radius: 0 0 16px 16px;
  background: #fbfcff;
  padding: 14px 16px;
  min-height: 60px;
}

.share-tree-tab-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.share-tree-source {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e6ecf7;
  background: #fbfcff;
}


.share-tree-source-head {
  align-items: flex-start;
}

.share-tree-source-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.share-tree-list[data-depth="1"],
.share-tree-list[data-depth="2"],
.share-tree-list[data-depth="3"],
.share-tree-list[data-depth="4"] {
  margin-left: 18px;
  padding-left: 14px;
  border-left: 1px dashed #d4ddec;
}

.share-tree-node {
  display: grid;
  gap: 8px;
}

.share-tree-node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #edf2fa;
}

.share-tree-node-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-tree-node-tail {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-tree-node-toggle {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d6e1f2;
  background: #fff;
  color: #36517d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.share-tree-node-toggle.is-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  background: #f5f7fb;
  color: #7887a0;
}

.share-tree-node-toggle:disabled {
  cursor: default;
  opacity: 0.72;
}

.share-tree-track-btn {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  line-height: 1;
}

.share-tree-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  font-size: 17px;
  line-height: 1;
}

.share-tree-node-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--semi-color-text-0);
}

.share-tree-node-meta {
  color: var(--semi-color-text-2);
  font-size: 12px;
}

.share-tree-node.is-match .share-tree-node-row {
  border-color: #bfd6ff;
  background: #f7fbff;
}

.share-tree-empty {
  padding: 20px 18px;
}

.share-link-editor {
  display: grid;
  gap: 12px;
}

.share-link-editor-row {
  flex-wrap: nowrap;
  align-items: center;
}

.share-link-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #d7e3f6;
  background: #f4f8ff;
  color: #1f4a8f;
  font-size: 12px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.share-link-id-badge.is-empty {
  border-style: dashed;
  background: #fafbfd;
  color: #6c7b91;
}

.share-link-input-group {
  flex: 1 1 320px;
  min-width: 0;
}

.share-link-input-group-url {
  flex: 1 1 320px;
}

.share-link-input-group-note {
  flex: 0 0 220px;
}

.share-link-input-group input {
  width: 100%;
}

.share-link-editor-actions {
  justify-content: flex-start;
}

.plugin-hub {
  display: grid;
  gap: 14px;
}

.plugin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.plugin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d8e4f8;
  background: #fff;
  color: var(--semi-color-text-1);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.plugin-tab.active {
  border-color: rgba(61, 108, 246, 0.28);
  background: linear-gradient(180deg, rgba(239, 245, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
  color: #3154c9;
  box-shadow: 0 14px 26px rgba(61, 108, 246, 0.12);
}

.plugin-tab:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.system-plugin-migrate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.system-plugin-migrate-copy p {
  margin: 0;
}

.system-plugin-migrate-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.system-plugin-migrate {
  border: 1px solid rgba(207, 223, 248, 0.92);
  background:
    radial-gradient(circle at top right, rgba(53, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
}

.system-plugin-migrate-copy {
  display: grid;
  gap: 6px;
}

.system-plugin-migrate-copy strong {
  color: var(--semi-color-text-0);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.compat-plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 268px));
  justify-content: start;
  gap: 12px;
}

.compat-plugin-grid-adaptive {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  justify-content: stretch;
  align-items: stretch;
}

.compat-plugin-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 198px;
  border-radius: 20px;
  border: 1px solid rgba(214, 226, 245, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.compat-plugin-card::after {
  content: "";
  position: absolute;
  inset: auto -72px -82px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 100, 241, 0.12) 0%, rgba(58, 100, 241, 0.04) 58%, transparent 76%);
  pointer-events: none;
}

.compat-plugin-card-hero {
  position: relative;
  display: grid;
  gap: 0;
  padding: 14px 14px 10px;
  color: #fff;
  background: linear-gradient(135deg, #203b8a 0%, #4264d2 100%);
}

.compat-plugin-card-onestrm .compat-plugin-card-hero {
  background: linear-gradient(135deg, #12556a 0%, #1f8d98 100%);
}

.compat-plugin-card-symedia .compat-plugin-card-hero {
  background: linear-gradient(135deg, #1b5a46 0%, #2b8f6f 100%);
}

.compat-plugin-card.is-enabled .compat-plugin-card-hero {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.compat-plugin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.compat-plugin-card-panel {
  display: block;
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.compat-plugin-card-panel:hover {
  transform: none;
  box-shadow: none;
}
