:where(.wn-coco-tool) {
            /* Glass / Modern tokens */
            --bg0: #0b1020;
            --bg: #eef3ff;
            --panel: rgba(255, 255, 255, 0.9);
            --panel2: rgba(255, 255, 255, 0.52);
            --panel3: rgba(255, 255, 255, 0.36);

            --text: #0b1220;
            --muted: rgba(11, 18, 32, 0.68);

            --line: rgba(16, 28, 55, 0.16);
            --line2: rgba(255, 255, 255, 0.9);

            --shadow: 0 18px 60px rgba(10, 30, 70, 0.1);
            --shadow2: 0 10px 28px rgba(10, 30, 70, 0.08);
            --radius: 18px;

            --primary: #356bff;
            --primary2: #68a2ff;
            --focus: rgba(53, 107, 255, 0.22);

            --danger: #e04b4b;
            --ok: #1f9d62;

            --ring: 0 0 0 4px rgba(53, 107, 255, 0.18);

            /* coconala logo guideline colors (ver.5.1) */
            --coco-blue: #009dff;
            --coco-green: #22ccbb;
            --coco-yellow: #ffea00;
            --coco-orange: #ff9900;
            --coco-pink: #ee4499;
            --coco-purple: #b033dd;
            --coco-black: #333333;
            --coco-white: #ffffff;

            /* UI area accents */
            --seller-accent: var(--coco-orange);
            --seller-accent2: var(--coco-yellow);
            --buyer-accent: var(--coco-blue);
            --buyer-accent2: var(--coco-green);
            --coco-accent: var(--coco-green);
            --coco-accent2: var(--coco-purple);
        }

        :where(.wn-coco-tool) * {
            box-sizing: border-box;
        }

        :where(.wn-coco-tool),
:where(.wn-coco-tool) {
            /* height: 100%; */
        }

        :where(.wn-coco-tool) {
            margin: 0;
            font-family:
                ui-sans-serif,
                system-ui,
                -apple-system,
                "Segoe UI",
                Roboto,
                "Hiragino Kaku Gothic ProN",
                "Hiragino Sans",
                "Yu Gothic UI",
                "Yu Gothic",
                "Meiryo",
                Arial,
                "Apple Color Emoji",
                "Segoe UI Emoji";
            color: var(--text);
            background: radial-gradient(1200px 520px at 18% -10%, rgba(53, 107, 255, 0.18), transparent 60%),
                radial-gradient(900px 420px at 85% -6%, rgba(31, 157, 98, 0.14), transparent 55%),
                radial-gradient(1100px 520px at 55% 112%, rgba(224, 75, 75, 0.12), transparent 55%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35)), var(--bg);
            overflow-x: hidden;
        }

        /* soft noise layer (no images) */
        :where(.wn-coco-tool)::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            background: repeating-linear-gradient(45deg,
                    rgba(255, 255, 255, 0.08) 0px,
                    rgba(255, 255, 255, 0.08) 1px,
                    transparent 1px,
                    transparent 6px);
            opacity: 0.12;
            mix-blend-mode: overlay;
            z-index: -1;
        }

        :where(.wn-coco-tool) a {
            color: var(--primary);
            text-decoration: none;
        }

        :where(.wn-coco-tool) a:hover {
            text-decoration: underline;
        }

        :where(.wn-coco-tool) .wrap {
            max-width: 1220px;
            margin: 0 auto;
            padding: 18px 16px 64px;
        }


        /* Sticky mini menu (mobile & tablet) */
        :where(.wn-coco-tool) .stickyHead {
            /* default: non-sticky */
        }

        @media (max-width: 980.98px),
        (any-pointer: coarse) and (max-width: 1366.98px) {

            /* fixed になった stickyHead の高さ分、本文を下げる（JSで --stickyHeadH をセット） */
            :where(.wn-coco-tool) .wrap {
                padding-top: calc(32px + var(--stickyHeadH, 0px));
            }

            :where(.wn-coco-tool) .stickyHead {
                /* iOS Safari のアドレスバー伸縮で sticky が上下に揺れることがあるため、mobile/tablet は fixed に固定 */
                position: fixed;
                top: calc(env(safe-area-inset-top) + 8px);
                left: 50%;
                transform: translateX(-50%);
                width: min(1220px, calc(100vw - 32px));
                z-index: 60;
                background: color-mix(in srgb, var(--panel), transparent 18%);
                border: 1px solid var(--line2);
                border-radius: calc(var(--radius) + 2px);
                box-shadow: var(--shadow);
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
                padding: 10px 12px 8px;
                margin: 0;
                /* fixed なので余白は wrap 側で確保 */
                will-change: transform;
            }

            :where(.wn-coco-tool) header {
                padding: 0 0 8px;
            }

            :where(.wn-coco-tool) header .sub {
                display: none;
            }

            :where(.wn-coco-tool) .titleBox h1,
:where(.wn-coco-tool) .titleBox .wn-tool-title {
                font-size: 1.05rem;
                line-height: 1.15;
                margin: 0;
            }

            :where(.wn-coco-tool) .tabs {
                padding: 0 0 8px;
                gap: 8px;
            }

            :where(.wn-coco-tool) .tab {
                padding: 10px 12px;
            }

            :where(.wn-coco-tool) .quickNav {
                padding: 0;
                gap: 8px;
            }

            :where(.wn-coco-tool) .quickNav .btn {
                padding: 8px 10px;
                border-radius: 12px;
            }

            /* Icon-only mini menu (mobile & tablet) */
            :where(.wn-coco-tool) .themeToggle {
                padding: 8px 10px;
                gap: 0;
                min-width: 42px;
                min-height: 40px;
                justify-content: center;
            }

            :where(.wn-coco-tool) .themeToggleLabel,
:where(.wn-coco-tool) .tabLabel,
:where(.wn-coco-tool) .btnLabel {
                position: absolute !important;
                width: 1px !important;
                height: 1px !important;
                padding: 0 !important;
                margin: -1px !important;
                overflow: hidden !important;
                clip: rect(0, 0, 0, 0) !important;
                white-space: nowrap !important;
                border: 0 !important;
            }

            :where(.wn-coco-tool) .themeToggleIcon {
                font-size: 16px;
            }

            :where(.wn-coco-tool) .themeToggleIcon {
                display: inline-flex;
            }

            :where(.wn-coco-tool) .themeToggleIcon svg {
                width: 18px;
                height: 18px;
                display: block;
            }

            :where(.wn-coco-tool) .themeToggleIcon .icoMoon {
                display: none;
            }

            :where(.wn-coco-tool)[data-theme="dark"] .themeToggleIcon .icoSun {
                display: none;
            }

            :where(.wn-coco-tool)[data-theme="dark"] .themeToggleIcon .icoMoon {
                display: block;
            }

            :where(.wn-coco-tool) .tab {
                padding: 10px;
                min-width: 44px;
                min-height: 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 0;
            }

            :where(.wn-coco-tool) .tabIcon svg {
                width: 18px;
                height: 18px;
                display: block;
            }



            /* MDI (Pictogrammers) icon font (not Font Awesome)
               Usage: <i class="mdi mdi-..."></i>
               Source: https://pictogrammers.com/library/mdi/  (MDI)
            */
            :where(.wn-coco-tool) .tabIcon i.mdi,
:where(.wn-coco-tool) .btnIcon i.mdi {
                display: block;
                font-style: normal;
                line-height: 1;
                font-size: 18px;
                /* match .tabIcon svg size */
                width: 18px;
                height: 18px;
            }

            /* match prior SVG opacity behavior */
            :where(.wn-coco-tool) .tabIcon i.mdi {
                opacity: var(--icoOff);
                filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .12));
            }

            :where(.wn-coco-tool) .tabBtn[data-active="true"] .tabIcon i.mdi {
                opacity: 1;
            }

            :where(.wn-coco-tool) .btnIcon i.mdi {
                opacity: var(--icoOff);
            }

            :where(.wn-coco-tool) .quickBtn:hover .btnIcon i.mdi {
                opacity: 1;
            }

            :where(.wn-coco-tool) .quickNav {
                gap: 8px;
            }

            :where(.wn-coco-tool) .quickNav .btn {
                padding: 10px;
                min-width: 44px;
                min-height: 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 0;
            }

            :where(.wn-coco-tool) .btnIcon svg {
                width: 18px;
                height: 18px;
                display: block;
            }


            /* Icon rendering hardening (prevents boxed/outlined SVG glitches) */
            :where(.wn-coco-tool) .themeToggleIcon,
:where(.wn-coco-tool) .tabIcon,
:where(.wn-coco-tool) .btnIcon {
                line-height: 0;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            :where(.wn-coco-tool) .themeToggleIcon svg,
:where(.wn-coco-tool) .tabIcon svg,
:where(.wn-coco-tool) .btnIcon svg {
                background: transparent !important;
                border: 0 !important;
                outline: 0 !important;
                box-shadow: none !important;
                stroke: none;
                overflow: visible;
                flex: 0 0 auto;
            }
        }

        :where(.wn-coco-tool) header {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            justify-content: space-between;
            flex-wrap: wrap;
            padding: 5px 0;
        }

        :where(.wn-coco-tool) .titleBox {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        :where(.wn-coco-tool) h1,
:where(.wn-coco-tool) .wn-tool-title {
            font-size: 18px;
            margin: 0;
            letter-spacing: 0.02em;
        }

        /* Keep the original H1 line height when the theme embeds this as H2. */
        :where(.wn-coco-tool) :where(.wn-tool) .wn-tool-title {
            line-height: 1.18;
        }

        :where(.wn-coco-tool) .sub {
            font-size: 12px;
            color: var(--muted);
        }

        :where(.wn-coco-tool) .asof {
            display: inline-flex;
            gap: 8px;
            align-items: center;
            padding: 8px 12px;
            background: var(--panel);
            border: 1px solid var(--line2);
            border-radius: 999px;
            box-shadow: var(--shadow2);
            font-size: 12px;
            color: var(--muted);
            backdrop-filter: blur(14px) saturate(1.25);
            -webkit-backdrop-filter: blur(14px) saturate(1.25);
        }

        :where(.wn-coco-tool) .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: linear-gradient(180deg, var(--primary2), var(--primary));
            box-shadow: 0 0 0 3px rgba(53, 107, 255, 0.18);
        }

        /* Theme toggle (manual) */
        :where(.wn-coco-tool) .themeCtl {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        /* Inline service switch (shown on mobile/tablet; tabs row stays for desktop) */
        :where(.wn-coco-tool) .serviceSwitch {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 1 1 320px;
            min-width: 0;
        }

        :where(.wn-coco-tool) .svcBtn {
            appearance: none;
            border: 1px solid var(--line2);
            background: var(--panel);
            color: var(--text);
            border-radius: 999px;
            padding: 10px 12px;
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
            box-shadow: var(--shadow2);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            user-select: none;
            white-space: nowrap;
            transition:
                transform 0.18s ease,
                box-shadow 0.18s ease,
                border-color 0.18s ease,
                background 0.18s ease;
        }

        :where(.wn-coco-tool) .svcBtn:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow);
        }

        :where(.wn-coco-tool) .svcBtn:focus-visible {
            outline: none;
            box-shadow: var(--shadow), var(--ring);
        }

        :where(.wn-coco-tool) .svcIcon {
            display: inline-flex;
            font-size: 18px;
            line-height: 1;
        }

        :where(.wn-coco-tool) .svcLabel {
            display: inline-flex;
            line-height: 1;
            letter-spacing: 0.02em;
        }

        :where(.wn-coco-tool) .svcBtn[aria-selected="true"] {
            background: color-mix(in srgb, var(--primary), transparent 86%);
            border-color: color-mix(in srgb, var(--primary), transparent 55%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .svcBtn {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.14);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .svcBtn[aria-selected="true"] {
            background: color-mix(in srgb, var(--coco-blue), transparent 80%);
            border-color: color-mix(in srgb, var(--coco-blue), transparent 55%);
        }

        :where(.wn-coco-tool) .themeToggle {
            appearance: none;
            border: 1px solid var(--line2);
            background: var(--panel);
            color: var(--text);
            padding: 10px 12px;
            border-radius: 999px;
            cursor: pointer;
            font-size: 12px;
            box-shadow: var(--shadow2);
            backdrop-filter: blur(14px) saturate(1.2);
            -webkit-backdrop-filter: blur(14px) saturate(1.2);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition:
                transform 0.18s ease,
                box-shadow 0.18s ease,
                border-color 0.18s ease,
                background 0.18s ease;
            user-select: none;
            white-space: nowrap;
        }

        :where(.wn-coco-tool) .themeToggle:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow);
        }

        :where(.wn-coco-tool) .themeToggle:active {
            transform: translateY(0);
        }

        :where(.wn-coco-tool) .themeToggle:focus-visible {
            outline: none;
            box-shadow: var(--shadow2), var(--ring);
        }

        :where(.wn-coco-tool) .themeToggleIcon {
            font-size: 14px;
            line-height: 1;
        }

        /* Color SVG icons (global) */
        :where(.wn-coco-tool) .themeToggleIcon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        :where(.wn-coco-tool) .themeToggleIcon svg {
            width: 18px;
            height: 18px;
            display: block;
        }

        :where(.wn-coco-tool) .themeToggleIcon .icoMoon {
            display: none;
        }

        :where(.wn-coco-tool)[data-theme="dark"] .themeToggleIcon .icoSun {
            display: none;
        }

        :where(.wn-coco-tool)[data-theme="dark"] .themeToggleIcon .icoMoon {
            display: block;
        }

        :where(.wn-coco-tool) .tabIcon svg,
:where(.wn-coco-tool) .btnIcon svg {
            width: 18px;
            height: 18px;
            display: block;
        }

        :where(.wn-coco-tool) .themeToggleLabel {
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        :where(.wn-coco-tool)[data-theme="light"] {
            color-scheme: light;
        }

        :where(.wn-coco-tool)[data-theme="dark"] {
            color-scheme: dark;
        }

        :where(.wn-coco-tool) .tabs {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            padding: 12px 0 18px;
        }

        :where(.wn-coco-tool) .tab {
            appearance: none;
            border: 1px solid var(--line2);
            background: rgba(255, 255, 255, 0.52);
            color: var(--text);
            padding: 10px 14px;
            border-radius: 14px;
            cursor: pointer;
            font-size: 13px;
            transition:
                transform 0.18s ease,
                box-shadow 0.18s ease,
                border-color 0.18s ease,
                background 0.18s ease;
            box-shadow: 0 10px 30px rgba(10, 30, 70, 0.08);
            backdrop-filter: blur(14px) saturate(1.2);
            -webkit-backdrop-filter: blur(14px) saturate(1.2);
        }

        :where(.wn-coco-tool) .tab:hover {
            transform: translateY(-1px);
            border-color: color-mix(in srgb, var(--primary), var(--line2) 70%);
            box-shadow: 0 16px 40px rgba(53, 107, 255, 0.12);
        }

        :where(.wn-coco-tool) .tab[aria-selected="true"] {
            background: linear-gradient(180deg, rgba(53, 107, 255, 0.18), rgba(255, 255, 255, 0.72));
            border-color: color-mix(in srgb, var(--primary), var(--line2) 60%);
            box-shadow: 0 18px 50px rgba(53, 107, 255, 0.16);
        }



        :where(.wn-coco-tool) .quickNav {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            padding: 0 0 18px;
            align-items: center;
        }

        :where(.wn-coco-tool) .quickNav .btn {
            padding: 8px 10px;
            border-radius: 12px;
        }

        @media (min-width: 981px) {
            :where(.wn-coco-tool) .quickNav {
                justify-content: flex-end;
            }
        }

        :where(.wn-coco-tool) .grid3 {
            display: grid;
            gap: 12px;
            grid-template-columns: minmax(0, 1fr);
            align-items: start;
        }

        @media (min-width: 981px) {
            :where(.wn-coco-tool) .grid3 {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        :where(.wn-coco-tool) .card {
            background: var(--panel3);
            border: 1px solid var(--line2);
            border-radius: calc(var(--radius) + 2px);
            box-shadow: var(--shadow);
            overflow: clip;
            position: relative;
            backdrop-filter: blur(18px) saturate(1.35);
            -webkit-backdrop-filter: blur(18px) saturate(1.35);
        }

        /* subtle highlight */
        :where(.wn-coco-tool) .card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(900px 220px at 10% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
                radial-gradient(700px 220px at 90% 0%, rgba(255, 255, 255, 0.35), transparent 55%);
            opacity: 0.35;
            pointer-events: none;
        }

        :where(.wn-coco-tool) .cardHd {
            padding: 14px 14px 10px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
            justify-content: space-between;
            flex-direction: column;
            border-bottom: 1px solid rgba(16, 28, 55, 0.1);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.34));
            position: relative;
        }

        :where(.wn-coco-tool) .cardHd h2 {
            margin: 0;
            font-size: 14px;
            letter-spacing: 0.01em;
        }

        :where(.wn-coco-tool) .hint {
            margin: 4px 0 0;
            color: var(--muted);
            font-size: 12px;
        }

        /* 2026-10-15: 狭い画面で pill の文言（手数料率の併記）が nowrap のまま
           336px になり、324px の .cardHd から 26px はみ出していた。
           折り返しを許し、コンテナ幅を超えないようにする。 */
        @media (max-width: 480px) {
            :where(.wn-coco-tool) .pill,
            :where(.wn-coco-tool) .pill > * {
                white-space: normal;
                min-width: 0;
                max-width: 100%;
            }
            :where(.wn-coco-tool) .pill {
                flex-wrap: wrap;
            }
            :where(.wn-coco-tool) .cardHd {
                flex-wrap: wrap;
            }
        }

        :where(.wn-coco-tool) .pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 12px;
            color: var(--muted);
            border: 1px solid var(--line2);
            background: rgba(255, 255, 255, 0.48);
            white-space: nowrap;
            backdrop-filter: blur(14px) saturate(1.15);
            -webkit-backdrop-filter: blur(14px) saturate(1.15);
        }

        :where(.wn-coco-tool) .pill strong {
            color: var(--text);
        }

        :where(.wn-coco-tool) .cardBd {
            padding: 14px;
            position: relative;
        }

        :where(.wn-coco-tool) .row {
            display: grid;
            gap: 10px;
            grid-template-columns: minmax(0, 1fr);
        }

        @media (min-width: 680px) {
            :where(.wn-coco-tool) .row {
                /*grid-template-columns: 1fr 1fr;*/
            }
        }

        :where(.wn-coco-tool) .row3 {
            display: grid;
            gap: 10px;
            grid-template-columns: 1fr;
        }

        @media (min-width: 900px) {
            :where(.wn-coco-tool) .row3 {
                grid-template-columns: 1fr 1fr 1fr;
            }
        }

        :where(.wn-coco-tool) label {
            display: block;
            font-size: 12px;
            color: var(--muted);
            margin: 0 0 6px;
        }

        :where(.wn-coco-tool) input[type="number"],
:where(.wn-coco-tool) select {
            width: 100%;
            padding: 11px 12px;
            border-radius: 14px;
            border: 1px solid rgba(16, 28, 55, 0.16);
            background: rgba(255, 255, 255, 0.5);
            color: var(--text);
            outline: none;
            font-size: 13px;
            transition:
                border-color 0.18s ease,
                box-shadow 0.18s ease,
                transform 0.18s ease,
                background 0.18s ease;
            backdrop-filter: blur(12px) saturate(1.2);
            -webkit-backdrop-filter: blur(12px) saturate(1.2);
        }

        :where(.wn-coco-tool) input[type="number"]:hover,
:where(.wn-coco-tool) select:hover {
            border-color: color-mix(in srgb, var(--focus), rgba(16, 28, 55, 0.16) 75%);
        }

        :where(.wn-coco-tool) input[type="number"]:focus,
:where(.wn-coco-tool) select:focus {
            border-color: color-mix(in srgb, var(--primary), rgba(16, 28, 55, 0.16) 35%);
            box-shadow: var(--ring);
        }

        :where(.wn-coco-tool) input[readonly] {
            background: rgba(245, 248, 255, 0.6);
            color: rgba(11, 18, 32, 0.82);
        }

        :where(.wn-coco-tool) .btn {
            appearance: none;
            border: 1px solid var(--line2);
            background: rgba(255, 255, 255, 0.55);
            padding: 9px 12px;
            border-radius: 14px;
            cursor: pointer;
            font-size: 12px;
            transition:
                transform 0.16s ease,
                box-shadow 0.16s ease,
                border-color 0.16s ease,
                background 0.16s ease;
            user-select: none;
            white-space: nowrap;
            backdrop-filter: blur(14px) saturate(1.15);
            -webkit-backdrop-filter: blur(14px) saturate(1.15);
        }

        :where(.wn-coco-tool) .btn:hover {
            border-color: color-mix(in srgb, var(--primary), var(--line2) 70%);
            box-shadow: 0 14px 34px rgba(10, 30, 70, 0.1);
            transform: translateY(-1px);
        }

        :where(.wn-coco-tool) .btnPrimary {
            border-color: color-mix(in srgb, var(--primary), var(--line2) 60%);
            background: linear-gradient(180deg, rgba(53, 107, 255, 0.18), rgba(255, 255, 255, 0.6));
        }

        :where(.wn-coco-tool) .btnDanger {
            border-color: color-mix(in srgb, var(--danger), var(--line2) 70%);
            background: color-mix(in srgb, var(--danger), transparent 90%);
        }

        :where(.wn-coco-tool) .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        :where(.wn-coco-tool) .kv {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 8px 12px;
            margin: 12px 0 0;
        }

        :where(.wn-coco-tool) .kv dt {
            font-size: 12px;
            color: var(--muted);
        }

        :where(.wn-coco-tool) .kv dd {
            margin: 0;
            font-size: 12px;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

        :where(.wn-coco-tool) .big {
            font-size: 18px;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        :where(.wn-coco-tool) .note {
            max-width: var(--wn-prose-width, 42em);
            margin: 12px 0 0;
            font-size: 12px;
            color: var(--muted);
            line-height: 1.55;
        }

        :where(.wn-coco-tool) .mode2 {
            display: grid;
            gap: 10px;
            /* Compare side by side only when this card has enough space. */
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
            margin: 10px 0 0;
        }

        :where(.wn-coco-tool) .modeBox {
            border: 1px solid var(--line2);
            border-radius: 16px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.44);
            box-shadow: 0 12px 32px rgba(10, 30, 70, 0.06);
            backdrop-filter: blur(16px) saturate(1.25);
            -webkit-backdrop-filter: blur(16px) saturate(1.25);
        }

        :where(.wn-coco-tool) .modeT {
            display: flex;
            justify-content: space-between;
            flex-direction: column;
            align-items: baseline;
            gap: 10px;
            margin: 0 0 8px;
            font-size: 12px;
        }

        :where(.wn-coco-tool) .tbl {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            overflow: hidden;
            border: 1px solid var(--line2);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.42);
            backdrop-filter: blur(16px) saturate(1.2);
            -webkit-backdrop-filter: blur(16px) saturate(1.2);
        }

        :where(.wn-coco-tool) .tbl th,
:where(.wn-coco-tool) .tbl td {
            padding: 10px 10px;
            border-bottom: 1px solid rgba(16, 28, 55, 0.08);
            font-size: 12px;
            vertical-align: top;
        }

        :where(.wn-coco-tool) .tbl thead th {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.36));
            color: var(--muted);
            font-weight: 700;
            white-space: nowrap;
        }

        :where(.wn-coco-tool) .tbl tr:last-child td {
            border-bottom: none;
        }

        :where(.wn-coco-tool) .tbl td:last-child,
:where(.wn-coco-tool) .tbl th:last-child {
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

        :where(.wn-coco-tool) .summaryWrap {
            display: grid;
            gap: 10px;
            grid-template-columns: 1fr;
        }

        @media (min-width: 981px) {
            :where(.wn-coco-tool) .summaryWrap {
                grid-template-columns: 1fr;
            }
        }

        :where(.wn-coco-tool) .summaryTbl {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border: 1px solid var(--line2);
            border-radius: 16px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.44);
            backdrop-filter: blur(16px) saturate(1.25);
            -webkit-backdrop-filter: blur(16px) saturate(1.25);
        }

        :where(.wn-coco-tool) .summaryTbl th,
:where(.wn-coco-tool) .summaryTbl td {
            padding: 10px 10px;
            border-bottom: 1px solid rgba(16, 28, 55, 0.08);
            font-size: 12px;
            vertical-align: middle;
        }

        :where(.wn-coco-tool) .summaryTbl thead th {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.38));
            color: var(--muted);
            font-weight: 800;
        }

        :where(.wn-coco-tool) .summaryTbl tr:last-child td {
            border-bottom: none;
        }

        :where(.wn-coco-tool) .summaryTbl td:nth-child(2),
:where(.wn-coco-tool) .summaryTbl th:nth-child(2),
:where(.wn-coco-tool) .summaryTbl td:last-child,
:where(.wn-coco-tool) .summaryTbl th:last-child {
            text-align: right;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }



        /* =========================================================
           早見表（コピー直前）: カード分割（色別）
           - 添付画像の色分けに合わせてグルーピング
        ========================================================== */
        :where(.wn-coco-tool) .summaryBlocks {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* ===== 早見表（カード形式）: Tablet/PC は 1段目=支払ベース、2段目=出品者/購入者/合算 のグリッド ===== */
        @media (min-width: 680px) {
            :where(.wn-coco-tool) .summaryBlocks {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 12px;
            }

            :where(.wn-coco-tool) .summaryBlocks>.sumBlock.isPink {
                grid-column: 1 / -1;
            }
        }

        :where(.wn-coco-tool) .sumBlock {
            --sumAccent: var(--coco-purple);
            position: relative;
            border-radius: 16px;
            border: 1px solid color-mix(in srgb, var(--sumAccent), rgba(255, 255, 255, 0.7) 60%);
            background: rgba(255, 255, 255, 0.44);
            overflow: hidden;
            box-shadow: var(--shadow2);
        }

        :where(.wn-coco-tool) .sumBlock::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 6px;
            background: color-mix(in srgb, var(--sumAccent), transparent 10%);
        }

        :where(.wn-coco-tool) .sumBlockHd {
            padding: 10px 12px 8px 14px;
            border-bottom: 1px solid rgba(16, 28, 55, 0.08);
            background:
                radial-gradient(700px 240px at 10% 0%,
                    color-mix(in srgb, var(--sumAccent), transparent 82%),
                    transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
        }

        :where(.wn-coco-tool) .sumTitle {
            font-size: 13px;
            font-weight: 900;
            letter-spacing: 0.02em;
            color: color-mix(in srgb, var(--sumAccent), var(--text) 70%);
        }

        :where(.wn-coco-tool) .sumBlock.isPink {
            --sumAccent: var(--coco-pink);
        }

        :where(.wn-coco-tool) .sumBlock.isOrange {
            --sumAccent: var(--coco-orange);
        }

        :where(.wn-coco-tool) .sumBlock.isBlue {
            --sumAccent: var(--coco-blue);
        }

        :where(.wn-coco-tool) .sumBlock.isGreen {
            --sumAccent: var(--coco-green);
        }

        :where(.wn-coco-tool) .summaryTbl--nested {
            border: 0;
            border-radius: 0;
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        :where(.wn-coco-tool) .sumBlock .summaryTbl--nested thead th {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34));
        }

        :where(.wn-coco-tool) .sumBlock .summaryTbl--nested tbody tr:last-child td {
            border-bottom: none;
        }

        /* ===== Mobile: 支払ベース（税・クーポン）テーブルを横スクロール + スクロール案内 ===== */
        :where(.wn-coco-tool) .sumBlock.isPink .hScrollHint {
            display: none;
        }

        :where(.wn-coco-tool) .hScrollHint.isHidden {
            display: none !important;
        }

        :where(.wn-coco-tool) .sumBlock.isPink .hScroll {
            width: 100%;
        }

        @media (max-width: 679.98px) {
            :where(.wn-coco-tool) .sumBlock.isPink .hScrollHint {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
                padding: 10px 12px 8px 14px;
                font-size: 11px;
                color: var(--muted);
                user-select: none;
                -webkit-user-select: none;
            }

            :where(.wn-coco-tool) .sumBlock.isPink .hScrollHint .nudge {
                display: inline-block;
                animation: hScrollNudge 1.15s ease-in-out infinite;
                opacity: 0.75;
            }

            @keyframes hScrollNudge {

                0%,
                100% {
                    transform: translateX(0);
                    opacity: 0.65;
                }

                50% {
                    transform: translateX(10px);
                    opacity: 1;
                }
            }

            :where(.wn-coco-tool) .sumBlock.isPink .hScroll {
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-x;
                overscroll-behavior-x: contain;
            }

            :where(.wn-coco-tool) .sumBlock.isPink .hScroll>table.summaryTbl--nested {
                width: max-content;
                min-width: 520px;
            }
        }

        :where(.wn-coco-tool) .copyGrid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }

        @media (min-width: 720px) {
            :where(.wn-coco-tool) .copyGrid {
                grid-template-columns: 1fr 1fr 1fr;
            }
        }

        :where(.wn-coco-tool) .copyCard {
            border: 1px solid var(--line2);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.44);
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            box-shadow: 0 12px 34px rgba(10, 30, 70, 0.07);
            backdrop-filter: blur(16px) saturate(1.25);
            -webkit-backdrop-filter: blur(16px) saturate(1.25);
        }

        :where(.wn-coco-tool) .copyCard .lbl {
            font-size: 12px;
            color: var(--muted);
        }

        :where(.wn-coco-tool) .copyCard .val {
            font-size: 16px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
        }

        :where(.wn-coco-tool) .copyCard .val .pct {
            font-size: 12px;
            font-weight: 700;
            opacity: .78;
            margin-left: 6px;
        }

        :where(.wn-coco-tool) .copyCard .btn {
            margin-top: 2px;
        }

        :where(.wn-coco-tool) .toast {
            position: fixed;
            right: 14px;
            bottom: 14px;
            z-index: 10;
            display: flex;
            gap: 10px;
            align-items: center;
            padding: 12px 14px;
            border-radius: 999px;
            border: 1px solid var(--line2);
            background: rgba(255, 255, 255, 0.62);
            box-shadow: 0 18px 52px rgba(10, 30, 70, 0.14);
            font-size: 12px;
            color: var(--text);
            opacity: 0;
            transform: translateY(12px);
            pointer-events: none;
            transition: 0.22s ease;
            backdrop-filter: blur(18px) saturate(1.35);
            -webkit-backdrop-filter: blur(18px) saturate(1.35);
        }

        :where(.wn-coco-tool) .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        :where(.wn-coco-tool) footer {
            margin-top: 14px;
            padding: 14px;
            color: var(--muted);
            font-size: 12px;
        }

        :where(.wn-coco-tool) .srcList {
            margin: 8px 0 0;
            padding-left: 18px;
            line-height: 1.6;
        }

        :where(.wn-coco-tool) .gridTop {
            display: grid;
            gap: 12px;
            grid-template-columns: 1fr;
        }

        @media (min-width: 981px) {
            :where(.wn-coco-tool) .gridTop {
                grid-template-columns: 1fr;
            }
        }

        :where(.wn-coco-tool) .row2 {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }

        @media (min-width: 920px) {
            :where(.wn-coco-tool) .row2 {
                grid-template-columns: 1fr 1fr;
            }
        }

        :where(.wn-coco-tool) .mutedBox {
            border: 1px solid var(--line2);
            background: rgba(255, 255, 255, 0.4);
            border-radius: 16px;
            padding: 12px;
            backdrop-filter: blur(16px) saturate(1.2);
            -webkit-backdrop-filter: blur(16px) saturate(1.2);
        }

        :where(.wn-coco-tool) .mutedBox h3 {
            margin: 0 0 6px;
            font-size: 13px;
        }

        :where(.wn-coco-tool) .miniKv {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 6px 10px;
            margin: 10px 0 0;
            font-size: 12px;
        }

        :where(.wn-coco-tool) .miniKv .v {
            font-variant-numeric: tabular-nums;
            text-align: right;
        }

        :where(.wn-coco-tool) .optRow {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
            align-items: end;
        }

        :where(.wn-coco-tool) .grid3 > *,
:where(.wn-coco-tool) .row > *,
:where(.wn-coco-tool) .optRow > *,
:where(.wn-coco-tool) .grid3 input,
:where(.wn-coco-tool) .grid3 select { min-width: 0; max-width: 100%; }

        :where(.wn-coco-tool) .optActions {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        :where(.wn-coco-tool) .srOnly {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Motion safety */
        @media (prefers-reduced-motion: reduce) {

            :where(.wn-coco-tool) .tab,
:where(.wn-coco-tool) .btn,
:where(.wn-coco-tool) input[type="number"],
:where(.wn-coco-tool) select {
                transition: none !important;
            }

            :where(.wn-coco-tool) .tab:hover,
:where(.wn-coco-tool) .btn:hover {
                transform: none !important;
            }
        }

        /* Dark mode (OS preference) */

        /* Dark mode (manual toggle) */

        :where(.wn-coco-tool)[data-theme="dark"] {
            --bg: #070a12;
            --text: rgba(255, 255, 255, 0.92);
            --muted: rgba(255, 255, 255, 0.68);
            --line: rgba(255, 255, 255, 0.16);
            --line2: rgba(255, 255, 255, 0.2);
            --panel: rgba(20, 24, 38, 0.9);
            --panel2: rgba(20, 24, 38, 0.52);
            --panel3: rgba(20, 24, 38, 0.46);
            --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
            --shadow2: 0 10px 28px rgba(0, 0, 0, 0.35);
        }

        :where(.wn-coco-tool)[data-theme="dark"] {
            background: radial-gradient(1200px 520px at 18% -10%, rgba(53, 107, 255, 0.2), transparent 60%),
                radial-gradient(900px 420px at 85% -6%, rgba(31, 157, 98, 0.16), transparent 55%),
                radial-gradient(1100px 520px at 55% 112%, rgba(224, 75, 75, 0.14), transparent 55%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), var(--bg);
        }

        :where(.wn-coco-tool)[data-theme="dark"] input[readonly] {
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.82);
        }


        /* Dark-mode contrast fixes (card chrome / mini boxes / sticky items / tabs) */
        :where(.wn-coco-tool)[data-theme="dark"] .card::before {
            background: radial-gradient(900px 220px at 10% 0%, rgba(53, 107, 255, 0.22), transparent 60%),
                radial-gradient(700px 220px at 90% 0%, rgba(31, 157, 98, 0.18), transparent 55%);
            opacity: 0.22;
        }

        :where(.wn-coco-tool)[data-theme="dark"] .cardHd {
            border-bottom: 1px solid var(--line);
            background: linear-gradient(180deg, rgba(20, 24, 38, 0.78), rgba(20, 24, 38, 0.46));
        }

        :where(.wn-coco-tool)[data-theme="dark"] .pill {
            background: rgba(255, 255, 255, 0.10);
            border-color: var(--line2);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .modeBox,
:where(.wn-coco-tool)[data-theme="dark"] .stickyItem {
            background: var(--panel2);
            border-color: var(--line2);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .tab {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--line2);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .tab[aria-selected="true"] {
            background: linear-gradient(180deg, rgba(53, 107, 255, 0.28), rgba(255, 255, 255, 0.06));
        }

        /* Dark-mode contrast fixes (cards / tables) */
        :where(.wn-coco-tool)[data-theme="dark"] .summaryTbl,
:where(.wn-coco-tool)[data-theme="dark"] .copyCard {
            background: var(--panel);
            border-color: var(--line2);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .sumBlock {
            background: var(--panel);
            border-color: color-mix(in srgb, var(--sumAccent), transparent 60%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .summaryTbl th,
:where(.wn-coco-tool)[data-theme="dark"] .summaryTbl td {
            border-bottom-color: var(--line);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .summaryTbl thead th {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
            color: rgba(255, 255, 255, 0.82);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .sumBlockHd {
            border-bottom: 1px solid var(--line);
            background:
                radial-gradient(700px 240px at 10% 0%,
                    color-mix(in srgb, var(--sumAccent), transparent 88%),
                    transparent 60%),
                linear-gradient(180deg, rgba(20, 24, 38, 0.78), rgba(20, 24, 38, 0.46));
        }

        :where(.wn-coco-tool)[data-theme="dark"] .sumTitle {
            color: color-mix(in srgb, var(--text) 88%, var(--sumAccent));
        }

        :where(.wn-coco-tool)[data-theme="dark"] .sumBlock .summaryTbl--nested thead th {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
            color: rgba(255, 255, 255, 0.82);
        }

        /* Dark-mode contrast fixes (coupon / sticky / breakdown table) */
        :where(.wn-coco-tool)[data-theme="dark"] .couponBlock {
            background: rgba(20, 24, 38, 0.52);
            border-color: var(--line2);
            box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .stickyBar {
            background: rgba(20, 24, 38, 0.72);
            border-top-color: var(--line2);
            box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .tbl {
            background: var(--panel);
            border-color: var(--line2);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .tbl th,
:where(.wn-coco-tool)[data-theme="dark"] .tbl td {
            border-bottom-color: var(--line);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .tbl thead th {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
            color: rgba(255, 255, 255, 0.82);
        }


        /* Dark-mode contrast fixes (inputs / selects / buttons) */
        :where(.wn-coco-tool)[data-theme="dark"] input[type="number"],
:where(.wn-coco-tool)[data-theme="dark"] select {
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.88);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .btn {
            background: rgba(255, 255, 255, 0.10);
            color: rgba(255, 255, 255, 0.88);
            border-color: var(--line2);
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .btnPrimary {
            background: linear-gradient(180deg, rgba(53, 107, 255, 0.30), rgba(255, 255, 255, 0.08));
        }

        :where(.wn-coco-tool)[data-theme="dark"] .btnDanger {
            background: color-mix(in srgb, var(--danger), transparent 82%);
        }



        /* 手入力が必要な「数値テキストボックス」だけ、枠線をオレンジ・太さ5pxにする（readonlyは除外） */
        :where(.wn-coco-tool) input[type="number"]:not([readonly]) {
            border: 5px solid orange;
        }

        :where(.wn-coco-tool) input[type="number"]:not([readonly]):hover,
:where(.wn-coco-tool) input[type="number"]:not([readonly]):focus {
            border-color: orange;
            box-shadow: var(--ring);
        }

        /* プルダウン（select）もユーザー選択欄としてオレンジ枠（disabledは除外） */
        :where(.wn-coco-tool) select:not([disabled]) {
            border: 5px solid orange;
        }

        :where(.wn-coco-tool) select:not([disabled]):hover,
:where(.wn-coco-tool) select:not([disabled]):focus {
            border-color: orange;
            box-shadow: var(--ring);
        }

        /* =========================================================
           Area theming: 出品者 / 購入者（CSSのみ・HTML/JS無改変）
           - coconala logo guideline colors (ver.5.1) を参照
        ========================================================== */

        :where(.wn-coco-tool) .card[aria-label="出品者"] {
            --areaAccent: var(--seller-accent);
            --areaAccent2: var(--seller-accent2);
        }

        :where(.wn-coco-tool) .card[aria-label="購入者"] {
            --areaAccent: var(--buyer-accent);
            --areaAccent2: var(--buyer-accent2);
        }

        :where(.wn-coco-tool) .card[aria-label="出品者"]::after,
:where(.wn-coco-tool) .card[aria-label="購入者"]::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            border-radius: calc(var(--radius) + 2px);
            box-shadow:
                inset 6px 0 0 color-mix(in srgb, var(--areaAccent), transparent 15%),
                inset 0 0 0 1px color-mix(in srgb, var(--areaAccent), transparent 70%);
            opacity: 0.95;
        }

        :where(.wn-coco-tool) .card[aria-label="出品者"] .cardHd,
:where(.wn-coco-tool) .card[aria-label="購入者"] .cardHd {
            background: radial-gradient(800px 220px at 12% 0%,
                    color-mix(in srgb, var(--areaAccent), transparent 78%),
                    transparent 62%),
                radial-gradient(700px 220px at 92% 0%,
                    color-mix(in srgb, var(--areaAccent2), transparent 82%),
                    transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.32));
            border-bottom: 1px solid color-mix(in srgb, var(--areaAccent), rgba(16, 28, 55, 0.1) 72%);
        }

        :where(.wn-coco-tool) .card[aria-label="出品者"] .pill,
:where(.wn-coco-tool) .card[aria-label="購入者"] .pill {
            border-color: color-mix(in srgb, var(--areaAccent), var(--line2) 70%);
            background: color-mix(in srgb, var(--areaAccent), rgba(255, 255, 255, 0.48) 88%);
        }

        :where(.wn-coco-tool) .card[aria-label="出品者"] .modeBox,
:where(.wn-coco-tool) .card[aria-label="購入者"] .modeBox {
            border-color: color-mix(in srgb, var(--areaAccent), var(--line2) 78%);
            background: radial-gradient(900px 220px at 20% 0%,
                    color-mix(in srgb, var(--areaAccent), transparent 86%),
                    transparent 62%),
                rgba(255, 255, 255, 0.44);
        }

        :where(.wn-coco-tool) .card[aria-label="出品者"] .btnPrimary,
:where(.wn-coco-tool) .card[aria-label="購入者"] .btnPrimary {
            border-color: color-mix(in srgb, var(--areaAccent), var(--line2) 60%);
            background: linear-gradient(180deg,
                    color-mix(in srgb, var(--areaAccent), transparent 86%),
                    rgba(255, 255, 255, 0.58));
        }

        :where(.wn-coco-tool) .card[aria-label="出品者"] .btnPrimary:hover,
:where(.wn-coco-tool) .card[aria-label="購入者"] .btnPrimary:hover {
            box-shadow: 0 18px 44px color-mix(in srgb, var(--areaAccent), transparent 82%);
        }


        /* Dark mode (manual toggle) */


        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="出品者"] .cardHd,
:where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="購入者"] .cardHd {
            background: radial-gradient(800px 220px at 12% 0%,
                    color-mix(in srgb, var(--areaAccent), transparent 74%),
                    transparent 62%),
                radial-gradient(700px 220px at 92% 0%,
                    color-mix(in srgb, var(--areaAccent2), transparent 80%),
                    transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
            border-bottom: 1px solid color-mix(in srgb, var(--areaAccent), rgba(255, 255, 255, 0.12) 72%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="出品者"] .pill,
:where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="購入者"] .pill {
            background: color-mix(in srgb, var(--areaAccent), rgba(20, 24, 38, 0.55) 84%);
            border-color: color-mix(in srgb, var(--areaAccent), rgba(255, 255, 255, 0.22) 72%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="出品者"] .modeBox,
:where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="購入者"] .modeBox {
            background: radial-gradient(900px 220px at 20% 0%,
                    color-mix(in srgb, var(--areaAccent), transparent 82%),
                    transparent 62%),
                rgba(20, 24, 38, 0.52);
            border-color: color-mix(in srgb, var(--areaAccent), rgba(255, 255, 255, 0.2) 78%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="出品者"] .btnPrimary,
:where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="購入者"] .btnPrimary {
            background: linear-gradient(180deg,
                    color-mix(in srgb, var(--areaAccent), transparent 82%),
                    rgba(20, 24, 38, 0.46));
            border-color: color-mix(in srgb, var(--areaAccent), rgba(255, 255, 255, 0.22) 70%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="出品者"]::after,
:where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="購入者"]::after {
            box-shadow:
                inset 6px 0 0 color-mix(in srgb, var(--areaAccent), transparent 12%),
                inset 0 0 0 1px color-mix(in srgb, var(--areaAccent), transparent 65%);
            opacity: 0.92;
        }


        /* =========================================================
           Area theming: 早見表 / 電話相談（CSSのみ・HTML/JS無改変）
           - 早見表: coco purple / pink
           - 電話相談: coco green / blue
        ========================================================== */

        :where(.wn-coco-tool) .card[aria-label="早見表"],
:where(.wn-coco-tool) .card[aria-label="早見表（コピー直前）"] {
            --areaAccent: var(--coco-purple);
            --areaAccent2: var(--coco-pink);
            /* columns (summary table) */
            --colNoTax: var(--coco-blue);
            --colTax10: var(--coco-green);
        }

        :where(.wn-coco-tool) .card[aria-label="電話相談：入力"] {
            --areaAccent: var(--coco-green);
            --areaAccent2: var(--coco-blue);
        }

        :where(.wn-coco-tool) .card[aria-label="早見表"]::after,
:where(.wn-coco-tool) .card[aria-label="早見表（コピー直前）"]::after,
:where(.wn-coco-tool) .card[aria-label="電話相談：入力"]::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            border-radius: calc(var(--radius) + 2px);
            box-shadow:
                inset 6px 0 0 color-mix(in srgb, var(--areaAccent), transparent 15%),
                inset 0 0 0 1px color-mix(in srgb, var(--areaAccent), transparent 70%);
            opacity: 0.95;
        }

        :where(.wn-coco-tool) .card[aria-label="早見表"] .cardHd,
:where(.wn-coco-tool) .card[aria-label="早見表（コピー直前）"] .cardHd,
:where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .cardHd {
            background: radial-gradient(800px 220px at 12% 0%,
                    color-mix(in srgb, var(--areaAccent), transparent 78%),
                    transparent 62%),
                radial-gradient(700px 220px at 92% 0%,
                    color-mix(in srgb, var(--areaAccent2), transparent 82%),
                    transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.32));
            border-bottom: 1px solid color-mix(in srgb, var(--areaAccent), rgba(16, 28, 55, 0.1) 72%);
        }

        :where(.wn-coco-tool) .card[aria-label="早見表"] .pill,
:where(.wn-coco-tool) .card[aria-label="早見表（コピー直前）"] .pill,
:where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .pill {
            border-color: color-mix(in srgb, var(--areaAccent), var(--line2) 70%);
            background: color-mix(in srgb, var(--areaAccent), rgba(255, 255, 255, 0.48) 88%);
        }


        /* Dark mode (manual toggle) */


        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表"] .cardHd,
:where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表（コピー直前）"] .cardHd,
:where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="電話相談：入力"] .cardHd {
            background: radial-gradient(800px 220px at 12% 0%,
                    color-mix(in srgb, var(--areaAccent), transparent 74%),
                    transparent 62%),
                radial-gradient(700px 220px at 92% 0%,
                    color-mix(in srgb, var(--areaAccent2), transparent 80%),
                    transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
            border-bottom: 1px solid color-mix(in srgb, var(--areaAccent), rgba(255, 255, 255, 0.12) 72%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表"] .pill,
:where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="電話相談：入力"] .pill {
            background: color-mix(in srgb, var(--areaAccent), rgba(20, 24, 38, 0.55) 84%);
            border-color: color-mix(in srgb, var(--areaAccent), rgba(255, 255, 255, 0.22) 72%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表"]::after,
:where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="電話相談：入力"]::after {
            box-shadow:
                inset 6px 0 0 color-mix(in srgb, var(--areaAccent), transparent 12%),
                inset 0 0 0 1px color-mix(in srgb, var(--areaAccent), transparent 65%);
            opacity: 0.92;
        }


        /* ===== 早見表（主要値）: 列ごとに意味のある色分け + 可読性UP ===== */

        :where(.wn-coco-tool) .card[aria-label="早見表"] .summaryTbl {
            border-color: color-mix(in srgb, var(--areaAccent), var(--line2) 82%);
        }

        :where(.wn-coco-tool) .card[aria-label="早見表"] .summaryTbl thead th:nth-child(2) {
            background: radial-gradient(500px 200px at 10% 0%,
                    color-mix(in srgb, var(--colNoTax), transparent 80%),
                    transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.36));
            color: color-mix(in srgb, var(--colNoTax), var(--text) 55%);
        }

        :where(.wn-coco-tool) .card[aria-label="早見表"] .summaryTbl thead th:nth-child(3) {
            background: radial-gradient(500px 200px at 10% 0%,
                    color-mix(in srgb, var(--colTax10), transparent 80%),
                    transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.36));
            color: color-mix(in srgb, var(--colTax10), var(--text) 55%);
        }

        :where(.wn-coco-tool) .card[aria-label="早見表"] .summaryTbl tbody td:nth-child(2) {
            background: color-mix(in srgb, var(--colNoTax), transparent 94%);
        }

        :where(.wn-coco-tool) .card[aria-label="早見表"] .summaryTbl tbody td:nth-child(3) {
            background: color-mix(in srgb, var(--colTax10), transparent 94%);
        }

        /* 行の読みやすさ（ラベル列のみ薄くゼブラ） */
        :where(.wn-coco-tool) .card[aria-label="早見表"] .summaryTbl tbody tr:nth-child(odd) td:first-child {
            background: rgba(255, 255, 255, 0.1);
        }

        /* ホバーは「色を潰さず」薄いハイライト */
        :where(.wn-coco-tool) .card[aria-label="早見表"] .summaryTbl tbody tr:hover td {
            box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.08);
        }


        /* Dark mode (manual toggle) */

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表"] .summaryTbl thead th:nth-child(2) {
            background: radial-gradient(500px 200px at 10% 0%,
                    color-mix(in srgb, var(--colNoTax), transparent 76%),
                    transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
            color: color-mix(in srgb, var(--colNoTax), rgba(255, 255, 255, 0.92) 55%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表"] .summaryTbl thead th:nth-child(3) {
            background: radial-gradient(500px 200px at 10% 0%,
                    color-mix(in srgb, var(--colTax10), transparent 76%),
                    transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
            color: color-mix(in srgb, var(--colTax10), rgba(255, 255, 255, 0.92) 55%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表"] .summaryTbl tbody td:nth-child(2) {
            background: color-mix(in srgb, var(--colNoTax), rgba(20, 24, 38, 0.52) 88%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表"] .summaryTbl tbody td:nth-child(3) {
            background: color-mix(in srgb, var(--colTax10), rgba(20, 24, 38, 0.52) 88%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表"] .summaryTbl tbody tr:nth-child(odd) td:first-child {
            background: rgba(255, 255, 255, 0.04);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="早見表"] .summaryTbl tbody tr:hover td {
            box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.06);
        }


        /* ===== 電話相談（入力＆結果）: Buyer/Seller の2ボックスをブランドカラーで分離 ===== */

        :where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .mode2 .modeBox {
            /* default (overridden per box below) */
            --boxAccent: var(--areaAccent);
            --boxAccent2: var(--areaAccent2);
            border-color: color-mix(in srgb, var(--boxAccent), var(--line2) 78%);
            background: radial-gradient(900px 220px at 18% 0%,
                    color-mix(in srgb, var(--boxAccent), transparent 86%),
                    transparent 62%),
                rgba(255, 255, 255, 0.44);
        }

        :where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .mode2 .modeBox--buyer {
            --boxAccent: var(--buyer-accent);
            --boxAccent2: var(--buyer-accent2);
        }

        :where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .mode2 .modeBox--seller {
            --boxAccent: var(--seller-accent);
            --boxAccent2: var(--seller-accent2);
        }

        :where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .mode2 .modeBox--coco {
            --boxAccent: var(--coco-accent);
            --boxAccent2: var(--coco-accent2);
        }

        @media (min-width: 980px) {
            :where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .mode2 {
                grid-template-columns: 1fr 1fr 1fr;
            }
        }

        :where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .mode2 .modeBox .pill {
            border-color: color-mix(in srgb, var(--boxAccent), var(--line2) 70%);
            background: color-mix(in srgb, var(--boxAccent), rgba(255, 255, 255, 0.48) 88%);
        }

        :where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .mode2 .modeBox .kv dd {
            color: color-mix(in srgb, var(--boxAccent), var(--text) 70%);
        }

        :where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .mode2 .modeBox .kv dd.big,
:where(.wn-coco-tool) .card[aria-label="電話相談：入力"] .mode2 .modeBox .big {
            color: color-mix(in srgb, var(--boxAccent), var(--text) 55%);
        }


        /* Dark mode (manual toggle) */

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="電話相談：入力"] .mode2 .modeBox {
            background: radial-gradient(900px 220px at 18% 0%,
                    color-mix(in srgb, var(--boxAccent), transparent 82%),
                    transparent 62%),
                rgba(20, 24, 38, 0.52);
            border-color: color-mix(in srgb, var(--boxAccent), rgba(255, 255, 255, 0.2) 78%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="電話相談：入力"] .mode2 .modeBox .pill {
            background: color-mix(in srgb, var(--boxAccent), rgba(20, 24, 38, 0.55) 84%);
            border-color: color-mix(in srgb, var(--boxAccent), rgba(255, 255, 255, 0.22) 72%);
        }

        :where(.wn-coco-tool)[data-theme="dark"] .card[aria-label="電話相談：入力"] .mode2 .modeBox .kv dd {
            color: color-mix(in srgb, var(--boxAccent), rgba(255, 255, 255, 0.92) 62%);
        }



        /* =========================================================
               Coupon + Share URL + Sticky mini bar（追加要素のみ）
               - 既存UI/配色は変更せず、追加クラスで完結
            ========================================================== */
        :where(.wn-coco-tool) .couponBlock {
            margin-top: 10px;
            padding: 12px;
            border-radius: 16px;
            border: 1px solid var(--line);
            background: rgba(255, 255, 255, .36);
            box-shadow: 0 18px 60px rgba(10, 30, 70, .08);
        }

        :where(.wn-coco-tool) .couponMeta {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
            margin-top: 10px;
        }

        :where(.wn-coco-tool) .couponHint {
            margin-top: 8px;
            color: var(--muted);
            font-size: 12px;
        }



        :where(.wn-coco-tool) .couponStatusNear {
            margin-top: 10px;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px dashed color-mix(in srgb, var(--line), transparent 30%);
            background: color-mix(in srgb, var(--panel), transparent 30%);
        }

        :where(.wn-coco-tool) .couponStatusRow {
            display: grid;
            grid-template-columns: 92px 1fr;
            gap: 10px;
            align-items: start;
            font-size: 12px;
            color: var(--text);
            padding: 6px 0;
            border-top: 1px solid color-mix(in srgb, var(--line), transparent 45%);
        }

        :where(.wn-coco-tool) .couponStatusRow:first-child {
            border-top: none;
            padding-top: 2px;
        }

        :where(.wn-coco-tool) .couponStatusRow .k {
            color: var(--muted);
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        :where(.wn-coco-tool) .couponStatusRow .v {
            text-align: left;
            line-height: 1.35;
        }

        :where(.wn-coco-tool) {
            --stickyBarH: 64px;
            --stickyBarReserve: calc(var(--stickyBarH) + env(safe-area-inset-bottom));
            --vvBottom: 0px;
            /* iOS visualViewport bottom inset */
        }

        :where(.wn-coco-tool) .stickySpacer {
            height: calc(var(--stickyBarReserve) + var(--vvBottom, 0px));
        }

        :where(.wn-coco-tool) .stickyBar {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 50;
            transform: translateY(calc(-1 * var(--vvBottom, 0px)));
            padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
            border-top: 1px solid var(--line);
            background: rgba(255, 255, 255, .56);
            backdrop-filter: blur(16px) saturate(1.2);
            -webkit-backdrop-filter: blur(16px) saturate(1.2);
            box-shadow: 0 -18px 50px rgba(10, 30, 70, .10);
        }

        :where(.wn-coco-tool) .stickyInner {
            max-width: 1220px;
            margin: 0 auto;
        }

        :where(.wn-coco-tool) .stickyGrid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        :where(.wn-coco-tool) .stickyItem {
            border-radius: 16px;
            border: 1px solid var(--line);
            /*background: rgba(255, 255, 255, .40);*/
            /*background: rgb(0 0 0 / 80%);*/
            background: rgb(0 0 0 / 0%);
            padding: 10px 12px;
        }

        :where(.wn-coco-tool) .stickyLabel {
            font-size: 11px;
            color: var(--muted);
            margin-bottom: 2px;
        }

        :where(.wn-coco-tool) .stickyValue {
            font-weight: 800;
            letter-spacing: .01em;
            font-size: 15px;
        }

        :where(.wn-coco-tool) .stickySub {
            margin-top: 3px;
            display: flex;
            justify-content: space-between;
            gap: 10px;
            font-size: 11px;
            color: var(--muted);
        }

        @media (orientation: landscape) and (max-height: 520px) {
            :where(.wn-coco-tool) {
                --stickyBarH: 54px;
            }

            :where(.wn-coco-tool) .stickyBar {
                padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
            }

            :where(.wn-coco-tool) .stickyItem {
                padding: 8px 10px;
            }

            :where(.wn-coco-tool) .stickyValue {
                font-size: 14px;
            }
        }

        /* toast を sticky bar と共存させる */
        :where(.wn-coco-tool) .toast {
            bottom: calc(14px + var(--stickyBarReserve) + var(--vvBottom, 0px));
        }


        /* Phone tab only: desktop column layout (normal/video unaffected) */
        :where(.wn-coco-tool) .phoneCard .row.phoneRow3 {
            grid-template-columns: 1fr;
        }

        :where(.wn-coco-tool) .phoneCard .row.phoneCoupon2 {
            grid-template-columns: 1fr;
        }

        :where(.wn-coco-tool) .phoneCard .row.phoneTime2 {
            grid-template-columns: 1fr;
        }

        @media (min-width: 900px) {
            :where(.wn-coco-tool) .phoneCard .row.phoneRow3 {
                grid-template-columns: 1fr 1fr 1fr;
            }

            :where(.wn-coco-tool) .phoneCard .row.phoneCoupon2 {
                grid-template-columns: 1fr 1fr;
            }

            :where(.wn-coco-tool) .phoneCard .row.phoneTime2 {
                grid-template-columns: 1fr 1fr;
            }
        }


        /* =========================================================
           Smartphone: hamburger header + mobile menu
           ========================================================= */
        :where(.wn-coco-tool) .hamburger {
            appearance: none;
            border: 1px solid var(--line2);
            background: var(--panel);
            color: var(--text);
            border-radius: 14px;
            padding: 10px 12px;
            display: none;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            min-height: 40px;
            cursor: pointer;
            box-shadow: 0 10px 26px rgba(10, 30, 70, .10);
        }

        :where(.wn-coco-tool) .hamburgerIcon {
            display: inline-flex;
            font-size: 18px;
            line-height: 1;
        }

        :where(.wn-coco-tool) .mobileMenu {
            display: none;
        }

        @media (max-width: 980.98px),
        (any-pointer: coarse) and (max-width: 1366.98px) {
            :where(.wn-coco-tool) .hamburger {
                display: inline-flex;
            }


            :where(.wn-coco-tool) .serviceSwitch {
                display: flex;
            }

            /* ヘッダー内のナビはスマホでは収納 */
            :where(.wn-coco-tool) .tabs,
:where(.wn-coco-tool) .quickNav {
                display: none !important;
            }

            :where(.wn-coco-tool) .mobileMenu {
                display: block;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                margin-top: 10px;
                z-index: 70;
            }

            :where(.wn-coco-tool) .mobileMenuInner {
                border: 1px solid var(--line2);
                background: color-mix(in srgb, var(--panel), transparent 10%);
                border-radius: calc(var(--radius) + 2px);
                box-shadow: var(--shadow);
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
                padding: 12px;
            }

            :where(.wn-coco-tool) .mobileMenuHdr {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                padding-bottom: 10px;
                margin-bottom: 10px;
                border-bottom: 1px dashed var(--line);
            }

            :where(.wn-coco-tool) .mobileMenuHdrTitle {
                font-weight: 900;
                letter-spacing: .02em;
            }

            :where(.wn-coco-tool) .mobileMenuClose {
                appearance: none;
                border: 1px solid var(--line2);
                background: var(--panel2);
                color: var(--text);
                border-radius: 12px;
                padding: 8px 10px;
                min-width: 40px;
                min-height: 38px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
            }

            :where(.wn-coco-tool) .mobileMenuSection {
                margin-top: 10px;
            }

            :where(.wn-coco-tool) .mobileMenuSectionTitle {
                font-size: .9rem;
                color: var(--muted);
                margin: 0 0 8px;
            }

            :where(.wn-coco-tool) .mobileMenuGrid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            :where(.wn-coco-tool) .mobileMenuItem {
                appearance: none;
                border: 1px solid var(--line2);
                background: var(--panel2);
                color: var(--text);
                border-radius: 14px;
                padding: 12px 12px;
                text-align: left;
                font-weight: 800;
                cursor: pointer;
            }

            :where(.wn-coco-tool) .mobileMenuItem.active {
                background: color-mix(in srgb, var(--coco-blue), transparent 85%);
                border-color: color-mix(in srgb, var(--coco-blue), transparent 55%);
            }

            :where(.wn-coco-tool) .mobileMenuItem.danger {
                background: color-mix(in srgb, var(--coco-red), transparent 88%);
                border-color: color-mix(in srgb, var(--coco-red), transparent 60%);
            }
        }

        /* =========================================================
           Footer: TOP sticky button
           ========================================================= */
        :where(.wn-coco-tool) .footerTopSticky {
            position: fixed;
            right: 15px;
            bottom: calc(env(safe-area-inset-bottom) + 50px);
            z-index: 60;
            padding: 0;
            margin: 0;
            pointer-events: none;
        }

        :where(.wn-coco-tool) .topStickyBtn {
            pointer-events: auto;
            appearance: none;
            border: 1px solid var(--line2);
            background: color-mix(in srgb, var(--panel), transparent 10%);
            color: var(--text);
            border-radius: 999px;
            padding: 10px 16px;
            font-weight: 900;
            letter-spacing: .08em;
            box-shadow: var(--shadow);
            cursor: pointer;
        }



        /* Neon: TOP label */
        :where(.wn-coco-tool) .topStickyLabel {
            color: var(--coco-yellow);
            text-shadow:
                0 0 2px rgba(255, 255, 255, .92),
                0 0 10px rgba(0, 157, 255, .92),
                0 0 22px rgba(0, 157, 255, .60),
                0 0 34px rgba(238, 68, 153, .40);
        }

        :where(.wn-coco-tool)[data-theme="light"] .topStickyLabel {
            color: var(--coco-pink);
            text-shadow:
                0 0 2px rgba(255, 255, 255, .95),
                0 0 10px rgba(176, 51, 221, .75),
                0 0 22px rgba(0, 157, 255, .38);
        }


        /* ----------------------------------------------
           Mobile: scroll-compact header (hide title after 100px)
           - Only on smartphone width
           ---------------------------------------------- */
        @media (max-width: 679.98px) {
            :where(.wn-coco-tool) .stickyHead.isCompact {
                padding: 8px 10px 8px;
            }

            :where(.wn-coco-tool) .stickyHead.isCompact header {
                flex-wrap: nowrap;
                align-items: center;
                gap: 10px;
                padding: 0;
            }

            :where(.wn-coco-tool) .stickyHead.isCompact .titleBox {
                display: none;
            }

            :where(.wn-coco-tool) .stickyHead.isCompact .serviceSwitch {
                flex: 0 1 auto;
                gap: 6px;
            }

            :where(.wn-coco-tool) .stickyHead.isCompact .svcBtn {
                padding: 8px 10px;
                min-height: 40px;
            }

            /* icon-only to keep one-line */
            :where(.wn-coco-tool) .stickyHead.isCompact .svcLabel {
                position: absolute !important;
                width: 1px !important;
                height: 1px !important;
                padding: 0 !important;
                margin: -1px !important;
                overflow: hidden !important;
                clip: rect(0, 0, 0, 0) !important;
                white-space: nowrap !important;
                border: 0 !important;
            }
        }

        :where(.wn-coco-tool) .breakdownScroll { max-width: 100%; overflow-x: auto; }
        :where(.wn-coco-tool) .breakdownScroll:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
        :where(.wn-coco-tool) .breakdownHint { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
        @media (min-width: 680px) { :where(.wn-coco-tool) .breakdownHint { display: none; } }

/* 計算前の式を金額として見せない。CDN未取得・JavaScript無効時は案内だけを表示。 */
.wn-coco-tool #app[hidden], .wn-coco-tool .tool-status[hidden] { display: none; }
.wn-coco-tool .tool-status { padding: 1.5rem; margin: 0; line-height: 1.8; }
