/* Shared tools skin — cream paper, ink, orange. No overhang. */
.tool-page .page-hero {
  width: min(760px, calc(100% - 40px));
  padding-bottom: 48px;
}
.tool-page .page-hero h1 {
  max-width: 16ch;
  overflow-wrap: anywhere;
}
.tool-page .page-hero input,
.tool-page .page-hero textarea,
.tool-page .page-hero select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  margin: 0 0 14px;
  color: var(--ink);
}
.tool-page .page-hero textarea { min-height: 110px; resize: vertical; }
.tool-page .page-hero label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 16px 0 6px;
}
.tool-page .page-hero .btn,
.tool-page .row .btn {
  min-height: 48px;
  border-radius: 12px;
  padding: 12px 20px;
}
.tool-page .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 16px; }
.tool-page pre, .tool-page .tool-out {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: var(--inset), var(--shadow-sm);
}
.tool-page .tool-grid-local {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .tool-page .tool-grid-local { grid-template-columns: 1fr; }
}

.tool-index .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-index .cat { min-height: 100%; }
.tool-index .cat h3 { font-size: 20px; overflow-wrap: anywhere; }
.tool-index .kicker {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--acc); font-weight: 650; margin: 0 0 18px;
}
@media (max-width: 900px) {
  .tool-index .tool-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tool-index .tool-grid { grid-template-columns: 1fr; }
}

/* Domain search — Namecheap layout, Bizzit skin */
.ds-page { padding-bottom: 80px; }
.ds-hero-inner { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 12px; }
.ds-hero-inner h1 { max-width: 18ch; }
.ds-bar {
  display: flex; align-items: stretch; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--inset), var(--shadow);
  margin: 22px 0 10px;
  flex-wrap: nowrap;
}
.ds-bar .mag {
  width: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); flex: 0 0 auto;
}
.ds-bar input {
  flex: 1; min-width: 0; border: 0; min-height: 56px; font-size: 18px;
  padding: 0 8px; background: transparent; outline: none;
}
.ds-bar .beast-link {
  align-self: center; color: var(--acc); font-weight: 650; font-size: 13px;
  text-decoration: none; padding: 0 12px; white-space: nowrap;
}
.ds-bar .beast-link.on { text-decoration: underline; }
.ds-bar .search-btn {
  background: var(--acc); color: #fff; border: 0; min-width: 120px;
  font-weight: 700; font-size: 16px; cursor: pointer; border-radius: 0;
}
.ds-bar .search-btn:hover { filter: brightness(1.08); }
.ds-transfer { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.ds-transfer a { color: var(--acc); font-weight: 650; text-decoration: none; }
.ds-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.ds-tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 12px; font: inherit; font-weight: 650; font-size: 14px;
  cursor: pointer; color: var(--muted); margin-bottom: -9px;
}
.ds-tab.on { color: var(--ink); border-bottom-color: #2f6d4f; }
.ds-extras {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin: 0 0 22px;
}
.ds-extra {
  background: var(--glass); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-size: 13px; color: var(--muted);
  box-shadow: var(--inset);
}
.ds-extra strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 14px; }
.ds-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 14px; font-size: 14px; }
.ds-filters select, .ds-filters input[type="number"] {
  min-height: 40px; border-radius: 10px; border: 1px solid var(--line);
  padding: 6px 10px; background: #fff; width: auto;
}
.ds-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ds-cat {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted);
}
.ds-cat.on { background: var(--ink); color: var(--btn-ink); border-color: var(--ink); }
.ds-hot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.ds-hot button {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.ds-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.ds-table {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--inset), var(--shadow-sm);
}
.ds-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 12px;
  align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.ds-row:last-child { border-bottom: 0; }
.ds-row.taken { opacity: .62; }
.ds-row.hit { animation: dsPop .45s ease; }
.ds-row .nm { font-weight: 700; overflow-wrap: anywhere; }
.ds-row .nm .tld { color: var(--acc); }
.ds-row .wh { font-size: 12px; color: var(--muted); }
.ds-row .pr { font-weight: 700; text-align: right; }
.ds-row .pr span { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.ds-row .btn { padding: 10px 16px; min-height: 42px; border-radius: 10px; white-space: nowrap; }
.ds-row .btn.ghost { background: transparent; }
.ds-subcard {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 16px;
  background: #fff;
}
.ds-subcard.ok { border-color: #2f6d4f; }
.ds-subcard.no { border-color: #8a3b32; }
.ds-cart {
  position: sticky; top: 72px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; box-shadow: var(--inset), var(--shadow-sm);
}
.ds-cart h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; }
.ds-cart-item {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.ds-cart-item button { background: none; border: 0; color: var(--muted); cursor: pointer; }
.ds-fun { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ds-skel { height: 22px; background: var(--paper-2); border-radius: 8px; margin: 14px 18px; }
@keyframes dsPop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 720px) {
  .ds-layout { grid-template-columns: 1fr; }
  .ds-cart { position: static; }
  .ds-extras { grid-template-columns: 1fr 1fr; }
  .ds-row { grid-template-columns: minmax(0,1fr) auto; }
  .ds-row .pr { grid-column: 1; text-align: left; }
}
@media (max-width: 560px) {
  .ds-bar { flex-wrap: wrap; }
  .ds-bar .search-btn { width: 100%; min-height: 48px; }
  .ds-bar .beast-link { padding: 8px 12px; }
  .ds-extras { grid-template-columns: 1fr; }
}

/* Support widget */
.bz-chat-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--acc); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  box-shadow: 0 12px 32px rgba(226,93,42,.35);
}
.bz-chat-btn svg { display: block; }
.bz-chat-btn:hover { filter: brightness(1.08); }
.bz-chat {
  position: fixed; right: 18px; bottom: 84px; z-index: 80;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 120px));
  display: none; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.bz-chat.open { display: flex; }
.bz-chat header {
  padding: 14px 16px; background: var(--ink); color: #fff;
  font-weight: 650; font-size: 14px;
}
.bz-chat header span { display: block; font-weight: 400; font-size: 12px; opacity: .75; margin-top: 2px; }
.bz-chat .log {
  flex: 1; overflow: auto; padding: 12px 14px; font-size: 14px;
  display: flex; flex-direction: column; gap: 8px; background: var(--paper);
}
.bz-chat .msg { padding: 10px 12px; border-radius: 12px; max-width: 92%; }
.bz-chat .msg.bot { background: #fff; border: 1px solid var(--line); }
.bz-chat .msg.me { background: var(--ink); color: #fff; margin-left: auto; }
.bz-chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.bz-chat input {
  flex: 1; min-width: 0; min-height: 42px; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px;
}
.bz-chat button.send {
  background: var(--acc); color: #fff; border: 0; border-radius: 10px;
  padding: 0 14px; font-weight: 700; cursor: pointer;
}
body.studio-page .bz-chat-btn, body.studio-page .bz-chat { display: none !important; }
