.mobile-shell {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
}

.screen-stack {
    min-height: 0;
    position: relative;
    padding-bottom: 15px;
    overflow-y: auto;
    overflow-x: hidden;
}

.screen-panel[hidden] {
    display: none !important;
}

.screen-panel.is-active {
    display: grid;
}

.counselor-main-screen {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    gap: 15px;
}

.control-card-section {
    background: #ffffff;
    border: 1px solid rgba(222, 228, 239, 0.9);
    border-radius: 18px;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    align-items: center;
}

.control-strip-title {
    display: block;
    font-size: 1.23rem;
    font-weight: 700;
    color: #3d4762;
}

.control-strip-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    color: #8b92a8;
    font-size: 1.23rem;
    font-weight: 600;
}

.control-strip-summary strong {
    color: #1b2440;
}

.control-status-panel {
    gap: 12px;
}

.control-status-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 15px;
    border-radius: 10px;
    background: #f3f6fb;
    border: 1px solid #e1e7f2;
    color: #78819b;
    white-space: nowrap;
    font-size: 1.2rem;
}

.counselor-history-screen {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
}

.screen-section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
}

.screen-section-title {
    margin: 0;
    color: #1a2440;
    font-size: 1.75rem;
    font-weight: 800;
}

.screen-section-description {
    margin: 0;
    color: #7080af;
    font-size: 1.1rem;
    font-weight: 500;
}

.history-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid rgba(222, 228, 239, 0.9);
    border-radius: 22px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    box-shadow: 0 16px 38px rgba(45, 70, 138, 0.08);
}

.history-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: #edf2ff;
    color: #4060da;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.history-card-title {
    color: #1c2643;
    font-size: 1.45rem;
    font-weight: 800;
}

.history-card-description {
    max-width: 560px;
    margin: 0;
    color: #7482ac;
    font-size: 1.08rem;
    line-height: 1.5;
}

.history-action-button {
    min-width: 180px;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #28459f 0%, #365ac2 100%);
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bottom-nav {
    grid-template-columns: repeat(3, 1fr);
}
