
.tech-loader-progress::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  filter: blur(0.2px);
  animation: tech-loader-progress-scan 1.6s ease-in-out infinite;
}

.tech-loader-progress-bar {
  display: none;
}

@keyframes tech-overlay-drift-center {
  0%,
  100% {
    transform: translate3d(-50%, 0, 0) scale(0.96);
  }
  50% {
    transform: translate3d(-50%, -12px, 0) scale(1.04);
  }
}

@keyframes tech-overlay-drift-corner {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.94);
  }
  50% {
    transform: translate3d(-12px, -10px, 0) scale(1.05);
  }
}

@keyframes tech-loader-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes tech-loader-breathe {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.96;
    transform: scale(1.03);
  }
}

@keyframes tech-loader-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

@keyframes tech-loader-petal-glow {
  0%,
  100% {
    opacity: 0.74;
    filter: brightness(0.92);
  }
  50% {
    opacity: 1;
    filter: brightness(1.12);
  }
}

@keyframes tech-loader-progress-flow {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 130% 0;
  }
}

@keyframes tech-loader-progress-scan {
  0% {
    transform: translateX(-40px);
    opacity: 0;
  }
  18% {
    opacity: 0.8;
  }
  82% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(144px);
    opacity: 0;
  }
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--semi-color-border);
  background: #fff;
  color: var(--semi-color-text-0);
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button-with-icon {
  gap: 7px;
}

.button-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
}

.button-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button:hover {
  border-color: var(--semi-color-border-strong);
  background: #fcfcfd;
  box-shadow: var(--semi-shadow-soft);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.button-accent {
  background: var(--semi-color-primary);
  color: #fff;
  border-color: var(--semi-color-primary);
}

.button-accent:hover {
  background: var(--semi-color-primary-hover);
  border-color: var(--semi-color-primary-hover);
}

.button-ember {
  color: #c35a1e;
  border-color: #f0b089;
  background: linear-gradient(180deg, #fff5ee 0%, #ffede3 100%);
}

.button-ember:hover {
  color: #a84712;
  border-color: #e28a57;
  background: linear-gradient(180deg, #fff0e7 0%, #ffe4d5 100%);
}

.button-sky {
  color: #0b63ce;
  border-color: #b8d8ff;
  background: #eef6ff;
}

.button-sky:hover {
  color: #084ea5;
  border-color: #92c3ff;
  background: #dfedff;
}

.button-success {
  color: #137333;
  border-color: #b7ebc1;
  background: #edf9f0;
}

.button-success:hover {
  color: #0e5f29;
  border-color: #8fd6a0;
  background: #def5e4;
}

.button-cyan {
  color: #0b7285;
  border-color: #9edfea;
  background: linear-gradient(180deg, #eefcfe 0%, #def7fb 100%);
}

.button-cyan:hover {
  color: #085b6a;
  border-color: #72cdda;
  background: linear-gradient(180deg, #e4fbfe 0%, #d0f3f9 100%);
}

.button-danger {
  color: var(--semi-color-danger);
  border-color: #ffccc7;
  background: #fff2f0;
}

.button-danger:hover {
  color: #cf1322;
  border-color: #ffaca3;
  background: #ffe7e3;
}

.button-warm {
  color: #ad6800;
  border-color: #ffe7ba;
  background: #fff7e8;
}

.button-warm:hover {
  color: #8b5200;
  border-color: #ffd18a;
  background: #fff1d7;
}

.button-ghost {
  background: var(--semi-color-bg-2);
}

.button-compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}

input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--semi-color-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--semi-color-text-0);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--semi-color-primary);
  flex: 0 0 auto;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #91b8ff;
  box-shadow: 0 0 0 3px rgba(0, 100, 250, 0.12);
}

.shell {
  max-width: 1600px;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  transition: grid-template-columns 180ms ease;
  overflow: hidden;
}

.shell.sidebar-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.dock-wrap,
.workspace {
  min-height: 0;
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.view-mount {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow: auto;
  overscroll-behavior-y: none;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  padding-right: 6px;
}

.view-mount[data-view="logs"] {
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
  padding-right: 0;
}

.workspace-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 4px 4px;
  border-top: 1px solid rgba(118, 133, 156, 0.14);
  background: transparent;
  box-shadow: none;
}

.workspace-footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.workspace-footer-year {
  font-size: 12px;
  font-weight: 500;
  color: var(--semi-color-text-1);
}

.workspace-footer-brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8f3046;
}

.footer-link-button {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #5a6577;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
  min-height: auto;
}

.footer-link-button:hover {
  color: var(--semi-color-primary);
  text-decoration: underline;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.workspace-header,
.notice,
.panel,
.config-card,
.user-card,
.summary-card,
.log-summary {
  background: var(--semi-color-bg-1);
  border: 1px solid var(--semi-color-border);
  border-radius: var(--semi-radius);
  box-shadow: var(--semi-shadow-card);
}

.workspace-header {
  padding: 14px 18px;
  display: grid;
  gap: 10px;
}

.workspace-header-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 40px;
}

.workspace-header-main {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.workspace-title {
  display: grid;
  gap: 1px;
}

.workspace-title-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--semi-color-primary);
  background: #e8f3ff;
  border: 1px solid #cfe3ff;
}

.workspace-title h1 {
  margin: 0;
  color: var(--rose-workspace-title-color);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.workspace-copy,
.panel-copy,
.field-hint,
.eyebrow {
  margin: 0;
  color: var(--semi-color-text-1);
}

.workspace-title .workspace-copy {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 2px;
}

.panel-copy,
.field-hint {
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.field-resolve-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.field-resolve-note.is-error {
  color: #b91c1c;
}

.field-resolve-text {
  min-width: 0;
  color: var(--semi-color-text-0);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-error-link {
  border: 0;
  padding: 0;
  margin: 0;
  min-height: auto;
  background: transparent;
  box-shadow: none;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-error-link:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  color: #912018;
  text-decoration: underline;
}

.field-error-link.is-expanded {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

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

.workspace-actions,
.toolbar-inline,
.soft-pills,
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.workspace-back-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  color: var(--semi-color-primary);
  background: var(--semi-color-bg-2);
  border-color: #d6e5ff;
}

.workspace-back-button:hover:not(:disabled) {
  color: var(--semi-color-primary-hover);
  border-color: #bfd8ff;
  background: #edf5ff;
}

.workspace-back-button:disabled {
  color: var(--semi-color-text-2);
  background: var(--semi-color-bg-2);
}

.workspace-back-button-icon,
.workspace-back-button svg {
  width: 18px;
  height: 18px;
}

.workspace-back-button svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-head-button {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 0;
  border: 1px solid #d9e7fb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 255, 0.94) 100%);
  box-shadow:
    0 10px 24px rgba(0, 100, 250, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: #245fd8;
  overflow: hidden;
}

.dock-head-button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), transparent 58%),
    linear-gradient(135deg, rgba(0, 100, 250, 0.16), rgba(0, 100, 250, 0.02));
  opacity: 0.92;
  transition: opacity 180ms ease, transform 180ms ease;
}

.dock-head-button:hover {
  border-color: #bfd7ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(233, 243, 255, 0.98) 100%);
  box-shadow:
    0 14px 28px rgba(0, 100, 250, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.dock-head-button:hover::before {
  opacity: 1;
  transform: scale(1.02);
}

.dock-head-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(0, 100, 250, 0.14),
    0 14px 28px rgba(0, 100, 250, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.dock-head-button-icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms ease;
}

.dock-head-button-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-head-button[data-mode="collapsed"] .dock-head-button-icon {
  transform: rotate(180deg);
}

@keyframes dock-signal-pulse {
  0%,
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(255, 96, 127, 0.12);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(255, 96, 127, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-overlay,
  .loading-overlay::before,
  .loading-overlay::after,
  .tech-loader::before,
  .tech-loader::after,
  .tech-loader-flower,
  .tech-loader-flower::before,
  .tech-loader-petal,
  .tech-loader-progress::before,
  .tech-loader-progress::after,
  .dock-ambient-glow,
  .dock-brand-signal-dot,
  .dock-head-button,
  .dock-head-button::before,
  .dock-head-button-icon,
  .dock-brand-mark,
  .toast,
  .dock-role-crown,
  .dock-subitem,
  .dock-subitem::after,
  .dock-subitem-glow,
  .onboarding-overlay,
  .onboarding-popover,
  .onboarding-progress-bar,
  .onboarding-step-card,
  .onboarding-fab,
  .onboarding-fab::before,
  .onboarding-fab-icon,
  .guide-focus-anchor {
    transition: none;
    animation: none;
  }
}

.workspace-meta {
  padding-top: 8px;
  border-top: 1px solid var(--semi-color-border);
}

.workspace-meta,
.meta-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  border-radius: 999px;
  background: var(--semi-color-bg-2);
  border: 1px solid var(--semi-color-border);
  padding: 8px 12px;
}

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

.meta-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--semi-color-border);
  background: var(--semi-color-bg-2);
  padding: 0 10px;
  font-size: 12px;
  color: var(--semi-color-text-1);
}

.status-pill.accent {
  color: var(--semi-color-primary);
  background: #edf5ff;
  border-color: #cfe3ff;
}

.status-pill.good {
  color: #0e8a2d;
  background: #ebf8ee;
  border-color: #b7ebc1;
}

.status-pill.warn {
  color: #ad6800;
  background: #fff7e8;
  border-color: #ffd591;
}

.status-pill.bad {
  color: #cf1322;
  background: #fff1f0;
  border-color: #ffa39e;
}

.tg-status-toggle {
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.tg-status-toggle:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(52, 84, 128, 0.12);
}

.tg-status-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: none;
}

.tg-organize-rule-toolbar {
  gap: 12px;
}

.tg-organize-rule-toolbar-button {
  min-width: 156px;
}

.toast-viewport {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: calc(18px + env(safe-area-inset-right, 0px));
  z-index: 2600;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid rgba(208, 215, 226, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--semi-color-text-0);
  box-shadow: 0 18px 38px rgba(29, 33, 41, 0.13);
  pointer-events: auto;
  transform: translateX(0);
  opacity: 1;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.toast.is-dismissing {
  opacity: 0;
  transform: translateX(18px);
}

.toast-mark {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast-mark::before {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.toast-success {
  border-color: #b7ebc6;
}

.toast-success .toast-mark {
  background: #16a34a;
}

.toast-success .toast-mark::before {
  content: "✓";
}

.toast-error {
  border-color: #ffd1d1;
}

.toast-error .toast-mark {
  background: #f53f3f;
}

.toast-error .toast-mark::before {
  content: "!";
}

.toast-warn {
  border-color: #ffd88a;
}

.toast-warn .toast-mark {
  background: #d97706;
}

.toast-warn .toast-mark::before {
  content: "!";
}

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

.toast-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.toast-message {
  margin: 0;
  color: var(--semi-color-text-1);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.toast-close {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--semi-color-text-2);
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
}

.toast-close:hover,
.toast-close:focus-visible {
  background: var(--semi-color-bg-2);
  color: var(--semi-color-text-0);
  transform: none;
  box-shadow: none;
}

@media (max-width: 640px) {
  .toast-viewport {
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    left: calc(12px + env(safe-area-inset-left, 0px));
    width: auto;
  }
}

.panel,
.notice,
.config-card,
.user-card {
  padding: 20px 22px;
}

.panel-stack,
.stack,
.card-list,
.kv-grid,
.binding-table,
.account-runtime-grid,
.log-toolbar {
  display: grid;
  gap: 16px;
}

.card-list {
  gap: 18px;
}

.panel-head,
.config-card-head,
.user-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.panel-head h3,
.config-card-head h4,
.user-card-head h4,
.notice h3 {
  margin: 0;
  font-size: 18px;
}

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

.title-row h4 {
  font-size: 20px;
  margin-right: 4px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 16px 20px;
  align-items: start;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid {
  align-items: start;
}

.field {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 8px;
  align-self: start;
}

.field-error-focus {
  position: relative;
  padding: 10px;
  margin: -10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(245, 63, 63, 0.06) 0%, rgba(245, 63, 63, 0.02) 100%);
  box-shadow: inset 0 0 0 1px rgba(245, 63, 63, 0.18);
}

.field-error-input {
  border-color: #f5a3a3 !important;
  box-shadow: 0 0 0 3px rgba(245, 63, 63, 0.12) !important;
}

.field-error-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  color: #b42318;
  font-size: 12px;
  line-height: 1.7;
}

.field-wide {
  grid-column: 1 / -1;
}

.account-detail-field-compact {
  justify-self: start;
  width: 100%;
  max-width: min(100%, 460px);
}

.account-detail-field-compact > input:not([type="checkbox"]),
.account-detail-field-compact > select {
  width: 100%;
  max-width: 100%;
}

.account-detail-field-small {
  max-width: min(100%, 260px);
}

.cookie-pool-province-config-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(180px, 260px) minmax(220px, 260px);
  gap: 16px 20px;
  align-items: start;
}

.cookie-pool-province-supported-field,
.cookie-pool-province-supported-field .cookie-pool-province-dropdown {
  min-width: 0;
  width: 100%;
}

.cookie-pool-province-dropdown > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 44px 0 14px;
}

.cookie-pool-province-dropdown .multi-select-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.cookie-pool-province-dropdown .multi-select-summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-pool-province-dropdown .multi-select-summary span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.playback-policy-subsection {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin-top: 4px;
}

.playback-policy-subsection::before,
.playback-policy-subsection::after {
  content: "";
  height: 1px;
  min-width: 24px;
  flex: 1;
  background: rgba(173, 189, 219, 0.34);
}

@media (max-width: 960px) {
  .cookie-pool-province-config-grid {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  }
}

@media (max-width: 640px) {
  .cookie-pool-province-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-pool-province-config-grid .account-detail-field-compact {
    max-width: 100%;
  }
}

.playback-policy-subsection span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(219, 232, 255, 0.56);
  color: var(--semi-color-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-label {
  color: var(--semi-color-text-1);
  font-size: 13px;
  font-weight: 600;
}

.field-link-button {
  border: 0;
  padding: 0;
  margin: 0 0 0 8px;
  min-height: auto;
  background: transparent;
  box-shadow: none;
  color: var(--semi-color-primary);
  font-size: 12px;
  font-weight: 600;
  vertical-align: baseline;
}

.field-link-button:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--semi-color-primary-hover);
  text-decoration: underline;
}

.field-link-button:focus-visible {
  outline: none;
  color: var(--semi-color-primary-hover);
  text-decoration: underline;
}

.field-label-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.field-inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ext-picker {
  display: grid;
  gap: 10px;
}

.ext-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ext-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--semi-color-border);
  background: var(--semi-color-bg-2);
  color: var(--semi-color-text-1);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ext-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ext-chip.checked {
  color: var(--semi-color-primary);
  border-color: #bfd7ff;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(36, 95, 216, 0.08);
}

.ext-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.playback-ua-chip-list {
  gap: 10px 8px;
}

.playback-ua-chip {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
}

.playback-ua-chip-icon-shell {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(191, 215, 255, 0.55);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.playback-ua-chip-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.field-toggle .checkbox-row {
  width: fit-content;
  max-width: 100%;
}

.recycle-password-options-row {
  --recycle-password-option-width: 320px;
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

.recycle-password-inline-field,
.recycle-password-actions-field {
  flex: 0 1 auto;
  min-width: var(--recycle-password-option-width);
}

.recycle-password-actions-field {
  flex: 1 1 300px;
}

.recycle-password-inline-field .checkbox-row {
  width: var(--recycle-password-option-width);
}

.recycle-password-checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.recycle-password-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 44px;
}

.recycle-password-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.recycle-password-option-hint {
  display: block;
  margin-top: 8px;
}

.admin-emby-bind-section-simple .user-cookie-form {
  --admin-emby-simple-option-width: var(--recycle-password-option-width, 320px);
}

@media (min-width: 720px) {
  .admin-emby-bind-section-simple .user-cookie-form {
    grid-template-columns: repeat(2, minmax(0, var(--admin-emby-simple-option-width)));
    justify-content: start;
    gap: 12px;
  }

  .admin-emby-bind-section-simple .user-cookie-form > .field-wide {
    grid-column: auto;
  }

  .admin-emby-bind-section-simple .user-cookie-form > .field,
  .admin-emby-bind-section-simple .recycle-password-inline-field {
    width: 100%;
    min-width: 0;
  }

  .admin-emby-bind-section-simple .recycle-password-options-row {
    --recycle-password-option-width: var(--admin-emby-simple-option-width);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, var(--admin-emby-simple-option-width)));
    justify-content: start;
    gap: 12px;
  }

  .admin-emby-bind-section-simple .recycle-password-inline-field .checkbox-row {
    width: 100%;
  }
}

.recycle-password-open {
  min-height: 36px;
}

.recycle-password-input-row {
  --recycle-password-cell-size: clamp(38px, 9vw, 48px);
  --recycle-password-cell-gap: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}

.recycle-password-pin {
  display: grid;
  grid-template-columns: repeat(6, var(--recycle-password-cell-size));
  gap: var(--recycle-password-cell-gap);
  width: max-content;
  max-width: 100%;
}

.recycle-password-pin input:not([type="checkbox"]) {
  width: var(--recycle-password-cell-size);
  min-width: 0;
  height: var(--recycle-password-cell-size);
  min-height: var(--recycle-password-cell-size);
  padding: 0;
  border-radius: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  -webkit-text-security: disc;
  text-security: disc;
}

.recycle-password-pin.is-disabled {
  opacity: 0.6;
}

.recycle-password-pin input:disabled {
  background: var(--semi-color-bg-2);
}

.recycle-password-field.is-invalid .recycle-password-pin input:not([type="checkbox"]) {
  border-color: #f5a3a3;
  box-shadow: 0 0 0 3px rgba(245, 63, 63, 0.12);
}

.recycle-password-field.is-invalid .recycle-password-hint {
  color: #b42318;
}

.recycle-password-clear {
  width: var(--recycle-password-cell-size);
  height: var(--recycle-password-cell-size);
  min-width: var(--recycle-password-cell-size);
  min-height: var(--recycle-password-cell-size);
  flex: 0 0 var(--recycle-password-cell-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
}

.recycle-password-clear-outer {
  width: auto;
  height: 36px;
  min-width: 0;
  min-height: 36px;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 12px;
}

.recycle-password-clear-icon-only {
  width: 36px;
  min-width: 36px;
  flex-basis: 36px;
  padding: 0;
}

.recycle-password-clear-icon,
.recycle-password-clear-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.recycle-password-clear-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recycle-password-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.recycle-password-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}

.recycle-password-modal-backdrop:hover,
.recycle-password-modal-backdrop:focus,
.recycle-password-modal-backdrop:active {
  background: rgba(15, 23, 42, 0.42);
  box-shadow: none;
  outline: none;
}

.recycle-password-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90vh, 560px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--semi-color-border);
  border-radius: 16px;
  background: var(--semi-color-bg-0);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
}

.recycle-password-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.recycle-password-modal-head > div {
  min-width: 0;
}

.recycle-password-modal-head .modal-close-button {
  flex: 0 0 auto;
  margin-top: -6px;
}

.recycle-password-modal-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.recycle-password-modal-head p {
  margin: 6px 0 0;
  color: var(--semi-color-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.recycle-password-modal-card .recycle-password-field {
  margin: 0;
}

.recycle-password-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .recycle-password-options-row {
    flex-direction: column;
  }

  .recycle-password-inline-field,
  .recycle-password-actions-field {
    min-width: 100%;
    width: 100%;
  }

  .recycle-password-inline-field .checkbox-row {
    width: 100%;
  }

  .recycle-password-modal {
    align-items: end;
    padding: 12px;
  }

  .recycle-password-modal-card {
    width: 100%;
    padding: 18px;
  }
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--semi-color-border);
  background: var(--semi-color-bg-2);
  color: var(--semi-color-text-0);
  font-weight: 500;
  cursor: pointer;
}

.secret-textarea {
  position: relative;
}

.secret-textarea.is-masked textarea {
  color: transparent;
  text-shadow: 0 0 16px rgba(29, 33, 41, 0.7);
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.secret-mask {
  position: absolute;
  inset: 0;
  border: 1px dashed #b8d8ff;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(239, 246, 255, 0.92) 100%),
    repeating-linear-gradient(135deg, rgba(184, 216, 255, 0.12) 0, rgba(184, 216, 255, 0.12) 10px, rgba(255, 255, 255, 0.08) 10px, rgba(255, 255, 255, 0.08) 20px);
  color: #0b63ce;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  cursor: pointer;
}

.secret-mask-title {
  font-size: 14px;
  font-weight: 700;
}

.secret-mask-copy {
  font-size: 12px;
  color: var(--semi-color-text-1);
}

.summary-card {
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  min-width: 0;
}

.summary-label {
  color: var(--semi-color-text-2);
  font-size: 12px;
}

.summary-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-card-time .summary-value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.45;
}

.summary-card-wrap .summary-value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.summary-card-code .summary-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.user-profile-grid .summary-card {
  text-align: center;
  justify-items: center;
  padding: 12px 14px;
}

.user-profile-grid .summary-label {
  font-size: 12px;
}

.user-profile-grid .summary-value {
  width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.42;
}

.user-summary-card .summary-value {
  font-size: 15px;
  font-weight: 400;
  margin-top: 4px;
}

.user-summary-card.summary-card-code .summary-value {
  font-size: 14px;
}

.user-summary-card.summary-card-time .summary-value {
  font-size: 14px;
}

.user-scope-binding-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-scope-binding-card {
  text-align: center;
  justify-items: center;
}

.user-scope-binding-card .summary-value {
  font-weight: 700;
}

.user-scope-binding-card.is-empty .summary-value {
  color: var(--semi-color-text-2);
}

.user-scope-binding-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin-top: 10px;
}

.user-scope-binding-meta .status-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emby-detail-grid .summary-card {
  padding: 12px 14px;
}

.emby-detail-grid .summary-label {
  font-size: 12px;
}

.emby-detail-grid .summary-value {
  font-size: 15px;
  font-weight: 400;
  margin-top: 4px;
}

.emby-detail-grid .summary-card-code .summary-value {
  font-size: 14px;
}

.emby-detail-grid .summary-card-time .summary-value {
  font-size: 14px;
}

.kv-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kv-grid-stats {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.kv-grid-stats .summary-card {
  padding: 12px 14px;
  text-align: center;
  justify-items: center;
}

.kv-grid-stats .summary-value {
  font-size: 16px;
}

.summary-card-source-root {
  min-width: 0;
  overflow: hidden;
}

.summary-card-source-root .summary-value {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.35;
}

.source-root-history-inline {
  width: 100%;
  justify-content: space-between;
}

.source-root-history-inline .field-resolve-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.6;
}

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

.source-root-history-trigger:hover {
  color: #084ea5;
  background: rgba(11, 99, 206, 0.08);
  border-color: transparent;
  box-shadow: none;
}

.source-root-history-trigger-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
}

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

.source-root-history-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.source-root-history-trigger:disabled:hover {
  background: transparent;
  color: #0b63ce;
}

.source-root-browser-modal .detail-modal-card {
  width: min(860px, calc(100vw - 32px));
}

.source-root-browser-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.source-root-browser-summary-main {
  min-width: 0;
  flex: 1 1 360px;
  display: grid;
  gap: 8px;
}

.source-root-browser-summary-main strong {
  color: var(--semi-color-text-0);
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-root-browser-summary-path {
  color: var(--semi-color-text-2);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-root-browser-tree {
  gap: 14px;
}

.source-root-browser-node-row.is-selected {
  border-color: #bfd6ff;
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(36, 95, 216, 0.08);
}

.source-root-browser-select {
  min-width: 0;
  flex: 1 1 auto;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-align: left;
}

.source-root-browser-select:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}

.source-root-browser-select:focus-visible {
  outline: none;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(0, 100, 250, 0.14);
}

.kv-grid-stats .summary-card-time .summary-value {
  font-size: 14px;
}

.empty-state {
  background: var(--semi-color-bg-2);
  border: 1px dashed var(--semi-color-border-strong);
  border-radius: 14px;
  color: var(--semi-color-text-1);
  padding: 14px 16px;
}

.notice-error {
  border-color: #ffd6d6;
  background: #fff7f7;
}

.notice-strip {
  padding: 10px 12px;
  border-radius: 12px;
}

.notice-strip-accent {
  border: 1px solid #b6d5ff;
  background: #eef6ff;
  color: #1f4f96;
}

.license-activation-view {
  display: grid;
  gap: 16px;
  color: var(--semi-color-text-0);
}

.license-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 216px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-color: rgba(178, 195, 222, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.94) 48%, rgba(255, 249, 239, 0.92) 100%),
    repeating-linear-gradient(90deg, rgba(0, 100, 250, 0.06) 0 1px, transparent 1px 38px);
  box-shadow:
    0 24px 52px rgba(29, 33, 41, 0.09),
    0 10px 24px rgba(0, 100, 250, 0.06);
  animation: license-panel-enter 0.48s ease both;
}

.license-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.78) 44%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 42%);
  transform: translateX(-72%);
  animation: license-sheen 5.8s ease-in-out infinite;
  pointer-events: none;
}

.license-hero-panel::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #0b6bff, #18a56f, #f2b84b, #0b6bff);
  background-size: 220% 100%;
  opacity: 0.9;
  animation: license-rail-flow 4.8s linear infinite;
}

.license-hero-panel.is-valid {
  border-color: rgba(75, 181, 118, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 255, 249, 0.94) 50%, rgba(247, 251, 255, 0.92) 100%),
    repeating-linear-gradient(90deg, rgba(22, 163, 74, 0.06) 0 1px, transparent 1px 38px);
}

.license-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.license-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 100, 250, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #315072;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.license-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
  animation: license-dot-pulse 1.8s ease-in-out infinite;
}

.license-hero-copy h3 {
  margin: 0;
  color: #111827;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.license-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--semi-color-text-1);
  font-size: 15px;
  line-height: 1.8;
}

.license-hero-pills,
.license-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.license-sigil {
  position: relative;
  z-index: 1;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.license-sigil-ring {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(12, 104, 255, 0.18);
  background:
    conic-gradient(from 90deg, rgba(12, 104, 255, 0.08), rgba(22, 163, 74, 0.34), rgba(242, 184, 75, 0.3), rgba(12, 104, 255, 0.08));
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%);
  mask: radial-gradient(circle, transparent 56%, #000 58%);
  animation: license-ring-spin 9s linear infinite;
}

.license-sigil-core {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 255, 0.86));
  box-shadow:
    0 22px 42px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.license-sigil-core svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: #0b63ce;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.license-sigil.is-valid .license-sigil-core svg {
  stroke: #12854d;
}

.license-sigil-label {
  position: absolute;
  bottom: 8px;
  min-width: 78px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.license-flow-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.license-flow-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(219, 226, 238, 0.92);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(29, 33, 41, 0.05);
  animation: license-panel-enter 0.44s ease both;
}

.license-flow-card:nth-child(2) {
  animation-delay: 0.05s;
}

.license-flow-card:nth-child(3) {
  animation-delay: 0.1s;
}

.license-flow-index {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #d9e2ef;
}

.license-flow-index svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease, stroke 0.22s ease;
}

.license-flow-check {
  stroke: #12854d;
  stroke-width: 2.9;
}

.license-flow-locked {
  stroke: #7a8798;
  stroke-width: 2.1;
}

.license-flow-card.is-ready .license-flow-index {
  background: #e8f8ef;
  border-color: #b9ebca;
}

.license-flow-card.is-ready .license-flow-check {
  animation: license-icon-pop 0.26s ease both;
}

.license-flow-card.is-active .license-flow-index {
  background: #eef6ff;
  border-color: #b6d5ff;
  box-shadow: 0 0 0 5px rgba(0, 100, 250, 0.08);
}

.license-flow-card.is-active .license-flow-locked {
  stroke: #0b63ce;
}

.license-flow-card.is-waiting .license-flow-index {
  background: #f2f5f9;
  border-color: #d9e2ef;
}

.license-flow-card.is-waiting .license-flow-locked {
  opacity: 0.72;
}

.license-flow-card strong,
.license-flow-card div > span,
.license-flow-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-flow-card strong {
  display: block;
  color: var(--semi-color-text-0);
  font-size: 14px;
}

.license-flow-card div > span {
  display: block;
  margin-top: 2px;
  color: var(--semi-color-text-1);
  font-size: 12px;
}

.license-flow-card em {
  color: var(--semi-color-text-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.license-flow-card.is-ready em {
  color: #12854d;
}

.license-flow-card.is-active em {
  color: #0b63ce;
}

.license-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 16px;
  align-items: stretch;
}

.license-status-panel,
.license-form-panel {
  min-width: 0;
  height: 100%;
  align-content: start;
  animation: license-panel-enter 0.5s ease both;
}

.license-status-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.license-form-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  animation-delay: 0.06s;
}

.license-status-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: 12px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dce6f3;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.92));
}

.license-status-light {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f2b84b;
  box-shadow: 0 0 0 6px rgba(242, 184, 75, 0.13);
}

.license-status-light.is-valid {
  background: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.license-status-strip strong {
  color: var(--semi-color-text-0);
  font-size: 14px;
}

.license-status-detail {
  min-width: 0;
  color: var(--semi-color-text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-addon-trigger {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  border: 1px solid #d8e4f2;
  background: #ffffff;
  color: #35516d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.license-addon-trigger:hover,
.license-addon-trigger:focus-visible {
  border-color: #b9d5ff;
  background: #f5f9ff;
  color: #0b63ce;
  transform: none;
  box-shadow:
    0 0 0 3px rgba(0, 100, 250, 0.10),
    0 10px 20px rgba(15, 23, 42, 0.07);
}

.license-addon-counts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.license-addon-count-chip {
  min-width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #cce0ff;
  background: #eef6ff;
  color: #0b63ce;
  font-size: 11px;
  font-weight: 800;
}

.license-addon-modal {
  z-index: 54;
}

.license-addon-modal .license-addon-modal-card {
  width: min(760px, calc(100vw - 48px));
  max-height: min(82vh, calc(100vh - 48px));
}

.license-addon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-content: stretch;
  align-items: stretch;
}

.license-addon-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: minmax(104px, auto);
  width: 100%;
  min-height: 104px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.license-addon-card-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 104px;
  background:
    linear-gradient(135deg, rgba(0, 100, 250, 0.08), rgba(22, 163, 74, 0.07)),
    #f8fafc;
}

.license-addon-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.license-addon-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 14px 12px 12px;
}

.license-addon-card-copy strong {
  min-width: 0;
  color: var(--semi-color-text-0);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-addon-card-copy .status-pill {
  width: fit-content;
  min-height: 26px;
  margin-top: auto;
  padding: 0 9px;
  font-size: 11px;
}

.license-kv-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.license-kv-grid .summary-card {
  border-color: #e2e8f0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.license-status-art {
  min-width: 0;
  width: 100%;
  min-height: clamp(190px, 22vw, 260px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(29, 33, 41, 0.04);
}

.license-status-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  border-radius: inherit;
}

.license-kv-grid .summary-card-code .summary-value,
.license-request-code,
.license-certificate-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.license-form-grid {
  gap: 14px;
  align-content: start;
}

.license-form-panel input,
.license-form-panel textarea {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.license-form-panel input:focus,
.license-form-panel textarea:focus {
  border-color: #96c2ff;
  box-shadow:
    0 0 0 3px rgba(0, 100, 250, 0.13),
    0 10px 22px rgba(0, 100, 250, 0.06);
}

.license-request-code {
  min-height: 106px;
  resize: vertical;
}

.license-certificate-input {
  min-height: clamp(280px, 32vh, 380px);
  resize: vertical;
}

.license-actions {
  align-self: end;
  padding-top: 10px;
  justify-content: flex-end;
}

.license-actions button {
  min-height: var(--rose-page-action-height);
}

@keyframes license-panel-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes license-sheen {
  0%,
  58% {
    transform: translateX(-78%);
  }
  100% {
    transform: translateX(78%);
  }
}

@keyframes license-rail-flow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 220% 50%;
  }
}

@keyframes license-icon-pop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  72% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes license-ring-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes license-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(22, 163, 74, 0.03);
  }
}

@media (max-width: 980px) {
  .license-hero-panel,
  .license-workspace-grid {
    grid-template-columns: 1fr;
  }

  .license-sigil {
    width: 148px;
    height: 148px;
    justify-self: start;
  }

  .license-sigil-core {
    width: 90px;
    height: 90px;
    border-radius: 26px;
  }
}

@media (max-width: 720px) {
  .license-hero-panel {
    min-height: 0;
    padding: 18px;
    gap: 18px;
    justify-items: center;
    text-align: center;
  }

  .license-hero-copy {
    width: 100%;
    grid-template-columns: auto minmax(0, max-content);
    justify-content: center;
    align-items: center;
    gap: 8px 10px;
    text-align: center;
  }

  .license-kicker {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: end;
  }

  .license-hero-pills {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-content: flex-start;
    max-width: min(46vw, 190px);
    gap: 6px;
  }

  .license-hero-pills .status-pill {
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .license-hero-copy h3 {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    font-size: 28px;
    white-space: nowrap;
  }

  .license-hero-copy p {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    max-width: min(100%, 340px);
  }

  .license-sigil {
    justify-self: center;
  }

  .license-flow-rail,
  .license-kv-grid {
    grid-template-columns: 1fr;
  }

  .license-flow-card {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .license-flow-card em {
    grid-column: 2;
  }

  .license-status-strip {
    grid-template-columns: 12px auto minmax(0, 1fr);
  }

  .license-addon-trigger {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .license-addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-actions {
    justify-content: stretch;
  }

  .license-actions button {
    flex: 1 1 100%;
  }

  .license-addon-card {
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows: minmax(100px, auto);
    min-height: 100px;
  }

  .license-addon-card-media {
    min-height: 100px;
  }
}

@media (max-width: 480px) {
  .license-addon-modal .license-addon-modal-card {
    width: min(100%, calc(100vw - 24px));
  }

  .license-addon-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .license-addon-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: minmax(96px, auto);
    min-height: 96px;
  }

  .license-addon-card-media {
    min-height: 96px;
  }
}

@media (max-width: 360px) {
  .license-addon-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .license-hero-panel,
  .license-hero-panel::before,
  .license-hero-panel::after,
  .license-live-dot,
  .license-sigil-ring,
  .license-flow-index svg,
  .license-flow-card,
  .license-status-panel,
  .license-form-panel {
    animation: none;
    transition: none;
  }
}

.license-disclosure {
  width: 100%;
  border: 1px solid var(--semi-color-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.license-disclosure summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--semi-color-text-0);
  user-select: none;
}

.license-disclosure summary::-webkit-details-marker {
  display: none;
}

.license-disclosure summary::after {
  content: "展开";
  float: right;
  color: var(--semi-color-text-2);
  font-weight: 500;
}

.license-disclosure[open] summary {
  border-bottom: 1px solid var(--semi-color-border);
  background: var(--semi-color-bg-2);
}

.license-disclosure[open] summary::after {
  content: "收起";
}

.license-disclosure textarea {
  border: 0;
  border-radius: 0;
  min-height: 180px;
  box-shadow: none;
}

.license-disclosure textarea:focus {
  box-shadow: none;
  border-color: transparent;
}

.multi-select-dropdown {
  border: 1px solid var(--semi-color-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.multi-select-dropdown summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 12px 44px 12px 14px;
  user-select: none;
}
