/* Hamburger Menu — Tools + Help (Field / Dispatch / BIOS) */
.app-menu,
.app-menu__anchor {
    position: relative;
    margin-left: auto;
}
.app-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.75rem;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.app-menu__trigger:hover {
    background: #fff;
    border-color: rgba(13, 148, 136, 0.35);
}
.app-menu__trigger:focus {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}
.app-menu__burger {
    width: 0.95rem;
    height: 2px;
    margin: 0;
    border: 0;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
    display: inline-block;
    flex-shrink: 0;
    align-self: center;
}
.app-menu__burger::after {
    content: none;
}
.app-menu__trigger-text {
    user-select: none;
}
.app-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 17.25rem;
    max-width: min(92vw, 21rem);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.85rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    z-index: 60;
    padding: 0.5rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.app-menu__panel.hidden {
    display: none !important;
}
.app-menu__section {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.app-menu__section:last-child {
    border-bottom: none;
}
.app-menu__heading {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.35rem 1rem 0.25rem;
}
.app-menu__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 1rem;
    font-size: 0.875rem;
    color: #0f172a;
    text-decoration: none;
}
.app-menu__link:hover {
    background: rgba(13, 148, 136, 0.08);
}
.app-menu__link[aria-current="page"] {
    font-weight: 600;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.12);
}
.app-menu__linkbtn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    padding: 0.48rem 1rem;
    font-size: 0.875rem;
    color: #0d9488;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.app-menu__linkbtn:hover {
    background: rgba(13, 148, 136, 0.08);
    text-decoration: underline;
}
.app-menu__ico {
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border-radius: 0.4rem;
    background: rgba(13, 148, 136, 0.14);
    color: #0f766e;
}
.app-menu__ico svg,
.app-menu__ico img {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
    object-fit: contain;
}
.app-menu__ico.app-menu__ico--teal {
    background: rgba(13, 148, 136, 0.14) !important;
    color: #0f766e !important;
}
.app-menu__ico.app-menu__ico--bios {
    background: rgba(79, 70, 229, 0.16) !important;
    color: #4338ca !important;
}
.app-menu__ico.app-menu__ico--field {
    background: rgba(180, 83, 9, 0.16) !important;
    color: #b45309 !important;
}
.app-menu__ico.app-menu__ico--puro {
    background: rgba(3, 105, 161, 0.16) !important;
    color: #0369a1 !important;
}
.app-menu__ico.app-menu__ico--hudu {
    background: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}
.app-menu__ico.app-menu__ico--ninja {
    background: rgba(5, 56, 86, 0.16) !important;
    color: #053856 !important;
}
.app-menu__ico.app-menu__ico--halcyon {
    background: rgba(180, 83, 9, 0.16) !important;
    color: #b45309 !important;
}
.app-menu__ico.app-menu__ico--secrets {
    background: rgba(100, 116, 139, 0.18) !important;
    color: #475569 !important;
}
.app-menu__ico.app-menu__ico--suggest {
    background: rgba(13, 148, 136, 0.14) !important;
    color: #0d9488 !important;
}
.app-menu__ico.app-menu__ico--signout {
    background: rgba(220, 38, 38, 0.12) !important;
    color: #b91c1c !important;
}
.app-menu__ico.app-menu__ico--audit {
    background: rgba(100, 116, 139, 0.14) !important;
    color: #64748b !important;
}
.app-menu__label {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.25;
}
/* Smallest type in the panel — deploy build numbers */
.app-menu__section--version {
    padding: 0.2rem 1rem 0.35rem;
}
.app-menu__section--version.hidden {
    display: none !important;
}
.app-menu__link--audit {
    font-size: 0.6875rem !important;
    color: #94a3b8 !important;
    font-weight: 500;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}
.app-menu__link--audit:hover {
    color: #64748b !important;
    background: rgba(15, 23, 42, 0.03) !important;
}
#dispatchVersionLine.app-menu__versionline {
    margin: 0;
    padding: 0;
    font-size: 0.5625rem;
    line-height: 1.35;
    color: #94a3b8;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-word;
}

/* Suggest a change — attachments (injected by dispatch-shared-ui.js) */
.suggestion-modal__attach {
    margin-top: 0.85rem;
}
.suggestion-modal__attach label {
    display: block;
    font-weight: 650;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}
.suggestion-modal__attach input[type="file"] {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 0.85rem;
}
.suggestion-modal__attach-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--muted, #64748b);
}
.suggestion-modal__files {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.suggestion-modal__files[hidden] {
    display: none !important;
}
.suggestion-modal__files li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.5rem;
    background: rgba(248, 250, 252, 0.9);
    font-size: 0.82rem;
}
.suggestion-modal__file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 550;
}
.suggestion-modal__file-meta {
    color: var(--muted, #64748b);
    flex-shrink: 0;
}
.suggestion-modal__file-remove {
    border: 0;
    background: transparent;
    color: #b91c1c;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
    padding: 0.15rem 0.25rem;
}
