/* The tools' common pieces on top of hyperdc.css and hostpanel.css (corporate blue, sign-in card). */
html, body { height: 100%; }
body { overflow: hidden; }
.hp-login { overflow-y: auto; height: 100dvh; }

/* Icons are never boxed: the design's toast and question frames lose their box here. */
.hx-m-ico, .hx-toast .hx-t-ico { background: none; border: 0; box-shadow: none; width: auto; height: auto; }
.hx-m-ico { font-size: 1.35rem; padding-top: 2px; }
.hx-toast { grid-template-columns: auto minmax(0, 1fr) auto; }

/* A plain icon button: no frame, a soft tint on hover. */
.tool-ib { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--hx-ink-2); cursor: pointer; line-height: 1; }
.tool-ib:hover { background: color-mix(in srgb, var(--hx-accent) 10%, transparent); color: var(--hx-ink); }
.tool-ib:disabled { opacity: 0.4; cursor: default; background: transparent; }

.tool-modal { width: min(560px, 100%); }
.tool-m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px 22px; min-width: 0; }
.tool-m-head h2 { margin: 0; font-size: 1.08rem; letter-spacing: -0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-m-body { padding: 4px 22px 18px; overflow-y: auto; min-height: 0; }

.tool-menu { z-index: 2200; overflow-y: auto; }
.tool-menu > button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tool-field { display: grid; gap: 5px; font-size: 0.86rem; font-weight: 500; color: var(--hx-ink-2); margin-bottom: 14px; }
.tool-field:last-child { margin-bottom: 0; }
.tool-field > .hx-seg { justify-self: start; }

.tool-spin { animation: tool-spin 0.9s linear infinite; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tool-spin { animation: none; } }
