/* ============================
   VOICE MODE FULLSCREEN PANEL
   ============================ */

/* SAFE RESET — prevents WP/Elementor interference */
#hr-voice-mode * {
    all: unset;
    display: revert;
    font-size: revert;
    line-height: revert;
    white-space: revert;
    margin: revert;
    padding: revert;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
}

/* ============================
   TYPOGRAPHY + LAYOUT RESTORE
   ============================ */

.hr-summary-heading {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
    display: block;
}

.hr-summary-line {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #000;
    display: block;
}

.hr-inspection-log-heading {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.hr-inspection-log-line {
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: block;
}

/* ============================
   CONTAINERS
   ============================ */

#hr-voice-mode {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #fff8e1;
    padding: 20px;
    overflow: hidden;
    text-align: center;
}

/* Unified scroll container — summary OR menu */
#hr-scroll-container {
    width: 100%;
    height: calc(100vh - 180px);
    overflow: hidden;
    position: relative;
    background: #fafafa;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 !important;     /* CRITICAL: no padding */
    text-align: center;
}

/* Scroll content wrapper */
#hr-scroll-content {
    position: absolute;
    width: 100%;
    white-space: normal;
    font-size: 1.2em;
    padding: 0 !important;     /* CRITICAL */
    margin: 0 !important;      /* CRITICAL */
    top: 0;
    left: 0;
    animation: none;
}

/* ============================
   SUMMARY + INSPECTION LOG
   ============================ */

/* SUMMARY: black on white */
#hr-summary-content {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    display: block !important;
}

/* INSPECTION LOG: white on black, SHRINK-WRAP CONTENT */
#hr-inspection-log {
    background: #000000 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    display: block !important;
    height: auto !important;       /* CRITICAL */
    min-height: 0 !important;      /* CRITICAL */
}

/* OVERRIDE RESET: SUMMARY + INSPECTION LOG FONT SIZES */
#hr-summary-content .hr-summary-heading,
#hr-summary-content .hr-summary-line,
#hr-inspection-log .hr-inspection-log-heading,
#hr-inspection-log .hr-inspection-log-line,
#hr-current-instructions {
    font-size: 40px !important;
    line-height: 1.3 !important;
    display: block !important;
    white-space: normal !important;
    margin: 10px 0 !important;
}

/* ============================
   TITLE + MENU PANEL
   ============================ */

#hr-voice-mode h1 {
    font-size: 32px;
    font-weight: bold;
    color: #b45309;
    margin-bottom: 10px;
    text-align: center;
}

#hr-voice-menu {
    font-size: 18px;
    line-height: 1.4;
    padding: 10px;
    text-align: center;
}

/* ============================
   LISTEN INDICATOR
   ============================ */

#hr-voice-status {
    display: none;
    background: red;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 24px;
    text-align: center;
    margin: 20px auto;
    width: fit-content;
    box-shadow: 0 0 20px red;
}

#hr-voice-status.listening {
    display: block;
}

/* ============================
   MENU OVERLAY (scroll area)
   ============================ */

#hr-scroll-container.menu-mode {
    background: #ffffff !important;
    overflow: hidden !important;
    position: relative !important;
}

#hr-scroll-container.menu-mode .hr-menu-heading {
    font-size: 2rem !important;
    font-weight: bold !important;
    padding: 15px !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 2px solid #ccc !important;
    display: block !important;
}

#hr-scroll-container.menu-mode .hr-menu-item {
    font-size: 1.6rem !important;
    padding: 12px 15px !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 1px solid #eee !important;
    white-space: normal !important;
    display: block !important;
}

/* ============================
   SCROLL ANIMATION
   ============================ */

@keyframes hrScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

#hr-inspection-log {
    position: static !important;
}

#hr-summary-content {
    position: static !important;
}

#hr-scroll-content {
    position: absolute !important; /* keep this */
}

#hr-scroll-content > * {
    position: static !important;   /* CRITICAL FIX */
}
