/* The "All tools" button and panel in each tool's header (assets/tools-menu.js). */
/* The nav that holds it drops the old icon row's pill. */
nav.dt-tools-nav { display: flex !important; align-items: center; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; gap: 0 !important; }
.dt-tools-menu { position: relative; display: flex; align-items: center; gap: 6px; font-family: Inter, system-ui, sans-serif; }
/* Your tools (home) and Your projects, either side of All tools */
.dt-nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(15, 23, 42, .1); background: rgba(255, 255, 255, .85); color: #1e293b; font: 700 13px/1 Inter, system-ui, sans-serif; text-decoration: none !important; white-space: nowrap; box-sizing: border-box; }
.dt-nav-link.dt-nav-home { padding: 0; }
.dt-nav-link:hover { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.dt-nav-link:focus-visible { outline: 3px solid #10b981; outline-offset: 2px; }
.dt-nav-link[aria-current="page"] { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.dt-tools-button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(15, 23, 42, .1); background: rgba(255, 255, 255, .85); color: #1e293b; font: 700 13px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.dt-tools-button:hover, .dt-tools-menu.is-open .dt-tools-button { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.dt-tools-button:focus-visible { outline: 3px solid #10b981; outline-offset: 2px; }
.dt-tools-caret { transition: transform .15s; }
.dt-tools-menu.is-open .dt-tools-caret { transform: rotate(180deg); }

/* Centred on the screen, just under the button (its top is set when it opens). */
.dt-tools-panel { font: 500 13px/1.4 Inter, system-ui, sans-serif; letter-spacing: 0; position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 2147483000; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 88px); overflow: auto; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 20px 48px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06); color: #1e293b; text-align: left; }
.dt-tools-panel[hidden] { display: none; }
.dt-tools-heading { margin: 2px 6px 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }

.dt-tools-recent { padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid #eef2f6; }
.dt-tools-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.dt-tools-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 7px; border-radius: 999px; background: #f1f5f9; color: #1e293b; font-size: 13px; font-weight: 600; text-decoration: none; }
.dt-tools-chips a:hover { background: #ecfdf5; color: #047857; }
.dt-tools-chips img { width: 18px; height: 18px; object-fit: contain; }

.dt-tools-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.dt-tools-row { display: flex !important; gap: 10px; align-items: flex-start !important; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; }
.dt-tools-row:hover { background: #f8fafc; }
.dt-tools-row.is-current { background: #ecfdf5; }
.dt-tools-row img { width: 24px; height: 24px; flex: none; object-fit: contain; margin-top: 1px; }
.dt-tools-row strong { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.dt-tools-row strong em { font-style: normal; font-size: 10px; font-weight: 800; color: #047857; }
.dt-tools-row small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; margin-top: 1px; font-size: 12px; line-height: 1.35; color: #64748b; }
.dt-tools-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dt-tools-tags i { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: #ecfdf5; color: #047857; }

.dt-tools-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 6px 0; border-top: 1px solid #eef2f6; font-size: 13px; font-weight: 600; }
.dt-tools-foot a { color: #64748b; text-decoration: none; }
.dt-tools-foot a:hover { color: #1e293b; }
.dt-tools-foot .dt-tools-home { color: #059669; font-weight: 700; }

/* The language picker: a header link with a globe and the language's own name, opening the native list. */
.dt-nav-link.dt-nav-language { position: relative; gap: 4px; padding: 0 8px 0 9px; cursor: pointer; }
.dt-nav-language select { appearance: none; -webkit-appearance: none; max-width: 112px; padding: 0 14px 0 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center; color: inherit; font: inherit; text-overflow: ellipsis; cursor: pointer; field-sizing: content; }
.dt-nav-language select:focus { outline: none; }
.dt-nav-language:focus-within { outline: 3px solid #10b981; outline-offset: 2px; }

/* On a tablet the tool header can't fit the social links beside the menu (they ran under Projects): the menu wins. */
@media (max-width: 1023px) {
    .header-social-links { display: none !important; }
}

/* Just the globe where the header is crowded (tablets, smaller laptops): the list still opens over it. */
@media (max-width: 1279px) {
    .dt-nav-link.dt-nav-language { padding: 0; width: 34px; }
    .dt-nav-language select { position: absolute; inset: 0; width: 100%; max-width: none; opacity: 0; }
}

@media (max-width: 640px) {
    .dt-tools-columns { grid-template-columns: 1fr; }
    .dt-tools-button span, .dt-nav-link span { display: none; }
    .dt-nav-link { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .dt-tools-caret { transition: none; } }

/* Plan runs across both columns under Boards and Analyse, a little apart from them, its heading over both tools. */
.dt-tools-plan { margin-top: 10px; }
.dt-tools-plan .dt-tools-heading { grid-column: 1 / -1; }
