/* Shared button variants. Feature styles only own their placement. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--ctl-s);
  padding: var(--button-padding-block,8px) 16px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--text);
  font-size: var(--control-font-size,13px);
  line-height: var(--button-line-height,inherit);
  font-weight: 600;
  font-family: var(--font-display,var(--font));
  letter-spacing: var(--button-tracking,-.09px);
  transition: background-color .18s,border-color .18s,color .18s,transform .18s;
}

.button:hover:not(:disabled) {
  background: var(--field-hover);
  border-color: var(--line-strong);
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button .icon {
  width: 15px;
  height: 15px;
}

/* Optional optical correction keeps the icon centered and the line box intact. */
.button > .mc-button-label {
  position: relative;
  top: var(--button-label-offset,0px);
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink,#fff);
}

.button.primary:hover:not(:disabled) {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* Destructive actions share their semantic state across independent pages. */
.button.danger {
  color: var(--danger);
  border-color: color-mix(in srgb,var(--danger) 40%,var(--line));
}

.button.danger:hover:not(:disabled) {
  background: color-mix(in srgb,var(--danger) 12%,var(--surface-3));
  border-color: var(--danger);
}

.text-button {
  min-height: var(--ctl-xs);
  font: inherit;
  font-family: var(--font-display,var(--font));
  font-weight: 600;
  color: var(--muted);
  padding: 4px 2px;
  background: transparent;
  border-radius: var(--r-badge);
}

.text-button:hover:not(:disabled) {
  color: var(--brand-fg-hover);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ctl-s);
  height: var(--ctl-s);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--muted);
  transition: background-color .16s,color .16s;
}

.icon-button:hover:not(:disabled) {
  background: rgba(var(--neutral-rgb,255,255,255),.08);
  color: var(--text);
}

/* Compact actions in catalogs and tables; also usable without a group. */
.row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.row-actions > .icon-button,
.icon-button.compact {
  flex: none;
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  line-height: 1;
  color: var(--text-2);
}

.row-actions > .icon-button:hover:not(:disabled),
.icon-button.compact:hover:not(:disabled) {
  color: var(--brand-fg-hover);
  background: var(--brand-soft);
}

.row-actions > .icon-button .icon,
.icon-button.compact .icon {
  display: block;
  width: 15px;
  height: 15px;
}

.icon-button.danger:hover:not(:disabled) {
  color: var(--danger);
  background: color-mix(in srgb,var(--danger) 10%,transparent);
}

.icon-button.success:hover:not(:disabled) {
  color: var(--green);
}

/* Persistent semantic color for catalog actions, with a quiet hover/focus tint. */
.icon-button.mc-action {
  --action-color: var(--dashboard-sky,var(--brand-fg));
  color: var(--action-color);
}

.icon-button.mc-action.warning { --action-color: var(--warn); }
.icon-button.mc-action.danger { --action-color: var(--danger); }
.icon-button.mc-action.success { --action-color: var(--green); }
.icon-button.mc-action.accent { --action-color: var(--brand-fg); }

.icon-button.mc-action:hover:not(:disabled),
.icon-button.mc-action:focus-visible:not(:disabled) {
  color: var(--action-color);
  background: color-mix(in srgb,var(--action-color) 10%,transparent);
}

.icon-button.mc-action:disabled { color: var(--muted); }

@media (pointer: coarse) {
  .row-actions > .icon-button,
  .icon-button.compact { width: 44px; height: 44px; min-height: 44px; }
}

/* Transferred from concept-panel/src/shared/styles/buttons.css. */
/* Shared button appearance and states; native element resets stay in base.css. */
.relay-panel button {
  transition:
    background 0.14s,
    color 0.14s,
    opacity 0.14s,
    border-color 0.14s,
    box-shadow 0.14s;
}
.relay-panel button:disabled {
  cursor: default;
  opacity: 0.38;
}
.relay-panel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.relay-panel .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 33px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 2px #00000008,
    inset 0 1px 0 #ffffff03;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.relay-panel .button svg {
  width: 14px;
  height: 14px;
}
.relay-panel .button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 4%);
}
.relay-panel .button:active:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 7%);
  box-shadow: inset 0 1px 2px #00000018;
}
.relay-panel .button:is(.primary,.accent) {
  background: var(--accent-fill,var(--accent));
  color: var(--on-accent);
  border-color: transparent;
  border-bottom-color: #00000015;
  font-weight: 600;
}
.relay-panel .button:is(.primary,.accent):hover:not(:disabled),
.relay-panel .button:is(.primary,.accent):active:not(:disabled) {
  background: var(--accent-fill-hover,var(--accent-strong));
}
.relay-panel .icon-button {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-secondary);
}
.relay-panel .icon-button svg {
  width: 16px;
  height: 16px;
}
.relay-panel .icon-button:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.relay-panel .icon-button:active:not(:disabled) {
  background: var(--pressed);
  color: var(--text);
}
.relay-panel .selected-tool {
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}


.relay-panel .button { line-height:normal; letter-spacing:normal; }
.relay-panel .button:active:not(:disabled) { transform:none; }
.relay-panel .icon-button { min-width:0; min-height:0; padding:0; }
@media(pointer:coarse) { .relay-panel :is(.button,.icon-button) { min-height:44px; } }

/* Transferred from concept-panel/src/shared/styles/buttons.css. */
/* Shared button appearance and states; native element resets stay in base.css. */
.relay-panel button {
  transition:
    background 0.14s,
    color 0.14s,
    opacity 0.14s,
    border-color 0.14s,
    box-shadow 0.14s;
}
.relay-panel button:disabled {
  cursor: default;
  opacity: 0.38;
}
.relay-panel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.relay-panel .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 33px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 2px #00000008,
    inset 0 1px 0 #ffffff03;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.relay-panel .button svg {
  width: 14px;
  height: 14px;
}
.relay-panel .button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 4%);
}
.relay-panel .button:active:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 7%);
  box-shadow: inset 0 1px 2px #00000018;
}
.relay-panel .button:is(.primary,.accent) {
  background: var(--accent-fill,var(--accent));
  color: var(--on-accent);
  border-color: transparent;
  border-bottom-color: #00000015;
  font-weight: 600;
}
.relay-panel .button:is(.primary,.accent):hover:not(:disabled),
.relay-panel .button:is(.primary,.accent):active:not(:disabled) {
  background: var(--accent-fill-hover,var(--accent-strong));
}
.relay-panel .icon-button {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-secondary);
}
.relay-panel .icon-button svg {
  width: 16px;
  height: 16px;
}
.relay-panel .icon-button:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.relay-panel .icon-button:active:not(:disabled) {
  background: var(--pressed);
  color: var(--text);
}
.relay-panel .selected-tool {
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}


.relay-panel .button { line-height:normal; letter-spacing:normal; }
.relay-panel .button:active:not(:disabled) { transform:none; }
.relay-panel .icon-button { min-width:0; min-height:0; padding:0; }
@media(pointer:coarse) { .relay-panel :is(.button,.icon-button) { min-height:44px; } }

/* Transferred from concept-panel/src/shared/styles/buttons.css. */
/* Shared button appearance and states; native element resets stay in base.css. */
.relay-panel button {
  transition:
    background 0.14s,
    color 0.14s,
    opacity 0.14s,
    border-color 0.14s,
    box-shadow 0.14s;
}
.relay-panel button:disabled {
  cursor: default;
  opacity: 0.38;
}
.relay-panel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.relay-panel .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 33px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 2px #00000008,
    inset 0 1px 0 #ffffff03;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.relay-panel .button svg {
  width: 14px;
  height: 14px;
}
.relay-panel .button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 4%);
}
.relay-panel .button:active:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 7%);
  box-shadow: inset 0 1px 2px #00000018;
}
.relay-panel .button:is(.primary,.accent) {
  background: var(--accent-fill,var(--accent));
  color: var(--on-accent);
  border-color: transparent;
  border-bottom-color: #00000015;
  font-weight: 600;
}
.relay-panel .button:is(.primary,.accent):hover:not(:disabled),
.relay-panel .button:is(.primary,.accent):active:not(:disabled) {
  background: var(--accent-fill-hover,var(--accent-strong));
}
.relay-panel .icon-button {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-secondary);
}
.relay-panel .icon-button svg {
  width: 16px;
  height: 16px;
}
.relay-panel .icon-button:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.relay-panel .icon-button:active:not(:disabled) {
  background: var(--pressed);
  color: var(--text);
}
.relay-panel .selected-tool {
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}


.relay-panel .button { line-height:normal; letter-spacing:normal; }
.relay-panel .button:active:not(:disabled) { transform:none; }
.relay-panel .icon-button { min-width:0; min-height:0; padding:0; }
@media(pointer:coarse) { .relay-panel :is(.button,.icon-button) { min-height:44px; } }

/* Transferred from concept-panel/src/shared/styles/buttons.css. */
/* Shared button appearance and states; native element resets stay in base.css. */
.relay-panel button {
  transition:
    background 0.14s,
    color 0.14s,
    opacity 0.14s,
    border-color 0.14s,
    box-shadow 0.14s;
}
.relay-panel button:disabled {
  cursor: default;
  opacity: 0.38;
}
.relay-panel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.relay-panel .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 33px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 2px #00000008,
    inset 0 1px 0 #ffffff03;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.relay-panel .button svg {
  width: 14px;
  height: 14px;
}
.relay-panel .button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 4%);
}
.relay-panel .button:active:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 7%);
  box-shadow: inset 0 1px 2px #00000018;
}
.relay-panel .button:is(.primary,.accent) {
  background: var(--accent-fill,var(--accent));
  color: var(--on-accent);
  border-color: transparent;
  border-bottom-color: #00000015;
  font-weight: 600;
}
.relay-panel .button:is(.primary,.accent):hover:not(:disabled),
.relay-panel .button:is(.primary,.accent):active:not(:disabled) {
  background: var(--accent-fill-hover,var(--accent-strong));
}
.relay-panel .icon-button {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-secondary);
}
.relay-panel .icon-button svg {
  width: 16px;
  height: 16px;
}
.relay-panel .icon-button:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.relay-panel .icon-button:active:not(:disabled) {
  background: var(--pressed);
  color: var(--text);
}
.relay-panel .selected-tool {
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}


.relay-panel .button { line-height:normal; letter-spacing:normal; }
.relay-panel .button:active:not(:disabled) { transform:none; }
.relay-panel .icon-button { min-width:0; min-height:0; padding:0; }
@media(pointer:coarse) { .relay-panel :is(.button,.icon-button) { min-height:44px; } }

/* Transferred from concept-panel/src/shared/styles/buttons.css. */
/* Shared button appearance and states; native element resets stay in base.css. */
.relay-panel button {
  transition:
    background 0.14s,
    color 0.14s,
    opacity 0.14s,
    border-color 0.14s,
    box-shadow 0.14s;
}
.relay-panel button:disabled {
  cursor: default;
  opacity: 0.38;
}
.relay-panel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.relay-panel .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 33px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 2px #00000008,
    inset 0 1px 0 #ffffff03;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.relay-panel .button svg {
  width: 14px;
  height: 14px;
}
.relay-panel .button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 4%);
}
.relay-panel .button:active:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 7%);
  box-shadow: inset 0 1px 2px #00000018;
}
.relay-panel .button:is(.primary,.accent) {
  background: var(--accent-fill,var(--accent));
  color: var(--on-accent);
  border-color: transparent;
  border-bottom-color: #00000015;
  font-weight: 600;
}
.relay-panel .button:is(.primary,.accent):hover:not(:disabled),
.relay-panel .button:is(.primary,.accent):active:not(:disabled) {
  background: var(--accent-fill-hover,var(--accent-strong));
}
.relay-panel .icon-button {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-secondary);
}
.relay-panel .icon-button svg {
  width: 16px;
  height: 16px;
}
.relay-panel .icon-button:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.relay-panel .icon-button:active:not(:disabled) {
  background: var(--pressed);
  color: var(--text);
}
.relay-panel .selected-tool {
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}


.relay-panel .button { line-height:normal; letter-spacing:normal; }
.relay-panel .button:active:not(:disabled) { transform:none; }
.relay-panel .icon-button { min-width:0; min-height:0; padding:0; }
@media(pointer:coarse) { .relay-panel :is(.button,.icon-button) { min-height:44px; } }

/* Transferred from concept-panel/src/shared/styles/buttons.css. */
/* Shared button appearance and states; native element resets stay in base.css. */
.relay-panel button {
  transition:
    background 0.14s,
    color 0.14s,
    opacity 0.14s,
    border-color 0.14s,
    box-shadow 0.14s;
}
.relay-panel button:disabled {
  cursor: default;
  opacity: 0.38;
}
.relay-panel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.relay-panel .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 33px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 2px #00000008,
    inset 0 1px 0 #ffffff03;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.relay-panel .button svg {
  width: 14px;
  height: 14px;
}
.relay-panel .button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 4%);
}
.relay-panel .button:active:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 7%);
  box-shadow: inset 0 1px 2px #00000018;
}
.relay-panel .button:is(.primary,.accent) {
  background: var(--accent-fill,var(--accent));
  color: var(--on-accent);
  border-color: transparent;
  border-bottom-color: #00000015;
  font-weight: 600;
}
.relay-panel .button:is(.primary,.accent):hover:not(:disabled),
.relay-panel .button:is(.primary,.accent):active:not(:disabled) {
  background: var(--accent-fill-hover,var(--accent-strong));
}
.relay-panel .icon-button {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-secondary);
}
.relay-panel .icon-button svg {
  width: 16px;
  height: 16px;
}
.relay-panel .icon-button:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.relay-panel .icon-button:active:not(:disabled) {
  background: var(--pressed);
  color: var(--text);
}
.relay-panel .selected-tool {
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}


.relay-panel .button { line-height:normal; letter-spacing:normal; }
.relay-panel .button:active:not(:disabled) { transform:none; }
.relay-panel .icon-button { min-width:0; min-height:0; padding:0; }
@media(pointer:coarse) { .relay-panel :is(.button,.icon-button) { min-height:44px; } }

/* Transferred from concept-panel/src/shared/styles/buttons.css. */
/* Shared button appearance and states; native element resets stay in base.css. */
.relay-panel button {
  transition:
    background 0.14s,
    color 0.14s,
    opacity 0.14s,
    border-color 0.14s,
    box-shadow 0.14s;
}
.relay-panel button:disabled {
  cursor: default;
  opacity: 0.38;
}
.relay-panel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.relay-panel .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 33px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 2px #00000008,
    inset 0 1px 0 #ffffff03;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.relay-panel .button svg {
  width: 14px;
  height: 14px;
}
.relay-panel .button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 4%);
}
.relay-panel .button:active:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 7%);
  box-shadow: inset 0 1px 2px #00000018;
}
.relay-panel .button:is(.primary,.accent) {
  background: var(--accent-fill,var(--accent));
  color: var(--on-accent);
  border-color: transparent;
  border-bottom-color: #00000015;
  font-weight: 600;
}
.relay-panel .button:is(.primary,.accent):hover:not(:disabled),
.relay-panel .button:is(.primary,.accent):active:not(:disabled) {
  background: var(--accent-fill-hover,var(--accent-strong));
}
.relay-panel .icon-button {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-secondary);
}
.relay-panel .icon-button svg {
  width: 16px;
  height: 16px;
}
.relay-panel .icon-button:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.relay-panel .icon-button:active:not(:disabled) {
  background: var(--pressed);
  color: var(--text);
}
.relay-panel .selected-tool {
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}


.relay-panel .button { line-height:normal; letter-spacing:normal; }
.relay-panel .button:active:not(:disabled) { transform:none; }
.relay-panel .icon-button { min-width:0; min-height:0; padding:0; }
@media(pointer:coarse) { .relay-panel :is(.button,.icon-button) { min-height:44px; } }

/* Transferred from concept-panel/src/shared/styles/buttons.css. */
/* Shared button appearance and states; native element resets stay in base.css. */
.relay-panel button {
  transition:
    background 0.14s,
    color 0.14s,
    opacity 0.14s,
    border-color 0.14s,
    box-shadow 0.14s;
}
.relay-panel button:disabled {
  cursor: default;
  opacity: 0.38;
}
.relay-panel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.relay-panel .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 33px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 2px #00000008,
    inset 0 1px 0 #ffffff03;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.relay-panel .button svg {
  width: 14px;
  height: 14px;
}
.relay-panel .button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 4%);
}
.relay-panel .button:active:not(:disabled) {
  background: color-mix(in srgb, var(--raised), var(--text) 7%);
  box-shadow: inset 0 1px 2px #00000018;
}
.relay-panel .button:is(.primary,.accent) {
  background: var(--accent-fill,var(--accent));
  color: var(--on-accent);
  border-color: transparent;
  border-bottom-color: #00000015;
  font-weight: 600;
}
.relay-panel .button:is(.primary,.accent):hover:not(:disabled),
.relay-panel .button:is(.primary,.accent):active:not(:disabled) {
  background: var(--accent-fill-hover,var(--accent-strong));
}
.relay-panel .icon-button {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-secondary);
}
.relay-panel .icon-button svg {
  width: 16px;
  height: 16px;
}
.relay-panel .icon-button:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.relay-panel .icon-button:active:not(:disabled) {
  background: var(--pressed);
  color: var(--text);
}
.relay-panel .selected-tool {
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}


.relay-panel .button { line-height:normal; letter-spacing:normal; }
.relay-panel .button:active:not(:disabled) { transform:none; }
.relay-panel .icon-button { min-width:0; min-height:0; padding:0; }
@media(pointer:coarse) { .relay-panel :is(.button,.icon-button) { min-height:44px; } }

