@font-face {
  font-family: "Tools Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/google/manrope-latin-e310b55a7f.woff2") format("woff2");
}

@font-face {
  font-family: "Tools Noto Myanmar";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/google/noto-sans-myanmar-myanmar-ee45878d8e.woff2") format("woff2");
  unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F;
}

html[data-tools-page] {
  color-scheme: light;
  --dz-bg: #f4f5f7;
  --dz-card: #fff;
  --dz-text: #111318;
  --dz-muted: #5f6672;
  --dz-accent: #3b5bdb;
  --dz-border: #e1e4eb;
  --tools-radius: 20px;
  font-family: "Tools Manrope", "Tools Noto Myanmar", system-ui, sans-serif;
  color: var(--dz-text);
  background: var(--dz-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-tools-page] * { box-sizing: border-box; }
html[data-tools-page] [hidden] { display: none !important; }
html[data-tools-page] .tool-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
html[data-tools-page] { min-width: 0; overflow-y:scroll; }
html[data-tools-page]::-webkit-scrollbar,
html[data-tools-page] ::-webkit-scrollbar { width:10px; height:10px; }
html[data-tools-page] body { margin: 0; font-size: 15px; line-height: 1.75; }
html[data-tools-page] button,html[data-tools-page]  input,html[data-tools-page]  textarea,html[data-tools-page]  select { font: inherit; }
html[data-tools-page] button,html[data-tools-page]  input,html[data-tools-page]  textarea,html[data-tools-page]  select,html[data-tools-page]  a { -webkit-tap-highlight-color: transparent; }
html[data-tools-page] button { cursor: pointer; }
html[data-tools-page] button:disabled,html[data-tools-page]  input:disabled,html[data-tools-page]  select:disabled,html[data-tools-page]  textarea:disabled {
  cursor: not-allowed;
  opacity: .55;
}
html[data-tools-page] a { color: var(--dz-accent); text-underline-offset: 3px; }
html[data-tools-page] img,html[data-tools-page]  svg,html[data-tools-page]  canvas { vertical-align: middle; }
html[data-tools-page] img { max-width: 100%; }
html[data-tools-page] button:focus-visible,html[data-tools-page]  a:focus-visible,html[data-tools-page]  summary:focus-visible,html[data-tools-page]
input:focus-visible,html[data-tools-page]  select:focus-visible,html[data-tools-page]  textarea:focus-visible {
  outline: 3px solid #879bf1;
  outline-offset: 4px;
}

html[data-tools-page] .tools-shell { width: min(1136px, calc(100% - 48px)); margin-inline: auto; }
html[data-tools-page] .tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-block: 14px;
  border-bottom: 0;
}
html[data-tools-page] .tools-header > a { flex-shrink: 0; text-decoration: none; border-radius: 8px; }
html[data-tools-page] .tools-header > a img { display: block; width: 120px; height: auto; max-height: 48px; object-fit: contain; }
html[data-tools-page] .tools-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html[data-tools-page] .tools-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #464d59;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
html[data-tools-page] .tools-nav a:hover { color: var(--dz-accent); background: #e9edfc; }
html[data-tools-page] .tools-nav a[aria-current="page"] { color: var(--dz-accent); background: #e8edff; }
html[data-tools-page] .tools-main { padding-block: 18px 48px; }
html[data-tools-page] .tools-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-bottom: 16px; font-size: 13px; color: var(--dz-muted); }
html[data-tools-page] .tools-breadcrumb a { color: var(--dz-muted); text-decoration: none; }
html[data-tools-page] .tools-breadcrumb a:hover { color: var(--dz-accent); text-decoration: underline; }
html[data-tools-page] .tools-breadcrumb [aria-current="page"] { min-width: 0; overflow-wrap: anywhere; color: var(--dz-text); font-weight: 600; }
@media (min-width: 768px) {
  html[data-tools-page] .tools-main { padding-block: 8px 48px; }
  html[data-tools-page] .tools-breadcrumb { gap: 0 2px; min-height: 44px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; font-weight: 500; }
  html[data-tools-page] .tools-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 10px; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
  html[data-tools-page] .tools-breadcrumb > a:first-child { margin-left: -8px; }
  html[data-tools-page] .tools-breadcrumb a:hover { background: rgba(59, 91, 219, .08); color: var(--dz-accent); text-decoration: none; }
  html[data-tools-page] .tools-breadcrumb a:focus-visible { outline: 2px solid var(--dz-accent); outline-offset: 2px; }
  html[data-tools-page] .tools-breadcrumb > span[aria-hidden="true"] { display: inline-flex; align-items: center; padding: 0 2px; opacity: .5; font-size: 13px; font-weight: 400; user-select: none; }
  html[data-tools-page] .tools-breadcrumb [aria-current="page"] { padding: 0 6px; }
}
/* One shared content frame from the breadcrumb to the working surface. */
html[data-tools-page] .tools-hero { margin-bottom:20px; }
html[data-tools-page] .tools-hero h1 { margin:0 0 5px; font-size:clamp(24px,2.6vw,30px); font-weight:800; line-height:1.45; letter-spacing:-.035em; overflow-wrap:anywhere; }
html[data-tools-page] .tools-hero p { max-width:800px; margin:0; color:var(--dz-muted); font-size:14px; line-height:1.85; }
html[data-tools-page] .tools-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
html[data-tools-page] .tools-card { display:flex; flex-direction:column; align-items:flex-start; min-width:0; position:relative; padding:18px; border:1px solid transparent; border-radius:18px; background:var(--dz-card); color:var(--dz-text); text-decoration:none; box-shadow:0 2px 6px #11131804; transition:border-color .15s ease,box-shadow .15s ease; }
html[data-tools-page] a.tools-card:hover { border-color:#cbd5ed; box-shadow:0 4px 12px #1f32430a; }
html[data-tools-page] .tools-card-top { display:flex; align-items:center; justify-content:space-between; width:100%; margin-bottom:14px; }
html[data-tools-page] .tools-card-icon { display:flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; border-radius:13px; background:#e6ebff; color:#3553c5; }
html[data-tools-page] .tools-card-icon svg { width:24px; height:24px; }
html[data-tools-page] .tools-card-arrow { color:var(--dz-muted); font-size:21px; line-height:1; }
html[data-tools-page] .tools-card h2 { margin:0 0 6px; font-size:16px; font-weight:800; line-height:1.5; letter-spacing:-.025em; }
html[data-tools-page] .tools-card p { margin:0 0 14px; color:var(--dz-muted); font-size:13px; line-height:1.8; }
html[data-tools-page] .tools-badge { display:inline-flex; align-items:center; margin-top:auto; padding:3px 8px; border-radius:7px; background:#edf1ff; color:#3b52a5; font-size:11px; font-weight:700; line-height:1.6; }
html[data-tools-page] .tools-related { margin-top:24px; }
html[data-tools-page] .tools-related > h2 { margin:0 0 12px; font-size:17px; font-weight:800; line-height:1.6; }
html[data-tools-page] .tools-related .tools-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
html[data-tools-page] .tools-related .tools-card { padding:16px; }
html[data-tools-page] .tools-related .tools-card p { display:none; }
html[data-tools-page] .tools-related .tools-card-top { margin-bottom:10px; }
html[data-tools-page] .tools-related .tools-card h2 { margin-bottom:10px; font-size:14px; }
html[data-tools-page] .tools-related .tools-card-icon { width:36px; height:36px; border-radius:10px; }
html[data-tools-page] .tools-related .tools-card-icon svg { width:21px; height:21px; }
html[data-tools-page] .tools-workspace { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr); gap:16px; align-items:start; }
html[data-tools-page] .tools-workspace > *,html[data-tools-page]  .tools-aside > * { min-width:0; }
html[data-tools-page] .tools-aside { display:grid; gap:12px; }
html[data-tools-page] .tools-hub-note { max-width:900px; margin:18px 0 0; color:var(--dz-muted); font-size:12px; line-height:1.85; }
html[data-tools-page] .tools-panel { min-width:0; padding:20px; border:0; border-radius:18px; background:var(--dz-card); }
html[data-tools-page] .tools-panel > :first-child { margin-top:0; }
html[data-tools-page] .tools-panel > :last-child { margin-bottom:0; }
html[data-tools-page] .tools-copy { color:var(--dz-muted); font-size:13px; line-height:1.85; overflow-wrap:anywhere; }
html[data-tools-page] .tools-copy h2,html[data-tools-page]  .tools-copy h3 { color:var(--dz-text); font-weight:800; line-height:1.6; }
html[data-tools-page] .tools-copy h2 { margin:0 0 10px; font-size:15px; }
html[data-tools-page] .tools-copy h3 { margin:18px 0 8px; font-size:14px; }
html[data-tools-page] .tools-copy p { margin:0 0 12px; }
html[data-tools-page] .tools-copy ol,html[data-tools-page]  .tools-copy ul { margin:0; padding-left:19px; }
html[data-tools-page] .tools-copy li + li { margin-top:8px; }
html[data-tools-page] .tools-copy strong { color:var(--dz-text); font-weight:750; }
html[data-tools-page] .tools-copy code { padding:2px 5px; border-radius:5px; background:#f0f2f7; color:#343b49; font-size:.9em; overflow-wrap:anywhere; }
html[data-tools-page] .tools-faq > h2 { margin:0 0 8px; font-size:15px; }
html[data-tools-page] .tools-faq details + details { border-top:1px solid var(--dz-border); }
html[data-tools-page] .tools-faq summary { padding:11px 0; cursor:pointer; color:var(--dz-text); font-size:13px; font-weight:700; line-height:1.75; }
html[data-tools-page] .tools-faq details[open] summary { color:var(--dz-accent); }
html[data-tools-page] .tools-faq details p { margin:0 0 12px; color:var(--dz-muted); font-size:13px; line-height:1.85; }
html[data-tools-page] .tools-store-links ul { list-style:none; padding-left:0; }
html[data-tools-page] .tools-store-links li + li { margin-top:4px; border-top:1px solid var(--dz-border); padding-top:4px; }
html[data-tools-page] .tools-store-links a { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:38px; padding:4px 0; color:var(--dz-text); font-size:13px; font-weight:700; text-decoration:none; }
html[data-tools-page] .tools-store-links a:hover { color:var(--dz-accent); }
html[data-tools-page] .tools-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; padding-block:20px 24px; border-top:1px solid var(--dz-border); color:var(--dz-muted); font-size:12px; }
html[data-tools-page] .tools-footer p { margin:0; }
html[data-tools-page] .tools-footer a { color:var(--dz-muted); }
html[data-tools-page] .tools-footer nav { display:flex; flex-wrap:wrap; gap:16px; }

html[data-tools-page] .utility-card { padding: 20px; border: 0; border-radius: var(--tools-radius); background: var(--dz-card); }
html[data-tools-page] .utility-card > :first-child { margin-top: 0; }
html[data-tools-page] .utility-card > :last-child { margin-bottom: 0; }
html[data-tools-page] .utility-card h2 { margin: 0 0 20px; font-size: 20px; line-height: 1.6; font-weight: 800; }
html[data-tools-page] .utility-card label { display: block; margin-bottom: 8px; color: var(--dz-text); font-size: 14px; font-weight: 700; }
html[data-tools-page] .utility-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),html[data-tools-page]
.utility-card textarea,html[data-tools-page]  .utility-card select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  background: #fff;
  color: var(--dz-text);
  font-size: 16px;
  line-height: 1.6;
}
html[data-tools-page] .utility-card textarea { min-height: 150px; resize: vertical; }
html[data-tools-page] .utility-card input::placeholder,html[data-tools-page]  .utility-card textarea::placeholder { color: #858c98; opacity: 1; }
html[data-tools-page] .utility-card input:focus,html[data-tools-page]  .utility-card textarea:focus,html[data-tools-page]  .utility-card select:focus { border-color: var(--dz-accent); }
html[data-tools-page] .utility-card input[type="range"] { width: 100%; min-height: 30px; margin: 8px 0; accent-color: var(--dz-accent); }
html[data-tools-page] .utility-card input[type="checkbox"],html[data-tools-page]  .utility-card input[type="radio"] { flex-shrink: 0; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--dz-accent); }
html[data-tools-page] .utility-card input[type="file"] { font-size: 13px !important; }
html[data-tools-page] .utility-card input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 10px; border: 0; border-radius: 7px; background: #edf0fd; color: #2d49b7; font: inherit; font-weight: 700; cursor: pointer; }
html[data-tools-page] .utility-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; min-width: 0; margin: 20px 0; padding: 0; border: 0; }
html[data-tools-page] .utility-options legend { margin-bottom: 12px; padding: 0; color: var(--dz-muted); font-size: 13px; font-weight: 700; }
html[data-tools-page] .utility-options label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.8; }
html[data-tools-page] .utility-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
html[data-tools-page] .utility-actions button,html[data-tools-page]  .utility-card .primary,html[data-tools-page]  .utility-card .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--dz-border);
  border-radius: 12px;
  background: #fff;
  color: #3f4755;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
}
html[data-tools-page] .utility-card .primary { border-color: var(--dz-accent); background: var(--dz-accent); color: #fff; }
html[data-tools-page] .utility-card .primary:hover:not(:disabled) { background: #2f4bc0; border-color: #2f4bc0; }
html[data-tools-page] .utility-card .secondary:hover:not(:disabled),html[data-tools-page]  .utility-actions button:not(.primary):hover:not(:disabled) { background: #f2f4fa; border-color: #cdd4e3; }
html[data-tools-page] .utility-card > form + label { margin-top: 22px; }
html[data-tools-page] .utility-unit-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
html[data-tools-page] .utility-unit-row > div { min-width: 0; }
html[data-tools-page] .utility-output { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; letter-spacing: .01em; }
html[data-tools-page] .utility-output[readonly] { background: #f6f7fb !important; }
html[data-tools-page] .utility-result { display: block; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--dz-border); }
html[data-tools-page] output.utility-result { font-size: 18px; font-weight: 750; line-height: 1.8; overflow-wrap: anywhere; }
html[data-tools-page] .utility-result canvas { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 12px; }
html[data-tools-page] .utility-status { min-height: 26px; margin: 12px 0 0; color: var(--dz-muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
html[data-tools-page] .utility-status[data-kind="error"],html[data-tools-page]  .utility-status[role="alert"] { color: #b42318; }
html[data-tools-page] .utility-status[data-kind="success"] { color: #167747; }

@media (min-width:1200px) {
  html[data-tools-page="hub"] .tools-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media (max-width:960px) {
  html[data-tools-page] .tools-workspace { grid-template-columns:minmax(0,1fr); }
  html[data-tools-page] .tools-aside { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
}
@media (max-width:767px) {
  html[data-tools-page] .tools-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  html[data-tools-page] .tools-related .tools-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[data-tools-page] .tools-aside { grid-template-columns:minmax(0,1fr); }
  html[data-tools-page] .tools-card { padding:14px; border-radius:16px; }
  html[data-tools-page] .tools-card h2 { font-size:15px; }
  html[data-tools-page] .tools-card p { font-size:12px; line-height:1.8; }
  html[data-tools-page] .tools-card-top { margin-bottom:12px; }
  html[data-tools-page] .tools-main { padding-block:16px 28px; }
  html[data-tools-page] .tools-hero { margin-bottom:16px; }
  html[data-tools-page] .tools-hero h1 { font-size:24px; }
  html[data-tools-page] .tools-hero p { font-size:13px; }
  html[data-tools-page] .tools-workspace { gap:12px; }
  html[data-tools-page] .tools-panel,html[data-tools-page]  .utility-card { padding:18px; border-radius:18px; }
  html[data-tools-page] .utility-card h2 { font-size:18px; }
  html[data-tools-page] .utility-options { gap:12px; }
  html[data-tools-page] .utility-actions { gap:8px; }
  html[data-tools-page] .utility-actions button,html[data-tools-page]  .utility-card .primary,html[data-tools-page]  .utility-card .secondary { padding-inline:15px; }
  html[data-tools-page] .utility-unit-row { gap:12px; }
  html[data-tools-page] .tools-related { margin-top:20px; }
  html[data-tools-page] .tools-footer { align-items:flex-start; flex-direction:column; }
}
@media (max-width:640px) { html[data-tools-page] .tools-shell { width:calc(100% - 32px); } }
@media (max-width:380px) {
  html[data-tools-page] .tools-shell { width:calc(100% - 24px); }
  html[data-tools-page] .tools-card { padding:12px; }
  html[data-tools-page] .tools-badge { font-size:10px; }
  html[data-tools-page] .utility-options { grid-template-columns:minmax(0,1fr); }
  html[data-tools-page] .tools-panel,html[data-tools-page]  .utility-card { padding:16px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-tools-page] .tools-card { transition: none; }
  html[data-tools-page] a.tools-card:hover { transform: none; }
}

/* Tool surfaces follow the shared storefront palette. */
html[data-tools-page] .tools-skip { position: fixed; top: 8px; left: 16px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: #fff; transform: translateY(-150%); }
html[data-tools-page] .tools-skip:focus { transform: translateY(0); }
html[data-tools-page] .tools-card[data-tool="password"] .tools-card-icon { background: #e2f3ed; color: #187450; }
html[data-tools-page] .tools-card[data-tool="qr"] .tools-card-icon { background: #f1eaff; color: #6945a6; }
html[data-tools-page] .tools-card[data-tool="data"] .tools-card-icon { background: #fff0d8; color: #91610a; }
@media (max-width:767px) {
  html[data-tools-page] { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
}
html[data-tools-page] .tools-instructions summary { color:var(--dz-text); font-size:14px; font-weight:750; cursor:pointer; }
html[data-tools-page] .tools-instructions[open] summary { margin-bottom:12px; }

/* Compact account checker, using the storefront's card and button palette. */
html[data-tools-page] .game-check-card{padding:20px}
html[data-tools-page] .game-check-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:22px}
html[data-tools-page] .game-check-picker button{min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #e1e6f0;border-radius:12px;padding:12px 8px;background:#f7f8fb;color:#4c5667;font-size:13px;font-weight:750;line-height:1.45;overflow-wrap:anywhere}
html[data-tools-page] .game-check-picker button[aria-pressed="true"]{background:#edf1ff;border-color:#8a9bed;color:#304bc9}
html[data-tools-page] .game-check-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
html[data-tools-page] .game-check-fields.is-paired{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
html[data-tools-page] .game-check-fields label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}
html[data-tools-page] .game-check-fields input{width:100%;min-width:0;padding:13px 14px;border:1px solid #dce2ed;border-radius:12px;background:#fff;color:#172335}
html[data-tools-page] .game-check-actions{display:flex;align-items:center;gap:10px;margin-top:18px}
html[data-tools-page] .game-check-actions button{padding:12px 18px;border-radius:12px;border:1px solid #e0e5ef;font-weight:750}
html[data-tools-page] .game-check-actions .primary{flex:1;background:#3e55dd;color:#fff;border-color:#3e55dd}
html[data-tools-page] .game-check-actions .secondary{background:#f7f8fb;color:#596577}
html[data-tools-page][data-theme="dark"] .game-check-actions .secondary{background:#283348;color:#e0e7f5;border-color:var(--border-soft)}
html[data-tools-page] .game-check-result{display:grid;gap:5px;border-radius:14px;background:#ecf8f2;border:1px solid #d3ecdf;padding:18px;margin-top:14px;overflow-wrap:anywhere}
html[data-tools-page] .game-check-result>span{font-size:12px;color:#37705b}html[data-tools-page] .game-check-result strong{font-size:24px;color:#16543a}html[data-tools-page] .game-check-result small{font-size:13px;color:#52685f}
html[data-tools-page][data-theme="dark"] .game-check-result{border-color:var(--border-soft)}
html[data-tools-page][data-theme="dark"] .game-check-result>span{color:#a2ddbf}
html[data-tools-page][data-theme="dark"] .game-check-result strong{color:#8ce4b6}
html[data-tools-page][data-theme="dark"] .game-check-result small{color:var(--dz-muted)}
html[data-tools-page] .game-check-note{margin:16px 0 0;color:#7a8391;font-size:12px}
html[data-tools-page] .game-check-card .utility-status:empty{display:none}html[data-tools-page] .game-check-card .utility-status{margin:14px 0 0;font-size:13px}
@media(min-width:600px){html[data-tools-page] .game-check-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:380px){html[data-tools-page] .game-check-card{padding:18px}html[data-tools-page] .game-check-fields.is-paired{grid-template-columns:minmax(0,1fr)}html[data-tools-page] .game-check-picker button{font-size:12px;padding:12px 6px}}

/* Mobile follows the reading pages: one Back/title/theme bar, no logo menu row. */
html[data-tools-page] .tools-back,html[data-tools-page] .tools-mobile-title { display:none; }
/* Content and breadcrumb share the Categories page frame. */
@media (min-width:768px) {
  html[data-tools-page] .tools-shell { width:100%; max-width:1200px; padding-inline:24px; }
  html[data-tools-page] .tools-main > * { width:100%; max-width:56rem; margin-inline:auto; }
}
@media (min-width:1024px) {
  html[data-tools-page] .tools-shell { padding-inline:32px; }
  html[data-tools-page] .tools-main > * { max-width:none; }
}
@media (max-width:767px) {
  html[data-tools-page] .tools-breadcrumb { display:none; }
  html[data-tools-page] .tools-header { position:sticky;top:0;z-index:20;min-height:56px;gap:4px;padding-block:0;background:var(--dz-bg); }
  html[data-tools-page] .tools-header .tools-brand { display:none; }
  html[data-tools-page] .tools-header .tools-back { display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:-12px;color:var(--dz-text);border:0;border-radius:50%; }
  html[data-tools-page] .tools-back svg { width:22px;height:22px; }
  html[data-tools-page] .tools-header .tools-back:hover { background:var(--dz-card); }
  html[data-tools-page] .tools-mobile-title { display:block;flex:1;min-width:0;font-size:17px;font-weight:800;line-height:1.4;text-align:left;color:var(--dz-text); }
  html[data-tools-page] .tools-header .tools-nav { flex:none;margin-left:auto;gap:0; }
  html[data-tools-page] .tools-header .tools-nav > a { display:none; }
}

/* The tool view has its own public chrome, while the shop stays mounted. */
html[data-tools-page] body { display:block; margin:0; padding:0; min-height:100vh; background:var(--dz-bg); color:var(--dz-text); font-family:inherit; }
html[data-tools-page] body > :not(#public-tools-view):not(script) { display:none !important; }
html[data-tools-page] #public-tools-view { display:block; }
html[data-tools-page] .tools-main { width:auto; max-width:none; margin:0; }
html[data-tools-page] .tools-footer { position:static; display:flex; }

/* Tools stays lightweight until Support is opened. These overlays remain usable after the app loads. */
html[data-tools-page="hub"] body > [data-web-chat-launcher]:not(#public-tools-view){display:grid!important}
html[data-tools-page="hub"] body > .web-chat-panel:not(#public-tools-view){display:flex!important}
html[data-tools-page="hub"] body > #sheet:not(.closed),html[data-tools-page="hub"] body > #sheet-overlay:not(.hidden),html[data-tools-page="hub"] body > #toast:not(.hidden-toast){display:block!important}
@media(max-width:640px){html[data-tools-page="hub"] body > .web-chat-backdrop:not(#public-tools-view){display:block!important}}
