/* Toolnest independent dark UI; no Bootstrap / Tailwind dependencies. */
/* Shared breadcrumbs for all dark-layout tool pages. */
:root {
    color-scheme: dark;
    --tn-bg: #2d2d2d;
    --tn-panel: #424242;
    --tn-header: #303030;
    --tn-nav: #242424;
    --tn-text: #f0f0f0;
    --tn-muted: #d1d1d1;
    --tn-line: #989898;
    --tn-focus: #a6dddb;
    --tn-max: 1280px;
    --tn-bottom-height: 72px;
    --tn-space: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tn-dark {
    margin: 0;
    min-height: 100vh;
    padding-bottom: calc(var(--tn-bottom-height) + env(safe-area-inset-bottom));
    background: var(--tn-panel);
    color: var(--tn-text);
    font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}
.tn-dark img { max-width: 100%; }
.tn-dark a { color: inherit; }
.tn-dark a:focus-visible, .tn-dark button:focus-visible {
    outline: 3px solid var(--tn-focus);
    outline-offset: 3px;
}
.tn-shell {
    width: min(100%, var(--tn-max));
    margin-inline: auto;
    padding-inline: var(--tn-space);
}
.tn-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap;
    border: 0;
}
.tn-skip { position: fixed; z-index: 100; top: -70px; left: 12px; padding: 9px 14px; background: #fff; color: #161616 !important; }
.tn-skip:focus { top: 10px; }
.tn-header { background: var(--tn-header); border-bottom: 2px solid var(--tn-line); }
.tn-header__inner {
    min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center; gap: 12px;
}
.tn-header__context { font-size: .8rem; color: var(--tn-muted); }
.tn-header__brand { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; white-space: nowrap; }
.tn-header__brand img { width: 38px; height: 38px; }
.tn-header__brand span { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 350; letter-spacing: .035em; }
.tn-header__end { min-width: 0; }
.tn-main { padding-block: 26px 44px; }
.tn-tool-breadcrumbs{margin-bottom:10px;font-size:.84rem;color:var(--tn-muted,#d1d1d1)}
.tn-tool-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:0;list-style:none}
.tn-tool-breadcrumbs li+li::before{content:"/";padding-right:7px;color:#b3b3b3}
.tn-site-footer { padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--tn-line); font-size: .86rem; color: var(--tn-muted); }
.tn-site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 12px; }
.tn-site-footer a { text-underline-offset: .24em; }
.tn-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--tn-nav); border-top: 1px solid var(--tn-line);
    padding-bottom: env(safe-area-inset-bottom);
}
.tn-bottom-nav__inner {
    max-width: var(--tn-max); margin: auto;
    min-height: var(--tn-bottom-height);
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
}
.tn-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; text-align: center; min-height: 60px;
    text-decoration: none; color: var(--tn-muted); font-size: .75rem;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: background .15s ease;
}
.tn-bottom-nav a:last-child { border-right: 0; }
.tn-bottom-nav a:is(:hover, [aria-current="page"]) { background: #444; color: #fff; }
.tn-bottom-nav__icon { font-size: 1.1rem; line-height: 1.2; font-weight: 650; }
@media(max-width: 640px) {
    :root { --tn-space: 14px; --tn-bottom-height: 64px; }
    body.tn-dark { font-size: 14px; }
    .tn-header__inner { min-height: 60px; }
    .tn-header__brand { gap: 7px; }
    .tn-header__brand img { width: 26px; height: 26px; }
    .tn-header__context { font-size: .66rem; }
    .tn-main { padding-block: 20px 32px; }
    .tn-bottom-nav a { font-size: .7rem; }
}
@media(prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tn-bottom-nav a { transition: none; }
}
