:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --accent: #38bdf8;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #334155;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: "Poppins", "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 45%), var(--bg);
  color: var(--text);
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

.app-shell > .main-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-height: 0;
  position: relative;
}

.app-shell > .status-bar {
  flex-shrink: 0;
}

.sidebar {
  padding: 4px 5px;
  background: linear-gradient(160deg, #0b1527, #111d32);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  width: 275px;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.22s ease, padding 0.22s ease, border-right-width 0.22s ease;
}

.sidebar-inner {
  width: 265px;
  min-width: 265px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.sidebar-toggle-btn {
  position: absolute;
  top: 50%;
  left: 275px;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 22px;
  min-width: 22px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0;
  margin: 0;
  background: linear-gradient(180deg, rgba(32, 53, 93, 0.92), rgba(22, 36, 63, 0.92));
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
  color: #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-btn:hover {
  border-color: rgba(125, 211, 252, 0.65);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.45);
}

.sidebar-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

.main-content.sidebar-collapsed .sidebar {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  border-right-width: 0;
}

.main-content.sidebar-collapsed .sidebar-inner {
  transform: translateX(-100%);
  opacity: 0;
}

.main-content.sidebar-collapsed .sidebar-toggle-btn {
  left: 10px;
}

@media (max-width: 900px) {
  .sidebar-toggle-btn {
    top: 12px;
    left: 275px;
    transform: translate(-50%, 0);
    height: 40px;
  }

  .main-content.sidebar-collapsed .sidebar-toggle-btn {
    left: 10px;
  }
}

.sidebar h1 {
  margin: 0;
  font-size: 1.6rem;
}

.sidebar p {
  margin: 4px 0 4px;
  color: var(--muted);
}

.sidebar-label {
  margin-top: 18px;
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

select,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 0.95rem;
  background: #0f172a;
  color: var(--text);
  margin-top: 0px;
}

select:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button {
  background: linear-gradient(120deg, #0891b2, #38bdf8);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover:not(:disabled) {
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.25);
}

.project-hint {
  margin-top: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(148, 163, 184, 0.08);
}

.project-hint h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
}

.project-hint p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.project-hint ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar-metrics {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#sidebarToolPanel {
  margin-top: 4px;
  flex-shrink: 0;
}

.sidebar-operation-hint {
  margin: 6px 2px 2px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #9bb0cf;
  min-height: 2.1em;
}

.metric-compact {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  width: 100%;
}

.metric-compact .label {
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.metric-compact strong {
  font-size: 1.05rem;
}

.metric-tool {
  align-self: flex-start;
}

.log-button-wrapper {
  margin-top: 8px;
}

.log-button-wrapper .ghost-button[hidden] {
  display: none !important;
}

.content {
  padding: 1px;
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0px;
  overflow: hidden;
  min-height: 0;
  min-width: 1200px;
  flex: 1;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
  flex-shrink: 0;
}

.tab-panels {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.tab-panel[hidden] {
  display: none !important;
}

.tablist {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 0;
  position: relative;
}

.tablist::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.tab-button {
  width: auto;
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  border-radius: 12px 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.tab-button:hover,
.tab-button:focus-visible {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
}

.tab-button.active {
  color: var(--accent);
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--border);
  border-bottom-color: rgba(30, 41, 59, 0.95);
  z-index: 2;
}

.log-toggle {
  width: 100%;
  white-space: nowrap;
}

.config-split-row {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  gap: 12px;
}

.config-split-left,
.config-split-right {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 13, 25, 0.35);
  overflow: hidden;
}

.plist-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 6px;
}

.dock-section {
  margin-top: auto;
  flex-shrink: 0;
  flex-direction: column;
}

.dock-section[hidden] {
  display: none;
}

.channel-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  position: relative;
}

/* 渠道页默认禁止反白，仅保留输入类栏位可选字 */
#sheetsTabPanel,
#sheetsTabPanel * {
  user-select: none;
  -webkit-user-select: none;
}

#sheetsTabPanel input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
#sheetsTabPanel textarea,
#sheetsTabPanel [contenteditable="true"],
#sheetsTabPanel [contenteditable=""] {
  user-select: text;
  -webkit-user-select: text;
}

#sheetsTabPanel img {
  -webkit-user-drag: none;
  user-drag: none;
}

.card header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
}

.channel-card-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.channel-header-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.channel-header-row--top {
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  padding-inline: 8px;
}

.channel-header-row--top .subtext {
  margin: 0;
}

.channel-header-row--bottom {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding-inline: 8px;
}

.channel-status-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.channel-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  padding: 3px 10px 3px 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  position: relative;
  white-space: nowrap;
}

.channel-legend-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.channel-legend-item--locked {
  background-color: rgba(148, 163, 184, 0.32);
  /* border-color: rgba(148, 163, 184, 0.4); */
}

.channel-legend-item--locked::before {
  background-color: rgba(148, 163, 184, 0.8);
}

.channel-legend-item--built {
  background-color: #00851222;
  /* border-color: #00851266; */
}

.channel-legend-item--built::before {
  background-color: #00a817;
}

.channel-legend-item--synced {
  background-color: #006eff22;
  /* border-color: #006eff66; */
}

.channel-legend-item--synced::before {
  background-color: #006eff;
}

.channel-legend-item--failed {
  background-color: rgba(245, 158, 11, 0.25);
}

.channel-legend-item--failed::before {
  background-color: #f59e0b;
}

.channel-toolbar {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.channel-toolbar .ghost-button,
.channel-toolbar .ghost-button.primary {
  width: auto;
  min-width: 85px;
  font-size: 1rem;
  padding: 8px 6px;
}

.channel-jump-panel {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(4px);
}

.channel-jump-panel[hidden] {
  display: none !important;
}

.channel-jump-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.channel-jump-panel .channel-jump-input {
  width: 132px;
  min-width: 108px;
  height: 36px;
  min-height: 36px;
  text-align: center;
  padding: 8px 10px;
  font-weight: 600;
}

/* 隐藏 number 输入框原生上下箭头（spinner） */
.channel-jump-panel .channel-jump-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.channel-jump-panel .channel-jump-input[type="number"]::-webkit-outer-spin-button,
.channel-jump-panel .channel-jump-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.channel-jump-panel .channel-jump-confirm {
  min-width: 74px;
  padding: 7px 12px;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .channel-jump-panel {
    width: calc(100% - 36px);
    max-width: 460px;
    top: 56%;
  }

  .channel-jump-label {
    font-size: 0.9rem;
  }
}

.channel-filter-controls {
  display: inline-flex;
  gap: 2px;
}

.channel-filter-controls .channel-filter-input {
  min-width: 350px;
  min-height: 42px;
  height: 36px;
  padding: 6px 10px;
}

.channel-filter-controls .channel-filter-mode {
  width: 100px;
  min-height: 42px;
  height: 36px;
  line-height: 42px;
}

.channel-filter-controls .channel-filter-conflict-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 1rem;
  white-space: nowrap;
}

.channel-filter-controls .channel-filter-conflict-toggle input[type="checkbox"] {
  accent-color: var(--accent);
}

.channel-filter-controls .ghost-button {
  width: auto;
  min-width: 85px;
}

.card header h2 {
  margin: 0;
  font-weight: 600;
  gap: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.header-actions .primary {
  white-space: nowrap;
  min-width: 120px;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 18px;
}

.control-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.column-middle .control-box,
.column-right .control-box {
  display: flex;
  gap: 12px;
}

.control-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

.hall-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.hall-row input {
  min-width: 0;
  height: 37px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #101b31;
  color: var(--text);
}

.field-label,
.chip-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.chip-stack {
  flex-direction: column;
}

.chip-group {
  background: rgba(15, 23, 42, 0.55);
  height: 37px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-row {
  justify-content: space-between;
  flex-wrap: wrap;
}

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

.metric {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
}

.metric .label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.config-preview {
  background: #0b1220;
  border-radius: 12px;
  padding: 16px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border);
}

.config-table-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 4px;
}

.config-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.config-table thead {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 1;
}

.config-table th,
.config-table td {
  border-bottom: 1px solid var(--border);
  padding: 4px 12px;
  text-align: left;
  vertical-align: middle;
}

.config-table th {
  font-weight: 500;
  color: var(--muted);
}

.config-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

.config-table .key-cell {
  width: 260px;
  font-weight: 600;
  padding: 0px 10px;
}

.config-table .type-cell {
  width: 110px;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0px;
}

.config-table .value-cell {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  padding: 0px;
}

.config-table td {
  padding-top: 0;
  padding-bottom: 0;
}

.dock-divider {
  width: 100%;
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
  margin: 3px 0 3px;
}

.queue-panel {
  margin-top: 4px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  padding: 8px 8px;
  background: rgba(8, 13, 25, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.queue-groups {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.queue-group {
  overflow: visible;
}

.queue-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0px;
}

.queue-panel-header h3 {
  margin: 0;
  font-size: 1rem;
}

.queue-group-header h4 {
  margin-block-start: 20px;
  margin-block-end: 5px;
  font-size: 1rem;
}

.queue-actions {
  display: flex;
  gap: 8px;
}

.queue-empty {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item {
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 10px;
  padding: 8px 8px;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-item-failed {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(127, 29, 29, 0.2);
}

.queue-error-message {
  color: #fca5a5;
  font-size: 0.85rem;
  padding: 4px 8px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
  word-break: break-word;
}

.queue-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.queue-progress-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.queue-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(51, 65, 85, 0.6);
  border-radius: 3px;
  overflow: hidden;
}

.queue-progress-bar-single {
  height: 2px;
  background: rgba(51, 65, 85, 0.5);
}

.queue-progress-fill {
  height: 100%;
  background: #38bdf8;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.queue-progress-fill-single {
  background: #34d399;
}

.queue-progress-label {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
  min-width: 48px;
  text-align: right;
}

.queue-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-command {
  font-weight: 600;
  color: #f8fafc;
}

.queue-meta {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.queue-controls {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.ghost-button-sm {
  padding: 4px 8px;
  font-size: 0.85rem;
}

.log-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.log-overlay[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  z-index: 200;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-panel {
  width: min(1280px, 96vw);
  height: calc(100vh - 60px);
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 25px 80px rgba(2, 6, 23, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header,
.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 24px;
  position: relative;
}

.modal-toolbar {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  flex-wrap: wrap;
}

.modal-body {
  display: flex;
  gap: 24px;
  padding: 16px;
  flex: 1;
  overflow: hidden;
}

.icon-body {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-panel {
  width: min(960px, 100%);
  max-height: 80vh;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.65);
  display: flex;
  flex-direction: column;
}

.log-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.log-panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.log-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.modal-header .icon-button {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.4rem;
}

.log-feed {
  flex: 1;
  overflow: auto;
  padding: 16px 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  color: #cbd5f5;
  background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
}

.log-line {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.dock-frame {
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  padding: 12px 12px;
  background: rgba(8, 13, 25, 0.55);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dock-frame[hidden] {
  display: none !important;
}

.chip-group[hidden] {
  display: none !important;
}

.log-toggle[hidden] {
  display: none !important;
}

.command-dock {
  display: flex;
  flex-wrap: nowrap; /* 不换行 */
  gap: 1px;
  margin-top: auto;
  align-items: stretch;
}
.command-dock > * {
  min-width: 0;
  overflow: hidden;
}
.command-dock .ghost-button {
  width: auto;
  height: 37px;
  padding: 6px 8px;
  align-self: flex-start;
  white-space: nowrap;
}
/* 单独设定「重读」按钮宽度 */
.command-dock .btn-refresh-hall {
  width: 100%;
  /* 在此加入其他自订宽度设定，例如: width: 80px; */
}

.left-frame{
    flex: 0.5 1 0;   /* 核心 */

}
.middle-frame{
    flex: 1.2 1 0;   /* 核心 */

}
.right-frame {
    flex: 1.55 1 0;   /* 核心 */
}

.hall-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: 100%;
}

.check-col {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  text-align: center;
  vertical-align: middle;
  flex-shrink: 0;
}

.rowno-col {
  width: 1%;
  min-width: 0 !important;
  max-width: none !important;
  text-align: center;
  vertical-align: middle;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 14px;
}

.sheets-table tbody td.rowno-col {
  cursor: pointer;
}

.check-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

.icon-col {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
}

.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.command-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: flex-start;
}

.command-buttons .ghost-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding-left: 16px;
  padding-right: 16px;
}

.command-grid .primary {
  font-weight: 600;
}

.ghost-button.planned {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--muted);
  position: relative;
}

.ghost-button.planned:hover {
  border-color: rgba(148, 163, 184, 0.8);
  color: var(--text);
}

.feature-badge {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.15);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feature-badge-warn {
  background: rgba(251, 191, 36, 0.22);
  color: #f59e0b;
}

@media (max-width: 1200px) {
  .left-frame,
  .middle-frame,
  .right-frame {
    flex: 1 1 280px;
  }
}

@media (max-width: 900px) {
  .right-frame {
    gap: 10px;
  }

  .command-grid {
    justify-content: stretch;
  }
}

.field-label,
.chip-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.subtext {
  font-size: 1.2rem;
  color: var(--muted);
}

.radio-pills {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
}

.radio-pill {
  position: relative;
  display: flex;
  align-items: center;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
}

.radio-pill span {
  padding: 4px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.radio-pill input:checked + span {
  color: var(--text);
  background: var(--accent);
  border-radius: 999px;
}

.ghost-button {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.85rem;
  min-width: 64px;
}

.ghost-button[data-ui-toggle="showBuildInNormal"] {
  border-color: #ff9900ab;
}

.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ghost-button[hidden] {
  display: none !important;
}

.table-input,
.table-select,
.table-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  font-size: 0.92rem;
  padding: 8px 10px;
  font-family: inherit;
  min-height: 42px;
}

.table-select {
  padding-top: 0;
  padding-bottom: 0;
  height: 42px;
  line-height: 42px;
}

.table-input:focus,
.table-select:focus,
.table-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.value-textarea {
  min-height: 42px;
  resize: vertical;
}

.value-null {
  color: var(--muted);
  font-style: italic;
}

.input-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.config-table .table-placeholder {
  text-align: center;
  padding: 24px 12px !important;
  color: var(--muted);
}

.ui-hidden {
  display: none !important;
}

.sheets-table-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100vh;
  overflow: auto;
  padding-bottom: 4px;
  padding-right: 4px;
  border-radius: 8px;
}

.sheets-spacer-row td {
  padding: 0 !important;
  border: 0 !important;
  height: 0;
}

.sheets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* 渠道表统一字级 */
.sheets-table th,
.sheets-table td,
.sheets-table .table-input,
.sheets-table .table-select,
.sheets-table .table-textarea,
.sheets-table .ghost-button,
.sheets-table .ghost-button-sm,
.sheets-table .download-link,
.sheets-table .sheet-icon-card.empty {
  font-size: 14px !important;
}

.sheets-table thead {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 1;
}

.sheets-table th,
.sheets-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheets-table thead th {
  font-weight: 600;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.95);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

/* 栏位宽度拖曳调整把手 */
.sheets-table thead th .col-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0px;
  width: 4px;               /* 扩大 hit area */
  cursor: col-resize;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  /* 透明但可抓 */
  background: transparent;
}
.sheets-table thead th .col-resize-handle::before {
  content: '';
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.35);
  transition: all 0.15s ease;
}

.sheets-table thead th .col-resize-handle:hover {
  border-right: 2px solid var(--accent);
  background: rgba(56, 189, 248, 0.1);
}

.sheets-table thead th .col-resize-handle.resizing {
  border-right: 2px solid var(--accent);
  background: rgba(56, 189, 248, 0.2);
}

/* 拖曳中禁止文字选取 */
body.col-resizing {
  cursor: col-resize !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.col-resizing * {
  cursor: col-resize !important;
}

.sheets-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

/* 已打包、等待上传（CDN 未同步）的行 */
.sheets-table tbody tr.row-built {
  background-color: #00851288;
  outline-offset: -2px;
}

/* 已上传（CDN 已同步）的行 */
.sheets-table tbody tr.row-synced {
  background-color: #006eff8b;
  outline-offset: -2px;
}

/* 最近构建失败 */
.sheets-table tbody tr.row-recent-build-failed {
  background-color: rgba(245, 158, 11, 0.45);
  outline-offset: -2px;
}

/* 锁定行的视觉样式 - 构建中的渠道 */
.sheets-table tbody tr.row-locked {
  background: rgba(148, 163, 184, 0.15);
  opacity: 0.85;
}

.sheets-table tbody tr.row-locked:hover {
  background: rgba(148, 163, 184, 0.2);
}

.sheets-table td.sheet-conflict-cell {
  position: relative;
  padding-right: 28px;
  overflow: visible;
  background: rgba(245, 158, 11, 0.25098);
}

.sheets-table td.sheet-conflict-cell .table-input,
.sheets-table td.sheet-conflict-cell .table-select {
  background: rgba(245, 158, 11, 0.25098) !important;
  border-color: rgba(251, 191, 36, 0.55);
}

.sheets-table td.sheet-delete-conflict-cell {
  font-weight: 600;
  color: #fbbf24;
  padding-right: 24px;
}

.sheets-table td.sheet-remote-updated-cell {
  background: rgba(56, 189, 248, 0.2);
}

.sheets-table td.sheet-remote-updated-cell .table-input,
.sheets-table td.sheet-remote-updated-cell .table-select {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.55);
}

.sheet-conflict-trigger {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #f59e0b;
  font-size: 14px;
  line-height: 1;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  user-select: none;
}

.sheet-conflict-trigger:hover {
  color: #fbbf24;
}

.sheet-conflict-menu {
  position: fixed;
  min-width: 220px;
  max-width: 300px;
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.97);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 9999;
}

.sheet-conflict-menu-title {
  font-size: 12px;
  color: #fbbf24;
  margin-bottom: 8px;
}

.sheet-conflict-menu-value {
  font-size: 12px;
  color: #d1d5db;
  margin-bottom: 6px;
  word-break: break-all;
}

.sheet-conflict-menu-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.sheet-conflict-menu-actions .ghost-button-sm {
  flex: 1;
  min-width: 100px;
}

/* 只读栏位的样式 */
.readonly-field {
  background: rgba(51, 65, 85, 0.5) !important;
  color: var(--muted) !important;
  cursor: not-allowed !important;
}

.readonly-field:focus {
  border-color: var(--border) !important;
  box-shadow: none !important;
}

.icon-col {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  flex-shrink: 0;
}

.column-hidden {
  display: none;
}

.action-col {
  width: 160px;
  max-width: 200px;
  white-space: nowrap;
}

/* 下载连结栏位样式 */
.download-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 200px;
}

.download-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

.row-actions {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.row-actions .ghost-button-sm {
  height: 42px;
  padding: 4px 10px;
}

.icon-name-input {
  width: 100%;
  height: 42px;
  font-size: 0.8rem;
  padding: 4px 6px;
  box-sizing: border-box;
}

.sheet-icon-card {
  width: 100%;
  height: 42px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.sheet-icon-card:hover {
  border-color: var(--accent);
}

.sheet-icon-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.sheet-icon-card img {
  width: 100%;
  height: 100%;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.sheet-icon-card.empty {
  color: var(--muted);
  font-size: 0.75rem;
}

.icon-card {
  margin-top: 16px;
}

.icon-target {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin: 0 8px 12px;
  color: var(--muted);
}

.icon-target strong {
  color: var(--text);
}

.icon-list-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border: 2px dashed rgba(255, 255, 255, 0.2);
}

.icon-list-body.drag-over {
  background: rgba(56, 189, 248, 0.15);
  border: 2px dashed var(--accent);
  border-radius: 12px;
}

.icon-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px 8px;
}

.icon-list-cell {
  position: relative;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.icon-list-cell img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none;
}

.icon-list-cell:hover {
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
  z-index: 1;
}

.icon-list-cell.list-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

/* 多选高亮样式 */
.icon-list-cell.selected {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.15);
}

.icon-list-cell.selected:hover {
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.6);
}

/* 图标操作按钮组 */
.icon-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.icon-action-buttons .ghost-button {
  padding: 6px 12px;
  font-size: 1.1rem;
}

.icon-action-buttons .ghost-button.danger {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.icon-action-buttons .ghost-button.danger:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.icon-selection-count {
  font-size: 1rem;
  color: var(--muted);
  margin-left: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.icon-list-name {
  margin-top: 4px;
  font-size: 0.65rem;
  text-align: center;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  width: 100%;
  line-height: 1.3;
}


.icon-list-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.icon-action-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.icon-action-dialog {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.icon-action-dialog h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
  word-break: break-all;
}

.icon-action-dialog-preview {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.75);
}

.icon-action-dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.icon-preview-panel {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.icon-preview-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.icon-preview-box {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: rgba(8, 13, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-preview-box img {
  max-width: 72px;
  max-height: 72px;
}

/* 紧凑整合式 ICON Header */
.icon-header-compact {
  padding: 16px 24px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.icon-header-compact .icon-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.icon-header-compact .icon-preview-box.compact {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(8, 13, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-header-compact .icon-preview-box.compact img {
  max-width: 128px;
  max-height: 128px;
  border-radius: 8px;
}

.icon-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.icon-header-info h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.icon-header-info .subtext {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0px 20px;
}

.icon-header-info .upload-button {
  margin-top: 4px;
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 1.2rem;
}

.icon-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 4px;
}

.icon-header-actions > * {
  flex: 1 1 0;
  min-width: 0;
}

.icon-header-actions .upload-button {
  padding: 6px 10px;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-header-actions .ghost-button {
  padding: 6px 10px;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-header-actions .icon-selection-count {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-header-actions .icon-selection-count:empty::before {
  content: "\200B";
}

/* ============================================
   各平台默认图标表格样式
   ============================================ */

.default-icons-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.default-icons-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.default-icons-table {
  display: flex;
}

.default-icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 130px;
}

.default-icon-cell[data-platform="android"] {
  border-color: rgba(34, 197, 94, 0.75);
}

.default-icon-cell[data-platform="ios"] {
  border-color: rgba(59, 130, 246, 0.75);
}

.default-icon-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.default-icon-preview {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  background: rgba(8, 13, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.default-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.default-icon-empty {
  font-size: 0.75rem;
  color: var(--muted);
}

.default-icon-name {
  font-size: 0.85rem;
  color: var(--text);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 设为默认按钮样式 - 更直观的平台对应颜色 */
.default-icon-cell .ghost-button {
  font-size: 0.75rem;
  padding: 4px 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.default-icon-cell[data-platform="android"] .ghost-button {
  border-color: rgba(34, 197, 94, 0.5);
  color: rgba(34, 197, 94, 0.9);
}

.default-icon-cell[data-platform="android"] .ghost-button:hover:not(:disabled) {
  border-color: rgba(34, 197, 94, 0.9);
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.default-icon-cell[data-platform="ios"] .ghost-button {
  border-color: rgba(59, 130, 246, 0.5);
  color: rgba(59, 130, 246, 0.9);
}

.default-icon-cell[data-platform="ios"] .ghost-button:hover:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.9);
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.default-icon-cell .ghost-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   图标列表颜色编码规则
   ============================================ */

/* 当前选中（编译图标）- 橙色 #FF8000 */
.icon-list-cell.selected {
  border-color: #FF8000 !important;
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.5) !important;
  background: rgba(255, 128, 0, 0.15) !important;
}

.icon-list-cell.selected:hover {
  border-color: #FF8000 !important;
  box-shadow: 0 0 0 4px rgba(255, 128, 0, 0.6) !important;
}

/* iOS 默认图标 - 蓝色 #0000FF */
.icon-list-cell.ios-default {
  border-color: #0000FF;
  box-shadow: 0 0 0 2px rgba(0, 0, 255, 0.35);
  background: rgba(0, 0, 255, 0.1);
}

.icon-list-cell.ios-default:hover {
  border-color: #0000FF;
  box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.5);
}

/* Android 默认图标 - 绿色 #00FF00 */
.icon-list-cell.android-default {
  border-color: #00FF00;
  box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.35);
  background: rgba(0, 255, 0, 0.1);
}

.icon-list-cell.android-default:hover {
  border-color: #00FF00;
  box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.5);
}

/* 共享默认图标（同时为 Android 和 iOS 默认）- 青色 #00FFFF */
.icon-list-cell.shared-default {
  border-color: #00FFFF;
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.35);
  background: rgba(0, 255, 255, 0.1);
}

.icon-list-cell.shared-default:hover {
  border-color: #00FFFF;
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.5);
}

/* 优先级：selected > shared-default > android-default = ios-default */
/* 通过 !important 确保 selected 样式优先级最高 */

/* 未储存图标 - 天蓝色近图环（不覆盖图像内容） */
.icon-list-cell.unsaved img {
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.88);
}

.icon-list-cell.unsaved .icon-list-name::after {
  content: " · 未保存";
  color: rgba(0, 255, 255, 0.92);
  font-weight: 600;
}

.icon-list-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.icon-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  flex-shrink: 0;
}

.icon-filter-input {
  min-height: 34px;
  height: 34px;
  padding: 6px 10px;
}

/* 图标管理 Header 内的筛选列（覆盖通用 .icon-filter-bar） */
#iconModal .icon-filter-bar.icon-filter-bar-elevated {
  margin-top: 8px;
  margin-bottom: 0;
  padding: 0;
  border-bottom: 0;
  gap: 8px;
}

#iconModal .icon-filter-bar.icon-filter-bar-elevated .icon-filter-input {
  min-width: 0;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  padding: 6px 10px;
}

#iconModal .icon-filter-bar.icon-filter-bar-elevated .icon-filter-mode {
  width: 120px;
  min-height: 34px;
  height: 34px;
  line-height: 34px;
  padding: 0 8px;
}

#iconModal .icon-filter-bar.icon-filter-bar-elevated .ghost-button,
#iconModal .icon-filter-bar.icon-filter-bar-elevated .ghost-button-sm {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 图标管理专用：筛选列已移到 Header，避免多余分隔线与双倍底部间距 */
#iconModal .icon-header-compact {
  border-bottom: 0;
  padding-bottom: 0;
}

.icon-list-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  flex-shrink: 0;
  gap: 12px;
}

.icon-list-footer .ghost-button-sm {
  width: auto;
  min-width: 0;
  padding: 4px 10px;
  font-size: 0.78rem;
}

.icon-list-page-info {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 48px;
  text-align: center;
}

.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 12px;
}

.icon-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.icon-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.icon-item img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(8, 13, 25, 0.6);
}

.icon-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--muted);
}

.icon-meta strong {
  color: var(--text);
}

.icon-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.icon-empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .icon-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .icon-preview-panel {
    flex-direction: column;
  }
}

.key-wrapper {
  display: flex;
  align-items: center;
  gap: 0px;
  width: 100%;
}

.key-wrapper .table-input {
  flex: 1;
  min-width: 0;
}

.key-wrapper .action-group {
  margin-left: auto;
}

.toggle-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-btn:hover {
  border-color: var(--accent);
}

.toggle-spacer {
  width: 26px;
  height: 26px;
  display: inline-block;
}

.array-index-label {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--muted);
}

.action-group {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.action-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.future-card {
  border-style: dashed;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  color: var(--muted);
}

.future-grid h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.status-bar {
  margin: 0;
  padding: 2px 12px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.9rem;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.status {
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.9rem;
}

.status-bar.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.remote-change-notice {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.8);
  background: rgba(245, 158, 11, 0.2);
  color: #ffedd5;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2), 0 10px 30px rgba(245, 158, 11, 0.18);
  animation: remoteChangePulse 1.2s ease-out 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.remote-change-notice[hidden] {
  display: none !important;
}

.remote-change-notice.is-conflict {
  border-color: rgba(249, 115, 22, 0.92);
  background: rgba(249, 115, 22, 0.25);
  color: #fff7ed;
}

.remote-change-notice-close {
  margin-left: auto;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  padding: 0;
  line-height: 1;
  font-size: 16px;
  border: 1px solid rgba(255, 237, 213, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
}

.remote-change-notice-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

@keyframes remoteChangePulse {
  0% {
    transform: scale(0.996);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
  }
  60% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2), 0 10px 30px rgba(245, 158, 11, 0.18);
  }
}

.status.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.platform-label {
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.android-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 6px;
}

.android-profile-bar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.android-profile-bar strong {
  color: var(--accent);
}

.android-profile-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 4px;
}

.android-key-label {
  font-weight: 600;
}

.android-value-text {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  word-break: break-all;
  font-size: 0.88rem;
}

.config-table .android-value-cell {
  padding: 0px 10px;
}

/* 一般模式隐藏 Android 设定组指示列 */
.limited-plist-mode .android-profile-bar {
  display: none;
}

/* ── Artifacts (成品下载) ─────────────────────────────── */

.artifacts-panel {
  padding: 20px 24px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.artifacts-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.artifacts-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.artifacts-header .subtext {
  flex: 1 1 100%;
  margin: 0;
  order: 3;
}

.artifacts-header .ghost-button {
  margin-left: auto;
}

.artifacts-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.artifacts-platform-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  background: var(--surface);
}

.artifacts-platform-title {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.artifacts-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.artifacts-empty {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  padding: 12px 0;
  text-align: center;
}

.artifact-group-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  background: var(--bg);
  transition: border-color 0.15s;
}

.artifact-group-card.artifact-latest {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.artifact-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

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

.artifact-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--border);
  color: var(--fg);
}

.artifact-tag-latest {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
}

.artifact-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.artifact-zip-row {
  display: flex;
  padding: 0 8px;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.artifact-zip-btn {
  white-space: nowrap;
  width: 100%;
  flex: 1;
}

.artifact-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.artifact-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.1s;
}

.artifact-file-item:hover {
  background: var(--surface);
}

.artifact-file-name {
  flex: 1;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artifact-file-size {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.artifact-dl-btn {
  text-decoration: none;
  white-space: nowrap;
  width: auto;
}

.artifact-del-btn {
  white-space: nowrap;
  width: auto;
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.artifact-del-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.artifact-file-missing {
  font-size: 0.78rem;
  color: var(--error, #ef4444);
  font-style: italic;
}

.hidden {
  display: none !important;
}

/* ── Icon Picker (快速选择器) ──────────────────────────── */

.icon-picker-overlay {
  z-index: 210;
}

.icon-picker-panel {
  width: min(1280px, 96vw);
  height: calc(100vh - 60px);
  background: rgba(15, 23, 42, 0.97);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 25px 80px rgba(2, 6, 23, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.icon-picker-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  flex-shrink: 0;
  position: relative;
}

.icon-picker-header-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.icon-picker-header-left h3 {
  margin: 0;
  font-size: 1.5rem;
}

.icon-picker-header-left .subtext {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.2rem;
}

.icon-picker-header .icon-button {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 1.4rem;
}

.icon-picker-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  min-height: 120px;
}

.icon-picker-filter-bar {
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px 8px;
}

.icon-picker-cell {
  position: relative;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(15, 23, 42, 0.75);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
}

.icon-picker-cell img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  pointer-events: none;
  border-radius: 8px;
}

.icon-picker-cell:hover {
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
  z-index: 1;
}

.icon-picker-cell.picker-selected {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.icon-picker-name {
  margin-top: 4px;
  font-size: 0.65rem;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  width: 100%;
  line-height: 1.3;
}


.icon-picker-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
  margin: 0;
}

.icon-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  flex-shrink: 0;
}

.icon-picker-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-picker-pager {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-picker-pager .ghost-button-sm {
  width: auto;
  min-width: 0;
  padding: 4px 0;
  text-align: center;
  font-size: 1rem;
}

.icon-picker-page-info {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 50px;
  text-align: center;
  white-space: nowrap;
}

/* ── ICON 上传进度条 ──────────────────────────── */

.icon-upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

.icon-upload-overlay[hidden] {
  display: none !important;
}

.icon-upload-progress-bar {
  width: 60%;
  max-width: 400px;
  height: 6px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 3px;
  overflow: hidden;
  pointer-events: auto;
}

.icon-upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0891b2, #38bdf8);
  transition: width 0.3s ease;
  width: 0%;
}

/* ============================================
   母包管理弹窗
   ============================================ */

.source-pack-panel {
  width: min(640px, 92vw);
  height: auto;
  max-height: calc(100vh - 80px);
}

.source-pack-panel .modal-header {
  gap: 16px;
}

.source-pack-panel .modal-body {
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.source-pack-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.source-pack-upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

.source-pack-upload-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.source-pack-upload-icon {
  font-size: 2rem;
  line-height: 1;
}

.source-pack-upload-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.source-pack-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.source-pack-progress[hidden] {
  display: none !important;
}

.source-pack-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.source-pack-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0891b2, #38bdf8);
  transition: width 0.3s ease;
  width: 0%;
}

.source-pack-progress-text {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.source-pack-status {
  display: flex;
  gap: 12px;
}

.source-pack-card {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.source-pack-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.source-pack-platform-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.source-pack-card-body {
  padding: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.source-pack-empty {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.source-pack-file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.source-pack-file-name {
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-all;
}

.source-pack-file-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-exception-panel {
  width: min(720px, 94vw);
  height: auto;
  max-height: calc(100vh - 80px);
}

.admin-exception-panel .modal-body {
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.admin-exception-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  max-height: 320px;
  overflow-y: auto;
}

.admin-exception-empty {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-exception-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.admin-exception-row:last-child {
  border-bottom: none;
}

.admin-exception-file {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-exception-name {
  font-size: 0.86rem;
  color: var(--text);
  word-break: break-all;
}

.admin-exception-meta {
  font-size: 0.74rem;
  color: var(--muted);
}

.admin-exception-row .ghost-button,
.admin-exception-row .ghost-button-sm {
  width: auto;
  min-width: 64px;
  flex: 0 0 auto;
}

/* ── 连线使用者列表弹窗 ───────────────────────── */

.connections-modal {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  min-width: 520px;
  max-width: 720px;
  max-height: 70vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.connections-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.connections-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.connections-modal-header .icon-button {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 1.4rem;
}

.connections-modal-header h3 {
  margin: 0;
  font-size: 1rem;
}

.connections-modal-body {
  padding: 12px 20px 20px;
  overflow-y: auto;
  max-height: calc(70vh - 60px);
}

.connections-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.connections-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.connections-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  vertical-align: middle;
}

.connections-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.06);
}

.connections-table .table-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 24px 10px;
}

/* 连线人数可点击提示 */
.metric-tool.clickable {
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
  padding: 4px 8px;
  margin: -4px -8px;
}

.metric-tool.clickable:hover {
  background: rgba(56, 189, 248, 0.1);
}

/* ── 重复渠道组合警告 ───────────────────────────── */

.duplicate-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #f59e0b;
}

.duplicate-warning[hidden] {
  display: none !important;
}

.duplicate-warning-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.duplicate-warning-content {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #fbbf24;
}

/* ── CDN 设定弹窗 ───────────────────────────── */

.cdn-config-panel {
  width: min(780px, 96vw);
  height: auto;
  max-height: calc(100vh - 120px);
  border-radius: 16px;
}

.cdn-config-body {
  display: block;
  overflow: auto;
  padding: 18px 20px 20px;
}

.cdn-settings-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}

.cdn-settings-grid label {
  color: var(--muted);
  font-size: 0.84rem;
}

.cdn-settings-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.cdn-settings-actions .ghost-button {
  width: auto;
  flex: 0 0 auto;
}
